]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
[powerpc] add 'volatile' to asm
[thirdparty/glibc.git] / ChangeLog
1 2019-06-19 Paul A. Clarke <pc@us.ibm.com>
2
3 * sysdeps/powerpc/fpu/fenv_libc.h (relax_fenv_state): Add 'volatile'.
4 * sysdeps/powerpc/fpu/fpu_control.h (__FPU_MFFS): Likewise.
5 (__FPU_MFFSL): Likewise.
6 (_FPU_SETCW): Likewise.
7
8 2019-06-19 Stan Shebs <stanshebs@google.com>
9 Raoni Fassina Firmino <raoni@linux.ibm.com>
10
11 [BZ #24640]
12 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
13 [!SHARED] (__get_timebase_freq): Fix sense of a test in the
14 static-linking version.
15 * sysdeps/unix/sysv/linux/powerpc/Makefile
16 (tests-static): Add test-gettimebasefreq-static.
17 (tests): Likewise.
18 * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq-static.c:
19 New file.
20
21 2019-06-19 Rafal Luzynski <digitalfreak@lingonborough.com>
22
23 [BZ #24614]
24 * localedata/locales/nl_AW (n_sep_by_space): Set to 2 (a space
25 between the currency symbol and the minus sign).
26 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
27
28 2019-06-19 Stefan Liebler <stli@linux.ibm.com>
29
30 [BZ #24556]
31 * string/test-strcasestr.c (check_result): Add NULL check.
32 * nss/tst-field.c (check_rewrite): Likewise.
33 * benchtests/bench-strstr.c (do_one_test): Likewise.
34 * string/test-strstr.c (check_result): Likewise.
35 * argp/argp-test.c (popt): Increase size of buf to 12.
36 * benchtests/bench-malloc-simple.c (bench):
37 Do not initialize tests array out of bounds.
38
39 2019-06-19 Florian Weimer <fweimer@redhat.com>
40
41 [BZ #24166]
42 * dlfcn/dlfcn.h (Dl_serinfo): Do not use array of length 1 for
43 dls_serpath field.
44
45 2019-06-18 Florian Weimer <fweimer@redhat.com>
46
47 [BZ #24323]
48 * include/elf.h (DT_1_SUPPORTED_MASK): Include DF_1_PIE.
49 * elf/dl-load.c (_dl_map_object_from_fd): Check for DF_1_PIE and
50 fail when called from dlopen.
51 * elf/Makefile [have-fpie && build-shared] (tests): Add
52 tst-dlopen-pie.
53 (tst-dlopen-pie): Link with -ldl.
54 (tst-dlopen-pie.out): Add run-time dependency on tst-pie1.
55 * elf/tst-dlopen-pie.c (do_test): New file.
56
57 2019-06-17 Rafal Luzynski <digitalfreak@lingonborough.com>
58
59 [BZ #24614]
60 * localedata/Makefile (LOCALES): Add nl_NL.UTF-8.
61 * localedata/locales/nl_NL (n_sep_by_space): Set to 2 (a space
62 between the currency symbol and the minus sign).
63 (n_sign_posn): Set to 4 (the minus sign after the currency symbol).
64 * localedata/tst-strfmon1.c (tests): Add test data for nl_NL.UTF-8.
65
66 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
67
68 * sysdeps/unix/sysv/linux/m68k/Makefile (sysdep_routines,
69 sysdep-rtld-routines): Remove rules.
70 * sysdeps/unix/sysv/linux/m68k/Versions (libc) [GLIBC_PRIVATE]:
71 Remove __vdso_atomic_cmpxchg_32 and __vdso_atomic_barrier.
72 (ld) [GLIBC_PRIVATE]: __rtld___vdso_read_tp,
73 __rtld___vdso_atomic_cmpxchg_32, and __rtld___vdso_atomic_barrier.
74 * sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h
75 (atomic_compare_and_exchange_val_acq, atomic_full_barrier): Remove
76 vDSO path for SHARED.
77 * sysdeps/unix/sysv/linux/m68k/init-first.c: Remove file.
78 * sysdeps/unix/sysv/linux/m68k/libc-m68k-vdso.c: Likewise.
79 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
80 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.c: Likewise.
81 * sysdeps/unix/sysv/linux/m68k/m68k-vdso.h: Likewise.
82 * sysdeps/unix/sysv/linux/m68k/m68k-helpers.c: New file.
83
84 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
85 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
86 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
87 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
88 CFLAGS-s_llround-power5+.c): New rule.
89 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
90 New file.
91 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
92 Likewise.
93 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
94 Likewise.
95 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
96 Likewise.
97 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
98 Likewise.
99 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
100 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
102 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
104 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
105 * sysdeps/powerpc/powerpc64/fpu/Makefile
106 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
107 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
108 (libm-sysdep_routines): Remove s_llround-* objects.
109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
110 file.
111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
112 Likewise.
113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
114 Likewise.
115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
116 Likewise.
117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
118 Likewise.
119 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
120 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
121 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
122 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
123 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
124 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
125 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
126 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
127 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
128 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
129 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
130 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
131 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
132 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
133
134 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
135 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
136 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
137 * sysdeps/powerpc/powerpc32/fpu/Makefile
138 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
139 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
140 optimization.
141 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
142 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
143 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
144 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
145 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
146 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
147 CFLAGS-s_lrint-ppc32.c): New rule.
148 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
149 Remove file.
150 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
151 Likewise.
152 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
153 Likewise.
154 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
155 Likewise.
156 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
157 Likewise.
158 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
159 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
160 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
161 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
163 New file.
164 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
165 Likewise.
166 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
167 Likewise.
168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
169 Likewise.
170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
171 Likewise.
172
173 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
174 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
175 s_llrint-ppc64.
176 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
177 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
178 file.
179 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
180 Likewise.
181 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
182 Likewise.
183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
184 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
186 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
188 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
189 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
190 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
191 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
192 (libm-sysdep_routines): Remove s_llrint-* objects.
193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
194 file.
195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
196 Likewise.
197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
198 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
199 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
200 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
201 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
202 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
203 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
204 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
205 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
206 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
207
208 2019-06-14 Florian Weimer <fweimer@redhat.com>
209
210 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
211 argument to __glibc_has_include to inhibit macro expansion.
212
213 2019-06-14 Florian Weimer <fweimer@redhat.com>
214
215 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
216 function-like macro, so that __has_include can inhibit expansion
217 of its argument.
218
219 2019-06-13 Joseph Myers <joseph@codesourcery.com>
220
221 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
222 New macro.
223
224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
225 Allow memset in libc.so.
226
227 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
228
229 * sysdeps/aarch64/dl-dtprocnum.h: New file.
230 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
231 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
232 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
233 symbols at load time.
234 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
235
236 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
237
238 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
239 (DT_AARCH64_VARIANT_PCS): Define.
240
241 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
242
243 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
244 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
245 objects.
246 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
247 Remove file.
248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
249 Likewise.
250 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
252 Likewise.
253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
254 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
255 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
256 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
257 Remove s_finite* objects.
258 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
259 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
260 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
261 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
262 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
263 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
264 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
265 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
266 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
267 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
268
269 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
270 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
271
272 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
273 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
274 objects.
275 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
276 Remove file.
277 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
278 Likewise.
279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
280 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
281 Likewise.
282 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
283 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
284 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
285 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
286 Remove s_isinf* and s_isinf* objects.
287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
288 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
290 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
293 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
294 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
295 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
296 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
297
298 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
299 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
300
301 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
302 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
303 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
304 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
305 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
306 s_isnanf-* objects.
307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
308 Remove file
309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
310 Likewise.
311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
312 Likewise.
313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
314 Likewise.
315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
317 Likewise.
318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
319 Likewise.
320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
321 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
322 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
323 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
324 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
325 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
326 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
327 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
328 Remove s_isnan-* and s_isnanf-* objects.
329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
332 Likewise.
333 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
334 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
337 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
338 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
339 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
340 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
341 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
342 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
343 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
344 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
345 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
346
347 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
348 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
349
350 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
351 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
352 CFLAGS-bench-isfinite.c): New rule.
353 * benchtests/isnan-input: New file.
354 * benchtests/isinf-input: New file.
355 * benchtests/isfinite-input: New file.
356
357 * sysdeps/powerpc/fpu/s_copysign.c: New file.
358 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
359 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
360 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
361 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
362 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
363 s_copysign-ppc32.
364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
365 Remove file.
366 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
367 Likewise.
368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
369 Likewise.
370 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
371 Likewise.
372 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
373 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
374 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
375 Remove s_copysign-power6 s_copysign-ppc64.
376 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
377 Remove file.
378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
379 Likewise.
380 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
381 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
382 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
383 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
384 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
385 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
386
387 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
388 round_to_integer_float, round_mode): Add RINT handling.
389 (reset_fenv_mode): New symbol.
390 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
391 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
392 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
393 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
394 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
395 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
396
397 2019-06-12 Florian Weimer <fweimer@redhat.com>
398
399 [BZ #24632]
400 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
401 * libio/freopen.c (freopen): Use it.
402
403 2019-06-12 Florian Weimer <fweimer@redhat.com>
404
405 Linux: Deprecate sysctl.
406 * include/sysctl.h (__sysctl): Remove declaration.
407 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
408 check.
409 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
410 (sysctl): Add deprecation attribute.
411 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
412 directly, to avoid the deprecation warning. Do not include
413 <string.h>.
414 (__sysctl): Remove hidden alias.
415
416 2019-06-12 Florian Weimer <fweimer@redhat.com>
417
418 Linux: Use kernel headers for statx definitions if available.
419 * include/bits/statx-generic.h: New file.
420 * include/bits/types/struct_statx.h: Likewise.
421 * include/bits/types/struct_statx_timestamp.h: Likewise.
422 * io/Makefile (headers): Add bits/statx-generic.h.
423 * io/bits/statx-generic.h: New file. Partly copied from
424 io/bits/statx.h.
425 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
426 define original_statx.
427 * io/bits/types/struct_statx.h: Likewise.
428 * io/bits/types/struct_statx_timestamp.h: Likewise.
429 (statx_generic): Use original_statx.
430 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
431 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
432
433 2019-06-12 Florian Weimer <fweimer@redhat.com>
434
435 * misc/sys/cdefs.h (__glibc_has_include): Define.
436
437 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
438
439 * string/memmem.c (__memmem): Rewrite to improve performance.
440
441 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
442
443 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
444 warning.
445 (two_way_long_needle): Block inlining.
446 * string/strstr.c (strstr2): Add new function.
447 (strstr3): Likewise.
448 (STRSTR): Completely rewrite strstr to improve performance.
449
450 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
451
452 * benchtests/bench-strstr.c (test_hard_needle): New function.
453
454 2019-06-10 Joseph Myers <joseph@codesourcery.com>
455
456 * malloc/tst-calloc.c: Include <libc-diag.h>.
457 (null_test): Ignore -Wunused-result around calls to calloc.
458 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
459 (do_test): Ignore -Wunused-result around call to malloc.
460
461 2019-06-07 Florian Weimer <fweimer@redhat.com>
462
463 Linux: Add getdents64 system call.
464 * include/dirnent.h (getdents): Add comment and change buffer
465 argument type to void *.
466 (getdents64): Likewise. Add hidden prototype.
467 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
468 getdents64.
469 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
470 Add tst-getdents64.
471 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
472 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
473 argument type to void *.
474 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
475 Add hidden definition and getdents64 alias.
476 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
477 Likewise.
478 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
479 * manual/filesys.texi (Accessing Directories): Add Low-level
480 Directory Access node reference.
481 (Opening a Directory): Cross-reference it.
482 (Low-level Directory Access): New node.
483 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
484 getdents64.
485 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
486 Likewise.
487 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
488 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
489 Likewise.
490 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
491 Likewise.
492 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
493 Likewise.
494 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
495 Likewise.
496 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
497 Likewise.
498 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
499 Likewise.
500 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
501 Likewise.
502 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
503 (GLIBC_2.30): Likewise.
504 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
505 (GLIBC_2.30): Likewise.
506 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
507 (GLIBC_2.30): Likewise.
508 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
509 (GLIBC_2.30): Likewise.
510 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
511 Likewise.
512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
513 (GLIBC_2.30): Likewise.
514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
515 (GLIBC_2.30): Likewise.
516 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
517 (GLIBC_2.30): Likewise.
518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
519 (GLIBC_2.30): Likewise.
520 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
521 Likewise.
522 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
523 Likewise.
524 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
525 Likewise.
526 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
527 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
528 Likewise.
529 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
530 Likewise.
531 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
532 Likewise.
533 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
534 Likewise.
535
536 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
537
538 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
539 (__FPU_MFFS): New.
540 (__FPU_MFFSL): New.
541 (_FPU_GET_RC): New.
542 (_FPU_GETCW): Use __FPU_MFFS().
543 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
544
545 2019-06-06 Florian Weimer <fweimer@redhat.com>
546
547 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
548 internal GCC preprocessor identifier __has_include__.
549
550 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
551
552 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
553 with call to equivalent function.
554
555 2019-06-04 Florian Weimer <fweimer@redhat.com>
556
557 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
558 (do_release_shlib): Adjust for __twalk_r.
559 (__gconv_release_shlib): Call __twalk_r.
560
561 2019-06-04 Andreas Schwab <schwab@suse.de>
562
563 [BZ #18830]
564 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
565 no irreversible characters occurred.
566 * iconv/gconv_simple.c (internal_ucs4_loop)
567 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
568 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
569 (ucs4_internal_loop_single, internal_ucs4le_loop)
570 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
571 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
572 (ucs4le_internal_loop_single): Add const to outend.
573 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
574 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
575 * iconv/Makefile (tests): Add tst-iconv7.
576 * iconv/tst-iconv7.c: New file.
577
578 2019-06-03 Joseph Myers <joseph@codesourcery.com>
579
580 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
581
582 2019-06-01 Florian Weimer <fweimer@redhat.com>
583
584 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
585 * sysdeps/unix/sysv/linux/arm/Makefile
586 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
587 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
588 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
589 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
590 compatibility symbols.
591
592 2019-05-31 Florian Weimer <fweimer@redhat.com>
593
594 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
595 system calls for the arm architecture: breakpoint, get_tls,
596 set_tls, usr26, usr32.
597
598 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
599
600 * sysdeps/powerpc/Makefile
601 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
602 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
603 Declare '.machine power7' to get support for ldbrx.
604 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
605 directive based on the directory of the file.
606 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
607 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
608 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
609 '.machine' directive.
610 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
611 (VADDUQM_V7_V8): Remove.
612 (__STRCASECMP): Replace macros with actual instructions.
613 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
614 '.machine' directive.
615 (VCLZD_V8_v7): Remove.
616 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
617
618 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
619
620 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
621 Remove file.
622 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
623
624 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
625
626 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
627 NEARBYINT handling.
628 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
629 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
630 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
631 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
632 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
633 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
634
635 2019-05-28 mansayk <6688000@gmail.com>
636
637 [BZ #24370]
638 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
639
640 2019-05-28 mansayk <6688000@gmail.com>
641
642 [BZ #24369]
643 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
644 (abmon): Likewise, but remove the trailing dots.
645
646 2019-05-28 Joseph Myers <joseph@codesourcery.com>
647
648 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
649
650 2019-05-27 Florian Weimer <fweimer@redhat.com>
651
652 * nptl/nptl-init.c: Add comment.
653
654 2019-05-24 Florian Weimer <fweimer@redhat.com>
655
656 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
657 struct in_addr/struct in6_addr alignment.
658
659 2019-05-23 Joseph Myers <joseph@codesourcery.com>
660
661 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
662 (F_SEAL_FUTURE_WRITE): New macro.
663
664 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
665
666 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
667 * elf/tst-ldconfig-bad-aux-cache.c: New file.
668 * elf/tst-ldconfig_aux-cache.root: New directory.
669 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
670 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
671 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
672
673 2019-05-22 Zack Weinberg <zackw@panix.com>
674
675 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
676 host type.
677 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
678 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
679
680 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
681 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
683 Delete.
684
685 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
686 Issue an #error if used with a compiler in SPE-float mode.
687 * sysdeps/powerpc/powerpc32/__longjmp_common.S
688 * sysdeps/powerpc/powerpc32/setjmp_common.S
689 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
691 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
692 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
695 Remove code to preserve SPE register state.
696
697 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
698 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
699 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
700 Remove __SPE__ ifndefs.
701
702 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
703
704 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
705 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
706 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
707 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
708 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
709 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
710 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
711 (INNER_LOOP_ITERS_MEDIUM): New define.
712 (INNER_LOOP_ITERS_SMALL): New define.
713 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
714 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
715 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
716 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
717 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
718
719 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
720
721 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
722 New define.
723 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
724 (SEMTIMEDOP_IPC_ARGS): Likewise.
725
726 2019-05-21 Florian Weimer <fweimer@redhat.com>
727
728 [BZ #24584]
729 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
730 before updating __counter field and release it afterwards. Add
731 overflow check.
732 * iconv/gconv.h (struct __gconv_step): Mention synchronization
733 requirement for __counter member.
734
735 2019-05-21 Florian Weimer <fweimer@redhat.com>
736
737 [BZ #24583]
738 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
739 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
740 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
741 instead of __gconv_release_step.
742 * libio/Makefile (tests): Add tst-wfile-gconv.
743 (tests-container): Add tst-wfile-ascii.
744 (tst-wfile-gconv-ENV): Enable mtrace.
745 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
746 (tests-special): Add tst-wfile-gconv-mem.out.
747 (tst-wfile-gconv.out): Depend on locales.
748 (tst-wfile-gconv-mem.out): Add mtrace rule.
749 * libio/tst-wfile-ascii.c: New file.
750 * libio/tst-wfile-gconv.c: Likewise.
751
752 2019-05-20 Florian Weimer <fweimer@redhat.com>
753
754 [BZ #24588]
755 libio: Remove codecvt vtable.
756 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
757 __libio_codecvt.
758 * libio/iofgetpos.c (_IO_new_fgetpos): Call
759 __libio_codecvt_encoding.
760 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
761 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
762 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
763 * libio/iofwide.c (__libio_codecvt): Remove variable.
764 (_IO_fwide): Do not copy __libio_codecvt.
765 (__libio_codecvt_out): Rename from do_out and export.
766 (do_unshift): Remove function.
767 (__libio_codecvt_in): Rename from do_in and export.
768 (__libio_codecvt_encoding): Rename from do_encoding and export.
769 (do_always_noconv): Remove function.
770 (__libio_codecvt_length): Rename from do_length and export.
771 (do_max_length): Remove function.
772 * libio/libio.h (enum __codecvt_result): Remove definition; moved
773 to libioP.h.
774 (struct _IO_codecvt): Remove fields __codecvt_destr,
775 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
776 __codecvt_do_encoding, __codecvt_do_always_noconv,
777 __codecvt_do_length, __codecvt_do_max_length.
778 * libio/libioP.h (enum __codecvt_result): Define; moved from
779 libio.h.
780 (__libio_codecvt_out, __libio_codecvt_in)
781 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
782 functions.
783 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
784 (_IO_wfile_underflow): Call __libio_codecvt_in.
785 (_IO_wfile_underflow): Likewise.
786 (_IO_wfile_underflow_mmap): Likewise.
787 (_IO_wfile_sync): Call __libio_codecvt_encoding,
788 __libio_codecvt_length.
789 (adjust_wide_data): Call __libio_codecvt_encoding,
790 __libio_codecvt_in.
791 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
792 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
793 __libio_codecvt_length.
794
795 2019-05-20 Florian Weimer <fweimer@redhat.com>
796
797 * support/support.h (support_sbindir_prefix): Declare.
798 (support_install_rootsbindir): Update comment.
799 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
800 * support/support_paths.c (support_sbindir_prefix): Define.
801
802 2019-05-20 Mike Crowe <mac@mcrowe.com>
803
804 * support/timespec.c: Add backslash to correct newline in failure
805 message.
806
807 * support/timespec.h: Correct confusing comment.
808
809 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
810
811 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
812 define.
813 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
814 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
815 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
816 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
817
818 [BZ #24570]
819 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
820 usage.
821
822 2019-05-20 Joseph Myers <joseph@codesourcery.com>
823
824 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
825 (NT_ARM_PACG_KEYS): Likewise.
826
827 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
828
829 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
830 (tcache_put): Remove redundant assert.
831 (tcache_get): Remove redundant asserts.
832 (__libc_malloc): Check tcache count is not zero.
833 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
834
835 2019-05-17 Florian Weimer <fweimer@redhat.com>
836
837 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
838
839 2019-05-16 Joseph Myers <joseph@codesourcery.com>
840
841 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
842 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
843 0x050100].
844 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
845 Likewise.
846 * sysdeps/unix/sysv/linux/sh/kernel-features.h
847 (__ASSUME_STATX): Likewise.
848
849 2019-05-16 Florian Weimer <fweimer@redhat.com>
850
851 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
852 flags argument.
853 (LINE_PARSER): Do not map IPv4 addresses.
854 (internal_nis_gethostent_r): Remove flags argument. Adjust call
855 to parse_line.
856 (_nss_nis_gethostent_r): Always pass AF_INET to
857 internal_nis_gethostent_r.
858 (internal_gethostbyname2_r): Remove flags argument. Adjust call
859 to parse_line.
860 (_nss_nis_gethostbyname2_r): Adjust call to
861 internal_nis_gethostent_r.
862 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
863 call to internal_nis_gethostent_r.
864 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
865 from parse_line.
866 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
867 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
868 Remove flags argument. Do not map IPv4 addresses.
869 (internal_nisplus_gethostent_r): Adjust call to
870 _nss_nisplus_parse_hostent.
871 (internal_gethostbyname2_r): Remove flags argument. Adjust call
872 to _nss_nisplus_parse_hostent.
873 (_nss_nisplus_gethostbyname2_r): Adjust call to
874 internal_gethostbyname2_r.
875 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
876 Adjust call to internal_gethostbyname2_r.
877 (_nss_nisplus_gethostbyaddr_r): Adjust call to
878 _nss_nisplus_parse_hostent.
879 (_nss_nisplus_gethostbyname4_r): Adjust call to
880 internal_gethostbyname2_r.
881
882 2019-05-16 Florian Weimer <fweimer@redhat.com>
883
884 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
885 Remove flags.
886 (LINE_PARSER): Remove address mapping.
887 (EXTRA_ARGS_VALUE): Remove flags argument.
888 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
889 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
890 gethostbyname3_multi.
891 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
892 _nss_files_gethostbyname3_r.
893 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
894
895 2019-05-16 Florian Weimer <fweimer@redhat.com>
896
897 * support/support_test_compare_blob.c (report_blob): Report
898 incorrect NULL blobs.
899
900 2019-05-15 Mark Wielaard <mark@klomp.org>
901
902 [BZ# 24476]
903 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
904 __libc_once_get (once) and static_buf == NULL.
905 (__dlerror): Check we have a valid key, set result to static_buf
906 otherwise.
907
908 2019-05-15 Andreas Schwab <schwab@suse.de>
909
910 [BZ #20568]
911 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
912 __codecvt_do_length.
913 * libio/Makefile (tests): Add tst-wfile-sync.
914 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
915 * libio/tst-wfile-sync.c: New file.
916 * libio/tst-wfile-sync.input: New file.
917
918 2019-05-15 Florian Weimer <fweimer@redhat.com>
919
920 nss: Turn __nss_database_lookup into a compatibility symbol.
921 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
922 __nss_database_lookup.
923 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
924 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
925 __nss_database_lookup.
926 (__nss_next): Move to …
927 * nss/compat-lookup.c (nss_next): … here. Change it to fail
928 unconditionally.
929 (__nss_database_lookup): New function.
930 * nss/Versions (GLIBC_2.0): Update comment.
931 (GLIBC_PRIVATE): Export __nss_database_lookup2.
932 * grp/initgroups.c (internal_getgrouplist): Call
933 __nss_database_lookup2 instead of __nss_database_lookup.
934 * nscd/aicache.c (addhstaiX): Likewise.
935 * nscd/initgrcache.c (addinitgroupsX): Likewise.
936 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
937 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
938 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
939 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
940 Likewise.
941 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
942 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
943 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
944
945 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
946
947 * support/support.h (support_install_rootsbindir): New variable.
948 * support/support_paths.c: Likewise.
949 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
950
951 2019-05-15 Florian Weimer <fweimer@redhat.com>
952
953 * iconv/gconv.h (__gconv_transliterate): Move declaration …
954 * iconv/gconv_int.h (__gconv_transliterate): … here.
955 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
956 * iconv/skeleton.c: Likewise.
957
958 2019-05-14 Florian Weimer <fweimer@redhat.com>
959
960 Linux: Add the tgkill function.
961 * bits/signal_ext.h: New file.
962 * manual/signal.texi (Signaling Another Process): Document tgkill.
963 * signal/Makefile (headers): Add bits/signal_ext.h.
964 * signal/signal.h: Include <bits/signal_ext.h>.
965 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
966 (tst-tgkill): Link with libpthread.
967 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
968 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
969 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
970 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
971 tgkill.
972 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
973 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
974 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
975 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
976 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
977 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
978 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
979 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
980 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
981 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
982 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
983 Likewise.
984 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
985 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
986 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
987 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
988 Likewise.
989 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
990 Likewise.
991 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
992 Likewise.
993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
994 Likewise.
995 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
996 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
997 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
998 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
999 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
1000 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
1001 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
1002 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
1003
1004 2019-05-14 Carlos O'Donell <carlos@redhat.com>
1005
1006 * manual/search.texi (Tree Search Function): Adjust twalk_r
1007 documentation.
1008
1009 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1010
1011 [BZ #24544]
1012 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
1013 pre-defined value.
1014
1015 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
1016 * support/support.h (support_bindir_prefix): New variable.
1017 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
1018
1019 * config.make.in (bindir): New variable.
1020
1021 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
1022 (lll_trylock): Call __lll_trylock.
1023 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
1024 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
1025 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
1026 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1027 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
1028 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
1029 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1030 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1031 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
1032 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
1033 lowlevellock-futex.h.
1034
1035 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1036 initialization for LLL_LOCK_INITIALIZER different than 0.
1037 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
1038 Assume LLL_LOCK_INITIALIZER being 0.
1039 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
1040 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
1041 Likewise.
1042 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
1043 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
1044
1045 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
1046 Optimize futex call and add systemtap probe.
1047
1048 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
1049 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
1050 __libc_disable_asynccancel, __librt_enable_asynccancel,
1051 __libc_disable_asynccancel, __librt_enable_asynccancel,
1052 __librt_disable_asynccancel): Move to ...
1053 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
1054 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
1055 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
1056 * sysdeps/generic/single-thread.h: New file.
1057 * sysdeps/unix/sysdep.h: Include single-thread.h.
1058 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
1059 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1060
1061 2019-05-08 Mike FABIAN <mfabian@redhat.com>
1062
1063 [BZ #24535]
1064 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
1065 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
1066 Unicode 12.1.0.
1067 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
1068 * localedata/unicode-gen/PropList.txt: Likewise.
1069 * localedata/unicode-gen/UnicodeData.txt: Likewise.
1070 * localedata/charmaps/UTF-8: Regenerate.
1071 * localedata/locales/i18n_ctype: Likewise.
1072 * localedata/locales/tr_TR: Likewise.
1073 * localedata/locales/translit_circle: Likewise.
1074 * localedata/locales/translit_cjk_compat: Likewise.
1075 * localedata/locales/translit_combining: Likewise.
1076 * localedata/locales/translit_compat: Likewise.
1077 * localedata/locales/translit_font: Likewise.
1078 * localedata/locales/translit_fraction: Likewise.
1079
1080 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1081
1082 [BZ #24531]
1083 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1084 (do_set_tcache_count): Only update if count is small enough.
1085 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1086
1087 2019-05-10 Florian Weimer <fweimer@redhat.com>
1088
1089 * nptl/sem_close.c (struct walk_closure): Define.
1090 (walker): Adjust for __twalk_r.
1091 (sem_close): Call __twalk_r.
1092
1093 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1094
1095 * support/timespec.c (test_timespec_before_impl,
1096 test_timespec_equal_or_after_impl): print timespec member as intmax_t
1097 insted of long int.
1098
1099 2019-05-09 Mike Crowe <mac@mcrowe.com>
1100
1101 * nptl/tst-abstime.c: Use libsupport.
1102
1103 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1104 small bug where only tv.tv_usec was checked which could cause an
1105 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1106 than a second.
1107
1108 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1109 libsupport.
1110
1111 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1112 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1113
1114 * nptl/tst-cond11.c: Use libsupport.
1115
1116 * support/timespec.h: New file. Provide timespec helper functions
1117 along with macros in the style of those in check.h.
1118 * support/timespec.c: New file. Implement check functions declared
1119 in support/timespec.h.
1120 * support/timespec-add.c: New file from gnulib containing
1121 timespec_add implementation that handles overflow.
1122 * support/timespec-sub.c: New file from gnulib containing
1123 timespec_sub implementation that handles overflow.
1124 * support/README: Mention timespec.h.
1125
1126 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
1127
1128 [BZ #24537]
1129 * nptl/Makefile: Move tst-eintr1 to xtests.
1130
1131 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1132
1133 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1134 TRUNC handling.
1135 (round_mode): Add definition for TRUNC.
1136 * sysdeps/powerpc/fpu/s_trunc.c: New file.
1137 * sysdeps/powerpc/fpu/s_truncf.c: New file.
1138 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1139 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1140 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1141 Likewise.
1142 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1143 Likewise.
1144 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1145 Likewise.
1146 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1147 Likewise.
1148 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1149 file.
1150 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1151 Likewise.
1152 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1153 Likewise.
1154 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1155 Likewise.
1156 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1157 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1158 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1159 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1160 s_truncf-power5+, and s_truncf-ppc64.
1161 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1162 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1163 file.
1164 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1165 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1166 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1167 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1168 file.
1169 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1170 Likewise.
1171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1172 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1173 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1174 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1175 s_truncf-power5+, and s_truncf-ppc64.
1176 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1177 file.
1178 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1179 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1180 Likewise.
1181 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1182 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1183 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1184 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1185 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1186
1187 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1188 ROUND handling.
1189 (round_mode): Add definition for ROUND.
1190 (round_to_integer_float): Likewise.
1191 * sysdeps/powerpc/fpu/s_round.c: New file.
1192 * sysdeps/powerpc/fpu/s_roundf.c: New file.
1193 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1194 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1195 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1196 Likewise.
1197 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1198 Likewise.
1199 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1200 Likewise.
1201 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1202 Likewise.
1203 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1204 file.
1205 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1206 Likewise.
1207 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1208 Likewise.
1209 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1210 Likewise.
1211 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1212 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1213 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1214 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1215 s_roundf-power5+, and s_roundf-ppc64.
1216 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1217 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1218 file.
1219 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1220 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1221 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1222 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1223 file.
1224 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1225 Likewise.
1226 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1227 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1228 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1229 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1230 s_roundf-power5+, and s_roundf-ppc64.
1231 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1232 file.
1233 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1234 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1235 Likewise.
1236 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1237 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1238 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1239 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1240 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1241
1242 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1243 Add FLOOR option.
1244 (round_mode): Add definition for FLOOR.
1245 * sysdeps/powerpc/fpu/s_floor.c: New file.
1246 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1247 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1248 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1249 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1250 Remove file.
1251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1252 Likewise
1253 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1254 Likewise.
1255 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1256 Likewise.
1257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1258 New file.
1259 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1260 Likewise.
1261 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1262 Likewise.
1263 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1264 Likewise.
1265 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1266 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1267 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1268 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1269 s_floorf-power5+, and s_floorf-ppc64.
1270 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1271 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1272 file.
1273 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1274 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1275 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1276 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1277 file.
1278 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1279 Likewise.
1280 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1281 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1282 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1283 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1284 s_floorf-power5+, and s_floorf-ppc64.
1285 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1286 file.
1287 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1288 file.
1289 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1290 Likewise.
1291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1292 Likewise.
1293 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1294 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1295 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1296 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1297
1298 2019-05-08 Mike Crowe <mac@mcrowe.com>
1299
1300 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1301 clock_gettime wrapper for use in tests that fails the test rather
1302 than returning failure.
1303
1304 * support/xtime.h: New file to declare xclock_gettime.
1305
1306 * support/Makefile: Add xclock_gettime.c.
1307
1308 * support/README: Mention xtime.h.
1309
1310 2019-05-08 Florian Weimer <fweimer@redhat.com>
1311
1312 malloc/tst-mallocfork2: Use process-shared barriers.
1313 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1314 (signal_count, sigusr1_sender_pid): Remove.
1315 (iterations): Define constant.
1316 (shared): New variable.
1317 (sigusr1_received): Update comment.
1318 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1319 (signal_sender): Optional use barriers to avoid sending signals
1320 during irrelevant times.
1321 (do_it): Initialize variable shared. Use xfork for error
1322 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1323 the iteration count, independent of signal delivery. Check for
1324 deadlocks in fork. Introduce barriers for reducing signal
1325 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1326 replaced by the barriers. Count signals during fork/free/malloc
1327 and report them.
1328 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1329
1330 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1331
1332 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1333 version to 5.1.
1334 (clock_adjtime64) New syscall.
1335 (clock_getres_time64) Likewise.
1336 (clock_gettime64) Likewise.
1337 (clock_nanosleep_time64) Likewise.
1338 (clock_settime64) Likewise.
1339 (futex_time64) Likewise.
1340 (io_pgetevents_time64) Likewise.
1341 (io_uring_enter) Likewise.
1342 (io_uring_register) Likewise.
1343 (io_uring_setup) Likewise.
1344 (mq_timedreceive_time64) Likewise.
1345 (mq_timedsend_time64) Likewise.
1346 (pidfd_send_signal) Likewise.
1347 (ppoll_time64) Likewise.
1348 (pselect6_time64) Likewise.
1349 (recvmmsg_time64) Likewise.
1350 (rt_sigtimedwait_time64) Likewise.
1351 (sched_rr_get_interval_time64) Likewise.
1352 (semtimedop_time64) Likewise.
1353 (timer_gettime64) Likewise.
1354 (timer_settime64) Likewise.
1355 (timerfd_gettime64) Likewise.
1356 (timerfd_settime64) Likewise.
1357 (utimensat_time64) Likewise.
1358
1359 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1360 version to 9 branch.
1361
1362 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1363
1364 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1365 __memmove_thunderx2 to the list of implementations
1366 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1367 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1368 (__memmove_thunderx2): Rewritten using SIMD ld/st
1369 (__memcpy_thunderx2): Fixed handling overlapping cases.
1370 Used ldp/stp instead of ldr/str if possible. Made loops
1371 tails branchless.
1372
1373 2019-05-03 Florian Weimer <fweimer@redhat.com>
1374
1375 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1376
1377 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1378
1379 [BZ #24506]
1380 * elf/tst-pldd.c (in_str_list): New function.
1381 (do_test): Add default names for ld and libc as one option.
1382
1383 2019-05-02 Florian Weimer <fweimer@redhat.com>
1384
1385 misc: Add twalk_r function.
1386 * include/search.h (__twalk_r): Declare.
1387 * manual/examples/twalk.c: New file.
1388 * manual/search.texi (Tree Search Function): Document twalk_r.
1389 * misc/Versions (2.30): Export twalk_r.
1390 (GLIBC_PRIVATE): Export __twalk_r.
1391 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1392 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1393 (twalk_r): Add weak alias.
1394 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1395 (walk_trace): New variable.
1396 (struct twalk_with_twalk_r_closure): Define.
1397 (twalk_with_twalk_r_action): New function.
1398 (twalk_with_twalk_r): Likewise.
1399 (walk_action): Call walk_trace_add.
1400 (walk_tree_with): Rename from walk_tree. Add walk argument.
1401 (walk_tree): New function.
1402 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1403 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1404 Likewise.
1405 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1406 Likewise.
1407 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1408 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1409 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1410 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1411 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1412 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1413 Likewise.
1414 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1415 Likewise.
1416 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1417 Likewise.
1418 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1419 (GLIBC_2.30): Likewise.
1420 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1421 (GLIBC_2.30): Likewise.
1422 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1423 (GLIBC_2.30): Likewise.
1424 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1425 (GLIBC_2.30): Likewise.
1426 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1427 Likewise.
1428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1429 (GLIBC_2.30): Likewise.
1430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1431 (GLIBC_2.30): Likewise.
1432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1433 (GLIBC_2.30): Likewise.
1434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1435 (GLIBC_2.30): Likewise.
1436 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1437 Likewise.
1438 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1439 Likewise.
1440 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1441 Likewise.
1442 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1443 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1444 Likewise.
1445 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1446 Likewise.
1447 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1448 Likewise.
1449 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1450 Likewise.
1451
1452 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1453
1454 Make mktime etc. compatible with __time64_t
1455 Keep these functions compatible with Gnulib while adding
1456 __time64_t support. The basic idea is to move private API
1457 declarations from include/time.h to time/mktime-internal.h, since
1458 the former file cannot easily be shared with Gnulib whereas the
1459 latter can.
1460 Also, do some other minor cleanup while in the neighborhood.
1461 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1462 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1463 since Gnulib needs it.
1464 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1465 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1466 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1467 (in_time_t_range): New static function.
1468 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1469 so that glibc users are not tempted to use __time64_t.
1470 * time/mktime-internal.h: Rewrite so that it does both glibc
1471 and Gnulib work. Include time.h if not _LIBC.
1472 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1473 (__time64_t): New type or macro, moved here from
1474 posix/bits/types.h.
1475 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1476 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1477 from include/time.h.
1478 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1479 New macros, taken from GNulib.
1480 (__mktime_internal): New prototype, moved here from include/time.h.
1481 * time/mktime.c (mktime_min, mktime_max, convert_time)
1482 (ranged_convert, __mktime_internal, __mktime64):
1483 * time/timegm.c (__timegm64):
1484 Use __time64_t, not time_t.
1485 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1486 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1487 Rename from mktime.
1488 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1489 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1490 for libc_hidden_def.
1491 Include errno.h.
1492 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1493 Rename from timegm.
1494 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1495
1496 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1497
1498 [BZ #19444]
1499 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1500 from `-Wmaybe-uninitialized'.
1501 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1502
1503 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1504
1505 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1506 function.
1507 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1508 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1509 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1510 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1511 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1512 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1513 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1514 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1515 Remove file.
1516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1517 Likewise.
1518 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1519 Likewise.
1520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1521 Likewise.
1522 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1523 New file.
1524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1525 Likewise.
1526 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1527 Likewise.
1528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1529 Likewise.
1530 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1531 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1532 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1533 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1534 Likewise.
1535 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1536 Likewise.
1537 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1538 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1539 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1540 file.
1541 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1542 Likewise.
1543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1544 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1545 * here.
1546 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1547 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1548 s_ceilf-power5+, and s_ceilf-ppc64.
1549 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1550 file.
1551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1552 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1553 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1554 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1555 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1556 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1557 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1558
1559 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1560 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1561 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1562
1563 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1564
1565 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1566 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1567 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1568 (sem_getvalue): Likewise.
1569
1570 2019-04-26 Florian Weimer <fweimer@redhat.com>
1571
1572 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1573 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1574
1575 2019-04-26 Florian Weimer <fweimer@redhat.com>
1576
1577 Makeconfig: Move -Wl,-rpath-link options before library references.
1578 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1579 (link-libc): Remove $(link-libc-rpath-link).
1580
1581 2019-04-25 Florian Weimer <fweimer@redhat.com>
1582
1583 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1584 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1585 (+link-static-before-libc): Remove $(CC).
1586 (+link-static, +link-static-tests): Add $(CC).
1587 (+link-before-libc): Remove $(CC).
1588 (+link, +link-pie, +link-pie-printers): Add $(CC).
1589
1590 2019-04-26 Florian Weimer <fweimer@redhat.com>
1591
1592 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1593 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1594 (+link-static-before-libc): Remove $(CC).
1595 (+link-static, +link-static-tests): Add $(CC).
1596 (+link-before-libc): Remove $(CC).
1597 (+link, +link-pie, +link-pie-printers): Add $(CC).
1598
1599 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1600
1601 [BZ#24484]
1602 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1603
1604 2019-04-25 Florian Weimer <fweimer@redhat.com>
1605
1606 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1607 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1608 (bench-link-targets): New variable.
1609 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1610
1611 2019-04-25 Florian Weimer <fweimer@redhat.com>
1612
1613 Also enable BIND_NOW for programs if --enable-bind-now.
1614 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1615 (+link-pie): Use $(link-extra-flags).
1616 (+link-static): Likewise.
1617 [! $(build-pie-default)] (+link): Likewise.
1618 * manual/install.texi (Configuring and compiling): Update
1619 --enable-bind-now description.
1620 * INSTALL: Regenerated.
1621
1622 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1623
1624 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1625 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1626
1627 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1628
1629 [BZ #18465]
1630 * malloc/Makefile (others): Add memusagestat.
1631 ($(objpfx)memusagestat): Delete rule.
1632 (LDLIBS-memusagestat): New variable.
1633
1634 2019-04-24 Florian Weimer <fweimer@redhat.com>
1635
1636 * locale/Makefile (tests-special): Guard setting by
1637 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1638 to run while cross-compiling.
1639
1640 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1641
1642 [BZ #18035]
1643 * elf/Makefile (tests-container): Add tst-pldd.
1644 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1645 (E(find_maps)): Avoid use alloca, use default read file operations
1646 instead of explicit LFS names, and fix infinite loop.
1647 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1648 (get_process_info): Use _Static_assert instead of assert, use default
1649 directory operations instead of explicit LFS names, and free some
1650 leadek pointers.
1651 * elf/tst-pldd.c: New file.
1652
1653 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1654
1655 * malloc/arena.c (do_set_mallopt_check): Removed.
1656
1657 2019-04-23 Florian Weimer <fweimer@redhat.com>
1658
1659 locale: Add LOCPATH diagnostics to the locale program.
1660 * locale/programs/locale.c (setlocale_failed): New variable.
1661 (try_setlocale): New function.
1662 (quote_string): Likewise.
1663 (setlocale_diagnostics): Likewise.
1664 (main): Call try_setlocale instead of setlocale. Call
1665 setlocale_diagnostics.
1666 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1667 (tst-locale-locpath.out): New target.
1668 * locale/tst-locale-locpath.sh: New file.
1669
1670 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1671
1672 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1673 to 2.30 notes.
1674
1675 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1676
1677 [BZ #23741]
1678 * malloc/hooks.c (malloc_check, realloc_check): Use
1679 __builtin_add_overflow on overflow check and adapt to
1680 checked_request2size change.
1681 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1682 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1683 allocation size to PTRDIFF_MAX.
1684 (REQUEST_OUT_OF_RANGE): Remove macro.
1685 (checked_request2size): Change to inline function and limit maximum
1686 requested size to PTRDIFF_MAX.
1687 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1688 maximum allocation size to PTRDIFF_MAX.
1689 (_mid_memalign): Use _int_memalign call for overflow check.
1690 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1691 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1692 limit maximum requested size to PTRDIFF_MAX.
1693 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1694 valloc, pvalloc): Add __attribute_alloc_size__.
1695 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1696 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1697 larger than PTRDIFF_MAX.
1698 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1699 around tests of malloc with negative sizes.
1700 * malloc/tst-posix_memalign.c (do_test): Likewise.
1701 * malloc/tst-pvalloc.c (do_test): Likewise.
1702 * malloc/tst-valloc.c (do_test): Likewise.
1703 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1704 with resulting size allocation larger than PTRDIFF_MAX with
1705 reallocarray_nowarn.
1706 (reallocarray_nowarn): New function.
1707 * NEWS: Mention the malloc function semantic change.
1708
1709 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1710
1711 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1712 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1713
1714 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1715 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1716 * sysdeps/powerpc/fpu/s_fma.c: New file.
1717 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1718
1719 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1720 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1721
1722 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1723 the magic flag store.
1724 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1725 Likewise.
1726 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1727 Likewise.
1728 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1729 Remove rt_sigreturn call.
1730
1731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1732 Remove rt_sigreturn call.
1733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1734 Likewise.
1735 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1736 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1737
1738 * support/Makefile (libsupport-routines): Add support_subprocess,
1739 xposix_spawn, xposix_spawn_file_actions_addclose, and
1740 xposix_spawn_file_actions_adddup2.
1741 (tst-support_capture_subprocess-ARGS): New rule.
1742 * support/capture_subprocess.h (support_capture_subprogram): New
1743 prototype.
1744 * support/support_capture_subprocess.c (support_capture_subprocess):
1745 Refactor to use support_subprocess and support_capture_poll.
1746 (support_capture_subprogram): New function.
1747 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1748 str_to_write_mode, test_common, parse_int, handle_restart,
1749 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1750 (do_test): Add support_capture_subprogram tests.
1751 * support/subprocess.h: New file.
1752 * support/support_subprocess.c: Likewise.
1753 * support/xposix_spawn.c: Likewise.
1754 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1755 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1756 * support/xspawn.h: Likewise.
1757
1758 2019-04-17 Mike Gerow <gerow@google.com>
1759
1760 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1761 groups limit.
1762
1763 2019-04-11 Florian Weimer <fweimer@redhat.com>
1764
1765 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1766 domain with empty string.
1767 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1768
1769 2019-04-11 Florian Weimer <fweimer@redhat.com>
1770
1771 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1772 comment.
1773 (alloc_buffer_next): Change return type to non-const. Update
1774 comment.
1775
1776 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1777
1778 * manual/time.texi (Formatting Calendar Time): Add missing percent
1779 sign to conversion specifier.
1780
1781 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1782 Kwok Cheung Yeung <kcy@codesourcery.com>
1783
1784 [BZ #16573]
1785 * malloc/mtrace.c: Define prototypes for all hooks.
1786 (set_default_hooks): New function.
1787 (set_trace_hooks): Likewise.
1788 (save_default_hooks): Likewise.
1789 (tr_freehook): Use new s*_hooks functions.
1790 (tr_mallochook): Likewise.
1791 (tr_reallochook): Likewise.
1792 (tr_memalignhook): Likewise.
1793 (mtrace): Likewise.
1794 (muntrace): Likewise.
1795
1796 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1797
1798 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1799 (generic_stpcpy): New function.
1800 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1801 (generic_stpncpy): New function.
1802 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1803 (generic_strcat): New function.
1804 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1805 (generic_strcpy): New function.
1806 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1807 (STUPID_STRNCAT): Remove function.
1808 (generic_strncat): New function.
1809 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1810 (STUPID_STRNCPY): Remove function.
1811 (generic_strncpy): New function.
1812 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1813 (generic_strnlen): New function.
1814 (memchr_strnlen): New function.
1815 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1816 (memchr_strlen): Likewise.
1817
1818 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1819
1820 * benchtests/bench-strstr.c (input): Add realistic input text.
1821 (stupid_strstr): Remove function.
1822 (basic_strstr): Add function.
1823 (twoway_strstr): Add function.
1824 (do_one_test): Add result checking.
1825 (do_test): Use new input text. Remove accidental early matches.
1826 (test_main): Improve range of tests, reduce unaligned cases.
1827
1828 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1829
1830 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1831 (basic_memmem): Add function.
1832 (twoway_memmem): Add function.
1833
1834 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1835
1836 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1837 * benchtests/bench-malloc-thread.c: Likewise.
1838 * benchtests/bench-skeleton.c: Likewise.
1839 * benchtests/bench-strtod.c: Likewise.
1840 * benchtests/bench-timing.h: Likewise.
1841
1842 2019-04-08 Florian Weimer <fweimer@redhat.com>
1843
1844 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1845 definitions.
1846 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1847 RES_INSECURE2 security checks.
1848 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1849 RES_INSECURE2 handling.
1850
1851 2019-04-08 Florian Weimer <fweimer@redhat.com>
1852
1853 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1854 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1855 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1856 GETHOSTBYNAME.
1857 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1858 (tests-internal): Update justification for tst-resolv-res_init,
1859 tst-resolv-res_init-thread.
1860 (tst-res_use_inet6): Remove target.
1861 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1862 * resolv/res_debug.c (p_option): Remove "inet6" support.
1863 * resolv/res_init.c (res_setoptions): Likewise.
1864 * resolv/res_use_inet6.h: Remove file.
1865 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1866 definition.
1867 (res_use_inet6): Always return false.
1868 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1869 * resolv/resolv_context.h: Adjust file comment.
1870 (struct resolv_context): Update comment on __next field.
1871 (__resolv_context_put): Update comment.
1872 * resolv/tst-res_use_inet6.c: Remove file.
1873 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1874 "inet6" support.
1875 (test_cases): Adjust test case.
1876 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1877 (thread_byname2_af_inet6): Use old byname_inet6 code.
1878 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1879 (gai): Remove do_inet6 argument.
1880 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1881 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1882 (thread_gai_unspec_inet6): Remove functions.
1883 (do_test): Adjust thread_funcs.
1884 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1885 RES_USE_INET6 flag.
1886 (gaih_inet): Do not disable RES_USE_INET6 flag.
1887
1888 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1889
1890 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1891 and remove redundant code.
1892
1893 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1894
1895 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1896 New rule.
1897 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1898 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1899 Likewise.
1900 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1901 Likewise.
1902 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1903 Likewise.
1904 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1905 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1906 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1907 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1908 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1909 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1910 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1911 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1912 wcsrchr-power7.
1913 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1914 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1915 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1916 Remove wcsrchr optimizations.
1917 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1918
1919 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1920 the loop unroll.
1921
1922 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1923 New rule.
1924 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1925 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1926 Likewise.
1927 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1928 Likewise.
1929 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1930 Likewise.
1931 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1932 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1933 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1934 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1935 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1936 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1937 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1938 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1939 wcschr-power7.
1940 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1941 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1942 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1943 Remove wcschr optimizations.
1944 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1945
1946 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1947 the loop unroll.
1948
1949 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1950 New rule.
1951 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1952 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1953 Likewise.
1954 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1955 Likewise.
1956 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1957 Likewise.
1958 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1959 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1960 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1961 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1962 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1963 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1964 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1965 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1966 wcscpy-power7.
1967 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1968 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1969 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1970 Remove wcscpy optimizations.
1971 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1972
1973 * include/loop_unroll.h: New file.
1974 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1975 besides generic implementation.
1976
1977 2019-04-03 DJ Delorie <dj@redhat.com>
1978
1979 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1980 snprintf truncating output.
1981
1982 2019-04-02 DJ Delorie <dj@redhat.com>
1983
1984 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1985 warning.
1986
1987 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1988
1989 [BZ #22964]
1990 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1991 era.
1992 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1993 (mkreftable): Add rules for the new Japanese era and the new dates.
1994
1995 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1996 Rafal Luzynski <digitalfreak@lingonborough.com>
1997
1998 * time/tst-strftime2.c (date_t): Explicitly define the type.
1999 (dates): Use natural month and year numbers to express a date.
2000 (is_before): New function to compare dates.
2001 (mkreftable): Minor improvements to simplify maintenance.
2002 (do_test): Reflect the changes in dates array.
2003
2004 [BZ #24293]
2005 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
2006 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
2007 * time/tst-strftime2.c (locales): Likewise.
2008 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
2009 2010-04-01, and 2011-04-01.
2010 (mkreftable): Add rules for the new locales and the new dates.
2011
2012 2019-04-01 Carlos O'Donell <carlos@redhat.com>
2013
2014 * localedata/locales/ja_JP: Add comments to era entries.
2015
2016 2019-04-01 DJ Delorie <dj@redhat.com>
2017
2018 [BZ #24394]
2019 * time/strptime_l.c (%Ey): Fix fencepost error.
2020 * time/tst-strftime3.c: New.
2021 * time/Makefile (tests): Add tst-strftime3.
2022
2023 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
2024
2025 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
2026 conditional branch to DIVBYZERO. Fix unwind info.
2027 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
2028 excb after conditional branch to $powerof2. Add missing unop
2029 instructions and .align directives and reorder instructions to
2030 match __divqu.
2031
2032 2019-04-01 Richard Henderson <rth@twiddle.net>
2033
2034 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
2035 Do not redefine.
2036 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
2037 Do not redefine.
2038
2039 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
2040
2041 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
2042 $libc_cv_riscv_float_abi in `test' invocation.
2043 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
2044
2045 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
2046
2047 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
2048 asm with builtin.
2049 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
2050 Likewise.
2051 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
2052 (_GET_SI_FPSCR): Likewise.
2053 (_SET_SI_FPSCR): Likewise.
2054
2055 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2056
2057 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
2058 clang 2.8.
2059 (signbit): Use builtin for clang 3.3.
2060 (isinf): Use builtin for clang 3.7.
2061
2062 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2063
2064 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
2065
2066 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
2067
2068 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
2069 quote in printf.
2070
2071 2019-03-25 Mike Crowe <mac@mcrowe.com>
2072
2073 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
2074 pthread_rwlock_timedrdlock with calls to
2075 pthread_rwlock_timedwrlock to ensure that the latter is tested
2076 too. Use new function name in diagnostic messages too.
2077
2078 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
2079 (do_test) Use libsupport test macros rather than hand-coded
2080 conditionals and error messages. Ensure that sem_init returns zero
2081 rather than not -1. Use <support/test-driver.c> rather than
2082 test-skeleton.c.
2083
2084 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2085 test macros rather than hand-coded conditionals and error messages.
2086 Use <support/test-driver.c> rather than test-skeleton.c.
2087
2088 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2089
2090 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2091
2092 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2093 (NT_MIPS_MSA): Likewise.
2094
2095 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2096
2097 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2098 * benchtests/README: Update description.
2099 * benchtests/bench-timing.h: Default to hp-timing.
2100 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2101 HP_TIMING_PRINT): Remove.
2102 (HP_TIMING_NOW): Add generic implementation.
2103 (hp_timing_t): Change to uint64_t.
2104
2105 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2106 HP_TIMING_INLINE.
2107 * nptl/descr.h: Likewise.
2108 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2109 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2110 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2111 Abstract hp-timing usage with RTLD_* macros.
2112 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2113 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2114 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2115 HP_TIMING_NONAVAIL): Likewise.
2116 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2117 Likewise.
2118 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2119 HP_SMALL_TIMING_AVAIL): Likewise.
2120 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2121 HP_SMALL_TIMING_AVAIL): Likewise.
2122 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2123 HP_SMALL_TIMING_AVAIL): Likewise.
2124 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2125 HP_SMALL_TIMING_AVAIL): Likewise.
2126 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2127 Likewise.
2128 * sysdeps/generic/hp-timing-common.h: Update comment with
2129 HP_TIMING_AVAIL removal.
2130
2131 * include/random-bits.h: New file.
2132 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2133 (__res_context_mkquery): Remove usage hp-timing usage and replace with
2134 random_bits.
2135 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2136 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2137 Likewise.
2138
2139 * include/libc-internal.h (__get_clockfreq): Remove prototype.
2140 * rt/Makefile (clock-routines): Remove get_clockfreq.
2141 * rt/get_clockfreq.c: Remove file.
2142 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2143 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2144 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2145 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2146 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2147
2148 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2149 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2150 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2151 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2152 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2153
2154 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2155 pthread_clock_settime.
2156 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2157 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2158 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2159 * elf/rtld.c (_dl_start_final): Likewise.
2160 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2161 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2162 Remove.
2163 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2164 (_dl_cpuclock_offset): Remove.
2165 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2166 cpuclock_offset_ununsed.
2167 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2168 cpuclock_offset set.
2169 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2170 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2171 * nptl/pthread_clock_gettime.c: Remove file.
2172 * nptl/pthread_clock_settime.c: Likewise.
2173 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2174 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2175 and CLOCK_PROCESS_CPUTIME_ID support.
2176 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2177 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2178 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2179 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2180 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2181 Likewise.
2182 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2183
2184 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2185
2186 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2187 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2188 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2189 New defines.
2190 * sysdeps/s390/memmem-arch13.S: New file.
2191 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2192 if it is only used as fallback.
2193 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2194 * sysdeps/s390/multiarch/ifunc-impl-list.c
2195 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2196
2197 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2198
2199 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2200 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2201 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2202 New defines.
2203 * sysdeps/s390/multiarch/ifunc-impl-list.c
2204 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2205 * sysdeps/s390/strstr-arch13.S: New file.
2206 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2207 if it is only used as fallback.
2208 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2209
2210 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2211
2212 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2213 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2214 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2215 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2216 ifunc selector.
2217 * sysdeps/s390/multiarch/ifunc-impl-list.c
2218 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2219 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2220 S390_IS_ARCH13_MIE3): New defines.
2221
2222 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2223
2224 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2225 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2226 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2227 * sysdeps/s390/configure: Regenerated.
2228
2229 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2230
2231 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2232 Add vxe2, vxp, dflt, sort flags.
2233 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2234 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2235 capabilities.
2236 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2237 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2238 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2239 HWCAP_S390_DFLT): Define.
2240
2241 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2242
2243 [BZ #24372]
2244 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2245 of compiler warning.
2246 * locale/programs/ld-collate.c (collate_output): Likewise.
2247
2248 2019-03-21 DJ Delorie <dj@redhat.com>
2249
2250 [BZ #24372]
2251 * iconv/iconvconfig.c (write_output): Replace floating point math
2252 with integer math to avoid imprecise results.
2253 * locale/programs/ld-collate.c (collate_output): Likewise.
2254
2255 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2256
2257 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2258 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2259
2260 2019-03-20 mansayk <6688000@gmail.com>
2261
2262 [BZ #24296]
2263 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2264 (abday): Likewise, but remove the trailing dots.
2265
2266 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2267
2268 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2269 macro.
2270 (HWCAP_PACA): Likewise.
2271 (HWCAP_PACG): Likewise.
2272 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2273 Increase to 32.
2274 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2275
2276 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2277
2278 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2279 should be handled.
2280
2281 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2282
2283 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2284 version to 5.0.
2285 (old_getpagesize): New syscall.
2286
2287 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2288
2289 [BZ #24293]
2290 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2291 * localedata/locales/cmn_TW (era): Likewise.
2292 * localedata/locales/hak_TW (era): Likewise.
2293 * localedata/locales/lzh_TW (era): Likewise.
2294 * localedata/locales/nan_TW (era): Likewise.
2295
2296 2019-03-14 Adam Maris <amaris@redhat.com>
2297
2298 * malloc/malloc.c (_int_malloc): Check for large bin list
2299 corruption when inserting unsorted chunk.
2300
2301 2019-03-14 Florian Weimer <fweimer@redhat.com>
2302
2303 Remove obsolete, never-implemented XSI STREAMS declarations.
2304 * manual/terminal.texi (Allocation): Remove portability note and
2305 adjust example.
2306 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2307 _SC_STREAMS.
2308 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2309 * sysdeps/unix/inet/Subdirs (streams): Remove.
2310 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2311 (conformtest-headers-UNIX98): Likewise.
2312 (conformtest-headers-XOPEN2K): Likewise.
2313 (conformtest-headers-POSIX2008): Likewise.
2314 * posix/compat-streams.c: New file.
2315 * posix/Makefile (routines): Add it.
2316 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2317 getpmsg, isastream, putmsg, putpmsg.
2318 (GLIBC_2.30): New section.
2319 * bits/stropts.h: Remove file.
2320 * bits/xtitypes.h: Likewise.
2321 * conform/data/stropts.h-data: Likewise.
2322 * include/stropts.h: Likewise.
2323 * include/sys/stropts.h: Likewise.
2324 * include/xtitypes.h: Likewise.
2325 * streams/Makefile: Likewise.
2326 * streams/fattach.c: Likewise.
2327 * streams/fdetach.c: Likewise.
2328 * streams/getmsg.c: Likewise.
2329 * streams/getpmsg.c: Likewise.
2330 * streams/isastream.c: Likewise.
2331 * streams/putmsg.c: Likewise.
2332 * streams/putpmsg.c: Likewise.
2333 * streams/stropts.h: Likewise.
2334 * streams/sys/stropts.h: Likewise.
2335 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2336 * sysdeps/s390/bits/xtitypes.h: Likewise.
2337 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2338 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2339 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2340 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2341 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2342 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2343 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2344 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2345 * sysdeps/x86/bits/xtitypes.h: Likewise.
2346
2347 2019-03-14 Florian Weimer <fweimer@redhat.com>
2348
2349 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2350 libnss_files.
2351 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2352 but not with libnss_files.
2353 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2354
2355 2019-03-14 Zack Weinberg <zackw@panix.com>
2356
2357 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2358 Specify encoding="utf-8" when opening headers to check.
2359
2360 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2361
2362 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2363 version to 5.0.
2364 (Context.checkout_tar): Handle variable major version for Linux
2365 kernel.
2366
2367 2019-03-13 Florian Weimer <fweimer@redhat.com>
2368
2369 [BZ #24047]
2370 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2371
2372 2019-03-13 Zack Weinberg <zackw@panix.com>
2373
2374 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2375 Move to stdlib.
2376 * include/inttypes.h: Adjust to match.
2377 * include/stdint.h: New wrapper.
2378
2379 2019-03-13 Zack Weinberg <zackw@panix.com>
2380
2381 * scripts/check-obsolete-constructs.py: New test script.
2382 * scripts/check-installed-headers.sh: Remove tests for
2383 obsolete typedefs, superseded by check-obsolete-constructs.py.
2384 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2385 as a special test. Update commentary.
2386 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2387 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2388 Update commentary.
2389 * posix/sys/types.h (__u_intN_t): Remove.
2390 (u_int8_t): Typedef using __uint8_t.
2391 (u_int16_t): Typedef using __uint16_t.
2392 (u_int32_t): Typedef using __uint32_t.
2393 (u_int64_t): Typedef using __uint64_t.
2394
2395 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2396
2397 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2398 call _dl_procinfo.
2399 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2400 Ignore types other than AT_HWCAP.
2401 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2402 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2403 Likewise.
2404 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2405 in the case of falling back to generic output mechanism.
2406 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2407 Likewise.
2408
2409 2019-03-12 Florian Weimer <fweimer@redhat.com>
2410
2411 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2412
2413 2019-03-12 Florian Weimer <fweimer@redhat.com>
2414
2415 [BZ #24047]
2416 resolv: Enable full ICMP errors for UDP DNS sockets
2417 * resolv/res_enable_icmp.c: New file.
2418 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2419 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2420 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2421 socket.
2422
2423 2019-03-11 Mao Han <han_mao@c-sky.com>
2424
2425 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2426 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2427
2428 2019-03-11 Mao Han <han_mao@c-sky.com>
2429
2430 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2431 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2432 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2433
2434 2019-03-11 Mao Han <han_mao@c-sky.com>
2435
2436 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2437 directly.
2438 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2439 definition.
2440
2441 2019-03-11 Mao Han <han_mao@c-sky.com>
2442
2443 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2444 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2445 in mcontext_t
2446
2447 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2448
2449 [BZ #24307]
2450 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2451 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2452 Unicode 12.0.0.
2453 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2454 * localedata/unicode-gen/PropList.txt: Likewise.
2455 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2456 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2457 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2458 * localedata/charmaps/UTF-8: Regenerate.
2459 * localedata/locales/i18n_ctype: Likewise.
2460 * localedata/locales/tr_TR: Likewise.
2461 * localedata/locales/translit_circle: Likewise.
2462 * localedata/locales/translit_cjk_compat: Likewise.
2463 * localedata/locales/translit_combining: Likewise.
2464 * localedata/locales/translit_compat: Likewise.
2465 * localedata/locales/translit_font: Likewise.
2466 * localedata/locales/translit_fraction: Likewise.
2467
2468 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2469
2470 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2471 than after operators.
2472 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2473 (setitimer_locked): Likewise.
2474 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2475 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2476 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2477 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2478 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2479 (PPC_CPU_SUPPORTED): Likewise.
2480 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2481 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2482 (stat_overflow): Likewise.
2483 (statfs_overflow): Likewise.
2484 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2485 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2486 (eq_ttyname_r): Likewise.
2487 (run_chroot_tests): Likewise.
2488
2489 2019-03-07 Florian Weimer <fweimer@redhat.com>
2490
2491 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2492 header check.
2493
2494 2019-03-07 Martin Liska <mliska@suse.cz>
2495
2496 * math/Makefile: Change location where math-vector-fortran.h is
2497 installed.
2498 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2499 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2500 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2501 * scripts/check-installed-headers.sh: Skip Fortran header files.
2502 * scripts/check-wrapper-headers.py: Likewise.
2503
2504 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2505
2506 * nptl/nptl-init.c (__have_futex_clock_realtime,
2507 __have_futex_clock_realtime): Remove definition.
2508 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2509 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2510 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2511 __ASSUME_FUTEX_CLOCK_REALTIME support.
2512 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2513 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2514 * sysdeps/unix/sysv/linux/kernel-features.h
2515 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2516 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2517 Adjust comment.
2518
2519 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2520
2521 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2522 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2523 __GI___wcscpy and wcscpy.
2524
2525 2019-03-04 Florian Weimer <fweimer@redhat.com>
2526
2527 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2528 declaration.
2529 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2530 defined.
2531
2532 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2533
2534 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2535 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2536
2537 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2538
2539 [BZ #24162]
2540 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2541 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2542
2543 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2544
2545 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2546 tests.
2547 (do_test): Likewise.
2548 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2549 (do_test_call_varg): Likewise.
2550 (do_test_call_rarg): Likewise.
2551 * sysdeps/ieee754/ldbl-opt/Makefile
2552 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2553 tst-nldbl-error.
2554 ($(objpfx)tst-nldbl-warn.c): New rule.
2555 ($(objpfx)tst-nldbl-error.c): Likewise.
2556 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2557 New variables.
2558
2559 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2560
2561 [BZ #23984]
2562 * include/bits/error-ldbl.h: New file.
2563 * include/error.h: Include stdarg.h. Declare internal functions
2564 __error_internal and __error_at_line_internal.
2565 * misc/Makefile (headers): Add bits/error-ldbl.h.
2566 * misc/bits/error-ldbl.h: New file.
2567 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2568 avoid the inclusion of bits/error.h.
2569 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2570 and __nldbl_error_at_line.
2571 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2572 (__nldbl_error, __ndlbl_error_at_line): New functions.
2573 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2574 Redirect error and error_at_line.
2575 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2577 Likewise.
2578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2579 Likewise.
2580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2581 Likewise.
2582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2583 Likewise.
2584 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2585 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2586 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2587
2588 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2589
2590 [BZ #23984]
2591 * include/bits/err-ldbl.h: New file.
2592 * include/err.h: Add prototypes for the internal functions:
2593 __vwarnx_internal and __vwarn_internal.
2594 * misc/Makefile (headers): Add bits/err-ldbl.h.
2595 * misc/bits/err-ldbl.h: New file.
2596 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2597 defined, i.e.: when -mlong-double-64 is in use.
2598 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2599 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2600 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2601 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2602 (VA_CALL): New macro.
2603 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2604 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2605 functions.
2606 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2607 declare prototypes for the new functions.
2608 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2610 Likewise.
2611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2612 Likewise.
2613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2614 Likewise.
2615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2616 Likewise.
2617 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2618 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2619 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2620
2621 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2622
2623 * sysdeps/ieee754/ldbl-opt/Makefile
2624 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2625 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2626 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2627
2628 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2629
2630 [BZ #23983]
2631 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2632 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2633 * argp/bits/argp-ldbl.h: New file.
2634 * include/argp.h: Include stdarg.h. Add prototypes for internal
2635 functions: __argp_error_internal and __argp_failure_internal.
2636 * include/bits/argp-ldbl.h: New file.
2637 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2638 __nldbl_argp_error and __nldbl_argp_failure.
2639 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2640 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2641 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2642 Redirect argp_error and argp_failure calls.
2643 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2644 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2645 Likewise.
2646 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2647 Likewise.
2648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2649 Likewise.
2650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2651 Likewise.
2652 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2653 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2654 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2655
2656 2019-03-01 Florian Weimer <fweimer@redhat.com>
2657
2658 [BZ #20419]
2659 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2660 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2661 code, to avoid creating an ABI tag note.
2662 (modules-names-nobuild): Add tst-big-note-lib.
2663
2664 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2665
2666 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2667 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2668
2669 2019-03-01 Florian Weimer <fweimer@redhat.com>
2670
2671 [BZ #20271]
2672 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2673 (__netlink_assert_response): Add additional missing newlines.
2674
2675 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2676
2677 * sysdeps/powerpc/powerpc32/dl-machine.c
2678 (__elf_machine_fixup_plt): Use space before '('.
2679 (__process_machine_rela): Likewise.
2680 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2681 Likewise.
2682 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2683 Likewise.
2684 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2685 Likewise.
2686 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2687 (pattern): Likewise.
2688 (delta): Likewise.
2689 (check_result): Likewise.
2690 (check_excepts): Likewise.
2691 (check_op): Likewise.
2692 (fail_xr): Likewise.
2693 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2694 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2695 (SCNHSZ): Likewise.
2696 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2697 Likewise.
2698 (ARGS): Likewise.
2699 (__makecontext): Likewise.
2700 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2701 Likewise.
2702
2703 2019-02-28 Florian Weimer <fweimer@redhat.com>
2704
2705 [BZ #23937]
2706 elf: Add test with a local IFUNC resolver.
2707 * elf/ifuncmain9.c: New file.
2708 * elf/ifuncmain9pic.c: Likewise.
2709 * elf/ifuncmain9picstatic.c: Likewise.
2710 * elf/ifuncmain9pie.c: Likewise.
2711 * elf/ifuncmain9static.c: Likewise.
2712 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2713 ifuncmain9static, ifuncmain9picstatic.
2714 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2715 Add ifuncmain9, ifuncmain9pic.
2716 * elf/Makefile [multi-arch && build-shared && have-fpie]
2717 (ifunc-pie-tests): Add ifuncmain9pie.
2718 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2719 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2720 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2721
2722 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2723
2724 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2725 * configure: Regenerated.
2726 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2727
2728 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2729
2730 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2731 symbol as __wcspcy instead of wcscpy.
2732
2733 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2734
2735 * include/stdio.h (__renameat2): New hidden prototype.
2736 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2737 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2738 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2739 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2740
2741 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2742
2743 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2744 if statement.
2745
2746 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2747 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2748 * benchtests/bench-strlen.c (do_test): Likewise.
2749 (test_main): Likewise.
2750 * catgets/gencat.c (read_old): Likewise.
2751 * elf/cache.c (load_aux_cache): Likewise.
2752 * iconvdata/bug-iconv8.c (do_test): Likewise.
2753 * math/test-tgmath-ret.c (do_test): Likewise.
2754 * nis/nis_call.c (rec_dirsearch): Likewise.
2755 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2756 * nptl/tst-audit-threads.c (do_test): Likewise.
2757 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2758 * nss/nss_test1.c (init): Likewise.
2759 * nss/test-netdb.c (test_hosts): Likewise.
2760 * posix/execvpe.c (maybe_script_execute): Likewise.
2761 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2762 * stdio-common/tst-printf.c (do_test): Likewise.
2763 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2764 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2765 * stdlib/qsort.c (STACK_SIZE): Likewise.
2766 * stdlib/test-canon.c (do_test): Likewise.
2767 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2768 * string/memcmp.c (OPSIZ): Likewise.
2769 * string/test-strcpy.c (do_test): Likewise.
2770 (do_random_tests): Likewise.
2771 * string/test-strlen.c (do_test): Likewise.
2772 (test_main): Likewise.
2773 * string/test-strrchr.c (do_test): Likewise.
2774 (do_random_tests): Likewise.
2775 * string/tester.c (test_memrchr): Likewise.
2776 (test_memchr): Likewise.
2777 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2778 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2779 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2780 (read_encoded_value_with_base): Likewise.
2781 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2782 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2783 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2784 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2785 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2786 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2787 Likewise.
2788 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2789 Likewise.
2790 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2791 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2792 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2793 Likewise.
2794 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2795 Likewise.
2796 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2797 Likewise.
2798 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2799 Likewise.
2800 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2801 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2802 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2803 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2804 * time/test_time.c (main): Likewise.
2805
2806 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2807
2808 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2809
2810 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2811 wmemcpy.
2812
2813 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2814 wmemcpy.
2815
2816 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2817
2818 * include/wchar.h (__wcscpy): New prototype.
2819 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2820 (__wcscpy): Route internal symbol to generic implementation.
2821 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2822 Add internal __wcscpy alias.
2823 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2824 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2825 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2826 * wcsmbs/wcscpy.c (wcscpy): Add
2827 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2828 use generic implementation.
2829 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2830
2831 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2832 wmemset.
2833
2834 * sysdeps/m68k/wcpcpy.c: Remove file.
2835 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2836
2837 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2838
2839 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2840 than after operators.
2841 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2842 * sysdeps/mach/hurd/getcwd.c
2843 (__hurd_canonicalize_directory_name_internal): Likewise.
2844 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2845 (pthread_mutex_consistent): Likewise.
2846 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2847 Likewise.
2848 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2849 (__pthread_mutex_transfer_np): Likewise.
2850 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2851 (__pthread_mutex_unlock): Likewise.
2852 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2853 (mtx_owned_p): Likewise.
2854 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2855 (pthread_mutexattr_getrobust): Likewise.
2856 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2857 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2858 Likewise.
2859 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2860 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2861 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2862 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2863 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2864 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2865 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2866 Likewise.
2867 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2868 Likewise.
2869 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2870 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2871 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2872 (____longjmp_chk): Likewise.
2873 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2874 Likewise.
2875 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2876 (INTERNAL_SYSCALL): Likewise.
2877 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2878 (INTERNAL_SYSCALL): Likewise.
2879 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2880 (__get_clockfreq_via_cpuinfo): Likewise.
2881
2882 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2883 comments.
2884 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2885 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2886 (WORD_COPY_BWD): Likewise.
2887 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2888 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2889 Likewise.
2890 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2891 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2892 comment.
2893 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2894
2895 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2896
2897 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2898 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2899 rather than after operators.
2900 * elf/cache.c (print_cache): Likewise.
2901 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2902 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2903 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2904 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2905 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2906 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2907 (reauth_proc): Likewise.
2908 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2909 (__file_name_split_at): Likewise.
2910 (__directory_name_split_at): Likewise.
2911 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2912 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2913 * iconv/gconv_dl.c (do_print): Likewise.
2914 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2915 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2916 * locale/setlocale.c (new_composite_name): Likewise.
2917 * malloc/memusagestat.c (main): Likewise.
2918 * misc/fstab.c (fstab_convert): Likewise.
2919 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2920 Likewise.
2921 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2922 (getgrent_next_file): Likewise.
2923 (internal_getgrnam_r): Likewise.
2924 (internal_getgrgid_r): Likewise.
2925 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2926 Likewise.
2927 (internal_getgrent_r): Likewise.
2928 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2929 (getpwent_next_nss): Likewise.
2930 (getpwent_next_file): Likewise.
2931 (internal_getpwnam_r): Likewise.
2932 (internal_getpwuid_r): Likewise.
2933 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2934 Likewise.
2935 (getspent_next_nss): Likewise.
2936 (internal_getspnam_r): Likewise.
2937 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2938 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2939 * string/strchr.c (STRCHR): Likewise.
2940 * string/strchrnul.c (STRCHRNUL): Likewise.
2941 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2942 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2943 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2944 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2945 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2946 Likewise.
2947 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2948 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2949 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2950 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2951 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2952 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2953 (open_file): Likewise.
2954 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2955 (pthread_mutexattr_setprotocol): Likewise.
2956 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2957 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2958 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2959 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2960 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2961 Likewise.
2962 (elf_machine_rela): Likewise.
2963 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2964 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2965 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2966 * sysdeps/posix/rename.c (rename): Likewise.
2967 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2968 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2969 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2970 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2971 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2972 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2973 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2974 Likewise.
2975 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2976 Likewise.
2977 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2978 * time/tzfile.c (__tzfile_compute): Likewise.
2979
2980 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2981
2982 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2983 rather than after operators.
2984 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2985 * crypt/md5.c (md5_finish_ctx): Likewise.
2986 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2987 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2988 * elf/cache.c (load_aux_cache): Likewise.
2989 * elf/dl-load.c (open_verify): Likewise.
2990 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2991 * elf/readelflib.c (process_elf_file): Likewise.
2992 * elf/rtld.c (dl_main): Likewise.
2993 * elf/sprof.c (generate_call_graph): Likewise.
2994 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2995 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2996 * hurd/dtable.c (reauth_dtable): Likewise.
2997 * hurd/getdport.c (__getdport): Likewise.
2998 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2999 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
3000 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
3001 Likewise.
3002 * hurd/hurdioctl.c (fioctl): Likewise.
3003 * hurd/hurdselect.c (_hurd_select): Likewise.
3004 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
3005 (STOPSIGS): Likewise.
3006 * hurd/hurdstartup.c (_hurd_startup): Likewise.
3007 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
3008 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
3009 * hurd/msgportdemux.c (msgport_server): Likewise.
3010 * hurd/setauth.c (_hurd_setauth): Likewise.
3011 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
3012 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
3013 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
3014 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
3015 * login/tst-utmp.c (do_check): Likewise.
3016 (simulate_login): Likewise.
3017 * mach/lowlevellock.h (lll_lock): Likewise.
3018 (lll_trylock): Likewise.
3019 * math/test-fenv.c (ALL_EXC): Likewise.
3020 * math/test-fenvinline.c (ALL_EXC): Likewise.
3021 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
3022 * nis/nis_call.c (__do_niscall3): Likewise.
3023 * nis/nis_callback.c (cb_prog_1): Likewise.
3024 * nis/nis_defaults.c (searchaccess): Likewise.
3025 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
3026 * nis/nis_ismember.c (internal_ismember): Likewise.
3027 * nis/nis_local_names.c (nis_local_principal): Likewise.
3028 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
3029 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
3030 Likewise.
3031 * nis/ypclnt.c (yp_match): Likewise.
3032 (yp_first): Likewise.
3033 (yp_next): Likewise.
3034 (yp_master): Likewise.
3035 (yp_order): Likewise.
3036 * nscd/hstcache.c (cache_addhst): Likewise.
3037 * nscd/initgrcache.c (addinitgroupsX): Likewise.
3038 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
3039 (internal_getpwuid_r): Likewise.
3040 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
3041 * posix/glob.h (__GLOB_FLAGS): Likewise.
3042 * posix/regcomp.c (peek_token): Likewise.
3043 (peek_token_bracket): Likewise.
3044 (parse_expression): Likewise.
3045 * posix/regexec.c (sift_states_iter_mb): Likewise.
3046 (check_node_accept_bytes): Likewise.
3047 * posix/tst-spawn3.c (do_test): Likewise.
3048 * posix/wordexp-test.c (testit): Likewise.
3049 * posix/wordexp.c (parse_tilde): Likewise.
3050 (exec_comm): Likewise.
3051 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
3052 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
3053 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
3054 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
3055 * stdio-common/tst-fileno.c (do_test): Likewise.
3056 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
3057 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
3058 * stdlib/strtod_l.c (round_and_return): Likewise.
3059 (____STRTOF_INTERNAL): Likewise.
3060 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
3061 * string/strcspn.c (STRCSPN): Likewise.
3062 * string/test-memmem.c (simple_memmem): Likewise.
3063 * termios/tcsetattr.c (tcsetattr): Likewise.
3064 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
3065 * time/asctime.c (asctime_internal): Likewise.
3066 * time/strptime_l.c (__strptime_internal): Likewise.
3067 * time/sys/time.h (timercmp): Likewise.
3068 * time/tzfile.c (__tzfile_compute): Likewise.
3069
3070 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
3071
3072 [BZ #21915]
3073 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
3074
3075 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3076
3077 * argp/argp-help.c (__argp_error_internal): New function,
3078 renamed from __argp_error, but that takes a 'mode_flags'
3079 parameter to control the format of long double parameters.
3080 (__argp_error): Converted into a call __argp_error_internal.
3081 (__argp_failure_internal): New function, renamed from
3082 __argp_failure, but that takes a 'mode_flags' parameter.
3083 (__argp_failure): Converted into a call __argp_failure_internal.
3084 * misc/err.c (__vwarnx_internal): New function, renamed from
3085 vwarnx, but that takes a 'mode_flags' parameter.
3086 (vwarnx): Converted into a call to __vwarnx_internal.
3087 (__vwarn_internal): New function, renamed from vwarn, but that
3088 takes a 'mode_flags' parameter.
3089 (vwarn): Converted into a call to __vwarn_internal.
3090 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3091 call to __vfxprintf with 'mode_flags'.
3092 (__error_internal): New function, renamed from error, but that
3093 takes a 'mode_flags' parameter.
3094 (error): Converted into a call to __error_internal.
3095 (__error_at_line_internal): New function, renamed from
3096 error_at_line, but that takes a 'mode_flags' parameter.
3097 (error_at_line): Converted into a call to
3098 __error_at_line_internal.
3099 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3100 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3101 Likewise.
3102
3103 2019-02-20 Martin Liska <mliska@suse.cz>
3104
3105 * math/Makefile: Install math-vector-fortran.h.
3106 * bits/math-vector-fortran.h: New file.
3107 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3108
3109 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3110
3111 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3112 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3113
3114 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
3115
3116 * nptl/pthread_mutex_trylock.c: Fix comment.
3117
3118 2019-02-19 Carlos O'Donell <carlos@redhat.com>
3119
3120 * nptl/pthread_tryjoin.c: Fix comment.
3121
3122 2019-02-18 Joseph Myers <joseph@codesourcery.com>
3123
3124 [BZ #24231]
3125 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3126 after R_SPARC_H34 case.
3127
3128 2019-02-18 Florian Weimer <fweimer@redhat.com>
3129
3130 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3131 (getanswer): Do not call Dprintf.
3132 (res_gethostbyname2_context): Likewise.
3133 (res_gethostbyaddr_context): Likewise.
3134
3135 2019-02-18 Florian Weimer <fweimer@redhat.com>
3136
3137 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3138 declaration.
3139 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3140 Remove definitions.
3141 * libio/stdfiles.c: Update comment.
3142 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
3143 set _IO_stdin, _IO_stdout, _IO_stderr.
3144 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3145 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3146 inline function.
3147 (_IO_deallocate_file): New inline function.
3148 * libio/iolibio.h (_IO_vprintf): Remove definition.
3149 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3150 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3151 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3152 _IO_legacy_file.
3153 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3154 __builtin_expect. Use _IO_legacy_file.
3155
3156 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
3157
3158 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3159 Initialize ctid with a known value and remove update of ctid
3160 after clone.
3161 (wait_tid): Adjust arguments and call futex_wait with ctid_val
3162 as assumed current value of ctid_ptr.
3163
3164 2019-02-16 Florian Weimer <fweimer@redhat.com>
3165
3166 Check that non-sysdeps headers have wrapper headers.
3167 * scripts/check-wrapper-headers.py: New file.
3168 * Makefile (tests-special): Add check-wrapper-headers.out.
3169 (check-wrapper-headers.out): New target.
3170 * Rules (tests-special): Add check-wrapper-headers.out.
3171 (check-wrapper-headers.out): New target.
3172
3173 2019-02-16 Florian Weimer <fweimer@redhat.com>
3174
3175 Add missing header wrappers under include/.
3176 * include/ar.h: New file.
3177 * include/bits/mqueue2.h: Likewise.
3178 * include/bits/stdio.h: Likewise.
3179 * include/bits/stdio2.h: Likewise.
3180 * include/fstab.h: Likewise.
3181 * include/fts.h: Likewise.
3182 * include/lastlog.h: Likewise.
3183 * include/netinet/icmp6.h: Likewise.
3184 * include/netinet/igmp.h: Likewise.
3185 * include/netinet/ip6.h: Likewise.
3186 * include/re_comp.h: Likewise.
3187 * include/regexp.h: Likewise.
3188 * include/rpcsvc/bootparam.h: Likewise.
3189 * include/rpcsvc/yp_prot.h: Likewise.
3190 * include/sys/random.h: Likewise.
3191 * include/sys/stropts.h: Likewise.
3192 * include/sys/ttychars.h: Likewise.
3193 * include/sys/vfs.h: Likewise.
3194 * include/wait.h: Likewise.
3195
3196 2019-02-16 Florian Weimer <fweimer@redhat.com>
3197
3198 * nptl_db/proc_service.h: Move to ...
3199 * sysdeps/nptl/proc_service.h: ... here.
3200 * nptl_db/thread_db.h: Move to ...
3201 * sysdeps/nptl/thread_db.h: ... here.
3202 * nptl/descr.h: Include <thread_db.h>.
3203
3204 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3205
3206 * io/Makefile (tests): Add tst-lockf.
3207 * io/lockf.c (lockf): Use __fcntl and only define for
3208 !__OFF_T_MATCHES_OFF64_T.
3209 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3210 __OFF_T_MATCHES_OFF64_T case.
3211 * io/tst-lockf.c: New file.
3212 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3213 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3214 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3215 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3216 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3218 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3219 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3220 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3221
3222 2019-02-15 Florian Weimer <fweimer@redhat.com>
3223
3224 [BZ #24211]
3225 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3226 pd->result after the thread descriptor has been freed.
3227
3228 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3229
3230 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3231 from function return type.
3232
3233 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3234
3235 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3236
3237 * scripts/test_printers_common.py: Set TERM to a known harmless
3238 value.
3239
3240 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3241
3242 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3243 (xdr_u_int): Likewise.
3244 (xdr_enum): Likewise.
3245 (xdr_bytes): Reword fall-through comment.
3246 (xdr_string): Likewise.
3247
3248 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3249
3250 [BZ #2421]
3251 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3252 (tests): Add tst-join8 tst-join9.
3253 * nptl/lll_timedwait_tid.c: Remove file.
3254 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3255 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3256 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3257 * nptl/pthread_join_common.c (timedwait_tid): New function.
3258 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3259 is set.
3260 * nptl/tst-join5.c (thread_join): New function.
3261 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3262 check.
3263 * nptl/tst-join8.c: New file.
3264 * nptl/tst-join9.c: Likewise.
3265 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3266 lll_futex_timed_wait_cancel): Add generic macros.
3267 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3268 Remove definitions.
3269 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3270 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3271 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3272 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3273 Remove function.
3274 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3275 Likewise.
3276 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3277 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3278 (lll_futex_timed_wait_cancel): New macro.
3279
3280 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3281
3282 * benchtests/Makefile: Add malloc-simple benchmark.
3283 * benchtests/bench-malloc-simple.c: New benchmark.
3284
3285 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3286
3287 * benchtests/bench-memmove.c (do_one_test): Remove unused
3288 ORIG_SRC.
3289 (do_test): Adjust.
3290 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3291 ORIG_SRC.
3292 (do_test): Adjust.
3293
3294 2019-01-13 Jim Wilson <jimw@sifive.com>
3295
3296 [BZ #24040]
3297 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3298 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3299 (func): New.
3300 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3301 call func directly.
3302 * nptl/Makefile (tests): Add tst-unwind-thread.
3303 (CFLAGS-tst-unwind-thread.c): Define.
3304 * nptl/tst-unwind-thread.c: New file.
3305 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3306 as undefined.
3307
3308 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3309
3310 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3311 comment wording.
3312 * nis/nis_call.c (__do_niscall3): Likewise.
3313
3314 * catgets/gencat.c (normalize_line): Use braces around empty
3315 'else' body.
3316 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3317 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3318 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3319 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3320 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3321 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3322 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3323 definition.
3324
3325 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3326 execlp returns.
3327
3328 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3329
3330 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3331 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3332 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3333 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3334 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3335 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3336 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3337 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3338 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3339 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3340 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3341 * benchtests/bench-bcopy.c: Delete file.
3342 * benchtests/bench-bzero.c: Likewise.
3343 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3344 (simple_memccpy): Remove.
3345 (generic_memccpy): Add function.
3346 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3347 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3348 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3349 (generic_mempcpy): Add new function.
3350 * benchtests/bench-memset.c (simple_bzero): Remove.
3351 (builtin_bzero): Remove.
3352 (builtin_memset): Remove.
3353 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3354 (generic_rawmemchr): Add new function.
3355
3356 2019-02-12 Florian Weimer <fweimer@redhat.com>
3357
3358 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3359
3360 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3361
3362 [BZ #24122]
3363 * elf/Makefile (tests): Add tst-audit13.
3364 (modules-names): Add tst-audit13mod1.
3365 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3366 rule.
3367 * elf/tst-audit13.c: New file.
3368 * elf/tst-audit13mod1.c: Likewise.
3369
3370 2019-02-12 Florian Weimer <fweimer@redhat.com>
3371
3372 [BZ #24122]
3373 * elf/rtld.c (unload_audit_module): New function.
3374 (report_audit_module_load_error): Likewise.
3375 (load_audit_module): Likewise. Extracted from dl_main. Call
3376 _dl_close if the laversion symbol cannot be found. Use early
3377 returns for error handling. Add malloc error check. Check for a
3378 zero return value from la_version. Remove spurious comment about
3379 static TLS initialization. Remove useless casts.
3380 (notify_audit_modules_of_loaded_object): New function. Extracted
3381 from dl_main.
3382 (load_audit_module): Likewise.
3383 (dl_main): Call load_audit_modules.
3384
3385 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3386
3387 * elf/dl-exception.c (_dl_exception_create_format): Add
3388 fall-through comments.
3389 * elf/ldconfig.c (parse_conf_include): Likewise.
3390 * elf/rtld.c (print_statistics): Likewise.
3391 * locale/programs/charmap.c (parse_charmap): Likewise.
3392 * misc/mntent_r.c (__getmntent_r): Likewise.
3393 * posix/wordexp.c (parse_arith): Likewise.
3394 (parse_backtick): Likewise.
3395 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3396 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3397 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3398
3399 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3400
3401 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3402 Use float instead of double.
3403
3404 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3405
3406 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3407
3408 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3409
3410 * sysdeps/powerpc/bits/mathinline.h: Remove.
3411
3412 2019-02-08 Florian Weimer <fweimer@redhat.com>
3413
3414 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3415 * math/bits/math-finite.h: Move to ...
3416 * bits/math-finite.h: ... here.
3417
3418 2019-02-08 Florian Weimer <fweimer@redhat.com>
3419
3420 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3421 * bits/unistd_ext.h: here.
3422
3423 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3424
3425 [BZ #21915]
3426 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3427 * nss/tst-nss-files-hosts-long.c: New file.
3428 * nss/tst-nss-files-hosts-long.root: New directory.
3429 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3430 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3431
3432 2019-02-08 Florian Weimer <fweimer@redhat.com>
3433
3434 * include/bits/unistd_ext.h: Remove file.
3435 * posix/bits/unistd_ext.h: Move to ...
3436 * sysdeps/generic/bits/unistd_ext.h: ... here.
3437
3438 2019-02-08 Florian Weimer <fweimer@redhat.com>
3439
3440 * include/bits/unistd_ext.h: New file.
3441
3442 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3443
3444 * time/tst-strftime2.c: Use array_length macros instead of magic
3445 numbers.
3446
3447 2019-02-08 Florian Weimer <fweimer@redhat.com>
3448
3449 [BZ #24161]
3450 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3451 argument.
3452 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3453 locking if the new do_locking argument is true.
3454 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3455 __run_fork_handlers.
3456
3457 2019-02-08 Florian Weimer <fweimer@redhat.com>
3458
3459 [BZ #6399]
3460 Linux: Add gettid system call wrapper.
3461 * posix/Makefile (headers): Add bits/unistd_ext.h.
3462 * posix/bits/unistd_ext.h: New file.
3463 * posix/unistd.h: Include it.
3464 * manual/process.texi (Process Identification): Document gettid.
3465 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3466 tst-gettid, tst-gettid-kill.
3467 (tst-gettid): Link with $(shared-thread-library).
3468 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3469 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3470 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3471 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3472 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3473 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3474 Add gettid.
3475 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3476 Likewise.
3477 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3478 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3479 Likewise.
3480 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3481 Likewise.
3482 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3483 Likewise.
3484 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3485 Likewise.
3486 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3487 Likewise.
3488 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3489 Likewise.
3490 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3491 Likewise.
3492 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3493 (GLIBC_2.30): Likewise.
3494 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3495 (GLIBC_2.30): Likewise.
3496 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3497 (GLIBC_2.30): Likewise.
3498 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3499 (GLIBC_2.30): Likewise.
3500 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3501 Likewise.
3502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3503 (GLIBC_2.30): Likewise.
3504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3505 (GLIBC_2.30): Likewise.
3506 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3507 (GLIBC_2.30): Likewise.
3508 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3509 (GLIBC_2.30): Likewise.
3510 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3511 Likewise.
3512 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3513 Likewise.
3514 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3515 Likewise.
3516 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3517 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3518 Likewise.
3519 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3520 Likewise.
3521 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3522 Likewise.
3523 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3524 Likewise.
3525 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3526
3527 2019-02-08 Florian Weimer <fweimer@redhat.com>
3528
3529 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3530 compatibility symbols.
3531
3532 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3533
3534 [BZ #24180]
3535 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3536 Add compiler barriers and comments.
3537
3538 2019-02-07 Florian Weimer <fweimer@redhat.com>
3539
3540 * include/array_length.h (array_length): Do not use a statement
3541 expression and _Static_assert, so that array_length can be used at
3542 file scope and as a constant expression.
3543
3544 2019-02-07 Florian Weimer <fweimer@redhat.com>
3545
3546 * support/xdlfcn.h (xdlmopen): Declare.
3547 * support/xdlmopen.c: New file.
3548 * support/Makefile (libsupport-routines): Add xdlmopen.
3549
3550 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3551
3552 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3553 before return type, without separate inline.
3554 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3555 * elf/dl-tunables.h (tunable_is_name): Likewise.
3556 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3557 (do_set_top_pad): Likewise.
3558 (do_set_mmap_threshold): Likewise.
3559 (do_set_mmaps_max): Likewise.
3560 (do_set_mallopt_check): Likewise.
3561 (do_set_perturb_byte): Likewise.
3562 (do_set_arena_test): Likewise.
3563 (do_set_arena_max): Likewise.
3564 (do_set_tcache_max): Likewise.
3565 (do_set_tcache_count): Likewise.
3566 (do_set_tcache_unsorted_limit): Likewise.
3567 * nis/nis_subr.c (count_dots): Likewise.
3568 * nptl/allocatestack.c (advise_stack_range): Likewise.
3569 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3570 (do_sin): Likewise.
3571 (reduce_sincos): Likewise.
3572 (do_sincos): Likewise.
3573 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3574 (do_set_elision_enable): Likewise.
3575 (TUNABLE_CALLBACK_FNDECL): Likewise.
3576
3577 2019-02-06 Florian Weimer <fweimer@redhat.com>
3578
3579 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3580 (xdlsym): Use dlerror to detect a NULL symbol.
3581
3582 2019-02-06 Florian Weimer <fweimer@redhat.com>
3583
3584 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3585 <stap-probe.h>.
3586 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3587
3588 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3589
3590 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3591
3592 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3593
3594 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3595 __wmemcmp and weak alias to wmemcmp.
3596
3597 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3598
3599 [BZ #23403]
3600 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3601 TLS_TCB_AT_TP tls variant.
3602 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3603 Add alignment checks.
3604 * support/Makefile (libsupport-routines): Add xposix_memalign and
3605 xpthread_setstack.
3606 * support/support.h: Add xposix_memalign.
3607 * support/xthread.h: Add xpthread_attr_setstack.
3608 * support/xposix_memalign.c: New File.
3609 * support/xpthread_attr_setstack.c: Likewise.
3610
3611 2019-02-05 Florian Weimer <fweimer@redhat.com>
3612
3613 [BZ #24164]
3614 arm: Use "nr" constraint for Systemtap probes, to avoid the
3615 compiler using memory operands for constants, due to the "o"
3616 alternative in the default "nor" constraint.
3617 * include/stap-probe.h [USE_STAP_PROBE]: Include
3618 <stap-probe-machine.h>
3619 * sysdeps/generic/stap-probe-machine.h: New file.
3620 * sysdeps/arm/stap-probe-machine.h: Likewise.
3621
3622 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3623
3624 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3625 with 0, not tcache->entries[tc_idx].
3626
3627 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3628 once.
3629
3630 2019-02-04 Andreas Schwab <schwab@suse.de>
3631
3632 [BZ #16976]
3633 [BZ #17396]
3634 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3635 looking up collating elements match against (wide) character
3636 sequence instead of name. Correct alignment adjustment.
3637 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3638 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3639 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3640 (LOCALES): Add cs_CZ.ISO-8859-2.
3641 * posix/tst-fnmatch4.c: New file.
3642 * posix/tst-fnmatch5.c: New file.
3643 * include/wchar.h (__wmemcmp): Declare.
3644 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3645 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3646 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3647 * sysdeps/s390/wmemcmp.c: Likewise.
3648
3649 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3650
3651 [BZ #24155]
3652 CVE-2019-7309
3653 * NEWS: Updated for CVE-2019-7309.
3654 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3655 upper 32 bits of RDX register for x32. Use unsigned Jcc
3656 instructions, instead of signed.
3657 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3658 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3659
3660 2019-02-04 Florian Weimer <fweimer@redhat.com>
3661
3662 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3663 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3664 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3665 Likewise.
3666 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3667 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3668 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3669 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3670 Likewise.
3671 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3672 Likewise.
3673 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3674 Likewise.
3675 (posix_spawn_file_actions_addopen): Likewise.
3676 (posix_spawn_file_actions_addclose): Likewise.
3677 (posix_spawn_file_actions_adddup2): Likewise.
3678 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3679 qualifiers.
3680 (posix_spawn_file_actions_addfchdir_np): Likewise.
3681
3682 2019-02-04 David Newall <glibc@davidnewall.com>
3683
3684 elf: Implement --preload option for the dynamic linker.
3685 * elf/rtld.c (preloadarg): New variable.
3686 (handle_preload_list): Pass through “where” argument to
3687 do_preload.
3688 (dl_main): Handle "--preload" and add second call to
3689 handle_preload_list.
3690 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3691 (tst-rtld-preload-OBJS): Set variable.
3692 (tst-rtld-preload.out): New target.
3693 * elf/tst-rtld-preload.sh: New file.
3694
3695 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3696
3697 * Makefile (testrun.sh): Exit in case of incorrect argument.
3698
3699 2019-02-04 Florian Weimer <fweimer@redhat.com>
3700
3701 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3702 alignment gaps.
3703
3704 2019-02-03 Florian Weimer <fweimer@redhat.com>
3705
3706 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3707 implicit overflow checks.
3708
3709 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3710
3711 * stdlib/isomac.c: Include <unistd.h>.
3712
3713 2019-02-03 Florian Weimer <fweimer@redhat.com>
3714
3715 * include/time.h (__tzfile_default): Use int, not long int, for
3716 the GMT offsets.
3717 * time/tzfile.c (struct ttinfo): Change type of the offset member
3718 to int.
3719 (__tzfile_read): Remove useless cast.
3720 (__tzfile_default): Adjust prototype.
3721 * time/tzset.c (tz_rule): Change type of the offset member to int.
3722 (parse_offset): Change the type of the sign variable to int.
3723
3724 2019-02-03 Florian Weimer <fweimer@redhat.com>
3725
3726 [BZ #24153]
3727 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3728 * libio/getchar.c (getchar): Likewise.
3729 * libio/getchar_u.c (getchar_unlocked): Likewise.
3730 * libio/getwchar.c (getwchar): Likewise.
3731 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3732 * libio/iogets.c (_IO_gets): Likewise.
3733 * libio/vscanf.c (_IO_vscanf): Likewise.
3734 * libio/vwscanf.c (__vwscanf): Likewise.
3735 * libio/tst-bz24153.c: New file.
3736 * libio/Makefile (tests): Add it.
3737
3738 2019-02-02 Florian Weimer <fweimer@redhat.com>
3739
3740 [BZ #14829]
3741 * manual/resource.texi (Basic Scheduling Functions): Add
3742 portability note. Change process to task throughout the section.
3743 Remove incorrect comment about sched_yield as it affects
3744 tasks/threads, not entire processes.
3745 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3746 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3747
3748 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3749
3750 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3751 * configure: Regenerated.
3752 * manual/install.texi (Tools for Compilation): Update minimum GCC
3753 version.
3754 * INSTALL: Regenerated.
3755
3756 2019-02-01 Florian Weimer <fweimer@redhat.com>
3757
3758 * support/support_test_compare_string.c
3759 (support_test_compare_string): Use "string" in error message.
3760 * support/tst-test_compare_string.c (do_test): Adjust.
3761
3762 2019-02-01 Florian Weimer <fweimer@redhat.com>
3763
3764 * support/support_format_address_family.c
3765 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3766
3767 2019-02-01 Florian Weimer <fweimer@redhat.com>
3768
3769 * manual/socket.texi (Internet Address Formats): Clarify the byte
3770 order of struct sockaddr_in, struct sockaddr_in6. Document
3771 sin6_flowinfo and sin6_scope_id.
3772
3773 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3774
3775 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3776 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3777 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3778 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3779 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3780 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3781
3782 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3783
3784 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3785 [!MEMCHR](MEMCHR): Set to __memchr.
3786 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3787 Add memchr_generic and memchr_nosimd.
3788 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3789 (__libc_ifunc_impl_list): Add memchr ifuncs.
3790 * sysdeps/aarch64/multiarch/memchr.c: New file.
3791 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3792 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3793
3794 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3795
3796 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3797 Add memset_emag.
3798 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3799 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3800 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3801 Add IS_EMAG check for ifunc dispatch.
3802 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3803 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3804
3805 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3806
3807 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3808 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3809 Add emag.
3810 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3811 New macro.
3812
3813 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3814
3815 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3816
3817 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3818
3819 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3820 syscall-template file.
3821
3822 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3823 Torvald Riegel <triegel@redhat.com>
3824 Rik Prohaska <prohaska7@gmail.com>
3825
3826 [BZ# 23844]
3827 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3828 tst-rwlock-trywrlock-stall.
3829 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3830 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3831 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3832 Set __wrphase_fute to 1 only if we started the write phase.
3833 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3834 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3835 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3836 * support/xpthread_rwlock_destroy.c: New file.
3837 * support/xthread.h: Declare xpthread_rwlock_destroy.
3838
3839 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3840
3841 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3842 version to 4.0.2.
3843
3844 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3845
3846 [BZ #24051]
3847 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3848 * libio/fileops.c (_IO_new_file_underflow): Likewise
3849 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3850 * libio/putchar.c (putchar): Likewise.
3851 * libio/putchar_u.c (putchar_unlocked): Likewise.
3852 * libio/putwchar.c (putchar): Likewise.
3853 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3854 * libio/tst-bz24051.c: New test.
3855 * libio/Makefile (tests): Add tst-bz24051
3856
3857 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3858
3859 CVE-2019-9169
3860 regex: fix read overrun [BZ #24114]
3861 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3862 https://debbugs.gnu.org/34140
3863 * posix/regexec.c (proceed_next_node):
3864 Do not read past end of input buffer.
3865
3866 2019-01-31 Florian Weimer <fweimer@redhat.com>
3867
3868 [BZ #24059]
3869 * nss/nss_files/files-alias.c (get_next_alias): Handle
3870 continuation line without newline at the end.
3871 * nss/tst-nss-files-alias-truncated.c: New file.
3872 * nss/Makefile [$(build-shared)] (tests): Add
3873 tst-nss-files-alias-truncated.
3874 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3875 * support/namespace.h (struct support_chroot_configuration): Add
3876 aliases member.
3877 (struct support_chroot): Add path_aliases member.
3878 * support/support_chroot.c (support_chroot_create): Handle
3879 aliases.
3880 (support_chroot_free): Free path_aliases.
3881
3882 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3883
3884 * version.h (RELEASE): Set to "development".
3885 (VERSION): Set to "2.29.9000".
3886 * NEWS: Add section for 2.30.
3887
3888 * version.h (RELEASE): Set to "stable".
3889 (VERSION): Set to "2.29".
3890 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3891
3892 * NEWS: Add the list of bugs fixed in 2.29.
3893 * manual/contrib.texi: Update contributors list with some more
3894 names.
3895 * manual/install.texi: Update latest versions of packages
3896 tested.
3897 * INSTALL: Regenerated.
3898
3899 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3900
3901 * po/be.po: Update translations.
3902 * po/bg.po: Likewise.
3903 * po/ca.po: Likewise.
3904 * po/cs.po: Likewise.
3905 * po/da.po: Likewise.
3906 * po/de.po: Likewise.
3907 * po/el.po: Likewise.
3908 * po/eo.po: Likewise.
3909 * po/es.po: Likewise.
3910 * po/fi.po: Likewise.
3911 * po/fr.po: Likewise.
3912 * po/gl.po: Likewise.
3913 * po/hr.po: Likewise.
3914 * po/hu.po: Likewise.
3915 * po/ia.po: Likewise.
3916 * po/id.po: Likewise.
3917 * po/it.po: Likewise.
3918 * po/ja.po: Likewise.
3919 * po/ko.po: Likewise.
3920 * po/lt.po: Likewise.
3921 * po/nb.po: Likewise.
3922 * po/nl.po: Likewise.
3923 * po/pl.po: Likewise.
3924 * po/pt_BR.po: Likewise.
3925 * po/ru.po: Likewise.
3926 * po/rw.po: Likewise.
3927 * po/sk.po: Likewise.
3928 * po/sl.po: Likewise.
3929 * po/sv.po: Likewise.
3930 * po/tr.po: Likewise.
3931 * po/uk.po: Likewise.
3932 * po/vi.po: Likewise.
3933 * po/zh_CN.po: Likewise.
3934 * po/zh_TW.po: Likewise.
3935
3936 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3937
3938 [BZ #24130]
3939 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3940 of $f3 register on $y_is_neg path.
3941
3942 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3943
3944 [BZ #24110]
3945 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3946 sigaltstack.ss_flags.
3947
3948 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3949
3950 [BZ #23758]
3951 * manual/time.texi (strftime): Document "%Ey".
3952 * time/strftime_l.c (__strftime_internal): Set the default width
3953 padding with zero of "%Ey" to 2.
3954
3955 [BZ #24096]
3956 * manual/time.texi (strftime): Document "%EC" and "%EY".
3957 * time/Makefile (tests): Add tst-strftime2.
3958 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3959 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3960 override padding for "%Ey".
3961 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3962 "%Ey" in the subformat as if decorated with that flag.
3963 * time/tst-strftime2.c: New file.
3964
3965 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3966
3967 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3968 are not defined.
3969
3970 [BZ #24122]
3971 * elf/Makefile (tests): Add tst-audit13.
3972 (modules-names): Add tst-audit13mod1.
3973 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3974 rule.
3975 * elf/rtld.c (dl_main): Handle invalid audit module version.
3976 * elf/tst-audit13.c: New file.
3977 * elf/tst-audit13mod1.c: Likewise.
3978
3979 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3980
3981 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3982 returned by __hurd_at_flags.
3983 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3984 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3985 directly instead of __hurd_file_name_lookup.
3986
3987 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3988
3989 * scripts/build-many-glibcs.py (Context.checkout): Default
3990 binutils version to 2.32 branch.
3991
3992 2019-01-21 Florian Weimer <fweimer@redhat.com>
3993
3994 [BZ #20018]
3995 CVE-2016-10739
3996 resolv: Reject trailing characters in host names
3997 * include/arpa/inet.h (__inet_aton_exact): Declare.
3998 (inet_aton): Remove hidden prototype. No longer used internally.
3999 * nscd/gai.c (__inet_aton): Do not define.
4000 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
4001 * nss/digits_dots.c (__inet_aton): Likewise.
4002 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
4003 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
4004 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
4005 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
4006 (tst-resolv-trailing): Likewise.
4007 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
4008 libc.
4009 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
4010 Make static. Add endp parameter.
4011 (__inet_aton_exact): New function.
4012 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
4013 (__inet_addr): Call inet_aton_end.
4014 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
4015 not just IPv6. Call __inet_aton_exact.
4016 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
4017 (tests): Make const. Add additional test cases with trailing
4018 characters.
4019 (do_test): Use array_length.
4020 * resolv/tst-inet_aton_exact.c: New file.
4021 * resolv/tst-resolv-trailing.c: Likewise.
4022 * resolv/tst-resolv-nondecimal.c: Likewise.
4023 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
4024
4025 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4026
4027 [BZ# 24097]
4028 CVE-2019-6488
4029 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
4030 Clear the upper 32 bits of RSI register.
4031 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
4032 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
4033 and tst-size_t-wcsnlen.
4034 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
4035 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
4036
4037 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4038
4039 [BZ# 24097]
4040 CVE-2019-6488
4041 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
4042 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
4043 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
4044 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
4045 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
4046
4047 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4048
4049 [BZ# 24097]
4050 CVE-2019-6488
4051 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
4052 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
4053 * sysdeps/x86_64/strcmp.S: Likewise.
4054 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
4055 tst-size_t-strncmp and tst-size_t-wcsncmp.
4056 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
4057 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
4058 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
4059
4060 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4061
4062 [BZ# 24097]
4063 CVE-2019-6488
4064 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
4065 RDX_LP for length. Clear the upper 32 bits of RDX register.
4066 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
4067 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
4068 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
4069 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
4070
4071 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4072
4073 [BZ# 24097]
4074 CVE-2019-6488
4075 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
4076 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
4077 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
4078 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
4079
4080 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4081
4082 [BZ# 24097]
4083 CVE-2019-6488
4084 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4085 length. Clear the upper 32 bits of RDX register.
4086 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4087 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4088 Likewise.
4089 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4090 Likewise.
4091 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4092 tst-size_t-wmemchr.
4093 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4094
4095 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4096
4097 [BZ# 24097]
4098 CVE-2019-6488
4099 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4100 length. Clear the upper 32 bits of RDX register.
4101 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4102 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4103 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4104 tst-size_t-wmemcmp.
4105 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4106 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4107
4108 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4109
4110 [BZ# 24097]
4111 CVE-2019-6488
4112 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
4113 upper 32 bits of RDX register.
4114 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4115 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4116 tst-size_t-wmemchr.
4117 * sysdeps/x86_64/x32/test-size_t.h: New file.
4118 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4119 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4120
4121 2019-01-18 Florian Weimer <fweimer@redhat.com>
4122
4123 [BZ #24112]
4124 resolv: Do not send queries for non-host-names in nss_dns.
4125 * resolv/nss_dns/dns-host.c (check_name): New function.
4126 (_nss_dns_gethostbyname2_r): Use it.
4127 (_nss_dns_gethostbyname_r): Likewise.
4128 (_nss_dns_gethostbyname4_r): Likewise.
4129
4130 2019-01-21 Florian Weimer <fweimer@redhat.com>
4131
4132 * resolv/inet_addr.c: Reformat to GNU style.
4133 (__inet_addr, __inet_aton): Update comment.
4134
4135 2019-01-18 Florian Weimer <fweimer@redhat.com>
4136
4137 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4138 ("malloc: Use current (C11-style) atomics for fastbin access").
4139 This commit introduces a substantial performance regression on
4140 POWER and Aarch64.
4141 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4142 (REMOVE_FB): Define.
4143 (_int_malloc): Use it and reindent.
4144 (_int_free): Use CAS loop with
4145 catomic_compare_and_exchange_val_rel.
4146 (malloc_consolidate): Use atomic_exchange_acq.
4147
4148
4149 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4150
4151 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
4152 -Wl,-z,now.
4153 (LDFLAGS-tst-minsigstksz-2): Likewise.
4154 (LDFLAGS-tst-minsigstksz-3): Likewise.
4155 (LDFLAGS-tst-minsigstksz-3a): Likewise.
4156 (LDFLAGS-tst-minsigstksz-4): Likewise.
4157
4158 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
4159
4160 * manual/time.texi (strftime): Fix the wording to "alternative" rather
4161 than "alternate".
4162
4163 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
4164
4165 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4166
4167 2019-01-16 Zack Weinberg <zackw@panix.com>
4168
4169 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4170 (xget_sigstack_location): New test support functions.
4171 * support/xsigstack.c: New file, implementing them.
4172 * support/tst-xsigstack.c: New test for them.
4173 * support/Makefile: Update.
4174
4175 * signal/tst-minsigstksz-1.c
4176 * signal/tst-minsigstksz-2.c
4177 * signal/tst-minsigstksz-3.c
4178 * signal/tst-minsigstksz-3a.c
4179 * signal/tst-minsigstksz-4.c: New tests.
4180 * signal/Makefile: Run them.
4181
4182 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4183
4184 * po/libc.pot: Regenerate.
4185
4186 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4187
4188 * math/libm-test-fma.inc (fma_test_data): Set
4189 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4190
4191 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4192
4193 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4194 (do_test): Changed __vector __int128_t to __vector unsigned int.
4195
4196 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4197
4198 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4199 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4200 stpcpy-avx2 and stpncpy-avx2.
4201 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4202 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4203 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4204 and __stpncpy_avx2.
4205 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4206 ifunc-strcpy.h}: rename header for a more generic name.
4207 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4208 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4209 AVX unaligned load is fast and vzeroupper is preferred.
4210 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4211 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4212 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4213 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4214 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4215 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4216
4217 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4218
4219 * argp/argp-help.c: Fix typo in comment.
4220 * misc/sys/cdefs.h: Likewise.
4221 * posix/regexec.c (sift_states_iter_mb): Likewise.
4222 * socket/sockatmark.c: Likewise.
4223 * socket/sys/socket.h: Likewise.
4224 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4225 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4226 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4227 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4228 * sysdeps/unix/sockatmark.c: Likewise.
4229 * time/strptime_l.c: Likewise.
4230
4231 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4232
4233 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4234 missing space after the cast of "_NL_CURRENT".
4235
4236 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4237
4238 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4239 ifdef to fix read of VSCR.
4240 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4241 tst-ucontext-ppc64-vscr.c to test list.
4242 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4243
4244 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4245
4246 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4247 fall-through.
4248
4249 2019-01-09 Jim Wilson <jimw@sifive.com>
4250
4251 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4252
4253 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4254
4255 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4256 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4257 __memcpy_falkor for ares.
4258 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4259 Add new define.
4260 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4261 Add ares cpu.
4262
4263 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4264
4265 [BZ #24066]
4266 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4267 4_FP_W_TYPEs are used for IEEE quad precision.
4268 * soft-fp/extendhftf2.c: Likewise.
4269 * soft-fp/extendsftf2.c: Likewise.
4270 * soft-fp/extendxftf2.c: Likewise.
4271 * soft-fp/trunctfdf2.c: Likewise.
4272 * soft-fp/trunctfhf2.c: Likewise.
4273 * soft-fp/trunctfsf2.c: Likewise.
4274 * soft-fp/trunctfxf2.c: Likewise.
4275 * sysdeps/alpha/ots_cvttx.c: Likewise.
4276 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4277 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4278 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4279 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4280 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4281 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4282 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4283 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4284 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4285 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4286 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4287 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4288 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4289 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4290 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4291 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4292 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4293
4294 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4295
4296 [BZ #24024]
4297 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4298 code with -fmath-errno.
4299 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4300 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4301 * string/test-strerror-errno.c: New file.
4302
4303 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4304
4305 [BZ #24046]
4306 * localedata/locales/en_US (date_fmt): Add, set to
4307 "%a %d %b %Y %r %Z".
4308
4309 2019-01-07 Florian Weimer <fweimer@redhat.com>
4310
4311 [BZ #24063]
4312 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4313 instead of @var{errno}.
4314 (Parsing of Integers): Likewise.
4315 (Parsing of Floats): Likewise.
4316 * manual/filesys.texi (Working with Directory Trees): Likewise.
4317 (Temporary Files): Likewise.
4318 * manual/job.texi (Terminal Access Functions): Likewise.
4319 * manual/llio.texi (Synchronizing I/O): Likewise.
4320 * manual/math.texi (SVID Random): Likewise.
4321 * manual/message.texi (The catgets Functions): Likewise.
4322 (Translation with gettext): Likewise.
4323 (Locating gettext catalog): Likewise.
4324 (Charset conversion in gettext): Likewise.
4325 * manual/nss.texi (NSS Module Function Internals): Likewise.
4326 * manual/search.texi (Hash Search Function): Likewise.
4327 * manual/setjmp.texi (System V contexts): Likewise.
4328 * manual/time.texi (Sleeping): Likewise.
4329 * manual/users.texi (Lookup User): Likewise.
4330 (Lookup Group): Likewise.
4331
4332 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4333
4334 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4335 fix typo.
4336
4337 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4338
4339 [BZ #19444]
4340 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4341 __builtin_unreachable for default case in switch.
4342 (__ieee754_yn): Likewise.
4343 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4344 (__ieee754_ynl): Likewise.
4345 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4346 (__ieee754_ynl): Likewise.
4347 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4348 (__ieee754_ynl): Likewise.
4349
4350 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4351
4352 * manual/maint.texi: Use @{ and @}.
4353
4354 2019-01-04 Florian Weimer <fweimer@redhat.com>
4355
4356 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4357 function.
4358 (do_in_chroot_1): Call it.
4359 (run_chroot_tests):
4360 Improve error reporting in case it is not possible to create a
4361 collision for the PTY name required by the test.
4362
4363 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4364
4365 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4366 lll_wait_tid with timeout.
4367 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4368 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4369 futex_reltimed_wait_cancelable for cancelabla mode.
4370 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4371 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4372 macros.
4373 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4374 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4375 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4376 SYSCALL_CANCEL_NCS): New macro.
4377 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4378 (lll_timedwait_tid): Remove macro.
4379 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4380 Likewise.
4381 (lll_timedwait_tid): Likewise.
4382 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4383 Likewise.
4384 (lll_timedwait_tid): Likewise.
4385 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4386 Likewise.
4387 (lll_timedwait_tid): Likewise.
4388 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4389 Use INTERNAL_SYSCALL_CANCEL.
4390 * sysdeps/unix/sysv/linux/futex-internal.h
4391 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4392 instead of __pthread_{enable,disable}_asynccancel.
4393 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4394 (lll_futex_wait_cancel): New macro.
4395
4396 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4397 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4398
4399 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4400 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4401
4402 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4403 in backtrace analysis.
4404 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4405 side-effects.
4406 (tf_send): Likewise.
4407
4408 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4409 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4410 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4411 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4412 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4413 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4414 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4415 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4416 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4417 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4418 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4419 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4420 Likewise.
4421 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4422 tst-cancel-wrappers.sh.
4423 (generated): Remove tst-cancel-wrappers.out.
4424 (tst-cancel-wrappers.out): Remove rule.
4425 * nptl/tst-cancel-wrappers.sh: Remove file.
4426
4427 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4428
4429 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4430 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4431 Update.
4432
4433 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4434
4435 [BZ #23640]
4436 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4437 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4438 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4439 close-on-exec reset for adddup2 file action.
4440 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4441
4442 2019-01-03 Zack Weinberg <zackw@panix.com>
4443
4444 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4445 parameter. Only use deprecated scanf when __USE_GNU is defined
4446 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4447 than 201103L, whichever is relevant for the language being compiled.
4448
4449 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4450 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4451 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4452 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4453 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4454
4455 * libio/iovsscanf.c
4456 * libio/fwscanf.c
4457 * libio/iovswscanf.c
4458 * libio/swscanf.c
4459 * libio/vscanf.c
4460 * libio/vwscanf.c
4461 * libio/wscanf.c
4462 * stdio-common/fscanf.c
4463 * stdio-common/scanf.c
4464 * stdio-common/vfscanf.c
4465 * stdio-common/vfwscanf.c
4466 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4467 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4468 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4469 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4470 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4471 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4472 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4473 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4474 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4475 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4476 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4477 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4478 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4479 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4480 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4481
4482 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4483 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4484 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4485 not sscanf.
4486 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4487 with a preprocessor macro.
4488
4489 * stdio-common/bug21.c, stdio-common/scanf14.c:
4490 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4491 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4492 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4493 to xscanf, xfscanf, xsscanf.
4494
4495 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4496 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4497 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4498 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4499 xfscanf, xsscanf.
4500 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4501 override feature selection macros or provide definitions of u_char etc.
4502 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4503 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4504 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4505 with -std=gnu89.
4506
4507 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4508
4509 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4510 bits/termios-misc.h.
4511 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4512 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4513 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4514 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4515 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4516 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4517
4518 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4519 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4520 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4521 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4522 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4523 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4524 termios-misc.h.
4525 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4526 (sysdep_headers): Add termios-misc.h.
4527
4528 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4529 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4530 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4531
4532 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4533 termios-tcflow.h.
4534 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4535 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4536 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4537 TCSAFLUSH): Move to termios-tcflow.h.
4538 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4539 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4540 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4541 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4542
4543 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4544 termios-c_lflag.h.
4545 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4546 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4547 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4548 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4549 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4550 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4551 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4552 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4553 Likewise.
4554 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4555 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4556 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4557 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4558
4559 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4560 termios-c_cflag.h.
4561 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4562 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4563 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4564 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4565 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4566 termios-c_cflag.h.
4567 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4568 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4569 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4570 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4571
4572 [BZ #23783]
4573 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4574 termios-baud.h.
4575 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4576 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4577 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4578 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4579 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4580 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4581 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4582 __MAX_BAUD): Move to termios-baud.h.
4583 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4584 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4585 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4586 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4587 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4588
4589 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4590 termios-c_oflag.h.
4591 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4592 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4593 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4594 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4595 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4596 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4597 termios-c_oflag.h.
4598 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4599 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4600 FFR1): Likewise.
4601 [USE_MISC] (XTABS): Likewise.
4602 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4603 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4604 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4605 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4606
4607 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4608 termios-c_iflag.h.
4609 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4610 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4611 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4612 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4613 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4614 IUTF8): Move to termios-c_iflag.h.
4615 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4616 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4617 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4618 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4619
4620 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4621 termios-cc.h.
4622 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4623 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4624 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4625 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4626 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4627 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4628 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4629 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4630 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4631 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4632 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4633 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4634
4635 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4636 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4637 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4638 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4639 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4640 termios-struct.h.
4641 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4642 termios-struct.h.
4643 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4644 Likewise.
4645 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4646 Likewise.
4647 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4648 Likewise.
4649 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4650 Likewise.
4651 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4652 _HAVE_C_OSPEED): Define.
4653 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4654 _HAVE_C_OSPEED): Likewise.
4655 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4656 _HAVE_C_OSPEED): Likewise.
4657 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4658 (cfsetospeed): Check for define value instead of existence.
4659 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4660 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4661 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4662 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4663 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4664
4665 [BZ #17783]
4666 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4667 Define.
4668 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4669 (TIOCSER_TEMT): Likewise.
4670 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4671 (TEOCSER_TEMT): Likewise.
4672
4673 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4674
4675 [BZ #24011]
4676 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4677
4678 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4679
4680 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4681
4682 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4683
4684 * sysdeps/htl/pt-barrierattr-setpshared.c
4685 (pthread_barrierattr_setpshared): Add stub warning.
4686 * sysdeps/htl/pt-condattr-setpshared.c
4687 (pthread_condattr_setpshared): Likewise.
4688 * sysdeps/htl/pt-mutexattr-setpshared.c
4689 (pthread_mutexattr_setpshared): Likewise.
4690 * sysdeps/htl/pt-rwlockattr-setpshared.c
4691 (pthread_rwlockattr_setpshared): Likewise.
4692 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4693 (pthread_mutexattr_setpshared): Likewise.
4694
4695 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4696
4697 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4698 constants to match with Linux 4.20.
4699
4700 * sysdeps/mips/mips32/libm-test-ulps: Update.
4701 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4702
4703 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4704
4705 [BZ #24034]
4706 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4707 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4708 than __typeof (...) for the a_ptr variable.
4709
4710 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4711
4712 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4713 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4714 * libio/Makefile (tests): Add tst-sprintf-ub and
4715 tst-sprintf-chk-ub.
4716 (CFLAGS-tst-sprintf-ub.c): New variable.
4717 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4718 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4719 destination buffer and check for overflows in fortified mode.
4720 * libio/libioP.h (PRINTF_CHK): New macro.
4721 * libio/tst-sprintf-chk-ub.c: New file.
4722 * libio/tst-sprintf-ub.c: Likewise.
4723
4724 2019-01-02 Florian Weimer <fweimer@redhat.com>
4725
4726 [BZ #24018]
4727 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4728 failure.
4729
4730 2019-01-02 Florian Weimer <fweimer@redhat.com>
4731
4732 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4733
4734 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4735
4736 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4737 macro.
4738
4739 * sysdeps/unix/sysv/linux/netpacket/packet.h
4740 (PACKET_IGNORE_OUTGOING): New macro.
4741
4742 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4743 macro.
4744
4745 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4746 version to 4.20.
4747 (riscv_flush_icache): New syscall.
4748
4749 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4750 trailing whitespace removed.
4751 * scripts/config.guess: Update to version 2019-01-01.
4752 * scripts/config.sub: Update to version 2019-01-01.
4753 * scripts/move-if-change: Update from gnulib.
4754
4755 * NEWS: Update copyright dates.
4756 * catgets/gencat.c (print_version): Likewise.
4757 * csu/version.c (banner): Likewise.
4758 * debug/catchsegv.sh: Likewise.
4759 * debug/pcprofiledump.c (print_version): Likewise.
4760 * debug/xtrace.sh (do_version): Likewise.
4761 * elf/ldconfig.c (print_version): Likewise.
4762 * elf/ldd.bash.in: Likewise.
4763 * elf/pldd.c (print_version): Likewise.
4764 * elf/sotruss.sh: Likewise.
4765 * elf/sprof.c (print_version): Likewise.
4766 * iconv/iconv_prog.c (print_version): Likewise.
4767 * iconv/iconvconfig.c (print_version): Likewise.
4768 * locale/programs/locale.c (print_version): Likewise.
4769 * locale/programs/localedef.c (print_version): Likewise.
4770 * login/programs/pt_chown.c (print_version): Likewise.
4771 * malloc/memusage.sh (do_version): Likewise.
4772 * malloc/memusagestat.c (print_version): Likewise.
4773 * malloc/mtrace.pl: Likewise.
4774 * manual/libc.texinfo: Likewise.
4775 * nptl/version.c (banner): Likewise.
4776 * nscd/nscd.c (print_version): Likewise.
4777 * nss/getent.c (print_version): Likewise.
4778 * nss/makedb.c (print_version): Likewise.
4779 * posix/getconf.c (main): Likewise.
4780 * scripts/test-installation.pl: Likewise.
4781 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4782
4783 * All files with FSF copyright notices: Update copyright dates
4784 using scripts/update-copyrights.
4785 * locale/programs/charmap-kw.h: Regenerated.
4786 * locale/programs/locfile-kw.h: Likewise.
4787
4788 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4789
4790 * timezone/zdump.c: Update from tzcode 2018i.
4791 * timezone/zic.c: Likewise.
4792
4793 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4794
4795 regex: improve Gnulib port to AIX
4796 From the glibc point of view, this removes duplicate macro
4797 definitions and is obviously safe.
4798 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4799 * posix/regex_internal.h:
4800 (__attribute__, __attribute_warn_unused_result__):
4801 Remove; already defined elsewhere.
4802
4803 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4804
4805 [BZ #24027]
4806 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4807 copying operation. (ncopies had the wrong type, resulting in an
4808 integer wraparound and too few elements being copied.)
4809
4810 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4811
4812 [BZ #24022]
4813 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4814 <asm/syscalls.h> exists with __has_include__ before including it.
4815
4816 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4817
4818 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4819 version to 4.20.
4820
4821 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4822
4823 * hurd/lookup-retry: Include <unistd.h>.
4824 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4825 Release it on return. Handle "pid" magical lookup retry.
4826
4827 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4828
4829 [BZ #10496]
4830 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4831 (t_fmt_ampm): Likewise.
4832 * localedata/locales/aa_ER (t_fmt): Likewise.
4833 (t_fmt_ampm): Likewise.
4834 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4835 (t_fmt_ampm): Likewise.
4836 * localedata/locales/aa_ET (t_fmt): Likewise.
4837 (t_fmt_ampm): Likewise.
4838 * localedata/locales/am_ET (t_fmt): Likewise.
4839 (t_fmt_ampm): Likewise.
4840 * localedata/locales/byn_ER (t_fmt): Likewise.
4841 (t_fmt_ampm): Likewise.
4842 * localedata/locales/om_ET (t_fmt): Likewise.
4843 (t_fmt_ampm): Likewise.
4844 * localedata/locales/sid_ET (t_fmt): Likewise.
4845 (t_fmt_ampm): Likewise.
4846 * localedata/locales/so_DJ (t_fmt): Likewise.
4847 (t_fmt_ampm): Likewise.
4848 * localedata/locales/so_ET (t_fmt): Likewise.
4849 (t_fmt_ampm): Likewise.
4850 * localedata/locales/so_SO (t_fmt): Likewise.
4851 (t_fmt_ampm): Likewise.
4852 * localedata/locales/ti_ER (t_fmt): Likewise.
4853 (t_fmt_ampm): Likewise.
4854 * localedata/locales/ti_ET (t_fmt): Likewise.
4855 (t_fmt_ampm): Likewise.
4856 * localedata/locales/tig_ER (t_fmt): Likewise.
4857 (t_fmt_ampm): Likewise.
4858 * localedata/locales/wal_ET (t_fmt): Likewise.
4859 (t_fmt_ampm): Likewise.
4860
4861 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4862 * localedata/locales/ar_IN (t_fmt): Likewise.
4863 * localedata/locales/bhb_IN (t_fmt): Likewise.
4864 * localedata/locales/bho_IN (t_fmt): Likewise.
4865 * localedata/locales/bi_VU (t_fmt): Likewise.
4866 * localedata/locales/bn_BD (t_fmt): Likewise.
4867 * localedata/locales/bn_IN (t_fmt): Likewise.
4868 * localedata/locales/brx_IN (t_fmt): Likewise.
4869 * localedata/locales/doi_IN (t_fmt): Likewise.
4870 * localedata/locales/en_HK (t_fmt): Likewise.
4871 (t_fmt_ampm): Likewise.
4872 * localedata/locales/en_IN (t_fmt): Likewise.
4873 * localedata/locales/en_PH (t_fmt): Likewise.
4874 * localedata/locales/gu_IN (t_fmt): Likewise.
4875 * localedata/locales/hi_IN (t_fmt): Likewise.
4876 * localedata/locales/hif_FJ (t_fmt): Likewise.
4877 * localedata/locales/hne_IN (t_fmt): Likewise.
4878 * localedata/locales/kn_IN (t_fmt): Likewise.
4879 * localedata/locales/kok_IN (t_fmt): Likewise.
4880 * localedata/locales/ks_IN (t_fmt): Likewise.
4881 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4882 * localedata/locales/mag_IN (t_fmt): Likewise.
4883 * localedata/locales/mai_IN (t_fmt): Likewise.
4884 * localedata/locales/mjw_IN (t_fmt): Likewise.
4885 * localedata/locales/ml_IN (t_fmt): Likewise.
4886 * localedata/locales/mni_IN (t_fmt): Likewise.
4887 * localedata/locales/mr_IN (t_fmt): Likewise.
4888 * localedata/locales/ms_MY (t_fmt): Likewise.
4889 * localedata/locales/pa_IN (t_fmt): Likewise.
4890 * localedata/locales/raj_IN (t_fmt): Likewise.
4891 * localedata/locales/sa_IN (t_fmt): Likewise.
4892 * localedata/locales/sat_IN (t_fmt): Likewise.
4893 * localedata/locales/sd_IN (t_fmt): Likewise.
4894 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4895 * localedata/locales/tcy_IN (t_fmt): Likewise.
4896 * localedata/locales/the_NP (t_fmt): Likewise.
4897 * localedata/locales/to_TO (t_fmt): Likewise.
4898 * localedata/locales/ur_IN (t_fmt): Likewise.
4899
4900 * localedata/locales/hif_FJ (d_t_fmt): Set to
4901 "%A %d %b %Y %I:%M:%S %p".
4902 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4903
4904 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4905 * localedata/locales/ar_BH (t_fmt): Likewise.
4906 * localedata/locales/ar_DZ (t_fmt): Likewise.
4907 * localedata/locales/ar_EG (t_fmt): Likewise.
4908 * localedata/locales/ar_IQ (t_fmt): Likewise.
4909 * localedata/locales/ar_JO (t_fmt): Likewise.
4910 * localedata/locales/ar_KW (t_fmt): Likewise.
4911 * localedata/locales/ar_LB (t_fmt): Likewise.
4912 * localedata/locales/ar_LY (t_fmt): Likewise.
4913 * localedata/locales/ar_OM (t_fmt): Likewise.
4914 * localedata/locales/ar_QA (t_fmt): Likewise.
4915 * localedata/locales/ar_SD (t_fmt): Likewise.
4916 * localedata/locales/ar_SS (t_fmt): Likewise.
4917 * localedata/locales/ar_SY (t_fmt): Likewise.
4918 * localedata/locales/ar_TN (t_fmt): Likewise.
4919 * localedata/locales/ar_YE (t_fmt): Likewise.
4920
4921 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4922 (t_fmt_ampm): Likewise.
4923 * localedata/locales/gez_ET (t_fmt): Likewise.
4924 (t_fmt_ampm): Likewise.
4925
4926 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4927 (t_fmt_ampm): Likewise.
4928 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4929
4930 * localedata/locales/zh_HK (t_fmt):
4931 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4932
4933 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4934 because this locale does not use the 12-hour clock.
4935 (t_fmt): Set to "%Z %H:%M:%S".
4936 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4937
4938 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4939 because this locale does not use the 12-hour clock.
4940 (t_fmt): Set to "%H:%M:%S %Z".
4941 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4942
4943 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4944 because this locale does not use the 12-hour clock.
4945 (t_fmt): Set to "%T".
4946 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4947 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4948
4949 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4950 because this locale does not use the 12-hour clock.
4951 (t_fmt): Set to "%H:%M:%S %Z".
4952 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4953
4954 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4955 because this locale does not use the 12-hour clock.
4956 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4957 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4958
4959 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4960
4961 [BZ #10496]
4962 [BZ #23724]
4963 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4964 (t_fmt_ampm): Likewise.
4965 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4966 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4967 (d_fmt): Set to "%-d.%-m.%y".
4968
4969 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4970
4971 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4972 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4973 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4974 Likewise.
4975 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4976 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4977 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4978 function.
4979 * support/blob_repeat.c (check_mul_overflow_size_t,
4980 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4981
4982 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4983
4984 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4985
4986 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4987
4988 regex: simplify Gnulib port
4989 This simplifies the code, by removing stuff intended for porting
4990 to Gnulib but no longer needed there.
4991 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4992 uses of libc_hidden_def, weak_alias.
4993 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4994 _Restrict_ except for public-facing headers.
4995 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4996 Remove; already defined elsewhere.
4997 * posix/regex.c, posix/regex_internal.h:
4998 Use __GNUC_PREREQ instead of rolling our own.
4999 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
5000
5001 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
5002
5003 * benchtests/bench-strlen.c (generic_strlen): New function.
5004 (memchr_strlen): New function.
5005
5006 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5007
5008 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
5009 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
5010 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
5011
5012 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5013
5014 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
5015
5016 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
5017
5018 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
5019 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
5020 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
5021 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
5022 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
5023 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
5024 <sysdeps/ieee754/flt-32/s_sincosf.c>.
5025
5026 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5027
5028 [BZ #24023]
5029 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
5030 PLT reference in libc.so.
5031 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
5032 _Q_lltoq and _Q_qtod PLT references in libc.so.
5033
5034 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
5035
5036 * benchtests/bench-memchr.c: Cleanup defines.
5037 * benchtests/bench-memcmp.c: Likewise.
5038 * benchtests/bench-memset.c: Likewise.
5039 * benchtests/bench-memset-large.c: Likewise.
5040 * benchtests/bench-memset-walk.c: Likewise.
5041 * benchtests/bench-stpcpy.c: Likewise.
5042 * benchtests/bench-stpncpy.c: Likewise.
5043 * benchtests/bench-strcat.c: Likewise.
5044 * benchtests/bench-strchr.c: Likewise.
5045 * benchtests/bench-strcmp.c: Likewise.
5046 * benchtests/bench-strcpy.c: Likewise.
5047 * benchtests/bench-strcspn.c: Likewise.
5048 * benchtests/bench-string.h: Likewise.
5049 * benchtests/bench-strlen.c: Likewise.
5050 * benchtests/bench-strncat.c: Likewise.
5051 * benchtests/bench-strncmp.c: Likewise.
5052 * benchtests/bench-strncpy.c: Likewise.
5053 * benchtests/bench-strnlen.c: Likewise.
5054 * benchtests/bench-strpbrk.c: Likewise.
5055 * benchtests/bench-strrchr.c: Likewise.
5056 * benchtests/bench-strspn.c: Likewise.
5057
5058 2018-12-21 Joseph Myers <joseph@codesourcery.com>
5059
5060 * stdlib/longlong.h: Update from GCC.
5061
5062 [BZ #23993]
5063 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
5064 * configure: Regenerated.
5065 * manual/install.texi (Tools for Compilation): Update minimum GCC
5066 version.
5067 * INSTALL: Regenerated.
5068
5069 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
5070
5071 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
5072
5073 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
5074
5075 * malloc/malloc.c (mremap_chunk): Additional checks.
5076
5077 2018-12-21 Mao Han <han_mao@c-sky.com>
5078
5079 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
5080 * scripts/build-many-glibcs.py: Add C-SKY targets.
5081 * sysdeps/csky/Implies: New file.
5082 * sysdeps/csky/Makefile: Likewise.
5083 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5084 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5085 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5086 * sysdeps/csky/abiv2/memcmp.S: Likewise.
5087 * sysdeps/csky/abiv2/memcpy.S: Likewise.
5088 * sysdeps/csky/abiv2/memmove.S: Likewise.
5089 * sysdeps/csky/abiv2/memset.S: Likewise.
5090 * sysdeps/csky/abiv2/setjmp.S: Likewise.
5091 * sysdeps/csky/abiv2/start.S: Likewise.
5092 * sysdeps/csky/abiv2/strcmp.S: Likewise.
5093 * sysdeps/csky/abiv2/strcpy.S: Likewise.
5094 * sysdeps/csky/abiv2/strlen.S: Likewise.
5095 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5096 * sysdeps/csky/abort-instr.h: Likewise.
5097 * sysdeps/csky/atomic-machine.h: Likewise.
5098 * sysdeps/csky/bits/endian.h: Likewise.
5099 * sysdeps/csky/bits/fenv.h: Likewise.
5100 * sysdeps/csky/bits/link.h: Likewise.
5101 * sysdeps/csky/bits/setjmp.h: Likewise.
5102 * sysdeps/csky/bsd-_setjmp.S: Likewise.
5103 * sysdeps/csky/bsd-setjmp.S: Likewise.
5104 * sysdeps/csky/configure: Likewise.
5105 * sysdeps/csky/configure.ac: Likewise.
5106 * sysdeps/csky/dl-machine.h: Likewise.
5107 * sysdeps/csky/dl-procinfo.c: Likewise.
5108 * sysdeps/csky/dl-procinfo.h: Likewise.
5109 * sysdeps/csky/dl-sysdep.h: Likewise.
5110 * sysdeps/csky/dl-tls.h: Likewise.
5111 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5112 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5113 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5114 * sysdeps/csky/fpu/fegetenv.c: Likewise.
5115 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5116 * sysdeps/csky/fpu/fegetmode.c: Likewise.
5117 * sysdeps/csky/fpu/fegetround.c: Likewise.
5118 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5119 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5120 * sysdeps/csky/fpu/fenv_private.h: Likewise.
5121 * sysdeps/csky/fpu/fesetenv.c: Likewise.
5122 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5123 * sysdeps/csky/fpu/fesetmode.c: Likewise.
5124 * sysdeps/csky/fpu/fesetround.c: Likewise.
5125 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5126 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5127 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5128 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5129 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5130 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5131 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5132 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5133 * sysdeps/csky/fpu_control.h: Likewise.
5134 * sysdeps/csky/gccframe.h: Likewise.
5135 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5136 * sysdeps/csky/ldsodefs.h: Likewise.
5137 * sysdeps/csky/libc-tls.c: Likewise.
5138 * sysdeps/csky/linkmap.h: Likewise.
5139 * sysdeps/csky/machine-gmon.h: Likewise.
5140 * sysdeps/csky/memusage.h: Likewise.
5141 * sysdeps/csky/nofpu/Implies: Likewise.
5142 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5143 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5144 * sysdeps/csky/nptl/Makefile: Likewise.
5145 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5146 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5147 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5148 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5149 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5150 * sysdeps/csky/nptl/tls.h: Likewise.
5151 * sysdeps/csky/preconfigure: Likewise.
5152 * sysdeps/csky/sfp-machine.h: Likewise.
5153 * sysdeps/csky/sotruss-lib.c: Likewise.
5154 * sysdeps/csky/stackinfo.h: Likewise.
5155 * sysdeps/csky/sysdep.h: Likewise.
5156 * sysdeps/csky/tininess.h: Likewise.
5157 * sysdeps/csky/tst-audit.h: Likewise.
5158 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5159 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5160 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5161 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5162 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5163 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5164 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5165 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5166 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5167 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5168 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5169 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5170 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5171 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5172 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5173 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5174 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5175 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5176 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5177 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5178 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5179 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5180 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5181 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5182 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5183 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5184 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5185 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5186 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5187 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5188 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5189 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5190 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5191 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5192 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5193 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5194 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5195 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5196 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5197 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5198 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5199 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5200 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5201 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5202
5203 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5204
5205 * include/time.h (__difftime64): Add.
5206 * time/difftime.c (subtract): convert to 64-bit time.
5207 * time/difftime.c (__difftime64): Add.
5208 * time/difftime.c (__difftime): Wrap around __difftime64.
5209
5210 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5211
5212 * manual/examples/add.c: Remove redundant "if not".
5213 * manual/examples/argp-ex1.c: Likewise.
5214 * manual/examples/argp-ex2.c: Likewise.
5215 * manual/examples/argp-ex3.c: Likewise.
5216 * manual/examples/argp-ex4.c: Likewise.
5217 * manual/examples/atexit.c: Likewise.
5218 * manual/examples/db.c: Likewise.
5219 * manual/examples/dir.c: Likewise.
5220 * manual/examples/dir2.c: Likewise.
5221 * manual/examples/execinfo.c: Likewise.
5222 * manual/examples/filecli.c: Likewise.
5223 * manual/examples/filesrv.c: Likewise.
5224 * manual/examples/fmtmsgexpl.c: Likewise.
5225 * manual/examples/genpass.c: Likewise.
5226 * manual/examples/inetcli.c: Likewise.
5227 * manual/examples/inetsrv.c: Likewise.
5228 * manual/examples/isockad.c: Likewise.
5229 * manual/examples/longopt.c: Likewise.
5230 * manual/examples/memopen.c: Likewise.
5231 * manual/examples/memstrm.c: Likewise.
5232 * manual/examples/mkdirent.c: Likewise.
5233 * manual/examples/mkfsock.c: Likewise.
5234 * manual/examples/mkisock.c: Likewise.
5235 * manual/examples/mygetpass.c: Likewise.
5236 * manual/examples/pipe.c: Likewise.
5237 * manual/examples/popen.c: Likewise.
5238 * manual/examples/rprintf.c: Likewise.
5239 * manual/examples/search.c: Likewise.
5240 * manual/examples/select.c: Likewise.
5241 * manual/examples/setjmp.c: Likewise.
5242 * manual/examples/sigh1.c: Likewise.
5243 * manual/examples/sigusr.c: Likewise.
5244 * manual/examples/stpcpy.c: Likewise.
5245 * manual/examples/strdupa.c: Likewise.
5246 * manual/examples/strftim.c: Likewise.
5247 * manual/examples/subopt.c: Likewise.
5248 * manual/examples/swapcontext.c: Likewise.
5249 * manual/examples/termios.c: Likewise.
5250 * manual/examples/testopt.c: Likewise.
5251 * manual/examples/testpass.c: Likewise.
5252 * manual/examples/timeval_subtract.c: Likewise.
5253
5254 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5255
5256 * sysdeps/x86/fpu/math_private.h: New file.
5257 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5258
5259 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5260 definition.
5261 (cosh): Likewise.
5262 (tanh): Likewise.
5263
5264 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5265
5266 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5267 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5268 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5269 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5270 fields.
5271 (_dl_show_auxv): Give a special treatment to
5272 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5273 and AT_L3_CACHEGEOMETRY.
5274 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5275 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5276 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5277 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5278
5279 2018-12-19 Andreas Schwab <schwab@suse.de>
5280
5281 * nscd/connections.c (check_use): Don't abort on invalid len.
5282
5283 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5284
5285 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5286 values in the 64bit value cases.
5287
5288 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5289
5290 * include/time.h
5291 (__ctime64_r): Add.
5292 * time/ctime_r.c
5293 (__ctime64_r): Add.
5294 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5295
5296 * include/time.h
5297 (__ctime64): Add.
5298 * time/gmtime.c
5299 (__ctime64): Add.
5300 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5301
5302 * include/time.h
5303 (__gmtime64_r): Add.
5304 * time/gmtime.c
5305 (__gmtime64_r): Add.
5306 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5307
5308 * include/time.h
5309 (__gmtime64): Add.
5310 * time/gmtime.c
5311 (__gmtime64): Add.
5312 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5313
5314 * include/time.h
5315 (__localtime64_r): Add.
5316 * time/localtime.c
5317 (__localtime64_r): Add.
5318 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5319
5320 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5321
5322 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5323 kernel_sigction definition.
5324
5325 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5326
5327 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5328
5329 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5330 __syscall_rt_sigaction.
5331 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5332 (kernel_sigaction): Use Linux generic defintion.
5333 (STUB): Define.
5334 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5335 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5336 (__syscall_rt_sigaction): Remove implementation.
5337 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5338 hidden.
5339 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5340 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5341 INTERNAL_SYSCALL): Remove definitions.
5342 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5343 action and signal set size.
5344 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5345 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5346
5347 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5348 James Clarke <jrtc27@jrtc27.com>
5349
5350 [BZ #23967]
5351 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5352 Define if SA_RESTORER is defined.
5353 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5354 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5355 already defined.
5356 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5357 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5358 definitions.
5359 (HAS_SA_RESTORER): Define.
5360 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5361 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5362 (HAS_SA_RESTORER): Define.
5363 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5364 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5365 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5366 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5367 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5368
5369 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5370
5371 * sysdeps/unix/sysv/linux/kernel-features.h
5372 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5373 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5374 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5375 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5376 (__ASSUME_ST_INO_64_BIT): Likewise.
5377 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5378 <kernel-features.h>.
5379 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5380 Remove conditional code.
5381 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5382 <kernel-features.h>.
5383 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5384 Remove conditional code.
5385 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5386 <kernel-features.h>.
5387 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5388 Remove conditional code.
5389 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5390 <kernel-features.h>.
5391 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5392 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5393
5394 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5395
5396 * sysdeps/s390/multiarch/ifunc-resolve.h
5397 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5398 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5399 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5400 Delete macro definition.
5401 (s390_libc_ifunc_init): Rename to
5402 s390_libc_ifunc_expr_stfle_init.
5403 * sysdeps/s390/bzero: Use
5404 s390_libc_ifunc_expr_stfle_init instead of
5405 s390_libc_ifunc_init.
5406 * sysdeps/s390/memcmp.c: Likewise.
5407 * sysdeps/s390/memcpy.c: Likewise.
5408 * sysdeps/s390/mempcpy.c: Likewise.
5409 * sysdeps/s390/memset.c: Likewise.
5410
5411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5412
5413 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5414 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5415
5416 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5417
5418 * sysdeps/s390/multiarch/Makefile
5419 (sysdep_routines): Remove wmemcmp variants.
5420 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5421 * sysdeps/s390/multiarch/ifunc-impl-list.c
5422 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5423 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5424 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5425 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5426 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5427 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5428 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5429 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5430
5431 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5432
5433 * sysdeps/s390/multiarch/Makefile
5434 (sysdep_routines): Remove wmemset variants.
5435 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5436 * sysdeps/s390/multiarch/ifunc-impl-list.c
5437 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5438 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5439 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5440 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5441 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5442 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5443 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5444 * sysdeps/s390/ifunc-wmemset.h: New file.
5445
5446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5447
5448 * sysdeps/s390/multiarch/Makefile
5449 (sysdep_routines): Remove wmemchr variants.
5450 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5451 * sysdeps/s390/multiarch/ifunc-impl-list.c
5452 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5453 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5454 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5455 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5456 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5457 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5458 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5459 * sysdeps/s390/ifunc-wmemchr.h: New file.
5460
5461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5462
5463 * sysdeps/s390/multiarch/Makefile
5464 (sysdep_routines): Remove wcscspn variants.
5465 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5466 * sysdeps/s390/multiarch/ifunc-impl-list.c
5467 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5468 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5469 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5470 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5471 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5472 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5473 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5474 * sysdeps/s390/ifunc-wcscspn.h: New file.
5475
5476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5477
5478 * sysdeps/s390/multiarch/Makefile
5479 (sysdep_routines): Remove wcspbrk variants.
5480 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5481 * sysdeps/s390/multiarch/ifunc-impl-list.c
5482 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5483 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5484 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5485 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5486 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5487 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5488 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5489 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5490
5491 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5492
5493 * sysdeps/s390/multiarch/Makefile
5494 (sysdep_routines): Remove wcsspn variants.
5495 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5496 * sysdeps/s390/multiarch/ifunc-impl-list.c
5497 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5498 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5499 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5500 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5501 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5502 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5503 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5504 * sysdeps/s390/ifunc-wcsspn.h: New file.
5505
5506 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5507
5508 * sysdeps/s390/multiarch/Makefile
5509 (sysdep_routines): Remove wcsrchr variants.
5510 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5511 * sysdeps/s390/multiarch/ifunc-impl-list.c
5512 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5513 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5514 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5515 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5516 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5517 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5518 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5519 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5520
5521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5522
5523 * sysdeps/s390/multiarch/Makefile
5524 (sysdep_routines): Remove wcschrnul variants.
5525 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5526 * sysdeps/s390/multiarch/ifunc-impl-list.c
5527 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5528 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5529 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5530 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5531 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5532 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5533 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5534 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5535
5536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5537
5538 * sysdeps/s390/multiarch/Makefile
5539 (sysdep_routines): Remove wcschr variants.
5540 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5541 * sysdeps/s390/multiarch/ifunc-impl-list.c
5542 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5543 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5544 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5545 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5546 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5547 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5548 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5549 * sysdeps/s390/ifunc-wcschr.h: New file.
5550
5551 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5552
5553 * sysdeps/s390/multiarch/Makefile
5554 (sysdep_routines): Remove wcsncmp variants.
5555 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5556 * sysdeps/s390/multiarch/ifunc-impl-list.c
5557 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5558 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5559 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5560 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5561 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5562 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5563 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5564 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5565
5566 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5567
5568 * sysdeps/s390/multiarch/Makefile
5569 (sysdep_routines): Remove wcscmp variants.
5570 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5571 * sysdeps/s390/multiarch/ifunc-impl-list.c
5572 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5573 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5574 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5575 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5576 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5577 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5578 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5579 * sysdeps/s390/ifunc-wcscmp.h: New file.
5580
5581 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5582
5583 * sysdeps/s390/multiarch/Makefile
5584 (sysdep_routines): Remove wcsncat variants.
5585 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5586 * sysdeps/s390/multiarch/ifunc-impl-list.c
5587 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5588 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5589 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5590 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5591 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5592 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5593 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5594 * sysdeps/s390/ifunc-wcsncat.h: New file.
5595
5596 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5597
5598 * sysdeps/s390/multiarch/Makefile
5599 (sysdep_routines): Remove wcscat variants.
5600 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5601 * sysdeps/s390/multiarch/ifunc-impl-list.c
5602 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5603 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5604 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5605 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5606 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5607 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5608 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5609 * sysdeps/s390/ifunc-wcscat.h: New file.
5610
5611 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5612
5613 * sysdeps/s390/multiarch/Makefile
5614 (sysdep_routines): Remove wcpncpy variants.
5615 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5616 * sysdeps/s390/multiarch/ifunc-impl-list.c
5617 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5618 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5619 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5620 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5621 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5622 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5623 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5624 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5625
5626 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5627
5628 * sysdeps/s390/multiarch/Makefile
5629 (sysdep_routines): Remove wcsncpy variants.
5630 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5631 * sysdeps/s390/multiarch/ifunc-impl-list.c
5632 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5633 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5634 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5635 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5636 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5637 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5638 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5639 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5640
5641 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5642
5643 * sysdeps/s390/multiarch/Makefile
5644 (sysdep_routines): Remove wcpcpy variants.
5645 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5646 * sysdeps/s390/multiarch/ifunc-impl-list.c
5647 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5648 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5649 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5650 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5651 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5652 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5653 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5654 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5655
5656 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5657
5658 * sysdeps/s390/multiarch/Makefile
5659 (sysdep_routines): Remove wcscpy variants.
5660 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5661 * sysdeps/s390/multiarch/ifunc-impl-list.c
5662 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5663 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5664 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5665 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5666 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5667 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5668 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5669 * sysdeps/s390/ifunc-wcscpy.h: New file.
5670
5671 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5672
5673 * sysdeps/s390/multiarch/Makefile
5674 (sysdep_routines): Remove wcsnlen variants.
5675 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5676 * sysdeps/s390/multiarch/ifunc-impl-list.c
5677 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5678 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5679 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5680 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5681 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5682 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5683 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5684 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5685
5686 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5687
5688 * sysdeps/s390/multiarch/Makefile
5689 (sysdep_routines): Remove wcslen variants.
5690 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5691 * sysdeps/s390/multiarch/ifunc-impl-list.c
5692 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5693 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5694 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5695 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5696 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5697 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5698 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5699 * sysdeps/s390/ifunc-wcslen.h: New file.
5700
5701 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5702
5703 * sysdeps/s390/multiarch/Makefile
5704 (sysdep_routines): Remove memrchr variants.
5705 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5706 * sysdeps/s390/multiarch/ifunc-impl-list.c
5707 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5708 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5709 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5710 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5711 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5712 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5713 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5714 * sysdeps/s390/ifunc-memrchr.h: New file.
5715
5716 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5717
5718 * sysdeps/s390/multiarch/Makefile
5719 (sysdep_routines): Remove memccpy variants.
5720 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5721 * sysdeps/s390/multiarch/ifunc-impl-list.c
5722 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5723 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5724 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5725 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5726 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5727 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5728 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5729 * sysdeps/s390/ifunc-memccpy.h: New file.
5730
5731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5732
5733 * sysdeps/s390/multiarch/Makefile
5734 (sysdep_routines): Remove rawmemchr variants.
5735 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5736 * sysdeps/s390/multiarch/ifunc-impl-list.c
5737 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5738 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5739 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5740 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5741 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5742 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5743 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5744 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5745
5746 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5747
5748 * sysdeps/s390/multiarch/Makefile
5749 (sysdep_routines): Remove memchr variants.
5750 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5751 * sysdeps/s390/multiarch/ifunc-impl-list.c
5752 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5753 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5754 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5755 * sysdeps/s390/multiarch/memchr.c: Move to ...
5756 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5757 * sysdeps/s390/ifunc-memchr.h: New file.
5758 * sysdeps/s390/s390-64/memchr.S: Move to ...
5759 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5760 for 31/64bit and ifunc handling.
5761 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5762 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5763 * sysdeps/s390/s390-32/memchr.S: Likewise.
5764
5765 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5766
5767 * sysdeps/s390/multiarch/Makefile
5768 (sysdep_routines): Remove strcspn variants.
5769 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5770 * sysdeps/s390/multiarch/ifunc-impl-list.c
5771 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5772 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5773 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5774 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5775 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5776 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5777 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5778 * sysdeps/s390/ifunc-strcspn.h: New file.
5779
5780 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5781
5782 * sysdeps/s390/multiarch/Makefile
5783 (sysdep_routines): Remove strpbrk variants.
5784 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5785 * sysdeps/s390/multiarch/ifunc-impl-list.c
5786 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5787 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5788 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5789 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5790 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5791 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5792 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5793 * sysdeps/s390/ifunc-strpbrk.h: New file.
5794
5795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5796
5797 * sysdeps/s390/multiarch/Makefile
5798 (sysdep_routines): Remove strspn variants.
5799 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5800 * sysdeps/s390/multiarch/ifunc-impl-list.c
5801 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5802 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5803 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5804 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5805 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5806 * sysdeps/s390/multiarch/strspn.c: Move to ...
5807 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5808 * sysdeps/s390/ifunc-strspn.h: New file.
5809
5810 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5811
5812 * sysdeps/s390/multiarch/Makefile
5813 (sysdep_routines): Remove strrchr variants.
5814 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5815 * sysdeps/s390/multiarch/ifunc-impl-list.c
5816 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5817 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5818 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5819 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5820 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5821 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5822 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5823 * sysdeps/s390/ifunc-strrchr.h: New file.
5824
5825 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5826
5827 * sysdeps/s390/multiarch/Makefile
5828 (sysdep_routines): Remove strchrnul variants.
5829 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5830 * sysdeps/s390/multiarch/ifunc-impl-list.c
5831 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5832 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5833 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5834 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5835 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5836 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5837 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5838 * sysdeps/s390/ifunc-strchrnul.h: New file.
5839
5840 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5841
5842 * sysdeps/s390/multiarch/Makefile
5843 (sysdep_routines): Remove strchr variants.
5844 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5845 * sysdeps/s390/multiarch/ifunc-impl-list.c
5846 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5847 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5848 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5849 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5850 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5851 * sysdeps/s390/multiarch/strchr.c: Move to ...
5852 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5853 * sysdeps/s390/ifunc-strchr.h: New file.
5854
5855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5856
5857 * sysdeps/s390/multiarch/Makefile
5858 (sysdep_routines): Remove strncmp variants.
5859 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5860 * sysdeps/s390/multiarch/ifunc-impl-list.c
5861 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5862 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5863 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5864 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5865 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5866 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5867 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5868 * sysdeps/s390/ifunc-strncmp.h: New file.
5869
5870 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5871
5872 * sysdeps/s390/multiarch/Makefile
5873 (sysdep_routines): Remove strcmp variants.
5874 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5875 * sysdeps/s390/multiarch/ifunc-impl-list.c
5876 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5877 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5878 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5879 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5880 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5881 * sysdeps/s390/ifunc-strcmp.h: New file.
5882 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5883 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5884 for 31/64bit and ifunc handling.
5885 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5886 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5887 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5888
5889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5890
5891 * sysdeps/s390/multiarch/Makefile
5892 (sysdep_routines): Remove strncat variants.
5893 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5894 * sysdeps/s390/multiarch/ifunc-impl-list.c
5895 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5896 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5897 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5898 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5899 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5900 * sysdeps/s390/multiarch/strncat.c: Move to ...
5901 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5902 * sysdeps/s390/ifunc-strncat.h: New file.
5903
5904 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5905
5906 * sysdeps/s390/multiarch/Makefile
5907 (sysdep_routines): Remove strcat variants.
5908 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5909 * sysdeps/s390/multiarch/ifunc-impl-list.c
5910 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5911 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5912 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5913 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5914 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5915 * sysdeps/s390/multiarch/strcat.c: Move to ...
5916 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5917 * sysdeps/s390/ifunc-strcat.h: New file.
5918
5919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5920
5921 * sysdeps/s390/multiarch/Makefile
5922 (sysdep_routines): Remove stpncpy variants.
5923 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5924 * sysdeps/s390/multiarch/ifunc-impl-list.c
5925 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5926 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5927 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5928 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5929 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5930 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5931 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5932 * sysdeps/s390/ifunc-stpncpy.h: New file.
5933
5934 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5935
5936 * sysdeps/s390/multiarch/Makefile
5937 (sysdep_routines): Remove strncpy variants.
5938 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5939 * sysdeps/s390/multiarch/ifunc-impl-list.c
5940 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5941 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5942 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5943 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5944 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5945 * sysdeps/s390/ifunc-strncpy.h: New file.
5946 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5947 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5948 and adjust ifunc handling.
5949 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5950 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5951 and adjust ifunc handling.
5952 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5953 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5954
5955 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5956
5957 * sysdeps/s390/multiarch/Makefile
5958 (sysdep_routines): Remove stpcpy variants.
5959 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5960 * sysdeps/s390/multiarch/ifunc-impl-list.c
5961 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5962 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5963 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5964 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5965 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5966 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5967 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5968 * sysdeps/s390/ifunc-stpcpy.h: New file.
5969
5970 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5971
5972 * sysdeps/s390/multiarch/Makefile
5973 (sysdep_routines): Remove strcpy variants.
5974 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5975 * sysdeps/s390/multiarch/ifunc-impl-list.c
5976 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5977 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5978 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5979 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5980 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5981 * sysdeps/s390/ifunc-strcpy.h: New file.
5982 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5983 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5984 for 31/64bit and ifunc handling.
5985 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5986 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5987 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5988
5989 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5990
5991 * sysdeps/s390/multiarch/Makefile
5992 (sysdep_routines): Remove strnlen variants.
5993 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5994 * sysdeps/s390/multiarch/ifunc-impl-list.c
5995 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5996 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5997 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5998 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5999 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
6000 * sysdeps/s390/multiarch/strnlen.c: Move to ...
6001 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
6002 * sysdeps/s390/ifunc-strnlen.h: New file.
6003
6004 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6005
6006 * sysdeps/s390/multiarch/Makefile
6007 (sysdep_routines): Remove strlen variants.
6008 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
6009 * sysdeps/s390/multiarch/ifunc-impl-list.c
6010 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
6011 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
6012 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
6013 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
6014 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
6015 * sysdeps/s390/multiarch/strlen.c: Move to ...
6016 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
6017 * sysdeps/s390/ifunc-strlen.h: New file.
6018
6019 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6020
6021 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
6022 * sysdeps/s390/multiarch/ifunc-impl-list.c
6023 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
6024 * sysdeps/s390/ifunc-memmem.h: New file.
6025 * sysdeps/s390/memmem.c: Likewise.
6026 * sysdeps/s390/memmem-c.c: Likewise.
6027 * sysdeps/s390/memmem-vx.c: Likewise.
6028
6029 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6030
6031 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
6032 * sysdeps/s390/multiarch/ifunc-impl-list.c
6033 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
6034 * sysdeps/s390/ifunc-strstr.h: New file.
6035 * sysdeps/s390/strstr.c: Likewise.
6036 * sysdeps/s390/strstr-c.c: Likewise.
6037 * sysdeps/s390/strstr-vx.c: Likewise.
6038
6039 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6040
6041 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
6042 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
6043 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
6044 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
6045 New defines.
6046 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
6047 * sysdeps/s390/memmove-c.c: New file.
6048 * sysdeps/s390/memmove.c: Likewise.
6049 * sysdeps/s390/multiarch/ifunc-impl-list.c
6050 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
6051
6052 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6053
6054 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
6055 * sysdeps/s390/configure.ac: Add check for z13 support.
6056 * sysdeps/s390/configure: Regenerated.
6057
6058 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6059
6060 * sysdeps/s390/memcopy.h: New file.
6061
6062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6063
6064 * sysdeps/s390/s390-32/bcopy.S: Remove.
6065 * sysdeps/s390/s390-64/bcopy.S: Likewise.
6066
6067 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6068
6069 * sysdeps/s390/ifunc-memcpy.h: New File.
6070 * sysdeps/s390/memcpy.S: Move to ...
6071 * sysdeps/s390/memcpy-z900.S ... here.
6072 Move implementations from memcpy-s390x.s to here.
6073 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
6074 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6075 Remove memcpy/mempcpy variants.
6076 * sysdeps/s390/Makefile (sysdep_routines):
6077 Add memcpy/mempcpy variants.
6078 * sysdeps/s390/multiarch/ifunc-impl-list.c
6079 (__libc_ifunc_impl_list): Adjust ifunc variants for
6080 memcpy and mempcpy.
6081 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6082 to ...
6083 * sysdeps/s390/memcpy.c: ... here.
6084 Adjust ifunc variants for memcpy.
6085 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6086 * sysdeps/s390/mempcpy.c: ... here.
6087 Adjust ifunc variants for mempcpy.
6088 * sysdeps/s390/mempcpy.S: Delete file.
6089
6090 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6091
6092 * sysdeps/s390/s390-64/memcpy.S: Move to ...
6093 * sysdeps/s390/memcpy.S: ... here.
6094 Adjust to be usable for 31/64bit.
6095 * sysdeps/s390/s390-32/memcpy.S: Delete File.
6096 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6097 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6098 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6099 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6100 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6101 Adjust to be usable for 31/64bit.
6102 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6103 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6104 * sysdeps/s390/multiarch/memcpy.c: ... here.
6105 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6106
6107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6108
6109 * sysdeps/s390/ifunc-memcmp.h: New File.
6110 * sysdeps/s390/memcmp.S: Move to ...
6111 * sysdeps/s390/memcmp-z900.S ... here.
6112 Move implementations from memcmp-s390x.s to here.
6113 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6114 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6115 Remove memcmp variants.
6116 * sysdeps/s390/Makefile (sysdep_routines):
6117 Add memcmp variants.
6118 * sysdeps/s390/multiarch/ifunc-impl-list.c
6119 (__libc_ifunc_impl_list): Adjust ifunc variants for
6120 memcmp.
6121 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6122 to ...
6123 * sysdeps/s390/memcmp.c: ... here.
6124 Adjust ifunc variants for memcmp.
6125
6126 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6127
6128 * sysdeps/s390/s390-64/memcmp.S: Move to ...
6129 * sysdeps/s390/memcmp.S: ... here.
6130 Adjust to be usable for 31/64bit.
6131 * sysdeps/s390/s390-32/memcmp.S: Delete File.
6132 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6133 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6134 Remove memcmp.
6135 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6136 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6137 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6138 Adjust to be usable for 31/64bit.
6139 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6140 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6141 * sysdeps/s390/multiarch/memcmp.c: ... here.
6142 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6143
6144 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6145
6146 * sysdeps/s390/s390-32/bzero.S: Delete file.
6147 * sysdeps/s390/s390-64/bzero.S: Likewise.
6148 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6149 * sysdeps/s390/bzero.c: New file.
6150 * sysdeps/s390/memset-z900.S: Add bzero entry points.
6151 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6152 * sysdeps/s390/multiarch/ifunc-impl-list.c
6153 (__libc_ifunc_impl_list): Add bzero ifunc variants.
6154
6155 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6156
6157 * sysdeps/s390/ifunc-memset.h: New File.
6158 * sysdeps/s390/memset.S: Move to ...
6159 * sysdeps/s390/memset-z900.S ... here.
6160 Move implementations from memset-s390x.s to here.
6161 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6162 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6163 Remove memset variants.
6164 * sysdeps/s390/Makefile (sysdep_routines):
6165 Add memset variants.
6166 * sysdeps/s390/multiarch/ifunc-impl-list.c
6167 (__libc_ifunc_impl_list): Adjust ifunc variants for
6168 memset.
6169 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6170 to ...
6171 * sysdeps/s390/memset.c: ... here.
6172 Adjust ifunc variants for memset.
6173
6174 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6175
6176 * sysdeps/s390/s390-64/memset.S: Move to ...
6177 * sysdeps/s390/memset.S: ... here.
6178 Adjust to be usable for 31/64bit.
6179 * sysdeps/s390/s390-32/memset.S: Delete File.
6180 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6181 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6182 Remove memset.
6183 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6184 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6185 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6186 Adjust to be usable for 31/64bit.
6187 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6188 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6189 * sysdeps/s390/multiarch/memset.c: ... here.
6190 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6191
6192 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6193
6194 * sysdeps/s390/multiarch/ifunc-resolve.h
6195 (s390_libc_ifunc_init, s390_libc_ifunc,
6196 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6197
6198 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6199
6200 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6201 * sysdeps/s390/configure.ac: Add check for z10 support.
6202 * sysdeps/s390/configure: Regenerated.
6203
6204 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
6205
6206 * sysdeps/i386/atomic-machine.h: Merged with ...
6207 * sysdeps/x86_64/atomic-machine.h: To ...
6208 * sysdeps/x86/atomic-machine.h: This. New file.
6209
6210 2018-12-18 Florian Weimer <fweimer@redhat.com>
6211
6212 Rewrite locale/gen-translit.pl in Python.
6213 * locale/Makefile (generated): Add C-translit.h.
6214 (before-compile): Add $(objpfx)C-translit.h.
6215 (C-translit.h): Move to $(objpfx). Create target directory.
6216 Build using Python script.
6217 * locale/gen-translit.py: New file.
6218 * locale/gen-translit.pl: Remove file.
6219 * locale/C-translit.h.in: Change comment character to '#' for
6220 easier parsing without a C preprocessor.
6221 * locale/C-translit.h: Remove generated file.
6222 * manual/install.texi (Tools for Compilation): Do not mention
6223 C-translit.h.
6224 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6225 Remove locale/C-translit.h.
6226 * scripts/update-copyrights: Likewise.
6227 * INSTALL: Regenerate.
6228
6229 2018-12-18 Florian Weimer <fweimer@redhat.com>
6230
6231 [BZ #23995]
6232 * localedata/locales/bi_VU: Remove executable bit from file.
6233
6234 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6235
6236 * include/time.h
6237 (__localtime64): Add.
6238 * manual/maint.texi: Document Y2038 symbol handling.
6239 * time/localtime.c
6240 (__localtime64): Add.
6241 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6242
6243 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6244
6245 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6246 Do not clobber r12.
6247
6248 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6249 to allow extra macros from first or second sources.
6250 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6251 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6252 (tests-special): Add $(objpfx)tst-mman-consts.out.
6253 ($(objpfx)tst-mman-consts.out): New makefile target.
6254
6255 2018-12-17 Mao Han <han_mao@c-sky.com>
6256
6257 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6258 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6259 without stat64 system call support.
6260 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6261 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6262 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6263 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6264 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6265 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6266 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6267 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6268 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6269 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6270 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6271
6272 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6273
6274 regex: fix storage-exhaustion error
6275 [BZ #18040]
6276 * posix/regexec.c (get_subexp):
6277 Do not continue if storage is exhausted.
6278
6279 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6280
6281 regex: fix heap-use-after-free error
6282 [BZ #18040]
6283 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6284 https://debbugs.gnu.org/32592
6285 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6286 call extend_buffers which reallocates the re_string_t internal buffer.
6287 Local variable 'buf' was not updated in such case, resulting in
6288 use-after-free.
6289 * posix/regexec.c (get_subexp): Update 'buf' after call to
6290 get_subexp_sub.
6291
6292 2018-12-15 Florian Weimer <fweimer@redhat.com>
6293
6294 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6295 (minimum_stride_size): Use it.
6296 (support_blob_repeat_allocate): Likewise.
6297
6298 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6299
6300 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6301 definition.
6302 (acosh): Likewise.
6303 (atanh): Likewise.
6304
6305 2018-12-14 Florian Weimer <fweimer@redhat.com>
6306
6307 * manual/process.texi (Process Creation Concepts): Remove
6308 documentation of process (ID) lifetime. List more process
6309 creation functions. Reference Process Identification section.
6310 (Process Identification): Add information about process ID
6311 lifetime. Describe Linux thread/task IDs.
6312 * manual/signal.texi (Signaling Another Process): Mention that the
6313 signal is always sent to the process.
6314
6315 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6316
6317 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6318 and tst-ldbl-efgcvt.
6319 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6320 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6321 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6322 (fcvt_tests, output_error, output_r_error, do_test): Use the
6323 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6324 select the type of floating-point variables and arguments; to
6325 produce extra tests for double and conversion specifiers for
6326 printf; and to set the names of called functions.
6327 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6328 in tst-efgcvt-template.c.
6329 * misc/tst-ldbl-efgcvt.c: Likewise.
6330
6331 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6332
6333 * nss/Makefile (tst-nss-test3.out): New rule.
6334
6335 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6336
6337 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6338 clobber sp.
6339
6340 2018-12-13 fanjinke <fanjinke@hygon.cn>
6341
6342 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6343 "HygonGenuine".
6344
6345 2018-12-13 Andreas Schwab <schwab@suse.de>
6346
6347 [BZ #23861]
6348 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6349 (__pthread_rwlock_rdlock_full): Update expected value for
6350 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6351 * nptl/tst-rwlock-pwn.c: New file.
6352 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6353
6354 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6355
6356 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6357 definition.
6358
6359 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6360
6361 * benchtests/scripts/compare_bench.py (do_compare): write to
6362 stderr in casestat is not present.
6363 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6364 stderr in case timings field is not present. Also string showing
6365 the output filename goes into the stderr.
6366
6367 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6368
6369 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6370 and ZeroDivisorError exceptions.
6371 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6372 argument to loop through user provided statistics.
6373 * benchtests/scripts/compare_bench.py (main): Include the --stats
6374 argument.
6375
6376 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6377
6378 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6379 instead of return.
6380
6381 2018-12-12 Florian Weimer <fweimer@redhat.com>
6382
6383 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6384 clause to copyright header.
6385
6386 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6387
6388 [BZ #23614]
6389 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6390 registers saved in the stack frame.
6391 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6392 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6393
6394 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6395
6396 * include/bits/monetary-ldbl.h: New file.
6397 * include/bits/printf-ldbl.h: Likewise.
6398 * include/bits/stdio-ldbl.h: Likewise.
6399 * include/bits/stdlib-ldbl.h: Likewise.
6400 * include/bits/syslog-ldbl.h: Likewise.
6401 * include/bits/wchar-ldbl.h: Likewise.
6402
6403 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6404
6405 * libio/libio.h: Remove redirection for _IO_vfprintf.
6406
6407 2018-12-11 Andreas Schwab <schwab@suse.de>
6408
6409 * Makerules: Remove all references to abilist-pattern.
6410 (update-all-abi): Simplify find expression.
6411
6412 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6413
6414 [BZ #23961]
6415 * math/auto-libm-test-in: Add new test case.
6416 * math/auto-libm-test-out-pow: Regenerated.
6417 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6418
6419 2018-12-10 DJ Delorie <dj@redhat.com>
6420
6421 [BZ #23948]
6422 * support/test-container.c: Move postclean step to before we
6423 change namespaces.
6424
6425 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6426
6427 * scripts/gen-as-const.py (main): Handle --python option.
6428 * scripts/gen-py-const.awk: Remove.
6429 * Makerules (py-const-script): Use gen-as-const.py.
6430 ($(py-const)): Likewise.
6431 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6432 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6433 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6434 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6435 ~PTHREAD_MUTEX_NO_ELISION_NP.
6436 * manual/README.pretty-printers: Update reference to
6437 gen-py-const.awk.
6438
6439 * scripts/glibcextract.py: New file.
6440 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6441 or tempfile. Import glibcexctract.
6442 (compute_c_consts): Remove. Moved to glibcextract.py.
6443 (gen_test): Update reference to compute_c_consts.
6444 (main): Likewise.
6445 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6446 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6447 * sysdeps/unix/sysv/linux/Makefile
6448 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6449 Redirect stderr as well as stdout.
6450
6451 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6452
6453 [BZ #19767]
6454 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6455 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6456 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6457 ALWAYS_USE_VSYSCALL.
6458 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6459 ALWAYS_USE_VSYSCALL.
6460 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6461 ALWAYS_USE_VSYSCALL.
6462
6463 2018-12-10 Florian Weimer <fweimer@redhat.com>
6464
6465 [BZ #23972]
6466 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6467 offset instead of count for clarity. Fix typo in comment.
6468 (__old_getdents64): Keep track of previous offset. Use it to call
6469 handle_overflow.
6470 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6471 that d_off is never zero.
6472
6473 2018-12-10 Andreas Schwab <schwab@suse.de>
6474
6475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6476 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6478 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6479 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6480
6481 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6482
6483 * timezone/private.h: Update from tzcode 2018g.
6484 * timezone/tzfile.h: Likewise.
6485 * timezone/tzselect.ksh: Likewise.
6486 * timezone/zdump.c: Likewise.
6487 * timezone/zic.c: Likewise.
6488
6489 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6490
6491 [BZ #23490]
6492 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6493 (do_test): Adjust buffer size and fix format.
6494
6495 2018-12-07 DJ Delorie <dj@redhat.com>
6496
6497 [BZ #23907]
6498 * malloc/tst-tcfree3.c: New.
6499 * malloc/Makefile: Add it.
6500
6501 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6502
6503 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6504
6505 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6506
6507 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6508 used as a mask for the mode argument of __vfscanf_internal and
6509 __vfwscanf_internal.
6510 * stdio-common/vfscanf-internal.c
6511 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6512 (__strtof128_internal): Define to __wcstof128_internal.
6513 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6514 __strtof128_internal or __wcstof128_internal when the format of
6515 long double is the same as _Float128.
6516
6517 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6518
6519 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6520 * posix/confstr.c (confstr): Rename to __confstr.
6521 (__confstr): Add hidden def.
6522 (confstr): Add weak alias for __confstr.
6523 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6524 confstr.
6525
6526 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6527
6528 * NEWS: Mention getcpu.
6529 * include/sched.h (__getcpu): New libc_hidden_proto.
6530 * manual/resource.texi: Document getcpu.
6531 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6532 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6533 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6534 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6535 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6536 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6537 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6538 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6539 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6540 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6541 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6542 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6543 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6544 Likewise.
6545 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6546 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6547 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6548 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6549 Likewise.
6550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6551 Likewise.
6552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6553 Likewise.
6554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6555 Likewise.
6556 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6557 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6558 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6559 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6560 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6561 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6562 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6563 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6564 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6565 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6566 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6567 Also check getcpu.
6568
6569 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6570
6571 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6572 functions.
6573 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6574
6575 2018-12-07 Florian Weimer <fweimer@redhat.com>
6576
6577 [BZ #17405]
6578 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6579 * posix/Versions (GLIBC_2.29): Export
6580 posix_spawn_file_actions_addfchdir_np.
6581 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6582 * posix/spawn_faction_destroy.c
6583 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6584 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6585 and the field action.fchdir_action.
6586 * posix/tst-spawn-chdir.c (add_chdir): New function.
6587 (do_test): Add do_fchdir loop. Call add_chdir.
6588 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6589 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6590 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6591 posix_spawn_file_actions_addfchdir_np.
6592 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6593 Likewise.
6594 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6595 Likewise.
6596 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6597 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6598 Likewise.
6599 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6600 Likewise.
6601 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6602 Likewise.
6603 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6604 Likewise.
6605 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6606 Likewise.
6607 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6608 Likewise.
6609 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6610 (GLIBC_2.29): Likewise.
6611 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6612 (GLIBC_2.29): Likewise.
6613 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6614 (GLIBC_2.29): Likewise.
6615 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6616 (GLIBC_2.29): Likewise.
6617 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6618 Likewise.
6619 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6620 (GLIBC_2.29): Likewise.
6621 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6622 (GLIBC_2.29): Likewise.
6623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6624 (GLIBC_2.29): Likewise.
6625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6626 (GLIBC_2.29): Likewise.
6627 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6628 Likewise.
6629 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6630 Likewise.
6631 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6632 Likewise.
6633 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6634 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6635 Likewise.
6636 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6637 Likewise.
6638 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6639 Likewise.
6640 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6641 Likewise.
6642
6643 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6644
6645 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6646 trailing whitespace removed.
6647 * scripts/config.guess: Update to version 2018-11-28.
6648 * scripts/config.sub: Update to version 2018-11-28.
6649 * scripts/install-sh: Update to version 2018-03-11.20.
6650 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6651 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6652
6653 2018-12-07 Florian Weimer <fweimer@redhat.com>
6654
6655 [BZ #23927]
6656 CVE-2018-19591
6657 * inet/tst-if_index-long.c: New file.
6658 * inet/Makefile (tests): Add tst-if_index-long.
6659
6660 2018-12-07 Florian Weimer <fweimer@redhat.com>
6661
6662 * support/check.h (support_record_failure_is_failed): Declare.
6663 * support/descriptors.h: New file.
6664 * support/support_descriptors.c: Likewise.
6665 * support/tst-support_descriptors.c: Likewise.
6666 * support/support_record_failure.c
6667 (support_record_failure_is_failed): New function.
6668 * support/Makefile (libsupport-routines): Add support_descriptors.
6669 (tests): Add tst-support_descriptors.
6670
6671 2018-12-05 Zack Weinberg <zackw@panix.com>
6672 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6673
6674 * stdio-common/vfprintf-internal.c
6675 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6676 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6677 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6678 and __no_long_double.
6679 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6680 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6681 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6682 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6683 and __nldbl_*syslog* functions.
6684 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6685 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6686 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6687 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6688 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6689 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6690 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6691 (__nldbl_vwprintf, __nldbl_wprintf):
6692 Directly call the appropriate __v*printf_internal routine, passing
6693 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6694 variable names.
6695 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6696 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6697 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6698 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6699 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6700 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6701 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6702 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6703 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6704 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6705 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6706 (__nldbl_syslog, __nldbl_vsyslog):
6707 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6708 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6709 appropriate.
6710 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6711 appropriate.
6712
6713 2018-12-05 Zack Weinberg <zackw@panix.com>
6714 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6715
6716 [BZ #11319]
6717 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6718 Moved here from debug/vsprintf_chk.c.
6719 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6720 and completion logic for the strfile to match exactly what
6721 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6722 _IO_str_init_static_internal instead of maxlen-1.
6723 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6724 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6725 __vsprintf_internal.
6726
6727 * debug/vsprintf_chk.c (__vsprintf_chk)
6728 * debug/sprintf_chk.c (__sprintf_chk):
6729 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6730 'flags' argument is positive, and slen as maxlen. No need to lock
6731 the FILE and/or construct a temporary FILE. Minimize and normalize
6732 header inclusions and variable names. Do not libc_hidden_def anything.
6733
6734 * debug/asprintf_chk.c (__asprintf_chk)
6735 * debug/dprintf_chk.c (__dprintf_chk)
6736 * debug/fprintf_chk.c (__fprintf_chk)
6737 * debug/fwprintf_chk.c (__fwprintf_chk)
6738 * debug/printf_chk.c (__printf_chk)
6739 * debug/snprintf_chk.c (__snprintf_chk)
6740 * debug/swprintf_chk.c (__swprintf_chk)
6741 * debug/vasprintf_chk.c (__vasprintf_chk)
6742 * debug/vdprintf_chk.c (__vdprintf_chk)
6743 * debug/vfprintf_chk.c (__vfprintf_chk)
6744 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6745 * debug/vprintf_chk.c (__vprintf_chk)
6746 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6747 * debug/vswprintf_chk.c (__vswprintf_chk)
6748 * debug/vwprintf_chk.c (__vwprintf_chk)
6749 * debug/wprintf_chk.c (__wprintf_chk):
6750 Directly call the corresponding vxxprintf_internal function, passing
6751 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6752 the FILE and/or construct a temporary FILE. Minimize and normalize
6753 header inclusions and variable names. Do not libc_hidden_def anything.
6754
6755 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6756 __obstack_vprintf_internal.
6757 (__obstack_vprintf_chk): Convert into a wrapper that calls
6758 __obstack_vprintf_internal (these two functions already had the
6759 same code) and move to new file...
6760 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6761 file.
6762 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6763 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6764 * debug/Makefile (routines): Add vobprintf_chk.
6765
6766 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6767 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6768 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6769 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6770 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6771 (__nldbl___obstack_vfprintf_chk):
6772 Directly call the corresponding vxxprintf_internal function,
6773 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6774 duplicate comparison of slen with 0 or maxlen from the corresponding
6775 non-__nldbl function.
6776
6777 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6778 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6779 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6780 Remove libc_hidden_proto.
6781
6782 * stdio-common/vfprintf-internal.c
6783 (__vfprintf_internal, __vfwprintf_internal):
6784 Do not check _IO_FLAGS2_FORTIFY.
6785 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6786 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6787 a comment explaining why it has the maxlen argument.
6788 (_IO_acquire_lock_clear_flags2_fct): Remove.
6789 (_IO_acquire_lock_clear_flags2): Remove.
6790 (_IO_release_lock): Remove conditional statement which will
6791 now never execute.
6792 (_IO_acquire_lock): Remove variable which is now unused.
6793 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6794 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6795
6796 * stdio-common/Makefile (tests): Add tst-bz11319 and
6797 tst-bz11319-fortify2.
6798 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6799 * stdio-common/tst-bz11319-fortify2.c: New file.
6800 * stdio-common/tst-bz11319.c: Likewise.
6801
6802 2018-12-05 Zack Weinberg <zackw@panix.com>
6803 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6804
6805 * misc/syslog.c: Include libioP.h, not iolibio.h.
6806 (__vsyslog_internal): New function with the former body of
6807 __vsyslog_chk; takes mode_flags argument same as
6808 __v*printf_internal. Call __vfprintf_internal directly.
6809
6810 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6811 Remove libc_hidden_def.
6812 (__syslog, __syslog_chk): Use __vsyslog_internal.
6813 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6814
6815 * include/sys/syslog.h: Add multiple inclusion guard.
6816 Add prototype for __vsyslog_internal.
6817 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6818
6819 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6820 Use __vsyslog_internal.
6821
6822 2018-12-05 Zack Weinberg <zackw@panix.com>
6823 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6824
6825 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6826 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6827 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6828 New functions.
6829 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6830 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6831
6832 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6833 Include wctype.h here if COMPILE_WPRINTF is defined.
6834 Define __vfprintf_internal or __vfwprintf_internal, depending
6835 on COMPILE_WPRINTF.
6836 Temporarily, on entry to this function, update mode_flags
6837 according to the environmental settings corresponding to
6838 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6839 Throughout, check mode_flags instead of __ldbl_is_dbl and
6840 _IO_FLAGS2_FORTIFY on the destination FILE.
6841 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6842 Include vfprintf-internal.c. Don't include wctype.h.
6843 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6844 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6845 and vfprintf.
6846 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6847 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6848 and vfwprintf.
6849 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6850
6851 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6852 and add mode_flags argument; use __vfprintf_internal.
6853 (__vdprintf): New function. Alias vdprintf to this.
6854 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6855 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6856 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6857 (__obstack_printf): Use __obstack_printf_internal.
6858 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6859 public aliases __vsnprintf and vsnprintf.
6860 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6861 called internally.
6862 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6863 public aliases _IO_vsprintf and vsprintf.
6864 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6865 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6866 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6867 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6868 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6869
6870 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6871 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6872 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6873 * stdio-common/printf.c: Use __vfprintf_internal.
6874
6875 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6876 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6877 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6878
6879 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6880 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6881 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6882 __vfwprintf_internal.
6883
6884 * libio/libio.h: Remove libc_hidden_proto and declaration for
6885 _IO_vfprintf.
6886 Remove declaration of _IO_vfwprintf.
6887 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6888 _IO_vsprintf.
6889 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6890 _IO_obstack_printf.
6891 * include/stdio.h: Add prototype for __vasprintf.
6892 (__vsnprintf): Remove declaration, because there are no more
6893 internal calls.
6894 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6895 declaration, because there are no more internal calls.
6896
6897 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6898 __vsnprintf_internal, instead of _IO_vsnprintf.
6899 * argp/argp-help.c (__argp_error, __argp_failure): Use
6900 __vasprintf_internal, instead of _IO_vasprintf.
6901 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6902 redefine, because there are no more internal calls.
6903
6904 2018-12-05 Zack Weinberg <zackw@panix.com>
6905 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6906
6907 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6908 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6909 Include libio/strfile.h instead of libioP.h.
6910 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6911 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6912 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6913 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6914 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6915 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6916 necessary. Do not set __no_long_double. Normalize variable names.
6917 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6918 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6919 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6920 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6921 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6922 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6923 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6924 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6925 Do not set __no_long_double. Normalize variable names.
6926
6927 2018-12-05 Zack Weinberg <zackw@panix.com>
6928 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6929
6930 * stdio-common/isoc99_scanf.c
6931 * stdio-common/isoc99_fscanf.c
6932 * stdio-common/isoc99_sscanf.c
6933 * stdio-common/isoc99_vscanf.c
6934 * stdio-common/isoc99_vfscanf.c
6935 * stdio-common/isoc99_vsscanf.c
6936 * wcsmbs/isoc99_wscanf.c
6937 * wcsmbs/isoc99_fwscanf.c
6938 * wcsmbs/isoc99_swscanf.c
6939 * wcsmbs/isoc99_vwscanf.c
6940 * wcsmbs/isoc99_vfwscanf.c
6941 * wcsmbs/isoc99_vswscanf.c:
6942 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6943 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6944 No need to lock and unlock the FILE passed to that function.
6945
6946 * stdio-common/vfscanf-internal.c
6947 (__vfscanf_internal, __vfwscanf_internal):
6948 Don't look at _IO_FLAGS2_SCANF_STD.
6949 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6950 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6951 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6952
6953 2018-12-05 Zack Weinberg <zackw@panix.com>
6954 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6955
6956 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6957 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6958 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6959 * libio/strfile.h: Add multiple inclusion guard.
6960 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6961
6962 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6963 consistency with the other version of this file.
6964 (ldbl_compat_symbol): New macro.
6965 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6966 New macro.
6967
6968 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6969 Define __vfscanf_internal or __vfwscanf_internal, depending on
6970 COMPILE_WSCANF; don't define any other public symbols.
6971 Remove errval and code to set errp.
6972 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6973 as the mode_flags argument.
6974 (encode_error, conv_error, input_error): Don't set errval.
6975 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6976 Include vfscanf-internal.c.
6977 * stdio-common/vfscanf.c: New file defining the public entry
6978 point vfscanf, which calls __vfscanf_internal.
6979 * stdio-common/vfwscanf.c: New file defining the public entry
6980 point vfwscanf, which calls __vfwscanf_internal.
6981
6982 * stdio-common/iovfscanf.c: New file.
6983 * stdio-common/iovfwscanf.c: Likewise.
6984
6985 * stdio-common/Makefile (routines): Add vfscanf-internal,
6986 vfwscanf-internal, iovfscanf, iovfwscanf.
6987 * stdio-common/Versions: Mention GLIBC_2.29, so that
6988 it can be used in SHLIB_COMPAT expressions.
6989 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6990 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6991 Call __vfscanf_internal, instead of _IO_vfscanf.
6992 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6993 _IO_vfscanf.
6994 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6995 _IO_vfwscanf.
6996
6997 * libio/iovsscanf.c: Clean up includes, when possible. Use
6998 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6999 __vfscanf_internal or __vfwscanf_internal directly.
7000 * libio/iovswscanf.c: Likewise.
7001 * libio/swscanf.c: Likewise.
7002 * libio/vscanf.c: Likewise.
7003 * libio/vwscanf.c: Likewise.
7004 * libio/wscanf.c: Likewise.
7005 * stdio-common/isoc99_fscanf.c: Likewise.
7006 * stdio-common/isoc99_scanf.c: Likewise.
7007 * stdio-common/isoc99_sscanf.c: Likewise.
7008 * stdio-common/isoc99_vfscanf.c: Likewise.
7009 * stdio-common/isoc99_vscanf.c: Likewise.
7010 * stdio-common/isoc99_vsscanf.c: Likewise.
7011 * stdio-common/scanf.c: Likewise.
7012 * stdio-common/sscanf.c: Likewise.
7013 * wcsmbs/isoc99_fwscanf.c: Likewise.
7014 * wcsmbs/isoc99_swscanf.c: Likewise.
7015 * wcsmbs/isoc99_vfwscanf.c: Likewise.
7016 * wcsmbs/isoc99_vswscanf.c: Likewise.
7017 * wcsmbs/isoc99_vwscanf.c: Likewise.
7018 * wcsmbs/isoc99_wscanf.c: Likewise.
7019
7020 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
7021
7022 * include/time.h
7023 (__tz_compute): Replace time_t with __time64_t.
7024 (__tz_convert): Replace time_t* with __time64_t.
7025 (__offtime): Replace time_t* with __time64_t.
7026 * time/gmtime.c
7027 (__gmtime_r): Adjust call to __tz_convert.
7028 (gmtime): Likewise.
7029 * time/localtime.c
7030 (__localtime_r): Likewise.
7031 (localtime): Likewise.
7032 * time/offtime.c: Replace time_t with __time64_t.
7033 * time/tzset.c: Likewise.
7034
7035 2018-12-04 Joseph Myers <joseph@codesourcery.com>
7036
7037 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
7038 dynamic linker unless [$(run-built-tests) = yes].
7039
7040 2018-12-03 DJ Delorie <dj@delorie.com>
7041
7042 * support/test-container.c (check_for_unshare_hints): New.
7043 (main): Call it if unshare fails. Add support for "su" scriptlet
7044 command.
7045
7046 2018-12-03 Joseph Myers <joseph@codesourcery.com>
7047
7048 * scripts/gen-as-const.py (compute_c_consts): Take an argument
7049 'START' to indicate that start text should be output.
7050 (gen_test): Likewise.
7051 (main): Generate 'START' for first symbol or '--' line, or at end
7052 of input if not previously generated.
7053
7054 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
7055
7056 [BZ #19767]
7057 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
7058 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
7059 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
7060 ALWAYS_USE_VSYSCALL.
7061
7062 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7063
7064 [BZ #23913]
7065 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
7066 new_argv by one.
7067
7068 2018-12-03 Carlos O'Donell <carlos@redhat.com>
7069
7070 [BZ #23923]
7071 * locale/programs/localedef.c: Declare boolean hard_links default true.
7072 (options): Add --no-hard-links option.
7073 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
7074 * locale/programs/localedef.h: Declare prototype for hard_links.
7075 * locale/programs/locfile.c (write_locale_data): Don't use hard
7076 links if hard_links is false.
7077
7078 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
7079
7080 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7081 cpu_features_basic.
7082 (__cache_sysconf): Likewise.
7083 (init_cacheinfo): Likewise.
7084 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7085 populate COMMON_CPUID_INDEX_80000007 and
7086 COMMON_CPUID_INDEX_80000008.
7087 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7088 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7089 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
7090 (init_cpu_features): Use _Static_assert on
7091 index_arch_Fast_Unaligned_Load.
7092 __get_cpuid_registers and __get_arch_feature. Updated for
7093 cpu_features_basic. Set stepping in cpu_features.
7094 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7095 (FEATURE_INDEX_2): New.
7096 (FEATURE_INDEX_MAX): Changed to enum.
7097 (COMMON_CPUID_INDEX_D_ECX_1): New.
7098 (COMMON_CPUID_INDEX_80000007): Likewise.
7099 (COMMON_CPUID_INDEX_80000008): Likewise.
7100 (cpuid_registers): Likewise.
7101 (cpu_features_basic): Likewise.
7102 (CPU_FEATURE_USABLE): Likewise.
7103 (bit_arch_XXX_Usable): Likewise.
7104 (cpu_features): Use cpuid_registers and cpu_features_basic.
7105 (bit_arch_XXX): Reweritten.
7106 (bit_cpu_XXX): Likewise.
7107 (index_cpu_XXX): Likewise.
7108 (reg_XXX): Likewise.
7109 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7110 <support/check.h>.
7111 (CHECK_CPU_FEATURE): New.
7112 (CHECK_CPU_FEATURE_USABLE): Likewise.
7113 (cpu_kinds): Likewise.
7114 (do_test): Print vendor, family, model and stepping. Check
7115 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7116 (TEST_FUNCTION): Removed.
7117 Include <support/test-driver.c> instead of
7118 "../../test-skeleton.c".
7119 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7120 Check POPCNT instead of POPCOUNT.
7121 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7122
7123 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7124
7125 * scripts/gen-as-const.py (main): Avoid emitting empty line when
7126 there is no element in `consts'.
7127
7128 2018-12-01 Florian Weimer <fweimer@redhat.com>
7129
7130 * support/support_capture_subprocess.c
7131 (support_capture_subprocess): Check that pipe descriptors have
7132 expected values. Close original pipe descriptors in subprocess.
7133
7134 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7135
7136 [BZ #23032]
7137 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7138 attr with __pthread_default_barrierattr.
7139 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7140 attr with __pthread_default_condattr.
7141 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7142 attr with __pthread_default_mutexattr.
7143 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7144 attr with __pthread_default_rwlockattr.
7145
7146 2018-12-01 Kemi Wang <kemi.wang@intel.com>
7147
7148 * manual/tunables.texi (POSIX Thread Tunables): New node.
7149 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7150 * nptl/nptl-init.c: Include pthread_mutex_conf.h
7151 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7152 __pthread_tunables_init.
7153 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7154 (max_adaptive_count): Define.
7155 * nptl/pthread_mutex_conf.c: New file.
7156 * nptl/pthread_mutex_conf.h: New file.
7157 * sysdeps/generic/adaptive_spin_count.h: New file.
7158 * sysdeps/nptl/dl-tunables.list: New file.
7159 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7160 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7161 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7162 Likewise.
7163
7164 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
7165
7166 [BZ #20544]
7167 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7168 * stdlib/on_exit.c (__on_exit): Likewise.
7169 * stdlib/Makefile (tests): Add tst-bz20544.
7170 * stdlib/tst-bz20544.c: New test.
7171
7172 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
7173
7174 [BZ #19767]
7175 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7176 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7177 New.
7178
7179 2018-11-30 Florian Weimer <fweimer@redhat.com>
7180
7181 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7182 Extend error logging.
7183 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7184 symbol.
7185
7186 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7187
7188 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7189 __sigismember instead of sigismember.
7190 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7191 cancel_handler): New definitions.
7192 (do_system): Use posix_spawn instead of fork and execl and remove
7193 reentracy code.
7194 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7195 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7196 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7197 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7198 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7199 * sysdeps/unix/sysv/linux/system.c: Likewise.
7200
7201 [BZ #22834]
7202 [BZ #17490]
7203 * NEWS: Add new semantic for atfork with popen and system.
7204 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7205 fork and execl.
7206
7207 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7208
7209 [BZ #23690]
7210 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7211 modification order when accessing reloc_result->addr.
7212 * include/link.h (reloc_result): Add field init.
7213 * nptl/Makefile (tests): Add tst-audit-threads.
7214 (modules-names): Add tst-audit-threads-mod1 and
7215 tst-audit-threads-mod2.
7216 Add rules to build tst-audit-threads.
7217 * nptl/tst-audit-threads-mod1.c: New file.
7218 * nptl/tst-audit-threads-mod2.c: Likewise.
7219 * nptl/tst-audit-threads.c: Likewise.
7220 * nptl/tst-audit-threads.h: Likewise.
7221
7222 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7223
7224 * scripts/gen-as-const.py: New file.
7225 * scripts/gen-as-const.awk: Remove.
7226 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7227 gen-as-const.py.
7228 ($(objpfx)test-as-const-%.c): Likewise.
7229
7230 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7231
7232 * elf/dl-exception.c: Include <_itoa.h>.
7233
7234 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7235
7236 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7237 returned by __f_setlk.
7238
7239 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7240 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7241
7242 * elf/Makefile (tests-internal): Add tst-create_format1.
7243 * elf/dl-exception.c (_dl_exception_create_format): Support
7244 %x, %lx and %zx.
7245 * elf/tst-create_format1.c: New file.
7246
7247 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7248
7249 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7250 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7251 gnulib.)
7252 * argp/argp-help.c (__argp_failure): Likewise.
7253
7254 2018-11-29 Mao Han <han_mao@c-sky.com>
7255
7256 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7257 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7258 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7259 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7260 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7261 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7262 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7263 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7264 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7265 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7266 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7267 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7268 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7269 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7270 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7271 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7272 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7273 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7274 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7275 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7276 (R_CKCORE_TLS_TPOFF32): New defines.
7277
7278 2018-11-29 Florian Weimer <fweimer@redhat.com>
7279
7280 * posix/Makefile (before-compile): Remove testcases.h and
7281 ptestcases.h.
7282 (generated): Add testcases.h and ptestcases.h.
7283 (testcases.h, ptestcases.h): Move to $(objpfx).
7284 (runtests.o): Add dependency on testcases.h.
7285 (runptests.o): Add dependency on ptestcases.h.
7286 * posix/testcases.h, posix/ptestcases.h: Remove files.
7287 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7288 not touch posix/testcases.h and posix/ptestcases.h.
7289
7290 2018-11-28 Florian Weimer <fweimer@redhat.com>
7291
7292 support: Add signal support to support_capture_subprocess_check.
7293 * support/capture_subprocess.h (support_capture_subprocess_check):
7294 Adjust comment and rename parameter.
7295 * support/support_capture_subprocess_check.c
7296 (print_actual_status): New function.
7297 (support_capture_subprocess_check): Support negative
7298 status_or_signal. Call print_actual_status.
7299 * support/tst-support_capture_subprocess.c (do_test): Call
7300 support_capture_subprocess_check.
7301 * libio/tst-vtables-common.c (termination_status)
7302 (init_termination_status): Remove.
7303 (check_for_termination): Adjust support_capture_subprocess_check
7304 call.
7305 (do_test): Remove call to init_termination_status.
7306
7307 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7308
7309 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7310 source directory instead of a copy.
7311 (CommandList.create_copy_dir): Remove.
7312
7313 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7314
7315 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7316
7317 2018-11-28 Florian Weimer <fweimer@redhat.com>
7318
7319 * support/support.h (support_quote_string): Do not use str
7320 parameter name.
7321
7322 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7323
7324 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7325 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7326
7327 2018-11-27 Florian Weimer <fweimer@redhat.com>
7328
7329 * support/support.h (support_quote_string): Declare.
7330 * support/support_quote_string.c: New file.
7331 * support/tst-support_quote_string.c: Likewise.
7332 * support/Makefile (libsupport-routines): Add
7333 support_quote_string.
7334 (tests): Add tst-support_quote_string.
7335
7336 2018-11-27 Florian Weimer <fweimer@redhat.com>
7337
7338 [BZ #23927]
7339 CVE-2018-19591
7340 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7341 descriptor leak in case of ENODEV error.
7342
7343 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7344
7345 [BZ #19767]
7346 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7347 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7348 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7349
7350 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7351
7352 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7353 Error for unknown lines.
7354
7355 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7356
7357 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7358 Touch additional files.
7359
7360 2018-11-26 Florian Weimer <fweimer@redhat.com>
7361
7362 [BZ #23907]
7363 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7364 double-frees.
7365
7366 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7367
7368 [BZ #19767]
7369 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7370 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7371 SHARED. Include sysdep.h.
7372 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7373 ALWAYS_USE_VSYSCALL.
7374 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7375 ALWAYS_USE_VSYSCALL.
7376
7377 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7378
7379 [BZ #19767]
7380 * nptl/Makefile (tests-static): Add tst-cond11-static.
7381 (tests): Likewise.
7382 * nptl/tst-cond11-static.c: New File.
7383 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7384 tst-affinity-static.
7385 (tests): Likewise.
7386 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7387 instead of SHARED.
7388 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7389 (USE_VSYSCALL): Likewise.
7390 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7391 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7392 instead of SHARED.
7393 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7394 SHARED.
7395 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7396 New.
7397
7398 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7399
7400 [BZ #23915]
7401 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7402 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7403 Undefine.
7404
7405 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7406
7407 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7408 (tst-cet-legacy-1a-ARGS): New.
7409 ($(objpfx)tst-cet-legacy-1a): New target.
7410 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7411
7412 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7413
7414 * conform/conformtest.py (CompileSubTest.__init__): Set
7415 self.run_early to False.
7416 (ExecuteSubTest.__init__): Likewise.
7417 (HeaderTests.run): Try running all non-optional, non-XFAILed
7418 compilation tests in a single execution of the compiler.
7419
7420 * conform/conformtest.py (CompileSubTest): New class.
7421 (ExecuteSubTest): Likewise.
7422 (ElementTest.run): Rename to gen_subtests. Append tests to
7423 self.subtests instead of running them.
7424 (ConstantTest.run): Likewise.
7425 (SymbolTest.run): Likewise.
7426 (TypeTest.run): Likewise.
7427 (TagTest.run): Likewise.
7428 (FunctionTest.run): Likewise.
7429 (VariableTest.run): Likewise.
7430 (MacroFunctionTest.run): Likewise.
7431 (MacroStrTest.run): Likewise.
7432 (HeaderTests.handle_test_line): Generate subtests for tests.
7433 (HeaderTests.run): Run subtests for tests.
7434
7435 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7436
7437 * math/Versions (GLIBC_2.29): Add pow.
7438 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7439 symbol.
7440 * math/w_pow.c: New file.
7441 * sysdeps/i386/fpu/w_pow.c: New file.
7442 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7443 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7444 and add necessary aliases.
7445 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7446 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7447 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7448 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7449 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7450 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7451 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7452 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7453 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7454 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7455 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7456 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7457 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7458 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7459 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7460 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7461 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7464 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7465 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7466 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7467 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7468 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7469 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7470 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7471 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7472 __pow.
7473 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7474 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7475 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7476
7477 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7478
7479 * math/Versions (GLIBC_2.29): Add log2.
7480 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7481 symbol.
7482 * math/w_log2.c: New file.
7483 * sysdeps/i386/fpu/w_log2.c: New file.
7484 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7485 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7486 and add necessary aliases.
7487 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7488 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7489 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7490 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7491 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7492 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7493 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7494 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7495 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7496 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7497 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7498 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7499 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7500 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7501 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7504 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7506 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7507 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7508 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7509 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7510 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7511 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7512 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7513
7514 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7515
7516 * math/Versions (GLIBC_2.29): Add log.
7517 * math/w_log_compat.c (__log_compat): Change to versioned compat
7518 symbol.
7519 * math/w_log.c: New file.
7520 * sysdeps/i386/fpu/w_log.c: New file.
7521 * sysdeps/ia64/fpu/e_log.S: Update.
7522 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7523 and add necessary aliases.
7524 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7525 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7526 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7527 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7528 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7529 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7530 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7531 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7532 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7533 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7534 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7535 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7536 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7537 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7538 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7543 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7544 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7545 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7546 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7547 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7548 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7549 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7550 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7551 __log.
7552 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7553 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7554 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7555 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7556
7557 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7558
7559 * math/Versions (GLIBC_2.29): Add exp and exp2.
7560 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7561 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7562 * math/w_exp_compat.c (__exp_compat): Likewise.
7563 * math/w_exp.c: New file.
7564 * math/w_exp2.c: New file.
7565 * sysdeps/i386/fpu/w_exp.c: New file.
7566 * sysdeps/i386/fpu/w_exp2.c: New file.
7567 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7568 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7569 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7570 and add necessary aliases.
7571 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7572 and add necessary aliases.
7573 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7574 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7575 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7576 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7577 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7578 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7579 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7580 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7581 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7582 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7583 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7584 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7585 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7586 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7587 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7588 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7589 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7594 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7595 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7596 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7597 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7598 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7599 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7600 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7601 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7602 (__ieee754_exp): Rename to __exp.
7603 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7604 (__ieee754_exp): Rename to __exp.
7605 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7606 (__ieee754_exp): Rename to __exp.
7607 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7608 __exp.
7609 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7610
7611 2018-11-20 DJ Delorie <dj@redhat.com>
7612
7613 * malloc/malloc.c (tcache_entry): Add key field.
7614 (tcache_put): Set it.
7615 (tcache_get): Likewise.
7616 (_int_free): Check for double free in tcache.
7617 * malloc/tst-tcfree1.c: New.
7618 * malloc/tst-tcfree2.c: New.
7619 * malloc/Makefile: Run the new tests.
7620 * manual/probes.texi: Document memory_tcache_double_free probe.
7621
7622 * dlfcn/dlerror.c (check_free): Prevent double frees.
7623
7624 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7625
7626 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7627
7628 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7629
7630 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7631 in tests. Use names for format arguments.
7632 (ConstantTest.run): Likewise.
7633 (SymbolTest.run): Likewise.
7634 (TypeTest.run): Likewise.
7635 (TagTest.run): Likewise.
7636 (FunctionTest.run): Likewise.
7637 (VariableTest.run): Likewise.
7638 (MacroFunctionTest.run): Likewise.
7639 (MacroStrTest.run): Likewise.
7640 (HeaderTests.__init__): Set self.num_tests.
7641 (HeaderTests.handle_test_line): Set test.num. Increment
7642 self.num_tests.
7643
7644 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7645
7646 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7647 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7648 SEEK_SET.
7649
7650 2018-11-19 Mao Han <han_mao@c-sky.com>
7651
7652 * scripts/config.guess: Update to version 2018-08-29.
7653 * scripts/config.sub: Update to version 2018-08-29.
7654
7655 2018-11-19 Florian Weimer <fweimer@redhat.com>
7656
7657 support: Print timestamps in timeout handler.
7658 * support/support_test_main.c (print_timestamp): New function.
7659 (signal_handler): Use it to print the termination time and the
7660 time of the last write to standard output.
7661
7662 2018-11-16 Zack Weinberg <zackw@panix.com>
7663 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7664
7665 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7666 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7667 argument.
7668 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7669 and add flags argument. Check flags instead of __ldbl_is_dbl when
7670 deciding whether to set is_long_double.
7671 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7672 passing zero for flags argument.
7673 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7674
7675 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7676 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7677 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7678 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7679 variable names. Remove libc_hidden_def/libc_hidden_proto from
7680 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7681 longer called from within the library.
7682 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7683 for __nldbl___vstrfmon_l, declare it explicitly.
7684
7685 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7686
7687 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7688
7689 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7690 macros
7691 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7692 F_SETLK64, F_SETLKW64, respectively.
7693 * sysdeps/mach/hurd/f_setlk.c: New file.
7694 * sysdeps/mach/hurd/f_setlk.h: New file.
7695 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7696 f_setlk.
7697 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7698 (__libc_fcntl): Move non-flock operations to...
7699 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7700 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7701
7702 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7703
7704 mktime: DEBUG_MKTIME cleanup
7705 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7706 And it’s no longer needed now that glibc and Gnulib both have
7707 their own testing mechanisms for mktime.
7708 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7709
7710 mktime: fix non-EOVERFLOW errno handling
7711 [BZ#23789]
7712 mktime was not properly reporting failures when the underlying
7713 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7714 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7715 The problem could happen on non-glibc platforms, with Gnulib.
7716 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7717 (tm_diff): ... this simpler function, which does not change errno.
7718 All callers changed to deal with errno themselves.
7719 (ranged_convert, __mktime_internal): Return failure immediately if
7720 the underlying function reports any failure other than EOVERFLOW.
7721 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7722 gap code fails.
7723
7724 mktime: fix bug with Y2038 DST transition
7725 [BZ#23789]
7726 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7727 mishandle a DST transition that jumps over the Y2038 boundary.
7728 No such DST transitions are known so this is only a theoretical
7729 bug, but we might as well do things right.
7730
7731 mktime: make more room for overflow
7732 [BZ#23789]
7733 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7734 This is so that we can add tm_diff results to a previous guess,
7735 which will be useful in a later patch.
7736
7737 mktime: simplify offset guess
7738 [BZ#23789]
7739 * time/mktime.c (__mktime_internal): Omit excess precision.
7740
7741 mktime: new test for mktime failure
7742 [BZ#23789]
7743 Based on a test suggested by Albert Aribaud in:
7744 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7745 * time/Makefile (tests): Add bug-mktime4.
7746 * time/bug-mktime4.c: New file.
7747
7748 mktime: fix EOVERFLOW bug
7749 [BZ#23789]
7750 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7751 Include libc-config.h, not config.h, for __set_errno.
7752 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7753
7754 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7755
7756 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7757 __attribute_copy__ to copy attributes from name. Drop static qualifier
7758 to avoid warnings about leaf attribute not having effect on static
7759 functions.
7760
7761 2018-11-13 Florian Weimer <fweimer@redhat.com>
7762
7763 * malloc/malloc.c (fastbin_push_entry): New function.
7764 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7765 (REMOVE_FB): Remove macro.
7766 (_int_malloc): Use fastbin_pop_entry and reindent.
7767 (_int_free): Use fastbin_push_entry.
7768 (malloc_consolidate): Use atomic_exchange_acquire.
7769
7770 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7771
7772 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7773 alias attribute, not with strong_alias.
7774
7775 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7776 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7777 with additional parameter thread.
7778 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7779 in terms of __hidden_ver2.
7780 (hidden_tls_def): New macro.
7781 (libc_hidden_tls_def): Likewise.
7782 (rtld_hidden_tls_def): Likewise.
7783 (libm_hidden_tls_def): Likewise.
7784 (libmvec_hidden_tls_def): Likewise.
7785 (libresolv_hidden_tls_def): Likewise.
7786 (librt_hidden_tls_def): Likewise.
7787 (libdl_hidden_tls_def): Likewise.
7788 (libnss_files_hidden_tls_def): Likewise.
7789 (libnsl_hidden_tls_def): Likewise.
7790 (libnss_nisplus_hidden_tls_def): Likewise.
7791 (libutil_hidden_tls_def): Likewise.
7792 (libutil_hidden_tls_def): Likweise.
7793 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7794 libc_hidden_tls_def.
7795 (__sim_disabled_exceptions_thread): Likewise.
7796 (__sim_round_mode_thread): Likewise.
7797
7798 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7799 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7800 copy attributes from name.
7801
7802 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7803
7804 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7805 Use __attribute_copy__ to copy attributes from name.
7806
7807 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7808 with __hidden_ver1 call.
7809 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7810 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7811 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7812 (__cosf): Do not declare here.
7813 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7814 (__sincosf): Do not declare here.
7815 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7816 (__sinf): Do not declare here.
7817
7818 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7819 (__BIG_ENDIAN): Likewise.
7820 (__BYTE_ORDER): Likewise.
7821 (strong_alias): Likewise.
7822 (_strong_alias): Likewise.
7823
7824 2018-11-12 Florian Weimer <fweimer@redhat.com>
7825
7826 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7827 function. Move after the definition of in_smallbin_range. Do not
7828 use __builtin_expect for paths that lead to a noreturn function.
7829 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7830 because it is unclear whether this is in fact an unlikely
7831 condition.
7832 (_int_malloc, _int_free): Adjust.
7833 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7834 variables.
7835 * malloc/arena.c (heap_trim): Likewise.
7836
7837 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7838
7839 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7840 it, free it if needed.
7841 (reauthenticate): Test and use ccwdir.
7842 (child_init_port): In non-resetids case, test and use ccwdir.
7843 (child_chdir): New nested function to set ccwdir.
7844 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7845 * hurd/hurd/port.h (_hurd_port_move): New function.
7846 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7847 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7848 * hurd/Versions (_hurd_port_move): Export function.
7849 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7850 symbol.
7851 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7852 of dtablesize for allocating dtable_cloexec.
7853
7854 2018-11-09 Martin Sebor <msebor@redhat.com>
7855
7856 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7857 it's already defined.
7858 (_strong_alias): Use __attribute_copy__.
7859 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7860 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7861 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7862 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7863 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7864 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7865 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7866 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7867 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7868 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7869 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7870 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7871 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7872 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7873 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7874 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7875 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7876 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7877 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7878
7879 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7880
7881 * misc/tst-efgcvt.c: Include support/check.h and
7882 support/test-driver.c. Do not include test-skeleton.c.
7883 (error_count): Remove.
7884 (output_error): Replace increments to error_count with calls to
7885 support_record_failure.
7886 (output_r_error): Likewise.
7887 (special): Likewise.
7888 (do_test): Unconditionally return zero.
7889 (TEST_FUNCTION): Remove.
7890
7891 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7892
7893 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7894 not $(@D)/scratch.
7895 ($(linknamespace-header-tests)): Likewise.
7896
7897 * conform/conformtest.py: New file.
7898 * conform/conformtest.pl: Remove.
7899 * conform/GlibcConform.pm: Likewise.
7900 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7901 (KEYWORDS_C99): Likewise.
7902 (KEYWORDS): Likewise.
7903 * conform/Makefile ($(conformtest-header-tests)): Use
7904 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7905 option. Use --header instead of --headers.
7906 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7907 function entries.
7908 * conform/data/spawn.h-data: Likewise.
7909 * conform/data/fcntl.h-data (openat): Add space after function
7910 name.
7911 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7912 (wcscasecmp_l): Likewise.
7913 * conform/data/termios.h-data (c_cc): Add space after element
7914 name.
7915
7916 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7917
7918 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7919 instead of manually comparing and reporting mismatching strings.
7920 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7921 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7922
7923 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7924
7925 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7926 __ASSUME_SOCKETCALL.
7927 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7928 (__ASSUME_SOCKETCALL): Remove.
7929 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7930 (__ASSUME_SOCKETCALL): Likewise.
7931 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7932 (__ASSUME_SOCKETCALL): Likewise.
7933 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7934 (__ASSUME_SOCKETCALL): Likewise.
7935 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7936 (__ASSUME_SOCKETCALL): Likewise.
7937 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7938 (__ASSUME_SOCKETCALL): Likewise.
7939 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7940 (__ASSUME_SOCKETCALL): Likewise.
7941
7942 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7943
7944 [BZ #23509]
7945 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7946 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7947 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7948 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7949 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7950 lc_unknown.
7951
7952 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7953
7954 [BZ #17630]
7955 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7956
7957 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7958
7959 [BZ #23867]
7960 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7961 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7962 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7963 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7964
7965 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7966
7967 * support/support_test_compare_string.c
7968 (support_test_compare_string): Fix printf format.
7969
7970 2018-11-07 Florian Weimer <fweimer@redhat.com>
7971
7972 Implement TEST_COMPARE_STRING.
7973 * support/check.h (TEST_COMPARE_STRING): Define.
7974 (support_test_compare_string): Declare.
7975 * support/Makefile (libsupport-routines): Add
7976 support_test_compare_string.
7977 (tests): Add tst-test_compare_string.
7978 * support/support_test_compare_string.c: New file.
7979 * support/tst-test_compare_string.c: Likewise.
7980
7981 2018-11-07 Andreas Schwab <schwab@suse.de>
7982
7983 [BZ #23864]
7984 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7985 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7986 Undef.
7987
7988 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7989
7990 [BZ #23862]
7991 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7992 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7993 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7994 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7995 Likewise.
7996
7997 2018-11-06 Florian Weimer <fweimer@redhat.com>
7998
7999 [BZ #17405]
8000 * posix/Makefile (routines): Add spawn_faction_addchdir.
8001 (tests): Add tst-spawn-chdir.
8002 * posix/Versions (GLIBC_2.29): Add
8003 posix_spawn_file_actions_addchdir_np.
8004 * posix/spawn_faction_addchdir.c: New file.
8005 * posix/spawn_faction_destroy.c
8006 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
8007 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
8008 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
8009 chdir_action.
8010 * posix/tst-spawn-chdir.c: New file.
8011 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
8012 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
8013 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
8014 posix_spawn_file_actions_addchdir_np.
8015 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
8016 Likewise.
8017 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
8018 Likewise.
8019 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
8020 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
8021 Likewise.
8022 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
8023 Likewise.
8024 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
8025 Likewise.
8026 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
8027 Likewise.
8028 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
8029 Likewise.
8030 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
8031 Likewise.
8032 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
8033 (GLIBC_2.29): Likewise.
8034 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
8035 (GLIBC_2.29): Likewise.
8036 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
8037 (GLIBC_2.29): Likewise.
8038 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
8039 (GLIBC_2.29): Likewise.
8040 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
8041 Likewise.
8042 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
8043 (GLIBC_2.29): Likewise.
8044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
8045 (GLIBC_2.29): Likewise.
8046 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
8047 (GLIBC_2.29): Likewise.
8048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
8049 (GLIBC_2.29): Likewise.
8050 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
8051 Likewise.
8052 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
8053 Likewise.
8054 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
8055 Likewise.
8056 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
8057 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
8058 Likewise.
8059 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
8060 Likewise.
8061 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
8062 Likewise.
8063 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
8064 Likewise.
8065
8066 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8067
8068 * misc/Makefile (tests): Add tst-ldbl-error.
8069 * misc/tst-ldbl-error.c: New file.
8070
8071 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8072
8073 * misc/Makefile (tests): Add tst-ldbl-warn.
8074 * misc/tst-ldbl-warn.c: New file.
8075
8076 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
8077
8078 * argp/Makefile (tests): Add tst-ldbl-argp.
8079 * argp/tst-ldbl-argp.c: New file.
8080
8081 2018-11-05 Arjun Shankar <arjun@redhat.com>
8082
8083 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8084 __gconv_path_elem and call __gconv_get_path unconditionally.
8085
8086 2018-11-05 Andreas Schwab <schwab@suse.de>
8087
8088 [BZ #22927]
8089 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8090 creating the first helper thread failed.
8091
8092 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8093
8094 * sysdeps/mach/hurd/msync.c: New file.
8095
8096 2018-11-02 Florian Weimer <fweimer@redhat.com>
8097
8098 * support/shell-container.c (copy_func): Call
8099 support_copy_file_range instead of copy_file_range to support
8100 cross-device copies.
8101
8102 2018-11-02 Florian Weimer <fweimer@redhat.com>
8103
8104 * support/test-container.c: Include <libc-pointer-arith.h> for
8105 ALIGN_UP.
8106
8107 2018-11-01 Zong Li <zong@andestech.com>
8108
8109 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8110 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8111 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8112 (__FP_FRAC_SET_8): Add implementation for RV32 use.
8113
8114 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8115 variable to avoid overlap arguments.
8116
8117 2018-11-01 Joseph Myers <joseph@codesourcery.com>
8118
8119 * posix/bug-regex22.c (main): Use puts with distinct error
8120 messages for unexpected success of re_compile_pattern, not printf
8121 with NULL argument to %s.
8122
8123 * stdio-common/bug22.c: Include <libc-diag.h>.
8124 (do_test): Disable -Wformat-overflow= warnings around fprintf
8125 calls outputting more than INT_MAX characters.
8126 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8127 around printf call with NULL %s argument.
8128
8129 [BZ #23848]
8130 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8131 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8132 Undefine.
8133 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8134 (__ASSUME_RECVMSG_SYSCALL): Likewise.
8135 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8136 (__ASSUME_SENDTO_SYSCALL): Likewise.
8137 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8138 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8139 [!__arch64__].
8140 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8141 (__ASSUME_CONNECT_SYSCALL): Likewise.
8142 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8143 (__ASSUME_RECVFROM_SYSCALL): Likewise.
8144 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8145 Define.
8146 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8147 Likewise.
8148 [__LINUX_KERNEL_VERSION >= 0x040400]
8149 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8150 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8151 Remove.
8152 (listen): Likewise.
8153 (setsockopt): Likewise.
8154
8155 2018-11-01 Fredrik Noring <noring@nocrew.org>
8156
8157 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8158 with the ISA override.
8159
8160 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
8161
8162 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8163 #endif.
8164
8165 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8166
8167 * manual/errno.texi (EIEIO): Document how translators should
8168 translate the error message.
8169 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
8170 printing trailing whitespaces refused by git.
8171 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8172 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8173 * hurd/Makefile (user-interfaces): Add pci.
8174
8175 2018-10-30 Joseph Myers <joseph@codesourcery.com>
8176
8177 * conform/linknamespace.py: New file.
8178 * conform/linknamespace.pl: Remove file.
8179 * conform/Makefile ($(linknamespace-header-tests)): Use
8180 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
8181 option.
8182
8183 2018-10-30 Florian Weimer <fweimer@redhat.com>
8184
8185 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8186 memory leaks.
8187
8188 2018-10-30 Florian Weimer <fweimer@redhat.com>
8189
8190 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8191
8192 2018-10-30 Florian Weimer <fweimer@redhat.com>
8193
8194 * stdlib/tst-strtod-overflow.c (do_test): Switch to
8195 support_blob_repeat.
8196
8197 2018-10-30 Florian Weimer <fweimer@redhat.com>
8198
8199 Avoid spurious test failures in stdlib/test-bz22786.
8200 * support/Makefile (libsupport-routines): Add blob_repeat.
8201 (tests): Add tst-support_blob_repeat.
8202 * support/blob_repeat.h: New file.
8203 * support/blob_repeat.c: Likewise.
8204 * support/tst-support_blob_repeat.c: Likewise.
8205 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8206 support_blob_repeat_allocate.
8207
8208 2018-10-30 Andreas Schwab <schwab@suse.de>
8209
8210 [BZ #23125]
8211 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8212 Don't use tail call.
8213 * elf/tst-unwind-main.c: New file.
8214 * elf/Makefile (tests): Add tst-unwind-main.
8215 (CFLAGS-tst-unwind-main.c): Define.
8216
8217 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8218
8219 [BZ #23791]
8220 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8221 n_cs_precedes to 0.
8222 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8223
8224 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8225
8226 * conform/glibcconform.py: Do not import shutil.
8227 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8228 of mkdtemp.
8229
8230 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8231 critic_missing for versions before 3.4.
8232 * configure: Regenerated.
8233 * manual/install.texi (Tools for Compilation): Document
8234 requirement for Python to build glibc.
8235 * INSTALL: Regenerated.
8236 * Rules [PYTHON]: Make code unconditional.
8237 * benchtests/Makefile [PYTHON]: Likewise.
8238 * conform/Makefile [PYTHON]: Likewise.
8239 * manual/Makefile [PYTHON]: Likewise.
8240 * math/Makefile [PYTHON]: Likewise.
8241
8242 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8243
8244 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8245 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8246 answer to interrupt_operation, return EIEIO instead of EINTR.
8247 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8248 _hurd_intr_rpc_msg_about_to global point to start of controlled
8249 assembly snippet. Make it check canceled flag.
8250 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8251 the _hurd_intr_rpc_msg_about_to point.
8252 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8253 issue, remove cancel flag check.
8254
8255 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8256
8257 * scripts/build-many-glibcs.py: Remove compatibility for missing
8258 os.cpu_count and re.fullmatch.
8259
8260 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8261
8262 [BZ #23822]
8263 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8264 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8265 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8266
8267 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8268
8269 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8270 macro.
8271
8272 2018-10-25 Florian Weimer <fweimer@redhat.com>
8273
8274 [BZ #23562]
8275 [BZ #23821]
8276 XFAIL siginfo_t si_band conform test on sparc64.
8277 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8278 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8279 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8280 (conformtest-xfail-conds): Add sparc64-linux.
8281 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8282 sparc64.
8283 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8284
8285 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8286
8287 * elf/elf.h (NT_MIPS_DSP): New macro.
8288 (NT_MIPS_FP_MODE): Likewise.
8289
8290 2018-10-25 Zong Li <zong@andestech.com>
8291
8292 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8293 name by adding the file extension (.so).
8294
8295 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8296
8297 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8298 (test-xfail-ISO11/threads.h/linknamespace,
8299 test-xfail-ISO11/threads.h/conform): Add.
8300
8301 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8302
8303 * math/gen-libm-test.py: Import os.
8304 (ALL_FLOATS_MANUAL): New constant.
8305 (ALL_FLOATS_SUFFIX): Likewise.
8306 (Ulps.all_functions): New function.
8307 (real_all_ulps): Likewise.
8308 (generate_err_table_sub): Likewise.
8309 (generate_err_table): Likewise.
8310 (main): Handle -s and -m options.
8311 * manual/libm-err-tab.pl: Remove.
8312 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8313 instead of libm-err-tab.pl.
8314 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8315 != no].
8316 * manual/install.texi (Tools for Compilation): Document
8317 requirement for Python to build manual.
8318 * INSTALL: Regenerated.
8319
8320 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8321
8322 * bits/time64.h: New file.
8323 * include/time.h: Replace internal_time_t with __time64_t.
8324 * posix/bits/types (__time64_t): Add.
8325 * stdlib/Makefile: Add bits/time64.h to includes.
8326 * time/tzfile.c: Replace internal_time_t with __time64_t.
8327
8328 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8329
8330 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8331 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8332 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8333 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8334 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8335 prototype.
8336 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8337 * posix/spawn_faction_addclose.c
8338 (__posix_spawn_file_actions_addclose): Add hidden definition.
8339 * posix/spawn_faction_adddup2.c
8340 (__posix_spawn_file_actions_adddup2): Likewise.
8341 * posix/spawn_faction_destroy.c
8342 (__posix_spawn_file_actions_destroy): Likewise.
8343 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8344 Likewise.
8345 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8346 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8347 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8348 Likewise.
8349 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8350 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8351 Likewise.
8352
8353 2018-10-24 Andreas Schwab <schwab@suse.de>
8354
8355 [BZ #18093]
8356 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8357 format cache.
8358 * elf/cache.c (print_cache): Likewise.
8359
8360 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8361
8362 * bits/timesize.h: New file.
8363 * stdlib/Makefile (headers): Add bits/timesize.h.
8364 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8365 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8366 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8367 (__SEM_PAD_AFTER_TIME): Likewise.
8368 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8369 (__SHM_PAD_AFTER_TIME): Likewise.
8370 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8371 (__MSQ_PAD_BEFORE_TIME): Likewise.
8372 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8373 (__SEM_PAD_BEFORE_TIME): Likewise.
8374 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8375 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8376 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8377 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8378 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8379 (__MSQ_PAD_BEFORE_TIME): Likewise.
8380 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8381 (__SEM_PAD_BEFORE_TIME): Likewise.
8382 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8383 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8384 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8385 (__MSQ_PAD_BEFORE_TIME): Likewise.
8386 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8387 (__SEM_PAD_BEFORE_TIME): Likewise.
8388 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8389 (__SHM_PAD_BEFORE_TIME): Likewise.
8390 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8391 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8392 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8393
8394 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8395
8396 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8397 USE_RDTSCP is defined.
8398 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8399 USE_RDTSCP is defined.
8400
8401 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8402
8403 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8404 defined.
8405
8406 [BZ #23709]
8407 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8408 independently of other flags.
8409
8410 2018-10-23 Florian Weimer <fweimer@redhat.com>
8411
8412 * time/tst-mktime2.c (N_STRINGS): Remove.
8413 (set_timezone): New function.
8414 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8415 (mktime_test1): Report localtime failure and check errno value.
8416 Use TEST_COMPARE.
8417 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8418 (do_test): Remove alarm call. Use set_timezone and array_length.
8419
8420 2018-10-23 Andreas Schwab <schwab@suse.de>
8421
8422 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8423 (__start_context): Use END instead of PSEUDO_END.
8424
8425 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8426
8427 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8428 version to 4.19.
8429
8430 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8431 version to 4.19.
8432
8433 [BZ #23793]
8434 * wcsmbs/c32rtomb.c: New file.
8435 * wcsmbs/mbrtoc32.c: Likewise.
8436 * wcsmbs/tst-c32-state.c: Likewise.
8437 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8438 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8439 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8440 (tests): Add tst-c32-state.
8441 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8442 $(gen-locales).
8443
8444 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8445
8446 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8447 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8448
8449 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8450
8451 [BZ #23794]
8452 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8453 pair and return 0 in that case, and use saved character to
8454 interpret following character.
8455 * wcsmbs/tst-c16-surrogate.c: New file.
8456 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8457 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8458 Depend on $(gen-locales)
8459
8460 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8461
8462 [BZ #23562]
8463 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8464 (struct siginfo_t): Use correct type for si_band.
8465
8466 2018-10-19 Florian Weimer <fweimer@redhat.com>
8467
8468 [BZ #23689]
8469 * resource/bits/types/struct_rusage.h (struct rusage): Update
8470 comment on struct. Remove extraneous field comment.
8471
8472 2018-10-18 David S. Miller <davem@davemloft.net>
8473
8474 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8475 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8476 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8477 sysdep_routines in subdir elf.
8478 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8479 version for __vdso_clock_gettime.
8480 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8481 Define.
8482 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8483 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8484
8485 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8486
8487 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * sysdeps/i386/init-arch.h: Removed.
8490 * sysdeps/i386/i586/init-arch.h: Likewise.
8491 * sysdeps/i386/i686/init-arch.h: Likewise.
8492 * sysdeps/i386/i686/hp-timing.h: Likewise.
8493 * sysdeps/x86_64/hp-timing.h: Likewise.
8494 * sysdeps/i386/isa.h: New file.
8495 * sysdeps/i386/i586/isa.h: Likewise.
8496 * sysdeps/i386/i686/isa.h: Likewise.
8497 * sysdeps/x86_64/isa.h: Likewise.
8498 * sysdeps/x86/hp-timing.h: New file.
8499 * sysdeps/x86/init-arch.h: Include <isa.h>.
8500
8501 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8502
8503 * math/libm-test-pow.inc (pow_test_data): Do not allow
8504 divide-by-zero exception for pow(+/- 0, -Inf).
8505
8506 2018-10-17 Zack Weinberg <zackw@panix.com>
8507
8508 * manual/job.texi (Job Control is Optional): Remove node, as
8509 job control has not been optional in quite some time.
8510 (Job Control): Mention briefly that systems older than
8511 POSIX.1-2001 might not support job control.
8512 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8513 defined on systems conforming to POSIX.1-2001.
8514
8515 2018-10-17 Arjun Shankar <arjun@redhat.com>
8516
8517 [BZ #22062]
8518 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8519 indentation.
8520 * (__gconv_read_conf): Mark function static.
8521 * (once): New static variable.
8522 * (__gconv_load_conf): New function.
8523 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8524 * iconv/gconv_db.c (once): Remove static variable.
8525 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8526 __gconv_read_conf.
8527 * (__gconv_find_transform): Likewise.
8528 * iconv/tst-iconv-mt.c: New test.
8529 * iconv/Makefile: Add tst-iconv_mt.
8530
8531 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8532
8533 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8534 bits/shm-pad.h.
8535 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8536 (shmatt_t): Define as __syscall_ulong_t.
8537 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8538 and [__SHM_PAD_AFTER_TIME].
8539 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8540 Define shm_segsz and associated padding based on
8541 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8542 Use __syscall_ulong_t instead of unsigned long int.
8543 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8544 unsigned long int.
8545 [__USE_MISC] (struct shm_info): Likewise.
8546 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8547 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8548 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8549 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8550 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8551 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8552 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8553 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8554 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8555 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8556 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8557
8558 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8559 bits/shmlba.h.
8560 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8561 (SHMLBA): Remove macro.
8562 (__getpagesize): Remove function declaration.
8563 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8564 <bits/shmlba.h>.
8565 (SHMLBA): Remove macro.
8566 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8567 <bits/shmlba.h>.
8568 (SHMLBA): Remove macro.
8569 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8570 <bits/shmlba.h>.
8571 (SHMLBA): Remove macro.
8572 (__getpagesize): Remove function declaration.
8573 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8574 <bits/shmlba.h>.
8575 (SHMLBA): Remove macro.
8576 (__getshmlba): Remove function declaration.
8577 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8578 (SHMLBA): Remove macro.
8579 (__getpagesize): Remove function declaration.
8580 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8581 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8582 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8583 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8584 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8585 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8586 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8587 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8588 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8589 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8590
8591 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8592
8593 [BZ #23275]
8594 * nptl/tst-mutex10.c: New File.
8595 * nptl/Makefile (tests): Add tst-mutex10.
8596 (tst-mutex10-ENV): New variable.
8597 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8598 Ensure that elision path is used if elision is available.
8599 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8600 Likewise.
8601 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8602 Likewise.
8603 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8604 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8605 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8606 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8607 Likewise.
8608 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8609 (__pthread_mutex_cond_lock_adjust): Likewise.
8610 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8611 Likewise.
8612 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8613 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8614 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8615 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8616 Add comments.
8617 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8618 Use atomic_load_relaxed and atomic_store_relaxed.
8619 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8620 Use atomic_store_relaxed.
8621
8622 2018-10-17 Andreas Schwab <schwab@suse.de>
8623
8624 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8625 * crypt/badsalttest.c (TIMEOUT): Likewise.
8626 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8627 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8628 * io/test-lfs.c (TIMEOUT): Likewise.
8629 * libio/tst-atime.c (TIMEOUT): Likewise.
8630 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8631 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8632 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8633 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8634 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8635 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8636 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8637 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8638 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8639 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8640 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8641 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8642 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8643 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8644 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8645 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8646 * nptl/tst-once2.c (TIMEOUT): Likewise.
8647 * nptl/tst-once3.c (TIMEOUT): Likewise.
8648 * nptl/tst-once4.c (TIMEOUT): Likewise.
8649 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8650 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8651 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8652 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8653 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8654 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8655 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8656 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8657 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8658 * posix/tst-chmod.c (TIMEOUT): Likewise.
8659 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8660 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8661 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8662 * posix/tst-regex2.c (TIMEOUT): Likewise.
8663 * posix/tst-waitid.c (TIMEOUT): Likewise.
8664 * rt/tst-aio.c (TIMEOUT): Likewise.
8665 * rt/tst-aio10.c (TIMEOUT): Likewise.
8666 * rt/tst-aio4.c (TIMEOUT): Likewise.
8667 * rt/tst-aio5.c (TIMEOUT): Likewise.
8668 * rt/tst-aio6.c (TIMEOUT): Likewise.
8669 * rt/tst-aio64.c (TIMEOUT): Likewise.
8670 * rt/tst-aio7.c (TIMEOUT): Likewise.
8671 * rt/tst-aio9.c (TIMEOUT): Likewise.
8672 * rt/tst-clock.c (TIMEOUT): Likewise.
8673 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8674 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8675 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8676 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8677 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8678 * rt/tst-timer4.c (TIMEOUT): Likewise.
8679 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8680 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8681 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8682 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8683 * time/tst-ftime.c (TIMEOUT): Likewise.
8684 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8685
8686 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8687
8688 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8689 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8690 for thunderX2.
8691
8692 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8693
8694 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8695 bits/sem-pad.h.
8696 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8697 instead of <bits/wordsize.h>.
8698 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8699 and [__SEM_PAD_AFTER_TIME].
8700 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8701 __syscall_ulong_t instead of unsigned long int.
8702 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8703 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8704 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8705 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8706 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8707 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8708 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8709 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8710 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8711 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8712 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8713
8714 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8715
8716 regex: simplify by using intprops.h
8717 [BZ#23744]
8718 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8719 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8720 intprops.h defines them.
8721
8722 regex: __builtin_expect → __glibc_unlikely
8723 [BZ#23744]
8724 This refactoring was prompted by a problem when the regex code is
8725 used as part of Gnulib and when the builder’s compiler does not grok
8726 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8727 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8728 Although this refactoring does not fix the problem directly,
8729 we might as well have Gawk use the now-preferred glibc style for when
8730 __builtin_expect is unavailable.
8731 * posix/regex_internal.h (BE): Remove.
8732 All uses replaced by __glibc_unlikely or __glibc_likely.
8733
8734 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8735
8736 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8737 bits/msq-pad.h.
8738 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8739 instead of <bits/wordsize.h>.
8740 (msgqnum_t): Define as __syscall_ulong_t.
8741 (msglen_t): Likewise.
8742 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8743 and [__MSQ_PAD_AFTER_TIME].
8744 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8745 __syscall_ulong_t instead of unsigned long int.
8746 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8747 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8748 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8749 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8750 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8751 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8752 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8753 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8754 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8755 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8756 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8757
8758 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8759
8760 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8761 (struct shmid_ds): Condition padding after time fields on
8762 [__WORDSIZE == 32].
8763 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8764 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8765 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8766
8767 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8768 (struct semid_ds): Condition padding after time fields on
8769 [__WORDSIZE == 32].
8770 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8771 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8772 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8773 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8774
8775 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8776 (struct msqid_ds): Condition padding after time fields on
8777 [__WORDSIZE == 32].
8778 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8779 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8780 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8781 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8782
8783 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8784
8785 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8786
8787 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8788
8789 * libio/tst-readline.c (TIMEOUT): Define.
8790
8791 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8792
8793 mktime fix for Gnulib + coreutils
8794 [BZ#23745]
8795 This fix affects only Gnulib. Problem discovered when
8796 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8797 * time/mktime.c:
8798 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8799 Do not define since it is not used. Defining an unused static
8800 function prompts a warning from GCC when Coreutils is configured
8801 with --enable-gcc-warnings.
8802
8803 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8804
8805 * benchtests/scripts/compare_bench.py (main): set float type on
8806 threshold argument.
8807
8808 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8809
8810 [BZ #23740]
8811 * localedata/locales/kl_GL (mon): Update, the relative case.
8812 (alt_mon): Add, fill with month names in the nominative case.
8813 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8814 (d_fmt): Set to "%b %d %Y".
8815
8816 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8817
8818 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8819 <bits/mman-linux.h>.
8820 (PROT_READ): Don't define here.
8821 (PROT_WRITE): Likewise.
8822 (PROT_EXEC): Likewise.
8823 (PROT_NONE): Likewise.
8824 (PROT_GROWSDOWN): Likewise.
8825 (PROT_GROWSUP): Likewise.
8826 (MAP_SHARED): Likewise.
8827 (MAP_PRIVATE): Likewise.
8828 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8829 [__USE_MISC] (MAP_FILE): Likewise.
8830 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8831 [__USE_MISC] (MAP_ANON): Likewise.
8832 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8833 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8834 (MCL_CURRENT): Likewise.
8835 (MCL_FUTURE): Likewise.
8836 (MCL_ONFAULT): Likewise.
8837 [__USE_MISC] (MADV_NORMAL): Likewise.
8838 [__USE_MISC] (MADV_RANDOM): Likewise.
8839 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8840 [__USE_MISC] (MADV_WILLNEED): Likewise.
8841 [__USE_MISC] (MADV_DONTNEED): Likewise.
8842 [__USE_MISC] (MADV_FREE): Likewise.
8843 [__USE_MISC] (MADV_REMOVE): Likewise.
8844 [__USE_MISC] (MADV_DONTFORK): Likewise.
8845 [__USE_MISC] (MADV_DOFORK): Likewise.
8846 [__USE_MISC] (MADV_HWPOISON): Likewise.
8847 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8848 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8849 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8850 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8851 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8852 (__MAP_ANONYMOUS): New macro.
8853 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8854 <bits/mman-linux.h> inclusion.
8855 (MAP_FIXED): Likewise.
8856 (MS_SYNC): Likewise.
8857 (MS_ASYNC): Likewise.
8858 (MS_INVALIDATE): Likewise.
8859 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8860 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8861 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8862 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8863 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8864 [__USE_MISC] (MADV_DODUMP): Likewise.
8865 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8866 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8867
8868 [BZ #23735]
8869 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8870 Define.
8871 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8872 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8873 Add test-nldbl-redirect.
8874 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8875 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8876 $(objpfx)libnldbl_nonshared.a.
8877
8878 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8879
8880 * support/support.h (support_objdir_elf_ldso): New variable.
8881 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8882 * support/Makefile (CFLAGS-support_paths.c): Add definition
8883 for OBJDIR_ELF_LDSO_PATH.
8884 * support/test-container.c (main): Search for the ld.so
8885 which is also used by the testsuite.
8886
8887 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8888
8889 [BZ #20209]
8890 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8891 should be "sap" rather than "sab".
8892 (day): Fix spelling of Sunday, should be "sapaat" rather than
8893 "sabaat".
8894
8895 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8896
8897 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8898
8899 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8900
8901 [BZ #19444]
8902 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8903 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8904 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8905
8906 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8907
8908 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8909
8910 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8911
8912 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8913 Add -mrtm.
8914 (CFLAGS-elision-unlock.c): Likewise.
8915 (CFLAGS-elision-timed.c): Likewise.
8916 (CFLAGS-elision-trylock.c): Likewise.
8917 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8918
8919 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8920
8921 [BZ #21037]
8922 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8923 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8924 new fd_to_filename interface.
8925 * libio/freopen64.c (freopen64): Likewise.
8926 * libio/tst-memstream.h: New file.
8927 * libio/tst-memstream4.c: Likewise.
8928 * libio/tst-wmemstream4.c: Likewise.
8929 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8930 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8931 and remove internal dynamic allocation.
8932
8933 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8934
8935 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8936 (MREMAP_MAYMOVE): Do not define here.
8937 [__USE_GNU] (MREMAP_FIXED): Likewise.
8938 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8939 (MREMAP_MAYMOVE): Define here instead.
8940 [__USE_GNU] (MREMAP_FIXED): Likewise.
8941 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8942 (MREMAP_MAYMOVE): Remove.
8943 [__USE_GNU] (MREMAP_FIXED): Likewise.
8944
8945 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8946
8947 * math/fromfp.h: Do not include <math_private.h>.
8948 * math/s_cacosh_template.c: Likewise.
8949 * math/s_casin_template.c: Likewise.
8950 * math/s_casinh_template.c: Likewise.
8951 * math/s_ccos_template.c: Likewise.
8952 * math/s_cproj_template.c: Likewise.
8953 * math/s_fdim_template.c: Likewise.
8954 * math/s_fmaxmag_template.c: Likewise.
8955 * math/s_fminmag_template.c: Likewise.
8956 * math/s_iseqsig_template.c: Likewise.
8957 * math/s_ldexp_template.c: Likewise.
8958 * math/s_nextdown_template.c: Likewise.
8959 * math/w_log1p_template.c: Likewise.
8960 * math/w_scalbln_template.c: Likewise.
8961 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8962 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8963 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8964 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8965 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8966 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8967 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8968 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8969 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8970 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8971 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8972 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8973 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8974 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8975 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8976 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8977 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8978 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8979 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8980 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8981 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8982 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8983 * sysdeps/ieee754/k_standardf.c: Likewise.
8984 * sysdeps/ieee754/k_standardl.c: Likewise.
8985 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8986 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8987 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8988 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8989 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8990 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8991 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8992 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8993 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8994 * sysdeps/ieee754/s_signgam.c: Likewise.
8995 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8996 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8997 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8998 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8999 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9000 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9001 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9002 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9003 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9004 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9005 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9006 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9007 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9008 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9009 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9010 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9011 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9012 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9013 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9014 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9015 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9016 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9017 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9018 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9019 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9020 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9021 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9022 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9023 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9024 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9025 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9026 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9027 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9028 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9029 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9030 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9031 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
9032 <math_private.h>.
9033 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9034
9035 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
9036
9037 [BZ #23716]
9038 * sysdeps/i386/dl-cet.c: Removed.
9039 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
9040 prototype.
9041 (_dl_runtime_profile_shstk): Likewise.
9042 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
9043 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
9044
9045 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9046
9047 [BZ #23579]
9048 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
9049 do_test_with_invalid_iov): New tests.
9050 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
9051 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
9052 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
9053 errno is ENOSYS.
9054 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
9055 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
9056 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
9057
9058 2018-09-27 Joseph Myers <joseph@codesourcery.com>
9059
9060 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9061 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
9062 (MATH_REDIRECT_BINARY_ARGS): New macro.
9063 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9064 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
9065 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
9066 header inclusion.
9067 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
9068 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9069 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
9070 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9071 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9072 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9073 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9074 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
9075 Likewise.
9076 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
9077 Likewise.
9078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
9079 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
9080 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9081 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9082 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9083 Likewise.
9084 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9085 Likewise.
9086 * sysdeps/generic/math_private_calls.h
9087 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9088 Do not declare and define as an inline function.
9089 * math/divtc3.c (__divtc3): Use copysign functions instead of
9090 __copysign variants.
9091 * math/multc3.c (__multc3): Likewise.
9092 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9093 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9094 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9095 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9096 Likewise.
9097 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9098 (__ieee754_yn): Likewise.
9099 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9100 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9101 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9102 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9103 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9104 (__sin): Likewise.
9105 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9106 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9107 Likewise.
9108 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9109 Likewise.
9110 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9111 Likewise.
9112 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9113 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9114 Likewise.
9115 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9116 (__ieee754_ynf): Likewise.
9117 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9118 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9119 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9120 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9121 Likewise.
9122 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9123 (__ieee754_ynl): Likewise.
9124 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9125 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9126 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9127 Likewise.
9128 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9129 (__ieee754_ynl): Likewise.
9130 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9131 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9132 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9133 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9134 Likewise.
9135 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9136 (__ieee754_ynl)
9137 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9138 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9139 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9140 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9141 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9142
9143 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9144 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9145 using MATH_REDIRECT.
9146 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9147 header inclusion.
9148 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9149 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9150 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9151 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9152 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9153 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9154 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9155 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9156 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9159 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9160 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9161 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9162 (round): Redirect to __round.
9163 (__roundl): Call round instead of __round.
9164 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9165 Remove macro.
9166 [_ARCH_PWR5X] (__roundf): Likewise.
9167 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9168 functions instead of __round variants.
9169 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9170 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9171 Likewise.
9172 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9173 Likewise.
9174 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9175 Likewise.
9176 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9177 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9178 __lroundl.
9179 (__ieee754_expl): Call roundl instead of __roundl.
9180
9181 2018-09-27 Andreas Schwab <schwab@suse.de>
9182
9183 [BZ #23717]
9184 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9185 (do_test): Make st1 static.
9186
9187 2018-09-26 Andreas Schwab <schwab@suse.de>
9188
9189 [BZ #23707]
9190 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9191 * elf/Makefile (tests): Add tst-unwind-ctor.
9192 (modules-names): Add tst-unwind-ctor-lib.
9193 ($(objpfx)tst-unwind-ctor): Depend on
9194 $(objpfx)tst-unwind-ctor-lib.so.
9195
9196 2018-09-26 Joseph Myers <joseph@codesourcery.com>
9197
9198 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9199 file. Most contents moved from ....
9200 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
9201 and include <bits/mman-map-flags-generic.h>.
9202 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9203 (sysdep_headers): Add bits/mman-map-flags-generic.h.
9204 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9205 <bits/mman-map-flags-generic.h>.
9206 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9207 macros defined in <bits/mman-map-flags-generic.h>.
9208 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9209 <bits/mman-map-flags-generic.h>.
9210 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9211 defined in <bits/mman-map-flags-generic.h>.
9212
9213 2018-09-26 Andreas Schwab <schwab@suse.de>
9214
9215 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9216 output.
9217
9218 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9219 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9220 Fangrui Song <maskray@google.com>
9221
9222 [BZ #20480]
9223 * config.make.in (have-textrel_ifunc): New define.
9224 * configure.ac: Add check if linker supports textrel relocation with
9225 ifunc.
9226 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9227 tst-ifunc-textrel.
9228 (CFLAGS-tst-ifunc-textrel.c): New rule.
9229 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9230 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9231 * elf/tst-ifunc-textrel.c: New file.
9232
9233 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9234
9235 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9236 <bits/procfs-prregset.h>.
9237 (prgregset_t): Define using __prgregset_t.
9238 (prfpregset_t): Define using __prfpregset_t.
9239 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9240 (sysdep_headers): Add bits/procfs-prregset.h.
9241 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9242 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9243 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9244 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9245
9246 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9247 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9248 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9249 pr_uid and pr_gid.
9250 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9251 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9252 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9253 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9254 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9255 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9256 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9257 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9258 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9259 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9260 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9261 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9262 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9263 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9264 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9265 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9266 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9267 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9268 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9269 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9270 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9271 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9272 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9273 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9274
9275 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9276 AArch64 version. Include <bits/procfs.h>.
9277 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9278 (sysdep_headers): Add bits/procfs.h.
9279 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9280 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9281 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9282 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9283 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9284 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9285 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9286 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9287 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9288 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9289 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9290 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9291 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9292 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9293 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9294 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9295 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9296
9297 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9298
9299 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9300 Use libsupport.
9301
9302 2018-09-25 Arjun Shankar <arjun@redhat.com>
9303
9304 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9305 (__gconv_max_path_elem_len): Likewise.
9306 (__gconv_nmodules): Likewise.
9307 (__gconv_get_path): Likewise.
9308 (path_elem): Move to ...
9309 * iconv/gconv_conf.c: ... here.
9310 (__gconv_get_path): Mark function static.
9311 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9312 * iconv/gconv_open.c: ... here.
9313
9314 2018-09-24 Andreas Schwab <schwab@suse.de>
9315
9316 * scripts/haveversions.awk: New file.
9317 * Makerules ($(common-objpfx)Versions.def)
9318 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9319 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9320 Move rules ...
9321 * Makeconfig ($(common-objpfx)Versions.def)
9322 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9323 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9324 ... here.
9325 ($(common-objpfx)Versions.mk): New rule. Include it.
9326 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9327 Emit error if build-obsolete-nsl = yes.
9328 * manual/install.texi (Configuring and compiling): Describe
9329 --enable-obsolete-nsl as unavaiable after version 2.28.
9330 * INSTALL: Regenerate.
9331
9332 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9333
9334 * NEWS: Add note about new TLE support on powerpc64le.
9335 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9336 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9337 __ununsed1.
9338 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9339 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9340 * sysdeps/powerpc/powerpc32/sysdep.h,
9341 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9342 ABORT_TRANSACTION): Remove macros.
9343 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9344 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9345 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9346 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9347 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9348 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9349 usage.
9350 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9351
9352 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9353
9354 [BZ #10425]
9355 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9356 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9357 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9358 which is the same as in it_IT.
9359 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9360 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9361
9362 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9363
9364 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9365 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9366 using MATH_REDIRECT.
9367 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9368 header inclusion.
9369 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9370 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9371 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9372 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9373 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9374 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9376 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9377 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9378 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9379 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9380 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9381 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9382 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9383 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9384 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9385 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9386 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9387 (ceil): Redirect to __ceil.
9388 (floor): Redirect to __floor.
9389 (trunc): Redirect to __trunc.
9390 (__truncl): Call trunc instead of __trunc.
9391 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9392 Remove macro.
9393 [_ARCH_PWR5X] (__truncf): Likewise.
9394 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9395 trunc functions instead of __trunc variants.
9396 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9397 Likewise.
9398 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9399 Likewise.
9400 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9401 Likewise.
9402 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9403 Likewise.
9404
9405 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9406 [__i586__ || __pentium__].
9407 [__i486__]: Handle explicitly.
9408 (HAS_CPUID): Define to 1 if above macros are undefined.
9409 (HAS_I586): Likewise.
9410 (HAS_I686): Likewise.
9411
9412 2018-09-20 Florian Weimer <fweimer@redhat.com>
9413
9414 * misc/tst-gethostid.c: New file.
9415 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9416 (tst-gethostid): Link with -ldl.
9417
9418 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9419
9420 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9421 value from gethostbyname_r.
9422
9423 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9424
9425 * stdlib/tst-setcontext9.c (f1): Rename to...
9426 (f1a): ... this.
9427 (f1b): New function implementing lower half of f1 in alternate stack.
9428
9429 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9430
9431 Fix mktime localtime offset confusion
9432 [BZ #23603]
9433 * include/time.h (__mktime_internal): The localtime offset is now
9434 of type long int instead of time_t. This is the longstanding type
9435 in glibc, and it is more than enough to represent difference
9436 between localtime and gmtime even if it is 32 bits and time_t is
9437 64. Changing it now will let us avoid an unnecessary change when
9438 time_t is widened to 64 bits on 32-bit platforms.
9439 * time/mktime-internal.h (mktime_offset_t): Now long int.
9440
9441 Merge mktime, timegm from upstream Gnulib
9442 [BZ #23603][BZ #16346]
9443 This fixes some obscure problems with integer overflow.
9444 Although it looks scary, it is almost all a byte-for-byte copy
9445 from Gnulib, and the Gnulib code has been tested reasonably well.
9446 * include/intprops.h: New file, copied from Gnulib.
9447 * include/verify.h, time/mktime-internal.h:
9448 New tiny files, simplified from Gnulib.
9449 * time/mktime.c: Copy from Gnulib. This has the following changes:
9450 Do not include config.h if DEBUG_MKTIME is nonzero.
9451 Include stdbool.h, intprops.h, verify.h.
9452 Include string.h only if needed.
9453 Include stdlib.h on MS-Windows.
9454 Include mktime-internal.h.
9455 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9456 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9457 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9458 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9459 simplify later conditionals; default the others to zero. Use
9460 these conditionals to express only the code needed on the current
9461 platform. In uses of these conditionals, explicitly spell out how
9462 _LIBC affects things, so it’s easier to review from a glibc
9463 viewpoint.
9464 (WRAPV): Remove; no longer needed now that we have
9465 systematic overflow checking.
9466 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9467 compartmentalize tzset issues. Move system-dependent tzsettish
9468 code here from mktime.
9469 (verify): Remove; now done by verify.h. All uses changed.
9470 (long_int): Use a more-conservative definition, to avoid
9471 integer overflow.
9472 (SHR): Remove, replacing with ...
9473 (shr): New function, which means we needn’t worry about side
9474 effects in args, and conversion analysis is simpler.
9475 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9476 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9477 (time_t_avg, time_t_add_ok): Remove.
9478 (mktime_min, mktime_max): New constants.
9479 (leapyear, isdst_differ): Use bool for booleans.
9480 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9481 Use long_int, not time_t, for mktime differences.
9482 (long_int_avg): New function, replacing time_t_avg.
9483 INT_ADD_WRAPV replaces time_t_add_ok.
9484 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9485 All uses changed.
9486 (convert_time): New function.
9487 (ranged_convert): Use it.
9488 (__mktime_internal): Last arg now points to mktime_offset_t, not
9489 time_t. All uses changed. This is a no-op on glibc, where
9490 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9491 offset guess. Directly check for integer overflow instead of
9492 using a heuristic that works only 99.9...% of the time.
9493 Access *OFFSET only once, to avoid an unlikely race if the
9494 compiler delays a load and if this cascades into a signed integer
9495 overflow.
9496 (mktime): Move tzsettish code to my_tzset, and move
9497 localtime_offset to within mktime so that it doesn’t
9498 need a separate ifdef.
9499 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9500 instead of localtime.
9501 * time/timegm.c: Copy from Gnulib. This has the following changes:
9502 Include mktime-internal.h.
9503 [!_LIBC]: Include config.h and time.h. Do not include
9504 timegm.h or time_r.h. Make __mktime_internal a macro,
9505 and include mktime-internal.h to get its declaration.
9506 (timegm): Temporary is now mktime_offset_t, not time_t.
9507 This affects only Gnulib.
9508
9509 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9510
9511 [BZ #23637]
9512 * string/test-strstr.c (pr23637): New function.
9513 (test_main): Add tests with longer needles.
9514 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9515 * string/strstr.c (AVAILABLE): Likewise.
9516
9517 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9518
9519 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9520
9521 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9522
9523 * NEWS: Mention pow improvements.
9524 * math/Makefile (type-double-routines): Add e_pow_log_data.
9525 * sysdeps/generic/math_private.h (__exp1): Remove.
9526 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9527 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9528 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9529 contraction.
9530 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9531 (exp_inline): Remove.
9532 (__ieee754_exp): Only single double input is handled.
9533 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9534 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9535 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9536 (__pow_log_data): Define.
9537 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9538 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9539 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9540 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9541 contraction.
9542 (CFLAGS-e_pow-fma4.c): Likewise.
9543
9544 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9545
9546 Simplify tzfile fstat failure code
9547 [BZ #21716]
9548 * time/tzfile.c (__tzfile_read): Simplify slightly.
9549
9550 Fix tzfile low-memory assertion failure
9551 [BZ #21716]
9552 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9553 when registering time zone abbreviations.
9554
9555 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9556
9557 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9558 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9559 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9560 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9561 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9562 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9563 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9564 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9565 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9566
9567 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9568 __ceil.
9569 (__ceill): Call ceil instead of __ceil.
9570 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9571 __floor.
9572 (__floorl): Call floor instead of __floor.
9573
9574 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9575
9576 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9577 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9578 using MATH_REDIRECT.
9579 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9580 header inclusion.
9581 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9582 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9583 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9584 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9585 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9586 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9587 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9588 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9589 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9590 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9592 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9593 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9594 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9595 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9596 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9597 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9598 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9599 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9600 Remove macro.
9601 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9602 functions instead of __ceil variants.
9603 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9604 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9605 Likewise.
9606 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9607 Likewise.
9608 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9609 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9610 Likewise.
9611 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9612 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9613
9614 [BZ #21286]
9615 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9616 constant.
9617 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9618 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9619 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9620 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9621 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9622 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9623 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9624 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9625 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9626 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9627 (ILL_BADIADDR): Remove constant.
9628 (TRAP_BRANCH): Likewise.
9629 (TRAP_HWBKPT): Likewise.
9630
9631 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9632
9633 [BZ #23656]
9634 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9635 Remove [_MIPS_SIM = _ABIN32] conditional case.
9636 (struct elf_prpsinfo): Likewise.
9637
9638 [BZ #23649]
9639 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9640 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9641 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9642 Likewise.
9643 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9644 elf_prpsinfo): Likewise.
9645 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9646 elf_prpsinfo): Likewise.
9647 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9648 Likewise.
9649
9650 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9651 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9652 using MATH_REDIRECT.
9653 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9654 header inclusion.
9655 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9656 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9657 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9658 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9659 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9660 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9661 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9662 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9663 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9664 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9665 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9666 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9667 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9668 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9669 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9670 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9671 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9672 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9673 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9674 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9675 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9676 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9677 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9678 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9679 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9680 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9681 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9682 __rint variants.
9683 * math/e_scalbf.c (invalid_fn): Likewise.
9684 * math/e_scalbl.c (invalid_fn): Likewise.
9685 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9686 Likewise.
9687 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9688 Likewise.
9689 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9690 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9691 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9692 Likewise.
9693 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9694 Likewise.
9695 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9696 Likewise.
9697 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9698 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9699
9700 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9701 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9702 New macro.
9703 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9704 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9705 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9706 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9707 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9708 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9709 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9710 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9711 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9712 && !NO_MATH_REDIRECT] (floor): Likewise.
9713 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9714 header inclusion.
9715 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9716 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9717 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9718 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9719 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9720 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9721 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9722 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9723 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9727 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9728 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9729 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9730 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9731 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9732 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9733 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9734 Remove macro.
9735 [_ARCH_PWR5X] (__floorf): Likewise.
9736 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9737 inline function.
9738 [__SSE4_1__] (__floorf): Likewise.
9739 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9740 instead of __floor variants.
9741 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9742 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9743 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9744 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9745 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9746 * math/w_tgamma_compat.c (__tgamma): Likewise.
9747 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9748 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9749 * math/w_tgammal_compat.c (__tgammal): Likewise.
9750 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9751 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9752 Likewise.
9753 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9754 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9755 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9756 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9757 Likewise.
9758 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9759 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9760 Likewise.
9761 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9762 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9763 Likewise.
9764 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9765 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9766 Likewise.
9767 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9768 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9769 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9770 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9771 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9772 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9773
9774 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9775
9776 * elf/Makefile (modules-names-tests): New variable.
9777
9778 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9779
9780 * NEWS: Mention log2 improvements.
9781 * math/Makefile (type-double-routines): Add e_log2_data.
9782 * sysdeps/i386/fpu/e_log2_data.c: New file.
9783 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9784 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9785 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9786 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9787 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9788 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9789
9790 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9791
9792 * NEWS: Mention log improvement.
9793 * math/Makefile (type-double-routines): Add e_log_data.
9794 * sysdeps/i386/fpu/e_log_data.c: New file.
9795 * sysdeps/ia64/fpu/e_log_data.c: New file.
9796 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9797 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9798 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9799 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9800 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9801 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9802
9803 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9804 Xuepeng Guo <xuepeng.guo@intel.com>
9805
9806 [BZ #23606]
9807 * sysdeps/i386/start.S: Include <sysdep.h>
9808 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9809 enabled. Add cfi_undefined (eip).
9810
9811 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9812
9813 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9814 (MOVQ): Likewise.
9815 (EXTRACT_WORDS64): Likewise.
9816 (INSERT_WORDS64): Likewise.
9817 (GET_FLOAT_WORD): Likewise.
9818 (SET_FLOAT_WORD): Likewise.
9819
9820 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9821 argument.
9822 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9823 build, but not for second build if --full-gcc. Use
9824 --enable-languages=all for second build if --full-gcc.
9825 (get_parser): Add --full-gcc option.
9826 (main): Update call to Context.
9827
9828 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9829
9830 [BZ #10797]
9831 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9832 Single Quotation Mark).
9833 (thousands_sep): Likewise.
9834 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9835 * localedata/locales/it_IT (thousands_sep): Use ".".
9836 (grouping): Use "3;3".
9837
9838 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9839
9840 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9841 x86_64 and i686 configs using --enable-obsolete-rpc
9842 --enable-obsolete-nsl.
9843
9844 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9845
9846 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9847
9848 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9849
9850 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9851 Increment size of new_argv by one.
9852
9853 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9854
9855 [BZ #17426]
9856 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9857 * localedata/locales/ar_IN (d_fmt): Likewise.
9858 * localedata/locales/bhb_IN (d_fmt): Likewise.
9859 * localedata/locales/bho_IN (d_fmt): Likewise.
9860 * localedata/locales/bn_BD (d_fmt): Likewise.
9861 * localedata/locales/bn_IN (d_fmt): Likewise.
9862 * localedata/locales/doi_IN (d_fmt): Likewise.
9863 * localedata/locales/gu_IN (d_fmt): Likewise.
9864 * localedata/locales/hi_IN (d_fmt): Likewise.
9865 * localedata/locales/hne_IN (d_fmt): Likewise.
9866 * localedata/locales/kn_IN (d_fmt): Likewise.
9867 * localedata/locales/mag_IN (d_fmt): Likewise.
9868 * localedata/locales/mai_IN (d_fmt): Likewise.
9869 * localedata/locales/mjw_IN (d_fmt): Likewise.
9870 * localedata/locales/ml_IN (d_fmt): Likewise.
9871 * localedata/locales/mni_IN (d_fmt): Likewise.
9872 * localedata/locales/mr_IN (d_fmt): Likewise.
9873 * localedata/locales/pa_IN (d_fmt): Likewise.
9874 * localedata/locales/raj_IN (d_fmt): Likewise.
9875 * localedata/locales/sat_IN (d_fmt): Likewise.
9876 * localedata/locales/sd_IN (d_fmt): Likewise.
9877 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9878 * localedata/locales/ta_IN (d_fmt): Likewise.
9879 * localedata/locales/ta_LK (d_fmt): Likewise.
9880 * localedata/locales/tcy_IN (d_fmt): Likewise.
9881 * localedata/locales/ur_IN (d_fmt): Likewise.
9882
9883 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9884 * localedata/locales/ks_IN (d_fmt): Likewise.
9885 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9886
9887 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9888 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9889 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9890 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9891
9892 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9893
9894 * NEWS: Mention exp and exp2 improvements.
9895 * math/Makefile (libm-support): Remove t_exp.
9896 (type-double-routines): Add math_err and e_exp_data.
9897 * sysdeps/aarch64/libm-test-ulps: Update.
9898 * sysdeps/arm/libm-test-ulps: Update.
9899 * sysdeps/i386/fpu/e_exp_data.c: New file.
9900 * sysdeps/i386/fpu/math_err.c: New file.
9901 * sysdeps/i386/fpu/t_exp.c: Remove.
9902 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9903 * sysdeps/ia64/fpu/math_err.c: New file.
9904 * sysdeps/ia64/fpu/t_exp.c: Remove.
9905 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9906 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9907 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9908 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9909 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9910 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9911 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9912 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9913 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9914 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9915 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9916 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9917 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9918 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9919 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9920 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9921
9922 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9923
9924 * sysdeps/alpha/fpu/math_private.h: Remove.
9925
9926 * sysdeps/generic/math_private.h
9927 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9928 Move this inline function ....
9929 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9930 * include/math.h [!_ISOMAC]: To here....
9931
9932 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9933
9934 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9935 code ....
9936 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9937 * include/fenv.h [!_ISOMAC]: ... to here.
9938 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9939 (feraiseexcept): Likewise.
9940 * math/fromfp.h: Do not include <fenv_private.h>.
9941 * math/s_cexp_template.c: Likewise.
9942 * math/s_csin_template.c: Likewise.
9943 * math/s_csinh_template.c: Likewise.
9944 * math/s_ctan_template.c: Likewise.
9945 * math/s_ctanh_template.c: Likewise.
9946 * math/s_iseqsig_template.c: Likewise.
9947 * math/w_acos_compat.c: Likewise.
9948 * math/w_acosf_compat.c: Likewise.
9949 * math/w_acosl_compat.c: Likewise.
9950 * math/w_asin_compat.c: Likewise.
9951 * math/w_asinf_compat.c: Likewise.
9952 * math/w_asinl_compat.c: Likewise.
9953 * math/w_j0_compat.c: Likewise.
9954 * math/w_j0f_compat.c: Likewise.
9955 * math/w_j0l_compat.c: Likewise.
9956 * math/w_j1_compat.c: Likewise.
9957 * math/w_j1f_compat.c: Likewise.
9958 * math/w_j1l_compat.c: Likewise.
9959 * math/w_jn_compat.c: Likewise.
9960 * math/w_jnf_compat.c: Likewise.
9961 * math/w_log10_compat.c: Likewise.
9962 * math/w_log10f_compat.c: Likewise.
9963 * math/w_log10l_compat.c: Likewise.
9964 * math/w_log2_compat.c: Likewise.
9965 * math/w_log2f_compat.c: Likewise.
9966 * math/w_log2l_compat.c: Likewise.
9967 * math/w_log_compat.c: Likewise.
9968 * math/w_logf_compat.c: Likewise.
9969 * math/w_logl_compat.c: Likewise.
9970 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9971 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9972 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9973 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9974 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9975 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9976 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9977 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9978 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9979 * sysdeps/ieee754/k_standardl.c: Likewise.
9980 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9981 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9982 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9983 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9984 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9985 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9986 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9987 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9988 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9989 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9990 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9991 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9992 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9993 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9994 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9995 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9996 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9997 * math/w_ilogb_template.c: Include <fenv.h> instead of
9998 <fenv_private.h>.
9999 * math/w_llogb_template.c: Likewise.
10000 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10001 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10002
10003 2018-09-03 Joseph Myers <joseph@codesourcery.com>
10004
10005 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
10006 * math/fromfp.h: Include <fenv_private.h>.
10007 * math/math-narrow.h: Likewise.
10008 * math/s_cexp_template.c: Likewise.
10009 * math/s_csin_template.c: Likewise.
10010 * math/s_csinh_template.c: Likewise.
10011 * math/s_ctan_template.c: Likewise.
10012 * math/s_ctanh_template.c: Likewise.
10013 * math/s_iseqsig_template.c: Likewise.
10014 * math/w_acos_compat.c: Likewise.
10015 * math/w_acosf_compat.c: Likewise.
10016 * math/w_acosl_compat.c: Likewise.
10017 * math/w_asin_compat.c: Likewise.
10018 * math/w_asinf_compat.c: Likewise.
10019 * math/w_asinl_compat.c: Likewise.
10020 * math/w_ilogb_template.c: Likewise.
10021 * math/w_j0_compat.c: Likewise.
10022 * math/w_j0f_compat.c: Likewise.
10023 * math/w_j0l_compat.c: Likewise.
10024 * math/w_j1_compat.c: Likewise.
10025 * math/w_j1f_compat.c: Likewise.
10026 * math/w_j1l_compat.c: Likewise.
10027 * math/w_jn_compat.c: Likewise.
10028 * math/w_jnf_compat.c: Likewise.
10029 * math/w_llogb_template.c: Likewise.
10030 * math/w_log10_compat.c: Likewise.
10031 * math/w_log10f_compat.c: Likewise.
10032 * math/w_log10l_compat.c: Likewise.
10033 * math/w_log2_compat.c: Likewise.
10034 * math/w_log2f_compat.c: Likewise.
10035 * math/w_log2l_compat.c: Likewise.
10036 * math/w_log_compat.c: Likewise.
10037 * math/w_logf_compat.c: Likewise.
10038 * math/w_logl_compat.c: Likewise.
10039 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
10040 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
10041 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
10042 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
10043 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10044 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10045 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10046 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10047 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10048 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10049 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10050 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10051 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
10052 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
10053 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10054 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
10055 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10056 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
10057 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
10058 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
10059 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
10060 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
10061 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10062 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
10063 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10064 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
10065 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
10066 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
10067 * sysdeps/ieee754/float128/float128_private.h: Likewise.
10068 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10069 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10070 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10071 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
10072 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
10073 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
10074 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
10075 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
10076 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10077 * sysdeps/ieee754/k_standardl.c: Likewise.
10078 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10079 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10080 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10081 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10082 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10083 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10084 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10085 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10086 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10087 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10088 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10089 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10090 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10091 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10092 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10093 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10094 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10095 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10096 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10097 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10098 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10099 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10100 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10101 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10102 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10103 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10104 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10105 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10106 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10107 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10108 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10109 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10110 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10111 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10112 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10113 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10114 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10115 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10116 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10117 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10118 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10119 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10120 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10121 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10122 * sysdeps/riscv/rvd/s_finite.c: Likewise.
10123 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10124 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10125 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10126 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10127 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10128 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10129 * sysdeps/riscv/rvf/fegetround.c: Likewise.
10130 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10131 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10132 * sysdeps/riscv/rvf/fesetround.c: Likewise.
10133 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10134 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10135 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10136 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10137 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10138 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10139 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10140 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10141 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10142 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10143 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10144 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10145 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10146 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10147 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10148 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10149
10150 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10151
10152 [BZ #20271]
10153 * include/stdio.h (__libc_fatal): Mention newline in comment.
10154 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10155 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10156 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10157 * nss/nsswitch.c (__nss_next2): Likewise.
10158 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10159 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10160 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10161 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10162 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10163 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10164 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10165 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10166 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10167 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10168 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10169 * sysdeps/unix/sysv/linux/netlink_assert_response.c
10170 (__netlink_assert_response): Likewise.
10171
10172 2018-08-31 Joseph Myers <joseph@codesourcery.com>
10173
10174 * conform/glibcconform.py: New file.
10175 * conform/list-header-symbols.py: Likewise.
10176 * conform/list-header-symbols.pl: Remove.
10177 * conform/Makefile (tests-special): Only add linknamespace tests
10178 if [PYTHON].
10179 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10180
10181 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
10182
10183 [BZ #23597]
10184 * support/Makefile (libsupport-routines): Add
10185 support_copy_file_range and xcopy_file_range.
10186 * support/support.h: Include <sys/types.h>.
10187 (support_copy_file_range): New prototype.
10188 * support/support_copy_file_range.c: New file. Copied and
10189 modified from io/copy_file_range-compat.c.
10190 * support/test-container.c (copy_one_file): Call xcopy_file_rang
10191 instead of copy_file_range.
10192 * support/xcopy_file_range.c: New file.
10193 * support/xunistd.h (xcopy_file_range): New prototype.
10194
10195 2018-08-30 Carlos O'Donell <carlos@redhat.com>
10196
10197 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10198 xpthread_create and xpthread_join.
10199
10200 2018-08-30 Florian Weimer <fweimer@redhat.com>
10201
10202 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10203
10204 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
10205
10206 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10207 if malloc fails.
10208
10209 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10210
10211 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10212 and minus_oflow as non-finite.
10213
10214 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10215
10216 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10217 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10218 moved to fenv_private.h except for ...
10219 (TOINT_INTRINSICS): Kept in math_private.h.
10220 (roundtoint): Likewise.
10221 (converttoint): Likewise.
10222 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10223 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10224 * sysdeps/arm/math_private.h: Remove.
10225 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10226 ....
10227 * sysdeps/generic/math_private.h: ... this file. Include
10228 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10229 Include <fenv_private.h>. Remove functions and macros moved to
10230 fenv_private.h.
10231 * sysdeps/i386/fpu/math_private.h: Remove.
10232 * sysdeps/mips/math_private.h: Move to ....
10233 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10234 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10235 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10236 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10237 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10238 * sysdeps/powerpc/fpu/math_private.h: Do not include
10239 <fenv_private.h>.
10240 * sysdeps/riscv/rvf/math_private.h: Move to ....
10241 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10242 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10243 <fenv_private.h>.
10244 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10245 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10246 * sysdeps/sparc/fpu/math_private.h: Remove.
10247 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10248 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10249 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10250 <fenv_private.h>.
10251 * sysdeps/x86_64/fpu/math_private.h: Do not include
10252 <sysdeps/i386/fpu/fenv_private.h>.
10253
10254 2018-08-28 Florian Weimer <fweimer@redhat.com>
10255
10256 [BZ #23578]
10257 * posix/tst-regcomp-truncated.c: New file.
10258 * posix/Makefile (tests): Add it.
10259 (tst-regcomp-truncated.out): Depend on generated locales.
10260
10261 2018-08-28 Florian Weimer <fweimer@redhat.com>
10262
10263 * support/test-container.c (main): Treat unshare failure with
10264 EPERM as an unsupported test.
10265
10266 2018-08-28 Florian Weimer <fweimer@redhat.com>
10267
10268 [BZ #23520]
10269 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10270 * nscd/netgroupcache.c
10271 (addgetnetgrentX): Add tofreep parameter. Do not free
10272 heap-allocated buffer.
10273 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10274 (addgetnetgrentX_ignore): New function.
10275 (addgetnetgrent): Call it.
10276 (readdgetnetgrent): Likewise.
10277
10278 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10279
10280 * string/memmem.c: Use memcmp for first match.
10281
10282 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10283
10284 [BZ #17426]
10285 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10286
10287 2018-08-27 DJ Delorie <dj@redhat.com>
10288
10289 * support/Makefile (others): Don't list programs explicitly as a
10290 dependency of "others".
10291
10292 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10293
10294 * sysdeps/generic/math-tests-trap-force.h: New file.
10295 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10296 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10297 * sysdeps/powerpc/math-tests.h: Remove file.
10298 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10299
10300 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10301 Torvald Riegel <triegel@redhat.com>
10302
10303 [BZ #23538]
10304 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10305 Update r to include the set wake-request flag if waiters are
10306 remaining after spinning.
10307
10308 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10309
10310 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10311
10312 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10313
10314 [BZ #23578]
10315 regex: fix uninitialized memory access
10316 I introduced this bug into gnulib in commit
10317 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10318 eventually it was merged into glibc. The bug was found by
10319 project-repo <bugs@feusi.co> and reported here:
10320 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10321 Diagnosis and draft fix reported by Assaf Gordon here:
10322 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10323 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10324 * posix/regex_internal.c (build_wcs_upper_buffer):
10325 Fix bug when mbrtowc returns 0.
10326
10327 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10328
10329 * po/be.po: Update translation.
10330
10331 2018-08-24 DJ Delorie <dj@delorie.com>
10332
10333 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10334 $(libunwind).
10335
10336 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10337
10338 [BZ #23400]
10339 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10340 create temporary files in source tree.
10341
10342 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10343
10344 * sysdeps/generic/math-tests-trap.h: New file.
10345 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10346 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10347 * sysdeps/aarch64/math-tests.h: Remove file.
10348 * sysdeps/arm/math-tests.h: Likewise.
10349 * sysdeps/riscv/math-tests.h: Likewise.
10350 * sysdeps/aarch64/math-tests-trap.h: New file.
10351 * sysdeps/arm/math-tests-trap.h: Likewise.
10352 * sysdeps/riscv/math-tests-trap.h: Likewise.
10353
10354 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10355
10356 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10357 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10358 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10359 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10360 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10361 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10362 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10363 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10364 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10365 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10366 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10367 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10368 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10369 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10370 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10371 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10372 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10373 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10374
10375 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10376
10377 * sysdeps/generic/math-tests-exceptions.h: New file.
10378 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10379 (EXCEPTION_TESTS_float): Do not define here.
10380 (EXCEPTION_TESTS_double): Likewise.
10381 (EXCEPTION_TESTS_long_double): Likewise.
10382 (EXCEPTION_TESTS_float128): Likewise.
10383 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10384 Likewise.
10385 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10386 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10387 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10388 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10389 * sysdeps/mips/math-tests.h: Likewise.
10390 * sysdeps/nios2/math-tests.h: Likewise.
10391 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10392 (EXCEPTION_TESTS_float): Do not define here.
10393 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10394 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10395 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10396
10397 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10398
10399 * NEWS: Move optimized sinf entry to 2.29.
10400
10401 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10402
10403 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10404
10405 2018-08-22 DJ Delorie <dj@redhat.com>
10406
10407 * Makefile (testroot.pristine): New rules to initialize the
10408 test-in-container "testroot".
10409 * Makerules (all-testsuite): Add tests-container.
10410 * Rules (tests-expected): Add tests-container.
10411 (binaries-all-tests): Likewise.
10412 (tests-container): New, run these tests in the testroot container.
10413 * support/Makefile (others): Add *-container, support_paths.c,
10414 xmkdirp, and links-dso-program.
10415 * support/links-dso-program-c.c: New.
10416 * support/links-dso-program.cc: New.
10417 * support/test-container.c: New.
10418 * support/shell-container.c: New.
10419 * support/echo-container.c: New.
10420 * support/true-container.c: New.
10421 * support/xmkdirp.c: New.
10422 * support/xsymlink.c: New.
10423 * support/support_paths.c: New.
10424 * support/support.h: Add support paths prototypes.
10425 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10426
10427 * nss/tst-nss-test3.c: Convert to test-in-container.
10428 * nss/tst-nss-test3.root/: New.
10429
10430 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10431
10432 regex: port Gnulib code to z/OS POSIX environment
10433 Problem reported by Arnold Robbins in:
10434 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10435 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10436 Undef.
10437
10438 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10439
10440 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10441 (ROUNDING_TESTS_double): Remove.
10442 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10443 (ROUNDING_TESTS_double): Remove.
10444 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10445 (ROUNDING_TESTS_double): Remove.
10446 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10447 (ROUNDING_TESTS_float): Remove.
10448 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10449 (ROUNDING_TESTS_float): Remove.
10450 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10451 (ROUNDING_TESTS_float): Remove.
10452 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10453 !TEST_MATHVEC here.
10454 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10455 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10456
10457 * sysdeps/generic/math-tests-rounding.h: New file.
10458 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10459 (ROUNDING_TESTS_float): Do not define here.
10460 (ROUNDING_TESTS_double): Likewise.
10461 (ROUNDING_TESTS_long_double): Likewise.
10462 (ROUNDING_TESTS_float128): Likewise.
10463 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10464 (ROUNDING_TESTS_double): Undefine before defining.
10465 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10466 (ROUNDING_TESTS_double): Undefine before defining.
10467 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10468 (ROUNDING_TESTS_double): Undefine before defining.
10469 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10470 (ROUNDING_TESTS_float): Undefine before defining.
10471 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10472 (ROUNDING_TESTS_float): Undefine before defining.
10473 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10474 (ROUNDING_TESTS_float): Undefine before defining.
10475 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10476 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10477 not define here.
10478 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10479 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10480 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10481 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10482 (ROUNDING_TESTS_float): Do not define here.
10483 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10484 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10485 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10486 (ROUNDING_TESTS_float): Likewise.
10487 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10488 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10489 * sysdeps/mips/math-tests.h [__mips_soft_float]
10490 (ROUNDING_TESTS_float): Likewise.
10491 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10492 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10493 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10494 (ROUNDING_TESTS_double): Likewise.
10495 (ROUNDING_TESTS_long_double): Likewise.
10496
10497 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10498
10499 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10500 (PF_XDP): New macro.
10501 (AF_XDP): New macro.
10502 (SOL_XDP): New macro.
10503
10504 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10505
10506 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10507 (TCP_INQ): Likewise.
10508 (TCP_CM_INQ): Likewise.
10509 (TCP_REPAIR_ON): Likewise.
10510 (TCP_REPAIR_OFF): Likewise.
10511 (TCP_REPAIR_OFF_NO_WP): Likewise.
10512 (struct tcp_zerocopy_receive): New type.
10513
10514 2018-08-21 Florian Weimer <fweimer@redhat.com>
10515
10516 * support/support.h (support_descriptor_supports_holes): Declare.
10517 * support/Makefile (libsupport-routines): Add
10518 support_descriptor_supports_holes.
10519 * support/support_descriptor_supports_holes.c: New file.
10520 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10521 and stop testing if holes are not supported.
10522 * io/test-lfs.c (do_prepare): Likewise.
10523 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10524 Likewise.
10525 * timezone/tst-tzset.c (create_tz_file): Likewise.
10526 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10527 variable.
10528 (do_prepare): Set it.
10529 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10530
10531 2018-08-21 Florian Weimer <fweimer@redhat.com>
10532
10533 [BZ #17248]
10534 * Makeconfig (+cflags): Do not sort (and deduplicate).
10535
10536 2018-08-21 Florian Weimer <fweimer@redhat.com>
10537
10538 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10539 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10540
10541 2018-08-20 Florian Weimer <fweimer@redhat.com>
10542
10543 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10544 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10545
10546 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10547
10548 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10549 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10550 and ssi_arch members.
10551
10552 * elf/elf.c (NT_VMCOREDD): New macro.
10553 (AT_MINSIGSTKSZ): Likewise.
10554
10555 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10556
10557 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10558 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10559 s_cosf-ppc64 and s_cosf-power8.
10560 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10561 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10562 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10563 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10570 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10571 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10572
10573 2018-08-17 Florian Weimer <fweimer@redhat.com>
10574
10575 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10576
10577 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10578
10579 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10580
10581 2018-08-16 Florian Weimer <fweimer@redhat.com>
10582
10583 * configure.ac: Add --with-nonshared-cflags option.
10584 * config.make.in (extra-nonshared-cflags): Set variable.
10585 * Makeconfig (CFLAGS-.oS): Use it.
10586 * manual/install.texi (Configuring and compiling): Document
10587 --with-nonshared-cflags.
10588 * configure: Regenerate.
10589 * INSTALL: Likewise.
10590
10591 2018-08-16 Florian Weimer <fweimer@redhat.com>
10592
10593 * Makeconfig (ASFLAGS): Always append required assembler flags.
10594
10595 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10596
10597 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10598 (malloc_consolidate): Likewise.
10599
10600 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10601
10602 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10603
10604 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10605
10606 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10607 every strlen call.
10608
10609 * benchtests/bench-strlen.c: Print performance numbers in json.
10610
10611 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10612
10613 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10614 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10615 only for little endian.
10616 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10617 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10618 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10619 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10620 Add check for little endian.
10621 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10622 (__strcmp_power9): Add check for little endian.
10623 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10624 Add check for little endian.
10625 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10626 (__strncmp_power9): Add check for little endian.
10627 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10628 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10629 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10630 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10631 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10632
10633 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10634
10635 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10636 [!STRLEN](STRLEN): Set to __strlen.
10637 * sysdeps/aarch64/multiarch/strlen.c: New file.
10638 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10639 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10640 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10641 (__libc_ifunc_impl_list): Add strlen.
10642 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10643 strlen_generic and strlen_asimd.
10644
10645 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10646
10647 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10648 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10649 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10650
10651 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10652
10653 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10654
10655 2018-08-14 Florian Weimer <fweimer@redhat.com>
10656
10657 [BZ #23519]
10658 * include/stdio.h (__vfxprintf): Declare.
10659 * stdio-common/fxprintf.c (__vfxprintf): New function.
10660 (__fxprintf): Call it.
10661 * misc/err.c (convert_and_print): Remove function.
10662 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10663 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10664 * misc/Makefile (tests): Add tst-warn-wide.
10665 * misc/tst-warn-wide.c: New file.
10666
10667 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10668 Szabolcs Nagy <szabolcs.nagy@arm.com>
10669
10670 * NEWS: Mention sinf, cosf, sincosf.
10671 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10672 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10673 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10674 constants rather than including generic sincosf.h.
10675 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10676 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10677 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10678 (reduced_cos): Remove.
10679 (sinf_poly): New function.
10680 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10681
10682 2018-08-14 Florian Weimer <fweimer@redhat.com>
10683
10684 [BZ #23521]
10685 [BZ #23522]
10686 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10687 processing, bail out if no room, and close the stream before
10688 returning ERANGE.
10689 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10690 (tst-nss-files-alias-leak): Link with libdl.
10691 (tst-nss-files-alias-leak.out): Depend on nss_files.
10692
10693 * nss/tst-nss-files-alias-leak.c: New file.
10694
10695 2018-08-14 Florian Weimer <fweimer@redhat.com>
10696
10697 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10698 server_user, stat_user.
10699
10700 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10701
10702 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10703 version to 4.18.
10704 (io_pgetevents): New syscall.
10705 (rseq): Likewise.
10706
10707 * manual/install.texi (Configuring and compiling): Do not list
10708 tools used for testing pretty printers here.
10709 (Tools for Compilation): List Python, PExpect and GDB here.
10710 Update descriptions of uses of Perl and Python.
10711 * INSTALL: Regenerate.
10712
10713 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10714 version to 4.18.
10715
10716 2018-08-13 Florian Weimer <fweimer@redhat.com>
10717
10718 * misc/error.c (error): Add missing va_end call.
10719 (error_at_line): Likewise.
10720
10721 2018-08-13 Florian Weimer <fweimer@redhat.com>
10722
10723 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10724
10725 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10726
10727 * benchtests/scripts/benchout.schema.json (properties): Add
10728 new properties.
10729
10730 * benchtests/bench-skeleton.c (main): Add duration and
10731 iterations attributes.
10732
10733 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10734
10735 regex: Gnulib unibyte RRI uses bytes not chars
10736 Adjust the non-glibc code to agree with what Gawk needs for
10737 rational range interpretation (RRI) for regular expression ranges.
10738 In unibyte locales, Gawk wants ranges to use the underlying byte
10739 rather than the character code point. This change does not affect
10740 glibc proper.
10741 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10742 In unibyte locales, use the byte value rather than
10743 running it through btowc.
10744
10745 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10746
10747 * sysdeps/generic/math-tests-snan.h: New file.
10748 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10749 (SNAN_TESTS_float): Do not define here.
10750 (SNAN_TESTS_double): Likewise.
10751 (SNAN_TESTS_long_double): Likewise.
10752 (SNAN_TESTS_float128): Likewise.
10753 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10754 * sysdeps/i386/fpu/math-tests.h: Remove file.
10755 * sysdeps/ia64/math-tests-snan.h: New file.
10756 * sysdeps/ia64/math-tests.h: Remove file.
10757 * sysdeps/x86/math-tests.h: Likewise.
10758 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10759
10760 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10761 Szabolcs Nagy <szabolcs.nagy@arm.com>
10762
10763 * math/Makefile: Add s_sincosf_data.c.
10764 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10765 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10766 (sincosf_poly): Likewise.
10767 (reduce_small): Likewise.
10768 (reduce_large): Likewise.
10769 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10770 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10771 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10772 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10773
10774 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10775 Szabolcs Nagy <szabolcs.nagy@arm.com>
10776
10777 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10778 (converttoint): Use lround.
10779 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10780 document the semantics when TOINT_INTRINSICS is set.
10781 (converttoint): Likewise.
10782 (TOINT_RINT): Remove.
10783 (TOINT_SHIFT): Remove.
10784 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10785 path.
10786
10787 2018-08-10 Florian Weimer <fweimer@redhat.com>
10788
10789 [BZ #23497]
10790 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10791 function.
10792 (__old_getdents64): Use getdents64. Convert entries without
10793 moving them.
10794 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10795 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10796 tst-readdir64-compat.
10797
10798 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10799
10800 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10801 Fix unwind.
10802
10803 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10804
10805 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10806 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10807 code to s390x-mcount.h and #include it.
10808 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10810 (__fentry__): Add.
10811
10812 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10813
10814 * stdlib/Versions: Remove __fentry__.
10815 * sysdeps/i386/Versions: Add __fentry__.
10816 * sysdeps/x86_64/Versions: Add __fentry__.
10817
10818 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10819
10820 * sysdeps/s390/Makefile: Register the new tests.
10821 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10822 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10823 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10824 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10825 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10826 * sysdeps/s390/tst-dl-runtime.c: New file.
10827
10828 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10829
10830 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10831 Do not clobber R0.
10832
10833 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10834
10835 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10836 Do not clobber R0.
10837
10838 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10839
10840 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10841 Do not clobber R0.
10842
10843 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10844
10845 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10846 Do not clobber R0.
10847
10848 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10849
10850 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10851 Use symbolic offsets for stack variables.
10852
10853 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10854
10855 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10856 Use symbolic offsets for stack variables.
10857
10858 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10859
10860 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10861 Use symbolic offsets for stack variables.
10862
10863 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10864
10865 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10866 Use symbolic offsets for stack variables.
10867
10868 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10869
10870 * math/gen-libm-test.py: New file.
10871 * math/gen-libm-test.pl: Remove.
10872 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10873 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10874 gen-libm-test.pl.
10875 ($(libm-test-c-noauto-obj)): Likewise.
10876 ($(libm-test-c-auto-obj)): Likewise.
10877 ($(libm-test-c-narrow-obj)): Likewise.
10878 (regen-ulps): Likewise.
10879 * math/README.libm-test: Update references to gen-libm-test.pl.
10880 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10881 referencing gen-libm-test.pl.
10882 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10883 * math/libm-test-support.c: Likewise.
10884 * math/libm-test-support.h: Likewise.
10885 * sysdeps/generic/libm-test-ulps: Likewise.
10886
10887 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10888
10889 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10890 Fix value.
10891
10892 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10893
10894 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10895 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10896
10897 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10898
10899 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10900 symbols.
10901 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10902 __pthread_setspecific): Add hidden proto.
10903 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10904 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10905
10906 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10907
10908 * benchtests/bench-string.h (buf1_size, buf2_size): New
10909 variables.
10910 (init_sizes): New function.
10911 (test_init): Use it.
10912 (alloc_buf, exit_error): New functions.
10913 (alloc_bufs): Use ALLOC_BUF.
10914 (realloc_bufs): Remove.
10915 * benchtests/bench-memcmp.c (do_test): Adjust.
10916 * benchtests/bench-memset-large.c (do_test): Likewise.
10917 * benchtests/bench-memset-walk.c (do_test): Likewise.
10918 * benchtests/bench-memset.c (do_test): Likewise.
10919 * benchtests/bench-strncmp.c (do_test): Likewise.
10920
10921 2018-08-06 Andreas Schwab <schwab@suse.de>
10922
10923 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10924 of CONST_THREAD_AREA.
10925
10926 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10927
10928 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10929 (STATE_SAVE_MASK): Likewise.
10930 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10931 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10932 (STATE_SAVE_MASK): Likewise.
10933 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10934 instead of <cpu-features.h>.
10935
10936 2018-08-03 DJ Delorie <dj@redhat.com>
10937
10938 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10939 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10940
10941 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10942
10943 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10944
10945 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10946 after TEST_* calls.
10947 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10948 * math/libm-test-logb.inc (logb_test_data): Likewise.
10949
10950 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10951
10952 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10953 * string/strstr.c (AVAILABLE): Likewise.
10954
10955 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10956
10957 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10958 <init-arch.h>.
10959 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10960 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10961 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10962
10963 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10964
10965 * po/be.po: Update translation.
10966
10967 * po/be.po: Update translation.
10968
10969 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10970
10971 * sysdeps/x86/cpu-features-offsets.sym
10972 (rtld_global_ro_offsetof): Removed.
10973 (CPU_FEATURES_SIZE): Likewise.
10974 (CPUID_OFFSET): Likewise.
10975 (CPUID_SIZE): Likewise.
10976 (CPUID_EAX_OFFSET): Likewise.
10977 (CPUID_EBX_OFFSET): Likewise.
10978 (CPUID_ECX_OFFSET): Likewise.
10979 (CPUID_EDX_OFFSET): Likewise.
10980 (FAMILY_OFFSET): Likewise.
10981 (MODEL_OFFSET): Likewise.
10982 (FEATURE_OFFSET): Likewise.
10983 (FEATURE_SIZ): Likewise.
10984 (COMMON_CPUID_INDEX_1): Likewise.
10985 (COMMON_CPUID_INDEX_7): Likewise.
10986 (FEATURE_INDEX_1): Likewise.
10987 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10988
10989 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10990
10991 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10992 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10993 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10994 (install-locales): Depend on install-locale-archive.
10995 (install-locale-archive): Define.
10996 (install-locale-files): Define.
10997 (build-one-locale): Define macro.
10998 * manual/install.texi (Running make install): Document.
10999 * manual/INSTALL: Regenerate.
11000
11001 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
11002
11003 * benchtests/scripts/compare_strings.py: Import traceback.
11004 (parse_file): Pretty-print error.
11005
11006 * NEWS: Mention the change.
11007 * elf/dl-tunables.list: Rename tune namespace to cpu.
11008 * sysdeps/powerpc/dl-tunables.list: Likewise.
11009 * sysdeps/x86/dl-tunables.list: Likewise.
11010 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
11011 cpu.name.
11012 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
11013 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
11014 * manual/README.tunables: Likewise.
11015 * manual/tunables.texi: Likewise.
11016 * sysdeps/powerpc/cpu-features.c: Likewise.
11017 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
11018 (init_cpu_features): Likewise.
11019 * sysdeps/x86/cpu-features.c: Likewise.
11020 * sysdeps/x86/cpu-features.h: Likewise.
11021 * sysdeps/x86/cpu-tunables.c: Likewise.
11022 * sysdeps/x86_64/Makefile: Likewise.
11023 * sysdeps/x86/dl-cet.c: Likewise.
11024
11025 2018-08-02 Joseph Myers <joseph@codesourcery.com>
11026
11027 [BZ #23479]
11028 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
11029 [__mips_hard_float].
11030 (FE_UNDERFLOW): Likewise.
11031 (FE_OVERFLOW): Likewise.
11032 (FE_DIVBYZERO): Likewise.
11033 (FE_INVALID): Likewise.
11034 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
11035 (FE_TOWARDZERO): Define only if [__mips_hard_float].
11036 (FE_UPWARD): Likewise.
11037 (FE_DOWNWARD): Likewise.
11038 (__FE_UNDEFINED): Define if [!__mips_hard_float]
11039 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
11040 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
11041 [__mips_hard_float].
11042 (FP_ROUNDMODE): Likewise.
11043 (FP_RND_NEAREST): Likewise.
11044 (FP_RND_ZERO): Likewise.
11045 (FP_RND_PINF): Likewise.
11046 (FP_RND_MINF): Likewise.
11047 (FP_EX_INVALID): Likewise.
11048 (FP_EX_OVERFLOW): Likewise.
11049 (FP_EX_UNDERFLOW): Likewise.
11050 (FP_EX_DIVZERO): Likewise.
11051 (FP_EX_INEXACT): Likewise.
11052 (FP_INIT_ROUNDMODE): Likewise.
11053 * sysdeps/mips/nofpu/fesetenv.c: New file.
11054 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
11055
11056 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11057
11058 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
11059 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
11060 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
11061 conditional on [FE_UPWARD].
11062
11063 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
11064
11065 regex: fix memory leak in Gnulib
11066 Problem and fix reported by Assaf Gordon in:
11067 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
11068 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
11069 range_ends members too, as they are defined in 'struct
11070 re_charset_t' even if not _LIBC. This affects only Gnulib.
11071
11072 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
11073
11074 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
11075 ...
11076 (get_common_indices): This.
11077 (init_cpu_features): Updated.
11078
11079 2018-08-01 Joseph Myers <joseph@codesourcery.com>
11080
11081 * sysdeps/generic/math-tests-snan-payload.h: New file.
11082 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11083 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11084 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11085 * sysdeps/generic/math-tests.h: Include
11086 <math-tests-snan-payload.h>.
11087 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11088 * sysdeps/hppa/math-tests.h: Remove file.
11089 * sysdeps/mips/math-tests.h [!__mips_nan2008]
11090 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11091 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11092 Likewise.
11093
11094 * sysdeps/generic/math-tests-snan-cast.h: New file.
11095 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11096 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11097 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11098 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11099
11100 2018-08-01 Carlos O'Donel <carlos@redhat.com>
11101
11102 * version.h (RELEASE): Set to "development".
11103 (VERSION): Set to "2.28.9000".
11104 * NEWS (2.29): New section.
11105
11106 * version.h (RELEASE): Set to "stable".
11107 (VERSION): Set to "2.28".
11108 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11109 * NEWS: Add the list of bugs fixed in 2.28.
11110
11111 * po/ca.po: Update to latest version.
11112 * po/cs.po: Likewise
11113 * po/da.po: Likewise
11114 * po/el.po: Likewise
11115 * po/eo.po: Likewise
11116 * po/es.po: Likewise
11117 * po/fi.po: Likewise
11118 * po/fr.po: Likewise
11119 * po/gl.po: Likewise
11120 * po/hu.po: Likewise
11121 * po/ia.po: Likewise
11122 * po/id.po: Likewise
11123 * po/it.po: Likewise
11124 * po/ja.po: Likewise
11125 * po/ko.po: Likewise
11126 * po/lt.po: Likewise
11127 * po/nb.po: Likewise
11128 * po/nl.po: Likewise
11129 * po/pt_BR.po: Likewise
11130 * po/ru.po: Likewise
11131 * po/rw.po: Likewise
11132 * po/sk.po: Likewise
11133 * po/sl.po: Likewise
11134 * po/tr.po: Likewise
11135 * po/zh_CN.po: Likewise
11136 * po/zh_TW.po: Likewise
11137
11138 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11139
11140 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11141 initialization...
11142 (init): ... before initializing libpthread.
11143
11144 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11145 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11146 (__mach_setup_tls): ... new function.
11147 (mach_setup_tls): New alias.
11148 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11149 __mach_setup_thread.
11150 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11151 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11152 * mach/Versions [libc] (mach_setup_tls): Add symbol.
11153 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11154
11155 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11156
11157 * manual/install.texi: Update versions.
11158 * INSTALL: Regenerate.
11159
11160 * manual/contrib.texi (Contributors): Update contributions.
11161
11162 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11163
11164 * po/be.po: Update translations.
11165
11166 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11167
11168 * sysdeps/sh/libm-test-ulps: Update.
11169
11170 2018-07-30 Carlos O'Donell <carlos@redhat.com>
11171
11172 * po/bg.po: Update translations.
11173 * po/de.po: Likewise.
11174 * po/hr.po: Likewise.
11175 * po/pt_BR.po: Likewise.
11176 * po/sv.po: Likewise.
11177 * po/vi.po: Likewise.
11178
11179 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11180
11181 [BZ #23467]
11182 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11183 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11184 (CFLAGS-tst-cet-property-1.o): New.
11185 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11186 ($(objpfx)tst-cet-property-2): Likewise.
11187 ($(objpfx)tst-cet-property-2.out): Likewise.
11188 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11189 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11190 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11191 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11192 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11193
11194 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11195
11196 [BZ #23458]
11197 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11198
11199 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11200
11201 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11202 __sbrk): Do not set attribute_hidden.
11203 * sysdeps/mach/hurd/not-errno.h: New file.
11204 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11205 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11206
11207 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11208
11209 * po/uk.po: Update translations.
11210 * po/cs.po: Likewise.
11211 * po/pl.po: Likewise.
11212
11213 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11214
11215 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11216 parse beyond the note end.
11217
11218 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11219
11220 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11221 kernel does not support OFD locks.
11222 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11223
11224 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11225
11226 * sysdeps/mach/hurd/Versions (libc): Make __access and
11227 __access_noerrno external so they can override the ld symbols.
11228 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11229 __writev, __open64, __access_noerrno extern so they can be overrided.
11230 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11231 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11232
11233 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11234
11235 * po/libc.pot: Regenerate.
11236
11237 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11238
11239 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11240
11241 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11242
11243 [BZ #23459]
11244 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11245 function.
11246 (init_cpu_features): Call get_extended_indices for both Intel
11247 and AMD CPUs.
11248 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11249 Remove "for AMD" comment.
11250
11251 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11252
11253 [BZ # 23456]
11254 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11255 COMMON_CPUID_INDEX_80000001.
11256
11257 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11258
11259 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11260 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11261
11262 2018-07-26 Florian Weimer <fweimer@redhat.com>
11263
11264 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11265 aliases for symbols not in the implementation namespace.
11266
11267 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11268
11269 [BZ #23393]
11270 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11271 lowercase in LATIN script.
11272 * localedata/Makefile (test-input): Add en_US.UTF-8.
11273 * localedata/en_US.UTF-8.in: New file.
11274 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11275 and restore old tests.
11276 * posix/tst-regexloc.c (do_test): Add back range expression test.
11277
11278 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11279
11280 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11281
11282 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11283
11284 * nptl/threads.h: Move to ...
11285 * sysdeps/nptl/threads.h: ... here.
11286 * sysdeps/hurd/stdc-predef.h: New file.
11287
11288 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11289
11290 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11291 tst-cet-setcontext-1 if CET is enabled.
11292 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11293 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11294
11295 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11296
11297 * include/threads.h: Move to ...
11298 * sysdeps/nptl/threads.h: ... here.
11299 * sysdeps/htl/threads.h: New file.
11300 * conform/Makefile (linknamespace-libs-ISO11): Use
11301 static-thread-library instead of linking libpthread.
11302 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11303
11304 2018-07-25 Florian Weimer <fweimer@redhat.com>
11305
11306 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11307 nanoseconds into seconds.
11308 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11309 (do_test): Likewise.
11310 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11311 (do_test): Likewise. Avoid nanosecond overflow and spurious
11312 timeouts due to system load.
11313 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11314 (child_wait): Increment it.
11315 (do_test): Wait as long as necessary until all expected threads
11316 have arrived.
11317
11318 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11319 H.J. Lu <hongjiu.lu@intel.com>
11320
11321 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11322 __ssp.
11323 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11324 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11325 (__push___start_context): New.
11326 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11327 <asm/prctl.h>.
11328 (__getcontext): Record the current shadow stack base. Save the
11329 caller's shadow stack pointer and base.
11330 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11331 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11332 (__push___start_context): New prototype.
11333 (__makecontext): Call __push___start_context to allocate a new
11334 shadow stack, push __start_context onto the new stack as well
11335 as the new shadow stack.
11336 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11337 <asm/prctl.h>.
11338 (__setcontext): Restore the target shadow stack.
11339 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11340 <asm/prctl.h>.
11341 (__swapcontext): Record the current shadow stack base. Save
11342 the caller's shadow stack pointer and base. Restore the target
11343 shadow stack.
11344 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11345 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11346 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11347
11348 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11349
11350 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11351 tst-setcontext8 and tst-setcontext9.
11352 * stdlib/tst-setcontext6.c: New file.
11353 * stdlib/tst-setcontext7.c: Likewise.
11354 * stdlib/tst-setcontext8.c: Likewise.
11355 * stdlib/tst-setcontext9.c: Likewise.
11356
11357 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11358
11359 * stdlib/Makefile ((tests): Add tst-setcontext5.
11360 * stdlib/tst-setcontext5.c: New file.
11361
11362 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11363
11364 * stdlib/Makefile (tests): Add tst-setcontext4.
11365 * stdlib/tst-setcontext4.c: New file.
11366
11367 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11368
11369 * stdlib/Makefile (tests): Add tst-swapcontext1.
11370 * stdlib/tst-swapcontext1.c: New test.
11371
11372 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11373
11374 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11375 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11376 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11377 and tst-cet-legacy-4c.
11378 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11379 and tst-cet-legacy-mod-4.
11380 (CFLAGS-tst-cet-legacy-2.c): New.
11381 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11382 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11383 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11384 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11385 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11386 ($(objpfx)tst-cet-legacy-1): Likewise.
11387 ($(objpfx)tst-cet-legacy-2): Likewise.
11388 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11389 ($(objpfx)tst-cet-legacy-2a): Likewise.
11390 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11391 ($(objpfx)tst-cet-legacy-4): Likewise.
11392 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11393 ($(objpfx)tst-cet-legacy-4a): Likewise.
11394 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11395 (tst-cet-legacy-4a-ENV): Likewise.
11396 ($(objpfx)tst-cet-legacy-4b): Likewise.
11397 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11398 (tst-cet-legacy-4b-ENV): Likewise.
11399 ($(objpfx)tst-cet-legacy-4c): Likewise.
11400 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11401 (tst-cet-legacy-4c-ENV): Likewise.
11402 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11403 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11404 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11405 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11406 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11407 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11408 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11409 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11410 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11411 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11412 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11413
11414 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11415
11416 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11417 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11418 with ssp_base.
11419 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11420 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11421 with ssp_base.
11422
11423 2018-07-25 Andreas Schwab <schwab@suse.de>
11424
11425 [BZ #23442]
11426 * locale/weightwc.h (findidx): Handle the case where usrc is a
11427 prefix of cp but one character too short.
11428
11429 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11430
11431 * NEWS: Add ISO C threads addition.
11432
11433 2018-07-24 Florian Weimer <fweimer@redhat.com>
11434
11435 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11436 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11437 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11438 4.13.
11439
11440 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11441
11442 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11443 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11444 <sys/prctl.h> and <asm/prctl.h>.
11445 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11446 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11447 and <asm/prctl.h>.
11448 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11449 ARCH_CET_LEGACY_BITMAP.
11450 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11451 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11452 * sysdeps/x86/libc-start.c: Include <startup.h>.
11453
11454 2018-07-24 Florian Weimer <fweimer@redhat.com>
11455
11456 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11457 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11458
11459 2018-07-24 Rical Jasan <rj@2c3t.io>
11460 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11461 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11462
11463 [BZ #14092]
11464 * manual/debug.texi: Update adjacent chapter name.
11465 * manual/probes.texi: Likewise.
11466 * manual/threads.texi (ISO C Threads): New section.
11467 (POSIX Threads): Convert to a section.
11468
11469 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11470 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11471
11472 [BZ# 14092]
11473 * nptl/Makefile (tests): Add new test files.
11474 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11475 * nptl/tst-cnd-basic.c: Likewise.
11476 * nptl/tst-cnd-broadcast.c: Likewise.
11477 * nptl/tst-cnd-timedwait.c: Likewise.
11478 * nptl/tst-mtx-basic.c: Likewise.
11479 * nptl/tst-mtx-recursive.c: Likewise.
11480 * nptl/tst-mtx-timedlock.c: Likewise.
11481 * nptl/tst-mtx-trylock.c: Likewise.
11482 * nptl/tst-thrd-basic.c: Likewise.
11483 * nptl/tst-thrd-detach.c: Likewise.
11484 * nptl/tst-thrd-sleep.c: Likewise.
11485 * nptl/tst-tss-basic.c: Likewise.
11486
11487 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11488
11489 [BZ #14092]
11490 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11491 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11492 symbols.
11493 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11494 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11495 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11496 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11497 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11498 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11499 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11500 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11501 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11502 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11503 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11504 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11506 Likewise.
11507 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11508 Likewise.
11509 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11510 Likewise.
11511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11512 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11513 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11514 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11515 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11516 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11517 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11518 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11519 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11520 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11521 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11522 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11523 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11524 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11525 Likewise.
11526 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11527 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11528 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11529 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11530 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11531 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11532 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11533 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11534 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11535 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11536 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11537 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11538 ikewise.
11539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11540 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11541 Likewise.
11542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11543 Likewise.
11544 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11545 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11546 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11547 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11548 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11549 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11550 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11551 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11552
11553 [BZ #14092]
11554 * conform/data/threads.h-data (thread_local): New macro.
11555 (TSS_DTOR_ITERATIONS): Likewise.
11556 (tss_t): New type.
11557 (tss_dtor_t): Likewise.
11558 (tss_create): New function.
11559 (tss_get): Likewise.
11560 (tss_set): Likewise.
11561 (tss_delete): Likewise.
11562 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11563 tss_get, and tss_set objects.
11564 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11565 * nptl/tss_create.c: New file.
11566 * nptl/tss_delete.c: Likewise.
11567 * nptl/tss_get.c: Likewise.
11568 * nptl/tss_set.c: Likewise.
11569 * sysdeps/nptl/threads.h (thread_local): New define.
11570 (TSS_DTOR_ITERATIONS): Likewise.
11571 (tss_t): New typedef.
11572 (tss_dtor_t): Likewise.
11573 (tss_create): New prototype.
11574 (tss_get): Likewise.
11575 (tss_set): Likewise.
11576 (tss_delete): Likewise.
11577
11578 [BZ #14092]
11579 * conform/data/threads.h-data (cnd_t): New type.
11580 (cnd_init): New function.
11581 (cnd_signal): Likewise.
11582 (cnd_broadcast): Likewise.
11583 (cnd_wait): Likewise.
11584 (cnd_timedwait): Likewise.
11585 (cnd_destroy): Likewise.
11586 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11587 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11588 object.
11589 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11590 * nptl/cnd_broadcast.c: New file.
11591 * nptl/cnd_destroy.c: Likewise.
11592 * nptl/cnd_init.c: Likewise.
11593 * nptl/cnd_signal.c: Likewise.
11594 * nptl/cnd_timedwait.c: Likewise.
11595 * nptl/cnd_wait.c: Likewise.
11596 * sysdeps/nptl/threads.h (cnd_t): New type.
11597 (cnd_init): New prototype.
11598 (cnd_signa): Likewise.
11599 (cnd_broadcast): Likewise.
11600 (cnd_wait): Likewise.
11601 (cnd_timedwait): Likewise.
11602 (cnd_destroy): Likewise.
11603
11604 [BZ #14092]
11605 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11606 (once_flag): New type.
11607 (call_once): New function.
11608 * nptl/Makefile (libpthread-routines): Add call_once object.
11609 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11610 * nptl/call_once.c: New file.
11611 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11612 (once_flag): New type.
11613 (call_once): New prototype.
11614
11615 [BZ #14092]
11616 * conform/data/threads.h-data (mtx_plain): New constant.
11617 (mtx_recursive): Likewise.
11618 (mtx_timed): Likewise.
11619 (mtx_t): New type.
11620 (mtx_init): New function.
11621 (mtx_lock): Likewise.
11622 (mtx_timedlock): Likewise.
11623 (mtx_trylock): Likewise.
11624 (mtx_unlock): Likewise.
11625 (mtx_destroy): Likewise.
11626 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11627 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11628 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11629 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11630 * nptl/mtx_destroy.c: New file.
11631 * nptl/mtx_init.c: Likewise.
11632 * nptl/mtx_lock.c: Likewise.
11633 * nptl/mtx_timedlock.c: Likewise.
11634 * nptl/mtx_trylock.c: Likewise.
11635 * nptl/mtx_unlock.c: Likewise.
11636 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11637 (mtx_recursive): Likewise.
11638 (mtx_timed): Likewise.
11639 (mtx_t): New type.
11640 (mtx_init): New prototype.
11641 (mtx_lock): Likewise.
11642 (mtx_timedlock): Likewise.
11643 (mtx_trylock): Likewise.
11644 (mtx_unlock): Likewise.
11645 (mtx_destroy): Likewise.
11646
11647 [BZ #14092]
11648 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11649 (linknamespace-libs-ISO11): Add libpthread.a.
11650 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11651 functions.
11652 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11653 * nptl/Makefile (headers): Add threads.h.
11654 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11655 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11656 thrd_yield.
11657 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11658 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11659 thrd_join, thrd_sleep, and thrd_yield symbols.
11660 * nptl/descr.h (struct pthread): Add c11 field.
11661 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11662 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11663 routine with expected function prototype.
11664 (__pthread_create_2_1): Add C11 threads check based on attribute
11665 value.
11666 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11667 * nptl/thrd_create.c: New file.
11668 * nptl/thrd_current.c: Likewise.
11669 * nptl/thrd_detach.c: Likewise.
11670 * nptl/thrd_equal.c: Likewise.
11671 * nptl/thrd_exit.c: Likewise.
11672 * nptl/thrd_join.c: Likewise.
11673 * nptl/thrd_priv.h: Likewise.
11674 * nptl/thrd_sleep.c: Likewise.
11675 * nptl/thrd_yield.c: Likewise.
11676 * include/threads.h: Likewise.
11677
11678 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11679
11680 * bits/indirect-return.h: New file.
11681 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11682 * sysdeps/x86/bits/indirect-return.h: Likewise.
11683 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11684 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11685 (swapcontext): Add __INDIRECT_RETURN.
11686 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11687 (prepare_test_buffer): Use it.
11688
11689 2018-07-24 Andreas Schwab <schwab@suse.de>
11690
11691 [BZ #23448]
11692 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11693 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11694
11695 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11696
11697 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11698 Redefine if shadow stack is enabled.
11699 (SYSCALL_ERROR_LABEL): Likewise.
11700 (__vfork): Pop shadow stack and jump back to to caller directly
11701 when shadow stack is in use.
11702 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11703 Redefine if shadow stack is enabled.
11704 (SYSCALL_ERROR_LABEL): Likewise.
11705 (__vfork): Pop shadow stack and jump back to to caller directly
11706 when shadow stack is in use.
11707
11708 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11709
11710 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11711 enabled.
11712 (foo): Likewise.
11713 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11714 (foo): Likewise.
11715
11716 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11717
11718 * scripts/build-many-glibcs.py (Context.checkout): Default
11719 binutils version to 2.31 branch.
11720
11721 2018-07-20 Zong Li <zong@andestech.com>
11722
11723 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11724 URL of gcc's tarball.
11725
11726 2018-07-20 Florian Weimer <fweimer@redhat.com>
11727
11728 [BZ #23396]
11729 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11730 not compare an extra byte after the end of the weights.
11731
11732 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11733
11734 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11735 to 1.
11736 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11737 hidden prototypes.
11738 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11739 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11740 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11741 list of libraries whose stack executability is expected.
11742 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11743 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11744 variable.
11745 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11746 libc.so libpthread.so.
11747
11748 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11749
11750 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11751 SOCK_NONBLOCK.
11752 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11753 and SOCK_NONBLOCK.
11754 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11755 implement __pipe2.
11756 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11757
11758 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11759
11760 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11761 library to improve command line parsing.
11762 (__main__): make schema file as optional parameter (--schema),
11763 defaulting to benchtests/scripts/benchout.schema.json.
11764 (main): move out of the parsing stuff to __main_  and leave it
11765 only as caller of main comparison functions.
11766
11767 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11768
11769 * NEWS: Add a note for Intel CET status.
11770 * manual/install.texi: Likewise.
11771 * INSTALL: Regenerated.
11772
11773 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11774
11775 [BZ #23140]
11776 * localedata/locales/oc_FR (mon): Rename to...
11777 (alt_mon): This, then update October (typo fix).
11778 (mon): New content (genitive case, month names preceded by
11779 "de" or "d’").
11780
11781 [BZ #23422]
11782 * localedata/locales/oc_FR (abday): Update all items.
11783 (day): Update Wednesday and Saturday (typo fixes).
11784 (abmon): Update all items, except May.
11785 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11786 (LC_IDENTIFICATION): Bump the revision number and date.
11787 Keep the "category" entries in alphabetic order.
11788 (LC_ADDRESS): Remove no longer needed comment.
11789 (LC_COLLATE): Use “copy "ca_ES"”.
11790 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11791 "name_mrs".
11792
11793 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11794
11795 * grp/tst_fgetgrent.c: Include <unistd.h>.
11796 (main): Use mkstemp instead of tmpnam.
11797 * io/test-utime.c (main): Likewise.
11798 * posix/annexc.c (macrofile): Change to modifiable array.
11799 (main): Remove macrofile here.
11800 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11801 macrofile here.
11802 (check_header): Do not remove macrofile here.
11803 * posix/bug-getopt1.c: Include <stdlib.h>.
11804 (do_test): Use mkstemp instead of tmpnam.
11805 * posix/bug-getopt2.c: Include <stdlib.h>.
11806 (do_test): Use mkstemp instead of tmpnam.
11807 * posix/bug-getopt3.c: Include <stdlib.h>.
11808 (do_test): Use mkstemp instead of tmpnam.
11809 * posix/bug-getopt4.c: Include <stdlib.h>.
11810 (do_test): Use mkstemp instead of tmpnam.
11811 * posix/bug-getopt5.c: Include <stdlib.h>.
11812 (do_test): Use mkstemp instead of tmpnam.
11813 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11814 (main): Use mkstemp instead of tmpnam.
11815 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11816 (main): Use mkstemp instead of tmpnam.
11817 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11818 (main): use mkstemp instead of tmpnam.
11819 * stdlib/isomac.c (macrofile): Change to modifiable array.
11820 (main): Remove macrofile here.
11821 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11822 macrofile here.
11823 (check_header): Do not remove macrofile here.
11824
11825 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11826
11827 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11828 glibc.tune.x86_shstk.
11829
11830 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11831
11832 * NEWS: Mention --enable-cet.
11833 * manual/install.texi: Document --enable-cet.
11834 * INSTALL: Regenerated.
11835
11836 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11837
11838 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11839 Add _CET_NOTRACK before indirect jump to jump table.
11840
11841 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11842
11843 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11844 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11845 to jump table.
11846
11847 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11848
11849 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11850 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11851 to jump table.
11852
11853 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11854
11855 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11856 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11857 to jump table.
11858
11859 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11860
11861 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11862 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11863 to jump table.
11864
11865 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11866
11867 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11868 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11869 to jump table.
11870 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11871
11872 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11873
11874 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11875 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11876 to jump table.
11877
11878 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11879
11880 * sysdeps/i386/i686/multiarch/memset-sse2.S
11881 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11882 to jump table.
11883
11884 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11885
11886 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11887 indirect jump to jump table.
11888
11889 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11890
11891 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11892 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11893 to jump table.
11894 (MEMCPY): Likewise.
11895
11896 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11897
11898 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11899 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11900 to jump table.
11901 (MEMCPY): Likewise.
11902
11903 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11904
11905 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11906 _CET_NOTRACK before indirect jump to jump table.
11907
11908 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11909
11910 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11911 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11912 to jump table.
11913
11914 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11915
11916 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11917 indirect jump to jump table.
11918
11919 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11920
11921 [BZ #22241]
11922 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11923 (LOCALES): Likewise.
11924 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11925 * localedata/locales/sah_RU: New file.
11926 * localedata/sah_RU.UTF-8.in: New file.
11927
11928 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11929
11930 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11931 "sysdep.h".
11932 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11933 _CET_ENDBR to indirect jump targets and adjust jump destination
11934 for _CET_ENDBR.
11935 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11936 "sysdep.h".
11937 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11938 _CET_ENDBR to indirect jump targets and adjust jump destination
11939 for _CET_ENDBR.
11940 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11941 "sysdep.h".
11942 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11943 _CET_ENDBR to indirect jump targets and adjust jump destination
11944 for _CET_ENDBR.
11945
11946 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11947
11948 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11949 _CET_ENDBR.
11950
11951 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11952
11953 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11954 _CET_ENDBR.
11955 (_dl_tlsdesc_undefweak): Likewise.
11956 (_dl_tlsdesc_dynamic): Likewise.
11957 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11958 (_dl_tlsdesc_resolve_rel): Likewise.
11959 (_dl_tlsdesc_resolve_rela): Likewise.
11960 (_dl_tlsdesc_resolve_hold): Likewise.
11961 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11962 (_dl_tlsdesc_undefweak): Likewise.
11963 (_dl_tlsdesc_dynamic): Likewise.
11964 (_dl_tlsdesc_resolve_rela): Likewise.
11965 (_dl_tlsdesc_resolve_hold): Likewise.
11966
11967 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11968
11969 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11970 (_fini): Likewise.
11971 * sysdeps/x86_64/crti.S (_init): Likewise.
11972 (_fini): Likewise.
11973
11974 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11975
11976 [BZ #23140]
11977 * localedata/locales/os_RU (mon): Rename to...
11978 (alt_mon): This.
11979 (mon): Import from CLDR (genitive case).
11980
11981 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11982
11983 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11984 cet-tunables.h> when CET is enabled.
11985
11986 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11987
11988 [BZ #21598]
11989 * configure.ac: Add --enable-cet.
11990 * configure: Regenerated.
11991 * elf/Makefille (all-built-dso): Add a comment.
11992 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11993 Include <dl-prop.h>.
11994 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11995 segment.
11996 * elf/dl-open.c: Include <dl-prop.h>.
11997 (dl_open_worker): Call _dl_open_check.
11998 * elf/rtld.c: Include <dl-prop.h>.
11999 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
12000 _rtld_main_check.
12001 * sysdeps/generic/dl-prop.h: New file.
12002 * sysdeps/i386/dl-cet.c: Likewise.
12003 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
12004 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
12005 * sysdeps/x86/cet-tunables.h: Likewise.
12006 * sysdeps/x86/check-cet.awk: Likewise.
12007 * sysdeps/x86/configure: Likewise.
12008 * sysdeps/x86/configure.ac: Likewise.
12009 * sysdeps/x86/dl-cet.c: Likewise.
12010 * sysdeps/x86/dl-procruntime.c: Likewise.
12011 * sysdeps/x86/dl-prop.h: Likewise.
12012 * sysdeps/x86/libc-start.h: Likewise.
12013 * sysdeps/x86/link_map.h: Likewise.
12014 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
12015 _CET_ENDBR.
12016 (_dl_runtime_profile): Likewise.
12017 (_dl_runtime_resolve_shstk): New.
12018 (_dl_runtime_profile_shstk): Likewise.
12019 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
12020 if CET is enabled.
12021 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
12022 (CFLAGS-.os): Likewise.
12023 (CFLAGS-.op): Likewise.
12024 (CFLAGS-.oS): Likewise.
12025 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
12026 is enabled.
12027 (tests-special): Add $(objpfx)check-cet.out.
12028 (cet-built-dso): New.
12029 (+$(cet-built-dso:=.note)): Likewise.
12030 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
12031 ($(objpfx)check-cet.out): New.
12032 (generated): Add check-cet.out.
12033 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
12034 <cet-tunables.h>.
12035 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
12036 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12037 (init_cpu_features): Call get_cet_status to check CET status
12038 and update dl_x86_feature_1 with CET status. Call
12039 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
12040 (set_x86_shstk). Disable and lock CET in libc.a.
12041 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
12042 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
12043 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
12044 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
12045 (_CET_ENDBR): Define if not defined.
12046 (ENTRY): Add _CET_ENDBR.
12047 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
12048 x86_shstk.
12049 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
12050 _CET_ENDBR.
12051 (_dl_runtime_profile): Likewise.
12052
12053 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
12054
12055 [BZ #21895]
12056 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
12057 restore r2 on longjmp.
12058 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
12059 test list.
12060 Added rules to build test tst-setjmp-bug21895-static.
12061 Added module setjmp-bug21895 and rules to build a shared object from it.
12062 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
12063 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
12064
12065 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
12066
12067 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
12068 * benchtests/bench-strstr.c: Likewise.
12069 * string/memmem.c (FASTSEARCH): Define.
12070 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
12071 Add support for FASTSEARCH.
12072 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
12073 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
12074 (FASTSEARCH): Define.
12075 * string/test-strcasestr.c: Rename __strnlen to strnlen.
12076 * string/test-strstr.c: Likewise.
12077
12078 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
12079
12080 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12081 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12082
12083 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12084 H.J. Lu <hongjiu.lu@intel.com>
12085
12086 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12087 (__longjmp): Restore shadow stack pointer if shadow stack is
12088 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12089 isn't defined for __longjmp_cancel.
12090 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12091 (_setjmp): Save shadow stack pointer if shadow stack is enabled
12092 and SHADOW_STACK_POINTER_OFFSET is defined.
12093 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12094 (setjmp): Save shadow stack pointer if shadow stack is enabled
12095 and SHADOW_STACK_POINTER_OFFSET is defined.
12096 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12097 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12098 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12099 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12100 <jmp_buf-ssp.h>.
12101 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12102 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12103 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12104 Remove jmp_buf-ssp.sym.
12105 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12106 <jmp_buf-ssp.h>.
12107 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12108 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12109 * sysdeps/x86/Makefile (gen-as-const-headers): Add
12110 jmp_buf-ssp.sym.
12111 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12112 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12113 (__longjmp): Restore shadow stack pointer if shadow stack is
12114 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12115 isn't defined for __longjmp_cancel.
12116 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12117 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12118 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12119
12120 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
12121
12122 [BZ #22563]
12123 * nptl/pthread_create.c: Include <tls-setup.h>.
12124 (__pthread_create_2_1): Call tls_setup_tcbhead.
12125 * sysdeps/generic/tls-setup.h: New file.
12126 * sysdeps/x86/nptl/tls-setup.h: Likewise.
12127 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12128 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12129 Likewise.
12130 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12131 to feature_1.
12132 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12133 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12134 (X86_FEATURE_1_SHSTK): Likewise.
12135 (CET_ENABLED): Likewise.
12136 (IBT_ENABLED): Likewise.
12137 (SHSTK_ENABLED): Likewise.
12138
12139 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
12140
12141 [BZ #23208]
12142 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12143 (LOCALES): Likewise.
12144 * localedata/dsb_DE.UTF-8.in: New file.
12145 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12146
12147 2018-07-12 Florian Weimer <fweimer@redhat.com>
12148
12149 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12150 __mprotect, not mprotect.
12151
12152 2018-07-11 Florian Weimer <fweimer@redhat.com>
12153
12154 * io/Makefile (headers): Add bits/statx.h.
12155
12156 2018-07-10 Mike FABIAN <mfabian@redhat.com>
12157
12158 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12159 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12160 and headers.
12161 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12162 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12163 for utf8_gen.py
12164
12165 2018-07-10 Florian Weimer <fweimer@redhat.com>
12166
12167 * io/Makefile (routines): Add statx.
12168 (tests-internal): Add tst-statx.
12169 * io/Versions (GLIBC_2.28): Export statx.
12170 * io/bits/statx.h: New file.
12171 * io/sys/stat.h [__USE_GNU]: Include it.
12172 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12173 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12174 Define.
12175 * io/statx.c: New file.
12176 * io/statx_generic.: Likewise.
12177 * io/tst-statx.: Likewise.
12178 * include/bits/statx.h: Likewise.
12179 * sysdeps/unix/sysv/linux/kernel-features.h
12180 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12181 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12182 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12183 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12184 Undefine.
12185 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12186 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12187 * sysdeps/unix/sysv/linux/statx.c: New file.
12188 * manual/filesys.texi: Note that statx is undocumented.
12189 * sysdeps/**/libc*.abilist: Update.
12190
12191 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12192
12193 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12194 a kernel issue which lead to test failure in some cases.
12195
12196 2018-07-10 Florian Weimer <fweimer@redhat.com>
12197
12198 [BZ #23036]
12199 * posix/regexec.c (check_node_accept_bytes): When comparing
12200 weights, do not compare an extra byte after the end of the
12201 weights.
12202
12203 2018-07-10 Florian Weimer <fweimer@redhat.com>
12204
12205 * libio/readline.c: Fix copyright year.
12206 * libio/tst-readline.c Likewise.
12207 * nss/tst-nss-files-hosts-getent.c: Likewise.
12208
12209 2018-07-06 Florian Weimer <fweimer@redhat.com>
12210
12211 [BZ #18991]
12212 * nss/nss_files/files-XXX.c (internal_getent): Use
12213 __libc_readline_unlocked. Seek back to the start of the line if
12214 parsing failes with ERANGE.
12215 (get_contents_ret, get_contents): Remove.
12216 * nss/tst-nss-files-hosts-getent.c: New file.
12217 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12218 (tst-nss-files-hosts-getent): Link with -ldl.
12219
12220 2018-07-06 Florian Weimer <fweimer@redhat.com>
12221
12222 * include/stdio.h (__libc_readline_unlocked): Declare.
12223 (__ftello64, __fseeko64): Declare aliases.
12224 * libio/readline.c: New file.
12225 * libio/tst-readline.c: Likewise.
12226 (routines): Add readline.
12227 (tests-internal): Add tst-readlime.
12228 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12229 __libc_readline_unlocked.
12230 * libio/fseeko.c (__fseeko): Rename from fseeko.
12231 (fseeko): Add alias.
12232 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12233 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12234 (fseeko64): Add alias.
12235 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12236 * libio/ftello64.c (__ftello64): Rename from ftello64.
12237 (ftello64): Add alias.
12238
12239 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12240
12241 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12242 HWCAP_ATOMICS.
12243
12244 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12245
12246 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12247 Use dl_hwcap without masking.
12248 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12249 Remove HWCAP_CPUID.
12250
12251 2018-07-06 Florian Weimer <fweimer@redhat.com>
12252
12253 * conform/conformtest.pl (checknamespace): Escape literal braces
12254 in regular expressions.
12255
12256 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12257
12258 * sysdeps/x86/cpu-features.c (get_common_indeces):
12259 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12260 * sysdeps/x86/cpu-features.c (init_cpu_features):
12261 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12262
12263 2018-07-05 Florian Weimer <fweimer@redhat.com>
12264
12265 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12266 protector.
12267 (CFLAGS-elf-init.oS): Likewise.
12268
12269 2018-07-05 Florian Weimer <fweimer@redhat.com>
12270 Carlos O'Donell <carlos@redhat.com>
12271
12272 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12273 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12274 with stack protector enabled because there is no risk of infinite
12275 recursion.
12276
12277 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12278
12279 [BZ #19818]
12280 [BZ #23307]
12281 * libc-abis (ABSOLUTE): New ABI.
12282 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12283 * NEWS: Mention the new ABI.
12284
12285 2018-07-05 Florian Weimer <fweimer@redhat.com>
12286
12287 [BZ # 17662]
12288 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12289 (RENAME_WHITEOUT): Define.
12290 [__USE_GNU] (renameat2): Declare.
12291 * stdio-common/Makefile (routines): Add renameat2.
12292 (tests): Add tst-renameat2.
12293 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12294 * stdio-common/renameat2.c: New file.
12295 * stdio-common/tst-renameat2.c: Likewise.
12296 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12297 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12298 undocumented.
12299 * sysdeps/unix/sysv/linux/kernel-features.h
12300 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12301 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12302 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12303 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12304 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12305 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12306 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12307 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12308 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12309 * include/stdio.h (__renameat): Add alias for renameat.
12310 * stdio-common/renameat.c (__renameat): Rename from renameat.
12311 Add hidden definition and alias.
12312 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12313 * sysdeps/mach/hurd/renameat.c: Likewise.
12314 * sysdeps/**/libc*.abilist: Add renameat2.
12315
12316 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12317
12318 * posix/bug-regex33.c: Fix build after regex sync.
12319
12320 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12321
12322 [BZ #23164]
12323 * localedata/tst-langinfo-setlocale.c: New file.
12324 * localedata/tst-langinfo-setlocale-static.c: New file.
12325 * localedata/tst-langinfo-newlocale.c: New file.
12326 * localedata/tst-langinfo-newlocale-static.c: New file.
12327 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12328 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12329 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12330 (tests-static): Remove tst-langinfo-static. Add
12331 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12332 (tests-special): Remove $(objpfx)tst-langinfo.out,
12333 $(objpfx)tst-langinfo-static.out. Add
12334 $(objpfx)tst-langinfo-setlocale.out,
12335 $(objpfx)tst-langinfo-newlocale.out,
12336 $(objpfx)tst-langinfo-setlocale-static.out,
12337 $(objpfx)tst-langinfo-newlocale-static.out.
12338 ($(objpfx)tst-langinfo.out): Remove.
12339 ($(objpfx)tst-langinfo-static.out): Remove.
12340 ($(objpfx)tst-langinfo-newlocale.out): New target.
12341 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12342 (test-xfail-tst-langinfo-newlocale-static): Add.
12343 ($(objpfx)tst-langinfo-setlocale.out): New target.
12344 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12345 * localedata/tst-langinfo.c: Call test_locale.
12346 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12347 data.
12348
12349 2018-07-04 Florian Weimer <fweimer@redhat.com>
12350
12351 testrun.sh: Implement --tool=strace, --tool=valgrind
12352 * Makefile (testrun-script): Define variable.
12353 (testrun.sh): Use variable.
12354 * manual/install.texi (Tools for Compilation): make 4.0 or later
12355 is required.
12356 * configure.ac: Check for make 4.0 or later.
12357 * INSTALL: Regenerate.
12358 * configure: Likewise.
12359
12360 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12361
12362 [BZ #23233]
12363 [BZ #21163]
12364 [BZ #18986]
12365 [BZ #13762]
12366 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12367 * posix/PCRE.tests: Remove invalid test.
12368 * posix/bug-regex28.c: Fix expected values for used syntax.
12369 * posix/bug-regex37.c: New file.
12370 * posix/bug-regex38.c: Likewise.
12371 * posix/regcomp.c: Sync with gnulib.
12372 * posix/regex.c: Likewise.
12373 * posix/regex.h: Likewise.
12374 * posix/regex_internal.c: Likewise.
12375 * posix/regex_internal.h: Likewise.
12376 * posix/regexec.c: Likewise.
12377
12378 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12379
12380 [BZ #23308]
12381 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12382 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12383 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12384 * localedata/unicode-gen/PropList.txt: likewise.
12385 * localedata/unicode-gen/UnicodeData.txt: likewise.
12386 * localedata/charmaps/UTF-8: Regenerate.
12387 * localedata/locales/i18n_ctype: likewise.
12388 * localedata/locales/tr_TR: likewise.
12389 * localedata/locales/translit_circle: likewise.
12390 * localedata/locales/translit_cjk_compat: likewise.
12391 * localedata/locales/translit_combining: likewise.
12392 * localedata/locales/translit_compat: likewise.
12393 * localedata/locales/translit_font: likewise.
12394 * localedata/locales/translit_fraction: likewise.
12395
12396 2018-07-03 Florian Weimer <fweimer@redhat.com>
12397
12398 [BZ #23363]
12399 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12400 * stdio-common/tst-printf.sh: Adjust expected output.
12401 * LICENSES: Update.
12402
12403 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12404
12405 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12406 symbol.
12407
12408 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12409
12410 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12411 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12412 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12413 * stdio-common/tst-printfsz-islongdouble.c: New file.
12414 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12415 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12416 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12417 [subdir == stdio-common] (tests-internal): Add
12418 test-printf-size-ieee128, and test-printf-size-ibm128.
12419 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12420 (CFLAGS-test-printf-size-ibm128.c): New variables.
12421 [subdir == stdio-common] (tests-special): Add
12422 $(objpfx)test-printf-size-ieee128.out and
12423 $(objpfx)test-printf-size-ibm128.out.
12424 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12425 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12426 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12427 __printf_sizeieee128.
12428 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12429 New file.
12430 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12431 Likewise.
12432 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12433 Likewise.
12434
12435 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12436
12437 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12438 (exp2f_inline): Likewise.
12439 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12440 (__math_uflowf): Likewise.
12441 (__math_may_uflowf): Likewise.
12442 (__math_divzerof): Likewise.
12443 (__math_invalidf): Likewise.
12444 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12445 (__math_oflowf): Likewise.
12446 (__math_uflowf): Likewise.
12447 (__math_may_uflowf): Likewise.
12448 (__math_divzerof): Likewise.
12449 (__math_invalidf): Likewise.
12450
12451 2018-06-29 DJ Delorie <dj@redhat.com>
12452 Carlos O'Donell <carlos@redhat.com>
12453
12454 [BZ #23329]
12455 * include/libc-symbols.h: Comment the freeres framework.
12456 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12457 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12458 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12459 * dlfcn/dlerror.c: Include libc-symbols.h
12460 (__dlerror_main_freeres): New function.
12461 * dlfcn/dlfreeres.c: New file.
12462 * dlfcn/sdlfreeres.c: New file.
12463 * include/dlfcn.h: Declare __dlerror_main_freeres.
12464 * malloc/set-freeres.c: Declare __libdl_freeres, and
12465 __libpthread_freeres.
12466 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12467 the releavant libraries are loaded.
12468 * malloc/thread-freeres.c: Add comments.
12469 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12470 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12471 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12472 (__free_stacks): Rename to...
12473 (free_stacks): ...this. Mark static.
12474 (queue_stack): Call free_stacks.
12475 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12476 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12477 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12478 ptr_freeres element from struct.
12479 (pthread_functions): Remove .ptr_freeres from struct initializer.
12480 [SHARED] (nptl_freeres): Remove.
12481 * nptl/nptlfreeres.c: New file.
12482 * nptl/pthreadP.h
12483 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12484 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12485 attribute_hidden.
12486 (__free_stacks): Rename to...
12487 (__nptl_stacks_freeres): ...this.
12488 (__shm_directory_freeres): Declare.
12489 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12490 (__nptl_unwind_freeres): ...this.
12491 * resolv/res-close.c: Add comment.
12492 * resolv/resolv_conf.c: Include libc-symbols.h.
12493 * string/strerror_l.c: Include libc-symbols.h.
12494 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12495 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12496 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12497 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12498
12499 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12500
12501 * stdlib/tst-strfmon_l.c: Add tests for long double.
12502
12503 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12504
12505 [BZ #23208]
12506 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12507 * localedata/locales/dsb_DE: New file.
12508
12509 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12510
12511 [BZ #23140]
12512 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12513 genitive case).
12514 (alt_mon): New entry, import from CLDR (nominative case).
12515
12516 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12517
12518 [BZ #22996]
12519 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12520
12521 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12522
12523 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12524 Use vector registers.
12525
12526 * sysdeps/aarch64/multiarch/memmove_falkor.S
12527 (__memcpy_falkor): Use vector registers.
12528
12529 2018-06-29 Martin Sebor <msebor@redhat.com>
12530
12531 * manual/stdio.texi (Customizing Printf): Mention interaction
12532 with GCC built-ins.
12533
12534 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12535
12536 [BZ #23307]
12537 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12538 `st_value' is 0 if `st_shndx' is SHN_ABS.
12539 * elf/tst-absolute-zero.c: New file.
12540 * elf/tst-absolute-zero-lib.c: New file.
12541 * elf/tst-absolute-zero-lib.lds: New file.
12542 * elf/Makefile (tests): Add `tst-absolute-zero'.
12543 (modules-names): Add `tst-absolute-zero-lib'.
12544 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12545 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12546 ($(objpfx)tst-absolute-zero: New dependency.
12547
12548 2018-06-29 Zack Weinberg <zackw@panix.com>
12549
12550 * configure.ac: New command-line option --disable-crypt.
12551 Force --disable-nss-crypt when --disable-crypt is given, with a
12552 warning if it was explicitly enabled.
12553 * configure: Regenerate.
12554 * config.make.in: New boolean substitution variable $(build-crypt).
12555 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12556 when $(build-crypt).
12557 * manual/install.texi: Document --disable-crypt.
12558 * INSTALL: Regenerate.
12559
12560 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12561 which is never set.
12562 * conform/Makefile: Only include libcrypt.a in
12563 linknamespace-libs-xsi and linknamespace-libs-XPG4
12564 when $(build-crypt).
12565 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12566 USE_CRYPT to 1 when $(build-crypt).
12567 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12568 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12569 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12570
12571 2018-06-29 Zack Weinberg <zackw@panix.com>
12572
12573 * crypt/crypt.h, posix/unistd.h: Update comments and
12574 prototypes for crypt and crypt_r.
12575
12576 * manual/crypt.texi (Cryptographic Functions): New initial
12577 exposition.
12578 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12579 (Unpredictable Bytes): Improve initial exposition. Clarify error
12580 behavior of getentropy and getrandom.
12581 * manual/examples/genpass.c: Generate a salt using getentropy
12582 instead of the current time. Use hash $5$ (SHA-2-256).
12583 * manual/examples/testpass.c: Demonstrate validation against
12584 hashes generated with three different one-way functions.
12585
12586 * manual/intro.texi: crypt.texi does not need an overview
12587 anymore.
12588
12589 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12590 * manual/terminal.texi: Consistently refer to "passphrases"
12591 * instead of "passwords", and to the "user database" instead
12592 * of the "password database".
12593 * manual/users.texi: Similarly. Add notes about how actual
12594 passphrase hashes are now stored in the shadow database.
12595 Remove 20-year-old junk todo note.
12596
12597 2018-06-29 Zack Weinberg <zackw@panix.com>
12598
12599 * manual/crypt.texi: Use a normal top-level @node declaration.
12600 Move most of the introductory text to the 'crypt' section.
12601 Move the example programs below the @deftypefun for 'crypt_r'.
12602 Move the 'getpass' section...
12603 * manual/terminal.texi: ...here.
12604
12605 2018-06-29 Zack Weinberg <zackw@panix.com>
12606 Florian Weimer <fweimer@redhat.com>
12607
12608 * posix/unistd.h: Do not declare encrypt.
12609 (_XOPEN_CRYPT): Remove macro definition.
12610 (crypt): Declare only for _USE_MISC.
12611 * stdlib/stdlib.h: Do not declare setkey.
12612 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12613 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12614
12615 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12616 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12617 into compat symbols. Don't define initial_perm if it's not
12618 going to be used.
12619 * crypt/cert.c: Link explicitly with the expected versions for
12620 setkey and encrypt. If they are not available at all, mark
12621 the test as unsupported.
12622
12623 * sunrpc/des_crypt.c: Unconditionally block linkage with
12624 cbc_crypt and ecb_crypt for new binaries.
12625 * sunrpc/des_soft.c: Unconditionally block linkage with
12626 des_setparity for new binaries.
12627
12628 * manual/crypt.texi: Remove the entire "DES Encryption"
12629 section. Also remove the paragraph talking about FIPS 140-2
12630 from the introduction.
12631 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12632 of libgcrypt for "real" encryption, not DES.
12633 * manual/conf.texi (Constants for Sysconf): Mention that
12634 _XOPEN_CRYPT is no longer impelemented.
12635
12636 * conform/data/unistd.h-data: Remove crypt function declaration.
12637
12638 2018-06-29 Florian Weimer <fweimer@redhat.com>
12639
12640 [BZ #23351]
12641 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12642 (disallow_malloc_check): Remove variable.
12643 (__malloc_check_init): Adjust.
12644 (malloc_set_state): Update comment.
12645 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12646 declarations.
12647
12648 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12649
12650 [BZ #23140]
12651 * localedata/locales/ast_ES (mon): Rename to...
12652 (alt_mon): This.
12653 (mon): Import from CLDR (genitive case).
12654
12655 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12656 Jakub Sitnicki <jkbs@redhat.com>
12657
12658 [BZ #21812]
12659 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12660 on NLM_F_DUMP_INTR.
12661
12662 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12663
12664 * manual/llio.texi: Remove spurious space.
12665
12666 2018-06-28 Florian Weimer <fweimer@redhat.com>
12667
12668 [BZ #23349]
12669 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12670 _STRUCT_TIMESPEC.
12671
12672 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12673
12674 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12675 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12676 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12677 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12678 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12679 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12680 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12681
12682 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12683
12684 [BZ #23266]
12685 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12686 Copy and null-terminate entries that are not terminated, in
12687 addition to empty ones.
12688
12689 2018-06-27 Florian Weimer <fweimer@redhat.com>
12690
12691 [BZ #18023]
12692 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12693 (extend_alloca_account): Remove.
12694 * manual/stdio.texi (Variable Arguments Output): Update comment.
12695
12696 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12697
12698 * nptl/sockperf.c: Remove file.
12699
12700 2018-06-27 Florian Weimer <fweimer@redhat.com>
12701
12702 [BZ #18023]
12703 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12704 scratch_buffer instead of extend_alloca.
12705
12706 2018-06-27 Florian Weimer <fweimer@redhat.com>
12707
12708 [BZ #18023]
12709 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12710 scratch_buffer instead of extend_alloca. Update comments.
12711
12712 2018-06-27 Florian Weimer <fweimer@redhat.com>
12713
12714 [BZ #18023]
12715 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12716 instead of extend_alloca.
12717
12718 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12719
12720 [BZ #13888]
12721 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12722 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12723 /tmp.
12724 * scripts/test-installation.pl: Put temporary files in build
12725 directory, not /tmp.
12726 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12727 (CFLAGS-bug4.c): Likewise.
12728 (CFLAGS-bug5.c): Likewise.
12729 (CFLAGS-test-fseek.c): Likewise.
12730 (CFLAGS-test-popen.c): Likewise.
12731 (CFLAGS-test_rdwr.c): Likewise.
12732 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12733 /tmp.
12734 * stdio-common/bug4.c (main): Likewise.
12735 * stdio-common/bug5.c (main): Likewise.
12736 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12737 * stdio-common/test-popen.c (do_test): Likewise.
12738 * stdio-common/test_rdwr.c (main): Likewise.
12739
12740 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12741
12742 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12743 (sem_open): Set sem.newsem.pad to zero for valgrind.
12744
12745 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12746
12747 [BZ #20251]
12748 * NEWS: Mention fcntl64 addition.
12749 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12750 * login/utmp_file.c: Likewise.
12751 * sysdeps/posix/fdopendir.c: Likewise.
12752 * sysdeps/posix/opendir.c: Likewise.
12753 * sysdeps/unix/pt-fcntl.c: Likewise.
12754 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12755 __fcntl64_nocancel_adjusted): New prototype.
12756 (__fcntl_nocancel_adjusted): Remove prototype.
12757 * io/Makefile (routines): Add fcntl64.
12758 (CFLAGS-fcntl64.c): New rule.
12759 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12760 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12761 * io/fcntl.h (fcntl64): Add prototype and redirect if
12762 __USE_FILE_OFFSET64 is defined.
12763 * io/fcntl64.c: New file.
12764 * manual/llio.text: Add a note for which commands fcntl acts a
12765 cancellation point.
12766 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12767 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12768 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12769 New symbols.
12770 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12771 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12772 non-LFS case.
12773 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12774 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12775 to __fcntl64_nocancel.
12776 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12777 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12778 to __fcntl64_nocancel.
12779 * sysdeps/generic/not-cancel.h: Likewise.
12780 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12781 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12782 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12783 (fcntl64): New symbol.
12784 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12785 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12786 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12787 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12789 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12790 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12791 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12792 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12793 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12794 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12795 fcntl64): Likewise.
12796 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12797 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12798 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12799 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12800 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12801 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12802 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12804 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12805 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12806 Likewise.
12807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12808 Likewise.
12809 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12810 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12811 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12812
12813 2018-06-26 Florian Weimer <fweimer@redhat.com>
12814
12815 Run thread shutdown functions in an explicit order.
12816 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12817 definition.
12818 (__libc_thread_freeres): Call thread shutdown functions
12819 explicitly.
12820 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12821 * include/string.h (__strerror_thread_freeres): Declare.
12822 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12823 arena_thread_freeres. No longer static. Remove thread shutdown
12824 hook registration.
12825 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12826 Declare.
12827 * resolv/res-close.c (__res_thread_freeres): Renamed from
12828 res_thread_freeres. No longer static. Remove thread shutdown
12829 hook registration.
12830 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12831 * resolv/resolv_conf.c (freeres): Remove incorrect section
12832 attribute and use libc_freeres_fn.
12833 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12834 strerror_thread_freeres. No longer static. Remove thread
12835 shutdown hook registration.
12836 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12837 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12838 shutdown hook registration.
12839 * Makerules (shlib.lds): Do not provide section boundary symbols
12840 for __libc_thread_subfreeres.
12841 * manual/memory.texi (Basic Allocation): Update comment.
12842
12843 2018-06-26 Florian Weimer <fweimer@redhat.com>
12844
12845 Remove always-defined _RPC_THREAD_SAFE_ macro.
12846 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12847 Do not define _RPC_THREAD_SAFE_.
12848 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12849 conditional.
12850 * sunrpc/clnt_perr.c: Likewise.
12851 * sunrpc/clnt_raw.c: Likewise.
12852 * sunrpc/clnt_simp.c: Likewise.
12853 * sunrpc/key_call.c: Likewise.
12854 * sunrpc/rpc_common.c: Likewise.
12855 * sunrpc/rpc_main.c: Likewise.
12856 * sunrpc/rpc_thread.c: Likewise.
12857 * sunrpc/svc.c: Likewise.
12858 * sunrpc/svc_raw.c: Likewise.
12859 * sunrpc/svc_simple.c: Likewise.
12860 * sumrpc/svcauth_des.c: Likewise.
12861
12862 2018-06-26 Florian Weimer <fweimer@redhat.com>
12863
12864 * libio/Makefile (tests-internal): Add tst-vtables,
12865 tst-vtables-interposed.
12866 * libio/tst-vtables.c: New file.
12867 * libio/tst-vtables-common.c: Likewise.
12868 * libio/tst-vtables-interposed.c: Likewise.
12869
12870 2018-06-26 Florian Weimer <fweimer@redhat.com>
12871
12872 * support/support_test_main.c (support_test_main): Only call
12873 setvbuf if not disables.
12874 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12875 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12876
12877 2018-06-26 Florian Weimer <fweimer@redhat.com>
12878
12879 [BZ #23313]
12880 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12881
12882 2018-06-25 Florian Weimer <fweimer@redhat.com>
12883
12884 [BZ #18023]
12885 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12886 Use struct scratch_buffer instead of extend_alloca.
12887
12888 2018-06-25 Florian Weimer <fweimer@redhat.com>
12889
12890 [BZ #18023]
12891 * nss/getent.c (initgroups_keys): Use dynarray instead of
12892 extend_alloca.
12893
12894 2018-06-25 Florian Weimer <fweimer@redhat.com>
12895
12896 [BZ #18023]
12897 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12898 Use struct scratch_buffer instead of extend_alloca.
12899
12900 2018-06-25 Florian Weimer <fweimer@redhat.com>
12901
12902 [BZ #18023]
12903 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12904 back to malloc directly, without stack allocations.
12905
12906 2018-06-25 Florian Weimer <fweimer@redhat.com>
12907
12908 [BZ #18023]
12909 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12910 of extend_alloca.
12911
12912 2018-06-25 Florian Weimer <fweimer@redhat.com>
12913
12914 [BZ #18023]
12915 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12916 of extend_alloca.
12917 * nscd/hstcache.c (addhstbyX): Likewise.
12918 * nscd/pwdcache.c (addpwbyX): Likewise.
12919 * nscd/servicescache.c (addservbyX): Likewise.
12920
12921 2018-06-25 Florian Weimer <fweimer@redhat.com>
12922
12923 [BZ #18023]
12924 * nscd/connections.c (read_cmdline): New function.
12925 (restart): Use it. Update comment.
12926
12927 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12928
12929 [BZ #23140]
12930 * localedata/locales/csb_PL (mon): Rename to...
12931 (alt_mon): This.
12932 (abmon): Rename to...
12933 (ab_alt_mon): This.
12934 (mon): Add with proper genitive forms, copy from Wikipedia.
12935 (abmon): Likewise.
12936
12937 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12938
12939 [BZ #19485]
12940 * localedata/locales/csb_PL (mon): Fix typos:
12941 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12942 (yesstr): Add, value is "jo".
12943 (nostr): Add, value is "nié".
12944
12945 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12946
12947 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12948 all log1p and significand functions on m680x0.
12949 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12950 of s_significand.c..
12951 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12952 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12953 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12954 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12955 s_log1p.c and include it..
12956
12957 2018-06-21 Vincent Chen <vincentc@andestech.com>
12958
12959 * elf/elf.h (R_NDS32_NONE): New define.
12960 (R_NDS32_32_RELA): Likewise.
12961 (R_NDS32_COPY): Likewise.
12962 (R_NDS32_GLOB_DAT): Likewise.
12963 (R_NDS32_JUMP_SLOT): Likewise.
12964 (R_NDS32_RELATIVE): Likewise.
12965 (R_NDS32_TLS_TPOFF): Likewise.
12966 (R_NDS32_TLS_DESC): Likewise.
12967
12968 2018-06-21 Mark Wielaard <mark@klomp.org>
12969
12970 * elf/elf.h (R_BPF_MAP_FD): Removed.
12971 (R_BPF_64_64, R_BPF_64_32): New.
12972
12973 2018-06-21 Florian Weimer <fweimer@redhat.com>
12974
12975 [BZ #23253]
12976 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12977 Renamed from libc_feholdsetround_ctx.
12978 (default_libc_feresetround_ctx): Renamed from
12979 libc_feresetround_ctx.
12980 (default_libc_feholdsetround_noex_ctx): Renamed from
12981 libc_feholdsetround_noex_ctx.
12982 (default_libc_feresetround_noex_ctx): Renamed from
12983 libc_feresetround_noex_ctx.
12984 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12985 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12986 forwardning to the old implementations under the new names.
12987 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12988 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12989 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12990 (libc_feresetround_ctx): Forward to default implements for i386
12991 and MATH_SET_BOTH_ROUNDING_MODES.
12992 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12993 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12994
12995 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12996
12997 * string/tst-cmp.c: Include <libc-diag.h>.
12998 (strncmp_max): Disable -Wstringop-overflow= around call to
12999 strncmp.
13000 (strncasecmp_max): Disable -Wstringop-overflow= around call to
13001 strncasecmp.
13002
13003 * string/bug-strpbrk1.c: Include <libc-diag.h>.
13004 (main): Disable -Wunused-value around call to strpbrk.
13005 * string/bug-strspn1.c: Include <libc-diag.h>.
13006 (main): Disable -Wunused-value around call to strspn.
13007
13008 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13009 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13010
13011 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
13012 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
13013
13014 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13015
13016 * math/Makefile (libm-calls): Move s_significandF to...
13017 (gen-libm-calls): ... here.
13018 * math/s_significand_template.c: New file.
13019 * math/s_significand.c: Removed.
13020 * math/s_significandf.c: Removed.
13021 * math/s_significandl.c: Removed.
13022 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
13023 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
13024
13025 * math/e_exp2_template.c (declare_mgen_finite_alias,
13026 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
13027 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
13028 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
13029
13030 2018-06-20 Florian Weimer <fweimer@redhat.com>
13031
13032 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
13033
13034 2018-06-19 Joseph Myers <joseph@codesourcery.com>
13035
13036 [BZ #23280]
13037 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
13038 floating-point number to strtod functions rather than possibly
13039 negating result of those functions.
13040 * stdio-common/tst-scanf-round.c: New file.
13041 * stdio-common/Makefile (tests): Add tst-scanf-round.
13042 ($(objpfx)tst-scanf-round): Depend on $(libm).
13043
13044 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13045
13046 * sysdeps/mach/hurd/localplt.data: Move to...
13047 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
13048 R_386_GLOB_DAT like on Linux i386.
13049
13050 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13051
13052 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
13053 (SHM_STAT_ANY): New macro.
13054 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
13055 (SHM_STAT_ANY): Likewise.
13056 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
13057 (SHM_STAT_ANY): Likewise.
13058 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
13059 (SHM_STAT_ANY): Likewise.
13060 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
13061 (SHM_STAT_ANY): Likewise.
13062 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
13063 (SHM_STAT_ANY): Likewise.
13064 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
13065 (SHM_STAT_ANY): Likewise.
13066 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
13067 (SHM_STAT_ANY): Likewise.
13068 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
13069 (SHM_STAT_ANY): Likewise.
13070 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
13071 (SHM_STAT_ANY): Likewise.
13072 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
13073 (SHM_STAT_ANY): Likewise.
13074 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
13075 (SHM_STAT_ANY): Likewise.
13076
13077 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
13078 (SEM_STAT_ANY): New macro.
13079 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
13080 (SEM_STAT_ANY): Likewise.
13081 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13082 (SEM_STAT_ANY): Likewise.
13083 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13084 (SEM_STAT_ANY): Likewise.
13085 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13086 (SEM_STAT_ANY): Likewise.
13087 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13088 (SEM_STAT_ANY): Likewise.
13089 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13090 (SEM_STAT_ANY): Likewise.
13091 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13092 (SEM_STAT_ANY): Likewise.
13093 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13094 (SEM_STAT_ANY): Likewise.
13095 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13096 (SEM_STAT_ANY): Likewise.
13097
13098 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13099 (MSG_STAT_ANY): New macro.
13100 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13101 (MSG_STAT_ANY): Likewise.
13102 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13103 (MSG_STAT_ANY): Likewise.
13104 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13105 (MSG_STAT_ANY): Likewise.
13106 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13107 (MSG_STAT_ANY): Likewise.
13108 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13109 (MSG_STAT_ANY): Likewise.
13110 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13111 (MSG_STAT_ANY): Likewise.
13112 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13113 (MSG_STAT_ANY): Likewise.
13114 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13115 (MSG_STAT_ANY): Likewise.
13116 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13117 (MSG_STAT_ANY): Likewise.
13118
13119 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13120 (MAP_TYPE): Change value to 0x2b.
13121
13122 2018-06-18 Florian Weimer <fweimer@redhat.com>
13123
13124 [BZ #15722]
13125 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13126 socket with SOCK_CLOEXEC.
13127
13128 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13129
13130 [BZ #23303]
13131 * sysdeps/powerpc/powerpc64/le/Makefile
13132 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13133 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13134 (gnulib-tests): Also add $(f128-loader-link) for
13135 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13136
13137 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
13138
13139 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13140 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13141 of sendfile.
13142 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13143 (sendfile64): New strong alias.
13144 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13145 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13146 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13147 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13148 attribute.
13149 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13150 ___pthread_get_cleanup_stack.
13151 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13152 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13153 * mach/shortcut.awk: Make syscall stubs include
13154 <mach-shortcuts-hidden.h> and add hidden definition.
13155 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13156 (__mach_msg): Add hidden prototype.
13157 * mach/msg.c: Include <mach.h>.
13158 (__mach_msg): Add hidden definition.
13159 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13160 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13161 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13162 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13163 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13164 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13165 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13166 prototype and definition.
13167 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13168 hidden target for _hurd_self_sigstate.
13169
13170 2018-06-15 Joseph Myers <joseph@codesourcery.com>
13171
13172 [BZ #23007]
13173 * stdlib/tst-strtod-nan-sign-main.c: New file.
13174 * stdlib/tst-strtod-nan-sign.c: Likewise.
13175 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13176 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13177 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13178 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13179 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13180
13181 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
13182
13183 [BZ #23007]
13184 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13185 appropriate sign.
13186
13187 2018-06-14 Florian Weimer <fweimer@redhat.com>
13188
13189 [BZ #23290]
13190 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13191 that the result stays within the ISO-8859-1 range.
13192 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13193 characters are defined in IBM273.
13194
13195 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13196
13197 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13198 __mach_task_self): Remove attribute_hidden.
13199
13200 2018-06-14 Joseph Myers <joseph@codesourcery.com>
13201
13202 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13203 ignore -Wrestrict for one test.
13204
13205 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
13206 Szabolcs Nagy <szabolcs.nagy@arm.com>
13207
13208 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13209
13210 2018-06-14 Florian Weimer <fweimer@redhat.com>
13211
13212 * scripts/update-abilist.sh: Accept empty list of files to patch.
13213
13214 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13215
13216 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13217 test-xfail-check-abi-libmachuser): Add.
13218 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13219 __libc_read and __libc_write to __read and __write.
13220 * sysdeps/hurd/include/hurd/port.h: New file.
13221 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13222 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13223 __thread_switch, __evc_wait): Move declarations to...
13224 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13225 attribute_hidden.
13226 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13227 use PLT to call _hurd_self_sigstate.
13228
13229 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13230
13231 [BZ #23279]
13232 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13233 MAX_EXP as overflowing.
13234 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13235 overflow flag.
13236 (round_str): Output also whether result overflows in each rounding
13237 mode.
13238 * stdlib/tst-strtod-round-data: Add more tests.
13239 * stdlib/tst-strtod-round-data.h: Regenerated.
13240 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13241 (TEST): Handle extra arguments for overflow flags.
13242 (struct test_overflow): New type.
13243 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13244 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13245 (test_in_one_mode): Take argument with overflow information.
13246 (do_test): Update calls to test_in_one_mode.
13247
13248 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13249
13250 * elf/dl-load (_dl_dst_substitute): Correct comment.
13251 (_dl_dst_count): Likewise.
13252
13253 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13254 lll_futex_timed_wait.
13255
13256 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13257
13258 [BZ #23277]
13259 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13260 attribute.
13261 * math/test-nan-const.c: New file.
13262 * math/Makefile (tests): Add test-nan-const.
13263 (CFLAGS-test-nan-const.c): New variable.
13264
13265 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13266
13267 * benchtests/scripts/compare_strings.py (process_results): Add
13268 funcs argument. Compare only functions which are selected.
13269 (main): Check if base function is among selected functions.
13270 Pass selected functions to process_results.
13271 (__main__): Add -f/--functions argument.
13272
13273 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13274 Hongbo Zhang <hongbo.zhang@linaro.org>
13275
13276 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13277 __memcpy_falkor for phecda core.
13278 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13279 __memmove_falkor for phecda core.
13280 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13281 __memset_falkor for phecda core.
13282 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13283 for phecda core.
13284 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13285 macro to identify phecda core.
13286
13287 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13288 Andreas Schwab <schwab@suse.de>
13289 Dmitry V. Levin <ldv@altlinux.org>
13290 Florian Weimer <fweimer@redhat.com>
13291
13292 [BZ #23102]
13293 [BZ #21942]
13294 [BZ #18018]
13295 [BZ #23259]
13296 CVE-2011-0536
13297 * elf/dl-dst.h: Remove DL_DST_COUNT.
13298 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13299 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13300 (is_dst): Comment. Support ELF gABI.
13301 (_dl_dst_count): Comment. Simplify and count DSTs.
13302 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13303 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13304 locals.
13305
13306 2018-06-12 Zack Weinberg <zackw@panix.com>
13307
13308 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13309 * sysdeps/unix/sysv/linux/dl-sysdep.c
13310 Include not-cancel.h. Use __close_nocancel instead of __close,
13311 __open64_nocancel instead of __open, __read_nocancel instead of
13312 __libc_read, and __write_nocancel instead of __libc_write.
13313
13314 * csu/check_fds.c (check_one_fd)
13315 * sysdeps/posix/fdopendir.c (__fdopendir)
13316 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13317 instead of __fcntl and/or __libc_fcntl.
13318
13319 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13320 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13321 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13322 Use __open64_nocancel instead of __open_nocancel.
13323
13324 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13325 hidden_proto declarations to the end and issue them if either
13326 IS_IN(libc) or IS_IN(rtld).
13327 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13328 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13329 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13330 read_nocancel, waitpid_nocancel, write_nocancel.
13331
13332 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13333 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13334 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13335
13336 * nptl/pt-fcntl.c: New file.
13337 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13338 (libpthread-routines): Add pt-fcntl.
13339 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13340 (__libc_fcntl): Remove attribute_hidden.
13341 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13342 __fcntl_nocancel_adjusted, not fcntl_common.
13343 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13344 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13345 to fcntl_nocancel.c.
13346 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13348 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13349 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13350
13351 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13352 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13353 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13354 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13355 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13356 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13357 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13358 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13359 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13360 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13361 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13362 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13363 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13364 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13365 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13366 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13367 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13368 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13369 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13370 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13371
13372 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13373 libpthread-routines.
13374 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13375 defines nothing.
13376
13377 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13378 __libc_read, and __write instead of __libc_write. Define
13379 __open64 in addition to __open.
13380
13381 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13382
13383 [BZ #23250]
13384 [BZ #10686]
13385 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13386 to _private_tm[3] and add __glibc_reserved2.
13387 Add _Static_assert of offset of __private_ss == 0x30.
13388 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13389 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13390
13391 2018-06-12 Florian Weimer <fweimer@redhat.com>
13392
13393 x86: Make strncmp usable from rtld.
13394 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13395 __strncmp_ia32 if in libc (and not in rtld).
13396 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13397 strncmp if not in libc (and not to __strncmp_sse2).
13398
13399 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13400
13401 [BZ #23140]
13402 * localedata/locales/gd_GB (mon): Rename to...
13403 (alt_mon): This.
13404 (mon): Import from CLDR (genitive case).
13405 * localedata/locales/hsb_DE (mon): Rename to...
13406 (alt_mon): This.
13407 (mon): Import from CLDR (genitive case).
13408 * localedata/locales/wa_BE (mon): Rename to...
13409 (alt_mon): This.
13410 (mon): Add, fill with the proper genitive forms, but CLDR data
13411 is incomplete; completed according to the comments in this file.
13412 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13413
13414 * localedata/locales/wa_BE (country_name): Reword
13415 "Beljike" -> "Beldjike".
13416
13417 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13418
13419 [BZ #23272]
13420 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13421 cases of non-finite arguments.
13422 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13423
13424 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13425
13426 [BZ #23174]
13427 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13428
13429 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13430
13431 [BZ #23264]
13432 * include/unistd.h (__execvpex): New prototype.
13433 * posix/Makefile (tests): Add tst-spawn4.
13434 (tests-internal): Add tst-spawn4-compat.
13435 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13436 * posix/tst-spawn4-compat.c: New file.
13437 * posix/tst-spawn4.c: Likewise.
13438 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13439 binaries as shell scripts.
13440 * sysdeps/posix/spawni.c (__spawni): Likewise.
13441
13442 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13443
13444 [BZ #23145]
13445 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13446 ($(all-built-dso:=.dynsym): New target.
13447 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13448 ($(objpfx)check-initfini.out): New target.
13449 (generated): Add check-initfini.out.
13450 * scripts/check-initfini.awk: New file.
13451 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13452 (_fini): Likewise.
13453 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13454 (_fini): Likewise.
13455 * sysdeps/arm/crti.S (_init): Mark as hidden.
13456 (_fini): Likewise.
13457 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13458 (_fini): Likewise.
13459 * sysdeps/i386/crti.S (_init): Mark as hidden.
13460 (_fini): Likewise.
13461 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13462 (_fini): Likewise.
13463 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13464 (_fini): Likewise.
13465 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13466 (_fini): Likewise.
13467 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13468 (_fini): Likewise.
13469 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13470 (_fini): Likewise.
13471 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13472 (_fini): Likewise.
13473 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13474 (_fini): Likewise.
13475 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13476 (_fini): Likewise.
13477 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13478 (_fini): Likewise.
13479 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13480 (_fini): Likewise.
13481 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13482 (_fini): Likewise.
13483 * sysdeps/sh/crti.S (_init): Mark as hidden.
13484 (_fini): Likewise.
13485 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13486 (_fini): Likewise.
13487 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13488 (_fini): Likewise.
13489
13490 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13491
13492 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13493 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13494 and TF redirection to KFtype and KF only when the default
13495 long double type is not the IEEE 128-bit floating point type.
13496
13497 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13498
13499 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13500 macro.
13501 (HWCAP_USCAT): Likewise.
13502 (HWCAP_ILRCPC): Likewise.
13503 (HWCAP_FLAGM): Likewise.
13504 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13505 Increase to 28.
13506 (_dl_aarch64_cap_flags): Add new flag names.
13507
13508 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13509 (MAP_FIXED_NOREPLACE): New macro.
13510 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13511 (MAP_FIXED_NOREPLACE): Likewise.
13512 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13513 (MAP_FIXED_NOREPLACE): Likewise.
13514 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13515 (MAP_FIXED_NOREPLACE): Likewise.
13516 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13517 (MAP_FIXED_NOREPLACE): Likewise.
13518 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13519 (MAP_FIXED_NOREPLACE): Likewise.
13520 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13521 (MAP_FIXED_NOREPLACE): Likewise.
13522 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13523 (MAP_FIXED_NOREPLACE): Likewise.
13524 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13525 (MAP_FIXED_NOREPLACE): Likewise.
13526 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13527 (MAP_FIXED_NOREPLACE): Likewise.
13528 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13529 (MAP_FIXED_NOREPLACE): Likewise.
13530 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13531 (MAP_FIXED_NOREPLACE): Likewise.
13532 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13533 (MAP_FIXED_NOREPLACE): Likewise.
13534 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13535 (MAP_FIXED_NOREPLACE): Likewise.
13536 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13537 (MAP_FIXED_NOREPLACE): Likewise.
13538
13539 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13540 version to 4.17.
13541
13542 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13543
13544 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13545 version to 4.17
13546
13547 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13548
13549 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13550 int.
13551 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13552
13553 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13554
13555 * benchtests/scripts/compare_string.py: (process_results) Catch
13556 exception in non-existent base_func and catch exception in
13557 non-existent attribute.
13558 (parse_file) Catch exception if input file does not exist.
13559
13560 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13561
13562 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13563 options to avoid diff calculation and omit header, respectively.
13564 (main): process --no-diff and --no-header
13565
13566 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13567 H.J. Lu <hongjiu.lu@intel.com>
13568
13569 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13570 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13571 wcsncmp-sse2.
13572 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13573 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13574 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13575 and __wcsncmp_sse2.
13576 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13577 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13578 AVX unaligned load is fast and vzeroupper is preferred.
13579 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13580 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13581 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13582 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13583 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13584 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13585 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13586 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13587 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13588 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13589 is undefined.
13590
13591 2018-06-01 Florian Weimer <fweimer@redhat.com>
13592
13593 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13594 configuring with --disable-multi-arch, building with
13595 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13596 Haswell-era CPU.
13597
13598 2018-06-01 Florian Weimer <fweimer@redhat.com>
13599
13600 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13601 results from building with “-march=x86-64 -mtune=generic
13602 -mfpmath=sse” and running on a Haswell-era CPU.
13603
13604 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13605
13606 [BZ #18473]
13607 * soft-fp/sqrttf2.c: Remove file.
13608 * soft-fp/sqrtdf2.c: Move to ....
13609 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13610 <shlib-compat.h>.
13611 (__sqrtdf2): Make conditional on
13612 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13613 symbol.
13614 * soft-fp/sqrtsf2.c: Move to ....
13615 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13616 <shlib-compat.h>.
13617 (__sqrtsf2): Make conditional on
13618 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13619 symbol.
13620 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13621 (gcc-double-routines): Remove sqrtdf2.
13622 (gcc-quad-routines): Remove sqrttf2.
13623 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13624 Do not filter out sqrtsf2 and sqrtdf2.
13625 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13626 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13627
13628 2018-06-01 Florian Weimer <fweimer@redhat.com>
13629
13630 * sysdeps/generic/libcidn.abilist: Remove file.
13631
13632 2018-06-01 Florian Weimer <fweimer@redhat.com>
13633
13634 [BZ #23236]
13635 * libio/strfile.h (struct _IO_str_fields): Rename members to
13636 discourage their use and add comment.
13637 (_IO_STR_DYNAMIC): Remove unused macro.
13638 * libio/strops.c (_IO_str_init_static_internal): Do not use
13639 callback pointers. Call malloc and free.
13640 (_IO_str_overflow): Do not use callback pointers. Call malloc
13641 and free.
13642 (enlarge_userbuf): Likewise.
13643 (_IO_str_finish): Call free.
13644 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13645 _allocate_buffer_unused.
13646 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13647 and free.
13648 (enlarge_userbuf): Likewise.
13649 (_IO_wstr_finish): Call free.
13650 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13651 _allocate_buffer_unused, _free_buffer_unused.
13652 * libio/memstream.c (__open_memstream): Likewise.
13653 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13654 * libio/wmemstream.c (open_wmemstream): Likewise.
13655
13656 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13657
13658 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13659 AMD Ryzen 7 1800X.
13660
13661 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13662
13663 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13664 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13665 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13666 New file.
13667 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13668 Likewise.
13669 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13670
13671 2018-05-29 Florian Weimer <fweimer@redhat.com>
13672
13673 * support/Makefile (libsupport-routines): Add
13674 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13675 xpthread_barrierattr_setpshared.
13676 * support/xpthread_barrierattr_destroy.c: New file.
13677 * support/xpthread_barrierattr_init.c: Likewise.
13678 * support/xpthread_barrierattr_setpshared.c: Likewise.
13679
13680 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13681
13682 [BZ #23206]
13683 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13684 _r_debug and update DT_DEBUG for debugger.
13685
13686 2018-05-29 Florian Weimer <fweimer@redhat.com>
13687
13688 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13689 (tst-strtod5i.out): Likewise.
13690
13691 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13692
13693 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13694 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13695 (sparc64-quad-routines): New variable. Moved from ....
13696 [$(subdir) = soft-fp] (sysdep_routines): Add
13697 $(sparc64-quad-routines). Moved from ....
13698 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13699 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13700 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13701 moved from ....
13702 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13703 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13704 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13705 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13706 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13707 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13708 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13709 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13710 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13711 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13712 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13713 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13714 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13715 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13716 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13717 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13718 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13719 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13720 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13721 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13722 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13723 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13724 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13725 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13726 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13727 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13728 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13729 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13730 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13731 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13732 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13733 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13734 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13735 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13736 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13737 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13738 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13739 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13740 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13741 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13742 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13743 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13744 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13745 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13746 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13747 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13748 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13749 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13750 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13751 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13752 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13753 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13754 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13755 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13756 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13757 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13758 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13759 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13760
13761 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13762 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13763 (sparc32-quad-routines): New variable. Moved from ....
13764 [$(subdir) = soft-fp] (sysdep_routines): Add
13765 $(sparc32-quad-routines). Moved from ....
13766 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13767 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13768 moved from ....
13769 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13770 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13771 * sysdeps/sparc/sparc32/q_add.c: ... here.
13772 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13773 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13774 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13775 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13776 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13777 * sysdeps/sparc/sparc32/q_div.c: ... here.
13778 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13779 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13780 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13781 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13782 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13783 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13784 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13785 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13786 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13787 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13788 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13789 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13790 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13791 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13792 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13793 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13794 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13795 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13796 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13797 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13798 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13799 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13800 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13801 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13802 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13803 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13804 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13805 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13806 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13807 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13808 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13809 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13810 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13811 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13812 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13813 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13814 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13815 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13816 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13817 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13818 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13819 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13820 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13821 * sysdeps/sparc/sparc32/q_util.c: ... here.
13822 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13823 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13824 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13825 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13826
13827 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13828 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13829
13830 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13831 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13832 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13833 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13834
13835 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13836
13837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13838 powerpc/soft-fp.
13839 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13840 Likewise.
13841 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13842 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13843
13844 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13845
13846 [BZ #23171]
13847 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13848 double version.
13849
13850 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13851
13852 * sysdeps/sh/Implies: Remove sh/soft-fp.
13853 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13854 * sysdeps/sh/sfp-machine.h: ... here.
13855
13856 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13857
13858 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13859 (__mempcpy_erms): Skip zero length.
13860 (__memmove_erms): Likewise.
13861 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13862 (__memset_erms): Likewise.
13863
13864 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13865
13866 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13867 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13868 Add functions moved from ....
13869 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13870 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13871 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13872 from ....
13873 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13874 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13875 * sysdeps/alpha/e_sqrtl.c: ... here.
13876 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13877 * sysdeps/alpha/local-soft-fp.h: ... here.
13878 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13879 * sysdeps/alpha/ots_add.c: ... here.
13880 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13881 * sysdeps/alpha/ots_cmp.c: ... here.
13882 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13883 * sysdeps/alpha/ots_cmpe.c: ... here.
13884 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13885 * sysdeps/alpha/ots_cvtqux.c: ... here.
13886 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13887 * sysdeps/alpha/ots_cvtqx.c: ... here.
13888 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13889 * sysdeps/alpha/ots_cvttx.c: ... here.
13890 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13891 * sysdeps/alpha/ots_cvtxq.c: ... here.
13892 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13893 * sysdeps/alpha/ots_cvtxt.c: ... here.
13894 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13895 * sysdeps/alpha/ots_div.c: ... here.
13896 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13897 * sysdeps/alpha/ots_mul.c: ... here.
13898 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13899 * sysdeps/alpha/ots_nintxq.c: ... here.
13900 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13901 * sysdeps/alpha/ots_sub.c: ... here.
13902 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13903 * sysdeps/alpha/sfp-machine.h: ... here.
13904
13905 2018-05-23 Florian Weimer <fweimer@redhat.com>
13906
13907 [BZ #19728]
13908 [BZ #19729]
13909 [BZ #22247]
13910 CVE-2016-6261
13911 CVE-2016-6263
13912 CVE-2017-14062
13913 Switch to extern IDNA implementation (libidn2).
13914 * libidn: Remove subdirectory.
13915 * LICENSES: Do not mention licensing conditions for the removed
13916 libidn code.
13917 * config.h.in (HAVE_LIBIDN): Remove.
13918 * include/dlfcn.h (__libc_dlopen): Update comment.
13919 * include/idna.h: Remove file.
13920 * inet/Makefile (routines): Add idna.
13921 (tests-static, tests-internal): Add tst-idna_name_classify.
13922 (LOCALES): Generate locales for tests.
13923 (tst-idna_name_classify.out): Depend on generated locales.
13924 * inet/idna_name_classify.c: New file.
13925 * inet/tst-idna_name_classify.c: Likewise.
13926 * inet/net-internal.h (__idna_to_dns_encoding)
13927 (__idna_from_dns_encoding): Declare.
13928 * inet/net-internal.h (enum idna_name_classification): Define.
13929 (__idna_name_classify): Declare.
13930 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13931 __idna_from_dns_encoding.
13932 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13933 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13934 name as a fallback in case of encoding errors.
13935 (getnameinfo): Use DEPRECATED_NI_IDN.
13936 * inet/idna.c: New file.
13937 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13938 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13939 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13940 (modules-names): Add tst-no-libidn2.
13941 (extra-test-objs): Add tst-no-libidn2.os.
13942 (LDFLAGS-tst-no-libidn2.so): Set soname.
13943 (LOCALES): Set, and generate locales.
13944 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13945 (tst-resolv-ai_idn-latin1): Likewise.
13946 (tst-resolv-ai_idn-nolibidn2): Likewise.
13947 (tst-resolv-ai_idn.out): Depend on locales.
13948 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13949 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13950 tst-no-libidn2.so.
13951 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13952 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13953 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13954 * resolv/tst-resolv-ai_idn.c: New file.
13955 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13956 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13957 * resolv/tst-no-libidn2.c: Likewise.
13958 * support/support_format_addrinfo.c (format_ai_flags): Do not
13959 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13960 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13961 (gaih_inet): Call __idna_to_dns_encoding and
13962 __idna_from_dns_encoding, and use the original (punycode) name if
13963 __idna_from_dns_encoding fails due to an encoding error.
13964 (getaddrinfo): Use DEPRECATED_AI_IDN.
13965 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13966 * sysdeps/unix/inet/configure: Remove file.
13967 * sysdeps/unix/inet/configure.ac: Likewise.
13968
13969 2018-05-23 Florian Weimer <fweimer@redhat.com>
13970
13971 Implement allocate_once.
13972 * include/allocate_once.h: New file.
13973 * misc/allocate_once.c: Likewise.
13974 * misc/tst-allocate_once.c: Likewise.
13975 * misc/Makefile (routines): Add allocate_once.
13976 (tests-internal): Add tst-allocate_once.
13977 (generated): Add tst-allocate_once.mtrace,
13978 tst-allocate_once-mem.out.
13979 (tests-special): Add tst-allocate_once-mem.out.
13980 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13981 (tst-allocate_once-mem.out): Call mtrace.
13982 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13983
13984 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13985
13986 [BZ #23196]
13987 * string/test-memcpy.c (do_test1): New function.
13988 (test_main): Call it.
13989
13990 2018-05-23 Andreas Schwab <schwab@suse.de>
13991
13992 [BZ #23196]
13993 CVE-2018-11237
13994 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13995 (L(preloop_large)): Save initial destination pointer in %r11 and
13996 use it instead of %rax after the loop.
13997 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13998
13999 2018-05-22 Joseph Myers <joseph@codesourcery.com>
14000
14001 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
14002 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
14003 -I../soft-fp. Moved from ....
14004 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
14005 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
14006 * sysdeps/aarch64/e_sqrtl.c: ... here.
14007 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
14008 * sysdeps/aarch64/sfp-machine.h: ... here.
14009
14010 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
14011 -Wmaybe-uninitialized around access to fq[0].
14012 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
14013 Likewise.
14014
14015 [BZ #18471]
14016 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
14017 aliases for non-libc case of versioned symbols.
14018 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
14019 (llseek): Define as compat symbol if
14020 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
14021 with link warning.
14022 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
14023 Make into a compat symbol, disabled for minimum symbol version
14024 GLIBC_2.28 and later.
14025 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
14026
14027 2018-05-22 Florian Weimer <fweimer@redhat.com>
14028
14029 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
14030 not add -mpreferred-stack-boundary=4.
14031 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
14032 (stack-align-test-flags): Likewise.
14033 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
14034 Likewise.
14035 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
14036 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
14037 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
14038 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
14039 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
14040 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
14041 (CFLAGS-tst-align2.c): Likewise.
14042
14043 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14044
14045 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
14046 (index_arch_Prefer_FSRM): Likewise.
14047 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
14048 Also check Prefer_FSRM.
14049 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
14050 Also return OPTIMIZE (erms) for Prefer_FSRM.
14051
14052 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
14053
14054 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
14055 (index_cpu_FSRM): Likewise.
14056 (reg_FSRM): Likewise.
14057
14058 2018-05-18 Joseph Myers <joseph@codesourcery.com>
14059
14060 * math/gen-tgmath-tests.py: Import sys.
14061 (Tests.__init__): Initialize macros_seen.
14062 (Tests.add_tests): Add macro to macros_seen. Only generate tests
14063 if requested to do so for this macro.
14064 (Tests.add_all_tests): Take argument for macro for which to
14065 generate tests.
14066 (Tests.check_macro_list): New function.
14067 (main): Handle check-list argument and argument specifying macro
14068 for which to generate tests.
14069 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
14070 [PYTHON] (tgmath3-macro-tests): Likewise.
14071 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
14072 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
14073 not test-tgmath3.c.
14074 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
14075 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
14076 to CFLAGS.
14077 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
14078 [PYTHON] ($(foreach
14079 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
14080 rule.
14081 [PYTHON] (tests-special): Add
14082 $(objpfx)test-tgmath3-macro-list.out.
14083 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14084
14085 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14086 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14087 later.
14088
14089 [BZ #22639]
14090 * time/tzset.c (SECSPERDAY): Cast to time_t.
14091 * time/tst-y2039.c: New file.
14092 * time/Makefile (tests): Add tst-y2039.
14093
14094 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14095
14096 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14097 (PREFETCH_ONE_SET): Remove duplicate line.
14098
14099 2018-05-17 Florian Weimer <fweimer@redhat.com>
14100
14101 * sysdeps/generic/math-type-macros-double.h: Include
14102 <math-nan-payload-double.h> after <libm-alias-double.h>.
14103 * sysdeps/generic/math-type-macros-float.h: Include
14104 <math-nan-payload-float.h> after <libm-alias-float.h>.
14105 * sysdeps/generic/math-type-macros-float128.h: Include
14106 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14107 * sysdeps/generic/math-type-macros-ldouble.h: Include
14108 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14109
14110 2018-05-17 Andreas Schwab <schwab@suse.de>
14111
14112 * resolv/res_send.c (__res_context_send): Don't set errno when
14113 returing error after malloc failure.
14114
14115 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
14116
14117 * nptl/allocatestack.c (allocate_stack): Remove the
14118 !__ASSUME_PRIVATE_FUTEX paths.
14119 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14120 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14121 Likewise.
14122 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14123 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14124 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14125 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14126 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14127 !__ASSUME_PRIVATE_FUTEX path.
14128 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14129 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14130 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14131 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14132 !__ASSUME_PRIVATE_FUTEX macros.
14133 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14134 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14135 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14136 * sysdeps/unix/sysv/linux/kernel-features.h
14137 (__ASSUME_PRIVATE_FUTEX): Removed.
14138
14139 2018-05-17 Joseph Myers <joseph@codesourcery.com>
14140
14141 * math/Makefile (libm-narrow-fns): Add div.
14142 (libm-test-funcs-narrow): Likewise.
14143 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14144 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14145 * math/gen-auto-libm-tests.c (test_functions): Add div.
14146 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14147 (NARROW_DIV_ROUND_TO_ODD): Likewise.
14148 (NARROW_DIV_TRIVIAL): Likewise.
14149 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14150 macro.
14151 (__ddivl): Likewise.
14152 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14153 ddiv.
14154 (CFLAGS-nldbl-ddiv.c): New variable.
14155 (CFLAGS-nldbl-fdiv.c): Likewise.
14156 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14157 __nldbl_ddivl.
14158 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14159 prototype.
14160 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14161 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14162 * math/auto-libm-test-in: Add tests of div.
14163 * math/auto-libm-test-out-narrow-div: New generated file.
14164 * math/libm-test-narrow-div.inc: New file.
14165 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14166 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14167 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14168 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14169 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14170 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14171 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14172 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14173 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14174 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14175 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14176 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14177 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14178 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14179 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14180 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14181 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14182 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14183 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14184 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14190 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14191 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14192 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14193 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14194 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14195 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14196 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14197 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14198 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14199 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14201 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14202 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14209
14210 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14211
14212 [BZ #23178]
14213 * nscd/nscd-client.h (sendfileall): Remove prototype.
14214 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14215 (handle_request): Use writeall instead of sendfileall.
14216 * nscd/aicache.c (addhstaiX): Likewise.
14217 * nscd/grpcache.c (cache_addgr): Likewise.
14218 * nscd/hstcache.c (cache_addhst): Likewise.
14219 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14220 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14221 * nscd/pwdcache.c (cache_addpw): Likewise.
14222 * nscd/servicescache.c (cache_addserv): Likewise.
14223 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14224 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14225 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14226 Remove define.
14227
14228 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14229
14230 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14231 Include <string/strncat.c>.
14232 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14233 alias.
14234 (__GI___strncat): New hidden alias.
14235
14236 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14237
14238 * sysdeps/mips/mips32/libm-test-ulps: Update.
14239 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14240
14241 2018-05-16 Florian Weimer <fweimer@redhat.com>
14242
14243 * support/Makefile (libsupport-routines): Add support_quote_blob,
14244 support_test_compare_blob.
14245 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14246 * support/check.h (TEST_COMPARE_BLOB): Define.
14247 (support_test_compare_blob): Declare.
14248 * support/support.h (support_quote_blob): Declare.
14249 * support/support_quote_blob.c: New file.
14250 * support/support_test_compare_blob.c: Likewise.
14251 * support/tst-support_quote_blob.c: Likewise.
14252 * support/tst-test_compare_blob.c: Likewise.
14253
14254 2018-05-16 Florian Weimer <fweimer@redhat.com>
14255
14256 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14257 of <strtod_nan_double.h>.
14258 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14259 instead of SET_MANTISSA.
14260 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14261 of include <strtod_nan_float.h>.
14262 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14263 instead of <strtod_nan_ldouble.h>.
14264 * stdlib/strtod_nan_double.h: Move to ...
14265 * sysdeps/generic/math-nan-payload-double.h: ... here.
14266 (FLOAT): Remove definition.
14267 (SET_MANTISSA): Rename to ...
14268 (SET_NAN_PAYLOAD): ... this.
14269 * stdlib/strtod_nan_float.h: Move to ...
14270 * sysdeps/generic/math-nan-payload-float.h: ... here.
14271 (FLOAT): Remove definition.
14272 (SET_MANTISSA): Rename to ...
14273 (SET_NAN_PAYLOAD): ... this.
14274 * sysdeps/generic/math-type-macros-double.h: Include
14275 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14276 instead of <math-svid-compat.h>.
14277 * sysdeps/generic/math-type-macros-float.h: Include
14278 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14279 instead of <math-svid-compat.h>.
14280 * sysdeps/generic/math-type-macros-float128.h: Include
14281 <math-nan-payload-float128.h>.
14282 * sysdeps/generic/math-type-macros-ldouble.h: Include
14283 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14284 instead of <math-svid-compat.h>.
14285 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14286 check for definition.
14287 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14288 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14289 Include <ieee754_float128.h>.
14290 (FLOAT): Remove definition.
14291 (SET_MANTISSA): Rename to ...
14292 (SET_NAN_PAYLOAD): ... this.
14293 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14294 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14295 Do not include <float128_private.h>.
14296 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14297 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14298 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14299 (FLOAT): Remove definition.
14300 (SET_MANTISSA): Rename to ...
14301 (SET_NAN_PAYLOAD): ... this.
14302 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14303 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14304 (FLOAT): Remove definition.
14305 (SET_MANTISSA): Rename to ...
14306 (SET_NAN_PAYLOAD): ... this.
14307 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14308 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14309 (FLOAT): Remove definition.
14310 (SET_MANTISSA): Rename to ...
14311 (SET_NAN_PAYLOAD): ... this.
14312 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14313 of "../stdlib/strtod_nan_double.h".
14314 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14315 of "../stdlib/strtod_nan_float.h".
14316 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14317 instead of "../stdlib/strtod_nan_ldouble.h".
14318 * manual/arith.texi (Parsing of Floats): Adjust comment.
14319
14320 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14321
14322 * math/Makefile (libm-narrow-fns): Add mul.
14323 (libm-test-funcs-narrow): Likewise.
14324 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14325 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14326 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14327 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14328 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14329 (NARROW_MUL_TRIVIAL): Likewise.
14330 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14331 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14332 macro.
14333 (__dmull): Likewise.
14334 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14335 dmul.
14336 (CFLAGS-nldbl-dmul.c): New variable.
14337 (CFLAGS-nldbl-fmul.c): Likewise.
14338 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14339 __nldbl_dmull.
14340 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14341 prototype.
14342 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14343 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14344 * math/auto-libm-test-in: Add tests of mul.
14345 * math/auto-libm-test-out-narrow-mul: New generated file.
14346 * math/libm-test-narrow-mul.inc: New file.
14347 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14348 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14349 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14350 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14351 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14352 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14353 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14354 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14355 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14356 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14357 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14358 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14359 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14360 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14361 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14362 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14363 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14364 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14365 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14366 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14391
14392 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14393
14394 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14395 with *%eax in call.
14396
14397 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14398
14399 * sysdeps/i386/ldsodefs.h: Removed.
14400 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14401 * sysdeps/x86/ldsodefs.h: This.
14402 (La_i86_regs): New.
14403 (La_i86_retval): Likewise.
14404 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14405 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14406
14407 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14408
14409 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14410 unnecessary testl.
14411
14412 2018-05-13 Alan Modra <amodra@gmail.com>
14413
14414 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14415 R_PARISC_TLS_DTPOFF32 reloc addend.
14416
14417 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14418
14419 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14420 * math/math.h: Restrict the prototype definition for the functions
14421 issignaling(_Float128) and iszero(_Float128); and template
14422 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14423 __HAVE_FLOAT128_UNLIKE_LDBL.
14424 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14425 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14426 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14427 __f128() constants; define the type _Float128 as long double;
14428 and reuse long double in __CFLOAT128.
14429
14430 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14431
14432 * sysdeps/generic/math_private.h: Do not include
14433 <math-barriers.h>.
14434 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14435 <math_private.h>.
14436 * math/fromfp.h: Include <math-barriers.h>.
14437 * math/math-narrow.h: Likewise.
14438 * math/s_nextafter.c: Likewise.
14439 * math/s_nexttowardf.c: Likewise.
14440 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14441 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14442 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14443 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14444 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14445 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14446 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14447 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14448 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14449 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14450 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14451 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14452 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14453 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14454 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14455 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14456 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14457 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14458 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14459 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14460 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14461 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14462 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14463 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14464 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14465 * sysdeps/ieee754/k_standardl.c: Likewise.
14466 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14467 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14468 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14469 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14470 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14471 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14472 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14473 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14474 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14475 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14476 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14477 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14478 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14479 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14480 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14481 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14482 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14483 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14484 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14485 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14486 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14487 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14488
14489 2018-05-11 Florian Weimer <fweimer@redhat.com>
14490
14491 Use 64-bit epoch values in the time zone file parser.
14492 * include/time.h (internal_time_t): Define.
14493 (__tzfile_compute): Use it.
14494 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14495 member.
14496 (transitions): Switch to internal_time_t.
14497 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14498 types.
14499 (__tzfile_compute): Use internal_time_t for timer argument. Check
14500 for truncation before calling __offtime.
14501
14502 2018-05-11 Florian Weimer <fweimer@redhat.com>
14503
14504 [BZ #23166]
14505 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14506 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14507 Likewise.
14508 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14509 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14510 export without --enable-obsolete-rpc.
14511 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14512 symbol. This should not have been exported, ever.
14513
14514 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14515
14516 [BZ #23152]
14517 * localedata/locales/gd_GB (abmon): Fix typo in May:
14518 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14519
14520 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14521
14522 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14523 Use multiple registers to copy data in loop tail.
14524
14525 * sysdeps/aarch64/multiarch/memmove_falkor.S
14526 (__memmove_falkor): Use multiple registers to move data in
14527 loop tail.
14528
14529 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14530
14531 * math/math-underflow.h: New file.
14532 * sysdeps/generic/math_private.h: Do not include <float.h>.
14533 (fabs_tg): Remove macro. Moved to math-underflow.h.
14534 (min_of_type_f): Likewise.
14535 (min_of_type_): Likewise.
14536 (min_of_type_l): Likewise.
14537 (min_of_type_f128): Likewise.
14538 (min_of_type): Likewise.
14539 (math_check_force_underflow): Likewise.
14540 (math_check_force_underflow_nonneg): Likewise.
14541 (math_check_force_underflow_complex): Likewise.
14542 * math/e_exp2_template.c: Include <math-underflow.h>.
14543 * math/k_casinh_template.c: Likewise.
14544 * math/s_catan_template.c: Likewise.
14545 * math/s_catanh_template.c: Likewise.
14546 * math/s_ccosh_template.c: Likewise.
14547 * math/s_cexp_template.c: Likewise.
14548 * math/s_clog10_template.c: Likewise.
14549 * math/s_clog_template.c: Likewise.
14550 * math/s_csin_template.c: Likewise.
14551 * math/s_csinh_template.c: Likewise.
14552 * math/s_csqrt_template.c: Likewise.
14553 * math/s_ctan_template.c: Likewise.
14554 * math/s_ctanh_template.c: Likewise.
14555 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14556 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14557 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14558 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14559 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14560 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14561 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14562 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14563 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14564 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14565 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14566 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14567 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14568 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14569 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14570 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14571 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14572 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14573 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14574 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14575 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14576 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14577 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14578 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14579 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14580 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14581 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14582 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14583 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14584 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14585 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14586 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14587 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14588 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14589 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14590 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14591 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14592 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14593 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14594 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14595 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14596 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14597 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14598 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14599 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14600 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14601 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14602 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14603 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14604 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14605 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14606 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14607 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14608 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14609 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14610 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14611 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14612 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14613 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14614 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14615 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14616 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14617 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14618 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14619 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14620 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14621 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14622 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14623 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14624 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14625 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14626 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14627 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14628 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14629 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14630 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14631 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14632 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14633 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14634 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14635 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14636 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14637 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14638 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14639
14640 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14641
14642 * sysdeps/generic/math-barriers.h: New file.
14643 * sysdeps/generic/math_private.h [!math_opt_barrier]
14644 (math_opt_barrier): Move to math-barriers.h.
14645 [!math_opt_barrier] (math_force_eval): Likewise.
14646 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14647 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14648 math-barriers.h.
14649 (math_force_eval): Likewise.
14650 * sysdeps/alpha/fpu/math-barriers.h: New file.
14651 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14652 math-barriers.h.
14653 (math_force_eval): Likewise.
14654 * sysdeps/x86/fpu/math-barriers.h: New file.
14655 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14656 math-barriers.h.
14657 (math_force_eval): Likewise.
14658 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14659 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14660 multiple-include guard for rename.
14661 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14662 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14663 math-barriers.h.
14664 (math_force_eval): Likewise.
14665
14666 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14667
14668 [BZ #22786]
14669 CVE-2018-11236
14670 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14671 computation.
14672 * stdlib/Makefile (test-bz22786): New test.
14673 * stdlib/test-bz22786.c: New test.
14674
14675 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14676
14677 * include/math-narrow-eval.h: New file. Contents moved from ....
14678 * sysdeps/generic/math_private.h: ... here.
14679 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14680 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14681 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14682 * stdlib/strtod_l.c: Likewise.
14683 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14684 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14685 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14686 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14687 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14688 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14689 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14690 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14691 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14692 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14693 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14694 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14695 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14696 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14697 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14698 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14699 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14700 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14701 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14702 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14703 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14704 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14705 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14706 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14707 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14708 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14709 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14710 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14711 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14712
14713 2018-05-08 Andreas Schwab <schwab@suse.de>
14714
14715 * sysdeps/nptl/internaltypes.h: Fix comment.
14716
14717 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14718
14719 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14720 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14721 hidden.
14722
14723 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14724
14725 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14726 of I into loop header.
14727 * benchtests/bench-memmove-walk.c
14728 (test_main): Likewise.
14729
14730 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14731
14732 Revert:
14733 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14734 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14735
14736 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14737
14738 [BZ #20419]
14739 * elf/dl-load.c (open_verify): Fix stack overflow.
14740 * elf/Makefile (tst-big-note): New test.
14741 * elf/tst-big-note-lib.S: New.
14742 * elf/tst-big-note.c: New.
14743
14744 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14745
14746 * scripts/abilist.awk: Ignore absolute symbols.
14747 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14748 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14749 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14750 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14751 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14752 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14753 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14754 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14755 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14756 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14757 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14758 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14759 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14760 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14761 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14762 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14763 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14764 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14765 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14766 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14767 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14768 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14769 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14770 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14771 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14772 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14773 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14774 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14775 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14776 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14777 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14778 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14779 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14780 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14781 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14782 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14783 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14784 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14785 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14786 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14787 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14788 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14789 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14790 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14791 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14792 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14793 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14794 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14795 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14796 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14797 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14798 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14799 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14800 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14801 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14802 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14803 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14804 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14805 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14806 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14807 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14808 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14809 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14810 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14811 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14812 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14813 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14814 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14815 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14816 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14817 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14818 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14819 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14820 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14821 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14822 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14823 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14824 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14825 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14826 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14827 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14828 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14829 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14830 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14831 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14832 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14833 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14834 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14835 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14836 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14837 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14838 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14839 Likewise.
14840 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14841 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14842 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14843 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14844 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14845 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14846 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14847 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14848 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14849 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14850 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14851 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14852 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14853 Likewise.
14854 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14855 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14856 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14857 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14858 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14859 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14860 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14861 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14862 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14863 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14864 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14865 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14866 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14867 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14868 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14869 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14870 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14871 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14872 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14873 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14874 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14875 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14876 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14877 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14878 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14879 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14880 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14881 Likewise.
14882 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14883 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14884 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14885 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14886 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14887 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14890 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14891 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14892 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14893 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14894 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14895 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14896 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14897 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14898 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14899 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14900 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14901 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14902 Likewise.
14903 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14904 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14905 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14906 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14907 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14908 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14911 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14912 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14918 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14919 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14921 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14922 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14923 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14924 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14925 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14926 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14927 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14928 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14929 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14930 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14932 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14933 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14934 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14935 Likewise.
14936 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14937 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14939 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14940 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14941 Likewise.
14942 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14943 Likewise.
14944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14946 Likewise.
14947 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14949 Likewise.
14950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14951 Likewise.
14952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14955 Likewise.
14956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14957 Likewise.
14958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14959 Likewise.
14960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14964 Likewise.
14965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14970 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14971 Likewise.
14972 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14974 Likewise.
14975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14976 Likewise.
14977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14978 Likewise.
14979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14980 Likewise.
14981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14982 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14983 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14984 Likewise.
14985 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14986 Likewise.
14987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14988 Likewise.
14989 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14990 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14991 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14992 Likewise.
14993 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14994 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14995 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14996 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14997 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14998 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14999 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
15000 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
15001 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
15002 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
15003 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
15004 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
15005 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
15006 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
15007 Likewise.
15008 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
15009 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
15010 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
15011 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15012 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
15013 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
15014 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
15015 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
15016 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
15017 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
15018 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
15019 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
15020 Likewise.
15021 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
15022 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
15023 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
15024 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15025 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
15026 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
15027 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
15028 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
15029 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
15030 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
15031 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
15032 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
15033 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
15034 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
15035 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
15036 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
15037 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15038 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
15039 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
15040 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
15041 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
15042 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
15043 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
15044 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
15045 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
15046 Likewise.
15047 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
15048 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
15049 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
15050 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
15051 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15052 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
15053 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
15054 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
15055 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
15056 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
15057 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
15058 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
15059 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
15060 Likewise.
15061 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
15062 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
15063 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
15064 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
15065 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15066 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
15067 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
15068 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
15069 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
15070 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
15071 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
15072 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
15073 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
15074 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
15075 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
15076 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
15077 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
15078 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15079 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
15080 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15081 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15082 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15083 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15084 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15085 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15086 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15087 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15088 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15089 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15090 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15091 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15092 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15093 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15094 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15095 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15096 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15097 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15098 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15099
15100 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
15101
15102 [BZ #23137]
15103 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15104 Use atomic_load_acquire to load __tid.
15105
15106 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15107
15108 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15109 Restore the pointer into %rdx, after syscall and use %rdx,
15110 instead of %rsi, to restore context.
15111
15112 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15113
15114 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15115 Pop the pointer into %rdx after syscall and use %rdx, instead
15116 of %rsi, to restore context.
15117
15118 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15119
15120 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15121 handlers after setjmp.
15122 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15123 defined.
15124 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15125 <libc-pointer-arith.h>.
15126 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15127 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15128 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15129 _JUMP_BUF_SIGSET_BITS_PER_WORD.
15130 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15131 * sysdeps/x86/__longjmp_cancel.S: New file.
15132 * sysdeps/x86/longjmp.c: Likewise.
15133 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15134
15135 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15136
15137 * NEWS: Add ustat.h deprecation entry.
15138 * bits/ustat.h: Remove file.
15139 * misc/sys/ustat.h: Likewise.
15140 * misc/ustat.h: Likewise.
15141 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15142 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15143 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15144 compatibility mode.
15145 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15146 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15147 generic Linux implementation.
15148
15149 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15150
15151 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15152 * math/w_expl_compat.c: Likewise.
15153 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
15154
15155 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15156
15157 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15158
15159 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15160
15161 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15162 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15163 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15164 Remove.
15165 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15166 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15167 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15168 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15169 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15170 and SYSCALL_LL64.
15171
15172 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15173
15174 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15175
15176 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15177 * math/w_asin_template.c: Likewise.
15178 * math/w_atanh_template.c: Likewise.
15179
15180 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15181
15182 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15183 to powerpc/powerpc64/be for big-endian.
15184 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15185 little-endian.
15186
15187 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15188 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15189 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15190 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15191 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15192 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15193 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15194 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15195 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15196 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15197 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15198 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15199 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15200 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15201 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15202 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15203 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15204 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15205 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15206 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15207 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15208 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15209 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15210 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15211 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15212 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15213 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15214 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15215 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15216 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15217 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15218 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15219
15220 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15221 adjusted to imply powerpc64 and older processors on powerpc64/be.
15222 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15223 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15224 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15225 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15226 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15227 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15228 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15229 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15230 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15231 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15232 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15233 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15234 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15235 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15236 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15237 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15238 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15239 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15240 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15241 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15242 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15243 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15244 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15245 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15246 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15247 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15248 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15249 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15250 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15251 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15252 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15253
15254 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15255 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15256 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15257 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15258
15259 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15260 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15261 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15262 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15263
15264 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15265 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15266 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15267 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15268 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15269 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15270 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15271 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15272 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15273 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15274 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15275
15276 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15277 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15278 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15279 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15280 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15281 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15282 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15283 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15284 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15285 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15286 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15287
15288 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15289 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15290 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15291 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15292 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15293 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15294 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15295 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15296 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15297 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15298 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15299 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15300
15301 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15302 and adjusted to imply olders processors.
15303 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15304 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15305 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15306 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15307 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15308 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15309 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15310 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15311 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15312 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15313 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15314
15315 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15316 powerpc64/le.
15317 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15318 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15319
15320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15321 powerpc64le.
15322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15323 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15324
15325 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15326 powerpc64/be.
15327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15328 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15329 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15330
15331 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15332 powerpc64 and adjusted.
15333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15336 Likewise.
15337
15338 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15339
15340 * sysdeps/tile: Remove.
15341 * sysdeps/unix/sysv/linux/tile: Likewise.
15342 * README (tilegx-*-linux-gnu): Remove from list of supported
15343 configurations.
15344 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15345 contribution of support for generic Linux kernel syscall
15346 interface.
15347 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15348 tilegx configurations.
15349 (Config.install_linux_headers): Do not handle tile.
15350 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15351 in comment.
15352 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15353 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15354 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15355 conditional undefine and redefine.
15356 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15357 in comment.
15358 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15359 conditional undefine and redefine.
15360
15361 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15362
15363 * signal/tst-sigaction.c: New file to test BZ #23069.
15364 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15365
15366 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15367
15368 [BZ #22766]
15369 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15370 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15371 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15372 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15373
15374 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15375
15376 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15377 _DIRENT_MATCHES_DIRENT64 is not defined.
15378 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15379 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15380 is defined.
15381 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15382 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15383
15384 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15385
15386 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15387 version to GCC 8 branch.
15388
15389 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15390
15391 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15392 (check_no_hidden): Use type of original function when declaring
15393 alias.
15394
15395 * sysdeps/unix/sysv/linux/sys/ptrace.h
15396 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15397 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15398 (struct __ptrace_seccomp_metadata): New type.
15399 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15400 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15401 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15402 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15403 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15404 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15405 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15406 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15407 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15408 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15409 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15410 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15411 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15412 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15413 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15414 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15415
15416 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15417
15418 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15419 defined.
15420 * dirent/versionsort.c (versionsort): Likewise.
15421 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15422 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15423 * dirent/versionsort64.c (versionsort64): Likewise.
15424 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15425 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15426 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15427 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15428 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15429 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15430 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15431 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15432 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15433 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15436 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15437 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15438
15439 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15440
15441 * elf/elf.h (NT_PPC_PKEY): New macro.
15442
15443 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15444
15445 [BZ #23094]
15446 * localedata/locales/hr_HR: fix thousands_sep and
15447 mon_thousands_sep
15448
15449 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15450
15451 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15452 (XTABS): Define to TAB3.
15453
15454 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15455
15456 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15457
15458 * dirent/scandir-tail-common.c: New file.
15459 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15460 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15461 * dirent/scandir.c: Use scandir-tail-common.c.
15462 * dirent/scandirat.c: Likewise.
15463 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15464 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15465 if _DIRENT_MATCHES_DIRENT64 is defined.
15466 * dirent/scandirat64.c (scandirat64): Likewise.
15467 * include/dirent.h (__scandir_tail): Only define iff
15468 _DIRENT_MATCHES_DIRENT64 is not defined.
15469 (__scandir64_tail): Define regardless.
15470 (__scandirat, scandirat64): Remove libc_hidden_proto.
15471 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15472 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15473 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15474 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15475 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15476 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15477 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15478
15479 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15480
15481 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15482 New macro.
15483 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15484 Increase to 24.
15485 (_dl_aarch64_cap_flags): Add asimdfhm.
15486
15487 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15488
15489 * sysdeps/nios2/libm-test-ulps: Update.
15490
15491 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15492
15493 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15494 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15495
15496 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15497 requirements.
15498 (_DIRENT_MATCHES_DIRENT64): Undef
15499 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15500 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15501 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15502 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15503 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15504 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15505 use getdents64 syscalls as base.
15506 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15507 symbol if required.
15508 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15509 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15510 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15511 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15512 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15513 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15514 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15515 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15516 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15517 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15518 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15519
15520 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15521
15522 * scripts/test_printers_common.py (init_test): Disable lock elision.
15523
15524 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15525
15526 * math/test-tgmath.c (count_double, count_float,
15527 count_ldouble, count_cdouble, count_cfloat,
15528 count_cldouble): Use volatile int.
15529
15530 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15531
15532 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15533 (conformtest-xfail-conds): Add i386-gnu.
15534 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15535 i386-gnu.
15536 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15537 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15538 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15539 msqid_ds.msg_lrpid): Likewise.
15540 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15541 Likewise.
15542 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15543 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15544 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15545 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15546 unsigned int.
15547 (struct statvfs64): Likewise.
15548 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15549 Likewise.
15550 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15551 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15552 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15553 instead of wait_queue.
15554 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15555 instead of vm_area_struct.
15556 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15557 struct sched_param definition to it.
15558 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15559 * bits/types/struct_sched_param.h: New file.
15560 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15561 <bits/types/struct_sched_param.h> instead of <sched.h>.
15562 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15563 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15564 generic version but include <bits/pthreadtypes.h> to make struct
15565 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15566 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15567 non-compliant.
15568 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15569 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15570 [__USE_XOPEN] (OFDEL): New macro.
15571 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15572 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15573 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15574 prototypes.
15575 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15576 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15577 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15578 non-compliant.
15579 * sysdeps/i386/sys/ucontext.h: Likewise.
15580 * sysdeps/m68k/sys/ucontext.h: Likewise.
15581 * sysdeps/mips/sys/ucontext.h: Likewise.
15582 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15583 * sysdeps/mach/hurd/i386/Makefile
15584 (test-xfail-POSIX/fcntl.h/conform): Add.
15585 (test-xfail-POSIX/signal.h/conform): Add.
15586 (test-xfail-POSIX/semaphore.h/conform): Add.
15587 (test-xfail-POSIX/regex.h/conform): Add.
15588 (test-xfail-POSIX/aio.h/conform): Add.
15589 (test-xfail-POSIX/mqueue.h/conform): Add.
15590 (test-xfail-POSIX/sys/types.h/conform): Add.
15591 (test-xfail-UNIX98/fcntl.h/conform): Add.
15592 (test-xfail-UNIX98/netdb.h/conform): Add.
15593 (test-xfail-UNIX98/signal.h/conform): Add.
15594 (test-xfail-UNIX98/semaphore.h/conform): Add.
15595 (test-xfail-UNIX98/regex.h/conform): Add.
15596 (test-xfail-UNIX98/aio.h/conform): Add.
15597 (test-xfail-UNIX98/ftw.h/conform): Add.
15598 (test-xfail-UNIX98/mqueue.h/conform): Add.
15599 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15600 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15601 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15602 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15603 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15604 (test-xfail-UNIX98/sys/types.h/conform): Add.
15605 (test-xfail-UNIX98/stdlib.h/conform): Add.
15606 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15607 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15608 (test-xfail-POSIX2008/netdb.h/conform): Add.
15609 (test-xfail-POSIX2008/signal.h/conform): Add.
15610 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15611 (test-xfail-POSIX2008/regex.h/conform): Add.
15612 (test-xfail-POSIX2008/aio.h/conform): Add.
15613 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15614 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15615 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15616 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15617 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15618 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15619 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15620 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15621 (test-xfail-XOPEN2K/signal.h/conform): Add.
15622 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15623 (test-xfail-XOPEN2K/regex.h/conform): Add.
15624 (test-xfail-XOPEN2K/aio.h/conform): Add.
15625 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15626 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15627 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15628 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15629 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15630 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15631 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15632 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15633 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15634 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15635 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15636 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15637 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15638 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15639 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15640 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15641 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15642 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15643 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15644 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15645 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15646 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15647 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15648 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15649 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15650 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15651 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15652 i386-gnu.
15653 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15654 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15655
15656 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15657
15658 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15659 --enable-obsolete for powerpc-linux-gnuspe.
15660
15661 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15662
15663 * conform/data/sys/un.h-data: Allow sun_ prefix.
15664 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15665 prototypes.
15666 * sysdeps/mach/include/mach.h: Likewise.
15667 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15668 * sysdeps/mach/include/mach_error.h: Likewise.
15669
15670 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15671
15672 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15673 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15674 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15675 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15676
15677 2018-04-16 Andreas Schwab <schwab@suse.de>
15678
15679 [BZ #19527]
15680 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15681
15682 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15683
15684 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15685 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15686
15687 2018-04-12 DJ Delorie <dj@redhat.com>
15688
15689 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15690 version to 4.16.
15691
15692 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15693
15694 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15695 (struct kernel_sigaction): Use the same definition on 31bit as is used
15696 on 64bit.
15697
15698 2018-04-09 Florian Weimer <fweimer@redhat.com>
15699
15700 [BZ #23037]
15701 * resolv/res_send.c (send_dg): Use designated initializers instead
15702 of assignment to zero-initialize other fields of struct mmsghdr.
15703
15704 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15705
15706 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15707 __READDIR_ALIAS): Undefine after usage.
15708 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15709 __READDIR_R_ALIAS): Likewise.
15710 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15711 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15712 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15713 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15714 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15715 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15716 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15717 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15718 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15719 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15720 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15721 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15722 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15723 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15724 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15725 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15726 * sysdeps/unix/sysv/linux/readdir.c: New file.
15727 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15728 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15729 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15730
15731 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15732
15733 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15734
15735 * manual/charset.texi (Converting a Character): Fix typo.
15736
15737 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15738
15739 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15740
15741 * sysdeps/arm/libm-test-ulps: Update.
15742
15743 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15744 as base implementation.
15745 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15746 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15747 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15748 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15749 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15750 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15751 remove unrequired definitions and update comments.
15752 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15753 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15754 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15755 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15756 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15757 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15758 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15759 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15760 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15761 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15762 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15763 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15764 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15765 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15766 and RESET_SA_RESTORER hooks.
15767
15768 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15769
15770 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15771
15772 2018-04-05 Florian Weimer <fweimer@redhat.com>
15773
15774 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15775 integer overflow, memory leak on error, and indeterminate errno
15776 value. Add a null wide character to terminate the result string.
15777 * manual/charset.texi (Converting a Character): Mention embedded
15778 null bytes in the mbrtowc input string. Explain what happens in
15779 the -2 result case. Do not claim that mbrtowc is simple or
15780 obvious to use. Adjust the description of the code example. Use
15781 @code, not @var, for concrete variables.
15782
15783 2018-04-05 Florian Weimer <fweimer@redhat.com>
15784
15785 * manual/examples/mbstouwcs.c: New file.
15786 * manual/charset.texi (Converting a Character): Include it.
15787
15788 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15789
15790 * include/dirent.h (dirfd): Add hidden proto.
15791 * dirent/dirfd.c (dirfd): Add hidden def.
15792 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15793 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15794
15795 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15796
15797 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15798 sin, cos and sincos to 1 ULP.
15799
15800 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15801
15802 [BZ #19818]
15803 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15804 symbols.
15805 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15806 * elf/tst-absolute-sym.c: New file.
15807 * elf/tst-absolute-sym-lib.c: New file.
15808 * elf/tst-absolute-sym-lib.lds: New file.
15809 * elf/Makefile (tests): Add `tst-absolute-sym'.
15810 (modules-names): Add `tst-absolute-sym-lib'.
15811 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15812 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15813 ($(objpfx)tst-absolute-sym): New dependency.
15814
15815 [BZ #19818]
15816 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15817 parameter.
15818 (SYMBOL_ADDRESS): New macro.
15819 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15820 SYMBOL_ADDRESS for symbol address calculation.
15821 * elf/dl-runtime.c (_dl_fixup): Likewise.
15822 (_dl_profile_fixup): Likewise.
15823 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15824 * elf/rtld.c (dl_main): Likewise.
15825 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15826 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15827 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15828 (elf_machine_rela): Likewise.
15829 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15830 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15831 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15832 (elf_machine_rela): Likewise.
15833 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15834 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15835 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15836 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15837 Likewise.
15838 (elf_machine_reloc): Likewise.
15839 (elf_machine_got_rel): Likewise.
15840 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15841 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15842 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15843 Likewise.
15844 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15845 Likewise.
15846 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15847 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15848 Likewise.
15849 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15850 Likewise.
15851 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15852 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15853 Likewise.
15854 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15855 Likewise.
15856 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15857 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15858
15859 2018-04-04 Zack Weinberg <zackw@panix.com>
15860
15861 * sysdeps/generic/internal-signals.h: Include signal.h,
15862 sigsetops.h, and stdbool.h.
15863 (__libc_signal_block_all): Actually block all signals.
15864 (__libc_signal_block_app): Likewise.
15865 (__libc_signal_restore_set): Actually restore the signal mask.
15866
15867 2018-04-04 Florian Weimer <fweimer@redhat.com>
15868
15869 inet: Actually build and run tst-deadline.
15870 * inet/Makefile (tests-internal): Add tst-deadline and do not
15871 overwrite the variable.
15872 (tests-static-internal): Remove variable.
15873
15874 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15875
15876 [BZ #22947]
15877 * bits/uio-ext.h (RWF_APPEND): New.
15878 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15879 * manual/llio.texi: Document RWF_APPEND.
15880 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15881 (RWF_SUPPORTED): Add RWF_APPEND.
15882
15883 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15884
15885 [BZ #22391]
15886 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15887 check for internal nptl signals.
15888 * nptl/sigaction.c (__sigaction): Likewise.
15889 * signal/sigaddset.c (sigaddset): Likewise.
15890 * signal/sigdelset.c (sigdelset): Likewise.
15891 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15892 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15893 value.
15894 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15895 to filter out internal nptl signals.
15896 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15897 also check realtime signals using standard macros.
15898 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15899 __is_internal_signal, __libc_signal_block_all,
15900 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15901 * sysdeps/nptl/sigfillset.c: Remove file.
15902 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15903 Change return to bool.
15904 (__clear_internal_signals): Remove SIGTIMER clean since it is
15905 equal to SIGCANEL on Linux.
15906 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15907 signal set was constructed using standard functions.
15908
15909 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15910
15911 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15912 ifname is too long.
15913 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15914 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15915 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15916 hidden def.
15917 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15918 * signal/sigaddset.c: Include <sigsetopts.h>.
15919 * signal/sigdelset.c: Likewise.
15920
15921 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15922
15923 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15924 (__cos): Likewise.
15925 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15926 logic as sin and cos.
15927
15928 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15929
15930 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15931 inputs. Return correct sign.
15932 (do_sincos): Remove small input check before do_sin, let do_sin set
15933 the sign.
15934 (__sin): Likewise.
15935 (__cos): Likewise.
15936
15937 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15938
15939 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15940 (do_cos_slow): Likewise.
15941 (do_sin_slow): Likewise.
15942 (reduce_and_compute): Likewise.
15943 (slow): Likewise.
15944 (slow1): Likewise.
15945 (slow2): Likewise.
15946 (sloww): Likewise.
15947 (sloww1): Likewise.
15948 (sloww2): Likewise.
15949 (bslow): Likewise.
15950 (bslow1): Likewise.
15951 (bslow2): Likewise.
15952 (cslow2): Likewise.
15953
15954 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15955
15956 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15957 (do_cos): Remove corp parameter and calculations.
15958 (do_sin): Likewise.
15959 (do_sincos): Remove cor variable.
15960 (__sin): Use do_sincos for huge inputs.
15961 (__cos): Likewise.
15962 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15963 (reduce_and_compute_sincos): Remove unused function.
15964
15965 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15966
15967 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15968 reduce_sincos, improve accuracy to 136 bits.
15969 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15970 (__sin): Use improved reduction and simplified do_sincos calculation.
15971 (__cos): Likewise.
15972 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15973
15974 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15975
15976 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15977 (do_sincos_2): Likewise.
15978 (__sin): Remove middle range reduction case.
15979 (__cos): Likewise.
15980 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15981 reduction case.
15982
15983 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15984
15985 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15986 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15987 inputs.
15988 (__cos): Likewise.
15989 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15990
15991 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15992
15993 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15994 version to 4.16
15995
15996 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15997
15998 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15999 Remove definitions.
16000 (opendir_oflags): Use O_DIRECTORY regardless.
16001 (__opendir, __opendirat): Remove need_isdir_precheck usage.
16002 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
16003
16004 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16005
16006 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
16007 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
16008 macros.
16009 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
16010 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
16011 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
16012 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
16013 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
16014 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
16015
16016 * htl/Makefile: Bump licence to LGPL 2.1+.
16017 * htl/alloca_cutoff.c: Likewise.
16018 * htl/cthreads-compat.c: Likewise.
16019 * htl/lockfile.c: Likewise.
16020 * htl/pt-alloc.c: Likewise.
16021 * htl/pt-cancel.c: Likewise.
16022 * htl/pt-cleanup.c: Likewise.
16023 * htl/pt-create.c: Likewise.
16024 * htl/pt-dealloc.c: Likewise.
16025 * htl/pt-detach.c: Likewise.
16026 * htl/pt-exit.c: Likewise.
16027 * htl/pt-getattr.c: Likewise.
16028 * htl/pt-initialize.c: Likewise.
16029 * htl/pt-internal.h: Likewise.
16030 * htl/pt-join.c: Likewise.
16031 * htl/pt-self.c: Likewise.
16032 * htl/pt-setcancelstate.c: Likewise.
16033 * htl/pt-setcanceltype.c: Likewise.
16034 * htl/pt-sigmask.c: Likewise.
16035 * htl/pt-spin-inlines.c: Likewise.
16036 * htl/pt-testcancel.c: Likewise.
16037 * htl/pt-yield.c: Likewise.
16038 * htl/tests/test-1.c: Likewise.
16039 * htl/tests/test-10.c: Likewise.
16040 * htl/tests/test-11.c: Likewise.
16041 * htl/tests/test-12.c: Likewise.
16042 * htl/tests/test-13.c: Likewise.
16043 * htl/tests/test-14.c: Likewise.
16044 * htl/tests/test-15.c: Likewise.
16045 * htl/tests/test-16.c: Likewise.
16046 * htl/tests/test-17.c: Likewise.
16047 * htl/tests/test-2.c: Likewise.
16048 * htl/tests/test-3.c: Likewise.
16049 * htl/tests/test-4.c: Likewise.
16050 * htl/tests/test-5.c: Likewise.
16051 * htl/tests/test-6.c: Likewise.
16052 * htl/tests/test-7.c: Likewise.
16053 * htl/tests/test-8.c: Likewise.
16054 * htl/tests/test-9.c: Likewise.
16055 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
16056 * sysdeps/htl/bits/cancelation.h: Likewise.
16057 * sysdeps/htl/bits/pthread-np.h: Likewise.
16058 * sysdeps/htl/bits/pthread.h: Likewise.
16059 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
16060 * sysdeps/htl/bits/semaphore.h: Likewise.
16061 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
16062 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
16063 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
16064 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
16065 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
16066 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
16067 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
16068 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
16069 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
16070 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
16071 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
16072 * sysdeps/htl/old_pt-atfork.c: Likewise.
16073 * sysdeps/htl/pt-atfork.c: Likewise.
16074 * sysdeps/htl/pt-attr-destroy.c: Likewise.
16075 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
16076 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
16077 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
16078 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
16079 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
16080 * sysdeps/htl/pt-attr-getscope.c: Likewise.
16081 * sysdeps/htl/pt-attr-getstack.c: Likewise.
16082 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16083 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16084 * sysdeps/htl/pt-attr-init.c: Likewise.
16085 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16086 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16087 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16088 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16089 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16090 * sysdeps/htl/pt-attr-setscope.c: Likewise.
16091 * sysdeps/htl/pt-attr-setstack.c: Likewise.
16092 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16093 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16094 * sysdeps/htl/pt-attr.c: Likewise.
16095 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16096 * sysdeps/htl/pt-barrier-init.c: Likewise.
16097 * sysdeps/htl/pt-barrier-wait.c: Likewise.
16098 * sysdeps/htl/pt-barrier.c: Likewise.
16099 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16100 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16101 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16102 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16103 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16104 * sysdeps/htl/pt-cond-destroy.c: Likewise.
16105 * sysdeps/htl/pt-cond-init.c: Likewise.
16106 * sysdeps/htl/pt-cond-signal.c: Likewise.
16107 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16108 * sysdeps/htl/pt-cond-wait.c: Likewise.
16109 * sysdeps/htl/pt-cond.c: Likewise.
16110 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16111 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16112 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16113 * sysdeps/htl/pt-condattr-init.c: Likewise.
16114 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16115 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16116 * sysdeps/htl/pt-destroy-specific.c: Likewise.
16117 * sysdeps/htl/pt-equal.c: Likewise.
16118 * sysdeps/htl/pt-getconcurrency.c: Likewise.
16119 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16120 * sysdeps/htl/pt-getschedparam.c: Likewise.
16121 * sysdeps/htl/pt-getspecific.c: Likewise.
16122 * sysdeps/htl/pt-init-specific.c: Likewise.
16123 * sysdeps/htl/pt-key-create.c: Likewise.
16124 * sysdeps/htl/pt-key-delete.c: Likewise.
16125 * sysdeps/htl/pt-key.h: Likewise.
16126 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16127 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16128 * sysdeps/htl/pt-mutex-init.c: Likewise.
16129 * sysdeps/htl/pt-mutex-lock.c: Likewise.
16130 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16131 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16132 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16133 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16134 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16135 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16136 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16137 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16138 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16139 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16140 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16141 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16142 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16143 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16144 * sysdeps/htl/pt-mutexattr.c: Likewise.
16145 * sysdeps/htl/pt-once.c: Likewise.
16146 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16147 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16148 * sysdeps/htl/pt-rwlock-init.c: Likewise.
16149 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16150 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16151 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16152 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16153 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16154 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16155 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16156 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16157 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16158 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16159 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16160 * sysdeps/htl/pt-setconcurrency.c: Likewise.
16161 * sysdeps/htl/pt-setschedparam.c: Likewise.
16162 * sysdeps/htl/pt-setschedprio.c: Likewise.
16163 * sysdeps/htl/pt-setspecific.c: Likewise.
16164 * sysdeps/htl/pt-spin.c: Likewise.
16165 * sysdeps/htl/pt-startup.c: Likewise.
16166 * sysdeps/htl/pthread.h: Likewise.
16167 * sysdeps/htl/sem-close.c: Likewise.
16168 * sysdeps/htl/sem-destroy.c: Likewise.
16169 * sysdeps/htl/sem-getvalue.c: Likewise.
16170 * sysdeps/htl/sem-init.c: Likewise.
16171 * sysdeps/htl/sem-open.c: Likewise.
16172 * sysdeps/htl/sem-post.c: Likewise.
16173 * sysdeps/htl/sem-timedwait.c: Likewise.
16174 * sysdeps/htl/sem-trywait.c: Likewise.
16175 * sysdeps/htl/sem-unlink.c: Likewise.
16176 * sysdeps/htl/sem-wait.c: Likewise.
16177 * sysdeps/hurd/htl/pt-kill.c: Likewise.
16178 * sysdeps/i386/htl/pt-machdep.h: Likewise.
16179 * sysdeps/mach/htl/pt-block.c: Likewise.
16180 * sysdeps/mach/htl/pt-spin.c: Likewise.
16181 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16182 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16183 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16184 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16185 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16186 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16187 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16188 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16189 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16190 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16191 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16192 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16193 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16194 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16195 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16196 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16197 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16198 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16199 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16200 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16201 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16202 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16203 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16204 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16205 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16206 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16207 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16208 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16209 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16210 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16211 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16212 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16213 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16214 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16215 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16216 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16217 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16218 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16219 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16220 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16221 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16222 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16223 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16224
16225 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16226 * README: Remove the mention of out-of-tree patches needed for
16227 GNU/Hurd.
16228
16229 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16230 (UTIME_NOW, UTIME_OMIT): Define macros.
16231
16232 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16233 instead of pthread_detach.
16234 (__cthread_fork): Call __pthread_create instead of pthread_create.
16235 (__cthread_keycreate): Call __pthread_key_create instead of
16236 pthread_key_create.
16237 (__cthread_getspecific): Call __pthread_getspecific instead of
16238 pthread_getspecific.
16239 (__cthread_setspecific): Call __pthread_setspecific instead of
16240 pthread_setspecific.
16241 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16242 __pthread_mutex_unlock instead of pthread_mutex_lock and
16243 pthread_mutex_unlock.
16244 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16245 ___pthread_get_cleanup_stack.
16246 (__pthread_get_cleanup_stack): New strong alias.
16247 * htl/pt-create.c: Include <pthreadP.h>.
16248 (entry_point): Call __pthread_exit instead of pthread_exit.
16249 (pthread_create): Rename to __pthread_create.
16250 (pthread_create): New strong alias.
16251 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16252 (pthread_detach): New strong alias.
16253 (__pthread_detach): Call __pthread_cond_broadcast instead of
16254 pthread_cond_broadcast.
16255 * htl/pt-exit.c: Include <pthreadP.h>.
16256 (__pthread_exit): Call __pthread_setcancelstate and
16257 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16258 __pthread_get_cleanup_stack.
16259 * htl/pt-testcancel.c: Include <pthreadP.h>.
16260 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16261 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16262 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16263 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16264 pthread_attr_getstacksize.
16265 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16266 Rename to __pthread_attr_getstackaddr.
16267 (pthread_attr_getstackaddr): New strong alias.
16268 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16269 Rename to __pthread_attr_getstacksize.
16270 (pthread_attr_getstacksize): New strong alias.
16271 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16272 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16273 (pthread_attr_setstack): New strong alias.
16274 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16275 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16276 pthread_attr_getstacksize, pthread_attr_setstacksize and
16277 pthread_attr_setstackaddr.
16278 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16279 Rename to __pthread_attr_setstackaddr.
16280 (pthread_attr_setstackaddr): New strong alias.
16281 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16282 Rename to __pthread_attr_setstacksize.
16283 (pthread_attr_setstacksize): New strong alias.
16284 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16285 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16286 pthread_exit.
16287 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16288 (__pthread_key_create): New hidden def.
16289 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16290 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16291 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16292 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16293 __pthread_setspecific, __pthread_setcancelstate,
16294 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16295 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16296 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16297 declarations.
16298 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16299 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16300 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16301 (pthread_attr_setstackaddr): New strong alias.
16302 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16303 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16304 (pthread_attr_setstacksize): New strong alias.
16305 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16306 (call_exit): Call __pthread_exit instead of pthread_exit.
16307 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16308 (_pthread_mutex_init): New hidden definition.
16309 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16310 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16311 instead of pthread_attr_init and pthread_attr_setstack.
16312
16313 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16314 __vm_deallocate instead of vm_allocate and vm_deallocate.
16315 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16316 setenv.
16317 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16318 of geteuid.
16319 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16320 strdup.
16321 * hurd/siginfo.c: Include <libioP.h>.
16322 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16323 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16324 munmap.
16325 * mach/devstream.c: Include <libioP.h>.
16326 (dealloc_ref): Call __mach_port_deallocate instead of
16327 mach_port_deallocate.
16328 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16329 Call __mach_port_deallocate instead of mach_port_deallocate.
16330 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16331 pathconf.
16332 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16333 munmap.
16334 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16335 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16336 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16337 of munmap.
16338 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16339 of close.
16340 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16341 instead of sysconf.
16342 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16343 __clock_gettime instead of clock_gettime.
16344 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16345 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16346 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16347 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16348 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16349 tcgetattr.
16350 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16351 __clock_gettime and __nanosleep instead of clock_gettime and
16352 nanosleep.
16353 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16354 __hurd_catch_signal.
16355 (hurd_catch_signal): New strong alias.
16356 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16357 __hurd_catch_signal instead of hurd_catch_signal.
16358 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16359 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16360 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16361 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16362 (_hurd_thread_sigstate): Add hidden def.
16363 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16364 mutex_unlock.
16365 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16366 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16367 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16368 __hurd_file_name_path_lookup.
16369 (hurd_file_name_path_lookup): New strong alias.
16370 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16371 hurd_file_name_path_lookup.
16372 * mach/errstring.c (mach_error_type): Add hidden def.
16373 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16374 * mach/mutex-init.c (__mutex_init): Add hidden def.
16375 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16376 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16377 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16378 * sysdeps/mach/hurd/getcwd.c
16379 (_hurd_canonicalize_directory_name_internal): Rename to
16380 __hurd_canonicalize_directory_name_internal.
16381 (_hurd_canonicalize_directory_name_internal): New strong alias.
16382 (__canonicalize_directory_name_internal, __getcwd): Call
16383 __hurd_canonicalize_directory_name_internal instead of
16384 _hurd_canonicalize_directory_name_internal.
16385 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16386 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16387 hidden defs.
16388 * sysdeps/hurd/include/hurd.h: New file.
16389 * sysdeps/hurd/include/hurd/fd.h: New file.
16390 * sysdeps/hurd/include/hurd/signal.h: New file.
16391 * sysdeps/mach/include/lock-intern.h: New file.
16392 * sysdeps/mach/include/mach.h: New file.
16393 * sysdeps/mach/include/mach/mig_support.h: New file.
16394 * sysdeps/mach/include/mach_error.h: New file.
16395 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16396 prototype.
16397 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16398 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16399 _HEADER_H_HIDDEN_DEF macro.
16400 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16401 _hurd_fd_error_signal): Add hidden prototype.
16402 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16403 hidden def.
16404 * libio/iolibio.h (_IO_puts): New hidden prototype.
16405 * libio/ioputs.c (_IO_puts): New hidden def.
16406 * sysdeps/mach/hurd/localplt.data: New file.
16407
16408 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16409 Amos Jeffries <squid3@treenet.co.nz>
16410 David Michael <fedora.dm0@gmail.com>
16411 Marco Gerards <marco@gnu.org>
16412 Marcus Brinkmann <marcus@gnu.org>
16413 Neal H. Walfield <neal@gnu.org>
16414 Pino Toscano <toscano.pino@tiscali.it>
16415 Richard Braun <rbraun@sceen.net>
16416 Roland McGrath <roland@gnu.org>
16417 Samuel Thibault <samuel.thibault@ens-lyon.org>
16418 Thomas DiModica <ricinwich@yahoo.com>
16419 Thomas Schwinge <tschwinge@gnu.org>
16420
16421 * htl: New directory.
16422 * sysdeps/htl: New directory.
16423 * sysdeps/hurd/htl: New directory.
16424 * sysdeps/i386/htl: New directory.
16425 * sysdeps/mach/htl: New directory.
16426 * sysdeps/mach/hurd/htl: New directory.
16427 * sysdeps/mach/hurd/i386/htl: New directory.
16428 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16429 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16430 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16431
16432 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16433
16434 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16435 signals in thread created for runing timers.
16436
16437 2018-04-01 Florian Weimer <fweimer@redhat.com>
16438
16439 * support/support_format_addrinfo.c (support_format_addrinfo):
16440 Include unknown error number in formatted result.
16441
16442 2018-03-29 Florian Weimer <fweimer@redhat.com>
16443
16444 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16445 capture SIGBUS.
16446
16447 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16448
16449 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16450 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16451 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16452 (__ASSUME_CLONE_BACKWARDS): Define.
16453
16454 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16455
16456 [BZ #23024]
16457 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16458 early when linux sentinel value is set.
16459
16460 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16461
16462 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16463
16464 2018-03-27 Andreas Schwab <schwab@suse.de>
16465
16466 [BZ #23005]
16467 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16468 allocation of private copy of nsaddr_list fails.
16469
16470 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16471
16472 [BZ #16552]
16473 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16474 * sysdeps/unix/sysv/linux/umount.c: ... here.
16475 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16476 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16477 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16478 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16480 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16481 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16482
16483 2018-03-26 Andreas Schwab <schwab@suse.de>
16484
16485 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16486 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16487 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16488 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16489 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16490 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16491 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16492 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16493 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16494 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16495 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16496 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16497 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16498 (R_RISCV_NUM): Define.
16499
16500 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16501
16502 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16503 TLS declaration of errno.
16504 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16505 __libc_setup_tls.
16506 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16507 (ARCH_SETUP_TLS): Likewise.
16508 * sysdeps/mach/hurd/libc-start.h: New file copied from
16509 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16510 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16511 instead of __libc_setup_tls.
16512 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16513 __libc_setup_tls before initializing libpthread and running _hurd_init
16514 which starts the signal thread.
16515 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16516 Declare function.
16517 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16518
16519 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16520
16521 [BZ #22998]
16522 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16523 after it is defined.
16524
16525 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16526 Max Horn <max@quendi.de>
16527
16528 [BZ #22644]
16529 CVE-2017-18269
16530 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16531 branch conditions.
16532 * string/test-memmove.c (do_test2): New testcase.
16533
16534 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16535
16536 * sysdeps/generic/frame.h: Remove file.
16537 * sysdeps/arm/frame.h: Likewise.
16538 * sysdeps/hppa/frame.h: Likewise.
16539 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16540 macro.
16541 (GET_FRAME): Likewise.
16542 (GET_STACK): Likewise.
16543 (CALL_SIGHANDLER): Likewise.
16544 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16545 Likewise.
16546 (GET_FRAME): Likewise.
16547 (GET_STACK): Likewise.
16548 (CALL_SIGHANDLER): Likewise.
16549 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16550 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16551 (GET_FRAME): Likewise.
16552 (GET_STACK): Likewise.
16553 (CALL_SIGHANDLER): Likewise.
16554 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16555 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16556 (GET_FRAME): Likewise.
16557 (GET_STACK): Likewise.
16558 (ADVANCE_STACK_FRAME): Likewise.
16559 (CALL_SIGHANDLER): Likewise.
16560 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16561 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16562 (GET_FRAME): Likewise.
16563 (GET_STACK): Likewise.
16564 (CALL_SIGHANDLER): Likewise.
16565 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16566 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16567 (GET_FRAME): Likewise.
16568 (GET_STACK): Likewise.
16569 (CALL_SIGHANDLER): Likewise.
16570 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16571 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16572 (GET_FRAME): Likewise.
16573 (GET_STACK): Likewise.
16574 (CALL_SIGHANDLER): Likewise.
16575 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16576 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16577 (GET_FRAME): Likewise.
16578 (GET_STACK): Likewise.
16579 (CALL_SIGHANDLER): Likewise.
16580 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16581 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16582 (GET_FRAME): Likewise.
16583 (GET_STACK): Likewise.
16584 (CALL_SIGHANDLER): Likewise.
16585 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16586 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16587 (GET_FRAME): Likewise.
16588 (GET_STACK): Likewise.
16589 (CALL_SIGHANDLER): Likewise.
16590 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16591 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16592 (GET_FRAME): Likewise.
16593 (GET_STACK): Likewise.
16594 (CALL_SIGHANDLER): Likewise.
16595 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16596 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16597 (GET_FRAME): Likewise.
16598 (GET_STACK): Likewise.
16599 (CALL_SIGHANDLER): Likewise.
16600 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16601 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16602 (GET_FRAME): Likewise.
16603 (GET_STACK): Likewise.
16604 (CALL_SIGHANDLER): Likewise.
16605 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16606 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16607 (FIRST_FRAME_POINTER): Likewise.
16608 (ADVANCE_STACK_FRAME): Likewise.
16609 (GET_STACK): Likewise.
16610 (GET_FRAME): Likewise.
16611 (CALL_SIGHANDLER): Likewise.
16612 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16613 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16614 (ADVANCE_STACK_FRAME): Likewise.
16615 (GET_STACK): Likewise.
16616 (GET_FRAME): Likewise.
16617 (CALL_SIGHANDLER): Likewise.
16618 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16619 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16620 (GET_FRAME): Likewise.
16621 (GET_STACK): Likewise.
16622 (CALL_SIGHANDLER): Likewise.
16623 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16624 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16625 (GET_FRAME): Likewise.
16626 (GET_STACK): Likewise.
16627 (CALL_SIGHANDLER): Likewise.
16628
16629 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16630
16631 * sysdeps/x86_64/backtrace.c: Move to ....
16632 * debug/backtrace.c: ... here.
16633 * sysdeps/aarch64/backtrace.c: Remove file.
16634 * sysdeps/alpha/backtrace.c: Likewise.
16635 * sysdeps/hppa/backtrace.c: Likewise.
16636 * sysdeps/ia64/backtrace.c: Likewise.
16637 * sysdeps/mips/backtrace.c: Likewise.
16638 * sysdeps/nios2/backtrace.c: Likewise.
16639 * sysdeps/riscv/backtrace.c: Likewise.
16640 * sysdeps/sh/backtrace.c: Likewise.
16641 * sysdeps/tile/backtrace.c: Likewise.
16642
16643 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16644
16645 [BZ #22987]
16646 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16647 function.
16648 (fdimf): Likewise.
16649 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16650
16651 [BZ #17343]
16652 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16653 possibly overflowing computations.
16654
16655 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16656
16657 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16658 values from Linux-specific section now that it is in the GNU section.
16659 * sysdeps/gnu/errlist.c: Regenerate.
16660
16661 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16662
16663 * math/Makefile (libm-narrow-fns): Add sub.
16664 (libm-test-funcs-narrow): Likewise.
16665 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16666 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16667 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16668 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16669 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16670 (NARROW_SUB_TRIVIAL): Likewise.
16671 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16672 macro.
16673 (__dsubl): Likewise.
16674 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16675 dsub.
16676 (CFLAGS-nldbl-dsub.c): New variable.
16677 (CFLAGS-nldbl-fsub.c): Likewise.
16678 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16679 __nldbl_dsubl.
16680 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16681 prototype.
16682 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16683 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16684 * math/auto-libm-test-in: Add tests of sub.
16685 * math/auto-libm-test-out-narrow-sub: New generated file.
16686 * math/libm-test-narrow-sub.inc: New file.
16687 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16688 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16689 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16690 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16691 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16692 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16693 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16694 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16695 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16696 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16697 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16698 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16699 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16700 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16701 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16702 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16703 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16704 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16705 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16706 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16707 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16708 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16709 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16710 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16711 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16712 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16713 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16714 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16715 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16716 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16717 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16718 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16720 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16721 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16722 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16723 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16724 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16725 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16726 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16727 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16728 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16729 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16730 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16731 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16732 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16733
16734 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16735
16736 [BZ #20079]
16737 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16738
16739 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16740
16741 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16742
16743 2018-03-18 Richard Braun <rbraun@sceen.net>
16744
16745 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16746 thread reference.
16747
16748 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16749
16750 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16751 (__libc_cleanup_fct): Define function.
16752 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16753 __libc_cleanup_end): Rewrite implementation using
16754 __attribute__ ((__cleanup__)).
16755 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16756 * hurd/Makefile (routines): Add hurdlock.
16757 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16758 interface.
16759 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16760 * hurd/hurdpid.c: Include <lowlevellock.h>
16761 (_S_msg_proc_newids): Use lll_wait to synchronize.
16762 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16763 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16764 * mach/Makefile (lock-headers): Remove machine-lock.h.
16765 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16766 <machine-lock.h>.
16767 (__spin_lock_t): New type.
16768 (__SPIN_LOCK_INITIALIZER): New macro.
16769 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16770 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16771 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16772 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16773 (__mutex_init): Initialize with lll.
16774 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16775 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16776 needing lll.
16777 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16778 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16779 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16780 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16781 (__setpgid): Use lll for synchronization.
16782 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16783 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16784 instead of <cthreads.h>.
16785 (_IO_lock_inexpensive): New macro
16786 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16787 (__libc_lock_self0): New declaration.
16788 (__libc_lock_owner_self): New macro.
16789 (__libc_key_t): Remove type.
16790 (_LIBC_LOCK_INITIALIZER): New macro.
16791 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16792 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16793 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16794 __libc_lock_define_initialized_recursive,
16795 __rtld_lock_define_initialized_recursive,
16796 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16797 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16798 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16799 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16800 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16801 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16802 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16803 New macros.
16804 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16805 * hurd/hurdlock.c: New file.
16806 * hurd/hurdlock.h: New file.
16807 * mach/lowlevellock.h: New file
16808
16809 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16810
16811 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16812 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16813 when opening a symlink with O_NOFOLLOW.
16814 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16815 path when flags contains O_NOFOLLOW.
16816 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16817 if flags contains O_DIRECTORY and the result is a directory.
16818 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16819 oneself when the pointer given in D is nul (as set by ext2fs).
16820 * sysdeps/mach/hurd/mlockall.c: New file.
16821 * sysdeps/mach/hurd/munlockall.c: New file.
16822
16823 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16824
16825 * hurd/hurdsig.c: Include <pthread.h>.
16826 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16827 get the signal thread stack layout.
16828 * hurd/Makefile (headers): Remove threadvar.h.
16829 (inline-headers): Remove threadvar.h.
16830 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16831 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16832 __hurd_threadvar_max, __hurd_errno_location.
16833 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16834 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16835 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16836 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16837 unless TLS is not initialized yet, in which case we do not need a
16838 critical section yet anyway.
16839 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16840 <machine-sp.h>.
16841 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16842 declarations.
16843 (__hurd_threadvar_index): Remove enum.
16844 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16845 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16846 inlines.
16847 (__hurd_reply_port0): New variable declaration.
16848 (__hurd_local_reply_port): New macro.
16849 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16850 (interrupted_reply_port_location): Add thread_t parameter. Use it
16851 with THREAD_TCB to access thread-local variables.
16852 (_hurdsig_abort_rpcs): Pass ss->thread to
16853 interrupted_reply_port_location.
16854 (_hurd_internal_post_signal): Likewise.
16855 (_hurdsig_init): Use presence of cthread_fork instead of
16856 __hurd_threadvar_stack_mask to start signal thread by hand.
16857 Remove signal thread threadvar initialization.
16858 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16859 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16860 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16861 of threadvar.
16862 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16863 __libc_lock_self0.
16864 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16865 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16866 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16867 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16868 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16869 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16870 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16871 define variables.
16872 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16873 <hurd/threadvar.h>.
16874 [IS_IN(rtld)] (rtld_errno): New variable.
16875 [IS_IN(rtld)] (__errno_location): New weak function.
16876 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16877 * sysdeps/mach/hurd/errno.c: Remove file.
16878 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16879 (__fork): Remove THREADVAR_SPACE macro and its use.
16880 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16881 variable.
16882 (init): Do not initialize threadvar.
16883 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16884 symbol.
16885 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16886 __hurd_local_reply_port instead of threadvar.
16887 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16888 _hurd_sigstate fields.
16889 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16890 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16891 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16892 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16893 instead of threadvar.
16894 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16895 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16896 (use_threadvar, global_reply_port): Remove variables.
16897 (__hurd_reply_port0): New variable.
16898 (__mig_get_reply_port): Use __hurd_local_reply_port and
16899 __hurd_reply_port0 instead of threadvar.
16900 (__mig_dealloc_reply_port): Likewise.
16901 (__mig_init): Do not initialize threadvar.
16902 * sysdeps/mach/hurd/profil.c: Fix comment.
16903 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16904 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16905 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16906 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16907 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16908 __cthread_setspecific.
16909 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16910 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16911 __cthread_t instead of cthread_fork, cthread_detach,
16912 pthread_getattr_np, pthread_attr_getstack.
16913 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16914 __cthread_keycreate.
16915 (cthread_getspecific): Rename to __cthread_getspecific.
16916 (cthread_setspecific): Rename to __cthread_setspecific.
16917 (__libc_getspecific): Use __cthread_getspecific instead of
16918 cthread_getspecific.
16919 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16920 __cthread_keycreate instead of cthread_keycreate.
16921 (__libc_setspecific): Use __cthread_setspecific instead of
16922 cthread_setspecific.
16923 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16924 Likewise.
16925 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16926 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16927 testing whether it is defined.
16928
16929 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16930
16931 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16932 Define macro.
16933 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16934 * sysdeps/mach/i386/thread_state.h
16935 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16936 i386_THREAD_STATE.
16937 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16938 i386_THREAD_STATE.
16939 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16940
16941 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16942 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16943
16944 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16945 macros.
16946 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16947 descriptor instead of creating a new one.
16948 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16949
16950 * mach/setup-thread.c: Include <ldsodefs.h>.
16951 (__mach_setup_thread): Call _dl_allocate_tls, pass
16952 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16953 MACHINE_THREAD_STATE_FLAVOR, before getting
16954 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16955 MACHINE_THREAD_STATE_FLAVOR with the result.
16956 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16957 MACHINE_THREAD_STATE_FIX_NEW.
16958 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16959 too. Add original thread parameter.
16960
16961 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16962
16963 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16964 Remove inline function.
16965
16966 * sysdeps/i386/fpu/libm-test-ulps: Update.
16967 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16968
16969 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16970
16971 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16972 commit.
16973
16974 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16975
16976 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16977 (__sincos_code): Remove define and undefine.
16978 [__FAST_MATH__] (__sincos): Remove inline function.
16979 [__FAST_MATH__] (__sincosf): Remove inline function.
16980 [__FAST_MATH__] (__sincosl): Remove inline function.
16981 (__atan2l): Remove inline functions.
16982 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16983 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16984 function.
16985 (floor): Remove inline function.
16986 (ceil): Likewise.
16987 [__FAST_MATH__] (__ldexp_code): Remove macro.
16988 [__FAST_MATH__] (ldexp): Remove inline function.
16989 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16990 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16991 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16992 [__USE_ISOC99] (__lrint_code): Remove macro.
16993 [__USE_ISOC99] (__llrint_code): Likewise.
16994 [__USE_ISOC99] (lrintf): Remove inline function.
16995 [__USE_ISOC99] (lrint): Likewise.
16996 [__USE_ISOC99] (lrintl): Likewise.
16997 [__USE_ISOC99] (llrint): Likewise.
16998 [__USE_ISOC99] (llrintf): Likewise.
16999 [__USE_ISOC99] (llrintl): Likewise.
17000
17001 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17002
17003 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
17004 (__ieee754_sqrtf): Remove.
17005 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
17006 (__ieee754_sqrtf): Remove.
17007 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
17008 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17009 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
17010 (__ieee754_sqrtf): Remove.
17011 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
17012 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
17013 (sqrtf): Remove.
17014 (sqrtl): Remove.
17015 (__ieee754_sqrt): Remove.
17016 (__ieee754_sqrtf): Remove.
17017 (__ieee754_sqrtl): Remove.
17018 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
17019 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
17020 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
17021 (__ieee754_sqrtf): Remove.
17022 (__ieee754_sqrtl): Remove.
17023
17024 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17025
17026 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
17027 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
17028 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
17029 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
17030 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
17031 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
17032 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
17033 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
17034 Likewise.
17035 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
17036 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
17037 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
17038 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
17039 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
17040 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
17041 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
17042 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
17043 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
17044 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17045 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
17046 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
17047 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
17048 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
17049 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
17050 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
17051 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
17052 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
17053 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
17054 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
17055 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
17056 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
17057 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
17058 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
17059 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
17060 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
17061 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
17062 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
17063 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
17064 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
17065 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
17066 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
17067 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
17068 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
17069 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
17070 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
17071 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
17072 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
17073 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
17074 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
17075
17076 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17077
17078 * include/math.h (sqrt): Declare with asm redirect.
17079 (sqrtf): Likewise.
17080 (sqrtl): Likewise.
17081 (sqrtf128): Likewise.
17082 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17083 nonlib and libnldbl with -fmath-errno.
17084 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17085 * math/w_sqrt_template.c: Likewise.
17086 * math/w_sqrtf_compat.c: Likewise.
17087 * math/w_sqrtl_compat.c: Likewise.
17088 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17089 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17090 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17091 complex.h.
17092
17093 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17094
17095 * benchtests/Makefile: Define _ISOMAC.
17096 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17097 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17098 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17099 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17100 * benchtests/bench-timing.h: Define attribute_hidden.
17101
17102 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
17103
17104 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17105 mov + lsr.
17106
17107 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17108
17109 [BZ #22963]
17110 * localedata/locales/cs_CZ (mon): Rename to...
17111 (alt_mon): This.
17112 (mon): Import from CLDR (genitive case).
17113
17114 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17115
17116 [BZ #22937]
17117 * localedata/locales/el_CY (abmon): Rename to...
17118 (ab_alt_mon): This.
17119 (abmon): Import from CLDR (abbreviated genitive case).
17120 * localedata/locales/el_GR (abmon): Rename to...
17121 (ab_alt_mon): This.
17122 (abmon): Import from CLDR (abbreviated genitive case).
17123
17124 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17125
17126 [BZ #22932]
17127 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17128
17129 2018-03-15 Robert Buj <robert.buj@gmail.com>
17130
17131 [BZ #22848]
17132 * localedata/locales/ca_ES (abmon): Rename to...
17133 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17134 (mon): Rename to...
17135 (alt_mon): This.
17136 (abmon): Import from CLDR (genitive case, month names preceded by
17137 "de" or "d’").
17138 (mon): Likewise.
17139 (abday): Synchronize with CLDR.
17140 (d_t_fmt): Likewise.
17141 (d_fmt): Likewise.
17142 (am_pm): Likewise.
17143
17144 (LC_TIME): Improve indentation.
17145 (LC_TELEPHONE): Likewise.
17146 (LC_NAME): Likewise.
17147 (LC_ADDRESS): Likewise.
17148
17149 2018-03-14 Joseph Myers <joseph@codesourcery.com>
17150
17151 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17152 (lrintf): Remove definitions used only with old GCC.
17153 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17154 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17155 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17156 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17157 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17158 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17159 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17160 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17161 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17162 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17163 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17164 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17165 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17166 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17167 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17168 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17169 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17170 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17171 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17172 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17173 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17174 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17175 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17176 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17177 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17178 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17179 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17180 [__FAST_MATH__] (__M_SQRT2): Remove macro.
17181
17182 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17183
17184 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17185 instruction to unbreak builds with binutils 2.26 and older.
17186
17187 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17188
17189 * sysdeps/aarch64/strncmp.S (count): New macro.
17190 (strncmp): Store misaligned length in SRC1 in COUNT.
17191 (mutual_align): Adjust.
17192 (misaligned8): Load dword at a time when it is safe.
17193
17194 2018-03-12 Zack Weinberg <zackw@panix.com>
17195
17196 [BZ #1190]
17197 [BZ #19476]
17198 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17199 if the _IO_EOF_SEEN bit is already set; update commentary.
17200 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17201 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17202
17203 * support/support_openpty.c, support/tty.h: New files.
17204 * support/Makefile (libsupport-routines): Add support_openpty.
17205
17206 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17207 New test cases.
17208 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17209 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17210
17211 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17212
17213 * po/pt_BR.po: Update translations.
17214
17215 2018-03-12 David Michael <fedora.dm0@gmail.com>
17216
17217 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17218 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17219 get a port to the startup server.
17220
17221 2018-03-11 Zack Weinberg <zackw@panix.com>
17222
17223 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17224 before nldbl-compat.h.
17225
17226 2018-03-10 Zack Weinberg <zackw@panix.com>
17227
17228 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17229 math.h or math_private.h.
17230
17231 * sysdeps/alpha/fpu/s_isnan.c
17232 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17233 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17234 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17235 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17236 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17237 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17238 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17239 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17240 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17241 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17243 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17244 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17245 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17246 Include math_private.h.
17247
17248 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17249 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17250 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17251 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17252 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17253 * sysdeps/powerpc/power7/fpu/s_logb.c:
17254 Include math.h and math_private.h.
17255
17256 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17257 uses of $at in .set noat / .set at.
17258
17259 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17260
17261 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17262 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17263 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17264 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17265 Likewise.
17266
17267 2018-03-09 Florian Weimer <fweimer@redhat.com>
17268
17269 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17270 in comment.
17271
17272 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17273
17274 [BZ #22919]
17275 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17276 Add nop before __startcontext, add explaining comments.
17277
17278 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17279
17280 [BZ #22926]
17281 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17282 empty for __SPE__.
17283 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17284 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17285 Do not build hardware transactional code for __SPE__.
17286 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17287 (__lll_trylock_elision): Likewise.
17288 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17289 (__lll_unlock_elision): Likewise.
17290
17291 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17292 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17293 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17294 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17295 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17296 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17297 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17298 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17299 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17300 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17301 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17302 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17303 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17304 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17305 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17306 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17307 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17308 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17309 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17310 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17311 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17312 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17313 (__ASSUME_CLONE_BACKWARDS): Define.
17314 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17315 __clone2 if __NR_clone2 is defined.
17316 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17317 (__ASSUME_CLONE_BACKWARDS): Likewise.
17318 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17319 (__ASSUME_CLONE_BACKWARDS): Likewise.
17320 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17321 (__ASSUME_CLONE2): Likewise.
17322 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17323 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17324 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17325 variants and the define architecture can use.
17326 (__ASSUME_CLONE_DEFAULT): Define as default.
17327 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17328 (__ASSUME_CLONE_BACKWARDS): Likewise.
17329 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17330 (__ASSUME_CLONE_BACKWARDS): Likewise.
17331 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17332 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17333
17334 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17335
17336 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17337
17338 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17339 time.
17340
17341 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17342 (do_test_limit): Likewise.
17343
17344 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17345 for every implementation.
17346 (do_test): Likewise.
17347
17348 * benchtests/bench-strncmp.c: Convert output to json.
17349
17350 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17351
17352 * io/futimens.c: Add missing start-of-file descriptive comment.
17353 * io/utime.c: Likewise.
17354 * misc/futimesat.c: Likewise.
17355 * misc/utimes.c: Likewise.
17356 * sysdeps/mach/hurd/futimesat.c: Likewise.
17357 * sysdeps/mach/hurd/utimes.c: Likewise.
17358 * sysdeps/posix/utime.c: Likewise.
17359 * sysdeps/posix/utimes.c: Likewise.
17360 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17361 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17362 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17363 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17364
17365 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17366
17367 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17368 hurd_futimes.
17369 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17370 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17371 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17372 (__futimens): Move implementation to...
17373 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17374 utime_tvalue_from_tspec): ... new helper functions.
17375 (hurd_futimens): New function.
17376 * sysdeps/mach/hurd/futimesat.c: New file.
17377 * sysdeps/mach/hurd/utimensat.c: New file.
17378
17379 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17380
17381 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17382 UTIME_OMIT): New macros.
17383 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17384 before reverting to converting time spec to time value and calling
17385 __file_utimes.
17386 * sysdeps/mach/hurd/utime-helper.c: New file.
17387 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17388 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17389 reverting to utime_tvalue_from_tval and __file_utimes.
17390 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17391 (__lutimes): Just call hurd_futimens after lookup.
17392 * sysdeps/mach/hurd/utimes.c: Likewise.
17393
17394 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17395
17396 * bits/sigaction.h: Add include guard.
17397 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17398 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17399 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17400 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17401 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17402 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17403 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17404 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17405 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17406
17407 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17408
17409 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17410 -Wmaybe-uninitialized for -Os.
17411 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17412 this disabling.
17413
17414 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17415
17416 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17417 __INO_T_MATCHES_INO64_T is defined.
17418 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17419 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17420 of definition.
17421 * dirent/alphasort64.c: Likewise.
17422 * dirent/scandir.c: Likewise.
17423 * dirent/scandir64-tail.c: Likewise.
17424 * dirent/scandir64.c: Likewise.
17425 * dirent/scandirat.c: Likewise.
17426 * dirent/scandirat64.c: Likewise.
17427 * dirent/versionsort.c: Likewise.
17428 * dirent/versionsort64.c: Likewise.
17429 * include/dirent.h: Likewise.
17430
17431 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17432 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17433 for socketpair endpoint.
17434 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17435 WRITE_BUFFER_SIZE as buffer size for sending socket.
17436 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17437 issue on system where send is implemented with sendto syscall.
17438 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17439 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17440 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17441 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17442
17443 [BZ #21269]
17444 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17445 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17446 sa_restorer for vDSO case.
17447 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17448
17449 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17450
17451 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17452 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17453 * hurd/hurd/ioctl.h: Include <mach/port.h>
17454 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17455 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17456 <mach/mach_types.h> and <mach/message.h>.
17457 (headers): Move mach/param.h to bits/mach/param.h.
17458 * sysdeps/mach/i386/mach/param.h: Move file to ...
17459 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17460 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17461 of <mach/param.h>.
17462 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17463 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17464 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17465 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17466 trivial, for C++ conformity.
17467 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17468 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17469 Process mig output through $(migheadersed).
17470 * hurd/Makefile (migheadersed): Define variable.
17471 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17472 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17473 headers.
17474 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17475 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17476 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17477 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17478 <bits/types/sigset_t.h>.
17479 [!defined __USE_GNU]: Do not #error out.
17480 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17481 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17482 Include <stddef.h> and <bits/types/sigset_t.h>
17483 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17484 instead of sighandler_t.
17485 * stdlib/errno.h (error_t): Move definition to...
17486 * bits/types/error_t.h: ... new header.
17487 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17488 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17489 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17490 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17491 * hurd/hurd.h: Include <bits/types/error_t.h>
17492 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17493 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17494 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17495 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17496 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17497 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17498 * sysdeps/mach/hurd/futimens.c: New file.
17499
17500 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17501
17502 [BZ #22918]
17503 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17504 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17505 * nscd/gai.c (__nss_hosts_database): Readd definition.
17506 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17507 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17508 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17509
17510 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17511
17512 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17513 (ifunc_one): Likewise.
17514
17515 2018-03-01 DJ Delorie <dj@delorie.com>
17516
17517 [BZ #22342]
17518 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17519 key value.
17520
17521 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17522
17523 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17524 `match_pid' parameter.
17525 (td_ta_thr_iter): Update accordingly.
17526
17527 2018-03-01 Florian Weimer <fweimer@redhat.com>
17528
17529 * nptl/Makefile (install-lib-ldscripts): Remove.
17530 (install): Remove rule.
17531 ($(inst_libdir)/libpthread.so): Likewise.
17532
17533 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17534
17535 [BZ #22896]
17536 * localedata/locales/an_ES: update month and day names,
17537 improve d_fmt, improve postal_fmt, add country_post,
17538 add country_isbn
17539
17540 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17541
17542 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17543 Ukrainian instead of Bulgarian.
17544
17545 2018-03-01 Florian Weimer <fweimer@redhat.com>
17546
17547 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17548 reference.
17549
17550 2018-03-01 Florian Weimer <fweimer@redhat.com>
17551
17552 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17553 * nptl/Makefile (routines): Add pthread_atfork.
17554 (static-only-routines): Set to pthread_atfork.
17555 (libpthread-routines): Remove pthread_atfork.
17556 (libpthread-static-only-routines): Remove.
17557 (install): Update comment.
17558 (libpthread.so): Do not install libpthread_nonshared.a.
17559 (tests): Do not link with libpthread_nonshared.a.
17560 (generated): Remove libpthread_nonshared.a.
17561 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17562 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17563 with libpthread_nonshared.a.
17564
17565 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17566
17567 [BZ #22902]
17568 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17569 (libc_feholdexcept_setroundf128): New macro.
17570 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17571
17572 [BZ #15105]
17573 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17574 libc_hidden_def.
17575 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17576 * include/inttypes.h: New file.
17577
17578 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17579
17580 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17581 -Os in two more places.
17582
17583 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17584
17585 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17586 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17587 be sorted correctly at the moment because of a bug.
17588
17589 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17590
17591 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17592 treat ñ as a primary different character, sync the collation
17593 for Spanish with CLDR.
17594 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17595 * localedata/Makefile: Add new test files.
17596 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17597 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17598 collation order.
17599 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17600 * localedata/am_ET.UTF-8.in: New test file.
17601 * localedata/az_AZ.UTF-8.in: Likewise.
17602 * localedata/be_BY.UTF-8.in: Likewise.
17603 * localedata/ber_DZ.UTF-8.in: Likewise.
17604 * localedata/ber_MA.UTF-8.in: Likewise.
17605 * localedata/bg_BG.UTF-8.in: Likewise.
17606 * localedata/br_FR.UTF-8.in: Likewise.
17607 * localedata/cmn_TW.UTF-8.in: Likewise.
17608 * localedata/crh_UA.UTF-8.in: Likewise.
17609 * localedata/csb_PL.UTF-8.in: Likewise.
17610 * localedata/cv_RU.UTF-8.in: Likewise.
17611 * localedata/cy_GB.UTF-8.in: Likewise.
17612 * localedata/dz_BT.UTF-8.in: Likewise.
17613 * localedata/eo.UTF-8.in: Likewise.
17614 * localedata/es_ES.UTF-8.in: Likewise.
17615 * localedata/fa_IR.UTF-8.in: Likewise.
17616 * localedata/fi_FI.UTF-8.in: Likewise.
17617 * localedata/fil_PH.UTF-8.in: Likewise.
17618 * localedata/fur_IT.UTF-8.in: Likewise.
17619 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17620 * localedata/ha_NG.UTF-8.in: Likewise.
17621 * localedata/ig_NG.UTF-8.in: Likewise.
17622 * localedata/ik_CA.UTF-8.in: Likewise.
17623 * localedata/kk_KZ.UTF-8.in: Likewise.
17624 * localedata/ku_TR.UTF-8.in: Likewise.
17625 * localedata/ky_KG.UTF-8.in: Likewise.
17626 * localedata/ln_CD.UTF-8.in: Likewise.
17627 * localedata/mi_NZ.UTF-8.in: Likewise.
17628 * localedata/ml_IN.UTF-8.in: Likewise.
17629 * localedata/mn_MN.UTF-8.in: Likewise.
17630 * localedata/mr_IN.UTF-8.in: Likewise.
17631 * localedata/mt_MT.UTF-8.in: Likewise.
17632 * localedata/nb_NO.UTF-8.in: Likewise.
17633 * localedata/om_KE.UTF-8.in: Likewise.
17634 * localedata/os_RU.UTF-8.in: Likewise.
17635 * localedata/ps_AF.UTF-8.in: Likewise.
17636 * localedata/ro_RO.UTF-8.in: Likewise.
17637 * localedata/ru_RU.UTF-8.in: Likewise.
17638 * localedata/sc_IT.UTF-8.in: Likewise.
17639 * localedata/se_NO.UTF-8.in: Likewise.
17640 * localedata/sq_AL.UTF-8.in: Likewise.
17641 * localedata/sv_SE.UTF-8.in: Likewise.
17642 * localedata/szl_PL.UTF-8.in: Likewise.
17643 * localedata/tg_TJ.UTF-8.in: Likewise.
17644 * localedata/tk_TM.UTF-8.in: Likewise.
17645 * localedata/tt_RU.UTF-8.in: Likewise.
17646 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17647 * localedata/ug_CN.UTF-8.in: Likewise.
17648 * localedata/uz_UZ.UTF-8.in: Likewise.
17649 * localedata/vi_VN.UTF-8.in: Likewise.
17650 * localedata/yi_US.UTF-8.in: Likewise.
17651 * localedata/yo_NG.UTF-8.in: Likewise.
17652 * localedata/zh_CN.UTF-8.in: Likewise.
17653 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17654 file and fix bugs in the collation.
17655 * localedata/locales/az_AZ: Likewise.
17656 * localedata/locales/be_BY: Likewise.
17657 * localedata/locales/ber_DZ: Likewise.
17658 * localedata/locales/ber_MA: Likewise.
17659 * localedata/locales/bg_BG: Likewise.
17660 * localedata/locales/br_FR: Likewise.
17661 * localedata/locales/br_FR@euro: Likewise.
17662 * localedata/locales/ca_ES: Likewise.
17663 * localedata/locales/cns11643_stroke: Likewise.
17664 * localedata/locales/crh_UA: Likewise.
17665 * localedata/locales/cs_CZ: Likewise.
17666 * localedata/locales/csb_PL: Likewise.
17667 * localedata/locales/cv_RU: Likewise.
17668 * localedata/locales/cy_GB: Likewise.
17669 * localedata/locales/da_DK: Likewise.
17670 * localedata/locales/dz_BT: Likewise.
17671 * localedata/locales/en_CA: Likewise.
17672 * localedata/locales/eo: Likewise.
17673 * localedata/locales/es_CU: Likewise.
17674 * localedata/locales/es_EC: Likewise.
17675 * localedata/locales/es_ES: Likewise.
17676 * localedata/locales/es_US: Likewise.
17677 * localedata/locales/et_EE: Likewise.
17678 * localedata/locales/fa_IR: Likewise.
17679 * localedata/locales/fi_FI: Likewise.
17680 * localedata/locales/fil_PH: Likewise.
17681 * localedata/locales/fur_IT: Likewise.
17682 * localedata/locales/gez_ER@abegede: Likewise.
17683 * localedata/locales/ha_NG: Likewise.
17684 * localedata/locales/hr_HR: Likewise.
17685 * localedata/locales/hsb_DE: Likewise.
17686 * localedata/locales/hu_HU: Likewise.
17687 * localedata/locales/ig_NG: Likewise.
17688 * localedata/locales/ik_CA: Likewise.
17689 * localedata/locales/is_IS: Likewise.
17690 * localedata/locales/iso14651_t1_pinyin: Likewise.
17691 * localedata/locales/kk_KZ: Likewise.
17692 * localedata/locales/ku_TR: Likewise.
17693 * localedata/locales/ky_KG: Likewise.
17694 * localedata/locales/ln_CD: Likewise.
17695 * localedata/locales/lt_LT: Likewise.
17696 * localedata/locales/lv_LV: Likewise.
17697 * localedata/locales/mi_NZ: Likewise.
17698 * localedata/locales/ml_IN: Likewise.
17699 * localedata/locales/mn_MN: Likewise.
17700 * localedata/locales/mr_IN: Likewise.
17701 * localedata/locales/mt_MT: Likewise.
17702 * localedata/locales/nb_NO: Likewise.
17703 * localedata/locales/om_KE: Likewise.
17704 * localedata/locales/os_RU: Likewise.
17705 * localedata/locales/pl_PL: Likewise.
17706 * localedata/locales/ps_AF: Likewise.
17707 * localedata/locales/ro_RO: Likewise.
17708 * localedata/locales/ru_RU: Likewise.
17709 * localedata/locales/ru_UA: Likewise.
17710 * localedata/locales/sc_IT: Likewise.
17711 * localedata/locales/se_NO: Likewise.
17712 * localedata/locales/si_LK: Likewise.
17713 * localedata/locales/sq_AL: Likewise.
17714 * localedata/locales/sv_FI: Likewise.
17715 * localedata/locales/sv_FI@euro: Likewise.
17716 * localedata/locales/sv_SE: Likewise.
17717 * localedata/locales/szl_PL: Likewise.
17718 * localedata/locales/tg_TJ: Likewise.
17719 * localedata/locales/ti_ER: Likewise.
17720 * localedata/locales/tk_TM: Likewise.
17721 * localedata/locales/tl_PH: Likewise.
17722 * localedata/locales/tr_TR: Likewise.
17723 * localedata/locales/tt_RU: Likewise.
17724 * localedata/locales/tt_RU@iqtelif: Likewise.
17725 * localedata/locales/ug_CN: Likewise.
17726 * localedata/locales/uk_UA: Likewise.
17727 * localedata/locales/uz_UZ: Likewise.
17728 * localedata/locales/uz_UZ@cyrillic: Likewise.
17729 * localedata/locales/vi_VN: Likewise.
17730 * localedata/locales/yi_US: Likewise.
17731 * localedata/locales/yo_NG: Likewise.
17732
17733 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17734
17735 * gen-locales.mk: Make test files which contain @ modifiers in their
17736 name work.
17737 * localedata/gen-locale.sh: Likewise.
17738
17739 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17740
17741 * posix/tst-fnmatch.input: Fix results for range expressions
17742 for non C locales.
17743 * posix/tst-regexloc.c: Do not use a range expression for
17744 de_DE.ISO-8859-1 locale.
17745
17746 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17747
17748 * posix/bug-regex5.c: Fix test case because with the new
17749 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17750 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17751 file.
17752
17753 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17754
17755 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17756 downloaded from ISO, the collation order of @-. and space has changed.
17757 Therefore, this test file needed to be adapted.
17758 * localedata/fr_CA.UTF-8.in: Likewise.
17759 * localedata/fr_FR.UTF-8.in: Likewise.
17760 * localedata/uk_UA.UTF-8.in: Likewise.
17761
17762 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17763
17764 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17765 order of ȥ in the new iso14651_t1_common file.
17766 * localedata/pl_PL.UTF-8.in: Likewise.
17767
17768 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17769
17770 * localedata/locales/iso14651_t1_common: Add sections for various
17771 scripts to the iso14651_t1_common file.
17772
17773 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17774
17775 * localedata/locales/iso14651_t1_common: Use the code point of a
17776 character in the fourth collation level instead of IGNORE for all
17777 entries which have IGNORE on all 4 levels.
17778
17779 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17780
17781 * localedata/locales/iso14651_t1_common: Add some convenient collation
17782 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17783 rules similar to those in CLDR.
17784
17785 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17786
17787 * localedata/locales/iso14651_t1_common: The new version of this
17788 file downloaded from ISO contained several syntax errors which
17789 are fixed by this patch.
17790
17791 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17792
17793 * localedata/locales/iso14651_t1_common: replace all <U.....>
17794 with <U000.....> because glibc understands only 4 digit or 8 digit
17795
17796 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17797
17798 * localedata/locales/iso14651_t1_common: Necessary changes
17799 to make the file downloaded from ISO usable by glibc.
17800
17801 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17802
17803 [BZ #14095]
17804 * localedata/locales/iso14651_t1_common: Update file to
17805 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17806
17807 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17808
17809 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17810 of <nptl/pthreadP.h>
17811 (thread_attr_compare): Move function to...
17812 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17813 * sysdeps/nptl/timer_routines.h: ... new header.
17814 * sysdeps/mach/hurd/gai_misc.h: New file.
17815
17816 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17817
17818 * string/strcoll_l.c: Include <libc-diag.h>.
17819 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17820 declarations of seq1 and seq2.
17821
17822 [BZ #15105]
17823 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17824 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17825
17826 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17827
17828 [BZ #22433]
17829 [BZ #22807]
17830 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17831 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17832 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17833 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17834 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17835 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17836
17837 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17838
17839 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17840 macros used in __ptrace_request.
17841
17842 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17843
17844 [BZ #22792]
17845 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17846 to $(CC).
17847 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17848 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17849 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17850 <tcb-offsets.h>.
17851
17852 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17853
17854 [BZ #15105]
17855 * ctype/ctype.c (tolower): Use libc_hidden_def.
17856 (toupper): Likewise.
17857 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17858 [!_ISOMAC] (toupper): Likewise.
17859
17860 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17861
17862 * localedata/Makefile: Remove --quiet argument when
17863 installing locales
17864
17865 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17866
17867 [BZ #17438]
17868 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17869 in d_fmt.
17870 * localedata/locales/pt_PT (LC_TIME): likewise
17871
17872 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17873
17874 [BZ #22646]
17875 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17876 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17877 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17878
17879 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17880
17881 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17882
17883 * nptl/Makefile (routines): Remove unregister-atfork.
17884 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17885 (fork_handler_alloc): Remove function.
17886 (fork_handlers, fork_handler_init): New variables.
17887 (__fork_lock): Rename to atfork_lock.
17888 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17889 to use a dynamic array to add/remove atfork handlers.
17890 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17891 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17892 Remove declaration.
17893 (fork_handler): Remove next, refcntr, and need_signal member.
17894 (__run_fork_handler_type): New enum.
17895 (__run_fork_handlers): New prototype.
17896 * nptl/register-atfork.c: Remove file.
17897 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17898
17899 * sysdeps/nptl/nptl-signals.h: Move to ...
17900 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17901 comments.
17902 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17903 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17904 unnecessary check for SIGTIMER.
17905 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17906 remove unnecessary removal of SIGTIMER.
17907 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17908 include-signals.h rename.
17909 * nptl/pthreadP.h: Likewise.
17910 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17911 __is_internal_signal instead of __nptl_is_internal_signal.
17912
17913 2018-02-22 Andrew Waterman <andrew@sifive.com>
17914
17915 [BZ # 22884]
17916 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17917 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17918 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17919 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17920
17921 2018-02-22 DJ Delorie <dj@delorie.com>
17922
17923 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17924
17925 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17926
17927 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17928 do_misaligned, not misaligned8.
17929
17930 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17931
17932 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17933 Add memcpy_thunderx2.
17934 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17935 Increment to 4.
17936 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17937 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17938 and IS_THUNDERX2PA checks.
17939 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17940 Use macro to set name appropriately.
17941 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17942 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17943 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17944 New macro.
17945 (IS_THUNDERX2): New macro.
17946
17947 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17948
17949 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17950
17951 2018-02-21 Zack Weinberg <zackw@panix.com>
17952
17953 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17954 Define here, unconditionally.
17955 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17956 * libio/libioP.h: Remove #if 0 blocks.
17957 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17958 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17959 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17960
17961 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17962 Assume weak_alias is always defined.
17963
17964 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17965 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17966 Remove #if 0 and #ifdef TODO blocks.
17967 Assume text_set_element is always defined.
17968
17969 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17970 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17971 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17972
17973 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17974 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17975 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17976 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17977 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17978 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17979 Reformat bit flags for _flags field to make occupancy clearer.
17980 Update commentary.
17981 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17982 Keep definitions consistent with those in libio/libio.h.
17983
17984 * libio/libio.h (_IO_file_flags): Remove macro.
17985 All uses changed to _flags.
17986
17987 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17988 (__HAVE_COLUMN, _IO_BE): Don't define.
17989 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17990 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17991 * libio/libioP.h (EOF): Don't define.
17992 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17993 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17994 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17995 testing _IO_UNIFIED_JUMPTABLES.
17996
17997 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17998 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17999 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
18000 (_IO_size_t): Delete; all uses changed to size_t.
18001 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
18002 (_IO_off_t): Delete; all uses changed to off_t.
18003 (_IO_off64_t): Delete; all uses changed to off64_t.
18004 (_IO_pid_t): Delete; all uses changed to pid_t.
18005 (_IO_uid_t): Delete; all uses changed to uid_t.
18006 (_IO_wint_t): Delete; all uses changed to wint_t.
18007 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
18008 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
18009 (_IO_cookie_io_functions_t): Delete; all uses changed to
18010 cookie_io_functions_t.
18011 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
18012 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
18013 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
18014 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
18015
18016 * libio/iofopncook.c: Remove unnecessary forward declarations.
18017 * libio/iolibio.h: Correct outdated commentary.
18018 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
18019 * stdio-common/fxprintf.c (__fxprintf_nocancel):
18020 Remove unnecessary casts.
18021 * stdio-common/getline.c: Use _IO_getdelim directly.
18022 Don't redefine ssize_t.
18023 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
18024 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
18025 Remove outdated comments.
18026 * stdio-common/vfscanf.c: Don't redefine va_list.
18027
18028 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
18029 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
18030 Remove preprocessor conditionals on _LIBC and __USE_GNU,
18031 which are always true, and __cplusplus, which is always false.
18032
18033 2018-02-21 Joseph Myers <joseph@codesourcery.com>
18034
18035 [BZ #15105]
18036 [BZ #19463]
18037 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
18038 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
18039 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
18040 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
18041 libc_hidden_proto.
18042 [!_ISOMAC] (putc_unlocked): Likewise.
18043 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
18044 define inline if [__USE_EXTERN_INLINES].
18045 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
18046 putc_unlocked.
18047
18048 [BZ #15105]
18049 [BZ #19463]
18050 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
18051 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
18052 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
18053 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
18054 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
18055 getc_unlocked.
18056 * time/tzfile.c (__tzfile_read): Likewise.
18057
18058 2018-02-21 Mike FABIAN <mfabian@redhat.com>
18059
18060 [BZ #22517]
18061 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
18062
18063 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18064
18065 * io/fcntl.h: Fix a typo in a comment.
18066
18067 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
18068
18069 [BZ #22862]
18070 * include/features.h: Add _ISOC11_SOURCE to test for whether to
18071 define _DEFAULT_SOURCE.
18072 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
18073
18074 2018-02-21 Florian Weimer <fweimer@redhat.com>
18075
18076 [BZ #20890]
18077 * elf/cache.c (save_cache): Call fsync on temporary file before
18078 renaming it.
18079 (save_aux_cache): Call fdatasync on temporary file before renaming
18080 it.
18081
18082 2018-02-21 Florian Weimer <fweimer@redhat.com>
18083
18084 [BZ #22787]
18085 * include/caller.h: Remove file.
18086 * elf/dl-caller.c: Likewise.
18087 * elf/Makefile (dl-routines): Remove dl-caller.
18088 (shared-only-routines): Do not add dl-caller.
18089 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18090 __check_caller.
18091 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18092 member.
18093 (dl_open_worker): Do not call __check_caller.
18094 (_dl_open): Do not set caller_dl_open member.
18095 * elf/rtld.c (_rtld_global_ro): Do not initialize
18096 _dl_check_caller member.
18097 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18098 _dl_check_caller member.
18099 (_dl_check_caller): Remove declaration.
18100 * sysdeps/unix/sysv/linux/dl-execstack.c
18101 (_dl_make_stack_executable): Do not call __check_caller.
18102
18103 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18104
18105 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18106 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18107
18108 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18109
18110 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18111 description.
18112
18113 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18114
18115 [BZ #16335]
18116 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18117 of 199606L, 200112L, and 200809L.
18118 (_XOPEN_SOURCE): Document special values of 600 and 700.
18119 (_ISOC11_SOURCE): Document macro.
18120 (_ATFILE_SOURCE): Likewise.
18121 (_FORTIFY_SOURCE): Likewise.
18122
18123 2018-02-19 Joseph Myers <joseph@codesourcery.com>
18124
18125 [BZ #15105]
18126 [BZ #19463]
18127 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18128 and define as weak alias of __ferror_unlocked. Use
18129 libc_hidden_weak.
18130 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18131 libc_hidden_proto.
18132 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18133 function if [__USE_EXTERN_INLINES].
18134 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18135 ferror_unlocked.
18136
18137 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
18138
18139 [BZ #6889]
18140 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18141
18142 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18143
18144 [BZ #22818]
18145 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18146 the GLIBC_2.1 version.
18147
18148 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18149
18150 [BZ #21508]
18151 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18152 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18153 intl/tst-gettext-de.po from po/de.po by removing the
18154 POT-Creation-Date line.
18155 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18156 ../po/de.po.
18157 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18158 ../po/de.po.
18159
18160 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18161
18162 * mach/Makefile (headers): Add mach/param.h.
18163 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18164 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18165 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18166 (__ptsname_r): Move implementation to...
18167 (__ptsname_internal): ... new function. Add filling the STP
18168 structure.
18169
18170 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
18171
18172 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18173 idouble to 1 ULP.
18174
18175 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
18176
18177 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18178 syntax.
18179
18180 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
18181
18182 * nptl/Makefile (tst-mutex8-ENV): Delete.
18183 * nptl/tst-mutex8.c (check_type):
18184 Add runtime check if mutex will be elided.
18185
18186 2018-02-15 Joseph Myers <joseph@codesourcery.com>
18187
18188 [BZ #20980]
18189 [BZ #21234]
18190 * manual/install.texi (Configuring and compiling): Describe
18191 passing CC and CFLAGS on configure command line, not as
18192 environment variables. Use @code markup on those variables.
18193 Specify what options go in CC and what go in CFLAGS. Note the
18194 requirement to compile with optimization.
18195 * INSTALL: Regenerated.
18196
18197 [BZ #18124]
18198 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18199 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18200 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18201 __sigprocmask instead of sigprocmask.
18202 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18203 Likewise.
18204 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18205 __sigsetjmp and sigprocmask.
18206
18207 [BZ #15105]
18208 * include/argz.h (argz_next): Use libc_hidden_proto.
18209 (__argz_next): Likewise.
18210 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18211 (argz_next): Use libc_hidden_weak.
18212
18213 [BZ #15105]
18214 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18215 libc_hidden_proto.
18216 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18217 libc_hidden_def.
18218
18219 [BZ #15105]
18220 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18221 libc_hidden_proto.
18222 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18223
18224 [BZ #15105]
18225 [BZ #19463]
18226 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18227 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18228 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18229 (__feof_unlocked): New declaration, and inline function if
18230 [__USE_EXTERN_INLINES].
18231 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18232 instead of feof_unlocked.
18233 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18234 * nss/nsswitch.c (nss_parse_file): Likewise.
18235 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18236 Likewise.
18237 * time/getdate.c (__getdate_r): Likewise.
18238 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18239 Define as macro to call __feof_unlocked.
18240
18241 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18242
18243 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18244
18245 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18246
18247 * math/Makefile: Remove mpexp.c and mplog.c
18248 * sysdeps/i386/fpu/mpexp.c: Delete file.
18249 * sysdeps/i386/fpu/mplog.c: Likewise.
18250 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18251 * sysdeps/ia64/fpu/mplog.c: Likewise.
18252 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18253 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18254 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18255 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18256 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18257 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18258 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18259 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18260 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18261 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18262 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18263 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18264 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18265 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18266 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18267 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18268
18269 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18270
18271 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18272
18273 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18274
18275 * sysdeps/sh/libm-test-ulps: Update.
18276
18277 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18278
18279 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18280 idouble to 1 ULP.
18281
18282 2018-02-12 Zack Weinberg <zackw@panix.com>
18283
18284 [BZ #19239]
18285 * posix/sys/types.h: Don't include sys/sysmacros.h.
18286 * misc/sys/sysmacros.h: Remove the conditional deprecation
18287 warnings for the macros defined by this header.
18288
18289 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18290
18291 * manual/probes.texi: Remove slowexp probes.
18292 * math/Makefile: Remove slowexp.
18293 * sysdeps/generic/math_private.h (__slowexp): Remove.
18294 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18295 document error bounds.
18296 * sysdeps/i386/fpu/slowexp.c: Remove.
18297 * sysdeps/ia64/fpu/slowexp.c: Remove.
18298 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18299 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18300 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18301 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18302 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18303 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18304 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18305 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18306 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18307 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18308 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18309
18310 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18311
18312 [BZ #13932]
18313 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18314 * benchtests/pow-inputs: Update comment for slow path cases.
18315 * manual/probes.texi (slowpow_p10): Delete removed probe.
18316 (slowpow_p10): Likewise.
18317 * math/Makefile: Remove halfulp.c and slowpow.c.
18318 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18319 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18320 (__halfulp): Remove.
18321 (__slowpow): Remove.
18322 * sysdeps/i386/fpu/halfulp.c: Delete file.
18323 * sysdeps/i386/fpu/slowpow.c: Likewise.
18324 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18325 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18326 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18327 improve comments and add error analysis.
18328 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18329 (power1): Remove function:
18330 (log1): Remove error argument, add error analysis.
18331 (my_log2): Remove function.
18332 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18333 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18334 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18335 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18336 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18337 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18338 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18339 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18340 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18341 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18342 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18343 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18344 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18345 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18346
18347 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18348
18349 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18350 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18351
18352 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18353
18354 [BZ #22433]
18355 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18356 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18357 and PTRACE_SETHBPREGS.
18358
18359 2018-02-10 Zack Weinberg <zackw@panix.com>
18360
18361 [BZ #22830]
18362 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18363 correctly.
18364 * malloc/tst-malloc-stats-cancellation.c: New test case.
18365 * malloc/Makefile: Add new test case.
18366
18367 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18368
18369 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18370
18371 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18372
18373 * math/Makefile (libm-narrow-fns): Add add.
18374 (libm-test-funcs-narrow): Likewise.
18375 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18376 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18377 * math/gen-auto-libm-tests.c (test_functions): Add add.
18378 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18379 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18380 (NARROW_ADD_TRIVIAL): Likewise.
18381 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18382 macro.
18383 (__daddl): Likewise.
18384 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18385 dadd.
18386 (CFLAGS-nldbl-dadd.c): New variable.
18387 (CFLAGS-nldbl-fadd.c): Likewise.
18388 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18389 __nldbl_daddl.
18390 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18391 prototype.
18392 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18393 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18394 * math/auto-libm-test-in: Add tests of add.
18395 * math/auto-libm-test-out-narrow-add: New generated file.
18396 * math/libm-test-narrow-add.inc: New file.
18397 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18398 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18399 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18400 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18401 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18402 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18403 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18404 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18405 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18406 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18407 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18408 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18409 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18410 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18411 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18412 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18413 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18414 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18415 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18416 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18417 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18418 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18419 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18420 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18421 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18422 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18423 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18424 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18425 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18426 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18427 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18428 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18431 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18433 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18434 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18435 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18436 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18437 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18438 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18439 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18440 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18441 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18442 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18443
18444 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18445 (f128-pairs): New variable.
18446 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18447 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18448 to CFLAGS.
18449 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18450 Also make tests add $(f128-loader-link) to gnulib-tests.
18451
18452 2018-02-09 DJ Delorie <dj@redhat.com>
18453
18454 [BZ #22827]
18455 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18456 64-bit ELF type for 64-bit ELF objects.
18457
18458 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18459
18460 * math/libm-test-driver.c (snan_tests_arg): New variable.
18461 * math/libm-test-support.h (snan_tests_arg): New declaration.
18462 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18463
18464 * math/Makefile (test-type-pairs): New variable.
18465 (test-type-pairs-f64xf128-yes): Likewise.
18466 (tests): Add test-narrow-macros.
18467 (libm-test-funcs-narrow): New variable.
18468 (libm-test-c-narrow): Likewise.
18469 (generated): Add $(libm-test-c-narrow).
18470 (libm-tests-base-narrow): New variable.
18471 (libm-tests-narrow): Likewise.
18472 (libm-tests): Add $(libm-tests-narrow).
18473 (libm-tests-for-type): Handle $(libm-tests-narrow).
18474 (libm-test-c-narrow-obj): New variable.
18475 ($(libm-test-c-narrow-obj)): New rule.
18476 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18477 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18478 $(o-iterator) to set dependencies and CFLAGS.
18479 * math/gen-auto-libm-tests.c: Document use for narrowing
18480 functions.
18481 (output_for_one_input_case): Take argument NARROW.
18482 (generate_output): Likewise. Update call to
18483 output_for_one_input_case.
18484 (main): Take --narrow option. Update call to generate_output.
18485 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18486 (apply_lit): Update call to _apply_lit.
18487 (apply_arglit): New function.
18488 (parse_args): Handle "a" arguments.
18489 (parse_auto_input): Handle format names using ":".
18490 * math/README.libm-test: Document "a" parameter type.
18491 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18492 (ARG_TYPE_TRUE_MIN): Likewise.
18493 (ARG_TYPE_MAX): Likwise.
18494 (ARG_MIN_EXP): Likewise.
18495 (ARG_MAX_EXP): Likewise.
18496 (ARG_MANT_DIG): Likewise.
18497 (TEST_COND_arg_ibm128): Likewise.
18498 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18499 (TEST_COND_arg_fmt): New macro.
18500 (init_max_error): Update prototype.
18501 * math/libm-test-support.c (test_ibm128): New variable.
18502 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18503 instead of using [TEST_COND_ibm128] conditional.
18504 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18505 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18506 [TEST_NARROW] (TEST_MSG): New definition.
18507 (arg_plus_zero): New macro.
18508 (arg_minus_zero): Likewise.
18509 (arg_plus_infty): Likewise.
18510 (arg_minus_infty): Likewise.
18511 (arg_qnan_value_pl): Likewise.
18512 (arg_qnan_value): Likewise.
18513 (arg_snan_value_pl): Likewise.
18514 (arg_snan_value): Likewise.
18515 (arg_max_value): Likewise.
18516 (arg_min_value): Likewise.
18517 (arg_min_subnorm_value): Likewise.
18518 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18519 (RUN_TEST_LOOP_aa_f): New macro.
18520 (TEST_SUFF): New macro.
18521 (TEST_SUFF_STR): Likewise.
18522 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18523 (TEST_COND_any_ibm128): New macro.
18524 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18525 this_func. Update call to init_max_error.
18526 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18527 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18528 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18529 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18530 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18531 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18532 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18533 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18534 * math/test-math-vector.h (TEST_NARROW): Likewise.
18535 * math/test-arg-double.h: New file.
18536 * math/test-arg-float128.h: Likewise.
18537 * math/test-arg-float32x.h: Likewise.
18538 * math/test-arg-float64.h: Likewise.
18539 * math/test-arg-float64x.h: Likewise.
18540 * math/test-arg-ldouble.h: Likewise.
18541 * math/test-math-narrow.h: Likewise.
18542 * math/test-narrow-macros.c: Likewise.
18543 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18544 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18545 test-narrow-macros-ldbl-64.
18546 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18547
18548 * math/bits/mathcalls-narrow.h: New file.
18549 * include/bits/mathcalls-narrow.h: Likewise.
18550 * math/math-narrow.h: Likewise.
18551 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18552 (__MATHCALL_NARROW_ARGS_2): Likewise.
18553 (__MATHCALL_NARROW_ARGS_3): Likewise.
18554 (__MATHCALL_NARROW_NORMAL): Likewise.
18555 (__MATHCALL_NARROW_REDIR): Likewise.
18556 (__MATHCALL_NARROW): Likewise.
18557 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18558 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18559 defined.
18560 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18561 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18562 (libm-narrow-fns): New variable.
18563 (libm-narrow-types-basic): Likewise.
18564 (libm-narrow-types-ldouble-yes): Likewise.
18565 (libm-narrow-types-float128-yes): Likewise.
18566 (libm-narrow-types-float128-alias-yes): Likewise.
18567 (libm-narrow-types): Likewise.
18568 (libm-routines): Add narrowing functions.
18569 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18570 (libc_feholdexcept_setroundf128): New macro.
18571 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18572 * sysdeps/ieee754/float128/float128_private.h: Include
18573 <math/math-narrow.h>.
18574 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18575 Undefine and redefine.
18576 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18577 (libm_alias_float_ldouble): Undefine and redefine.
18578 (libm_alias_double_ldouble): Likewise.
18579
18580 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18581
18582 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18583
18584 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18585 FPCR/FPSR.
18586
18587 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18588
18589 * manual/creature.texi: Convert references to gcc.info to gcc.
18590 * manual/stdio.texi: Likewise.
18591 * manual/string.texi: Likewise.
18592
18593 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18594
18595 [BZ #17979]
18596 * posix/bits/types.h (__int_least8_t): New typedef.
18597 (__uint_least8_t): Likewise.
18598 (__int_least16_t): Likewise.
18599 (__uint_least16_t): Likewise.
18600 (__int_least32_t): Likewise.
18601 (__uint_least32_t): Likewise.
18602 (__int_least64_t): Likewise.
18603 (__uint_least64_t): Likewise.
18604 * sysdeps/generic/stdint.h (int_least8_t): Define using
18605 __int_least8_t.
18606 (int_least16_t): Define using __int_least16_t.
18607 (int_least32_t): Define using __int_least32_t.
18608 (int_least64_t): Define using __int_least64_t.
18609 (uint_least8_t): Define using __uint_least8_t.
18610 (uint_least16_t): Define using __uint_least16_t.
18611 (uint_least32_t): Define using __uint_least32_t.
18612 (uint_least64_t): Define using __uint_least64_t.
18613 * wcsmbs/uchar.h: Include <bits/types.h>.
18614 (char16_t): Define using __uint_least16_t conditional only on
18615 [!__USE_ISOCXX11].
18616 (char32_t): Define using __uint_least32_t conditional only on
18617 [!__USE_ISOCXX11].
18618 * wcsmbs/test-char-types.c: New file.
18619 * wcsmbs/Makefile (tests): Add test-char-types.
18620
18621 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18622 version to 4.0.1.
18623
18624 2018-02-07 Zack Weinberg <zackw@panix.com>
18625
18626 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18627 Delete all contents except for definitions of _G_HAVE_MMAP and
18628 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18629 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18630 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18631 change as above.
18632
18633 * libio/libio.h: Don't include bits/_G_config.h here.
18634 Include stddef.h with __need_wchar_t defined. Include
18635 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18636 Define _IO_iconv_t here, directly.
18637 Don't define _IO_HAVE_ST_BLKSIZE.
18638 * libio/libioP.h: Include _G_config.h here. Move include of
18639 shlib-compat.h up with rest of includes. Simplify conditionals
18640 controlling definition of _IO_JUMPS_OFFSET.
18641
18642 * csu/init.c: Remove always-true #if around entire file.
18643 Don't include stdio.h. Set _IO_stdin_used to hardwired
18644 constant 0x20001, and update commentary.
18645 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18646 Replace all uses of _G_va_list with __gnuc_va_list.
18647 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18648 instead of #if _IO_HAVE_ST_BLKSIZE.
18649 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18650 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18651 not #ifdef.
18652
18653 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18654 multiple-include guard to match.
18655 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18656 into this file.
18657 Remove preprocessor conditionals that are always true and/or
18658 redundant to other preprocessor conditionals in the same nest.
18659 Include shlib-compat.h unconditionally.
18660 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18661 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18662 defined after including stdio.h.
18663 Use __BEGIN_DECLS/__END_DECLS.
18664
18665 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18666 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18667 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18668
18669 2018-02-07 Zack Weinberg <zackw@panix.com>
18670
18671 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18672 New single-type headers split from _G_config.h.
18673 * libio/bits/types/cookie_io_functions_t.h
18674 * libio/bits/types/struct_FILE.h
18675 New single-type headers split from libio.h.
18676
18677 * libio/Makefile: Install the above new headers. Don't install
18678 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18679 bits/libio-ldbl.h.
18680 * libio/_G_config.h, libio/libio.h: Delete file.
18681
18682 * libio/bits/libio.h: Remove improper-inclusion guard.
18683 Include stdio.h and don't repeat anything that it does.
18684 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18685 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18686 __io_read_fn as cookie_read_function_t,
18687 __io_write_fn as cookie_write_function_t,
18688 __io_seek_fn as cookie_seek_function_t,
18689 __io_close_fn as cookie_close_function_t,
18690 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18691 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18692 here, in the "compatibility defines" section. Remove an #if 0
18693 block. Use the "body" macros from bits/types/struct_FILE.h to
18694 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18695 and _IO_ferror_unlocked.
18696 Move prototypes of __uflow and __overflow...
18697
18698 * libio/stdio.h: ...here. Don't include bits/libio.h.
18699 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18700 directly from stdarg.h. Include bits/types/__fpos_t.h,
18701 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18702 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18703 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18704 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18705 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18706 __ssize_t, not _IO_ssize_t. Unconditionally define
18707 BUFSIZ as 8192 and EOF as (-1).
18708
18709 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18710 macros from bits/types/struct_FILE.h instead of _IO_* macros
18711 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18712 instead of _IO_ssize_t.
18713 * libio/bits/stdio2.h: Similarly.
18714
18715 * libio/iolibio.h: Add multiple-include guard.
18716 Include bits/libio.h after stdio.h.
18717 * libio/libioP.h: Add multiple-include guard.
18718 Include stdio.h and bits/libio.h before iolibio.h.
18719
18720 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18721 * include/bits/types/cookie_io_functions_t.h
18722 * include/bits/types/struct_FILE.h: New wrappers.
18723
18724 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18725 Get definitions of _G_fpos_t and _G_fpos64_t from
18726 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18727 respectively. Remove improper-inclusion guards.
18728
18729 * conform/data/stdio.h-data: Update expectations of va_list.
18730 * scripts/check-installed-headers.sh: Remove special case for
18731 libio.h and _G_config.h.
18732
18733 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18734
18735 [BZ #15105]
18736 [BZ #19463]
18737 * include/sys/sysmacros.h [!_ISOMAC]
18738 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18739 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18740 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18741 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18742 libc_hidden_proto.
18743 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18744 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18745 Likewise.
18746 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18747 Undefine and redefine to add use __gnu_dev_ prefix.
18748 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18749 Likewise.
18750 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18751 and define as hidden inline function.
18752 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18753 Likewise.
18754 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18755 Likewise.
18756 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18757 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18758 (gnu_dev_minor): Likewise.
18759 (gnu_dev_makedev): Likewise.
18760 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18761 makedev.
18762 * posix/wordexp.c (exec_comm_child): Likewise.
18763 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18764 instead of minor and __gnu_dev_major instead of major.
18765 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18766 __gnu_dev_major instead of major.
18767 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18768 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18769 instead of gnu_dev_minor.
18770 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18771 (SLAVE_P): Likewise.
18772 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18773 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18774 instead of major.
18775
18776 [BZ #21313]
18777 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18778 in another place.
18779 * locale/weightwc.h (findidx): Likewise.
18780
18781 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18782
18783 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18784 (slowlog_inexact): Likewise
18785 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18786 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18787
18788 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18789
18790 [BZ #22797]
18791 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18792 missing second underscore to parameter name.
18793
18794 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18795
18796 [BZ #14508]
18797 [BZ #15512]
18798 [BZ #17082]
18799 [BZ #20530]
18800 * bits/byteswap.h: Update file comment. Do not include
18801 <bits/byteswap-16.h>.
18802 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18803 constant.
18804 (__bswap_16): Define as inline function.
18805 (__bswap_constant_32): Reformat definition.
18806 (__bswap_32): Always define as inline function, not macro, using
18807 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18808 otherwise __bswap_constant_32.
18809 (__bswap_constant_64): Reformat definition. Do not use
18810 __extension__ here.
18811 (__bswap_64): Always define as inline function, not macro. Use
18812 __extension__ on function definition. Use __builtin_bswap64 if
18813 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18814 * string/test-endian-file-scope.c: New file.
18815 * string/test-endian-sign-conversion.c: Likewise.
18816 * string/Makefile (headers): Remove bits/byteswap-16.h.
18817 (tests): Add test-endian-file-scope and
18818 test-endian-sign-conversion.
18819 (CFLAGS-test-endian-sign-conversion.c): New variable.
18820 * bits/byteswap-16.h: Remove file.
18821 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18822 * sysdeps/ia64/bits/byteswap.h: Likewise.
18823 * sysdeps/m68k/bits/byteswap.h: Likewise.
18824 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18825 * sysdeps/s390/bits/byteswap.h: Likewise.
18826 * sysdeps/tile/bits/byteswap.h: Likewise.
18827 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18828 * sysdeps/x86/bits/byteswap.h: Likewise.
18829
18830 [BZ #17721]
18831 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18832 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18833 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18834 199901L] (__restrict): Define to restrict.
18835
18836 [BZ #19667]
18837 * string/testcopy.c: Include <support/support.h>. Do not include
18838 <malloc.h>. Use <support/test-driver.c>.
18839 (main): Rename to do_test. Make static. Use xmalloc instead of
18840 malloc.
18841
18842 [BZ #13575]
18843 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18844 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18845 (SSIZE_MAX): Define to INT_MAX.
18846 * posix/test-ssize-max.c: New file.
18847 * posix/Makefile (tests): Add test-ssize-max.
18848
18849 [BZ #19668]
18850 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18851 <support/support.h>. Do not include <malloc.h>.
18852 (query_auxv): Use xmalloc instead of malloc.
18853
18854 [BZ #14553]
18855 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18856 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18857 instead of loff_t.
18858
18859 2018-02-06 Florian Weimer <fweimer@redhat.com>
18860
18861 [BZ #18023]
18862 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18863 Use scratch_buffer instead of extend_alloca.
18864
18865 2018-02-06 Zack Weinberg <zackw@panix.com>
18866
18867 * libio/stdio.h: Don't define getc or putc as macros.
18868 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18869 not _IO_getc and _IO_putc.
18870
18871 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18872 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18873
18874 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18875
18876 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18877 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18878
18879 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18880
18881 [BZ #14890]
18882 * elf/elf.h (NT_PRFPREG): New macro.
18883 (NT_S390_VXRS_LOW): Likewise.
18884 (NT_S390_VXRS_HIGH): Likewise.
18885 (NT_S390_GS_CB): Likewise.
18886 (NT_S390_GS_BC): Likewise.
18887 (NT_S390_RI_CB): Likewise.
18888
18889 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18890 (MAP_SYNC): New macro.
18891 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18892 Likewise.
18893 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18894 (MAP_SYNC): Likewise.
18895 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18896 (MAP_SYNC): Likewise.
18897 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18898 (MAP_SYNC): Likewise.
18899 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18900 (MAP_SYNC): Likewise.
18901 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18902 (MAP_SYNC): Likewise.
18903 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18904 (MAP_SYNC): Likewise.
18905 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18906 Likewise.
18907 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18908 Likewise.
18909
18910 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18911 (MAP_SHARED_VALIDATE): New macro.
18912 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18913 (MAP_SHARED_VALIDATE): Likewise.
18914
18915 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18916
18917 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18918 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18919 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18920
18921 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18922
18923 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18924 (DT_NUM): Updated to 35.
18925
18926 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18927
18928 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18929 __builtin_expect with __glibc_likely and __glibc_unlikely.
18930 (elf_machine_rela): Likewise.
18931 (elf_machine_lazy_rel): Likewise.
18932
18933 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18934
18935 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18936 __builtin_expect with __glibc_likely and __glibc_unlikely.
18937 (elf_machine_lazy_rel): Likewise.
18938
18939 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18940
18941 [BZ #22638]
18942 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18943 SHARED.
18944 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18945
18946 2018-02-05 Andreas Schwab <schwab@suse.de>
18947
18948 [BZ #22761]
18949 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18950 string.
18951
18952 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18953
18954 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18955 not check against PTHREAD_STACK_MIN.
18956
18957 2018-02-02 Sean McKean <smckean83@gmail.com>
18958
18959 [BZ #22735]
18960 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18961
18962 2018-02-02 Florian Weimer <fweimer@redhat.com>
18963
18964 [BZ #22753]
18965 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18966 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18967 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18968 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18969 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18970 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18971 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18972 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18973 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18974 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18975 * misc/tst-preadvwritev2.c (do_test): Call it.
18976 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18977
18978 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18979
18980 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18981
18982 * benchtests/bench-memcmp.c: Print json instead of plain text.
18983
18984 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18985 every test run.
18986
18987 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18988
18989 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18990 version to 4.15.
18991 (s390_sthyi): New syscall.
18992
18993 * sysdeps/generic/ldbl-classify-compat.h: New file.
18994 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18995 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18996 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18997 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18998 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18999 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
19000 * sysdeps/ieee754/dbl-64/s_finite.c: Include
19001 <ldbl-classify-compat.h>.
19002 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19003 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
19004 <ldbl-classify-compat.h>.
19005 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19006 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
19007 <ldbl-classify-compat.h>.
19008 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19009 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
19010 <ldbl-classify-compat.h>.
19011 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19012 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
19013 <ldbl-classify-compat.h>.
19014 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19015 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
19016 <ldbl-classify-compat.h>.
19017 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
19018 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
19019 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
19020 * sysdeps/m68k/coldfire/math_private.h: Remove file.
19021 * sysdeps/microblaze/math_private.h: Likewise.
19022 * sysdeps/nios2/math_private.h: Likewise.
19023 * sysdeps/sh/math_private.h: Likewise.
19024
19025 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
19026 * sysdeps/m68k/coldfire/math_private.h: ... here.
19027 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
19028 * sysdeps/tile/math_private.h: Likewise.
19029 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
19030 Remove macro.
19031 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
19032 Likewise.
19033
19034 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
19035 Remove macro.
19036 (libc_fetestexcept): Likewise.
19037 (libc_feupdateenv_test): Likewise.
19038 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
19039 (libc_fetestexcept): Likewise.
19040 (libc_feupdateenv_test): Likewise.
19041 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
19042 (libc_fetestexcept): Likewise.
19043 (libc_feupdateenv_test): Likewise.
19044 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
19045 (libc_fetestexcept): Likewise.
19046 (libc_feupdateenv_test): Likewise.
19047
19048 * sysdeps/generic/math_private.h
19049 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
19050 New inline function.
19051 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
19052 Likewise.
19053
19054 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
19055 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
19056 * sysdeps/generic/math_private.h
19057 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
19058 inline function.
19059 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
19060 Likewise.
19061 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
19062 Likewise.
19063 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
19064 Likewise.
19065 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
19066 Likewise.
19067 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
19068 Likewise.
19069 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
19070 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
19071 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
19072 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
19073 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
19074 (__fegetenv): Likewise.
19075 (fesetenv): Likewise.
19076 (__fesetenv): Likewise.
19077 (feupdateenv): Likewise.
19078 (__feupdateenv): Likewise.
19079 (fegetround): Likewise.
19080 (__fegetround): Likewise.
19081 (fesetround): Likewise.
19082 (__fesetround): Likewise.
19083
19084 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19085 (feraiseexcept): New macro.
19086 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19087 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19088 Remove macro.
19089 (__feraiseexcept): Likewise.
19090 (feclearexcept): Likewise.
19091 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19092 (__feraiseexcept): Likewise.
19093 (feclearexcept): Likewise.
19094 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19095 (__feraiseexcept): Likewise.
19096 (feclearexcept): Likewise.
19097 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19098 (__feraiseexcept): Likewise.
19099 (feclearexcept): Likewise.
19100 (fetestexcept): Likewise.
19101
19102 * sysdeps/m68k/coldfire/math-tests.h: New file.
19103
19104 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19105 * sysdeps/m68k/bits/fenv.h: ... here.
19106 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19107 not define.
19108 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19109 Likewise.
19110 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19111 Likewise.
19112 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19113 Likewise.
19114 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19115 Likewise.
19116 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19117 Define to 0.
19118 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19119 (__FE_UNDEFINED): New enum constant.
19120 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19121 Do not define.
19122 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19123 Likewise.
19124 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19125 Likewise.
19126 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19127 to match generic bits/fenv.h.
19128 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19129 Do not define.
19130
19131 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19132 packed on bits.
19133 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19134 * soft-fp/half.h (union _FP_UNION_H): Likewise.
19135 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19136 * soft-fp/single.h (union _FP_UNION_S): Likewise.
19137
19138 2018-02-01 Carlos O'Donell <carlos@redhat.com>
19139 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
19140 Joseph Myers <joseph@codesourcery.com>
19141
19142 [BZ #21314]
19143 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19144 (__log1p): Disable -Wmaybe-uninitialized for -Os around
19145 computation using c.
19146 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19147 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19148 computation using c.
19149
19150 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19151
19152 * version.h (RELEASE): Set to "development".
19153 (VERSION): Set to "2.27.9000".
19154 * NEWS (2.28): New section.
19155
19156 * version.h (RELEASE): Set to "stable".
19157 (VERSION): Set to "2.27".
19158 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19159
19160 * NEWS: Add the list of bugs fixed in 2.27.
19161
19162 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19163
19164 * stdlib/test-atexit-race-common.c (do_test): Check stack size
19165 against PTHREAD_STACK_MIN.
19166
19167 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19168
19169 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19170 New entries.
19171 (Rafal Luzynski, Andreas Schwab): Update.
19172
19173 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
19174
19175 [BZ #10871]
19176 * NEWS: List the languages which actually use the alternative
19177 months feature in this release. Also explain that "alt_mon" and
19178 "ab_alt_mon" are optional.
19179
19180 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
19181
19182 [BZ #22765]
19183 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19184
19185 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
19186
19187 * manual/install.texi (Tools for Compilation): Update the newest
19188 versions of gcc, binutils, texinfo, gawk, bison, and sed.
19189 * INSTALL: Regenerated.
19190
19191 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
19192
19193 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19194 instead of __builtin_expect.
19195
19196 2018-01-30 Florian Weimer <fweimer@redhat.com>
19197
19198 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19199 data.
19200 * nss/tst-nss-getpwent.c (do_test): Likewise.
19201
19202 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
19203
19204 [BZ #10871]
19205 * localedata/locales/hr_HR (mon): Rename to...
19206 (alt_mon): This.
19207 (mon): Import from CLDR (genitive case).
19208 (d_t_fmt): Update the comment.
19209
19210 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19211
19212 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19213 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19214 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19215
19216 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19217
19218 * mach/Versions: Fix version when __mach_host_self_ was added.
19219 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19220 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19221 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19222 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19223 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19224 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19225 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19226 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19227 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19228 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19229 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19230 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19231 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19232 || to respect codestyle.
19233 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19234 (do_test_bz20181): Rename accordingly.
19235 * malloc/malloc.c: Include <assert.h>.
19236 (assert): Do not define.
19237 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19238 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19239 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19240 * sysdeps/mach/hurd/hp-timing.h: New file.
19241 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19242
19243 2018-01-29 Darius Rad <darius@bluespec.com>
19244
19245 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19246
19247 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19248
19249 * sysdeps/init_array/crti.S (.section .init_array): Add
19250 PREINIT_FUNCTION when defined.
19251 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19252 * config.h.in: Regenerate.
19253 * manual/platform.texi: Add RISC-V documenation for
19254 __riscv_flush_icache.
19255 * sysdeps/riscv/__longjmp.S: New file.
19256 * sysdeps/riscv/backtrace.c: Likewise.
19257 * sysdeps/riscv/bits/endian.h: Likewise.
19258 * sysdeps/riscv/bits/setjmp.h: Likewise.
19259 * sysdeps/riscv/bits/wordsize.h: Likewise.
19260 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19261 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19262 * sysdeps/riscv/dl-trampoline.S: Likewise.
19263 * sysdeps/riscv/gccframe.h: Likewise.
19264 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19265 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19266 * sysdeps/riscv/machine-gmon.h: Likewise.
19267 * sysdeps/riscv/memusage.h: Likewise.
19268 * sysdeps/riscv/setjmp.S: Likewise.
19269 * sysdeps/riscv/sys/asm.h: Likewise.
19270 * sysdeps/riscv/tls-macros.h: Likewise.
19271 * sysdeps/riscv/dl-tls.h: New file.
19272 * sysdeps/riscv/libc-tls.c: Likewise.
19273 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19274 * sysdeps/riscv/nptl/tls.h: Likewise.
19275 * sysdeps/riscv/stackinfo.h: Likewise.
19276 * sysdeps/riscv/bits/fenv.h: New file.
19277 * sysdeps/riscv/e_sqrtl.c: Likewise.
19278 * sysdeps/riscv/fpu_control.h: Likewise.
19279 * sysdeps/riscv/math-tests.h: Likewise.
19280 * sysdeps/riscv/nofpu/Implies: Likewise.
19281 * sysdeps/riscv/sfp-machine.h: Likewise.
19282 * sysdeps/riscv/tininess.h: Likewise.
19283 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19284 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19285 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19286 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19287 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19288 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19289 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19290 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19291 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19292 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19293 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19294 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19295 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19296 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19297 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19298 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19299 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19300 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19301 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19302 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19303 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19304 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19305 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19306 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19307 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19308 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19309 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19310 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19311 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19312 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19313 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19314 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19315 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19316 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19317 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19318 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19319 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19320 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19321 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19322 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19323 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19324 * sysdeps/riscv/rvf/math_private.h: Likewise.
19325 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19326 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19327 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19328 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19329 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19330 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19331 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19332 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19333 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19334 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19335 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19336 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19337 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19338 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19339 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19340 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19341 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19342 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19343 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19344 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19345 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19346 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19347 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19348 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19349 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19350 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19351 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19352 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19353 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19354 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19355 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19356 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19357 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19358 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19359 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19360 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19361 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19362 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19363 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19364 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19365 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19366 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19367 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19368 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19369 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19370 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19371 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19372 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19373 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19374 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19375 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19376 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19377 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19378 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19379 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19380 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19381 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19382 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19383 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19384 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19385 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19386 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19387 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19388 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19389 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19390 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19391 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19392 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19393 * sysdeps/riscv/Implies: New file.
19394 * sysdeps/riscv/Makefile: Likewise.
19395 * sysdeps/riscv/configure: Likewise.
19396 * sysdeps/riscv/configure.ac: Likewise.
19397 * sysdeps/riscv/nptl/Makefile: Likewise.
19398 * sysdeps/riscv/preconfigure: Likewise.
19399 * sysdeps/riscv/rv64/Implies-after: Likewise.
19400 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19401 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19402 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19403 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19404 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19405 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19406 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19407 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19408 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19409 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19410 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19411 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19412 (Config): Likewise.
19413
19414 2018-01-29 Florian Weimer <fweimer@redhat.com>
19415
19416 [BZ #22701]
19417 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19418 libnsl_hidden_proto.
19419 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19420 libnsl_hidden_proto.
19421 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19422 * nis/Makefile (libnsl-routines): Add nss-default only for
19423 build-obsolete-nsl.
19424 * nis/nis_defaults.c (__nis_default_ttl): Add
19425 libnsl_hidden_nolink_def.
19426 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19427 declaration.
19428 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19429 * nis/ypclnt.c (yp_maplist): Likewise.
19430
19431 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19432
19433 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19434 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19435
19436 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19437
19438 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19439 clean -dxfq for git updates when replacing sources.
19440
19441 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19442 --disable-libcilkrts unconditionally, not just for the final GCC
19443 build for Hurd.
19444
19445 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19446 version to 4.15.
19447
19448 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19449
19450 [BZ #10871]
19451 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19452 case).
19453
19454 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19455
19456 [BZ #10871]
19457 * localedata/locales/be_BY (mon): Rename to...
19458 (alt_mon): This, then synchronize with CLDR (nominative case).
19459 (abmon): Rename to...
19460 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19461 (mon): Import from CLDR (genitive case).
19462 (abmon): Likewise.
19463 * localedata/locales/be_BY@latin (mon): Rename to...
19464 (alt_mon): This.
19465 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19466
19467 * localedata/locales/be_BY@latin (lang_name): Reworded to
19468 "biełaruskaja mova".
19469
19470 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19471
19472 [BZ #10871]
19473 * localedata/locales/el_CY (mon): Renamed to...
19474 (alt_mon): This.
19475 (mon): Import from CLDR (genitive case).
19476 * localedata/locales/el_GR: Likewise.
19477
19478 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19479
19480 [BZ #10871]
19481 * localedata/locales/ru_RU (mon): Rename to...
19482 (alt_mon): This.
19483 (abmon): Rename to...
19484 (ab_alt_mon): This.
19485 (mon): Import from CLDR (genitive case).
19486 (abmon): Copy from the old content except the 5th month which is
19487 now in the genitive case, even when abbreviated.
19488 * localedata/locales/ru_UA: Likewise.
19489 * time/tst-strptime.c (day_tests): Add an actual example of
19490 a difference between %b and %Ob in Russian.
19491
19492 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19493
19494 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19495 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19496 a `c' variable.
19497 * resolv/res-close.c: Include <stdlib.h>.
19498 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19499 <sys/wait.h>, <time.h>, <sys/uio.h>.
19500 (NOT_CANCEL_H): Add inclusion guard.
19501 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19502 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19503 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19504 return 0.
19505 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19506 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19507 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19508 instead of void *.
19509 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19510 timer_ptr2id to cast struct timer_node * to void *.
19511 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19512 --disable-libcilkrts to gcc configure.
19513 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19514 and make them the default for now.
19515 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19516 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19517 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19518 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19519 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19520 MACH_IPC_COMPAT.
19521 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19522 __task_terminate would ever return successfully.
19523 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19524 to global scope.
19525 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19526 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19527 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19528 critical section to make code simpler and avoid warning.
19529 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19530 critical section to make code simpler and avoid warning.
19531 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19532 const char * instead of char *.
19533 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19534 __hurd_file_name_split, hurd_file_name_split,
19535 __hurd_directory_name_split, hurd_directory_name_split,
19536 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19537 hurd_file_name_path_lookup): Make lookup function parameter take a
19538 const char *name instead of char *name.
19539 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19540 __hurd_directory_name_split): Likewise.
19541 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19542 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19543 * sysdeps/mach/hurd/check_native.c: New file.
19544 * sysdeps/mach/hurd/check_pf.c: New file.
19545 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19546 (__freeifaddrs): Define macro to freeifaddrs.
19547 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19548 * sysdeps/mach/libmachuser.abilist: New file.
19549 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19550 (do_test_bz20181): Rename accordingly.
19551 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19552 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19553 <sys/mount.h>.
19554 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19555 version only if __USE_EXTERN_INLINES is defined.
19556 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19557 __hurd_sockfail): Likewise.
19558 (_hurd_fd_get): Always declare functions, and provide inline versions
19559 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19560 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19561 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19562 _hurd_port_set): Always declare functions, and provide inline versions
19563 only if __USE_EXTERN_INLINES and _LIBC are defined and
19564 IS_IN(libc).
19565 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19566 _hurd_critical_section_unlock): Likewise.
19567 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19568 * __hurd_threadvar_location): Likewise.
19569 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19570 _hurd_userlink_clear): Likewise.
19571 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19572 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19573 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19574 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19575 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19576 __spin_lock_locked): Likewise.
19577 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19578 __spin_lock_locked): Likewise.
19579 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19580 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19581 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19582 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19583 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19584 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19585 _POSIX_NO_TRUNC): Define to 0.
19586 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19587 check size against PTHREAD_STACK_MIN.
19588 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19589 IS_IN(libpthread)]: Include <sigsetops.h>.
19590 * mach/Makefile (user-interfaces): Add mach/gnumach.
19591 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19592 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19593 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19594 instead of invalid -1.
19595 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19596 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19597 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19598 <net/ppp_defs.h>.
19599
19600 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19601
19602 * hurd/fcntl-internal.h: New file.
19603
19604 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19605
19606 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19607
19608 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19609
19610 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19611
19612 [BZ #22701]
19613 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19614 Build only shared objects.
19615
19616 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19617
19618 * README: Update for hppa.
19619
19620 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19621
19622 * sysdeps/sparc/fpu/libm-test-ulps: Update
19623 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19624
19625 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19626
19627 Revert:
19628
19629 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19630
19631 [BZ #22563]
19632 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19633 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19634 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19635 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19636 to feature_1.
19637
19638 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19639
19640 [BZ #22563]
19641 * bits/types/__cancel_jmp_buf_tag.h: New file.
19642 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19643 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19644 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19645 * nptl/Makefile (headers): Add
19646 bits/types/__cancel_jmp_buf_tag.h.
19647 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19648 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19649 * sysdeps/nptl/pthread.h: Include
19650 <bits/types/__cancel_jmp_buf_tag.h>.
19651 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19652 __cancel_jmp_buf.
19653 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19654
19655 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19656
19657 [BZ #10871]
19658 * localedata/locales/uk_UA (mon): Renamed to...
19659 (alt_mon): This.
19660 (alt_digits): "0" removed and then renamed to...
19661 (mon): This.
19662 (date_fmt): Definition changed not to use the alternative
19663 digits hack.
19664
19665 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19666
19667 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19668 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19669 * elf/elf.h (EF_RISCV_RVC): New define.
19670 (EF_RISCV_FLOAT_ABI): Likewise.
19671 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19672 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19673 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19674 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19675 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19676 define.
19677 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19678
19679 2018-01-25 Andreas Schwab <schwab@suse.de>
19680
19681 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19682 single quotes.
19683 * sysdeps/gnu/configure: Regenerate.
19684 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19685 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19687 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19688 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19689 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19690 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19691 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19692
19693 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19694
19695 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19696 URL, and run autoconf, make it the default for now.
19697
19698 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19699
19700 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19701 soft-float ColdFire configuration.
19702
19703 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19704 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19705 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19706
19707 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19708 MicroBlaze file.
19709
19710 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19711 ....
19712 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19713 ... here.
19714 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19715 New file.
19716
19717 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19718 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19719 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19720 file.
19721
19722 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19723
19724 [BZ #22742]
19725 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19726 Rename to __reserved and add comment.
19727 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19728 Rename to __reserved.
19729
19730 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19731
19732 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19733 i686-gnu configurations.
19734 (Context.run_builds): Include mig, gnumach and hurd in components
19735 considered.
19736 (Context.checkout): Add mig, gnumach and hurd to components.
19737 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19738 hurd.
19739 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19740 (Config.build): Install gnumach headers, build mig and install
19741 hurd headers for 'gnu' OS.
19742 (Config.install_gnumach_headers): New function.
19743 (Config.install_hurd_headers): Likewise.
19744 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19745 when building for 'gnu' OS.
19746
19747 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19748
19749 * manual/tunables.texi (Hardware Capability Tunables): Fix
19750 spelling.
19751
19752 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19753
19754 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19755 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19756 (ALTMON_11, ALTMON_12): Improve documentation.
19757 * manual/time.texi (strftime): Likewise.
19758
19759 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19760
19761 [BZ #10871]
19762 * localedata/locales/pl_PL: Alternative month names added,
19763 primary month names are genitive now.
19764 * time/tst-strptime.c (day_tests): Actually use a genitive case
19765 of a month name in Polish language.
19766
19767 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19768
19769 [BZ #10871]
19770 * manual/locale.texi: Document ALTMON_1..12 constants for
19771 nl_langinfo. Specify when to use ALTMON instead of MON.
19772 * manual/time.texi (strftime, strptime): Document GNU extension
19773 permitting O modifier with %B and %b. Specify when to use
19774 %OB instead of %B.
19775
19776 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19777
19778 [BZ #10871]
19779 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19780 names, define them as the same as abbreviated month names explicitly.
19781 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19782 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19783 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19784 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19785 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19786 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19787 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19788 _NL_WABALTMON_12): New enum constants.
19789 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19790 wab_alt_mon, and ab_alt_mon_defined members.
19791 (time_output): Output ab_alt_mon and wab_alt_mon members.
19792 (time_read): Read them, initialize them as copies of abmon and wabmon
19793 respectively if they are missing, initialize ab_alt_mon_defined.
19794 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19795 * locale/programs/locfile-kw.h: Regenerate.
19796 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19797 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19798 and ru_RU.UTF-8.
19799 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19800 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19801 (__strftime_internal): Handle %Ob and %Oh formats.
19802 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19803 (__strptime_internal): Handle %Ob and %Oh formats.
19804 * time/tst-strptime.c (day_tests): Add more tests to parse different
19805 forms of month names including the new %Ob format specifier.
19806
19807 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19808
19809 [BZ #10871]
19810 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19811 define them as the same as primary full month names explicitly.
19812 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19813 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19814 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19815 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19816 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19817 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19818 _NL_WALTMON_12): New enum constants.
19819 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19820 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19821 macros.
19822 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19823 walt_mon, and alt_mon_defined members.
19824 (time_output): Output alt_mon and walt_mon members.
19825 (time_read): Read them, initialize them as copies of mon and wmon
19826 respectively if they are missing, initialize alt_mon_defined.
19827 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19828 * locale/programs/locfile-kw.h: Regenerate.
19829 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19830 * localedata/tst-langinfo.c (map): Add tests for the new constants
19831 ALTMON_1 .. ALTMON_12.
19832 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19833 and pl_PL.UTF-8.
19834 * time/strftime_l.c (f_altmonth): New macro.
19835 (__strftime_internal): Handle %OB format.
19836 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19837 (__strptime_internal): Handle %OB format.
19838 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19839 of month names including the new %OB format specifier.
19840
19841 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19842
19843 [BZ #22685]
19844 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19845 from ABORT_TRANSACTION.
19846 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19847 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19848 ABORT_TRANSACTION_IMPL): Likewise.
19849 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19850 Linux code, but remove the code that aborts transactions.
19851
19852 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19853
19854 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19855
19856 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19857
19858 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19859 in date: "2004-14-09" should be "2004-09-14".
19860 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19861 "2003-15-09" should be "2003-09-15".
19862
19863 2018-01-18 Arjun Shankar <arjun@redhat.com>
19864
19865 [BZ #22343]
19866 [BZ #22774]
19867 CVE-2018-6485
19868 CVE-2018-6551
19869 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19870 after padding.
19871 (_int_memalign): check for integer overflow before calling
19872 _int_malloc.
19873 * malloc/tst-malloc-too-large.c: New test.
19874 * malloc/Makefile: Add tst-malloc-too-large.
19875
19876 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19877
19878 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19879 in date: "2017-24-07" should be "2017-07-24".
19880 * localedata/locales/mai_IN: Likewise.
19881 * localedata/locales/mai_NP: Likewise.
19882
19883 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19884
19885 * po/ru.po: Update translations.
19886
19887 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19888
19889 [BZ #22719]
19890 * sysdeps/hppa/backtrace.c: New file.
19891
19892 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19893
19894 [BZ #22715]
19895 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19896 align La_x86_64_retval to VEC_SIZE.
19897
19898 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19899
19900 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19901 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19902
19903 2018-01-16 Florian Weimer <fweimer@redhat.com>
19904
19905 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19906 Move tst-thread-exit-clobber ...
19907 [$(CXX)] (tests-unsupported): ... to here.
19908
19909 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19910
19911 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19912 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19913 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19914 (_dl_aarch64_cap_flags): Update.
19915 (_DL_HWCAP_COUNT): Update.
19916
19917 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19918
19919 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19920 (_DL_HWCAP_LAST): Remove.
19921 (_DL_HWCAP_COUNT): Move to ...
19922 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19923 (_DL_HWCAP_COUNT): ... here.
19924
19925 2018-01-16 Florian Weimer <fweimer@redhat.com>
19926
19927 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19928 mode with GNU extensions.
19929
19930 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19931
19932 * elf/elf.h (NT_ARM_SVE): Define.
19933
19934 2018-01-15 Florian Weimer <fweimer@redhat.com>
19935
19936 [BZ #22636]
19937 * nptl/tst-minstack-throw.cc: New file.
19938 * nptl/Makefile (tests): Add tst-minstack-throw.
19939 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19940 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19941
19942 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19943
19944 * scripts/build-many-glibcs.py (Context.checkout): Default
19945 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19946 version to 1.1.0.
19947
19948 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19949
19950 [BZ #22707]
19951 * elf/elf.h (DF_1_STUB): Define.
19952 (DF_1_PIE): Define.
19953
19954 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19955
19956 [BZ #22697]
19957 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19958 Do not add 0.5 to integer or out-of-range arguments.
19959
19960 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19961
19962 * po/bg.po: Update translations.
19963 * po/cs.po: Likewise.
19964 * po/de.po: Likewise.
19965 * po/ko.po: Likewise.
19966 * po/pl.po: Likewise.
19967 * po/sv.po: Likewise.
19968 * po/uk.po: Likewise.
19969 * po/vi.po: Likewise.
19970
19971 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19972
19973 * aarch64/start.S (_start): Use __wrap_main.
19974 (__wrap_main): New local symbol.
19975
19976 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19977
19978 [BZ #22679]
19979 CVE-2018-1000001
19980 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19981 generic_getcwd if the path returned by getcwd syscall is not absolute.
19982 * io/tst-getcwd-abspath.c: New test.
19983 * io/Makefile (tests): Add tst-getcwd-abspath.
19984
19985 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19986
19987 * malloc/malloc.c (malloc_consolidate): Add size check.
19988
19989 2018-01-12 Florian Weimer <fweimer@redhat.com>
19990
19991 * support/write_message.c (write_message): Preserve errno.
19992 * support/check.c (print_failure): Likewise.
19993 * support/support_test_verify_impl.c (support_test_verify_impl):
19994 Likewise.
19995 * support/support_test_compare_failure.c
19996 (support_test_compare_failure): Likewise.
19997
19998 2018-01-12 Florian Weimer <fweimer@redhat.com>
19999
20000 [BZ #22701]
20001 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
20002 Prevent installation of libnsl.so.
20003 (libnsl-inhibit-o): Do not build (or install) static libraries.
20004
20005 2018-01-12 Egmont Koblinger <egmont@gmail.com>
20006
20007 [BZ #22657]
20008 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
20009 before the day number which may produce a double space.
20010 (date_fmt): Likewise.
20011
20012 2018-01-12 Joseph Myers <joseph@codesourcery.com>
20013
20014 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
20015 instead of fegetenv.
20016
20017 2018-01-11 Joseph Myers <joseph@codesourcery.com>
20018
20019 [BZ #22702]
20020 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
20021 comment to say exceptions are discarded.
20022 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
20023 __fegetenv.
20024 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
20025 be enabled.
20026
20027 2018-01-11 Florian Weimer <fweimer@redhat.com>
20028
20029 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
20030 and error message.
20031
20032 2018-01-11 Florian Weimer <fweimer@redhat.com>
20033
20034 [BZ #22636]
20035 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
20036 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
20037
20038 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20039
20040 [BZ #22693]
20041 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
20042 negative arguments in test for NaN or infinity argument.
20043
20044 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
20045
20046 * po/libc.pot: Regenerate.
20047
20048 2018-01-10 Florian Weimer <fweimer@redhat.com>
20049
20050 [BZ #22636]
20051 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
20052 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
20053
20054 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
20055
20056 * hurd/hurd/fd.h: Include <fcntl.h>
20057 (__hurd_at_flags): New function.
20058 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
20059 with call to __hurd_at_flags.
20060 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
20061 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
20062 __faccessat
20063 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
20064 (__access_noerrno): Use __faccessat_common instead of access_common.
20065 (__access): Likewise.
20066 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
20067 with a call to __faccessat.
20068 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
20069 (__faccessat_common): ... this. Move implementation of __access into it when
20070 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
20071 reauthenticate_cwdir_at helper to implement AT mechanism.
20072 (__faccessat_noerrno): New function, just calls __faccessat_common.
20073 (__faccessat): New function, just calls __faccessat_common.
20074 (faccessat): Define weak alias.
20075
20076 2018-01-10 Joseph Myers <joseph@codesourcery.com>
20077
20078 [BZ #22691]
20079 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20080 (CFLAGS-s_fmaxmagl.c): New variable.
20081 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20082
20083 [BZ #22690]
20084 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20085 long int for arguments of possibly overflowing addition or
20086 subtraction.
20087 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20088
20089 2018-01-09 Joseph Myers <joseph@codesourcery.com>
20090
20091 [BZ #22688]
20092 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20093 (CFLAGS-e_remainderl.c): New variable.
20094
20095 [BZ #22687]
20096 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20097 variable.
20098 (CFLAGS-s_cacoshl.c): Likewise.
20099 (CFLAGS-s_casinhl.c): Likewise.
20100 (CFLAGS-s_catanl.c): Likewise.
20101 (CFLAGS-s_catanhl.c): Likewise.
20102 (CFLAGS-s_cexpl.c): Likewise.
20103 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20104 (CFLAGS-s_csinhl.c): Likewise.
20105 (CFLAGS-s_clogl.c): Likewise.
20106 (CFLAGS-s_clog10l.c): Likewise.
20107 (CFLAGS-s_csinl.c): Likewise.
20108 (CFLAGS-s_csqrtl.c): Likewise.
20109
20110 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
20111 2017-01-09 Svante Signell <svante.signell@gmail.com>
20112
20113 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20114 (_hurd_exec_paths): New function.
20115 * hurd/hurd.h (_hurd_exec): Deprecate function.
20116 (_hurd_exec_paths): Declare function.
20117 * hurd/Versions: Export _hurd_exec_paths.
20118 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20119 (__execve): Use __getcwd to build absolute path, and use
20120 _hurd_exec_paths instead of _hurd_exec.
20121 * sysdeps/mach/hurd/spawni.c: Likewise.
20122 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20123 _hurd_exec.
20124
20125 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
20126
20127 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20128 test instead of failing in case of ENOENT returned by posix_openpt.
20129
20130 2018-01-08 Florian Weimer <fweimer@redhat.com>
20131
20132 resolv: Support binary labels in test framework.
20133 * support/resolv_test.c (struct to_be_freed): Remove.
20134 (struct compressed_name): New.
20135 (allocate_compressed_name, ascii_tolower)
20136 (compare_compressed_name): New functions.
20137 (struct resolv_response_builder): Update type of
20138 compression_offsets for use with tsearch. Rempve to_be_freed.
20139 (response_push_pointer_to_free): Remove function.
20140 (resolv_response_add_name): Rewrite using struct compressed_name
20141 and tsearch instead of hsearch_r.
20142 (response_builder_allocate): Remove initialization of
20143 compression_offsets.
20144 (response_builder_free): Update for removal of to_be_freed. Use
20145 tdestroy instead of hdestroy_r.
20146 * resolv/Makefile (tests): Add tst-resolv-binary.
20147 (tst-resolv-binary): Link with -lresolv -lpthread.
20148
20149 2018-01-08 Florian Weimer <fweimer@redhat.com>
20150
20151 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20152 time. Pass positive flag instead of negative flag to
20153 support_test_compare_failure.
20154 (support_test_compare_failure): Change negative parameter to
20155 positive.
20156 * support/support_test_compare_failure.c (report)
20157 (support_test_compare_failure): Likewise.
20158 * support/tst-test_compare.c (return_ssize_t, return_int): New.
20159 (do_test): Check int/size_t, ssize_t/size_t comparisons.
20160
20161 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
20162
20163 [BZ #22637]
20164 * nptl/descr.h (stackblock, stackblock_size): Update comments.
20165 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20166 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20167 stacksize.
20168 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20169
20170 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
20171
20172 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20173 Add s_sincosf-sse2 and s_sincosf-fma.
20174 (CFLAGS-s_sincosf-fma.c): New.
20175 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20176 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20177 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20178 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20179 __sincosf is defined.
20180
20181 2018-01-08 Florian Weimer <fweimer@redhat.com>
20182
20183 * nptl/tst-thread-exit-clobber.cc: New file.
20184 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20185 C++11 mode.
20186 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20187 (tests): Add tst-thread-exit-clobber.
20188 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20189
20190 2018-01-08 Florian Weimer <fweimer@redhat.com>
20191
20192 * support/check.h (support_static_assert): Define.
20193 (TEST_COMPARE): Use it.
20194
20195 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
20196
20197 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20198 [!__RLIM_T_MATCHES_RLIM64_T]
20199 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20200 __getrlimit64. Add libc_hidden_weak.
20201
20202 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
20203
20204 * elf/elf.h (R_RISCV_NONE): New define.
20205 (R_RISCV_32): Likewise.
20206 (R_RISCV_64): Likewise.
20207 (R_RISCV_RELATIVE): Likewise.
20208 (R_RISCV_COPY): Likewise.
20209 (R_RISCV_JUMP_SLOT): Likewise.
20210 (R_RISCV_TLS_DTPMOD32): Likewise.
20211 (R_RISCV_TLS_DTPMOD64): Likewise.
20212 (R_RISCV_TLS_DTPREL32): Likewise.
20213 (R_RISCV_TLS_DTPREL64): Likewise.
20214 (R_RISCV_TLS_TPREL32): Likewise.
20215 (R_RISCV_TLS_TPREL64): Likewise.
20216 * Makerules (make-link-multidir): Make directories before linking into
20217 them.
20218 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20219 define.
20220 (VDSO_HASH_LINUX_4_15): Likewise.
20221 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20222 in subdirectories of lib.
20223 * nptl/Makefile (/librt.so): Always depend on
20224 "$(shared-thread-library)".
20225
20226 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20227
20228 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20229 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20230 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20231 (___tls_get_addr).
20232 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20233 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20234 "-O2 -march=i686".
20235 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20236 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20237 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20238 * sysdeps/gnu/glob-lstat-compat.c: New file.
20239 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20240 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20241
20242 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20243
20244 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20245 Reserve 16 chars to reloc_addr before calling _itoa_word.
20246
20247 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20248
20249 [BZ #22678]
20250 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20251 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20252
20253 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20254 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20255
20256 * resource/tst-getrlimit.c: Add copyright header.
20257
20258 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20259 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20260
20261 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20262 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20263 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20264 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20265 instead.
20266 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20267 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20268 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20269 RLIM64_INFINITY): Fix values to match the kernel ones.
20270 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20271 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20272 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20273 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20274 getrlimit64@@GLIBC_2_27.
20275 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20276 and setrlimit64.
20277 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20278 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20279 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20280 setrlimit, getrlimit64 and setrlimit64.
20281
20282 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20283
20284 [BZ #22648]
20285 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20286 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20287
20288 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20289
20290 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20291 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20292 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20293
20294 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20295
20296 [BZ #15479]
20297 [BZ #22666]
20298 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20299 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20300
20301 [BZ #15479]
20302 [BZ #22665]
20303 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20304 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20305 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20306 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20307
20308 2018-01-04 Florian Weimer <fweimer@redhat.com>
20309
20310 [BZ #22667]
20311 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20312 Align the stack before calling exit.
20313 * stdlib/tst-makecontext-align.c: New file.
20314 * stdlib/Makefile (tests): Add tst-makecontext-align.
20315
20316 2018-01-04 Florian Weimer <fweimer@redhat.com>
20317
20318 Add support for calling dlvsym from libc.so.
20319 * include/dlfcn.h (__libc_dlvsym): Declare.
20320 * elf/Makefile (tests-static-internal): Add
20321 tst-libc_dlvsym-static.
20322 (tests-internal): Add tst-libc_dlvsym.
20323 (modules-names): Add tst-libc_dlvsym-dso.
20324 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20325 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20326 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20327 object tst-libc_dlvsym-dso.so needs to be built before running
20328 these tests.
20329 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20330 * elf/Versions: Export __libc_dlvsym.
20331 * elf/dl-libc.c (struct do_dlvsym_args): New.
20332 (do_dlvsym, __libc_dlvsym): New functions.
20333 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20334 (_dl_open_hook2): New variable.
20335 (__libc_register_dl_open_hook): Set it.
20336 * elf/tst-libc_dlvsym-dso.c: New file.
20337 * elf/tst-libc_dlvsym-static.c: Likewise.
20338 * elf/tst-libc_dlvsym.c: Likewise.
20339 * elf/tst-libc_dlvsym.h: Likewise.
20340
20341 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20342
20343 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20344 include <sys/mount.h>.
20345
20346 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20347
20348 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20349 Add __NO_MATH_ERRNO__ check.
20350
20351 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20352
20353 * sysdeps/mips/mips32/libm-test-ulps: Update.
20354 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20355
20356 2018-01-02 Florian Weimer <fweimer@redhat.com>
20357
20358 * misc/tst-pselect.c: Add copyright header.
20359
20360 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20361
20362 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20363 comment.
20364 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20365 comment.
20366 (settrlimit): Rename into setrlimit.
20367 (__sttrlimit): Rename into __setrlimit.
20368
20369 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20370 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20371 never defined in that case.
20372
20373 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20374
20375 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20376
20377 * sysdeps/arm/libm-test-ulps: Update.
20378
20379 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20380 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20381
20382 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20383
20384 * NEWS: Add cosf and sincosf to list of optimized functions.
20385
20386 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20387
20388 [BZ #22660]
20389 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20390 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20391 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20392 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20393
20394 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20395
20396 [BZ #22433]
20397 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20398
20399 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20400 making a copy of it.
20401
20402 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20403
20404 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20405 trailing whitespace removed.
20406 * scripts/config.guess: Update to version 2018-01-01.
20407 * scripts/config.sub: Update to version 2018-01-01.
20408 * scripts/move-if-change: Update from gnulib.
20409
20410 * NEWS: Update copyright dates.
20411 * catgets/gencat.c (print_version): Likewise.
20412 * csu/version.c (banner): Likewise.
20413 * debug/catchsegv.sh: Likewise.
20414 * debug/pcprofiledump.c (print_version): Likewise.
20415 * debug/xtrace.sh (do_version): Likewise.
20416 * elf/ldconfig.c (print_version): Likewise.
20417 * elf/ldd.bash.in: Likewise.
20418 * elf/pldd.c (print_version): Likewise.
20419 * elf/sotruss.sh: Likewise.
20420 * elf/sprof.c (print_version): Likewise.
20421 * iconv/iconv_prog.c (print_version): Likewise.
20422 * iconv/iconvconfig.c (print_version): Likewise.
20423 * locale/programs/locale.c (print_version): Likewise.
20424 * locale/programs/localedef.c (print_version): Likewise.
20425 * login/programs/pt_chown.c (print_version): Likewise.
20426 * malloc/memusage.sh (do_version): Likewise.
20427 * malloc/memusagestat.c (print_version): Likewise.
20428 * malloc/mtrace.pl: Likewise.
20429 * manual/libc.texinfo: Likewise.
20430 * nptl/version.c (banner): Likewise.
20431 * nscd/nscd.c (print_version): Likewise.
20432 * nss/getent.c (print_version): Likewise.
20433 * nss/makedb.c (print_version): Likewise.
20434 * posix/getconf.c (main): Likewise.
20435 * scripts/test-installation.pl: Likewise.
20436 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20437
20438 * All files with FSF copyright notices: Update copyright dates
20439 using scripts/update-copyrights.
20440 * locale/programs/charmap-kw.h: Regenerated.
20441 * locale/programs/locfile-kw.h: Likewise.
20442
20443 2017-12-31 Zack Weinberg <zackw@panix.com>
20444
20445 * libio/bits/libio-ldbl.h: Correct check for improper
20446 inclusion. Add own multiple include guard.
20447
20448 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20449 Dmitry V. Levin <ldv@altlinux.org>
20450
20451 [BZ #22625]
20452 CVE-2017-16997
20453 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20454 string token expansion. Check for NULL pointer or empty string possibly
20455 returned by expand_dynamic_string_token.
20456 (decompose_rpath): Check for empty path after dynamic string
20457 token expansion.
20458
20459 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20460
20461 [BZ #22433]
20462 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20463
20464 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20465 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20466 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20467 and PTRACE_SYSCALL.
20468 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20469 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20470 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20471 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20472 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20473 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20474
20475 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20476 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20477 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20478 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20479 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20480 bits/ptrace-shared.h.
20481 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20482 <bits/ptrace-shared.h>.
20483 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20484 __ptrace_peeksiginfo_flags, ptrace): Remove.
20485 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20486 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20487 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20488 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20489 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20490
20491 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20492
20493 [BZ #17804]
20494 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20495 end of the loop. Improve comments.
20496
20497 2017-12-29 Zack Weinberg <zackw@panix.com>
20498
20499 [BZ #22615]
20500 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20501 might be set on success.
20502
20503 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20504
20505 [BZ #22611]
20506 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20507 is unchanged on success.
20508
20509 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20510
20511 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20512 updated.
20513 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20514 expand_dynamic_string_token): Likewise.
20515 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20516 is_path argument.
20517
20518 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20519 contains ':'.
20520
20521 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20522 is set and name contains ':', and all code depending on these checks.
20523
20524 2017-12-24 Zack Weinberg <zackw@panix.com>
20525
20526 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20527 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20528 respectively.
20529 * libio/libio.h: Rename the original version of this file to
20530 libio/bits/libio.h. Error out if not included by stdio.h or the
20531 stub libio.h.
20532 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20533 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20534 if not included by bits/libio.h or the stub _G_config.h.
20535 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20536 sysdeps/unix/sysv/linux/bits. Error out if not included by
20537 bits/libio.h or the stub _G_config.h.
20538 * libio/stdio.h: Include bits/libio.h, not libio.h.
20539 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20540 well as libio.h and _G_config.h.
20541
20542 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20543 * libio/strfile.h, stdio-common/vfscanf.c
20544 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20545 Include stdio.h, not _G_config.h nor libio.h.
20546 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20547 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20548
20549 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20550
20551 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20552
20553 [BZ #22347]
20554 * stdlib/getrandom.c (getrandom): Fix comment.
20555 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20556
20557 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20558
20559 [BZ #21161]
20560 * manual/arith.texi (strtoul): Fix a typo.
20561
20562 [BZ #22596]
20563 * manual/arith.texi (finite): Fix the description of the return
20564 value.
20565
20566 2017-12-22 Eric Blake <ebb9@byu.net>
20567
20568 Avoid gcc warnings on cygwin
20569 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20570 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20571 Avoid unused variable.
20572
20573 2017-12-22 Florian Weimer <fweimer@redhat.com>
20574
20575 * io/Makefile (routines): Add copy_file_range.
20576 (tests): Add tst-copy_file_range.
20577 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20578 * io/Versions (GLIBC_2.27): Export copy_file_range.
20579 * io/copy_file_range-compat.c: New file.
20580 * io/copy_file_range.c: Likewise.
20581 * io/tst-copy_file_range-compat.c: Likewise.
20582 * io/tst-copy_file_range.c: Likewise.
20583 * manual/llio.texi (Copying File Data): New section.
20584 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20585 * support/Makefile (libsupport-routines): Add support-xfstat,
20586 xftruncate, xlseek.
20587 * support/support-xfstat.c: New file.
20588 * support/xftruncate.c: Likewise.
20589 * support/xlseek.c: Likewise.
20590 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20591 * sysdeps/unix/sysv/linux/**.abilist: Update.
20592 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20593
20594 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20595
20596 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20597 disable-multi-arch variant to aarch64-linux-gnu.
20598
20599 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20600
20601 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20602 trailing whitespace removed.
20603 * scripts/config.guess: Update to version 2017-12-17.
20604 * scripts/config.sub: Update to version 2017-11-23.
20605 * scripts/install-sh: Update to version 2017-09-23.17.
20606 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20607
20608 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20609
20610 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20611 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20612 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20613 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20614 * sysdeps/tile/crtn.S: Likewise.
20615 * sysdeps/tile/dl-start.S (_start): Likewise.
20616 * sysdeps/tile/dl-trampoline.S: Likewise.
20617 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20618 * sysdeps/tile/start.S (_start): Likewise.
20619 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20620 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20621 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20622 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20623 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20624 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20625 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20626
20627 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20628 comment.
20629 * sysdeps/tile/preconfigure: Remove tilegx folder.
20630 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20631 * sysdeps/tile/Implies: ... here.
20632 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20633 * sysdeps/tile/Makefile: ... here.
20634 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20635 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20636 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20637 * sysdeps/tile/bits/wordsize.h: ... here.
20638 * sysdeps/tile/tilegx/*: Move to ...
20639 * sysdeps/tile/*: ... here.
20640 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20641 * sysdeps/tile/tilegx32/Implies: ... here.
20642 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20643 * sysdeps/tile/tilegx64/Implies: ... here.
20644 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20645 to ...
20646 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20647 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20648 * sysdeps/unix/sysv/linux/tile/*: ... here.
20649 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20650 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20651 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20652 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20653
20654 * README: Remove tilepro-*-linux-gnu from supported architecture.
20655 * scripts/build-many-glibcs.py: Likewise.
20656 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20657 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20658 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20659 elf_machine_matches_host, elf_machine_dynamic,
20660 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20661 howto, elf_machine_rela): Likewise.
20662 * sysdeps/tile/dl-start.S (_start): Likewise.
20663 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20664 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20665 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20666 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20667 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20668 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20669 Likewise.
20670 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20671 * sysdeps/tile/preconfigure: Likewise.
20672 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20673 POINTER_CHK_GUARD): Likewise.
20674 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20675 * sysdeps/tile/start.S (_start): Likewise.
20676 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20677 Likewise.
20678 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20679 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20680 CMOVNEZ): Remove.
20681 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20682 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20683 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20684 Likewise.
20685 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20686 * sysdeps/tile/tilepro/Implies: Remove file.
20687 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20688 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20689 * sysdeps/tile/tilepro/memchr.c: Likewise.
20690 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20691 * sysdeps/tile/tilepro/memset.c: Likewise.
20692 * sysdeps/tile/tilepro/memusage.h: Likewise.
20693 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20694 * sysdeps/tile/tilepro/strchr.c: Likewise.
20695 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20696 * sysdeps/tile/tilepro/strlen.c: Likewise.
20697 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20698 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20699 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20700 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20701 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20702 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20703 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20704 Likewise.
20705 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20706 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20707 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20708 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20709 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20710 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20711 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20712 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20713 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20714 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20715 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20716 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20717 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20718 tilepro mention in comment.
20719
20720 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20721 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20722 * nptl/pthread_join_common.c: New file: common function used on
20723 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20724 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20725 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20726 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20727 (cleanup): Move definition to pthread_join_common.c.
20728 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20729 Remove superflous checks.
20730 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20731 Likewise.
20732
20733 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20734
20735 * sysdeps/aarch64/libm-test-ulps: Update.
20736
20737 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20738
20739 * sysdeps/aarch64/memset.S (MEMSET): Define.
20740
20741 2017-12-20 Florian Weimer <fweimer@redhat.com>
20742
20743 [BZ #22635]
20744 nptl: Provide full implementation of pthread_self in libc.so.
20745 * nptl/Makefile (routines): Add pthread_self.
20746 (libpthread-routines): Replace pthread_self with
20747 compat-pthread_self.
20748 * nptl/forward.c (pthread_self): Remove.
20749 * nptl/nptl-init.c (pthread_functions): Do not initialize
20750 ptr_pthread_self.
20751 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20752 * nptl/compat-pthread_self.c: New file.
20753 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20754 Remove ptr_pthread_self.
20755
20756 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20757
20758 * posix/regcomp.c: Fix spelling in comments.
20759 * posix/regex.h: Likewise.
20760 * posix/regex_internal.c: Likewise.
20761 * posix/regexec.c: Likewise.
20762
20763 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20764
20765 [BZ #22377]
20766 * math/Makefile [C++] (tests): Add test for iseqsig.
20767 * math/math.h [C++] (iseqsig): New implementation, which does
20768 not rely on __MATH_TG/__builtin_types_compatible_p.
20769 * math/test-math-iseqsig.cc: New file.
20770 * sysdeps/powerpc/powerpc64le/Makefile
20771 (CFLAGS-test-math-iseqsig.cc): New variable.
20772
20773 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20774
20775 * elf/dl-load.c (is_trusted_path): Remove.
20776 (fillin_rpath): Remove check_trusted argument and its use,
20777 all callers changed.
20778
20779 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20780
20781 [BZ #22630]
20782 * Makeconfig (link-pie-before-libc): Replace -pie with
20783 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20784 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20785 (tst-dlopen-aout-no-pie): New.
20786 (LDFLAGS-tst-prelink): Removed.
20787 (tst-prelink-no-pie): New.
20788 (LDFLAGS-tst-main1): Removed.
20789 (tst-main1-no-pie): New.
20790 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20791 (tst-gmon-no-pie): New.
20792
20793 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20794
20795 * manual/install.texi: Document that --enable-static-pie
20796 implies PIE.
20797 * INSTALL: Regenerated.
20798
20799 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20800
20801 [BZ #21309]
20802 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20803 unsigned.
20804
20805 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20806
20807 Revert:
20808
20809 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20810
20811 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20812
20813 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20814
20815 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20816 <errno.h>. Include "eexp.tbl".
20817 (half): New constant.
20818 (one): Likewise.
20819 (__ieee754_exp): Rewrite.
20820 (__slowexp): Remove prototype.
20821 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20822 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20823 * sysdeps/i386/fpu/slowexp.c: Likewise.
20824 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20825 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20826 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20827 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20828 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20829 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20830 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20831 comment.
20832 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20833 (CPPFLAGS-slowexp.c): Remove variable.
20834 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20835 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20836 (CFLAGS-slowexp-fma.c): Remove variable.
20837 (CFLAGS-slowexp-fma4.c): Likewise.
20838 (CFLAGS-slowexp-avx.c): Likewise.
20839 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20840 define as macro.
20841 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20842 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20843 * math/Makefile (type-double-routines): Remove slowexp.
20844 * manual/probes.texi (slowexp_p6): Remove.
20845 (slowexp_p32): Likewise.
20846
20847 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20848
20849 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20850 arithmetic.
20851
20852 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20853
20854 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20855
20856 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20857
20858 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20859
20860 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20861 <errno.h>. Include "eexp.tbl".
20862 (half): New constant.
20863 (one): Likewise.
20864 (__ieee754_exp): Rewrite.
20865 (__slowexp): Remove prototype.
20866 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20867 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20868 * sysdeps/i386/fpu/slowexp.c: Likewise.
20869 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20870 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20871 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20872 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20873 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20874 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20875 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20876 comment.
20877 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20878 (CPPFLAGS-slowexp.c): Remove variable.
20879 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20880 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20881 (CFLAGS-slowexp-fma.c): Remove variable.
20882 (CFLAGS-slowexp-fma4.c): Likewise.
20883 (CFLAGS-slowexp-avx.c): Likewise.
20884 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20885 define as macro.
20886 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20887 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20888 * math/Makefile (type-double-routines): Remove slowexp.
20889 * manual/probes.texi (slowexp_p6): Remove.
20890 (slowexp_p32): Likewise.
20891
20892 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20893 James Clarke <jrtc27@jrtc27.com>
20894
20895 [BZ #22603]
20896 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20897 addition.
20898
20899 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20900
20901 [BZ #22605]
20902 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20903 code.
20904
20905 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20906
20907 [BZ #22563]
20908 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20909 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20910 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20911 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20912 to feature_1.
20913
20914 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20915
20916 [BZ #22563]
20917 * bits/types/__cancel_jmp_buf_tag.h: New file.
20918 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20919 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20920 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20921 * nptl/Makefile (headers): Add
20922 bits/types/__cancel_jmp_buf_tag.h.
20923 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20924 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20925 * sysdeps/nptl/pthread.h: Include
20926 <bits/types/__cancel_jmp_buf_tag.h>.
20927 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20928 __cancel_jmp_buf.
20929 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20930
20931 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20932
20933 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20934 --enable-static-pie variants to x86_64, x32 and i686.
20935
20936 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20937
20938 [BZ #22631]
20939 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20940 argument for attrubutes. All callers changed.
20941 (__inline_mathop1): Likewise. All callers changed.
20942 (__inline_mathop): Likewise. All callers changed.
20943 [__USE_MISC] (scalbn): Use __inline_forward instead of
20944 __inline_forward_c.
20945 [__USE_ISOC99] (scalbln): Likewise.
20946 [__USE_ISOC99] (nearbyint): Likewise.
20947 [__USE_ISOC99] (lrint): Likewise.
20948 [__USE_MISC] (scalbnf): Likewise.
20949 [__USE_ISOC99] (scalblnf): Likewise.
20950 [__USE_ISOC99] (nearbyintf): Likewise.
20951 [__USE_ISOC99] (lrintf): Likewise.
20952 [__USE_MISC] (scalbnl): Likewise.
20953 [__USE_ISOC99] (scalblnl): Likewise.
20954 [__USE_ISOC99] (nearbyintl): Likewise.
20955 [__USE_ISOC99] (lrintl): Likewise.
20956 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20957 __inline_mathop and __m81_defun changed.
20958
20959 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20960 CPU or FPU for ARM hard-float configurations.
20961
20962 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20963
20964 * nptl/tst-attr3.c: Include <libc-diag.h>.
20965 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20966
20967 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20968
20969 * string/tester.c (test_strncat): Also disable -Warray-bounds
20970 warnings for two tests.
20971
20972 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20973
20974 [BZ #22614]
20975 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20976 $(cc-pie-default) == yes.
20977 * config.make.in (cc-pie-default): New.
20978 * configure.ac (libc_cv_pie_default): Renamed to ...
20979 (libc_cv_cc_pie_default): This.
20980 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20981 * configure: Regenerated.
20982
20983 2017-12-18 Florian Weimer <fweimer@redhat.com>
20984
20985 [BZ #20204]
20986 ld.so: Harden dl-libc/libdl hooks.
20987 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20988 (rtld_active): New function.
20989 * dlfcn/dladdr.c (__dladdr): Call it.
20990 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20991 * dlfcn/dlclose.c (__dlcose): Likewise.
20992 * dlfcn/dlerror.c (__dlerror): Likewise.
20993 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20994 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20995 * dlfcn/dlopen.c (__dlopen): Likewise.
20996 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20997 * dlfcn/dlsym.c (__dlsym): Likewise.
20998 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20999 * libio/vtables.c (_IO_vtable_check): Likewise.
21000 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
21001 (__libc_dlclose): Likewise.
21002 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
21003 assignment.
21004
21005 2017-12-18 Joseph Myers <joseph@codesourcery.com>
21006
21007 [BZ #22446]
21008 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
21009 buffers for readlink input and output.
21010
21011 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
21012
21013 [BZ #22624]
21014 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
21015 inhibit_stack_protector.
21016
21017 [BZ #22624]
21018 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
21019 inhibit_stack_protector.
21020
21021 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
21022
21023 [BZ #22627]
21024 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
21025 code and invocation.
21026
21027 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
21028
21029 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
21030
21031 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
21032
21033 [BZ #22505]
21034 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
21035
21036 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21037
21038 * sysdeps/s390/fpu/libm-test-ulps: Update.
21039
21040 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21041
21042 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21043
21044 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21045
21046 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
21047 constants to s_sincosf.h file.
21048 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
21049 * sysdeps/ieee754/flt-32/s_sincosf.c: New
21050 implementation.
21051 * sysdeps/ieee754/flt-32/s_sincosf.h:
21052 New file.
21053
21054 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21055
21056 [BZ #14681]
21057 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
21058 before mtrace.
21059
21060 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
21061
21062 [BZ #19574]
21063 * INSTALL: Regenerated.
21064 * Makeconfig (real-static-start-installed-name): New.
21065 (pic-default): Updated for --enable-static-pie.
21066 (pie-default): New for --enable-static-pie.
21067 (default-pie-ldflag): Likewise.
21068 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
21069 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
21070 Replace $(static-start-installed-name) with
21071 $(real-static-start-installed-name).
21072 (+prectorT): Updated for --enable-static-pie.
21073 (+postctorT): Likewise.
21074 (CFLAGS-.o): Add $(pie-default).
21075 (CFLAGS-.op): Likewise.
21076 * NEWS: Mention --enable-static-pie.
21077 * config.h.in (ENABLE_STATIC_PIE): New.
21078 * configure.ac (--enable-static-pie): New configure option.
21079 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
21080 (have-static-pie): Likewise.
21081 Enable static PIE if linker supports --no-dynamic-linker.
21082 (ENABLE_STATIC_PIE): New AC_DEFINE.
21083 (enable-static-pie): New LIBC_CONFIG_VAR.
21084 * configure: Regenerated.
21085 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21086 gr$(start-installed-name) for --enable-static-pie.
21087 (extra-objs): Likewise.
21088 (install-lib): Likewise.
21089 (extra-objs): Add static-reloc.o and static-reloc.os
21090 ($(objpfx)$(start-installed-name)): Also depend on
21091 $(objpfx)static-reloc.o.
21092 ($(objpfx)r$(start-installed-name)): New.
21093 ($(objpfx)g$(start-installed-name)): Also depend on
21094 $(objpfx)static-reloc.os.
21095 ($(objpfx)gr$(start-installed-name)): New.
21096 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21097 in libc.a.
21098 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21099 initimage.
21100 * csu/static-reloc.c: New file.
21101 * elf/Makefile (routines): Add dl-reloc-static-pie.
21102 (elide-routines.os): Likewise.
21103 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21104 (tst-tls1-static-non-pie-no-pie): New.
21105 * elf/dl-reloc-static-pie.c: New file.
21106 * elf/dl-support.c (_dl_get_dl_main_map): New function.
21107 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21108 STATIC_PIE_BOOTSTRAP.
21109 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21110 * gmon/Makefile (tests): Add tst-gmon-static-pie.
21111 (tests-static): Likewise.
21112 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21113 (tst-gmon-static-no-pie): New.
21114 (CFLAGS-tst-gmon-static-pie.c): Likewise.
21115 (CRT-tst-gmon-static-pie): Likewise.
21116 (tst-gmon-static-pie-ENV): Likewise.
21117 (tests-special): Likewise.
21118 ($(objpfx)tst-gmon-static-pie.out): Likewise.
21119 (clean-tst-gmon-static-pie-data): Likewise.
21120 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21121 * gmon/tst-gmon-static-pie.c: New file.
21122 * manual/install.texi: Document --enable-static-pie.
21123 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21124 (_dl_get_dl_main_map): Likewise.
21125 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21126 * sysdeps/x86_64/configure.ac: Likewise.
21127 * sysdeps/i386/configure: Regenerated.
21128 * sysdeps/x86_64/configure: Likewise.
21129 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21130 (ASFLAGS-.op): Likewise.
21131
21132 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21133
21134 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21135 * posix/tst-mmap-offset.c (fname): Use /tmp.
21136 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21137
21138 2017-12-15 Steve Ellcey <sellcey@cavium.com>
21139
21140 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21141
21142 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
21143
21144 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21145 errno.
21146
21147 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21148
21149 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21150 --with-float=hard for arm-linux-gnueabihf configurations.
21151
21152 [BZ #14121]
21153 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21154 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
21155 ($(mo-installed)): Use $(objpfx)%.mo.
21156 (realclean): Remove rule.
21157
21158 * po/Makefile (linguas): Remove rule and dependencies.
21159 (linguas.mo): Likewise.
21160 (.PHONY): Do not depend on linguas and linguas.mo.
21161 (podir): Remove variable.
21162 (pofiles): Likewise.
21163 [$(pofiles)] (%.po): Remove rule.
21164
21165 * sysdeps/sparc/sparc32/Makefile
21166 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21167 start-of-line whitespace in argument of echo.
21168 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21169 with whitespace. Generate __wrap_.udiv alias.
21170 * sysdeps/sparc/sparc32/rem.S: Regenerated.
21171 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21172 * sysdeps/sparc/sparc32/udiv.S: Likewise.
21173 * sysdeps/sparc/sparc32/urem.S: Likewise.
21174
21175 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21176
21177 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21178 for aligned inputs.
21179
21180 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
21181
21182 * benchtests/bench-strcmp.c: Print output in JSON format.
21183
21184 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21185
21186 2017-12-14 Florian Weimer <fweimer@redhat.com>
21187
21188 [BZ #22607]
21189 CVE-2017-1000409
21190 * elf/dl-load.c (_dl_init_paths): Compute number of components in
21191 the expanded path string.
21192
21193 2017-12-14 Florian Weimer <fweimer@redhat.com>
21194
21195 [BZ #22606]
21196 CVE-2017-1000408
21197 * elf/dl-load.c (system_dirs): Update comment.
21198 (nsystem_dirs_len): Use array_length.
21199 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21200
21201 2017-12-14 Florian Weimer <fweimer@redhat.com>
21202
21203 Simplify compiling most of support/ outside of glibc.
21204 * support/check_addrinfo.c: Include <string.h>.
21205 * support/check_dns_packet.c: Likewise.
21206 * support/check_hostent.c: Likewise.
21207 * support/support_can_chroot.c: Include <support/xunistd.h>.
21208 * support/support_format_addrinfo.c: Include <stdlib.h>
21209 * support/support_format_dns_packet.c: Include <stdbool.h>.
21210 * support/support_format_hostent.c: Include <stdlib.h>.
21211 * support/support_format_netent.c: Likewise.
21212 * support/support_write_string.c: Include <support/xunistd.h>.
21213 * support/xdlfcn.c: Include <stddef.h>.
21214
21215 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21216
21217 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21218
21219 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21220 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21221
21222 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21223 (sysdeps_routines): Add memset-niagara7.
21224 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21225 Likewise.
21226 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21227 file.
21228 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21229 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21230 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21231 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21232 Add niagara7 option.
21233 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21234 memset.
21235
21236 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21237 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21238 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21239 Likewise.
21240 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21241 New file.
21242 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21243 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21244 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21245 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21246 and __memmove_niagara7.
21247 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21248 Add niagara7 option.
21249 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21250 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21251 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21252 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21253 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21254
21255 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21256
21257 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21258 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21259 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21260 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21261
21262 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21263 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21264 _dl_sparc_cap_flags array.
21265 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21266
21267 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21268
21269 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21270 time whenever possible.
21271
21272 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21273
21274 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21275 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21276
21277 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21278
21279 * soft-fp/fmadf4.c: Move to ....
21280 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21281 * soft-fp/fmasf4.c: Move to ....
21282 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21283 * soft-fp/fmatf4.c: Move to ....
21284 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21285 * sysdeps/ieee754/soft-fp/Makefile: New file.
21286 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21287 * sysdeps/arm/preconfigure: Regenerated.
21288 * sysdeps/arm/nofpu/Implies: New file.
21289 * sysdeps/arm/s_fma.c: Remove file.
21290 * sysdeps/arm/s_fmaf.c: Likewise.
21291 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21292 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21293 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21294 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21295 * sysdeps/microblaze/s_fma.c: Remove file.
21296 * sysdeps/microblaze/s_fmaf.c: Likewise.
21297 * sysdeps/mips/mips32/nofpu/Implies: New file.
21298 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21299 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21300 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21301 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21302 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21303 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21304 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21305 implementation.
21306 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21307 * sysdeps/nios2/s_fma.c: Remove file.
21308 * sysdeps/nios2/s_fmaf.c: Likewise.
21309 * sysdeps/sh/nofpu/Implies: New file.
21310 * sysdeps/sh/s_fma.c: Remove file.
21311 * sysdeps/sh/s_fmaf.c: Likewise.
21312 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21313 * sysdeps/tile/s_fma.c: Remove file.
21314 * sysdeps/tile/s_fmaf.c: Likewise.
21315
21316 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21317
21318 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21319 Add s_cosf-sse2 and s_cosf-fma.
21320 (CFLAGS-s_cosf-fma.c): New.
21321 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21322 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21323 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21324
21325 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21326
21327 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21328
21329 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21330
21331 * libio/Makefile (tests): Add tst-bz22415.
21332 (tst-bz22415-ENV): New rule.
21333 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21334 (tests-special): Add tst-bz22415-mem.out.
21335 ($(objpfx)tst-bz22415-mem.out): New rule.
21336 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21337 in case of a successful seek operation.
21338 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21339 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21340 buffer is required.
21341 * libio/tst-bz22415.c: New test.
21342
21343 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21344
21345 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21346
21347 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21348 __IPC_64 to 0 to avoid IPC_64 being set.
21349
21350 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21351
21352 [BZ #22593]
21353 * math/bits/mathcalls.h (nextafter): Remove const.
21354 (nexttoward): Likewise.
21355
21356 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21357
21358 * configure.ac (--with-fp): Remove configure option.
21359 (with_fp_cond): New variable.
21360 (libc_cv_with_fp): New configure test. Use this variable instead
21361 of with_fp.
21362 * configure: Regenerated.
21363 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21364 * manual/install.texi (Configuring and compiling): Remove
21365 --without-fp.
21366 * INSTALL: Regenerated.
21367 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21368 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21369 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21370 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21371 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21372 use --without-fp to configure glibc.
21373
21374 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21375
21376 * manual/locale.texi (nl_langinfo): Fix a typo.
21377
21378 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21379
21380 [BZ #22588]
21381 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21382
21383 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21384
21385 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21386 (CFLAGS-argp-parse.c): Likewise.
21387 (CFLAGS-argp-fmtstream.c): Likewise.
21388 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21389 (CPPFLAGS-sha512-crypt.c): Likewise.
21390 (CPPFLAGS-md5-crypt.c): Likewise.
21391 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21392 (CFLAGS-stack_chk_fail_local.c): Likewise.
21393 (CFLAGS-backtrace.c): Likewise.
21394 (CFLAGS-sprintf_chk.c): Likewise.
21395 (CFLAGS-snprintf_chk.c): Likewise.
21396 (CFLAGS-vsprintf_chk.c): Likewise.
21397 (CFLAGS-vsnprintf_chk.c): Likewise.
21398 (CFLAGS-asprintf_chk.c): Likewise.
21399 (CFLAGS-vasprintf_chk.c): Likewise.
21400 (CFLAGS-obprintf_chk.c): Likewise.
21401 (CFLAGS-dprintf_chk.c): Likewise.
21402 (CFLAGS-vdprintf_chk.c): Likewise.
21403 (CFLAGS-printf_chk.c): Likewise.
21404 (CFLAGS-fprintf_chk.c): Likewise.
21405 (CFLAGS-vprintf_chk.c): Likewise.
21406 (CFLAGS-vfprintf_chk.c): Likewise.
21407 (CFLAGS-gets_chk.c): Likewise.
21408 (CFLAGS-fgets_chk.c): Likewise.
21409 (CFLAGS-fgets_u_chk.c): Likewise.
21410 (CFLAGS-fread_chk.c): Likewise.
21411 (CFLAGS-fread_u_chk.c): Likewise.
21412 (CFLAGS-swprintf_chk.c): Likewise.
21413 (CFLAGS-vswprintf_chk.c): Likewise.
21414 (CFLAGS-wprintf_chk.c): Likewise.
21415 (CFLAGS-fwprintf_chk.c): Likewise.
21416 (CFLAGS-vwprintf_chk.c): Likewise.
21417 (CFLAGS-vfwprintf_chk.c): Likewise.
21418 (CFLAGS-fgetws_chk.c): Likewise.
21419 (CFLAGS-fgetws_u_chk.c): Likewise.
21420 (CFLAGS-read_chk.c): Likewise.
21421 (CFLAGS-pread_chk.c): Likewise.
21422 (CFLAGS-pread64_chk.c): Likewise.
21423 (CFLAGS-recv_chk.c): Likewise.
21424 (CFLAGS-recvfrom_chk.c): Likewise.
21425 (CFLAGS-tst-longjmp_chk.c): Likewise.
21426 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21427 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21428 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21429 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21430 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21431 (CFLAGS-tst-chk1.c): Likewise.
21432 (CFLAGS-tst-chk2.c): Likewise.
21433 (CFLAGS-tst-chk3.c): Likewise.
21434 (CFLAGS-tst-chk4.cc): Likewise.
21435 (CFLAGS-tst-chk5.cc): Likewise.
21436 (CFLAGS-tst-chk6.cc): Likewise.
21437 (CFLAGS-tst-lfschk1.c): Likewise.
21438 (CFLAGS-tst-lfschk2.c): Likewise.
21439 (CFLAGS-tst-lfschk3.c): Likewise.
21440 (CFLAGS-tst-lfschk4.cc): Likewise.
21441 (CFLAGS-tst-lfschk5.cc): Likewise.
21442 (CFLAGS-tst-lfschk6.cc): Likewise.
21443 (CFLAGS-tst-ssp-1.c): Likewise.
21444 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21445 (CFLAGS-scandir64.c): Likewise.
21446 (CFLAGS-scandir-tail.c): Likewise.
21447 (CFLAGS-scandir64-tail.c): Likewise.
21448 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21449 (CFLAGS-dl-tunables.c): Likewise.
21450 (CFLAGS-dl-runtime.c): Likewise.
21451 (CFLAGS-dl-lookup.c): Likewise.
21452 (CFLAGS-dl-iterate-phdr.c): Likewise.
21453 (CFLAGS-vismain.c): Likewise.
21454 (CFLAGS-tst-linkall-static.c): Likewise.
21455 (CFLAGS-tst-linkall-static.c): Likewise.
21456 (CPPFLAGS-dl-load.c): Likewise.
21457 (CFLAGS-ldconfig.c): Likewise.
21458 (CFLAGS-dl-cache.c): Likewise.
21459 (CFLAGS-cache.c): Likewise.
21460 (CFLAGS-rtld.c): Likewise.
21461 (CFLAGS-multiload.c): Likewise.
21462 (CFLAGS-filtmod1.c): Likewise.
21463 (CFLAGS-tst-align.c): Likewise.
21464 (CFLAGS-tst-align2.c): Likewise.
21465 (CFLAGS-tst-alignmod.c): Likewise.
21466 (CFLAGS-tst-alignmod2.c): Likewise.
21467 (CPPFLAGS-tst-execstack.c): Likewise.
21468 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21469 (CFLAGS-tst-latepthreadmod.c): Likewise.
21470 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21471 (CFLAGS-getgrnam_r.c): Likewise.
21472 (CFLAGS-getgrent_r.c): Likewise.
21473 (CFLAGS-getgrent.c): Likewise.
21474 (CFLAGS-fgetgrent.c): Likewise.
21475 (CFLAGS-fgetgrent_r.c): Likewise.
21476 (CFLAGS-putgrent.c): Likewise.
21477 (CFLAGS-initgroups.c): Likewise.
21478 (CFLAGS-getgrgid.c): Likewise.
21479 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21480 (CFLAGS-getsgent.c): Likewise.
21481 (CFLAGS-fgetsgent.c): Likewise.
21482 (CFLAGS-fgetsgent_r.c): Likewise.
21483 (CFLAGS-putsgent.c): Likewise.
21484 (CFLAGS-getsgnam.c): Likewise.
21485 (CFLAGS-getsgnam_r.c): Likewise.
21486 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21487 (CFLAGS-iconv_charmap.c): Likewise.
21488 (CFLAGS-dummy-repertoire.c): Likewise.
21489 (CFLAGS-charmap.c): Likewise.
21490 (CFLAGS-linereader.c): Likewise.
21491 (CFLAGS-simple-hash.c): Likewise.
21492 (CFLAGS-gconv_conf.c): Likewise.
21493 (CFLAGS-iconvconfig.c): Likewise.
21494 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21495 (CFLAGS-gethstbyad.c): Likewise.
21496 (CFLAGS-gethstbynm_r.c): Likewise.
21497 (CFLAGS-gethstbynm.c): Likewise.
21498 (CFLAGS-gethstbynm2_r.c): Likewise.
21499 (CFLAGS-gethstbynm2.c): Likewise.
21500 (CFLAGS-gethstent_r.c): Likewise.
21501 (CFLAGS-gethstent.c): Likewise.
21502 (CFLAGS-rcmd.c): Likewise.
21503 (CFLAGS-getnetbynm_r.c): Likewise.
21504 (CFLAGS-getnetbynm.c): Likewise.
21505 (CFLAGS-getnetbyad_r.c): Likewise.
21506 (CFLAGS-getnetbyad.c): Likewise.
21507 (CFLAGS-getnetent_r.c): Likewise.
21508 (CFLAGS-getnetent.c): Likewise.
21509 (CFLAGS-getaliasent_r.c): Likewise.
21510 (CFLAGS-getaliasent.c): Likewise.
21511 (CFLAGS-getrpcent_r.c): Likewise.
21512 (CFLAGS-getrpcent.c): Likewise.
21513 (CFLAGS-getservent_r.c): Likewise.
21514 (CFLAGS-getservent.c): Likewise.
21515 (CFLAGS-getprtent_r.c): Likewise.
21516 (CFLAGS-getprtent.c): Likewise.
21517 (CFLAGS-either_ntoh.c): Likewise.
21518 (CFLAGS-either_hton.c): Likewise.
21519 (CFLAGS-getnetgrent.c): Likewise.
21520 (CFLAGS-getnetgrent_r.c): Likewise.
21521 (CFLAGS-tst-checks-posix.c): Likewise.
21522 (CFLAGS-tst-sockaddr.c): Likewise.
21523 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21524 (CFLAGS-tst-translit.c): Likewise.
21525 (CFLAGS-tst-gettext2.c): Likewise.
21526 (CFLAGS-tst-codeset.c): Likewise.
21527 (CFLAGS-tst-gettext3.c): Likewise.
21528 (CFLAGS-tst-gettext4.c): Likewise.
21529 (CFLAGS-tst-gettext5.c): Likewise.
21530 (CFLAGS-tst-gettext6.c): Likewise.
21531 * io/Makefile (CFLAGS-open.c): Likewise.
21532 (CFLAGS-open64.c): Likewise.
21533 (CFLAGS-creat.c): Likewise.
21534 (CFLAGS-creat64.c): Likewise.
21535 (CFLAGS-fcntl.c): Likewise.
21536 (CFLAGS-poll.c): Likewise.
21537 (CFLAGS-ppoll.c): Likewise.
21538 (CFLAGS-lockf.c): Likewise.
21539 (CFLAGS-statfs.c): Likewise.
21540 (CFLAGS-fstatfs.c): Likewise.
21541 (CFLAGS-statvfs.c): Likewise.
21542 (CFLAGS-fstatvfs.c): Likewise.
21543 (CFLAGS-fts.c): Likewise.
21544 (CFLAGS-fts64.c): Likewise.
21545 (CFLAGS-ftw.c): Likewise.
21546 (CFLAGS-ftw64.c): Likewise.
21547 (CFLAGS-lockf.c): Likewise.
21548 (CFLAGS-posix_fallocate.c): Likewise.
21549 (CFLAGS-posix_fallocate64.c): Likewise.
21550 (CFLAGS-fallocate.c): Likewise.
21551 (CFLAGS-fallocate64.c): Likewise.
21552 (CFLAGS-read.c): Likewise.
21553 (CFLAGS-write.c): Likewise.
21554 (CFLAGS-test-stat.c): Likewise.
21555 (CFLAGS-test-lfs.c): Likewise.
21556 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21557 (CFLAGS-fputc.c): Likewise.
21558 (CFLAGS-fputwc.c): Likewise.
21559 (CFLAGS-freopen64.c): Likewise.
21560 (CFLAGS-freopen.c): Likewise.
21561 (CFLAGS-fseek.c): Likewise.
21562 (CFLAGS-fseeko64.c): Likewise.
21563 (CFLAGS-fseeko.c): Likewise.
21564 (CFLAGS-ftello64.c): Likewise.
21565 (CFLAGS-ftello.c): Likewise.
21566 (CFLAGS-fwide.c): Likewise.
21567 (CFLAGS-genops.c): Likewise.
21568 (CFLAGS-getc.c): Likewise.
21569 (CFLAGS-getchar.c): Likewise.
21570 (CFLAGS-getwc.c): Likewise.
21571 (CFLAGS-getwchar.c): Likewise.
21572 (CFLAGS-iofclose.c): Likewise.
21573 (CFLAGS-iofflush.c): Likewise.
21574 (CFLAGS-iofgetpos64.c): Likewise.
21575 (CFLAGS-iofgetpos.c): Likewise.
21576 (CFLAGS-iofgets.c): Likewise.
21577 (CFLAGS-iofgetws.c): Likewise.
21578 (CFLAGS-iofputs.c): Likewise.
21579 (CFLAGS-iofputws.c): Likewise.
21580 (CFLAGS-iofread.c): Likewise.
21581 (CFLAGS-iofsetpos64.c): Likewise.
21582 (CFLAGS-iofsetpos.c): Likewise.
21583 (CFLAGS-ioftell.c): Likewise.
21584 (CFLAGS-iofwrite.c): Likewise.
21585 (CFLAGS-iogetdelim.c): Likewise.
21586 (CFLAGS-iogetline.c): Likewise.
21587 (CFLAGS-iogets.c): Likewise.
21588 (CFLAGS-iogetwline.c): Likewise.
21589 (CFLAGS-ioputs.c): Likewise.
21590 (CFLAGS-ioseekoff.c): Likewise.
21591 (CFLAGS-ioseekpos.c): Likewise.
21592 (CFLAGS-iosetbuffer.c): Likewise.
21593 (CFLAGS-iosetvbuf.c): Likewise.
21594 (CFLAGS-ioungetc.c): Likewise.
21595 (CFLAGS-ioungetwc.c): Likewise.
21596 (CFLAGS-oldfileops.c): Likewise.
21597 (CFLAGS-oldiofclose.c): Likewise.
21598 (CFLAGS-oldiofgetpos64.c): Likewise.
21599 (CFLAGS-oldiofgetpos.c): Likewise.
21600 (CFLAGS-oldiofsetpos64.c): Likewise.
21601 (CFLAGS-oldiofsetpos.c): Likewise.
21602 (CFLAGS-peekc.c): Likewise.
21603 (CFLAGS-putc.c): Likewise.
21604 (CFLAGS-putchar.c): Likewise.
21605 (CFLAGS-putwc.c): Likewise.
21606 (CFLAGS-putwchar.c): Likewise.
21607 (CFLAGS-rewind.c): Likewise.
21608 (CFLAGS-wfileops.c): Likewise.
21609 (CFLAGS-wgenops.c): Likewise.
21610 (CFLAGS-oldiofopen.c): Likewise.
21611 (CFLAGS-iofopen.c): Likewise.
21612 (CFLAGS-iofopen64.c): Likewise.
21613 (CFLAGS-oldtmpfile.c): Likewise.
21614 (CFLAGS-tst_putwc.c): Likewise.
21615 * locale/Makefile (CFLAGS-md5.c): Likewise.
21616 (CFLAGS-charmap.c): Likewise.
21617 (CFLAGS-locfile.c): Likewise.
21618 (CFLAGS-charmap-dir.c): Likewise.
21619 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21620 (CFLAGS-getpt.c): Likewise.
21621 (CFLAGS-pt_chown.c): Likewise.
21622 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21623 (CFLAGS-obstack.c): Likewise.
21624 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21625 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21626 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21627 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21628 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21629 (CFLAGS-test-tgmath.c): Likewise.
21630 (CFLAGS-test-tgmath2.c): Likewise.
21631 (CFLAGS-test-tgmath-ret.c): Likewise.
21632 (CFLAGS-test-powl.c): Likewise.
21633 (CFLAGS-test-snan.c): Likewise.
21634 (CFLAGS-test-signgam-finite.c): Likewise.
21635 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21636 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21637 (CFLAGS-test-signgam-uchar.c): Likewise.
21638 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21639 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21640 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21641 (CFLAGS-test-signgam-uint.c): Likewise.
21642 (CFLAGS-test-signgam-uint-init.c): Likewise.
21643 (CFLAGS-test-signgam-uint-static.c): Likewise.
21644 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21645 (CFLAGS-test-signgam-ullong.c): Likewise.
21646 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21647 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21648 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21649 (CFLAGS-test-math-cxx11.cc): Likewise.
21650 (CFLAGS-test-math-isinff.cc): Likewise.
21651 (CFLAGS-test-math-iszero.cc): Likewise.
21652 (CFLAGS-test-math-issignaling.cc): Likewise.
21653 (CFLAGS-test-math-iscanonical.cc): Likewise.
21654 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21655 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21656 (CFLAGS-test-flt-eval-method.c): Likewise.
21657 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21658 (CFLAGS-test-finite-macros.c): Likewise.
21659 * misc/Makefile (CFLAGS-select.c): Likewise.
21660 (CFLAGS-tsearch.c): Likewise.
21661 (CFLAGS-lsearch.c): Likewise.
21662 (CFLAGS-pselect.c): Likewise.
21663 (CFLAGS-readv.c): Likewise.
21664 (CFLAGS-writev.c): Likewise.
21665 (CFLAGS-preadv.c): Likewise.
21666 (CFLAGS-preadv64.c): Likewise.
21667 (CFLAGS-pwritev.c): Likewise.
21668 (CFLAGS-pwritev64.c): Likewise.
21669 (CFLAGS-preadv2.c): Likewise.
21670 (CFLAGS-preadv64v2.c): Likewise.
21671 (CFLAGS-pwritev2.c): Likewise.
21672 (CFLAGS-pwritev64v2.c): Likewise.
21673 (CFLAGS-usleep.c): Likewise.
21674 (CFLAGS-syslog.c): Likewise.
21675 (CFLAGS-error.c): Likewise.
21676 (CFLAGS-getpass.c): Likewise.
21677 (CFLAGS-mkstemp.c): Likewise.
21678 (CFLAGS-mkstemp64.c): Likewise.
21679 (CFLAGS-getsysstats.c): Likewise.
21680 (CFLAGS-getusershell.c): Likewise.
21681 (CFLAGS-err.c): Likewise.
21682 (CFLAGS-tst-tsearch.c): Likewise.
21683 (CFLAGS-msync.c): Likewise.
21684 (CFLAGS-fdatasync.c): Likewise.
21685 (CFLAGS-fsync.c): Likewise.
21686 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21687 (CFLAGS-unwind.c): Likewise.
21688 (CFLAGS-unwind-forcedunwind.c): Likewise.
21689 (CFLAGS-pthread_cancel.c): Likewise.
21690 (CFLAGS-pthread_setcancelstate.c): Likewise.
21691 (CFLAGS-pthread_setcanceltype.c): Likewise.
21692 (CFLAGS-cancellation.c): Likewise.
21693 (CFLAGS-libc-cancellation.c): Likewise.
21694 (CFLAGS-pthread_exit.c): Likewise.
21695 (CFLAGS-forward.c): Likewise.
21696 (CFLAGS-pthread_testcancel.c): Likewise.
21697 (CFLAGS-pthread_join.c): Likewise.
21698 (CFLAGS-pthread_timedjoin.c): Likewise.
21699 (CFLAGS-pthread_once.c): Likewise.
21700 (CFLAGS-pthread_cond_wait.c): Likewise.
21701 (CFLAGS-sem_wait.c): Likewise.
21702 (CFLAGS-sem_timedwait.c): Likewise.
21703 (CFLAGS-fcntl.c): Likewise.
21704 (CFLAGS-lockf.c): Likewise.
21705 (CFLAGS-pread.c): Likewise.
21706 (CFLAGS-pread64.c): Likewise.
21707 (CFLAGS-pwrite.c): Likewise.
21708 (CFLAGS-pwrite64.c): Likewise.
21709 (CFLAGS-wait.c): Likewise.
21710 (CFLAGS-waitpid.c): Likewise.
21711 (CFLAGS-sigwait.c): Likewise.
21712 (CFLAGS-msgrcv.c): Likewise.
21713 (CFLAGS-msgsnd.c): Likewise.
21714 (CFLAGS-tcdrain.c): Likewise.
21715 (CFLAGS-open.c): Likewise.
21716 (CFLAGS-open64.c): Likewise.
21717 (CFLAGS-pause.c): Likewise.
21718 (CFLAGS-recv.c): Likewise.
21719 (CFLAGS-send.c): Likewise.
21720 (CFLAGS-accept.c): Likewise.
21721 (CFLAGS-sendto.c): Likewise.
21722 (CFLAGS-connect.c): Likewise.
21723 (CFLAGS-recvfrom.c): Likewise.
21724 (CFLAGS-recvmsg.c): Likewise.
21725 (CFLAGS-sendmsg.c): Likewise.
21726 (CFLAGS-close.c): Likewise.
21727 (CFLAGS-read.c): Likewise.
21728 (CFLAGS-write.c): Likewise.
21729 (CFLAGS-nanosleep.c): Likewise.
21730 (CFLAGS-sigsuspend.c): Likewise.
21731 (CFLAGS-msync.c): Likewise.
21732 (CFLAGS-fdatasync.c): Likewise.
21733 (CFLAGS-fsync.c): Likewise.
21734 (CFLAGS-pt-system.c): Likewise.
21735 (CFLAGS-tst-cleanup2.c): Likewise.
21736 (CFLAGS-tst-cleanupx2.c): Likewise.
21737 (CFLAGS-flockfile.c): Likewise.
21738 (CFLAGS-ftrylockfile.c): Likewise.
21739 (CFLAGS-funlockfile.c): Likewise.
21740 (CFLAGS-tst-initializers1.c): Likewise.
21741 (CFLAGS-tst-initializers1-c89.c): Likewise.
21742 (CFLAGS-tst-initializers1-c99.c): Likewise.
21743 (CFLAGS-tst-initializers1-c11.c): Likewise.
21744 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21745 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21746 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21747 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21748 (CFLAGS-nscd_getgr_r.c): Likewise.
21749 (CFLAGS-nscd_gethst_r.c): Likewise.
21750 (CFLAGS-nscd_getai.c): Likewise.
21751 (CFLAGS-nscd_initgroups.c): Likewise.
21752 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21753 (CFLAGS-pause.c): Likewise.
21754 (CFLAGS-pread.c): Likewise.
21755 (CFLAGS-pread64.c): Likewise.
21756 (CFLAGS-pwrite.c): Likewise.
21757 (CFLAGS-pwrite64.c): Likewise.
21758 (CFLAGS-sleep.c): Likewise.
21759 (CFLAGS-wait.c): Likewise.
21760 (CFLAGS-waitid.c): Likewise.
21761 (CFLAGS-waitpid.c): Likewise.
21762 (CFLAGS-getopt.c): Likewise.
21763 (CFLAGS-wordexp.c): Likewise.
21764 (CFLAGS-sysconf.c): Likewise.
21765 (CFLAGS-pathconf.c): Likewise.
21766 (CFLAGS-fpathconf.c): Likewise.
21767 (CFLAGS-spawn.c): Likewise.
21768 (CFLAGS-spawnp.c): Likewise.
21769 (CFLAGS-spawni.c): Likewise.
21770 (CFLAGS-glob.c): Likewise.
21771 (CFLAGS-glob64.c): Likewise.
21772 (CFLAGS-getconf.c): Likewise.
21773 (CFLAGS-nanosleep.c): Likewise.
21774 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21775 (CFLAGS-getpwent.c): Likewise.
21776 (CFLAGS-getpw.c): Likewise.
21777 (CFLAGS-fgetpwent_r.c): Likewise.
21778 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21779 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21780 (CFLAGS-mq_timedreceive.c): Likewise.
21781 (CFLAGS-mq_timedsend.c): Likewise.
21782 (CFLAGS-clock_nanosleep.c): Likewise.
21783 (CFLAGS-librt-cancellation.c): Likewise.
21784 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21785 (CFLAGS-getspent.c): Likewise.
21786 (CFLAGS-fgetspent.c): Likewise.
21787 (CFLAGS-fgetspent_r.c): Likewise.
21788 (CFLAGS-putspent.c): Likewise.
21789 (CFLAGS-getspnam.c): Likewise.
21790 (CFLAGS-getspnam_r.c): Likewise.
21791 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21792 (CFLAGS-sigsuspend.c): Likewise.
21793 (CFLAGS-sigtimedwait.c): Likewise.
21794 (CFLAGS-sigwait.c): Likewise.
21795 (CFLAGS-sigwaitinfo.c): Likewise.
21796 (CFLAGS-sigreturn.c): Likewise.
21797 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21798 (CFLAGS-vfwprintf.c): Likewise.
21799 (CFLAGS-tmpfile.c): Likewise.
21800 (CFLAGS-tmpfile64.c): Likewise.
21801 (CFLAGS-tempname.c): Likewise.
21802 (CFLAGS-psignal.c): Likewise.
21803 (CFLAGS-vprintf.c): Likewise.
21804 (CFLAGS-cuserid.c): Likewise.
21805 (CFLAGS-errlist.c): Likewise.
21806 (CFLAGS-siglist.c): Likewise.
21807 (CFLAGS-scanf15.c): Likewise.
21808 (CFLAGS-scanf17.c): Likewise.
21809 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21810 (CFLAGS-msort.c): Likewise.
21811 (CFLAGS-qsort.c): Likewise.
21812 (CFLAGS-system.c): Likewise.
21813 (CFLAGS-fmtmsg.c): Likewise.
21814 (CFLAGS-strfmon.c): Likewise.
21815 (CFLAGS-strfmon_l.c): Likewise.
21816 (CFLAGS-strfromd.c): Likewise.
21817 (CFLAGS-strfromf.c): Likewise.
21818 (CFLAGS-strfroml.c): Likewise.
21819 (CFLAGS-tst-bsearch.c): Likewise.
21820 (CFLAGS-tst-qsort.c): Likewise.
21821 (CFLAGS-tst-makecontext2.c): Likewise.
21822 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21823 (CFLAGS-xnlm_prot.c): Likewise.
21824 (CFLAGS-xrstat.c): Likewise.
21825 (CFLAGS-xyppasswd.c): Likewise.
21826 (CFLAGS-xklm_prot.c): Likewise.
21827 (CFLAGS-xrex.c): Likewise.
21828 (CFLAGS-xsm_inter.c): Likewise.
21829 (CFLAGS-xmount.c): Likewise.
21830 (CFLAGS-xrusers.c): Likewise.
21831 (CFLAGS-xspray.c): Likewise.
21832 (CFLAGS-xnfs_prot.c): Likewise.
21833 (CFLAGS-xrquota.c): Likewise.
21834 (CFLAGS-xkey_prot.c): Likewise.
21835 (CFLAGS-auth_unix.c): Likewise.
21836 (CFLAGS-key_call.c): Likewise.
21837 (CFLAGS-pmap_rmt.c): Likewise.
21838 (CFLAGS-clnt_perr.c): Likewise.
21839 (CFLAGS-openchild.c): Likewise.
21840 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21841 (CFLAGS-msgsnd.c): Likewise.
21842 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21843 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21844 (CFLAGS-tzset.c): Likewise.
21845 (CFLAGS-getdate.c): Likewise.
21846 (CFLAGS-test_time.c): Likewise.
21847 (CPPFLAGS-tst-tzname.c): Likewise.
21848 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21849 (CFLAGS-zic.c): Likewise.
21850 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21851 (CFLAGS-wcswidth.c): Likewise.
21852 (CFLAGS-wcstol.c): Likewise.
21853 (CFLAGS-wcstoul.c): Likewise.
21854 (CFLAGS-wcstoll.c): Likewise.
21855 (CFLAGS-wcstoull.c): Likewise.
21856 (CFLAGS-wcstod.c): Likewise.
21857 (CFLAGS-wcstold.c): Likewise.
21858 (CFLAGS-wcstof128.c): Likewise.
21859 (CFLAGS-wcstof.c): Likewise.
21860 (CFLAGS-wcstol_l.c): Likewise.
21861 (CFLAGS-wcstoul_l.c): Likewise.
21862 (CFLAGS-wcstoll_l.c): Likewise.
21863 (CFLAGS-wcstoull_l.c): Likewise.
21864 (CFLAGS-wcstod_l.c): Likewise.
21865 (CFLAGS-wcstold_l.c): Likewise.
21866 (CFLAGS-wcstof128_l.c): Likewise.
21867 (CFLAGS-wcstof_l.c): Likewise.
21868 (CPPFLAGS-tst-wchar-h.c): Likewise.
21869 (CPPFLAGS-wcstold_l.c): Likewise.
21870
21871 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21872
21873 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21874
21875 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21876 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21877
21878 * manual/tunables.texi (Hardware Capability Tunables): Document
21879 glibc.tune.cached_memopt.
21880 * sysdeps/powerpc/cpu-features.c: New file.
21881 * sysdeps/powerpc/cpu-features.h: New file.
21882 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21883 _dl_powerpc_cpu_features.
21884 * sysdeps/powerpc/dl-tunables.list: New file.
21885 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21886 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21887 (INIT_ARCH): Initialize use_aligned_memopt.
21888 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21889 IS_IN(rtld))]: Restrict dl_platform_init availability and
21890 initialize CPU features used by tunables.
21891 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21892 Add memcpy-power8-cached.
21893 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21894 __memcpy_power8_cached.
21895 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21896 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21897 New file.
21898
21899 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21900
21901 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21902 (CFLAGS-noinl-tester.c): Likewise.
21903 (CFLAGS-tst-strlen.c): Likewise.
21904 (CFLAGS-stratcliff.c): Likewise.
21905 (CFLAGS-test-ffs.c): Likewise.
21906 (CFLAGS-tst-inlcall.c): Likewise.
21907 (CFLAGS-tst-xbzero-opt.c): Likewise.
21908 (CFLAGS-memcpy.c): Likewise.
21909 (CFLAGS-wordcopy.c): Likewise.
21910
21911 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21912
21913 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21914 Store r15 on stack and add cfi rule.
21915 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21916 Likewise.
21917
21918 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21919
21920 [BZ #22577]
21921 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21922 call.
21923
21924 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21925
21926 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21927 Add s_sinf-sse2 and s_sinf-fma.
21928 (CFLAGS-s_sinf-fma.c): New.
21929 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21930 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21931 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21932
21933 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21934
21935 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21936
21937 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21938
21939 [BZ #22568]
21940 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21941 part of result to imaginary part of argument if it is zero and the
21942 real part of the argument is not finite.
21943 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21944 of result to real part of argument if it is zero and the imaginary
21945 part of the argument is not finite.
21946
21947 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21948
21949 [BZ #22524]
21950 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21951 and to the list of locales to be built for testing.
21952 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21953 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21954 and build the collation rules upon that.
21955
21956 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21957
21958 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21959 * manual/math.texi (Mathematics): Document support for _Float32.
21960 * math/Makefile (test-types): Add float32.
21961 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21962 * stdlib/Versions (GLIBC_2.27): Likewise.
21963 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21964 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21965 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21966 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21967 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21968 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21969 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21970 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21971 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21972 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21973 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21974 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21975 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21976 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21977 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21978 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21979 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21980 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21981 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21982 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21983 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21984 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21985 Likewise.
21986 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21987 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21988 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21989 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21990 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21992 Likewise.
21993 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21994 Likewise.
21995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21996 Likewise.
21997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21998 Likewise.
21999
22000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22001 Likewise.
22002 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22003 Likewise.
22004 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22005 Likewise.
22006 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22007 Likewise.
22008 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22009 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22010 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22011 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22012 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22013 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22014 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22015 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22016 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22017 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22018 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22019 Likewise.
22020 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22021 Likewise.
22022 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22023 Likewise.
22024 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22025 Likewise.
22026 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22027 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22028 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22030 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22031 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22032 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22033 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22034
22035 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22036
22037 * stdlib/strtof.c: Include <bits/floatn.h>
22038 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
22039 and later undefine as macro. Define as weak alias if
22040 [!USE_WIDE_CHAR].
22041 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
22042 and later undefine as macro. Define as weak alias if
22043 [USE_WIDE_CHAR].
22044 * stdlib/strtof_l.c: Include <bits/floatn.h>
22045 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
22046 and later undefine as macro. Define as weak alias if
22047 [!USE_WIDE_CHAR].
22048 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
22049 and later undefine as macro. Define as weak alias if
22050 [USE_WIDE_CHAR].
22051
22052 * stdlib/strfromf.c: Include <bits/floatn.h>.
22053 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
22054 and later undefine as macro and define as weak alias.
22055
22056 * math/test-float32.h: New file.
22057
22058 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
22059 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
22060 (libm_alias_float_other_r): Create f32 alias.
22061 (libm_alias_float_r): Use semicolon before call to
22062 libm_alias_float_other_r.
22063
22064 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
22065 second argument to libm_alias_float_other.
22066 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
22067 second argument to libm_alias_float_other.
22068 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
22069 argument to libm_alias_float_other.
22070
22071 [BZ #22561]
22072 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
22073 real part of result for argument 0 + i * NaN.
22074 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
22075 results for tests of 0 + i * NaN.
22076
22077 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22078
22079 * sysdeps/alpha/fpu/libm-test-ulps: Update.
22080
22081 2017-12-06 David S. Miller <davem@davemloft.net>
22082
22083 * sysdeps/sparc/fpu/libm-test-ulps: Update
22084 exp_{downward,towardzero,upward} ulps.
22085
22086 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22087
22088 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22089 variables static.
22090
22091 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22092 (Y0_2D): Likewise.
22093 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22094 (Y0_2D): Likewise.
22095 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22096 (Y0_2D): Likewise.
22097 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22098 (Y0_2D): Likewise.
22099
22100 2017-12-06 Mike FABIAN <mfabian@redhat.com>
22101
22102 [BZ #22515]
22103 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22104 and to the list of locales to be built for testing.
22105 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22106 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22107 and build the collation rules upon that.
22108
22109 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22110
22111 * NEWS: Add sinf to list of optimized functions.
22112
22113 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22114
22115 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22116 (__HAVE_FLOAT32X): Likewise.
22117 * manual/math.texi (Mathematics): Document support for _Float64
22118 and _Float32x.
22119 * math/Makefile (test-types): Add float64 and float32x.
22120 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22121 functions.
22122 * stdlib/Versions (GLIBC_2.27): Likewise.
22123 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22124 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22125 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22126 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22127 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22128 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22129 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22130 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22131 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22132 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22133 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22134 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22135 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22136 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22137 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22138 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22139 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22140 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22141 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22142 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22143 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22144 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22145 Likewise.
22146 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22147 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22148 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22149 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22150 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22151 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22152 Likewise.
22153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22154 Likewise.
22155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22156 Likewise.
22157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22158 Likewise.
22159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22160 Likewise.
22161 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22162 Likewise.
22163 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22164 Likewise.
22165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22166 Likewise.
22167 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22168 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22169 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22170 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22171 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22172 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22173 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22174 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22175 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22176 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22177 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22178 Likewise.
22179 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22180 Likewise.
22181 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22182 Likewise.
22183 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22184 Likewise.
22185 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22186 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22187 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22189 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22190 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22191 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22192 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22193
22194 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22195
22196 * bits/floatn-common.h: Include <bits/long-double.h>.
22197 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22198 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22199 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22200 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22201 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22202 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22203 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22204 (__builtin_huge_valf64): Use __builtin_huge_vall.
22205 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22206 (__builtin_inff64): Use __builtin_infl.
22207 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22208 (__builtin_nanf64): Use __builtin_nanl.
22209 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22210 (__builtin_nansf64): Use __builtin_nansl.
22211
22212 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22213 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22214 Carlos O'Donnell <carlos@redhat.com>
22215
22216 * elf/dl-tunables.list: Add elision parameters.
22217 * manual/tunables.texi: Add entries about elision tunable.
22218 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22219 Add callback functions to dynamically enable/disable elision.
22220 Add multiple callbacks functions to set elision parameters.
22221 Deleted __libc_enable_secure check.
22222 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22223 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22224 * configure: Regenerated.
22225 * configure.ac: Option enable_lock_elision was deleted.
22226 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22227 * config.make.in: Remove references to enable_lock_elision.
22228 * manual/install.texi: Elision configure option was removed.
22229 * INSTALL: Regenerated to remove enable_lock_elision.
22230 * nptl/Makefile:
22231 Disable elision so it can verify error case for destroying a mutex.
22232 * sysdeps/powerpc/nptl/elide.h:
22233 Cleanup ENABLE_LOCK_ELISION check.
22234 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22235 * sysdeps/s390/configure: Regenerated.
22236 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22237 * nptl/tst-mutex8.c:
22238 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22239 * sysdeps/powerpc/powerpc32/sysdep.h:
22240 Deleted all ENABLE_LOCK_ELISION checks.
22241 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22242 * sysdeps/powerpc/sysdep.h: Likewise.
22243 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22244 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22245 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22246 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22247 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22248 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22249 enable-lock-elision.
22250
22251 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22252
22253 * stdlib/strtod.c: Include <bits/floatn.h>.
22254 (BUILD_DOUBLE): New macro.
22255 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22256 (strtof64): Define and later undefine as macro. Define as weak
22257 alias if [!USE_WIDE_CHAR].
22258 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22259 (wcstof64): Define and later undefine as macro. Define as weak
22260 alias if [USE_WIDE_CHAR].
22261 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22262 (strtof32x): Define and later undefine as macro. Define as weak
22263 alias if [!USE_WIDE_CHAR].
22264 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22265 (wcstof32x): Define and later undefine as macro. Define as weak
22266 alias if [USE_WIDE_CHAR].
22267 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22268 (BUILD_DOUBLE): New macro.
22269 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22270 (strtof64_l): Define and later undefine as macro. Define as weak
22271 alias if [!USE_WIDE_CHAR].
22272 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22273 (wcstof64_l): Define and later undefine as macro. Define as weak
22274 alias if [USE_WIDE_CHAR].
22275 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22276 (strtof32x_l): Define and later undefine as macro. Define as weak
22277 alias if [!USE_WIDE_CHAR].
22278 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22279 (wcstof32x_l): Define and later undefine as macro. Define as weak
22280 alias if [USE_WIDE_CHAR].
22281
22282 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22283
22284 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22285 (reduced): Use ones as double instead of integer.
22286
22287 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22288
22289 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22290
22291 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22292
22293 * stdlib/strfromd.c: Include <bits/floatn.h>.
22294 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22295 and later undefine as macro and define as weak alias.
22296 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22297 Likewise.
22298
22299 * math/test-float32x.h: New file.
22300 * math/test-float64.h: Likewise.
22301
22302 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22303 (libm_alias_double_other_r_f64): New macro.
22304 (libm_alias_double_other_r_f32x): Likewise.
22305 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22306 libm_alias_double_other_r_f32x.
22307 (libm_alias_double_r): Use semicolon before call to
22308 libm_alias_double_other_r.
22309 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22310 <bits/floatn.h>.
22311 (libm_alias_double_other_r_f64): New macro.
22312 (libm_alias_double_other_r_f32x): Likewise.
22313 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22314 libm_alias_double_other_r_f32x.
22315
22316 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22317
22318 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22319 int.
22320 (SINF_FUNC): Likewise. Replace floor with simple casts.
22321
22322 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22323
22324 [BZ #22517]
22325 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22326 and to the list of locales to be built for testing.
22327 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22328 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22329 and build the collation rules upon that.
22330
22331 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22332
22333 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22334 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22335 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22336 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22337 instead of __insn__xxx.
22338 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22339 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22340 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22341 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22342 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22343 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22344
22345 2017-12-05 Florian Weimer <fweimer@redhat.com>
22346
22347 Linux: Implement interfaces for memory protection keys
22348 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22349 xsignal, xsysconf.
22350 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22351 * support/xunistd.h (xsysconf): Declare.
22352 * support/xraise.c: New file.
22353 * support/xsigaction.c: Likewise.
22354 * support/xsignal.c: Likewise.
22355 * support/xsysconf.c: Likewise.
22356 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22357 pkey_set, pkey_get, pkey_mprotect.
22358 [misc] (tests): Add tst-pkey.
22359 (tst-pkey): Link with -lpthread.
22360 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22361 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22362 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22363 (PKEY_DISABLE_WRITE): Define.
22364 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22365 Declare.
22366 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22367 (SEGV_PKUERR): Add.
22368 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22369 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22370 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22371 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22372 Add.
22373 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22374 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22375 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22376 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22377 * sysdeps/unix/sysv/linux/**.abilist: Update.
22378
22379 2017-12-05 Florian Weimer <fweimer@redhat.com>
22380
22381 * support/tst-test_compare.c (subprocess): Use long long instead
22382 of long argument for consistent type width across 32-bit and
22383 64-bit architectures.
22384 (do_test): Adjust expected output.
22385
22386 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22387
22388 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22389 (cosf): Define using libm_alias_float.
22390 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22391 (fabsf): Define using libm_alias_float.
22392 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22393 (fmaf): Define using libm_alias_float.
22394 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22395 (rintf): Define using libm_alias_float.
22396 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22397 (sinf): Define using libm_alias_float.
22398 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22399 <libm-alias-float.h>.
22400 (modff): Define using libm_alias_float.
22401 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22402 <libm-alias-float.h>.
22403 (logbf): Define using libm_alias_float.
22404 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22405 <libm-alias-float.h>.
22406 (ceilf): Define using libm_alias_float.
22407 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22408 <libm-alias-float.h>.
22409 (copysignf): Define using libm_alias_float.
22410 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22411 <libm-alias-float.h>.
22412 (floorf): Define using libm_alias_float.
22413 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22414 <libm-alias-float.h>.
22415 (llrintf): Define using libm_alias_float.
22416 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22417 <libm-alias-float.h>.
22418 (llroundf): Define using libm_alias_float.
22419 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22420 <libm-alias-float.h>.
22421 (lrintf): Define using libm_alias_float.
22422 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22423 <libm-alias-float.h>.
22424 (lroundf): Define using libm_alias_float.
22425 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22426 <libm-alias-float.h>.
22427 (nearbyintf): Define using libm_alias_float.
22428 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22429 <libm-alias-float.h>.
22430 (rintf): Define using libm_alias_float.
22431 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22432 <libm-alias-float.h>.
22433 (roundf): Define using libm_alias_float.
22434 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22435 <libm-alias-float.h>.
22436 (truncf): Define using libm_alias_float.
22437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22438 Include <libm-alias-float.h>.
22439 (ceilf): Define using libm_alias_float.
22440 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22441 Include <libm-alias-float.h>.
22442 (copysignf): Define using libm_alias_float.
22443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22444 Include <libm-alias-float.h>.
22445 (floorf): Define using libm_alias_float.
22446 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22447 Include <libm-alias-float.h>.
22448 (llrintf): Define using libm_alias_float.
22449 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22450 Include <libm-alias-float.h>.
22451 (llroundf): Define using libm_alias_float.
22452 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22453 Include <libm-alias-float.h>.
22454 (logbf): Define using libm_alias_float.
22455 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22456 Include <libm-alias-float.h>.
22457 (lrintf): Define using libm_alias_float.
22458 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22459 Include <libm-alias-float.h>.
22460 (lroundf): Define using libm_alias_float.
22461 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22462 Include <libm-alias-float.h>.
22463 (modff): Define using libm_alias_float.
22464 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22465 Include <libm-alias-float.h>.
22466 (roundf): Define using libm_alias_float.
22467 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22468 Include <libm-alias-float.h>.
22469 (truncf): Define using libm_alias_float.
22470 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22471 <libm-alias-float.h>.
22472 (llrintf): Define using libm_alias_float.
22473 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22474 <libm-alias-float.h>.
22475 (llroundf): Define using libm_alias_float.
22476 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22477 <libm-alias-float.h>.
22478 (ceilf): Define using libm_alias_float.
22479 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22480 <libm-alias-float.h>.
22481 (floorf): Define using libm_alias_float.
22482 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22483 <libm-alias-float.h>.
22484 (llroundf): Define using libm_alias_float.
22485 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22486 <libm-alias-float.h>.
22487 (lroundf): Define using libm_alias_float.
22488 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22489 <libm-alias-float.h>.
22490 (roundf): Define using libm_alias_float.
22491 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22492 <libm-alias-float.h>.
22493 (truncf): Define using libm_alias_float.
22494 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22495 <libm-alias-float.h>.
22496 (copysignf): Define using libm_alias_float.
22497 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22498 <libm-alias-float.h>.
22499 (llrintf): Define using libm_alias_float.
22500 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22501 <libm-alias-float.h>.
22502 (llroundf): Define using libm_alias_float.
22503 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22504 <libm-alias-float.h>.
22505 (lrintf): Define using libm_alias_float.
22506 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22507 <libm-alias-float.h>.
22508 (lroundf): Define using libm_alias_float.
22509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22510 <libm-alias-float.h>.
22511 (ceilf): Define using libm_alias_float.
22512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22513 <libm-alias-float.h>.
22514 (copysignf): Define using libm_alias_float.
22515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22516 <libm-alias-float.h>.
22517 (cosf): Define using libm_alias_float.
22518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22519 <libm-alias-float.h>.
22520 (floorf): Define using libm_alias_float.
22521 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22522 <libm-alias-float.h>.
22523 (llrintf): Define using libm_alias_float.
22524 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22525 <libm-alias-float.h>.
22526 (llroundf): Define using libm_alias_float.
22527 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22528 <libm-alias-float.h>.
22529 (logbf): Define using libm_alias_float.
22530 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22531 <libm-alias-float.h>.
22532 (modff): Define using libm_alias_float.
22533 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22534 <libm-alias-float.h>.
22535 (roundf): Define using libm_alias_float.
22536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22537 <libm-alias-float.h>.
22538 (sinf): Define using libm_alias_float.
22539 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22540 <libm-alias-float.h>.
22541 (truncf): Define using libm_alias_float.
22542 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22543 <libm-alias-float.h>.
22544 (ceilf): Define using libm_alias_float.
22545 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22546 <libm-alias-float.h>.
22547 (copysignf): Define using libm_alias_float.
22548 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22549 <libm-alias-float.h>.
22550 (floorf): Define using libm_alias_float.
22551 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22552 <libm-alias-float.h>.
22553 (llrintf): Define using libm_alias_float.
22554 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22555 <libm-alias-float.h>.
22556 (llroundf): Define using libm_alias_float.
22557 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22558 <libm-alias-float.h>.
22559 (nearbyintf): Define using libm_alias_float.
22560 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22561 <libm-alias-float.h>.
22562 (rintf): Define using libm_alias_float.
22563 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22564 <libm-alias-float.h>.
22565 (roundf): Define using libm_alias_float.
22566 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22567 <libm-alias-float.h>.
22568 (truncf): Define using libm_alias_float.
22569 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22570 <libm-alias-float.h>.
22571 (ceilf): Define using libm_alias_float.
22572 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22573 <libm-alias-float.h>.
22574 (floorf): Define using libm_alias_float.
22575 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22576 <libm-alias-float.h>.
22577 (llroundf): Define using libm_alias_float.
22578 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22579 <libm-alias-float.h>.
22580 (roundf): Define using libm_alias_float.
22581 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22582 <libm-alias-float.h>.
22583 (truncf): Define using libm_alias_float.
22584 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22585 <libm-alias-float.h>.
22586 (copysignf): Define using libm_alias_float.
22587 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22588 <libm-alias-float.h>.
22589 (llrintf): Define using libm_alias_float.
22590 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22591 <libm-alias-float.h>.
22592 (llroundf): Define using libm_alias_float.
22593 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22594 <libm-alias-float.h>.
22595 (cosf): Define using libm_alias_float.
22596 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22597 <libm-alias-float.h>.
22598 (llrintf): Define using libm_alias_float.
22599 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22600 <libm-alias-float.h>.
22601 (llroundf): Define using libm_alias_float.
22602 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22603 <libm-alias-float.h>.
22604 (sinf): Define using libm_alias_float.
22605
22606 2017-12-04 Florian Weimer <fweimer@redhat.com>
22607
22608 * support/check.h (TEST_COMPARE): Define.
22609 (support_test_compare_failure): Declare.
22610 * support/Makefile (libsupport-routines): Add
22611 support_test_compare_failure.
22612 (tests): Add tst-test_compare.
22613 * support /support_test_compare_failure.c: New file.
22614 * support/tst-test_compare.c: Likewise.
22615
22616 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22617
22618 [BZ #22527]
22619 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22620 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22621 available, this rewrite of the collation rules does reproduce
22622 the test file in the same order.
22623
22624 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22625
22626 [BZ #10580]
22627 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22628 digraphs in the month and day names. Using single code points for
22629 digraphs is deprecated. While there are dedicated Unicode
22630 codepoints, for the digraphs, these are included for backwards
22631 compatibility and modern texts use a sequence of Basic Latin
22632 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22633 This makes the month and day names agree exactly with CLDR now,
22634 CLDR does not use the single code points for the digraphs either.
22635
22636 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22637
22638 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22639
22640 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22641
22642 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22643 of floor.
22644
22645 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22646
22647 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22648 Define only for libc.so.
22649
22650 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22651
22652 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22653 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22654 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22655 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22656 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22657
22658 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22659
22660 [BZ #5997]
22661 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22662
22663 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22664
22665 [BZ libc/19170]
22666 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22667 PREINIT_FUNCTION_WEAK is nonzero.
22668 (gmon_initializer): New function. Put procedure label for it in
22669 .init_array section.
22670 (_init): Don't call PREINIT_FUNCTION.
22671 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22672 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22673 value when map argument is null.
22674
22675 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22676 depi instruction from PIC pc-relative sequence.
22677 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22678 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22679 (elf_machine_load_address): Likewise.
22680 (elf_machine_runtime_setup): Likewise.
22681
22682 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22683
22684 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22685 <libm-alias-double.h>.
22686 (logb): Define using libm_alias_double.
22687 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22688 <libm-alias-double.h>.
22689 (copysign): Define using libm_alias_double.
22690 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22691 <libm-alias-double.h>.
22692 (llrint): Define using libm_alias_double.
22693 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22694 <libm-alias-double.h>.
22695 (llround): Define using libm_alias_double.
22696 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22697 <libm-alias-double.h>.
22698 (lrint): Define using libm_alias_double.
22699 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22700 <libm-alias-double.h>.
22701 (lround): Define using libm_alias_double.
22702 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22703 Include <libm-alias-double.h>.
22704 (copysign): Define using libm_alias_double.
22705 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22706 Include <libm-alias-double.h>.
22707 (llrint): Define using libm_alias_double.
22708 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22709 Include <libm-alias-double.h>.
22710 (llround): Define using libm_alias_double.
22711 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22712 <libm-alias-double.h>.
22713 (logb): Define using libm_alias_double.
22714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22715 Include <libm-alias-double.h>.
22716 (lrint): Define using libm_alias_double.
22717 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22718 Include <libm-alias-double.h>.
22719 (lround): Define using libm_alias_double.
22720 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22721 <libm-alias-double.h>.
22722 (llrint): Define using libm_alias_double.
22723 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22724 <libm-alias-double.h>.
22725 (llround): Define using libm_alias_double.
22726 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22727 <libm-alias-double.h>.
22728 (llround): Define using libm_alias_double.
22729 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22730 <libm-alias-double.h>.
22731 (lround): Define using libm_alias_double.
22732 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22733 <libm-alias-double.h>.
22734 (copysign): Define using libm_alias_double.
22735 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22736 <libm-alias-double.h>.
22737 (llrint): Define using libm_alias_double.
22738 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22739 <libm-alias-double.h>.
22740 (llround): Define using libm_alias_double.
22741 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22742 <libm-alias-double.h>.
22743 (lrint): Define using libm_alias_double.
22744 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22745 <libm-alias-double.h>.
22746 (lround): Define using libm_alias_double.
22747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22748 <libm-alias-double.h>.
22749 (copysign): Define using libm_alias_double.
22750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22751 <libm-alias-double.h>.
22752 (llrint): Define using libm_alias_double.
22753 (lrint): Likewise.
22754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22755 <libm-alias-double.h>.
22756 (llround): Define using libm_alias_double.
22757 (lround): Likewise.
22758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22759 <libm-alias-double.h>.
22760 (logb): Define using libm_alias_double.
22761 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22762 <libm-alias-double.h>.
22763 (copysign): Define using libm_alias_double.
22764 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22765 <libm-alias-double.h>.
22766 (llrint): Define using libm_alias_double.
22767 (lrint): Likewise.
22768 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22769 <libm-alias-double.h>.
22770 (llround): Define using libm_alias_double.
22771 (lround): Likewise.
22772 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22773 <libm-alias-double.h>.
22774 (llround): Define using libm_alias_double.
22775 (lround): Likewise.
22776 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22777 <libm-alias-double.h>.
22778 (copysign): Define using libm_alias_double.
22779 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22780 <libm-alias-double.h>.
22781 (llrint): Define using libm_alias_double.
22782 (lrint): Likewise.
22783 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22784 <libm-alias-double.h>.
22785 (llround): Define using libm_alias_double.
22786 (lround): Likewise.
22787 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22788 <libm-alias-double.h>.
22789 (llrint): Define using libm_alias_double.
22790 (lrint): Likewise.
22791 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22792 <libm-alias-double.h>.
22793 (llround): Define using libm_alias_double.
22794 (lround): Likewise.
22795
22796 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22797
22798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22799 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22800 compat symbol based on llround.
22801
22802 * sysdeps/powerpc/power7/fpu/s_logb.c
22803 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22804 symbol based on __logb, not on logb.
22805 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22806 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22807 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22808 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22809
22810 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22811 (rint): Define using libm_alias_double.
22812 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22813 <libm-alias-double.h>.
22814 (modf): Define using libm_alias_double.
22815 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22816 <libm-alias-double.h>.
22817 (ceil): Define using libm_alias_double.
22818 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22819 <libm-alias-double.h>.
22820 (floor): Define using libm_alias_double.
22821 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22822 <libm-alias-double.h>.
22823 (nearbyint): Define using libm_alias_double.
22824 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22825 <libm-alias-double.h>.
22826 (rint): Define using libm_alias_double.
22827 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22828 <libm-alias-double.h>.
22829 (round): Define using libm_alias_double.
22830 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22831 <libm-alias-double.h>.
22832 (trunc): Define using libm_alias_double.
22833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22834 <libm-alias-double.h>.
22835 (ceil): Define using libm_alias_double.
22836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22837 Include <libm-alias-double.h>.
22838 (floor): Define using libm_alias_double.
22839 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22840 <libm-alias-double.h>.
22841 (modf): Define using libm_alias_double.
22842 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22843 Include <libm-alias-double.h>.
22844 (round): Define using libm_alias_double.
22845 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22846 Include <libm-alias-double.h>.
22847 (trunc): Define using libm_alias_double.
22848 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22849 <libm-alias-double.h>.
22850 (ceil): Define using libm_alias_double.
22851 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22852 <libm-alias-double.h>.
22853 (floor): Define using libm_alias_double.
22854 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22855 <libm-alias-double.h>.
22856 (round): Define using libm_alias_double.
22857 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22858 <libm-alias-double.h>.
22859 (trunc): Define using libm_alias_double.
22860 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22861 <libm-alias-double.h>.
22862 (ceil): Define using libm_alias_double.
22863 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22864 <libm-alias-double.h>.
22865 (floor): Define using libm_alias_double.
22866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22867 <libm-alias-double.h>.
22868 (modf): Define using libm_alias_double.
22869 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22870 <libm-alias-double.h>.
22871 (round): Define using libm_alias_double.
22872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22873 <libm-alias-double.h>.
22874 (trunc): Define using libm_alias_double.
22875 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22876 <libm-alias-double.h>.
22877 (ceil): Define using libm_alias_double.
22878 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22879 <libm-alias-double.h>.
22880 (floor): Define using libm_alias_double.
22881 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22882 <libm-alias-double.h>.
22883 (nearbyint): Define using libm_alias_double.
22884 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22885 <libm-alias-double.h>.
22886 (rint): Define using libm_alias_double.
22887 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22888 <libm-alias-double.h>.
22889 (round): Define using libm_alias_double.
22890 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22891 <libm-alias-double.h>.
22892 (trunc): Define using libm_alias_double.
22893 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22894 <libm-alias-double.h>.
22895 (ceil): Define using libm_alias_double.
22896 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22897 <libm-alias-double.h>.
22898 (floor): Define using libm_alias_double.
22899 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22900 <libm-alias-double.h>.
22901 (round): Define using libm_alias_double.
22902 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22903 <libm-alias-double.h>.
22904 (trunc): Define using libm_alias_double.
22905
22906 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22907 (fabs): Define using libm_alias_double.
22908 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22909 (fma): Define using libm_alias_double.
22910 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22911 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22912 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22913 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22914
22915 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22916
22917 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22918
22919 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22920 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22921 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22922
22923 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22924 due redirect macro.
22925
22926 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22927
22928 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22929
22930 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22931
22932 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22933 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22934 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22935 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22936
22937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22938 (libm-sysdep_routines): Add s_nearbyintf-generic and
22939 s_nearbyint-generic.
22940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22941 New file.
22942 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22944 Likewise.
22945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22946 Likewise.
22947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22948 file.
22949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22950 Likewise.
22951
22952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22953 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22954 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22955 file.
22956 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22957 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22958 Likewise.
22959 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22960 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22961 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22962
22963 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22964 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22965 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22966 file.
22967 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22969 Likewise.
22970 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22972 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22973
22974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22975 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22976 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22977 file.
22978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22979 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22980 Likewise.
22981 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22983 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22984
22985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22986 (sysdep_calls): New rule.
22987 (sysdep_routines): Use sysdep_calls as base.
22988 (libm-sysdep_routines): Add generic rule for symbols shared with
22989 libc. Add s_copysign-generic and s_copysign-generic objects.
22990 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22991 New file.
22992 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22993 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22994 Likewise.
22995 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22996 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22998
22999 2017-12-01 Mike FABIAN <mfabian@redhat.com>
23000
23001 [BZ #22519]
23002 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
23003 the list of locales to be built for testing.
23004 * localedata/is_IS.UTF-8.in: New file.
23005 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
23006 on iso14651_t1.
23007
23008 2017-12-01 Joseph Myers <joseph@codesourcery.com>
23009
23010 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
23011 <libm-alias-float.h>.
23012 (fabsf): Define using libm_alias_float.
23013
23014 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23015
23016 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
23017
23018 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23019
23020 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
23021 <libm-alias-float.h>.
23022 (fabsf): Define using libm_alias_float.
23023 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
23024 <libm-alias-float.h>.
23025 (lrintf): Define using libm_alias_float.
23026 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
23027 <libm-alias-float.h>.
23028 (rintf): Define using libm_alias_float.
23029
23030 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
23031 <libm-alias-double.h>.
23032 (fabs): Define using libm_alias_double.
23033 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
23034 <libm-alias-double.h>.
23035 (lrint): Define using libm_alias_double.
23036 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
23037 <libm-alias-double.h>.
23038 (rint): Define using libm_alias_double.
23039
23040 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
23041 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
23042 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
23043 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
23044 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
23045 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
23046 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
23047 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
23048 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
23049 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
23050 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
23051 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
23052 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
23053 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
23054 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
23055 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
23056 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
23057 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
23058 s_atan_template.c.
23059 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
23060 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
23061 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
23062 s_ceil_template.c.
23063 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
23064 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
23065 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
23066 s_cos_template.c.
23067 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
23068 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
23069 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
23070 s_expm1_template.c.
23071 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
23072 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
23073 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
23074 s_fabs_template.c.
23075 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
23076 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
23077 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
23078 s_floor_template.c.
23079 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
23080 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23081 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23082 s_frexp_template.c.
23083 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23084 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23085 s_lrint_template.c.
23086 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23087 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23088 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23089 s_modf_template.c.
23090 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23091 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23092 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23093 s_nearbyint_template.c.
23094 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23095 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23096 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23097 s_remquo_template.c.
23098 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23099 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23100 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23101 s_rint_template.c.
23102 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23103 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23104 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23105 s_sin_template.c.
23106 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23107 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23108 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23109 s_sincos_template.c.
23110 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23111 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23112 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23113 s_tan_template.c.
23114 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23115 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23116 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23117 s_tanh_template.c.
23118 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23119 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23120 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23121 s_trunc_template.c.
23122 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23123 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23124 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23125 s_atan.c instead of including s_atan.c.
23126 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23127 s_atanf.c instead of including s_atanf.c.
23128 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23129 s_atanl.c instead of including s_atanl.c.
23130 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23131 instead of s_atan.c.
23132 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23133 instead of s_atanf.c.
23134 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23135 instead of s_atanl.c.
23136
23137 * scripts/update-copyrights: Do not handle intl/plural.c
23138 specially.
23139
23140 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
23141
23142 [BZ #22432]
23143 * configure.ac (BISON): Require to be present.
23144 * configure: Regenerated.
23145 * intl/Makefile (generated): Add plural.c.
23146 [$(BISON) != no]: Make code unconditional.
23147 (plural.c): Change rule to $(objpfx)plural.c.
23148 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23149 * intl/plural.c: Remove.
23150 * manual/install.texi (Tools for Compilation): Document bison as
23151 required.
23152 * INSTALL: Regenerated.
23153
23154 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23155
23156 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23157 <libm-alias-double.h>.
23158 (llrint): Define using libm_alias_double.
23159 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23160 <libm-alias-float.h>.
23161 (llrintf): Define using libm_alias_float.
23162 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23163 <libm-alias-ldouble.h>.
23164 (llrintl): Define using libm_alias_ldouble.
23165
23166 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23167 declare_mgen_alias instead of weak_alias.
23168 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23169 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23170 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23171
23172 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23173
23174 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23175 Add add_n-generic.
23176 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23177 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23178 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23179
23180 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23181 Add submul_1-generic.
23182 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23183 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23184 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23185
23186 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23187 Add addmul_1-generic.
23188 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23189 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23190 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23191
23192 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23193 Add sub_n-generic.
23194 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23195 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23196 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23197
23198 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23199 Add mul_1-generic.
23200 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23201 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23202 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23203
23204 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23205
23206 According to CLDR, collation rules for Serbian and Bosnian
23207 should be the same as for Croatian.
23208
23209 [BZ #22534]
23210 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23211 and to the list of locales to be built for testing.
23212 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23213 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23214 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23215 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23216
23217 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23218
23219 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23220 to make test case pass.
23221 * localedata/hr_HR.UTF-8.in: Add more test strings.
23222
23223 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23224
23225 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23226
23227 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23228
23229 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23230 the list of locales to built for testing.
23231 * localedata/hr_HR.UTF-8.in: New file.
23232
23233 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23234
23235 [BZ #10580]
23236 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23237 iso14651_t1.
23238 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23239 CLDR (except use ligatures for the digraphs, CLDR does not use
23240 the ligatures), add first_workday, some fixes in the date and time
23241 formats.
23242 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23243 for Đ and đ.
23244 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23245 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23246 Add int_p_cs_precedes and int_n_cs_precedes.
23247 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23248 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23249 LC_MONETARY now).
23250 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23251 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23252 name_miss.
23253 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23254 and lang_lib. Change postal_fmt.
23255
23256 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23257
23258 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23259 <setjmp.h>.
23260 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23261 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23262 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23263 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23264 * sysdeps/generic/setjmpP.h: New file.
23265 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23266 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23267 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23268 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23269 Add jmp_buf-ssp.sym.
23270 (tests): Add tst-saved_mask-1.
23271
23272 2017-11-30 Arjun Shankar <arjun@redhat.com>
23273
23274 [BZ #22375]
23275 CVE-2017-17426
23276 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23277 instead of request2size.
23278
23279 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23280
23281 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23282 (__lllrint): Remove alias.
23283 (lllrint): Likewise.
23284 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23285 (__lllrintf): Likewise.
23286 (lllrintf): Likewise.
23287
23288 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23289 <libm-alias-float.h>.
23290 (copysignf): Define using libm_alias_float.
23291 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23292 <libm-alias-float.h>.
23293 (fabsf): Define using libm_alias_float.
23294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23295 Include <libm-alias-float.h>.
23296 (copysignf): Define using libm_alias_float.
23297 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23298 <libm-alias-float.h>.
23299 (fabsf): Define using libm_alias_float.
23300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23301 <libm-alias-float.h>.
23302 (fdimf): Define using libm_alias_float.
23303 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23304 <libm-alias-float.h>.
23305 (fmaf): Define using libm_alias_float.
23306 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23307 <libm-alias-float.h>.
23308 (llrintf): Define using libm_alias_float.
23309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23310 Include <libm-alias-float.h>.
23311 (nearbyintf): Define using libm_alias_float.
23312 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23313 <libm-alias-float.h>.
23314 (rintf): Define using libm_alias_float.
23315 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23316 <libm-alias-float.h>.
23317 (llrintf): Define using libm_alias_float.
23318 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23319 <libm-alias-float.h>.
23320 (lrintf): Define using libm_alias_float.
23321 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23322 <libm-alias-float.h>.
23323 (nearbyintf): Define using libm_alias_float.
23324 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23325 <libm-alias-float.h>.
23326 (rintf): Define using libm_alias_float.
23327 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23328 <libm-alias-float.h>.
23329 (ceilf): Define using libm_alias_float.
23330 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23331 <libm-alias-float.h>.
23332 (floorf): Define using libm_alias_float.
23333 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23334 <libm-alias-float.h>.
23335 (fmaf): Define using libm_alias_float.
23336 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23337 <libm-alias-float.h>.
23338 (lrintf): Define using libm_alias_float.
23339 (llrintf): Likewise.
23340 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23341 <libm-alias-float.h>.
23342 (nearbyintf): Define using libm_alias_float.
23343 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23344 <libm-alias-float.h>.
23345 (rintf): Define using libm_alias_float.
23346 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23347 <libm-alias-float.h>.
23348 (truncf): Define using libm_alias_float.
23349 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23350 <libm-alias-float.h>.
23351 (copysignf): Define using libm_alias_float.
23352 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23353 <libm-alias-float.h>.
23354 (fabsf): Define using libm_alias_float.
23355 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23356 <libm-alias-float.h>.
23357 (lrintf): Define using libm_alias_float.
23358 (llrintf): Likewise.
23359 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23360 <libm-alias-float.h>.
23361 (nearbyintf): Define using libm_alias_float.
23362 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23363 <libm-alias-float.h>.
23364 (rintf): Define using libm_alias_float.
23365
23366 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23367
23368 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23369 <libm-alias-double.h>.
23370 (copysign): Define using libm_alias_double.
23371 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23372 <libm-alias-double.h>.
23373 (fabs): Define using libm_alias_double.
23374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23375 Include <libm-alias-double.h>.
23376 (copysign): Define using libm_alias_double.
23377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23378 <libm-alias-double.h>.
23379 (fabs): Define using libm_alias_double.
23380 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23381 <libm-alias-double.h>.
23382 (fdim): Define using libm_alias_double.
23383 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23384 <libm-alias-double.h>.
23385 (fma): Define using libm_alias_double.
23386 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23387 <libm-alias-double.h>.
23388 (llrint): Define using libm_alias_double.
23389 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23390 Include <libm-alias-double.h>.
23391 (nearbyint): Define using libm_alias_double.
23392 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23393 <libm-alias-double.h>.
23394 (rint): Define using libm_alias_double.
23395 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23396 <libm-alias-double.h>.
23397 (fabs): Define using libm_alias_double.
23398 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23399 <libm-alias-double.h>.
23400 (llrint): Define using libm_alias_double.
23401 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23402 <libm-alias-double.h>.
23403 (nearbyint): Define using libm_alias_double.
23404 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23405 <libm-alias-double.h>.
23406 (rint): Define using libm_alias_double.
23407 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23408 <libm-alias-double.h>.
23409 (ceil): Define using libm_alias_double.
23410 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23411 <libm-alias-double.h>.
23412 (floor): Define using libm_alias_double.
23413 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23414 <libm-alias-double.h>.
23415 (fma): Define using libm_alias_double.
23416 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23417 <libm-alias-double.h>.
23418 (lrint): Define using libm_alias_double.
23419 (llrint): Likewise.
23420 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23421 <libm-alias-double.h>.
23422 (nearbyint): Define using libm_alias_double.
23423 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23424 <libm-alias-double.h>.
23425 (rint): Define using libm_alias_double.
23426 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23427 <libm-alias-double.h>.
23428 (trunc): Define using libm_alias_double.
23429 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23430 <libm-alias-double.h>.
23431 (copysign): Define using libm_alias_double.
23432 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23433 <libm-alias-double.h>.
23434 (fabs): Define using libm_alias_double.
23435 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23436 <libm-alias-double.h>.
23437 (lrint): Define using libm_alias_double.
23438 (llrint): Likewise.
23439 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23440 <libm-alias-double.h>.
23441 (nearbyint): Define using libm_alias_double.
23442 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23443 <libm-alias-double.h>.
23444 (rint): Define using libm_alias_double.
23445
23446 [BZ #22229]
23447 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23448 <math_ldbl_opt.h>.
23449 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23450
23451 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23452 SPARC --disable-multi-arch glibc variants.
23453
23454 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23455 <libm-alias-float.h>.
23456 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23457 if [SHARED].
23458 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23459 <libm-alias-float.h>.
23460 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23461 if [SHARED].
23462 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23463 <libm-alias-float.h>.
23464 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23465 if [SHARED].
23466 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23467 <libm-alias-float.h>.
23468 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23469 if [SHARED].
23470 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23471 <libm-alias-float.h>.
23472 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23473 if [SHARED].
23474 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23475 <libm-alias-float.h>.
23476 (ceilf): Define using libm_alias_float.
23477 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23478 <libm-alias-float.h>.
23479 (floorf): Define using libm_alias_float.
23480 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23481 <libm-alias-float.h>.
23482 (fmaf): Define using libm_alias_float.
23483 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23484 <libm-alias-float.h>.
23485 (nearbyintf): Define using libm_alias_float.
23486 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23487 <libm-alias-float.h>.
23488 (rintf): Define using libm_alias_float.
23489 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23490 <libm-alias-float.h>.
23491 (truncf): Define using libm_alias_float.
23492 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23493 (copysignf): Define using libm_alias_float.
23494 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23495 (cosf): Define using libm_alias_float.
23496 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23497 (fabsf): Define using libm_alias_float.
23498 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23499 (fmaxf): Define using libm_alias_float.
23500 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23501 (fminf): Define using libm_alias_float.
23502 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23503 (llrintf): Define using libm_alias_float.
23504 [!__ILP32__] (lrintf): Likewise.
23505 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23506 (sincosf): Define using libm_alias_float.
23507 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23508 (sinf): Define using libm_alias_float.
23509 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23510 (lrintf): Define using libm_alias_float.
23511
23512 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23513 <libm-alias-double.h>.
23514 (atan): Define using libm_alias_double.
23515 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23516 <libm-alias-double.h>.
23517 (ceil): Define using libm_alias_double.
23518 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23519 <libm-alias-double.h>.
23520 (floor): Define using libm_alias_double.
23521 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23522 <libm-alias-double.h>.
23523 (fma): Define using libm_alias_double.
23524 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23525 <libm-alias-double.h>.
23526 (nearbyint): Define using libm_alias_double.
23527 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23528 <libm-alias-double.h>.
23529 (rint): Define using libm_alias_double.
23530 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23531 <libm-alias-double.h>.
23532 (sin): Define using libm_alias_double.
23533 (cos): Likewise.
23534 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23535 <libm-alias-double.h>.
23536 (tan): Define using libm_alias_double.
23537 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23538 <libm-alias-double.h>.
23539 (trunc): Define using libm_alias_double.
23540 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23541 (copysign): Define using libm_alias_double.
23542 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23543 (fabs): Define using libm_alias_double.
23544 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23545 (fmax): Define using libm_alias_double.
23546 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23547 (fmin): Define using libm_alias_double.
23548 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23549 (llrint): Define using libm_alias_double.
23550 [!__ILP32__] (lrint): Likewise.
23551 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23552 (lrint): Define using libm_alias_double.
23553
23554 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23555
23556 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23557 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23558 objects.
23559 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23560 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23561 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23562 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23563 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23564 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23565
23566 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23567 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23568 objects.
23569 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23570 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23571 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23572 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23573 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23574 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23575
23576 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23577 (libm-sysdep_routines): Add s_nearbyint-generic and
23578 s_nearbyintf-generic objects.
23579 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23580 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23581 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23582 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23583 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23584 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23585
23586 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23587 Add s_finitef-generic and s_finite-generic objects.
23588 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23589 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23590 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23591 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23592 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23593 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23594
23595 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23596 Add s_isinff-generic and s_isinf-generic objects.
23597 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23598 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23599 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23600 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23601 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23602 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23603
23604 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23605 Add s_isnanf-generic and s_isnan-generic objects.
23606 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23607 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23608 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23609 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23610 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23611 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23612
23613 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23614 macro.
23615 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23616 rule.
23617 (sysdep_routines): Use sysdep_calls as base.
23618 (libm-sysdep_routines): Add generic rule for symbols shared with
23619 libc. Add s_signbit-generic and s_signbitf-generic objects.
23620 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23621 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23622 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23623 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23624 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23625 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23626
23627 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23628
23629 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23630 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23631 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23632 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23633 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23634 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23635 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23636 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23637 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23638 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23639 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23640 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23641 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23642 libm_alias_float_r.
23643 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23644 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23645 (logf): Likewise.
23646 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23647 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23648 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23649 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23650 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23651 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23652 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23653 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23654 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23655 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23656 libm_alias_float.
23657 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23658 (cosf): Likewise.
23659 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23660 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23661 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23662 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23663 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23664 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23665 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23666 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23667 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23668 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23669 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23670 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23671 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23672 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23673 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23674 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23675 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23676 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23677 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23678 libm_alias_float.
23679 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23680 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23681 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23682 * sysdeps/ia64/fpu/w_lgammaf_main.c
23683 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23684 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23685
23686 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23687 Alexandre Oliva <aoliva@redhat.com>
23688
23689 [BZ #17750]
23690 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23691 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23692 accents sorting.
23693 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23694 sorting.
23695 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23696 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23697 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23698 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23699 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23700 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23701 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23702 instead of “ifdef DIACRIT_BACKWARD”.
23703
23704 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23705
23706 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23707 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23708 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23709 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23710 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23711 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23712 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23713 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23714 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23715 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23716 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23717 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23718 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23719 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23720 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23721 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23722 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23723 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23725 ($(have-as-vis3) == yes): Remove conditional.
23726 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23727 Likewise.
23728 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23729 file.
23730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23731 file.
23732 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23733 file.
23734 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23735 file.
23736 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23737 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23738 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23739 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23740 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23741 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23742 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23743 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23744
23745 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23746
23747 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23748 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23749 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23750 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23751 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23752 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23753 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23754 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23755 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23756 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23757 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23758 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23759 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23760 libm_alias_double_r.
23761 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23762 (log): Likewise.
23763 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23764 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23765 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23766 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23767 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23768 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23769 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23770 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23771 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23772 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23773 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23774 libm_alias_double.
23775 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23776 (cos): Likewise.
23777 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23778 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23779 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23780 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23781 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23782 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23783 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23784 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23785 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23786 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23787 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23788 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23789 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23790 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23791 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23792 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23793 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23794 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23795 libm_alias_double.
23796 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23797 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23798 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23799 * sysdeps/ia64/fpu/w_lgamma_main.c
23800 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23801 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23802
23803 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23804
23805 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23806 address of $global$ into %dp register earlier. Use pc-relative
23807 instruction sequence for PIC case.
23808
23809 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23810
23811 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23812 (asinhf): Define using libm_alias_float.
23813 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23814 (atanf): Define using libm_alias_float.
23815 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23816 (cbrtf): Define using libm_alias_float.
23817 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23818 (ceilf): Define using libm_alias_float.
23819 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23820 (copysignf): Define using libm_alias_float.
23821 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23822 (expm1f): Define using libm_alias_float.
23823 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23824 (fabsf): Define using libm_alias_float.
23825 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23826 (floorf): Define using libm_alias_float.
23827 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23828 (fmaxf): Define using libm_alias_float.
23829 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23830 (fminf): Define using libm_alias_float.
23831 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23832 (frexpf): Define using libm_alias_float.
23833 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23834 (llrintf): Define using libm_alias_float.
23835 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23836 (logbf): Define using libm_alias_float.
23837 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23838 (lrintf): Define using libm_alias_float.
23839 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23840 (nearbyintf): Define using libm_alias_float.
23841 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23842 (remquof): Define using libm_alias_float.
23843 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23844 (rintf): Define using libm_alias_float.
23845 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23846 (truncf): Define using libm_alias_float.
23847 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23848 <libm-alias-float.h>.
23849 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23850 if [SHARED].
23851 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23852 <libm-alias-float.h>.
23853 (expf): Define using libm_alias_float, or libm_alias_float_other
23854 if [SHARED].
23855 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23856 <libm-alias-float.h>.
23857 (log2f): Define using libm_alias_float, or libm_alias_float_other
23858 if [SHARED].
23859 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23860 <libm-alias-float.h>.
23861 (logf): Define using libm_alias_float, or libm_alias_float_other
23862 if [SHARED].
23863 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23864 <libm-alias-float.h>.
23865 (powf): Define using libm_alias_float, or libm_alias_float_other
23866 if [SHARED].
23867 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23868 <libm-alias-float.h>.
23869 (cosf): Define using libm_alias_float.
23870 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23871 <libm-alias-float.h>.
23872 (sincosf): Define using libm_alias_float.
23873 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23874 <libm-alias-float.h>.
23875 (sinf): Define using libm_alias_float.
23876 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23877 (fmaxf): Define using libm_alias_float.
23878 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23879 (fminf): Define using libm_alias_float.
23880 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23881 <libm-alias-float.h>.
23882 (fmaf): Define using libm_alias_float.
23883
23884 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23885 (asinh): Define using libm_alias_double.
23886 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23887 (atan): Define using libm_alias_double.
23888 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23889 (cbrt): Define using libm_alias_double.
23890 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23891 (ceil): Define using libm_alias_double.
23892 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23893 (copysign): Define using libm_alias_double.
23894 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23895 (expm1): Define using libm_alias_double.
23896 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23897 (fabs): Define using libm_alias_double.
23898 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23899 (fdim): Define using libm_alias_double.
23900 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23901 (floor): Define using libm_alias_double.
23902 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23903 (fmax): Define using libm_alias_double.
23904 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23905 (fmin): Define using libm_alias_double.
23906 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23907 (frexp): Define using libm_alias_double.
23908 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23909 (llrint): Define using libm_alias_double.
23910 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23911 (logb): Define using libm_alias_double.
23912 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23913 (lrint): Define using libm_alias_double.
23914 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23915 (nearbyint): Define using libm_alias_double.
23916 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23917 (remquo): Define using libm_alias_double.
23918 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23919 (rint): Define using libm_alias_double.
23920 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23921 (trunc): Define using libm_alias_double.
23922 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23923 (fmax): Define using libm_alias_double.
23924 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23925 (fmin): Define using libm_alias_double.
23926 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23927 (fma): Define using libm_alias_double.
23928
23929 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23930
23931 [BZ #22370]
23932 * elf/dl-hwcaps.c (ROUND): Removed.
23933 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23934 and ELF_NOTE_NEXT_OFFSET.
23935 * elf/dl-load.c (ROUND): Removed.
23936 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23937 * elf/readelflib.c (ROUND): Removed.
23938 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23939 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23940 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23941 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23942
23943 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23944
23945 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23946 [!__fmaf] (fmaf): Define using libm_alias_float.
23947
23948 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23949 [!__fma] (fma): Define using libm_alias_double.
23950 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23951
23952 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23953
23954 [BZ #22336]
23955 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23956 and implement the collation rules for cs from CLDR on top of that.
23957 * Makefile: Add cs_CZ.UTF-8 to test-input.
23958 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23959
23960 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23961
23962 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23963
23964 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23965 Icarus Sparry <icarus.w.sparry@intel.com>
23966
23967 * benchtests/Makefile:Add BENCHSET to allow subsets of
23968 benchmarks to be run.
23969 * benchtests/README: Add documentation for: Running subsets of
23970 benchmarks.
23971
23972 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23973
23974 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23975 range of tests names.
23976
23977 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23978 result from property and remove "max", min" and "mean" from
23979 required properties based on benchtests/bench-skeleton.c.
23980
23981 2017-11-28 Florian Weimer <fweimer@redhat.com>
23982
23983 [BZ #20826]
23984 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23985 due to Internet requirement.
23986 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23987 tst-getaddrinfo5.
23988 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23989
23990 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23991
23992 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23993 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23994 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23995 (sysdep_routines): Add memset-ultra1.
23996 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23997 file.
23998 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23999 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
24000 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
24001 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
24002 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
24003 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
24004 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
24005 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24006
24007 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
24008 file.
24009 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
24010 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
24011 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
24012 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
24013 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
24014 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
24015 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
24016 macro.
24017 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
24018 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
24019 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
24020 (sysdep_routines): Add memcpy-ultra1.
24021 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
24022 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
24023
24024 2017-11-28 Joseph Myers <joseph@codesourcery.com>
24025
24026 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
24027 (cfloat_versions): Take function argument without trailing 'f'.
24028 Call libm_alias_float_other.
24029 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
24030 * sysdeps/alpha/fpu/cargf.c: Likewise.
24031 * sysdeps/alpha/fpu/cimagf.c: Likewise.
24032 * sysdeps/alpha/fpu/conjf.c: Likewise.
24033 * sysdeps/alpha/fpu/crealf.c: Likewise.
24034 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
24035 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
24036 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
24037 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
24038 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
24039 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
24040 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
24041 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
24042 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
24043 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
24044 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
24045 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
24046 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
24047 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
24048 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
24049 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
24050 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
24051 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
24052 (clog10f): Use libm_alias_float_other.
24053 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24054 (ceilf): Define using libm_alias_float.
24055 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
24056 (copysignf): Define using libm_alias_float.
24057 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
24058 (fabsf): Define using libm_alias_float.
24059 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
24060 (floorf): Define using libm_alias_float.
24061 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
24062 (fmaxf): Define using libm_alias_float.
24063 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
24064 (fminf): Define using libm_alias_float.
24065 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24066 (lrintf): Define using libm_alias_float.
24067 (llrintf): Likewise.
24068 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24069 (lroundf): Define using libm_alias_float.
24070 (llroundf): Likewise.
24071 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
24072 (rintf): Define using libm_alias_float.
24073 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
24074 (truncf): Define using libm_alias_float.
24075
24076 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
24077 (ceilf): Define using libm_alias_float.
24078 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
24079 (floorf): Define using libm_alias_float.
24080 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24081 (fmaf): Define using libm_alias_float.
24082 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24083 (fmaxf): Define using libm_alias_float.
24084 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24085 (fminf): Define using libm_alias_float.
24086 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24087 (llrintf): Define using libm_alias_float.
24088 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24089 (llroundf): Define using libm_alias_float.
24090 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24091 (lrintf): Define using libm_alias_float.
24092 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24093 (lroundf): Define using libm_alias_float.
24094 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24095 <libm-alias-float.h>.
24096 (nearbyintf): Define using libm_alias_float.
24097 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24098 (rintf): Define using libm_alias_float.
24099 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24100 (roundf): Define using libm_alias_float.
24101 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24102 (truncf): Define using libm_alias_float.
24103
24104 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24105 (ceil): Define using libm_alias_double.
24106 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24107 (copysign): Define using libm_alias_double.
24108 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24109 (fabs): Define using libm_alias_double.
24110 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24111 (floor): Define using libm_alias_double.
24112 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24113 (fmax): Define using libm_alias_double.
24114 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24115 (fmin): Define using libm_alias_double.
24116 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24117 (lrint): Define using libm_alias_double.
24118 (llrint): Likewise.
24119 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24120 (lround): Define using libm_alias_double.
24121 (llround): Likewise.
24122 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24123 (rint): Define using libm_alias_double.
24124 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24125 (trunc): Define using libm_alias_double.
24126
24127 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24128 (libm_alias_double_r): Add semicolon after weak_alias call.
24129
24130 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24131
24132 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24133 (ceil): Define using libm_alias_double.
24134 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24135 (floor): Define using libm_alias_double.
24136 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24137 (fma): Define using libm_alias_double.
24138 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24139 (fmax): Define using libm_alias_double.
24140 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24141 (fmin): Define using libm_alias_double.
24142 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24143 (llrint): Define using libm_alias_double.
24144 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24145 (llround): Define using libm_alias_double.
24146 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24147 (lrint): Define using libm_alias_double.
24148 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24149 (lround): Define using libm_alias_double.
24150 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24151 (nearbyint): Define using libm_alias_double.
24152 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24153 (rint): Define using libm_alias_double.
24154 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24155 (round): Define using libm_alias_double.
24156 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24157 (trunc): Define using libm_alias_double.
24158
24159 2017-11-27 Florian Weimer <fweimer@redhat.com>
24160
24161 * sysdeps/unix/sysv/linux/mlock2.c: New file.
24162 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24163 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24164 (tests): Add tst-mlock2.
24165 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24166 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24167 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24168 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24169 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24170 for mlock. Document mlock2.
24171
24172 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24173
24174 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24175 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24176 Likewise.
24177 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24178 Likewise.
24179 * sysdeps/x86/Makeconfig: New file.
24180 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24181 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24182 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24183 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24184 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24185 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24186 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24187 Likewise.
24188 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24189 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24190 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24191 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24192 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24193 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24194 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24195 * manual/math.texi (Mathematics): Document support for _Float64x.
24196 * math/Versions (GLIBC_2.27): Add _Float64x functions.
24197 * stdlib/Versions (GLIBC_2.27): Likewise.
24198 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24199 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24200 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24201 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24202 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24203 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24204 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24205 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24206 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24207 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24208 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24209 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24211 Likewise.
24212 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24213 Likewise.
24214 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24215 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24216 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24217 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24218 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24219 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24220 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24221 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24222 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24223 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24224 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24225 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24226 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24227 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24228
24229 2017-11-27 Andreas Schwab <schwab@suse.de>
24230
24231 * elf/Makefile (dl-routines): Add dl-sort-maps.
24232 * elf/dl-sort-maps.c: New file.
24233 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24234 (_dl_sort_maps): Declare.
24235 * elf/dl-fini.c (_dl_sort_fini): Remove.
24236 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24237 * elf/dl-close.c (_dl_close_worker): Likewise.
24238 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24239 open-coding it.
24240 * elf/dl-open.c (dl_open_worker): Likewise.
24241
24242 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24243
24244 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24245 using libm_alias_float128.
24246 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24247 Likewise.
24248 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24249 Likewise.
24250 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24251 (setpayloadsigf128): Likewise.
24252 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24253 Likewise.
24254 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24255 Likewise.
24256
24257 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24258 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24259 -mfloat128 to CFLAGS.
24260 ($(foreach
24261 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24262 Likewise.
24263 (CFLAGS-libm-test-support-float64x.c): New variable.
24264 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24265 $(f128-loader-link) to gnulib-tests.
24266
24267 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24268 (libm_alias_float128_other_r): If
24269 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24270 alias.
24271 (libm_alias_float128_r): Add semicolon after weak_alias call.
24272 * sysdeps/generic/libm-alias-ldouble.h
24273 (libm_alias_ldouble_other_r_f128): New macro.
24274 (libm_alias_ldouble_other_r_f64x): Likewise.
24275 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24276 and libm_alias_ldouble_other_r_f64x.
24277 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24278 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24279 (libm_alias_ldouble_other_r_f128): New macro.
24280 (libm_alias_ldouble_other_r_f64x): Likewise.
24281 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24282 and libm_alias_ldouble_other_r_f64x.
24283
24284 * stdlib/strfroml.c: Always include <stdlib.h>.
24285 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24286 undefine as macro and define as weak alias.
24287 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24288 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24289 <stdlib.h>.
24290 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24291 Define and later undefine as macro and define as weak alias.
24292
24293 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24294 Define and later undefine as macro. Define as weak alias if
24295 [!USE_WIDE_CHAR].
24296 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24297 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24298 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24299 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24300 Define and later undefine as macro. Define as weak alias if
24301 [!USE_WIDE_CHAR].
24302 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24303 Define and later undefine as macro. Define as weak alias if
24304 [USE_WIDE_CHAR].
24305 * sysdeps/ieee754/float128/strtof128_l.c
24306 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24307 Define and later undefine as macro. Define as weak alias if
24308 [!USE_WIDE_CHAR].
24309 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24310 Define and later undefine as macro. Define as weak alias if
24311 [USE_WIDE_CHAR].
24312 * sysdeps/ieee754/ldbl-128/strtold_l.c
24313 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24314 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24315 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24316 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24317 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24318 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24319 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24320 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24321 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24322 * sysdeps/ieee754/ldbl-96/strtold_l.c
24323 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24324 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24325 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24326 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24327
24328 * math/test-float64x.h: New file.
24329 * math/Makefile (type-float64x-yes): New variable.
24330 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24331
24332 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24333 function-like macro.
24334 (min_of_type_): Likewise.
24335 (min_of_type_l): Likewise.
24336 (min_of_type_f128): Likewise.
24337 (min_of_type): Pass () as last argument of __MATH_TG.
24338
24339 * stdlib/tst-strtod-round-skeleton.c
24340 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24341 headers.
24342
24343 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24344 for combinations of long double with _Float64 and _Float64x.
24345
24346 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24347 (__DECL_SIMD_cosf32): Likewise.
24348 (__DECL_SIMD_cosf64): Likewise.
24349 (__DECL_SIMD_cosf32x): Likewise.
24350 (__DECL_SIMD_cosf64x): Likewise.
24351 (__DECL_SIMD_cosf128x): Likewise.
24352 (__DECL_SIMD_sinf16): Likewise.
24353 (__DECL_SIMD_sinf32): Likewise.
24354 (__DECL_SIMD_sinf64): Likewise.
24355 (__DECL_SIMD_sinf32x): Likewise.
24356 (__DECL_SIMD_sinf64x): Likewise.
24357 (__DECL_SIMD_sinf128x): Likewise.
24358 (__DECL_SIMD_sincosf16): Likewise.
24359 (__DECL_SIMD_sincosf32): Likewise.
24360 (__DECL_SIMD_sincosf64): Likewise.
24361 (__DECL_SIMD_sincosf32x): Likewise.
24362 (__DECL_SIMD_sincosf64x): Likewise.
24363 (__DECL_SIMD_sincosf128x): Likewise.
24364 (__DECL_SIMD_logf16): Likewise.
24365 (__DECL_SIMD_logf32): Likewise.
24366 (__DECL_SIMD_logf64): Likewise.
24367 (__DECL_SIMD_logf32x): Likewise.
24368 (__DECL_SIMD_logf64x): Likewise.
24369 (__DECL_SIMD_logf128x): Likewise.
24370 (__DECL_SIMD_expf16): Likewise.
24371 (__DECL_SIMD_expf32): Likewise.
24372 (__DECL_SIMD_expf64): Likewise.
24373 (__DECL_SIMD_expf32x): Likewise.
24374 (__DECL_SIMD_expf64x): Likewise.
24375 (__DECL_SIMD_expf128x): Likewise.
24376 (__DECL_SIMD_powf16): Likewise.
24377 (__DECL_SIMD_powf32): Likewise.
24378 (__DECL_SIMD_powf64): Likewise.
24379 (__DECL_SIMD_powf32x): Likewise.
24380 (__DECL_SIMD_powf64x): Likewise.
24381 (__DECL_SIMD_powf128x): Likewise.
24382
24383 * stdlib/Versions (libc): Move entries for wcstof128 and
24384 wcstof128_l to ....
24385 * wcsmbs/Versions (libc): ... here.
24386 Include <float128-abi.h>.
24387
24388 2017-11-24 Florian Weimer <fweimer@redhat.com>
24389
24390 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24391 bits/mman-shared.h.
24392 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24393 <bits/mman-shared.h>.
24394 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24395 to ...
24396 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24397 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24398 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24399 <bits/mman-shared.h>.
24400
24401 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24402
24403 [BZ #22457]
24404 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24405 posix_memalign/free.
24406 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24407
24408 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24409
24410 [BZ #22469]
24411 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24412 and implement the collation rules for pl from CLDR on top of that.
24413 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24414 of locales to be built for testing.
24415 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24416
24417 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24418
24419 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24420 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24421 libm_alias_ldouble_other.
24422 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24423 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24424 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24425 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24426 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24427 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24428 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24429 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24430 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24431 libm_alias_ldouble_r.
24432 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24433 libm_alias_ldouble_other.
24434 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24435 (log10l): Likewise.
24436 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24437 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24438 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24439 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24440 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24441 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24442 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24443 (atan2l): Likewise.
24444 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24445 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24446 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24447 libm_alias_ldouble.
24448 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24449 (cosl): Likewise.
24450 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24451 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24452 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24453 (expl): Likewise.
24454 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24455 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24456 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24457 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24458 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24459 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24460 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24461 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24462 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24463 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24464 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24465 libm_alias_ldouble.
24466 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24467 libm_alias_ldouble_other.
24468 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24469 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24470 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24471 libm_alias_ldouble.
24472 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24473 libm_alias_ldouble_other.
24474 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24475 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24476 * sysdeps/ia64/fpu/w_lgammal_main.c
24477 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24478 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24479
24480 2017-11-23 Florian Weimer <fweimer@redhat.com>
24481
24482 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24483 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24484 alike. Remove freeres marker.
24485 * malloc/arena.c (arena_thread_freeres): Call
24486 tcache_thread_shutdown.
24487
24488 2017-11-23 Florian Weimer <fweimer@redhat.com>
24489
24490 [BZ #22459]
24491 Export nscd hash function as __nss_hash.
24492 * include/nss.h (__nss_hash): Declare.
24493 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24494 symbol.
24495 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24496 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24497 of __nscd_hash.
24498 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24499 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24500 * nss/Makefiles (routines): Add nss_hash.
24501 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24502 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24503 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24504 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24505
24506 2017-11-23 Florian Weimer <fweimer@redhat.com>
24507
24508 [BZ #22478]
24509 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24510 Return error code, not -1.
24511 * signal/tst-sigwait-eintr.c: New file.
24512 * signal/Makefile (tests): Add tst-sigwait-eintr.
24513
24514 2017-11-23 Florian Weimer <fweimer@redhat.com>
24515
24516 Linux: Add memfd_create system call wrapper
24517 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24518 tst-memfd_create.
24519 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24520 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24521 [__USE_GNU] (memfd_create): Declare.
24522 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24523 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24524 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24525 * sysdeps/unix/sysv/linux/**.abilist: Update.
24526 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24527
24528 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24529
24530 * localedata/gen-locale.sh: Fix typo in variable name.
24531
24532 * resolv/res_debug.c (p_secstodate): Condition definition on
24533 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24534 directly as __p_secstodate, and as a compat symbol. Do not use
24535 libresolv_hidden_def.
24536 * resolv/resolv.h (p_secstodate): Remove macro and function
24537 declaration.
24538 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24539 using p_secstodate.
24540 * include/resolv.h (__p_secstodate): Do not use
24541 libresolv_hidden_proto.
24542 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24543 (tests-internal): ... here.
24544 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24545 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24546 and declare and use __p_secstodate and use compat_symbol_reference
24547 in that case.
24548 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24549 implementation returning 77.
24550
24551 [BZ #22463]
24552 * resolv/res_debug.c: Include <libc-diag.h>.
24553 (p_secstodate): Assert time_t at least as wide as u_long. On
24554 overflow, use integer seconds since the epoch as output, or use
24555 "<overflow>" as output and set errno to EOVERFLOW if integer
24556 seconds since the epoch would be 14 or more characters.
24557 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24558 for sprintf call.
24559 * resolv/tst-p_secstodate.c: New file.
24560 * resolv/Makefile (tests): Add tst-p_secstodate.
24561 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24562
24563 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24564 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24565 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24566
24567 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24568
24569 * posix/regcomp.c (init_word_char): Add comments.
24570
24571 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24572
24573 [BZ #22447]
24574 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24575 strlen to compute length of ut_user and set trailing NUL byte of
24576 result explicitly.
24577
24578 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24579
24580 [BZ #15537]
24581 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24582 using “copy "iso14651_t1"” and then implementing the
24583 collation rules for lv from CLDR on top of that.
24584 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24585 of locales to be built for testing.
24586 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24587 sorting.
24588
24589 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24590
24591 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24592 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24593 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24594 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24595 [__USE_MISC] (MADV_HWPOISON): New macro.
24596 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24597
24598 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24599
24600 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24601 -Wmissing-braces on GCC 4.9.
24602
24603 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24604
24605 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24606 * sysdeps/s390/s390-32/start.S (_start): Likewise
24607 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24608 (thread_start): Likewise.
24609 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24610 (thread_start): Likewise.
24611 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24612 (__makecontext_ret): Likewise.
24613 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24614 (__makecontext_ret): Likewise.
24615
24616 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24617
24618 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24619 __wcschrnul): Remove attribute_hidden.
24620
24621 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24622
24623 regex: don't assume uint64_t or uint32_t
24624 This avoids -Werror=overflow errors for 32-bit systems in
24625 the 64-bit case. Problem reported by Joseph Myers in:
24626 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24627 Also, when this code is used in Gnulib it ports to platforms
24628 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24629 them, and on some 32-bit compilers there is no uint64_t.
24630 Problem reported by Gianluigi Tiesi in:
24631 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24632 * posix/regcomp.c (init_word_char): Don't assume that the types
24633 uint64_t and uint32_t exist. Adapted from Gnulib patch
24634 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24635 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24636
24637 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24638
24639 * sysdeps/aarch64/memset-reg.h: New file.
24640 * sysdeps/aarch64/memset.S: Use it.
24641 (__memset): Rename to MEMSET macro.
24642 [ZVA_MACRO]: Use zva_macro.
24643 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24644 Add memset_generic and memset_falkor.
24645 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24646 (__libc_ifunc_impl_list): Add memset ifuncs.
24647 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24648 local variable zva_size.
24649 * sysdeps/aarch64/multiarch/memset.c: New file.
24650 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24651 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24652 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24653 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24654 (DCZID_DZP_MASK): New macro.
24655 (DCZID_BS_MASK): Likewise.
24656 (init_cpu_features): Read and set zva_size.
24657 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24658 (struct cpu_features): New member zva_size.
24659
24660 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24661 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24662 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24663
24664 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24665 backwards. Fix timing computation.
24666 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24667 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24668 on memset by N at a time. Fix timing computation.
24669
24670 2017-11-20 Florian Weimer <fweimer@redhat.com>
24671
24672 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24673 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24674
24675 2017-11-19 Florian Weimer <fweimer@redhat.com>
24676
24677 manual: Document mprotect
24678 * manual/memory.texi (Memory Protection): New section.
24679 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24680 documentation of PROT_* flags and reference the Memory Protection
24681 section instead.
24682
24683 2017-11-19 Florian Weimer <fweimer@redhat.com>
24684
24685 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24686 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24687 (Scatter-Gather): ... to here. Remove misleading comment.
24688
24689 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24690
24691 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24692 style.
24693
24694 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24695 when /proc/<pid>/setgroups does not exist.
24696
24697 2017-11-18 Florian Weimer <fweimer@redhat.com>
24698
24699 * sysdeps/unix/sysv/linux/tst-ttyname.c
24700 (become_root_in_mount_ns): Remove.
24701 (do_in_chroot_1): Call support_enter_mount_namespace.
24702 (do_in_chroot_2): Likewise.
24703 (do_test): Call support_become_root early.
24704
24705 2017-11-18 Florian Weimer <fweimer@redhat.com>
24706
24707 * support/namespace.h (support_enter_mount_namespace): Declare.
24708 * support/support_enter_mount_namespace.c: New file.
24709 * support/Makefile (libsupport-routines): Add
24710 support_enter_mount_namespace.
24711
24712 2017-11-18 Florian Weimer <fweimer@redhat.com>
24713
24714 * support/temp_file.c (support_create_temp_directory): Use
24715 test_dir and do not rely on the presence of the XXXXXX suffix.
24716 * support/temp_file.h (support_create_temp_directory): Update
24717 comment.
24718 * support/tst-xreadlink.c (do_test): Adjust.
24719 * support/support_chroot.c (support_chroot_create): Likewise.
24720
24721 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24722
24723 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24724 macro.
24725 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24726 htm-no-suspend.
24727
24728 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24729
24730 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24731 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24732 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24733 (ceill): Define using libm_alias_ldouble.
24734 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24735 <libm-alias-ldouble.h>.
24736 (copysignl): Define using libm_alias_ldouble.
24737 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24738 (fabsl): Define using libm_alias_ldouble.
24739 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24740 (floorl): Define using libm_alias_ldouble.
24741 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24742 (fmaxl): Define using libm_alias_ldouble.
24743 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24744 (fminl): Define using libm_alias_ldouble.
24745 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24746 (llrintl): Define using libm_alias_ldouble.
24747 (lrintl): Likewise.
24748 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24749 <libm-alias-ldouble.h>.
24750 (nearbyintl): Define using libm_alias_ldouble.
24751 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24752 (truncl): Define using libm_alias_ldouble.
24753 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24754 <libm-alias-ldouble.h>.
24755 (lrintl): Define using libm_alias_ldouble.
24756
24757 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24758 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24759 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24760 (asinhl): Define using libm_alias_ldouble.
24761 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24762 (atanl): Define using libm_alias_ldouble.
24763 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24764 (cbrtl): Define using libm_alias_ldouble.
24765 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24766 (ceill): Define using libm_alias_ldouble.
24767 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24768 (copysignl): Define using libm_alias_ldouble.
24769 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24770 (fabsl): Define using libm_alias_ldouble.
24771 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24772 (floorl): Define using libm_alias_ldouble.
24773 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24774 (fmaxl): Define using libm_alias_ldouble.
24775 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24776 (fminl): Define using libm_alias_ldouble.
24777 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24778 (frexpl): Define using libm_alias_ldouble.
24779 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24780 (llrintl): Define using libm_alias_ldouble.
24781 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24782 (logbl): Define using libm_alias_ldouble.
24783 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24784 (lrintl): Define using libm_alias_ldouble.
24785 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24786 (nearbyintl): Define using libm_alias_ldouble.
24787 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24788 (nextafterl): Define using libm_alias_ldouble.
24789 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24790 (remquol): Define using libm_alias_ldouble.
24791 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24792 (rintl): Define using libm_alias_ldouble.
24793 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24794 (truncl): Define using libm_alias_ldouble.
24795 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24796 (fmaxl): Define using libm_alias_ldouble.
24797 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24798 (fminl): Define using libm_alias_ldouble.
24799
24800 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24801 to C syntax instead of availability and properties of types.
24802 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24803 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24804 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24805 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24806 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24807 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24808
24809 2017-11-17 Florian Weimer <fweimer@redhat.com>
24810
24811 support_become_root: Enable file creation in namespaces.
24812 * support/support_become_root.c (setup_mapping): New function.
24813 (support_become_root): Call it.
24814
24815 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24816
24817 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24818 macro.
24819
24820 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24821
24822 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24823 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24824
24825 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24826
24827 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24828
24829 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24830 version to 4.14.
24831
24832 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24833
24834 * INSTALL: Fix botched up regeneration.
24835
24836 * NEWS: Update sourceare link to https.
24837 * configure.ac: Likewise.
24838 * crypt/md5test-giant.c: Likewise.
24839 * dlfcn/bug-atexit1.c: Likewise.
24840 * dlfcn/bug-atexit2.c: Likewise.
24841 * localedata/README: Likewise.
24842 * malloc/tst-mallocfork.c: Likewise.
24843 * manual/install.texi: Likewise.
24844 * nptl/tst-pthread-getattr.c: Likewise.
24845 * stdio-common/tst-fgets.c: Likewise.
24846 * stdio-common/tst-fwrite.c: Likewise.
24847 * sunrpc/Makefile: Likewise.
24848 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24849 * wcsmbs/tst-mbrtowc2.c: Likewise.
24850 * configure: Regenerate.
24851 * INSTALL: Regenerate.
24852
24853 2017-11-15 Martin Sebor <msebor@redhat.com>
24854
24855 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24856 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24857 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24858
24859 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24860
24861 [BZ #22145]
24862 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24863 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24864
24865 [BZ #22145]
24866 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24867 Defer is_pty check until end of the function.
24868 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24869
24870 [BZ #22145]
24871 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24872 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24873 (ttyname): Likewise.
24874 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24875 (__ttyname_r): Likewise.
24876
24877 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24878 int to bool.
24879
24880 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24881
24882 * manual/terminal.texi (Is It a Terminal):
24883 Mention ENODEV for ttyname and ttyname_r.
24884
24885 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24886
24887 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24888 constant and macro.
24889
24890 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24891 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24892 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24893 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24894 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24895 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24896
24897 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24898
24899 * signal/sigrelse.c (sigrelse): Optimize implementation.
24900
24901 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24902 (__sigpause): Rely on __sigsuspend to implement single thread
24903 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24904
24905 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24906
24907 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24908 kernel version to 4.14.
24909
24910 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24911
24912 [BZ #22442]
24913 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24914 Check if ifname is too long.
24915
24916 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24917
24918 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24919
24920 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24921
24922 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24923 was accidentally lost.
24924
24925 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24926
24927 * localedata/locales/az_IR: Add standard copyright header.
24928
24929 2017-11-15 Florian Weimer <fweimer@redhat.com>
24930
24931 [BZ #22439]
24932 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24933 not just the top one. Output a new "subheaps" statistic.
24934
24935 2017-11-15 Florian Weimer <fweimer@redhat.com>
24936
24937 [BZ #22408]
24938 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24939 under the per-arena lock.
24940 * malloc/Makefile (tests): Add tst-malloc_info.
24941 (tst-malloc_info): Link with libpthread.
24942 * malloc/tst-malloc_info.c: New file.
24943
24944 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24945
24946 [BZ #21660]
24947 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24948 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24949 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24950 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24951 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24952 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24953 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24954 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24955 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24956 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24957 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24958 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24959 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24960 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24961 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24962 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24963 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24964 (__floating_type): Likewise.
24965 (__real_integer_type): Likewise.
24966 (__complex_integer_type): Likewise.
24967 (__expr_is_real): Likewise.
24968 (__tgmath_real_type_sub): Likewise.
24969 (__tgmath_real_type): Likewise.
24970 (__tgmath_complex_type_sub): Likewise.
24971 (__tgmath_complex_type): Likewise.
24972 (__TGMATH_F128): Likewise.
24973 (__TGMATH_CF128): Likewise.
24974 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24975 new macros.
24976 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24977 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24978 Likewise.
24979 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24980 Likewise.
24981 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24982 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24983 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24984 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24985 Likewise.
24986 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24987 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24988 Likewise.
24989 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24990 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24991 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24992 Likewise.
24993 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24994 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24995 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24996 (cimag): Likewise.
24997 (creal): Likewise.
24998
24999 2017-11-14 Joseph Myers <joseph@codesourcery.com>
25000
25001 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
25002 for stpncpy calls for GCC 8.
25003 (test_strncat): Disable -Wstringop-truncation warning for strncat
25004 calls for GCC 8. Disable -Wstringop-overflow= warning for one
25005 strncat call for GCC 7.
25006 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
25007 calls for GCC 8.
25008 (test_memcmp): Use memcpy instead of strncpy for calls not copying
25009 trailing NUL.
25010
25011 * string/bug-strncat1.c: Include <libc-diag.h>.
25012 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
25013
25014 2017-11-13 Claude Paroz <claude@2xlibre.net>
25015
25016 [BZ #22387]
25017 * localedata/locales/aa_DJ: Improved readibility by replacing
25018 <Uxxxx> sequences in the ASCII printable range by their ASCII
25019 character equivalents.
25020 * localedata/locales/aa_ER: Likewise.
25021 * localedata/locales/aa_ER@saaho: Likewise.
25022 * localedata/locales/aa_ET: Likewise.
25023 * localedata/locales/af_ZA: Likewise.
25024 * localedata/locales/agr_PE: Likewise.
25025 * localedata/locales/ak_GH: Likewise.
25026 * localedata/locales/am_ET: Likewise.
25027 * localedata/locales/anp_IN: Likewise.
25028 * localedata/locales/ar_AE: Likewise.
25029 * localedata/locales/ar_BH: Likewise.
25030 * localedata/locales/ar_DZ: Likewise.
25031 * localedata/locales/ar_EG: Likewise.
25032 * localedata/locales/ar_IN: Likewise.
25033 * localedata/locales/ar_IQ: Likewise.
25034 * localedata/locales/ar_JO: Likewise.
25035 * localedata/locales/ar_KW: Likewise.
25036 * localedata/locales/ar_LB: Likewise.
25037 * localedata/locales/ar_LY: Likewise.
25038 * localedata/locales/ar_MA: Likewise.
25039 * localedata/locales/ar_OM: Likewise.
25040 * localedata/locales/ar_QA: Likewise.
25041 * localedata/locales/ar_SA: Likewise.
25042 * localedata/locales/ar_SD: Likewise.
25043 * localedata/locales/ar_SS: Likewise.
25044 * localedata/locales/ar_SY: Likewise.
25045 * localedata/locales/ar_TN: Likewise.
25046 * localedata/locales/ar_YE: Likewise.
25047 * localedata/locales/as_IN: Likewise.
25048 * localedata/locales/ast_ES: Likewise.
25049 * localedata/locales/ayc_PE: Likewise.
25050 * localedata/locales/az_AZ: Likewise.
25051 * localedata/locales/az_IR: Likewise.
25052 * localedata/locales/be_BY: Likewise.
25053 * localedata/locales/be_BY@latin: Likewise.
25054 * localedata/locales/bem_ZM: Likewise.
25055 * localedata/locales/ber_DZ: Likewise.
25056 * localedata/locales/ber_MA: Likewise.
25057 * localedata/locales/bg_BG: Likewise.
25058 * localedata/locales/bhb_IN: Likewise.
25059 * localedata/locales/bho_IN: Likewise.
25060 * localedata/locales/bi_VU: Likewise.
25061 * localedata/locales/bn_BD: Likewise.
25062 * localedata/locales/bn_IN: Likewise.
25063 * localedata/locales/bo_CN: Likewise.
25064 * localedata/locales/bo_IN: Likewise.
25065 * localedata/locales/br_FR: Likewise.
25066 * localedata/locales/brx_IN: Likewise.
25067 * localedata/locales/bs_BA: Likewise.
25068 * localedata/locales/byn_ER: Likewise.
25069 * localedata/locales/ca_AD: Likewise.
25070 * localedata/locales/ca_ES: Likewise.
25071 * localedata/locales/ca_FR: Likewise.
25072 * localedata/locales/ca_IT: Likewise.
25073 * localedata/locales/ce_RU: Likewise.
25074 * localedata/locales/chr_US: Likewise.
25075 * localedata/locales/cmn_TW: Likewise.
25076 * localedata/locales/crh_UA: Likewise.
25077 * localedata/locales/cs_CZ: Likewise.
25078 * localedata/locales/csb_PL: Likewise.
25079 * localedata/locales/cv_RU: Likewise.
25080 * localedata/locales/cy_GB: Likewise.
25081 * localedata/locales/da_DK: Likewise.
25082 * localedata/locales/de_AT: Likewise.
25083 * localedata/locales/de_BE: Likewise.
25084 * localedata/locales/de_CH: Likewise.
25085 * localedata/locales/de_DE: Likewise.
25086 * localedata/locales/de_IT: Likewise.
25087 * localedata/locales/de_LI: Likewise.
25088 * localedata/locales/de_LU: Likewise.
25089 * localedata/locales/doi_IN: Likewise.
25090 * localedata/locales/dv_MV: Likewise.
25091 * localedata/locales/dz_BT: Likewise.
25092 * localedata/locales/el_CY: Likewise.
25093 * localedata/locales/el_GR: Likewise.
25094 * localedata/locales/en_AG: Likewise.
25095 * localedata/locales/en_AU: Likewise.
25096 * localedata/locales/en_BW: Likewise.
25097 * localedata/locales/en_CA: Likewise.
25098 * localedata/locales/en_DK: Likewise.
25099 * localedata/locales/en_GB: Likewise.
25100 * localedata/locales/en_HK: Likewise.
25101 * localedata/locales/en_IE: Likewise.
25102 * localedata/locales/en_IL: Likewise.
25103 * localedata/locales/en_IN: Likewise.
25104 * localedata/locales/en_NG: Likewise.
25105 * localedata/locales/en_NZ: Likewise.
25106 * localedata/locales/en_PH: Likewise.
25107 * localedata/locales/en_SG: Likewise.
25108 * localedata/locales/en_US: Likewise.
25109 * localedata/locales/en_ZA: Likewise.
25110 * localedata/locales/en_ZM: Likewise.
25111 * localedata/locales/en_ZW: Likewise.
25112 * localedata/locales/eo: Likewise.
25113 * localedata/locales/es_AR: Likewise.
25114 * localedata/locales/es_BO: Likewise.
25115 * localedata/locales/es_CL: Likewise.
25116 * localedata/locales/es_CO: Likewise.
25117 * localedata/locales/es_CR: Likewise.
25118 * localedata/locales/es_CU: Likewise.
25119 * localedata/locales/es_DO: Likewise.
25120 * localedata/locales/es_EC: Likewise.
25121 * localedata/locales/es_ES: Likewise.
25122 * localedata/locales/es_GT: Likewise.
25123 * localedata/locales/es_HN: Likewise.
25124 * localedata/locales/es_MX: Likewise.
25125 * localedata/locales/es_NI: Likewise.
25126 * localedata/locales/es_PA: Likewise.
25127 * localedata/locales/es_PE: Likewise.
25128 * localedata/locales/es_PR: Likewise.
25129 * localedata/locales/es_PY: Likewise.
25130 * localedata/locales/es_SV: Likewise.
25131 * localedata/locales/es_US: Likewise.
25132 * localedata/locales/es_UY: Likewise.
25133 * localedata/locales/es_VE: Likewise.
25134 * localedata/locales/et_EE: Likewise.
25135 * localedata/locales/eu_ES: Likewise.
25136 * localedata/locales/eu_ES@euro: Likewise.
25137 * localedata/locales/fa_IR: Likewise.
25138 * localedata/locales/ff_SN: Likewise.
25139 * localedata/locales/fi_FI: Likewise.
25140 * localedata/locales/fil_PH: Likewise.
25141 * localedata/locales/fo_FO: Likewise.
25142 * localedata/locales/fr_BE: Likewise.
25143 * localedata/locales/fr_CA: Likewise.
25144 * localedata/locales/fr_CH: Likewise.
25145 * localedata/locales/fr_FR: Likewise.
25146 * localedata/locales/fr_LU: Likewise.
25147 * localedata/locales/fur_IT: Likewise.
25148 * localedata/locales/fy_DE: Likewise.
25149 * localedata/locales/fy_NL: Likewise.
25150 * localedata/locales/ga_IE: Likewise.
25151 * localedata/locales/gd_GB: Likewise.
25152 * localedata/locales/gez_ER: Likewise.
25153 * localedata/locales/gez_ET: Likewise.
25154 * localedata/locales/gl_ES: Likewise.
25155 * localedata/locales/gu_IN: Likewise.
25156 * localedata/locales/gv_GB: Likewise.
25157 * localedata/locales/ha_NG: Likewise.
25158 * localedata/locales/hak_TW: Likewise.
25159 * localedata/locales/he_IL: Likewise.
25160 * localedata/locales/hi_IN: Likewise.
25161 * localedata/locales/hif_FJ: Likewise.
25162 * localedata/locales/hne_IN: Likewise.
25163 * localedata/locales/hr_HR: Likewise.
25164 * localedata/locales/hsb_DE: Likewise.
25165 * localedata/locales/ht_HT: Likewise.
25166 * localedata/locales/hu_HU: Likewise.
25167 * localedata/locales/hy_AM: Likewise.
25168 * localedata/locales/i18n: Likewise.
25169 * localedata/locales/ia_FR: Likewise.
25170 * localedata/locales/id_ID: Likewise.
25171 * localedata/locales/ig_NG: Likewise.
25172 * localedata/locales/ik_CA: Likewise.
25173 * localedata/locales/is_IS: Likewise.
25174 * localedata/locales/it_CH: Likewise.
25175 * localedata/locales/it_IT: Likewise.
25176 * localedata/locales/iu_CA: Likewise.
25177 * localedata/locales/ja_JP: Likewise.
25178 * localedata/locales/ka_GE: Likewise.
25179 * localedata/locales/kk_KZ: Likewise.
25180 * localedata/locales/kl_GL: Likewise.
25181 * localedata/locales/kn_IN: Likewise.
25182 * localedata/locales/ko_KR: Likewise.
25183 * localedata/locales/kok_IN: Likewise.
25184 * localedata/locales/ks_IN: Likewise.
25185 * localedata/locales/ks_IN@devanagari: Likewise.
25186 * localedata/locales/ku_TR: Likewise.
25187 * localedata/locales/kw_GB: Likewise.
25188 * localedata/locales/ky_KG: Likewise.
25189 * localedata/locales/lb_LU: Likewise.
25190 * localedata/locales/lg_UG: Likewise.
25191 * localedata/locales/li_BE: Likewise.
25192 * localedata/locales/li_NL: Likewise.
25193 * localedata/locales/lij_IT: Likewise.
25194 * localedata/locales/ln_CD: Likewise.
25195 * localedata/locales/lo_LA: Likewise.
25196 * localedata/locales/lt_LT: Likewise.
25197 * localedata/locales/lv_LV: Likewise.
25198 * localedata/locales/lzh_TW: Likewise.
25199 * localedata/locales/mag_IN: Likewise.
25200 * localedata/locales/mai_IN: Likewise.
25201 * localedata/locales/mg_MG: Likewise.
25202 * localedata/locales/mhr_RU: Likewise.
25203 * localedata/locales/mi_NZ: Likewise.
25204 * localedata/locales/mk_MK: Likewise.
25205 * localedata/locales/ml_IN: Likewise.
25206 * localedata/locales/mn_MN: Likewise.
25207 * localedata/locales/mni_IN: Likewise.
25208 * localedata/locales/mr_IN: Likewise.
25209 * localedata/locales/ms_MY: Likewise.
25210 * localedata/locales/mt_MT: Likewise.
25211 * localedata/locales/my_MM: Likewise.
25212 * localedata/locales/nan_TW: Likewise.
25213 * localedata/locales/nan_TW@latin: Likewise.
25214 * localedata/locales/nb_NO: Likewise.
25215 * localedata/locales/nds_DE: Likewise.
25216 * localedata/locales/nds_NL: Likewise.
25217 * localedata/locales/ne_NP: Likewise.
25218 * localedata/locales/nhn_MX: Likewise.
25219 * localedata/locales/niu_NU: Likewise.
25220 * localedata/locales/niu_NZ: Likewise.
25221 * localedata/locales/nl_AW: Likewise.
25222 * localedata/locales/nl_BE: Likewise.
25223 * localedata/locales/nl_NL: Likewise.
25224 * localedata/locales/nn_NO: Likewise.
25225 * localedata/locales/nr_ZA: Likewise.
25226 * localedata/locales/nso_ZA: Likewise.
25227 * localedata/locales/oc_FR: Likewise.
25228 * localedata/locales/om_ET: Likewise.
25229 * localedata/locales/om_KE: Likewise.
25230 * localedata/locales/or_IN: Likewise.
25231 * localedata/locales/os_RU: Likewise.
25232 * localedata/locales/pa_IN: Likewise.
25233 * localedata/locales/pa_PK: Likewise.
25234 * localedata/locales/pap_AW: Likewise.
25235 * localedata/locales/pap_CW: Likewise.
25236 * localedata/locales/pl_PL: Likewise.
25237 * localedata/locales/ps_AF: Likewise.
25238 * localedata/locales/pt_BR: Likewise.
25239 * localedata/locales/pt_PT: Likewise.
25240 * localedata/locales/quz_PE: Likewise.
25241 * localedata/locales/raj_IN: Likewise.
25242 * localedata/locales/ro_RO: Likewise.
25243 * localedata/locales/ru_RU: Likewise.
25244 * localedata/locales/ru_UA: Likewise.
25245 * localedata/locales/rw_RW: Likewise.
25246 * localedata/locales/sa_IN: Likewise.
25247 * localedata/locales/sat_IN: Likewise.
25248 * localedata/locales/sc_IT: Likewise.
25249 * localedata/locales/sd_IN: Likewise.
25250 * localedata/locales/sd_IN@devanagari: Likewise.
25251 * localedata/locales/se_NO: Likewise.
25252 * localedata/locales/sgs_LT: Likewise.
25253 * localedata/locales/shs_CA: Likewise.
25254 * localedata/locales/si_LK: Likewise.
25255 * localedata/locales/sid_ET: Likewise.
25256 * localedata/locales/sk_SK: Likewise.
25257 * localedata/locales/sl_SI: Likewise.
25258 * localedata/locales/sm_WS: Likewise.
25259 * localedata/locales/so_DJ: Likewise.
25260 * localedata/locales/so_ET: Likewise.
25261 * localedata/locales/so_KE: Likewise.
25262 * localedata/locales/so_SO: Likewise.
25263 * localedata/locales/sq_AL: Likewise.
25264 * localedata/locales/sq_MK: Likewise.
25265 * localedata/locales/sr_ME: Likewise.
25266 * localedata/locales/sr_RS: Likewise.
25267 * localedata/locales/sr_RS@latin: Likewise.
25268 * localedata/locales/ss_ZA: Likewise.
25269 * localedata/locales/st_ZA: Likewise.
25270 * localedata/locales/sv_FI: Likewise.
25271 * localedata/locales/sv_SE: Likewise.
25272 * localedata/locales/sw_KE: Likewise.
25273 * localedata/locales/sw_TZ: Likewise.
25274 * localedata/locales/szl_PL: Likewise.
25275 * localedata/locales/ta_IN: Likewise.
25276 * localedata/locales/ta_LK: Likewise.
25277 * localedata/locales/tcy_IN: Likewise.
25278 * localedata/locales/te_IN: Likewise.
25279 * localedata/locales/tg_TJ: Likewise.
25280 * localedata/locales/th_TH: Likewise.
25281 * localedata/locales/the_NP: Likewise.
25282 * localedata/locales/ti_ER: Likewise.
25283 * localedata/locales/ti_ET: Likewise.
25284 * localedata/locales/tig_ER: Likewise.
25285 * localedata/locales/tk_TM: Likewise.
25286 * localedata/locales/tl_PH: Likewise.
25287 * localedata/locales/tn_ZA: Likewise.
25288 * localedata/locales/to_TO: Likewise.
25289 * localedata/locales/tpi_PG: Likewise.
25290 * localedata/locales/tr_CY: Likewise.
25291 * localedata/locales/tr_TR: Likewise.
25292 * localedata/locales/ts_ZA: Likewise.
25293 * localedata/locales/tt_RU: Likewise.
25294 * localedata/locales/tt_RU@iqtelif: Likewise.
25295 * localedata/locales/ug_CN: Likewise.
25296 * localedata/locales/uk_UA: Likewise.
25297 * localedata/locales/unm_US: Likewise.
25298 * localedata/locales/ur_IN: Likewise.
25299 * localedata/locales/ur_PK: Likewise.
25300 * localedata/locales/uz_UZ: Likewise.
25301 * localedata/locales/uz_UZ@cyrillic: Likewise.
25302 * localedata/locales/ve_ZA: Likewise.
25303 * localedata/locales/vi_VN: Likewise.
25304 * localedata/locales/wa_BE: Likewise.
25305 * localedata/locales/wae_CH: Likewise.
25306 * localedata/locales/wal_ET: Likewise.
25307 * localedata/locales/wo_SN: Likewise.
25308 * localedata/locales/xh_ZA: Likewise.
25309 * localedata/locales/yi_US: Likewise.
25310 * localedata/locales/yo_NG: Likewise.
25311 * localedata/locales/yue_HK: Likewise.
25312 * localedata/locales/yuw_PG: Likewise.
25313 * localedata/locales/zh_CN: Likewise.
25314 * localedata/locales/zh_HK: Likewise.
25315 * localedata/locales/zh_SG: Likewise.
25316 * localedata/locales/zh_TW: Likewise.
25317 * localedata/locales/zu_ZA: Likewise.
25318
25319 2017-11-13 Florian Weimer <fweimer@redhat.com>
25320
25321 * support/next_to_fault.h, support/next_to_fault.c: New files.
25322 * support/Makefile (libsupport-routines): Add next_to_fault.
25323 * resolv/tst-inet_pton.c (struct next_to_fault)
25324 (next_to_fault_allocate, next_to_fault_free): Remove.
25325 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25326
25327 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25328
25329 * elf/dl-support.c: Include <dl-procruntime.c>.
25330 * include/link.h: Include <link_map.h>.
25331 * sysdeps/generic/dl-procruntime.c: New file.
25332 * sysdeps/generic/link_map.h: Likewise.
25333 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25334 the writable ld.so namespace.
25335
25336 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25337
25338 timezone: pacify GCC -Wstringop-truncation
25339 Problem reported by Martin Sebor in:
25340 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25341 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25342
25343 2017-11-12 Florian Weimer <fweimer@redhat.com>
25344
25345 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25346 tst-xreadlink.
25347 (tests): Add tst-xreadlink.
25348 * support/support.h (xstrndup): Declare.
25349 * support/xunistd.h (xunlink, xreadlink): Declare.
25350 * support/temp_file.h (support_create_temp_directory): Declare.
25351 * support/temp_file.c (support_create_temp_directory): New function.
25352 * support/support_chroot.c (support_chroot_create): Use it.
25353 * support/xreadlink.c: New file.
25354 * support/xstrndup.c: Likewise.
25355 * support/xunlink.c: Likewise.
25356 * support/tst-xreadlink.c: Likewise.
25357
25358 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25359
25360 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25361
25362 2017-11-11 Florian Weimer <fweimer@redhat.com>
25363
25364 [BZ #22409]
25365 [BZ #22412]
25366 * resolv/res_comp.c (printable_string, binary_hnok)
25367 (binary_leading_dash): New functions.
25368 (res_hnok): Reimplement using these functions and ns_name_pton.
25369 (res_ownok): Likewise.
25370 (res_mailok): Reimplement using printable_string, ns_name_pton and
25371 binary_hnok.
25372 (res_dnok): Reimplement using printable_string and ns_name_pton.
25373 * resolv/tst-res_hnok.c (tests): Add additional tests.
25374 (LETTERDIGITS, PRINTABLE): Define.
25375 (do_test): Adjust one_char results.
25376
25377 2017-11-11 Florian Weimer <fweimer@redhat.com>
25378
25379 [BZ #22413]
25380 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25381 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25382
25383 2017-11-11 Florian Weimer <fweimer@redhat.com>
25384
25385 * resolv/tst-ns_name_pton.c: New file.
25386 * resolv/Makefile (tests): Add tst-ns_name_pton.
25387 (tst-ns_name_pton): Link against libresolv.
25388
25389 2017-11-11 Florian Weimer <fweimer@redhat.com>
25390
25391 * resolv/tst-res_hnok.c: New file.
25392 * resolv/Makefile (tests): Add tst-res_hnok.
25393 (tst-res_hnok): Link against libresolv.
25394
25395 2017-11-11 Florian Weimer <fweimer@redhat.com>
25396
25397 * resolv/tst-resolv-network.c: Use test framework instead explicit
25398 main function.
25399
25400 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25401
25402 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25403 <jmp_buf-macros.h>.
25404 [!_ISOMAC] (STR_HELPER): New.
25405 [!_ISOMAC] (STR): Likewise.
25406 [!_ISOMAC] (TEST_SIZE): Likewise.
25407 [!_ISOMAC] (TEST_ALIGN): Likewise.
25408 [!_ISOMAC] (TEST_OFFSET): Likewise.
25409 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25410 field offsets of jmp_buf as well as sigjmp_buf.
25411 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25412 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25413 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25414 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25415 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25416 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25417 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25418 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25419 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25420 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25421 Likewise.
25422 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25423 Likewise.
25424 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25425 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25426 Likewise.
25427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25428 Likewise.
25429 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25430 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25431 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25432 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25433 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25434 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25435 Likewise.
25436 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25437 Likewise.
25438 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25439 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25440 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25441
25442 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25443
25444 * include/float.h
25445 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25446 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25447 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25448 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25449 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25450 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25451 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25452 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25453 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25454 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25455 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25456 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25457 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25458 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25459 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25460 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25461 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25462 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25463 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25464 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25465 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25466 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25467 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25468 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25469 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25470 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25471 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25472 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25473 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25474 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25475 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25476 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25477 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25478 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25479 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25480 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25481 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25482 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25483 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25484 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25485 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25486 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25487 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25488 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25489 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25490 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25491 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25492 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25493 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25494 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25495 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25496 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25497 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25498 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25499 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25500 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25501 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25502 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25503 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25504 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25505 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25506 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25507 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25508 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25509 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25510 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25511 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25512 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25513 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25514 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25515 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25516 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25517 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25518 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25519 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25520 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25521 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25522 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25523 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25524 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25525 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25526 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25527 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25528 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25529 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25530 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25531 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25532 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25533
25534 * stdlib/tst-strtod.h (F16): New macro.
25535 (F32): Likewise.
25536 (F64): Likewise.
25537 (F32X): Likewise.
25538 (F64X): Likewise.
25539 (F128X): Likewise.
25540 (IF_FLOAT16): Likewise.
25541 (IF_FLOAT32): Likewise.
25542 (IF_FLOAT64): Likewise.
25543 (IF_FLOAT32X): Likewise.
25544 (IF_FLOAT64X): Likewise.
25545 (IF_FLOAT128X): Likewise.
25546 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25547 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25548 (STRTOD_TEST_FOREACH): Likewise.
25549 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25550 (CHOOSE_f64): Likewise.
25551 (CHOOSE_f32x): Likewise.
25552 (CHOOSE_f64x): Likewise.
25553
25554 2017-11-07 Andreas Schwab <schwab@suse.de>
25555
25556 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25557
25558 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25559
25560 [BZ #22403]
25561 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25562 to be escaped.
25563 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25564 to be escaped.
25565
25566 2017-11-07 Claude Paroz <claude@2xlibre.net>
25567
25568 [BZ #22403]
25569 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25570 to be escaped.
25571 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25572 to be escaped.
25573 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25574 to be escaped.
25575
25576 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25577
25578 [BZ #22298]
25579 * nptl/allocatestack.c (allocate_stack): Check if
25580 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25581 __PTHREAD_MUTEX_HAVE_PREV is defined.
25582 * nptl/descr.h (pthread): Likewise.
25583 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25584 Likewise.
25585 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25586 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25587 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25588 * sysdeps/nptl/bits/thread-shared-types.h
25589 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25590 defines.
25591 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25592 of __WORDSIZE for internal layout.
25593 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25594 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25595 instead of __WORDSIZE whether to use an union for __spins and __list
25596 fields.
25597 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25598 case.
25599 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25600 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25601 defines.
25602 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25603 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25604 Likewise.
25605 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25606 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25607 Likewise.
25608 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25609 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25610 Likewise.
25611 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25612 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25613 Likewise.
25614 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25615 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25616 Likewise.
25617 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25618 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25619 Likewise.
25620 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25621 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25622 Likewise.
25623 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25624 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25625 Likewise.
25626 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25627 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25628 Likewise.
25629 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25630 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25631 Likewise.
25632 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25633 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25634 Likewise.
25635 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25636 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25637 Likewise.
25638 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25639 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25640 Likewise.
25641 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25642 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25643 Likewise.
25644
25645 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25646 New macros.
25647 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25648 checks for expected input type size.
25649 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25650 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25651 Likewise.
25652 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25653 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25654 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25655 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25656 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25657 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25658 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25659 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25660 superflous runtime assert check.
25661 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25662 Likewise.
25663 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25664 Likewise.
25665 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25666 Likewise.
25667 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25668 Likewise.
25669 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25670 Likewise.
25671 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25672 Likewise.
25673 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25674 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25675 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25676 Likewise.
25677 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25678 Likewise.
25679 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25680 Likewise.
25681 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25682 Likewise.
25683 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25684 Likewise.
25685 * nptl/pthread_attr_setinheritsched.c
25686 (__pthread_attr_setinheritsched): Likewise.
25687 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25688 Likewise.
25689 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25690 Likewise.
25691 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25692 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25693 __old_pthread_attr_setstack): Likewise.
25694 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25695 Likewise.
25696 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25697 Likewise.
25698 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25699 Likewise.
25700 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25701 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25702 Likewise.
25703 * nptl/tst-typesizes.c: Remove file.
25704
25705 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25706 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25707 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25708 checks for internal pthread_mutex_t offsets.
25709 * sysdeps/aarch64/nptl/pthread-offsets.h
25710 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25711 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25712 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25713 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25714 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25715 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25716 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25717 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25718 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25719 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25720 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25721 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25722 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25723 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25724 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25725 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25726 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25727 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25728
25729 2017-11-07 Florian Weimer <fweimer@redhat.com>
25730
25731 * bits/mman-linux.h: Move ...
25732 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25733 comment.
25734 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25735 outdated comment.
25736
25737 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25738
25739 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25740 Redefine STRNLEN as __strnlen_power8.
25741
25742 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25743
25744 * signal/sighold.c (sighold): Optimize implementation.
25745
25746 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25747 __NR_rt_sigqueueinfo.
25748
25749 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25750 __sigtimedwait.
25751 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25752 assume __NR_rt_sigtimedwait.
25753 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25754 and add LIBC_CANCEL_HANDLED for cancellation marking.
25755 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25756
25757 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25758 (sysdeps_routines): Add memchr_noneon.
25759 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25760 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25761 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25762 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25763 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25764 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25765 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25766
25767 * sysdeps/arm/arm-ifunc.h: New file.
25768 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25769 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25770 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25771 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25772 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25773 (__memcpy_neon): Avoid create hidden alias.
25774 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25775 (__memcpy_vfp): Likewise.
25776 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25777 (sysdep_routines): Add memcpy_arm.
25778 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25779
25780 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25781
25782 [BZ #22362]
25783 * Makerules (make-link-multidir): New.
25784 * config.make.in (multidir): New.
25785 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25786 * configure: Regenerated.
25787 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25788 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25789 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25790 New target.
25791
25792 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25793
25794 [BZ #22402]
25795 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25796 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25797
25798 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25799
25800 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25801 to be escaped.
25802
25803 2017-11-04 Florian Weimer <fweimer@redhat.com>
25804
25805 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25806
25807 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25808
25809 * math/math.h [__HAVE_DISTINCT_FLOAT16
25810 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25811 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25812 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25813 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25814 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25815 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25816 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25817 (__MATH_TG_F32): New macro.
25818 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25819 (__MATH_TG_F64X): Likewise.
25820 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25821 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25822
25823 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25824
25825 * po/de.po: Update translations.
25826 * po/ru.po: Likewise.
25827
25828 2017-11-03 Florian Weimer <fweimer@redhat.com>
25829
25830 * manual/filesys.texi (Hard Links): Document linkat.
25831
25832 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25833
25834 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25835 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25836 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25837 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25838 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25839 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25840 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25841 the same as _Float128.
25842 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25843 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25844 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25845
25846 * stdlib/stdlib.h
25847 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25848 Declare.
25849 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25850 Likewise.
25851 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25852 Likewise.
25853 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25854 (strtof32x): Likewise.
25855 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25856 (strtof64x): Likewise.
25857 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25858 (strtof128x): Likewise.
25859 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25860 (strfromf16): Likewise.
25861 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25862 (strfromf32): Likewise.
25863 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25864 (strfromf64): Likewise.
25865 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25866 (strfromf32x): Likewise.
25867 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25868 (strfromf64x): Likewise.
25869 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25870 (strfromf128x): Likewise.
25871 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25872 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25873 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25874 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25875 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25876 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25877
25878 2017-11-03 Richard Henderson <rth@twiddle.net>
25879
25880 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25881
25882 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25883
25884 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25885
25886 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25887
25888 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25889 DT_TLSDESC_GOT initialization.
25890 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25891 (_dl_tlsdesc_resolve_hold): Likewise.
25892 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25893 (_dl_tlsdesc_resolve_hold): Likewise.
25894 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25895 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25896
25897 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25898
25899 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25900
25901 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25902
25903 [BZ #18572]
25904 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25905 non-lazily for R_ARM_TLS_DESC.
25906
25907 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25908
25909 [BZ #17078]
25910 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25911 R_ARM_TLS_DESC case.
25912 (elf_machine_lazy_rel): Remove the prelink check.
25913
25914 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25915
25916 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25917 DT_TLSDESC_GOT initialization.
25918 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25919 (_dl_tlsdesc_resolve_rela): Likewise.
25920 (_dl_tlsdesc_resolve_hold): Likewise.
25921 (_dl_tlsdesc_undefweak): Remove ldar.
25922 (_dl_tlsdesc_dynamic): Likewise.
25923 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25924 (_dl_tlsdesc_resolve_rela): Likewise.
25925 (_dl_tlsdesc_resolve_hold): Likewise.
25926 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25927 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25928 (_dl_tlsdesc_resolve_rela): Likewise.
25929 (_dl_tlsdesc_resolve_hold): Likewise.
25930
25931 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25932
25933 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25934 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25935
25936 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25937
25938 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25939 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25940
25941 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25942
25943 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25944 Declare.
25945 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25946 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25947 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25948 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25949 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25950 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25951 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25952 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25953 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25954 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25955 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25956
25957 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25958
25959 [BZ #22382]
25960 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25961 * localedata/locales/tpi_PG: Add standard header.
25962
25963 2017-11-02 Florian Weimer <fweimer@redhat.com>
25964
25965 test-errno-linux: quotactl can fail with EPERM in containers.
25966 * sysdeps/unix/sysv/linux/test-errno-linux.c
25967 (LIST, LIST_FORWARD): New macros.
25968 (check_error_in_list): New function.
25969 (test_wrp_rv): Accept list of permitted error codes.
25970 (test_wrp_rv2): Remove.
25971 (test_wrp): Call test_wrp_rv with list of error codes.
25972 (test_wrp2): Accept list of error codes.
25973 (do_test): Adjust. Allow EPERM for quotactl.
25974
25975 2017-11-02 Florian Weimer <fweimer@redhat.com>
25976
25977 * stdio-common/bug16.c (do_test): Use array_length.
25978 * stdio-common/errlist.c (_sys_nerr): Likewise.
25979 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25980 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25981 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25982 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25983 (do_test): Use array_length.
25984 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25985 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25986 * stdio-common/tst-printf-round.c (do_test): Likewise.
25987 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25988 (CHECK): Use array_length.
25989 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25990 * stdio-common/tstscanf.c (main): Likewise.
25991 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25992
25993 2017-11-02 Florian Weimer <fweimer@redhat.com>
25994
25995 Add array_length and array_end macros.
25996 * include/array_length.h: New file.
25997
25998 2017-11-02 Florian Weimer <fweimer@redhat.com>
25999
26000 [BZ #22332]
26001 * posix/tst-glob-tilde.c (do_noescape): New variable.
26002 (one_test): Process it.
26003 (do_test): Set do_noescape. Add unescaping test case.
26004
26005 2017-11-01 Joseph Myers <joseph@codesourcery.com>
26006
26007 * math/complex.h
26008 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
26009 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
26010 with appropriate macros defined and undefined.
26011 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
26012 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26013 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
26014 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26015 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
26016 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26017 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
26018 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26019 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
26020 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
26021
26022 * math/complex.h
26023 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
26024 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
26025 that for long double. Do not condition define and undefine of
26026 _Mdouble_complex_ on [__CFLOAT128].
26027
26028 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
26029
26030 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26031 of <sysdeps/generic/sysdep.h>.
26032 (ALIGNARG): Removed.
26033 (ASM_SIZE_DIRECTIVE): Likewise.
26034 (ENTRY): Likewise.
26035 (END): Likewise.
26036 (ENTRY_CHK): Likewise.
26037 (END_CHK): Likewise.
26038 (syscall_error): Likewise.
26039 (mcount): Likewise.
26040 (PSEUDO_END): Likewise.
26041 (L): Likewise.
26042 (atom_text_section): Likewise.
26043 * sysdeps/x86/sysdep.h: New file.
26044 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
26045 of <sysdeps/generic/sysdep.h>.
26046 (ALIGNARG): Removed.
26047 (ASM_SIZE_DIRECTIVE): Likewise.
26048 (ENTRY): Likewise.
26049 (END): Likewise.
26050 (ENTRY_CHK): Likewise.
26051 (END_CHK): Likewise.
26052 (syscall_error): Likewise.
26053 (mcount): Likewise.
26054 (PSEUDO_END): Likewise.
26055 (L): Likewise.
26056 (atom_text_section): Likewise.
26057
26058 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
26059
26060 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
26061 category of LC_CTYPE set to "i18n:2012".
26062 * localedata/locales/i18n_ctype: Regenerate.
26063
26064 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
26065
26066 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
26067 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
26068 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
26069 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
26070
26071 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
26072 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
26073 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
26074 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
26075
26076 2017-10-31 Joseph Myers <joseph@codesourcery.com>
26077
26078 * math/complex.h
26079 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
26080 New macro.
26081 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26082 Likewise.
26083 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26084 Likewise.
26085 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26086 (CMPLXF32X): Likewise.
26087 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26088 (CMPLXF64X): Likewise.
26089 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26090 (CMPLXF128X): Likewise.
26091
26092 * math/math.h
26093 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26094 (__MATH_EVAL_FMT2): Define to add 0.0f.
26095
26096 2017-10-31 Alan Modra <amodra@gmail.com>
26097
26098 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26099 include sysdep.h.
26100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26114 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26115 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26116 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26117 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26118 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26119 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26120 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26121 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26122 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26123 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26124 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26125 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26126 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26127 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26128 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26129 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26130 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26131 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26132 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26133 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26134 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26135 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26136 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26137 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26138 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26139 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26140 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26141 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26142 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26143 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26144 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26145 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26146 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26147 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26148 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26149 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26150 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26151 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26152 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26153 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26154 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26155 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26156 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26157 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26158 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26159 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26160 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26161 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26162 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26163 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26164 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26165 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26166 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26167 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26168 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26169
26170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26171 include sysdep.h and math_ldbl_opt.h.
26172
26173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26174 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
26175 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26180 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26184 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26186 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26187 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26188 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26190 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26191 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26192 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26194 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26199
26200 2017-10-31 Alan Modra <amodra@gmail.com>
26201
26202 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26203 string/strncase_l.c, not string/strncase.c.
26204 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26205 (libc_hidden_def): Redefine.
26206
26207 2017-10-31 Alan Modra <amodra@gmail.com>
26208
26209 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26210 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26211 (__strcasecmp): Don't define.
26212
26213 2017-10-31 Alan Modra <amodra@gmail.com>
26214
26215 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26216 IS_IN (libc).
26217 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26218 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26219 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26220
26221 2017-10-31 Alan Modra <amodra@gmail.com>
26222
26223 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26224 USE_AS_STPNCPY.
26225
26226 2017-10-31 Alan Modra <amodra@gmail.com>
26227
26228 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26229 Redefine only when SHARED.
26230
26231 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26232
26233 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26234 Include <bits/math-finite.h> with appropriate macros defined and
26235 undefined.
26236 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26237 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26238 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26239 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26240 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26241
26242 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26243 [!_Mlong_double_] (_Mlong_double_): Likewise.
26244 [!_Mfloat16_] (_Mfloat16_): Likewise.
26245 [!_Mfloat32_] (_Mfloat32_): Likewise.
26246 [!_Mfloat64_] (_Mfloat64_): Likewise.
26247 [!_Mfloat128_] (_Mfloat128_): Likewise.
26248 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26249 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26250 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26251 (_Mdouble_): Define without indirection through those macros.
26252 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26253 [!_Mfloat128_] (_Mfloat128_): Likewise.
26254 [_Mlong_double_] (_Mlong_double_): Likewise.
26255 (_Mdouble_): Define without indirection through those macros.
26256 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26257 not add -D_Mlong_double_=double.
26258 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26259 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26260
26261 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26262
26263 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26264
26265 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26266
26267 * sysdeps/x86/libc-start.c: Reformat.
26268
26269 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26270
26271 [BZ #22353]
26272 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26273 (1): Renamed to ...
26274 (L(Src0)): This.
26275 (L(Src1)): New.
26276 (L(Src2)): Likewise.
26277 (L(1)): Renamed to ...
26278 (L(Src3)): This.
26279
26280 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26281
26282 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26283 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26284 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26285 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26286 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26287 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26288 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26289 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26290 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26291 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26292 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26293 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26294 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26295 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26296 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26297 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26298 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26299 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26300 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26301 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26302 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26303 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26304 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26305 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26306 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26307 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26308 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26309 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26310 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26311 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26312 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26313 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26314 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26315 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26316 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26317 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26318 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26319 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26320 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26321 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26322 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26323 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26324 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26325 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26326 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26327 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26328 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26329 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26330 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26331 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26332 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26333 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26334 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26335 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26336 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26337 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26338 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26339 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26340 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26341 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26342 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26343 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26344 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26345 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26346 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26347 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26348
26349 2017-10-30 Florian Weimer <fweimer@redhat.com>
26350
26351 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26352 always defined.
26353 * io/tst-mkdirat.c (do_test): Likewise.
26354 * io/tst-mkfifoat.c (do_test): Likewise.
26355 * io/tst-mknodat.c (do_test): Likewise.
26356 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26357 * locale/programs/locale.c (select_dirs): Likewise.
26358 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26359 * posix/bug-glob2.c (my_readdir): Likewise.
26360 * posix/tst-dir.c (main): Likewise.
26361 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26362 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26363
26364 2017-10-30 Florian Weimer <fweimer@redhat.com>
26365
26366 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26367 just __USE_GNU.
26368
26369 2017-10-30 Florian Weimer <fweimer@redhat.com>
26370
26371 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26372 Convert to support/test-driver.c.
26373 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26374 New macro parameters.
26375 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26376 * posix/tst-gnuglob.c: New file.
26377 * posix/tst-gnuglob64.c: Likewise.
26378 * posix/Makefile (tests): Add tst-gnuglob64.
26379
26380 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26381
26382 [BZ #19485]
26383 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26384 and use a better translation for March in “mon”.
26385 * localedata/locales/csb_PL: Use more ASCII to improve the
26386 readability of the source.
26387
26388 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26389
26390 [BZ #13953]
26391 * localedata/locales/km_KH: Use ASCII as much
26392 as possible for better readability of the source and
26393 remove useless comments.
26394 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26395 was commented out and apparently wrong anyway because it was
26396 using Lao characters. If Buddhist era should be used
26397 for km_KH, a native speaker should write the correct formaat
26398 for Khmer.
26399 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26400 (According to CLDR, the first weekday for Cambodia is Sunday).
26401 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26402 (These were using Lao characters which must be wrong. If we get
26403 the correct data from a native speaker, we could add it back, until
26404 then it is better not to have name_mr and name_mrs at all than
26405 having it wrong).
26406
26407 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26408
26409 * locale/loadlocale.c: Correct size of
26410 _nl_value_type_LC_<category> arrays.
26411
26412 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26413
26414 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26415 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26416 with appropriate macros defined and undefined.
26417 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26418 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26419 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26420 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26421 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26422
26423 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26424
26425 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26426 "-O2 -march=i586".
26427
26428 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26429
26430 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26431 with lowercase letters to make it agree with CLDR.
26432
26433 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26434
26435 [BZ #15260]
26436 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26437 first letters of yesstr and nostr in yesexpr and noexpr,
26438 not for the full words.
26439 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26440 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26441 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26442 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26443 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26444 first letters of yesstr and nostr in yesexpr and noexpr,
26445 until now only English was matched in yesexpr and noexpr.
26446 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26447 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26448 fil but not for tl. As tl and fil are very similar, using fil
26449 is probably better than using English.
26450
26451 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26452
26453 [BZ #21706]
26454 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26455 in yesstr and nostr.
26456
26457 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26458
26459 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26460 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26461 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26462 Likewise.
26463 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26464 Likewise.
26465 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26466 Likewise.
26467 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26468 Likewise.
26469 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26470 (SNANF128X): Likewise.
26471
26472 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26473 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26474 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26475 (HUGE_VAL_F32): Likewise.
26476 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26477 (HUGE_VAL_F64): Likewise.
26478 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26479 (HUGE_VAL_F32X): Likewise.
26480 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26481 (HUGE_VAL_F64X): Likewise.
26482 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26483 (HUGE_VAL_F128X): Likewise.
26484
26485 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26486
26487 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26488 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26489 for the br_FR locale.
26490
26491 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26492
26493 [BZ #21706]
26494 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26495
26496 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26497
26498 * locale/programs/record-status.h: Define globals, and function
26499 prototypes. Move function bodies...
26500 * locale/programs/record-status.c: ... to here. New file.
26501 * iconv/Makefile (iconv_prog-modules): Add record-status.
26502 * locale/Makefile (lib-modules): Likewise.
26503 * iconv/iconv_prog.c: Remove verbose.
26504 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26505 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26506 record a warning about ASCII compatibility.
26507 * locale/programs/ld-monetary.c (monetary_finish): If
26508 warn_int_curr_symbol is true then record a warning about the symbol
26509 not being in our ISO 4217 list.
26510 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26511 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26512 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26513 (OPT_NO_WARN): Define.
26514 (OPT_WARN): Define.
26515 (options): Add entry for --no-warnings, and --warnings.
26516 (set_warnings): New function to enable/disable warnings.
26517 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26518 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26519 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26520 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26521 Pass flags to generate_locale.
26522 (generate_locale): Accept new flag argument and pass it to localedef
26523 invocation.
26524 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26525 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26526
26527 * localedata/Makefile (test-input-data): Use full file name.
26528 * localedata/da_DK.in: Rename to...
26529 * localedata/da_DK.ISO-8859-1.in: ...this.
26530 * localedata/de_DE.in: Rename to...
26531 * localedata/de_DE.ISO-8859-1.in: ...this.
26532 * localedata/en_US.in: Rename to...
26533 * localedata/en_US.ISO-8859-1.in: ...this.
26534 * localedata/fr_FR.in: Rename to...
26535 * localedata/fr_FR.UTF-8.in: ... this.
26536 * localedata/hr_HR.in: Rename to...
26537 * localedata/hr_HR.ISO-8859-2.in: ...this.
26538 * localedata/hu_HU.in: Rename to...
26539 * localedata/hu_HU.UTF-8.in: ...this.
26540 * localedata/si_LK.in: Rename to...
26541 * localedata/si_LK.UTF-8.in: ...this.
26542 * localedata/sv_SE.in: Rename to...
26543 * localedata/sv_SE.ISO-8859-1.in: ...this.
26544 * localedata/tr_TR.in: Rename to...
26545 * localedata/tr_TR.UTF-8.in: ...this.
26546 * localedata/uk_UA.in: Rename to...
26547 * localedata/uk_UA.UTF-8.in: ...this.
26548 * localedata/sort-test.sh: Test file is locale name with the
26549 suffix.
26550
26551 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26552 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26553 file.
26554 * localedata/locales/i18n_ctype: Regenerate.
26555 * localedata/locales/tr_TR: Likewise.
26556 * localedata/locales/translit_circle: Likewise.
26557 * localedata/locales/translit_cjk_compat: Likewise.
26558 * localedata/locales/translit_combining: Likewise.
26559 * localedata/locales/translit_compat: Likewise.
26560 * localedata/locales/translit_font: Likewise.
26561 * localedata/locales/translit_fraction: Likewise.
26562
26563 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26564
26565 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26566 lxvd2x/stxvd2x with lvx/stvx.
26567 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26568
26569 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26570
26571 * include/alloc_buffer.h: Replace "if if " with "if " in
26572 comments.
26573 * sysdeps/mips/memcpy.S: Likkewise.
26574 * sysdeps/mips/memset.S: Likewise.
26575 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26576 Likewise.
26577 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26578 Likewise.
26579 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26580 Likewise.
26581
26582 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26583
26584 [BZ #15261]
26585 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26586 yesexpr and noexpr.
26587 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26588 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26589 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26590 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26591 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26592 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26593 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26594
26595 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26596
26597 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26598 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26599 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26600 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26601 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26602 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26603 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26604 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26605 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26606 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26607 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26608 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26609
26610 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26611
26612 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26613 as possible for better readability of the source.
26614 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26615 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26616 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26617 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26618 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26619 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26620 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26621 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26622 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26623 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26624 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26625 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26626 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26627 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26628 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26629 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26630 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26631 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26632 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26633 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26634 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26635 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26636 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26637 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26638 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26639 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26640 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26641 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26642 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26643 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26644 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26645 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26646 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26647 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26648 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26649 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26650 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26651 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26652 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26653 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26654 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26655 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26656 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26657 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26658 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26659 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26660 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26661 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26662 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26663 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26664 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26665 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26666 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26667 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26668 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26669 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26670 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26671 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26672 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26673 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26674 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26675 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26676 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26677 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26678 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26679 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26680 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26681 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26682 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26683 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26684 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26685 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26686 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26687 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26688 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26689 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26690 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26691 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26692 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26693 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26694 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26695 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26696 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26697 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26698 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26699 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26700 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26701 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26702 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26703 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26704 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26705 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26706 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26707 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26708 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26709 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26710 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26711 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26712 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26713 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26714 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26715 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26716 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26717 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26718 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26719 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26720 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26721 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26722 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26723 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26724 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26725 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26726 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26727 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26728 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26729 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26730 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26731 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26732 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26733 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26734 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26735 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26736 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26737 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26738 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26739 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26740 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26741 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26742 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26743 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26744 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26745 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26746 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26747 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26748 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26749 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26750 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26751 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26752 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26753 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26754 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26755 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26756 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26757 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26758 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26759 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26760 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26761 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26762 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26763 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26764 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26765 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26766 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26767 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26768 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26769 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26770 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26771 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26772 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26773 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26774 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26775 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26776 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26777 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26778 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26779 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26780 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26781 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26782 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26783 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26784 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26785 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26786 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26787 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26788
26789 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26790
26791 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26792 (Use first letters of yesstr and nostr correctly instead of using
26793 full words).
26794
26795 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26796
26797 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26798 (Use first letters of yesstr and nostr correctly).
26799
26800 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26801
26802 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26803 also check for the first characters of yesstr and nostr.
26804 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26805 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26806
26807 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26808
26809 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26810 also check for Chinese characters.
26811
26812 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26813
26814 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26815 match also for the contents of yesstr and nostr. As the first letter
26816 of yesstr and nostr is equal, checking only for the first letter
26817 is not enough.
26818
26819 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26820
26821 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26822 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26823
26824 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26825
26826 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26827 of main contributor.
26828
26829 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26830
26831 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26832 instead of using English.
26833
26834 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26835
26836 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26837 by including the first letters of nostr and yesexpr in the regexp.
26838 Also make it more readable by using ASCII where possible.
26839
26840 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26841
26842 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26843 the first letter of nostr in the regexp. It agrees with CLDR now.
26844 Also make it more readable by using ASCII where possible.
26845
26846 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26847
26848 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26849 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26850 these strings contain a U+17D6 (which somewhat looks like a colon)
26851 instead of a real colon to separate the full words for “yes”
26852 and “no” from the single letter responses.
26853
26854 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26855
26856 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26857 it agree with CLDR (include the first letter of yesstr).
26858 Also make it more readable by using ASCII where possible.
26859
26860 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26861
26862 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26863 and improve yesexpr and noexpr. The yesstr and nostr apparently
26864 came from CLDR. And CLDR has a bug there: these strings contain
26865 a U+0903 (which looks like a colon) instead of a real colon
26866 to separate the full words for “yes” and “no” from the single
26867 letter responses.
26868
26869 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26870
26871 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26872 letters of the full yesstr and nostr in yesexpr and noexpr.
26873
26874 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26875
26876 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26877 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26878 * localedata/locales/an_ES: Make source more readable by using ASCII
26879 where possible.
26880
26881 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26882
26883 [BZ #20952]
26884 * localedata/locales/yuw_PG: New file.
26885 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26886 * locale/iso-639.def: Add Yau (Uruwa).
26887
26888 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26889
26890 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26891
26892 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26893
26894 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26895 (__libc_realloc): Likewise.
26896 (_mid_memalign): Likewise.
26897 (__libc_calloc): Likewise.
26898
26899 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26900
26901 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26902 by adding the generic +1 and -0 as in all other locales.
26903 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26904 day names and make it more readable by using ASCII where possible.
26905
26906 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26907
26908 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26909 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26910
26911 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26912
26913 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26914 WNOHANG in waitpid call.
26915
26916 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26917
26918 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26919 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26920
26921 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26922 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26923 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26924 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26925 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26926 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26927 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26928 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26929 variables.
26930
26931 2017-10-23 Michael Collison <michael.collison@arm.com>
26932
26933 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26934 with __builtin_sqrt.
26935 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26936 with __builtin_sqrtf.
26937 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26938 with __builtin_ceil.
26939 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26940 with __builtin_ceilf.
26941 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26942 with __builtin_floor.
26943 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26944 with __builtin_floorf.
26945 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26946 with __builtin_fma.
26947 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26948 with __builtin_fmaf.
26949 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26950 with __builtin_fmax.
26951 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26952 with __builtin_fmaxf.
26953 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26954 with __builtin_fmin.
26955 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26956 with __builtin_fminf.
26957 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26958 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26959 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26960 with builtin_rint and conversion to int.
26961 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26962 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26963 with builtin_llround.
26964 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26965 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26966 with builtin_rint and conversion to long int.
26967 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26968 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26969 with builtin_lround.
26970 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26971 with builtin_lroundf.
26972 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26973 statements with __builtin_nearbyint.
26974 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26975 statements with __builtin_nearbyintf.
26976 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26977 with __builtin_rint.
26978 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26979 with __builtin_rintf.
26980 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26981 with __builtin_round.
26982 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26983 with __builtin_roundf.
26984 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26985 with __builtin_trunc.
26986 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26987 with __builtin_truncf.
26988 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26989 and s_l[l]round[f].c too.
26990
26991 2017-10-23 Alan Modra <amodra@gmail.com>
26992
26993 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26994 Adjust stack after restoring regs. Add missing LR cfi_restore.
26995
26996 2017-10-23 Alan Modra <amodra@gmail.com>
26997
26998 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26999 Move LR save and frame setup/teardown and LR restore to
27000 immediately around memset call. Provide cfi.
27001
27002 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27003
27004 * sysdeps/i386/fpu/e_powf.S: Removed.
27005 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
27006 * sysdeps/i386/fpu/w_powf.c: Likewise.
27007 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
27008 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27009 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27010 Add e_powf-sse2.
27011 (CFLAGS-e_powf-sse2.c): New.
27012 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
27013 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
27014
27015 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27016
27017 * sysdeps/i386/fpu/e_log2f.S: Removed.
27018 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
27019 * sysdeps/i386/fpu/w_log2f.c: Likewise.
27020 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
27021 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27022 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27023 Add e_log2f-sse2.
27024 (CFLAGS-e_log2f-sse2.c): New.
27025 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
27026 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
27027
27028 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27029
27030 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27031 Add e_powf-fma.
27032 (CFLAGS-e_powf-fma.c): New.
27033 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
27034 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
27035
27036 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27037
27038 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27039 Add e_log2f-fma.
27040 (CFLAGS-e_log2f-fma.c): New.
27041 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
27042 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
27043
27044 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27045
27046 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27047 Add e_logf-fma.
27048 (CFLAGS-e_logf-fma.c): New.
27049 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
27050 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
27051
27052 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 * sysdeps/i386/fpu/e_logf.S: Removed.
27055 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
27056 * sysdeps/i386/fpu/w_logf.c: Likewise.
27057 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
27058 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
27059 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27060 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27061 Add e_logf-sse2.
27062 (CFLAGS-e_logf-sse2.c): New.
27063 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
27064 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
27065
27066 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27067
27068 * sysdeps/i386/fpu/e_exp2f.S: Removed.
27069 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
27070 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
27071 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27072 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27073 Add e_exp2f-sse2.
27074 (CFLAGS-e_exp2f-sse2.c): New.
27075 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
27076 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
27077
27078 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27079
27080 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27081 Add e_exp2f-fma.
27082 (CFLAGS-e_exp2f-fma.c): New.
27083 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27084 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27085
27086 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27087
27088 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27089 * sysdeps/i386/fpu/e_expf.S: Likewise.
27090 * sysdeps/i386/fpu/math_errf.c: Likewise.
27091 * sysdeps/i386/fpu/w_expf.c: Likewise.
27092 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27093 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27094 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27095 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27096 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27097 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27098 Remove e_expf-ia32.
27099 (CFLAGS-e_expf-sse2.c): New.
27100 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27101 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27102
27103 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27104
27105 * sysdeps/x86_64/fpu/e_expf.S: Removed.
27106 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27107 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27108 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27109 e_expf.c.
27110 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27111 New.
27112 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27113 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27114 Renamed to ...
27115 (__redirect_expf): This.
27116 (SYMBOL_NAME): Changed to expf.
27117 (__ieee754_expf): Renamed to ...
27118 (__expf): This.
27119 (__GI___expf): This.
27120 (__ieee754_expf): Add strong_alias.
27121 (__expf_finite): Likewise.
27122 (__expf): New.
27123 Include <sysdeps/ieee754/flt-32/e_expf.c>.
27124
27125 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
27126
27127 [BZ #22332]
27128 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27129 unescaping.
27130
27131 2017-10-21 Florian Weimer <fweimer@redhat.com>
27132
27133 * posix/Makefile (tests): Add tst-glob-tilde.
27134 (tests-special): Add tst-glob-tilde-mem.out
27135 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27136 (tst-glob-tilde-mem.out): Add mtrace check.
27137 * posix/tst-glob-tilde.c: New file.
27138
27139 2017-10-20 Joseph Myers <joseph@codesourcery.com>
27140
27141 * bits/floatn-common.h: New file.
27142 * math/Makefile (headers): Add bits/floatn-common.h.
27143 * bits/floatn.h: Include <bits/floatn-common.h>.
27144 * sysdeps/ia64/bits/floatn.h: Likewise.
27145 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27146 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27147 * sysdeps/powerpc/bits/floatn.h: Likewise.
27148 * sysdeps/x86/bits/floatn.h: Likewise.
27149
27150 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27151
27152 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27153 indicates whether compiler emits an warning for alias for
27154 functions with incompatible types.
27155
27156 [BZ #22273]
27157 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27158 the auxiliary process is terminated by a signal before calling _exit
27159 or execve.
27160
27161 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27162
27163 [BZ #21265]
27164 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27165 New.
27166 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27167 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27168 and bit_arch_XSAVEC_Usable if needed.
27169 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27170 and bit_arch_Use_dl_runtime_resolve_opt.
27171 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27172 Removed.
27173 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27174 (bit_arch_Prefer_No_AVX512): Updated.
27175 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27176 (bit_arch_XSAVEC_Usable): New.
27177 (STATE_SAVE_OFFSET): Likewise.
27178 (STATE_SAVE_MASK): Likewise.
27179 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27180 (cpu_features): Add xsave_state_size and xsave_state_full_size.
27181 (index_arch_Use_dl_runtime_resolve_opt): Removed.
27182 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27183 (index_arch_XSAVEC_Usable): New.
27184 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27185 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
27186 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27187 is enabled.
27188 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27189 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27190 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27191 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27192 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27193 _dl_runtime_resolve_xsavec.
27194 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27195 Removed.
27196 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27197 instead of VEC_SIZE.
27198 (REGISTER_SAVE_BND0): Removed.
27199 (REGISTER_SAVE_BND1): Likewise.
27200 (REGISTER_SAVE_BND3): Likewise.
27201 (REGISTER_SAVE_RAX): Always defined to 0.
27202 (VMOV): Removed.
27203 (_dl_runtime_resolve_avx): Likewise.
27204 (_dl_runtime_resolve_avx_slow): Likewise.
27205 (_dl_runtime_resolve_avx_opt): Likewise.
27206 (_dl_runtime_resolve_avx512): Likewise.
27207 (_dl_runtime_resolve_avx512_opt): Likewise.
27208 (_dl_runtime_resolve_sse): Likewise.
27209 (_dl_runtime_resolve_sse_vex): Likewise.
27210 (USE_FXSAVE): New.
27211 (_dl_runtime_resolve_fxsave): Likewise.
27212 (USE_XSAVE): Likewise.
27213 (_dl_runtime_resolve_xsave): Likewise.
27214 (USE_XSAVEC): Likewise.
27215 (_dl_runtime_resolve_xsavec): Likewise.
27216 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27217 Removed.
27218 (_dl_runtime_resolve_avx512_opt): Likewise.
27219 (_dl_runtime_resolve_avx): Likewise.
27220 (_dl_runtime_resolve_avx_opt): Likewise.
27221 (_dl_runtime_resolve_sse): Likewise.
27222 (_dl_runtime_resolve_sse_vex): Likewise.
27223 (_dl_runtime_resolve_fxsave): New.
27224 (_dl_runtime_resolve_xsave): Likewise.
27225 (_dl_runtime_resolve_xsavec): Likewise.
27226
27227 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27228
27229 [BZ #22320]
27230 CVE-2017-15670
27231 * posix/glob.c (__glob): Fix one-byte overflow.
27232
27233 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27234
27235 * malloc/malloc.c (sysdep-cancel.h): Add include.
27236
27237 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27238
27239 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27240
27241 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27242
27243 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27244 (tests): Remove $(objpfx)ga_test depdendency.
27245 * resolv/ga_test.c: Remove file.
27246
27247 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27248
27249 [BZ #18812]
27250 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27251 * localedata/locales/kab_DZ: New file.
27252
27253 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27254
27255 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27256 _dl_relocate_static_pie instead of _dl_start to compute load
27257 address in static PIE.
27258
27259 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27260
27261 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27262
27263 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27264
27265 [BZ #13605]
27266 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27267 * localedata/locales/shn_MM: New file.
27268
27269 2017-10-20 Florian Weimer <fweimer@redhat.com>
27270
27271 [BZ #22321]
27272 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27273 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27274 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27275 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27276 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27277 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27278
27279 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27280
27281 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27282
27283 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27284
27285 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27286
27287 [BZ #22322]
27288 * sysdeps/mips/bits/long-double.h: Move to ....
27289 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27290
27291 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27292
27293 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27294
27295 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27296 H.J. Lu <hongjiu.lu@intel.com>
27297
27298 [BZ #22299]
27299 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27300 GLRO(dl_platform) to NULL.
27301 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27302 (modules-names): Add tst-platformmod-1 and
27303 x86_64/tst-platformmod-2.
27304 (CFLAGS-tst-platform-1.c): New.
27305 (CFLAGS-tst-platformmod-1.c): Likewise.
27306 (CFLAGS-tst-platformmod-2.c): Likewise.
27307 (LDFLAGS-tst-platformmod-2.so): Likewise.
27308 ($(objpfx)tst-platform-1): Likewise.
27309 ($(objpfx)tst-platform-1.out): Likewise.
27310 (tst-platform-1-ENV): Likewise.
27311 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27312 * sysdeps/x86_64/tst-platform-1.c: New file.
27313 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27314 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27315
27316 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27317
27318 [BZ #13994]
27319 * locale/iso-639.def: Add Karbi.
27320 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27321 * localedata/locales/mjw_IN: New file.
27322
27323 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27324
27325 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27326 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27327 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27328 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27329 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27330 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27331 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27332 <bits/floatn.h>.
27333 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27334 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27335 * manual/math.texi (Mathematics): Document additional architecture
27336 support for _Float128.
27337 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27338 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27339 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27340 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27341 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27342 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27343 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27344 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27345 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27346 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27347 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27348 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27349 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27350 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27351 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27352
27353 2017-10-18 Renlin Li <renlin.li@arm.com>
27354
27355 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27356 _DYNAMIC symbol to calculate load address.
27357
27358 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27359
27360 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27361 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27362 summary bits.
27363 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27364 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27365
27366 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27367
27368 [BZ #16777]
27369 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27370 and improve readability by using more ASCII.
27371 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27372 and improve readability by using more ASCII.
27373
27374 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27375
27376 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27377 not all targets support atomics on bool.
27378
27379 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27380
27381 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27382 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27383 __f128.
27384 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27385 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27386 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27387 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27388 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27389 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27390
27391 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27392
27393 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27394 defines.
27395
27396 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27397
27398 [BZ #22159]
27399 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27400 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27401 (do_check_remalloced_chunk): Fix build bug.
27402 (do_check_malloc_state): Add assert that checks arena->top.
27403 (malloc_consolidate): Remove initialization.
27404 (int_mallinfo): Remove call to malloc_consolidate.
27405 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27406
27407 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27408
27409 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27410 (have_fastchunks): Remove.
27411 (clear_fastchunks): Remove.
27412 (set_fastchunks): Remove.
27413 (malloc_state): Add have_fastchunks.
27414 (malloc_init_state): Use have_fastchunks.
27415 (do_check_malloc_state): Remove incorrect invariant checks.
27416 (_int_malloc): Use have_fastchunks.
27417 (_int_free): Likewise.
27418 (malloc_consolidate): Likewise.
27419
27420 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27421
27422 * malloc/malloc.c (tcache_put): Inline.
27423 (tcache_get): Inline.
27424
27425 2017-10-17 Jordi Mallach <jordi@gnu.org>
27426
27427 Aurelien Jarno <aurelien@aurel32.net>
27428 [BZ #2522]
27429 * localedata/locales/ca_ES@valencia: New file.
27430 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27431
27432 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27433
27434 [BZ #22296]
27435 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27436 < 6.x
27437
27438 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27439
27440 * scripts/build-many-glibcs.py (Context.add_all_configs):
27441 Add arm-linux-gnueabihf multiarch extra_glibcs.
27442
27443 * sysdeps/generic/ifunc-init.h: New file.
27444 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27445
27446 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27447
27448 [BZ #22019]
27449 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27450 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27451 * stdlib/tst-strfmon_l.c: adapt test case.
27452
27453 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27454
27455 * sysdeps/generic/float128-abi.h: New file.
27456 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27457 non-__prefixed symbols to ....
27458 * math/Versions: ... here. Include <float128-abi.h>.
27459 * stdlib/Versions ... and here. Include <float128-abi.h>
27460
27461 2017-10-16 Florian Weimer <fweimer@redhat.com>
27462
27463 * version.h (VERSION): Switch to ".9000" as the development
27464 version suffix.
27465
27466 2017-10-16 Florian Weimer <fweimer@redhat.com>
27467
27468 [BZ #22050]
27469 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27470 compat_symbol_reference to access non-default version.
27471
27472 2017-10-16 Florian Weimer <fweimer@redhat.com>
27473
27474 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27475
27476 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27477
27478 * include/shlib-compat.h (compat_symbol_reference): Update
27479 comment.
27480
27481 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27482
27483 * math/Makefile (test-types): Add
27484 $(type-float128-$(float128-alias-fcts)).
27485 * math/test-float128.h (TYPE_STR): Define conditional on
27486 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27487 (ULP_IDX): Likewise.
27488 (ULP_I_IDX): Likewise.
27489
27490 * stdlib/strtold.c: Include <bits/floatn.h>
27491 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27492 and later undefine as macro. Define as weak alias if
27493 [!USE_WIDE_CHAR].
27494 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27495 and later undefine as macro. Define as weak alias if
27496 [USE_WIDE_CHAR].
27497 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27498 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27499 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27500 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27501 Define and later undefine as macro. Define as weak alias if
27502 [USE_WIDE_CHAR].
27503 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27504 <bits/floatn.h>.
27505 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27506 Define and later undefine as macro. Define as weak alias if
27507 [!USE_WIDE_CHAR].
27508 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27509 Define and later undefine as macro. Define as weak alias if
27510 [USE_WIDE_CHAR].
27511
27512 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27513
27514 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27515 record_verbose messages.
27516
27517 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27518
27519 [BZ #22052]
27520 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27521 to silence -O3 -Wall warning with GCC 7.
27522
27523 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27524
27525 * Makeconfig (+link-static-before-libc): Use the first of
27526 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27527 * gmon/Makefile (tests): Add tst-gmon-static.
27528 (tests-static): Likewise.
27529 (CFLAGS-tst-gmon-static.c): New.
27530 (CRT-tst-gmon-static): Likewise.
27531 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27532 (tst-gmon-static-ENV): Likewise.
27533 (tests-special): Likewise.
27534 ($(objpfx)tst-gmon-static.out): Likewise.
27535 (clean-tst-gmon-static-data): Likewise.
27536 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27537 * gmon/tst-gmon-static-gprof.sh: New file.
27538 * gmon/tst-gmon-static.c: Likewise.
27539
27540 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27541
27542 [BZ #22295]
27543 * locale/programs/linereader.c (get_string): Don't warn on
27544 non-symbolic character.
27545
27546 [BZ #22294]
27547 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27548 int_curr_symbol.
27549
27550 [BZ #22292]
27551 * locale/programs/record-status.h: New file
27552 * locale/programs/locale.c: Add comment.
27553 * locale/programs/charmap-dir.c: Don't include error.h.
27554 (charmap_opendir): Use record_error.
27555 * locale/programs/charmap.c: Don't include error.h.
27556 (charmap_read): Use record_error, and record_warning.
27557 (parse_charmap): Likewise.
27558 * locale/programs/ld-address.c: Don't include error.h.
27559 (address_finish): Use record_error, and record_warning.
27560 * locale/programs/ld-collate.c: Don't include error.h.
27561 (collate_finish): Use record_error, and record_error_at_line.
27562 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27563 (ctype_class_new): Likewise.
27564 (ctype_map_new): Likewise.
27565 (set_one_default): Likewise.
27566 (set_class_defaults): Likewise.
27567 (translit_flatten): Likewise.
27568 (allocate_arrays): Use record_error, and record_verbose.
27569 * locale/programs/ld-identification.c: Don't include error.h.
27570 (indentation_finish): Use record_error and record_warning.
27571 * locale/programs/ld-measurement.c: Don't include error.h.
27572 (measurement_finish): Use record_error.
27573 * locale/programs/ld-messages.c
27574 (message_finish): Likewise.
27575 * locale/programs/ld-monetary.c
27576 (monetary_finish): Likewise.
27577 * locale/programs/ld-name.c (name_finish): Use record_error
27578 and record_warning.
27579 * locale/programs/ld-numeric.c
27580 (numeric_finish): Use record_error.
27581 * locale/programs/ld-paper.c: Don't include error.h.
27582 (paper_finish): Use record_error.
27583 * locale/programs/ld-telephone.c: Don't include error.h.
27584 (telephone_finish): Use record_error.
27585 * locale/programs/ld-time.c (time_finish): Likewise.
27586 * locale/programs/linereader.h (lr_error): Make inline func.
27587 * locale/programs/localedef.c: Define recorded_warning_count,
27588 and recorded_error_count.
27589 (main): Use record_error. Use recorded_error_count and
27590 recorded_warning_count to issue correct error returns.
27591 (add_to_readlist): Use record_error.
27592 (find_locale): Likewise.
27593 (load_locale): Likewise.
27594 * locale/programs/localedef.h: Remove be_quiet
27595 and WITH_CUR_LOCALE.
27596 * locale/programs/locarchive.c (compare_from_file): Use
27597 record_error.
27598 * locale/programs/locfile.c (write_locale_data): Use
27599 record_error.
27600 * locale/programs/repertoire.c: Dont include error.h.
27601 (repertoire_complain): Use record_error.
27602 * localedata/tst-fmon.sh: Expect failures from localedef.
27603 * localedata/tst-locale.sh: Likewise.
27604 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27605
27606 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27607 (REPORTS): Likewise.
27608 (check): Likewise.
27609 (i18n): Rename to...
27610 (i18n_ctype): ...this.
27611 (i18n-report): Rename to...
27612 (i18n_ctype-report): ...this.
27613 * localedata/locales/i18n_ctype: Regenerate.
27614 * localedata/locales/i18n: copy i18n_ctype.
27615
27616 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27617
27618 * stdlib/strfroml.c: Include <bits/floatn.h>.
27619 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27620 Define before include of <stdlib.h> and undefine afterwards, then
27621 define as weak alias.
27622
27623 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27624 Undefine and restore default definition. Use
27625 libm_alias_ldouble_other.
27626
27627 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27628
27629 [BZ #22153]
27630 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27631 in coredumps.
27632
27633 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27634
27635 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27636 Assign sym_map to be map for local symbols, as TLS relocations
27637 use sym_map to determine whether the symbol is defined and to
27638 extract the TLS information.
27639 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27640 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27641
27642 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27643
27644 [BZ #22189]
27645 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27646 (math_force_eval): Add powerpc version.
27647
27648 [BZ #22142]
27649 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27650 -DBL_MAX.
27651 (do_test): Likewise.
27652 * stdio-common/tst-printf.sh: Likewise.
27653 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27654 ifdef clause in order to set the carry bit right. Replace r0 by
27655 0 without changing the behavior.
27656
27657 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27658
27659 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27660 <libm-alias-ldouble.h>.
27661 (fabsl): Define using libm_alias_ldouble.
27662 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27663 <libm-alias-ldouble.h>.
27664 (fabsl): Define using libm_alias_ldouble.
27665
27666 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27667 Remove conditional code.
27668
27669 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27670 Rename to __clog10_internal_l.
27671 (__clog10_internal_l): Define aliases using
27672 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27673 with __clog10.
27674
27675 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27676
27677 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27678 * benchtests/sincosf-inputs: New file.
27679 * benchtests/cosf-inputs: New file.
27680 * benchtests/sinf-inputs: New file.
27681
27682 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27683
27684 * posix/tst-spawn.c (do_test): Wait for both children.
27685
27686 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27687
27688 [BZ #22284]
27689 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27690 tests-pie): Add tst-gmon-pie.
27691 (CFLAGS-tst-gmon-pie.c): New.
27692 (CRT-tst-gmon-pie): Likewise.
27693 (tst-gmon-pie-ENV): Likewise.
27694 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27695 ($(objpfx)tst-gmon-pie.out): Likewise.
27696 (clean-tst-gmon-pie-data): Likewise.
27697 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27698 * gmon/gmon.c [PIC]: Include <link.h>.
27699 [PIC] (callback): New function.
27700 (write_hist): Add an argument for load address. Subtract load
27701 address from PCs.
27702 (write_call_graph): Likewise.
27703 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27704 it to write_hist and write_call_graph.
27705 * gmon/tst-gmon-pie.c: New file.
27706
27707 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27708
27709 * math/Makefile (test-types-basic): New variable.
27710 (test-types): Likewise.
27711 (libm-test-support): Use $(test-types) instead of $(types).
27712 (libm-tests-base-normal): Likewise.
27713 (libm-tests-base-finite): Likewise.
27714 (libm-tests-base-inline): Likewise.
27715 (generated): Likewise.
27716 ($(objpfx)libm-test-support-$(t).c): Likewise.
27717 (libm-tests-for-type iterator): Likewise.
27718 (libm-test-support iterator): Likewise.
27719 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27720 (ulp_idx): Use ULP_IDX.
27721 * math/test-ldouble.h: Include <float.h>.
27722 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27723 (ULP_IDX): New macro.
27724 (ULP_I_IDX): Likewise.
27725 * math/test-double.h (ULP_IDX): Likewise.
27726 (ULP_I_IDX): Likewise.
27727 * math/test-float.h (ULP_IDX): Likewise.
27728 (ULP_I_IDX): Likewise.
27729 * math/test-float128.h (ULP_IDX): Likewise.
27730 (ULP_I_IDX): Likewise.
27731
27732 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27733
27734 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27735 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27736 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27737 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27738 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27739 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27740 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27741 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27742 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27743 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27744 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27745 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27746 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27747 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27748 (SINGLE_THREAD_BY_GLOBAL): Define.
27749 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27750 Likewise.
27751 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27752 Likewise.
27753 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27754 Likewise.
27755 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27756 Likewise.
27757 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27758 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27759 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27760 Likewise.
27761
27762 2017-10-11 Andreas Schwab <schwab@suse.de>
27763
27764 * nis/Makefile (aux): Remove.
27765 * nscd/Makefile (aux): Add nscd_hash.
27766 (nscd-modules): Likewise.
27767 ($(objpfx)nscd): Don't depend on libnsl.
27768 * nscd/nscd_hash.c: New file.
27769 * nscd/nscd_hash.h: Likewise.
27770 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27771 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27772 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27773 instead of <nis/rpcsvc/nis.h>.
27774 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27775
27776 2017-10-11 Florian Weimer <fweimer@redhat.com>
27777
27778 [BZ #22078]
27779 Avoid large NSS buffers with many addresses, aliases.
27780 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27781 using dynarrays and struct alloc_buffer.
27782 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27783 (tst-nss-files-hosts-multi): Link with -ldl.
27784 * nss/tst-nss-files-hosts-multi.c: New file.
27785
27786 2017-10-11 Florian Weimer <fweimer@redhat.com>
27787
27788 [BZ #18023]
27789 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27790 scratch_buffer. Eliminate gotos.
27791
27792 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27793
27794 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27795 libm_alias_ldouble_other.
27796 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27797 undefine and redefine.
27798 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27799 (exp10l): Do not define here.
27800 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27801 (weak_alias): Undefine and redefine.
27802 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27803 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27804 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27805 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27806
27807 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27808 [!__fma] (fma): Define using libm_alias_double.
27809 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27810 [!__fmaf] (fmaf): Define using libm_alias_float.
27811 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27812 (fmal): Define using libm_alias_ldouble.
27813
27814 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27815
27816 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27817 New macro.
27818 (libm_alias_double_other): Likewise.
27819 (libm_alias_double_r): Use libm_alias_double_other_r.
27820 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27821 New macro.
27822 (libm_alias_float_other): Likewise.
27823 (libm_alias_float_r): Use libm_alias_float_other_r.
27824 * sysdeps/generic/libm-alias-float128.h
27825 (libm_alias_float128_other_r): New macro.
27826 (libm_alias_float128_other): Likewise.
27827 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27828 * sysdeps/generic/libm-alias-ldouble.h
27829 (libm_alias_ldouble_other_r): New macro.
27830 (libm_alias_ldouble_other): Likewise.
27831 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27832 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27833 (libm_alias_double_other_r): New macro.
27834 (libm_alias_double_other): Likewise.
27835 (libm_alias_double_r): Use libm_alias_double_other_r.
27836 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27837 (libm_alias_ldouble_other_r): New macro.
27838 (libm_alias_ldouble_other): Likewise.
27839 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27840 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27841 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27842 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27843 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27844 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27845 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27846 * math/w_exp2f.c: Use libm_alias_float_other.
27847 * math/w_expf.c: Likewise.
27848 * math/w_log2f.c: Likewise.
27849 * math/w_logf.c: Likewise.
27850 * math/w_powf.c: Likewise.
27851 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27852 [!__exp2f]: Use libm_alias_float_other.
27853 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27854 [!__expf]: Use libm_alias_float_other.
27855 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27856 [!__log2f]: Use libm_alias_float_other.
27857 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27858 [!__logf]: Use libm_alias_float_other.
27859 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27860 [!__powf]: Use libm_alias_float_other.
27861
27862 2017-10-10 Florian Weimer <fweimer@redhat.com>
27863
27864 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27865 function.
27866 (_nss_files_gethostbyname3_r): Call it.
27867
27868 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27869
27870 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27871 error. Remove default definition of declare_mgen_alias.
27872 [!declare_mgen_alias_r]: Likewise.
27873 * sysdeps/generic/math-type-macros-double.h
27874 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27875 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27876 (declare_mgen_alias_r): Likewise.
27877 * sysdeps/generic/math-type-macros-float128.h
27878 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27879 * sysdeps/generic/math-type-macros-ldouble.h
27880 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27881 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27882 macro.
27883 (declare_mgen_alias_r_s): Likewise.
27884 (declare_mgen_alias_r): Likewise.
27885 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27886 (lgamma_r): Define using libm_alias_double_r.
27887 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27888 (lgammaf_r): Define using libm_alias_float_r.
27889 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27890 (lgammal_r): Define using libm_alias_ldouble_r.
27891 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27892 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27893
27894 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27895
27896 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27897 extern declaration.
27898
27899 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27900
27901 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27902
27903 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27904
27905 [BZ #21326]
27906 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27907 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27908 * math/Makefile (test-math-cxx11): New test.
27909 * math/test-math-cxx11.cc: New file.
27910
27911 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27912
27913 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27914
27915 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27916 call to allocate the slave pty file descriptor.
27917
27918 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27919
27920 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27921 [!__fma] (fma): Define using libm_alias_double.
27922 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27923 [!__fma] (fma): Define using libm_alias_double.
27924
27925 * sysdeps/ieee754/float128/float128_private.h: Include
27926 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27927 (libm_alias_ldouble_r): Undefine and redefine.
27928 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27929 <libm-alias-ldouble.h>.
27930 (asinhl): Define using libm_alias_ldouble.
27931 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27932 <libm-alias-ldouble.h>.
27933 (atanl): Define using libm_alias_ldouble.
27934 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27935 <libm-alias-ldouble.h>.
27936 (cbrtl): Define using libm_alias_ldouble.
27937 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27938 <libm-alias-ldouble.h>.
27939 (ceill): Define using libm_alias_ldouble.
27940 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27941 <libm-alias-ldouble.h>.
27942 (copysignl): Define using libm_alias_ldouble.
27943 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27944 <libm-alias-ldouble.h>.
27945 (cosl): Define using libm_alias_ldouble.
27946 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27947 <libm-alias-ldouble.h>.
27948 (erfl): Define using libm_alias_ldouble.
27949 (erfcl): Likewise.
27950 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27951 <libm-alias-ldouble.h>.
27952 (expm1l): Define using libm_alias_ldouble.
27953 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27954 <libm-alias-ldouble.h>.
27955 (fabsl): Define using libm_alias_ldouble.
27956 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27957 <libm-alias-ldouble.h>.
27958 (floorl): Define using libm_alias_ldouble.
27959 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27960 <libm-alias-ldouble.h>.
27961 (fmal): Define using libm_alias_ldouble.
27962 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27963 <libm-alias-ldouble.h>.
27964 (frexpl): Define using libm_alias_ldouble.
27965 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27966 libm_alias_ldouble.
27967 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27968 <libm-alias-ldouble.h>.
27969 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27970 libm_alias_ldouble.
27971 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27972 <libm-alias-ldouble.h>.
27973 (getpayloadl): Define using libm_alias_ldouble.
27974 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27975 <libm-alias-ldouble.h>.
27976 (llrintl): Define using libm_alias_ldouble.
27977 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27978 <libm-alias-ldouble.h>.
27979 (llroundl): Define using libm_alias_ldouble.
27980 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27981 <libm-alias-ldouble.h>.
27982 (logbl): Define using libm_alias_ldouble.
27983 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27984 <libm-alias-ldouble.h>.
27985 (lrintl): Define using libm_alias_ldouble.
27986 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27987 <libm-alias-ldouble.h>.
27988 (lroundl): Define using libm_alias_ldouble.
27989 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27990 <libm-alias-ldouble.h>.
27991 (modfl): Define using libm_alias_ldouble.
27992 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27993 <libm-alias-ldouble.h>.
27994 (nearbyintl): Define using libm_alias_ldouble.
27995 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27996 <libm-alias-ldouble.h>.
27997 (nextafterl): Define using libm_alias_ldouble.
27998 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27999 <libm-alias-ldouble.h>.
28000 (nextupl): Define using libm_alias_ldouble.
28001 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
28002 <libm-alias-ldouble.h>.
28003 (remquol): Define using libm_alias_ldouble.
28004 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
28005 <libm-alias-ldouble.h>.
28006 (rintl): Define using libm_alias_ldouble.
28007 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
28008 <libm-alias-ldouble.h>.
28009 (roundevenl): Define using libm_alias_ldouble.
28010 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
28011 <libm-alias-ldouble.h>.
28012 (roundl): Define using libm_alias_ldouble.
28013 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
28014 using libm_alias_ldouble.
28015 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
28016 <libm-alias-ldouble.h>.
28017 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
28018 Define using libm_alias_ldouble.
28019 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
28020 <libm-alias-ldouble.h>.
28021 (sincosl): Define using libm_alias_ldouble.
28022 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
28023 <libm-alias-ldouble.h>.
28024 (sinl): Define using libm_alias_ldouble.
28025 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
28026 <libm-alias-ldouble.h>.
28027 (tanhl): Define using libm_alias_ldouble.
28028 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
28029 <libm-alias-ldouble.h>.
28030 (tanl): Define using libm_alias_ldouble.
28031 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
28032 <libm-alias-ldouble.h>.
28033 (totalorderl): Define using libm_alias_ldouble.
28034 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
28035 <libm-alias-ldouble.h>.
28036 (totalordermagl): Define using libm_alias_ldouble.
28037 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
28038 <libm-alias-ldouble.h>.
28039 (truncl): Define using libm_alias_ldouble.
28040 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
28041 libm_alias_ldouble.
28042 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
28043 libm_alias_ldouble.
28044 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
28045 <libm-alias-ldouble.h>.
28046 (weak_alias): Do not undefine and redefine.
28047 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28048 (copysignl): Define with long_double_symbol only if [IS_IN
28049 (libc)].
28050 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
28051 <libm-alias-ldouble.h>.
28052 (weak_alias): Do not undefine and redefine.
28053 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28054 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
28055 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
28056 <libm-alias-ldouble.h>.
28057 (weak_alias): Do not undefine and redefine.
28058 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
28059 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
28060 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
28061 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
28062 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
28063 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
28064 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
28065 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
28066 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
28067 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
28068 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
28069 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
28070 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
28071 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
28072 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
28073 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
28074 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
28075 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
28076 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
28077 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
28078 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
28079 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
28080 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28081 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28082 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28083 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28084
28085 2017-10-06 Carlos O'Donell <carlos@redhat.com>
28086
28087 [BZ #22111]
28088 * malloc/malloc.c (tcache_shutting_down): Use bool type.
28089 (tcache_thread_freeres): Set tcache_shutting_down before
28090 freeing the tcache.
28091 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28092 * malloc/tst-malloc-tcache-leak.c: New file.
28093
28094 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28095
28096 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28097 back to powerpc32 file.
28098 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28099 (memrchr): Add __memrchr_power8 to ifunc list.
28100 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28101 extra bytes for unaligned inputs.
28102
28103 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28104
28105 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28106 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28107 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28108 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28109 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28110
28111 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28112
28113 * sysdeps/arm/libm-test-ulps: Update.
28114
28115 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28116 <libm-alias-ldouble.h>.
28117 (asinhl): Define using libm_alias_ldouble.
28118 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28119 <libm-alias-ldouble.h>.
28120 (cbrtl): Define using libm_alias_ldouble.
28121 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28122 <libm-alias-ldouble.h>.
28123 (copysignl): Define using libm_alias_ldouble.
28124 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28125 <libm-alias-ldouble.h>.
28126 (cosl): Define using libm_alias_ldouble.
28127 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28128 <libm-alias-ldouble.h>.
28129 (erfl): Define using libm_alias_ldouble.
28130 (erfcl): Likewise.
28131 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28132 <libm-alias-ldouble.h>.
28133 (fmal): Define using libm_alias_ldouble.
28134 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28135 <libm-alias-ldouble.h>.
28136 (frexpl): Define using libm_alias_ldouble.
28137 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28138 libm_alias_ldouble.
28139 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28140 <libm-alias-ldouble.h>.
28141 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28142 libm_alias_ldouble.
28143 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28144 <libm-alias-ldouble.h>.
28145 (getpayloadl): Define using libm_alias_ldouble.
28146 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28147 <libm-alias-ldouble.h>.
28148 (llrintl): Define using libm_alias_ldouble.
28149 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28150 <libm-alias-ldouble.h>.
28151 (llroundl): Define using libm_alias_ldouble.
28152 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28153 <libm-alias-ldouble.h>.
28154 (lrintl): Define using libm_alias_ldouble.
28155 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28156 <libm-alias-ldouble.h>.
28157 (lroundl): Define using libm_alias_ldouble.
28158 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28159 <libm-alias-ldouble.h>.
28160 (modfl): Define using libm_alias_ldouble.
28161 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28162 <libm-alias-ldouble.h>.
28163 (nextupl): Define using libm_alias_ldouble.
28164 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28165 <libm-alias-ldouble.h>.
28166 (remquol): Define using libm_alias_ldouble.
28167 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28168 <libm-alias-ldouble.h>.
28169 (roundevenl): Define using libm_alias_ldouble.
28170 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28171 <libm-alias-ldouble.h>.
28172 (roundl): Define using libm_alias_ldouble.
28173 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28174 using libm_alias_ldouble.
28175 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28176 <libm-alias-ldouble.h>.
28177 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28178 <libm-alias-ldouble.h>.
28179 (setpayloadsigl): Define using libm_alias_ldouble.
28180 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28181 <libm-alias-ldouble.h>.
28182 (sincosl): Define using libm_alias_ldouble.
28183 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28184 <libm-alias-ldouble.h>.
28185 (sinl): Define using libm_alias_ldouble.
28186 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28187 <libm-alias-ldouble.h>.
28188 (tanhl): Define using libm_alias_ldouble.
28189 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28190 <libm-alias-ldouble.h>.
28191 (tanl): Define using libm_alias_ldouble.
28192 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28193 <libm-alias-ldouble.h>.
28194 (totalorderl): Define using libm_alias_ldouble.
28195 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28196 <libm-alias-ldouble.h>.
28197 (totalordermagl): Define using libm_alias_ldouble.
28198 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28199 libm_alias_ldouble.
28200 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28201 libm_alias_ldouble.
28202
28203 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
28204
28205 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28206 memmove_falkor.
28207 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28208 (__libc_ifunc_impl_list): Likewise.
28209 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28210 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28211
28212 * benchtests/bench-memmove-walk.c: New file.
28213 * benchtests/Makefile (string-benchset): Add it.
28214
28215 * benchtests/bench-memset-walk.c: New file.
28216 * benchtests/Makefile (string-benchset): Add it.
28217
28218 * benchtests/bench-memcpy-walk.c: New file.
28219 * benchtests/Makefile (string-benchset): Add it.
28220
28221 2017-10-05 Florian Weimer <fweimer@redhat.com>
28222
28223 nscd: Eliminate compilation time dependency in the build output.
28224 * nscd/nscd_stat.c (STATDATA_VERSION)
28225 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28226 (STATDATA_VERSION_FULL): New macro definitions.
28227 (compilation): Remove.
28228 (struct statdata): Adjust version member.
28229 (send_stats): Set version from STATDATA_VERSION_FULL.
28230 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28231
28232 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28233
28234 * configure.ac (--enable-add-ons): Remove option.
28235 (machine): Do not mention add-ons in comment.
28236 (LIBC_PRECONFIGURE): Likewise.
28237 (add_ons): Remove variable and sanity checks and logic to locate
28238 add-ons.
28239 (add_ons_automatic): Remove variable.
28240 (configured_add_ons): Likewise.
28241 (add_ons_sfx): Likewise.
28242 (add_ons_pfx): Likewise.
28243 (add_on_subdirs): Likewise.
28244 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28245 consideration of add-ons in Implies handling.
28246 (sysdeps_add_ons): Likewise.
28247 * configure: Regenerated.
28248 * libidn/configure.ac: Remove.
28249 * libidn/configure: Likewise.
28250 * sysdeps/unix/inet/configure.ac: New file.
28251 * sysdeps/unix/inet/configure: New generated file.
28252 * sysdeps/unix/inet/Subdirs: Add libidn.
28253 * Makeconfig (sysdeps-srcdirs): Remove variable.
28254 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28255 ($(common-objpfx)config.status): Do not depend on add-on files.
28256 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28257 comment.
28258 (all-subdirs): Do not include $(add-on-subdirs).
28259 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28260 * config.make.in (add-ons): Remove variable.
28261 (add-on-subdirs): Likewise.
28262 (sysdeps-add-ons): Likewise.
28263 * manual/Makefile (add-chapters): Remove.
28264 ($(objpfx)texis): Do not depend on $(add-chapters).
28265 (nonexamples): Do not handle $(add-chapters).
28266 (examples): Do not handle $(add-ons).
28267 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28268 libc-texinfo.sh.
28269 * manual/install.texi (Installation): Do not mention add-ons.
28270 (--enable-add-ons): Do not document configure option.
28271 * INSTALL: Regenerated.
28272 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28273 * manual/maint.texi (Hierarchy Conventions): Do not mention
28274 add-ons.
28275 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28276 --enable-add-ons.
28277 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28278 add-ons.
28279 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28280 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28281
28282 2017-10-05 Andreas Schwab <schwab@suse.de>
28283
28284 [BZ #15142]
28285 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28286 (_IO_flush_all_lockp): Always lock list_all_lock.
28287 (_IO_flush_all_linebuffered): Likewise.
28288 (_IO_unbuffer_all): Likewise.
28289
28290 2017-10-05 Florian Weimer <fweimer@redhat.com>
28291
28292 [BZ #15436]
28293 Do not flush stdio streams on abort.
28294 * stdlib/abort.c (fflush): Remove macro definition.
28295 (abort): Remove stages related to stdio flushing.
28296
28297 2017-10-05 Florian Weimer <fweimer@redhat.com>
28298
28299 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28300
28301 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28302
28303 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28304
28305 2017-10-05 Florian Weimer <fweimer@redhat.com>
28306
28307 * support/support_format_hostent.c (support_format_hostent): Add
28308 more error information for NETDB_INTERNAL.
28309
28310 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28311
28312 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28313 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28314 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28315 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28316 AC_DEFINE if multi-arch is enabled.
28317 * sysdeps/i386/configure: Regenerated.
28318
28319 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28320
28321 * Makeconfig (+link-static-before-libc): Use
28322 $(DEFAULT-LDFLAGS-$(@F)).
28323 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28324 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28325 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28326
28327 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28328
28329 * elf/Makefile (tests): Add tst-main1.
28330 (modules-names): Add tst-main1mod.
28331 ($(objpfx)tst-main1): New.
28332 (CRT-tst-main1): Likewise.
28333 (LDFLAGS-tst-main1): Likewise.
28334 (LDLIBS-tst-main1): Likewise.
28335 (tst-main1mod.so-no-z-defs): Likewise.
28336 * elf/tst-main1.c: New file.
28337 * elf/tst-main1mod.c: Likewise.
28338
28339 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28340
28341 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28342
28343 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28344
28345 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28346 (fma): Define using libm_alias_double.
28347 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28348 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28349 <math_ldbl_opt.h>.
28350 (fmal): Do not define as compat symbol here.
28351 * sysdeps/alpha/fpu/s_fma.c: New file.
28352
28353 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28354
28355 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28356
28357 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28358
28359 [BZ #22229]
28360 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28361 <math_ldbl_opt.h>
28362 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28363 and libc.
28364 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28365 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28366 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28367 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28369 Include <math_ldbl_opt.h>
28370 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28371 and libc.
28372 (compat_symbol): Undefine and redefine.
28373 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28374 <math_ldbl_opt.h>
28375 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28376 (compat_symbol): Undefine and redefine.
28377 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28378 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28379 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28380 GLIBC_2_1 for libm.
28381 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28382 GLIBC_2.0 copysignl symbol.
28383 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28384 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28385
28386 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28387
28388 2017-10-04 Florian Weimer <fweimer@redhat.com>
28389
28390 * scripts/check-local-headers.sh: Ignore nspr4 header file
28391 directory in addition to nspr.
28392
28393 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28394
28395 [BZ #17956]
28396 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28397 * configure: Regenerate.
28398 * crypt/Makefile (nss-cpp-flags): New variable.
28399 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28400 (CPPFLAGS-md5-crypt.c): Use it.
28401 * scripts/check-local-headers.sh: Ignore nspr header file
28402 directory.
28403
28404 2017-10-04 Andreas Schwab <schwab@suse.de>
28405
28406 * nis/Makefile (services): Remove compat.
28407 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28408 ($(objpfx)libnss_compat.so): Remove rule.
28409 * nis/Versions (libnss_compat): Remove.
28410 * nss/Makefile (services): Add compat.
28411 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28412 * nss/Versions (libnss_compat): Define.
28413 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28414 Don't include <rpc/types.h>. Replace bool_t by bool.
28415 * nss/nss_compat/compat-initgroups.c: Likewise.
28416 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28417 instead of <rpcsrv/ypclnt.h>.
28418 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28419 yp_get_default_domain.
28420 * nss/nss_compat/compat-pwd.c: Likewise.
28421 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28422 yp_get_default_domain.
28423 * nss/nss_compat/nisdomain.c: New file.
28424 * nss/nss_compat/nisdomain.h: Likewise.
28425
28426 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28427
28428 [BZ #22244]
28429 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28430 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28431
28432 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28433
28434 [BZ #22243]
28435 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28436 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28437
28438 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28439
28440 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28441 "movl main@GOTOFF(%ebx), %eax".
28442
28443 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28444
28445 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28446 allow undefined _DYNAMIC in PIE libc.a.
28447 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28448 Likewse.
28449
28450 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28451
28452 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28453 check _DYNAMIC.
28454
28455 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28456
28457 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28458 check _DYNAMIC.
28459
28460 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28461
28462 * math/test-math-iscanonical.cc (error): Replace bool with int.
28463
28464 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28465
28466 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28467 (modf): Define using libm_alias_double, only if [!__modf].
28468 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28469 <libm-alias-double.h>.
28470 (modf): Define using libm_alias_double, only if [!__modf].
28471 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28472 compat symbol here.
28473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28474 (weak_alias): Do not undefine and redefine.
28475 (strong_alias): Likewise.
28476 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28477 (weak_alias): Likewise.
28478 (strong_alias): Likewise.
28479
28480 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28481 (logb): Define using libm_alias_double, only if [!__logb].
28482 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28483 <libm-alias-double.h>.
28484 (logb): Define using libm_alias_double, only if [!__logb].
28485 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28486 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28487 (weak_alias): Do not undefine and redefine.
28488 (strong_alias): Likewise.
28489 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28490 (weak_alias): Likewise.
28491 (strong_alias): Likewise.
28492
28493 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28494
28495 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28496 Check SHARED instead PIC.
28497
28498 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28499
28500 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28501 [!__fmaf] (fmaf): Define using libm_alias_float.
28502
28503 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28504 (frexp): Define using libm_alias_double.
28505 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28506 <libm-alias-double.h>.
28507 (frexp): Define using libm_alias_double.
28508 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28509 compat symbol here.
28510
28511 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28512
28513 [BZ #22235]
28514 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28515 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28516 (CFLAGS-test-math-iscanonical.cc): New variable.
28517 * math/test-math-iscanonical.cc: New file.
28518 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28519 Provide a C++ implementation based on function overloading,
28520 rather than using __MATH_TG, which uses C-only builtins.
28521 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28522 Likewise.
28523 * sysdeps/powerpc/powerpc64le/Makefile
28524 (CFLAGS-test-math-iscanonical.cc): New variable.
28525
28526 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28527
28528 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28529 (ceil): Define using libm_alias_double.
28530 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28531 (floor): Define using libm_alias_double.
28532 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28533 <libm-alias-double.h>.
28534 (llround): Define using libm_alias_double.
28535 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28536 <libm-alias-double.h>.
28537 (lround): Define using libm_alias_double.
28538 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28539 <libm-alias-double.h>.
28540 (nearbyint): Define using libm_alias_double.
28541 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28542 <libm-alias-double.h>.
28543 (remquo): Define using libm_alias_double.
28544 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28545 (rint): Define using libm_alias_double.
28546 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28547 (round): Define using libm_alias_double.
28548 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28549 (trunc): Define using libm_alias_double.
28550 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28551 <libm-alias-double.h>.
28552 (ceil): Define using libm_alias_double.
28553 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28554 <libm-alias-double.h>.
28555 (floor): Define using libm_alias_double.
28556 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28557 <libm-alias-double.h>.
28558 (llround): Define using libm_alias_double.
28559 [_LP64] (lround): Likewise.
28560 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28561 <libm-alias-double.h>.
28562 [!_LP64] (lround): Define using libm_alias_double.
28563 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28564 <libm-alias-double.h>.
28565 (nearbyint): Define using libm_alias_double.
28566 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28567 <libm-alias-double.h>.
28568 (remquo): Define using libm_alias_double.
28569 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28570 <libm-alias-double.h>.
28571 (rint): Define using libm_alias_double.
28572 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28573 <libm-alias-double.h>.
28574 (round): Define using libm_alias_double.
28575 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28576 <libm-alias-double.h>.
28577 (trunc): Define using libm_alias_double.
28578 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28579 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28580 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28581 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28582 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28583 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28584 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28585 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28586 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28587
28588 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28589
28590 * math/w_remainder.c: New file.
28591 * math/w_remainderf.c: New file.
28592 * math/w_remainderl.c: New file.
28593
28594 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28595
28596 * elf/rtld.c (BOOTSTRAP_MAP): New.
28597 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28598 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28599 Likewise.
28600 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28601 Likewise.
28602 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28603 Likewise.
28604
28605 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28606
28607 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28608 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28609 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28610 rtld_hidden_data_ver): Define to empty.
28611 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28612 __assert_perror_fail): Likewise.
28613 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28614 (__rewinddir): Likewise.
28615 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28616 (__profile_frequency): Likewise.
28617 * include/setjmp.h (__sigsetjmp): Likewise.
28618 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28619 __libc_sigaction): Likewise.
28620 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28621 not set hidden attribute.
28622 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28623 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28624 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28625 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28626 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28627 __fxstatat64): Likewise.
28628 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28629 (__uname): Likewise.
28630 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28631 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28632 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28633 (NO_RTLD_HIDDEN): Set.
28634 * sysdeps/mach/hurd/configure: Refresh.
28635 * config.h.in: Refresh.
28636
28637 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28638
28639 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28640 (atan): Define using libm_alias_double.
28641 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28642 (tan): Define using libm_alias_double.
28643 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28644 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28645
28646 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28647 define as weak alias of __atan. Do not define any aliases if
28648 [__atan].
28649 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28650 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28651 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28652 as weak alias of __tan. Do not define any aliases if [__tan].
28653 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28654 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28655 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28656 __atan.
28657 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28658 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28659 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28660 and define as weak alias of __atan.
28661 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28662 __atan.
28663 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28664 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28665 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28666 define as weak alias of __tan.
28667
28668 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28669
28670 * math/w_lgamma.c: New file.
28671 * math/w_lgammaf.c: New file.
28672 * math/w_lgammal.c: New file.
28673
28674 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28675
28676 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28677 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28678 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28679 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28680 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28681 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28682 * sysdeps/i386/fpu/w_log2f.c: New file.
28683 * sysdeps/i386/fpu/w_logf.c: New file.
28684 * sysdeps/i386/fpu/w_powf.c: New file.
28685 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28686 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28687 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28688
28689 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28690 H.J. Lu <hongjiu.lu@intel.com>
28691
28692 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28693 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28694 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28695 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28696 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28697 the new expf code.
28698 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28699 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28700 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28701 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28702 * sysdeps/i386/fpu/w_exp2f.c: New file.
28703 * sysdeps/i386/fpu/w_expf.c: New file.
28704 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28705 * sysdeps/x86_64/fpu/w_expf.c: New file.
28706
28707 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28708
28709 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28710 (log2f): Likewise.
28711 (powf): Likewise.
28712 * math/w_log2f.c: New file.
28713 * math/w_logf.c: New file.
28714 * math/w_powf.c: New file.
28715 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28716 * math/w_logf_compat.c (__logf_compat): Likewise.
28717 * math/w_powf_compat.c (__powf_compat): Likewise.
28718 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28719 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28720 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28721 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28722 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28723 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28724 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28725 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28726 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28727 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28728 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28729 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28730 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28731 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28732 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28734 Likewise.
28735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28736 Likewise.
28737 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28738 Likewise.
28739 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28740 Likewise.
28741 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28742 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28743 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28744 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28745 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28746 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28747 Likewise.
28748 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28749 Likewise.
28750 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28751 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28752 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28753
28754 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28755
28756 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28757 (sysdep_routines): Add memrchr_power8.
28758 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28759 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28760 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28761 New file.
28762 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28763 (memrchr): Add __memrchr_power8 to ifunc list.
28764 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28765
28766 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28767
28768 [BZ #18822]
28769 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28770 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28771 libc_hidden_def.
28772 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28773 (__posix_fallocate64_l64): Likewise.
28774
28775 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28776
28777 [BZ #18822]
28778 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28779 (__sched_setaffinity_new): Add libc_hidden_proto and
28780 libc_hidden_def.
28781
28782 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28783
28784 [BZ #18822]
28785 * include/glob.h (__glob64): Add libc_hidden_proto.
28786 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28787 libc_hidden_def.
28788
28789 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28790
28791 [BZ #18822]
28792 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28793 attribute_hidden.
28794
28795 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28796
28797 [BZ #18822]
28798 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28799
28800 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28801
28802 [BZ #18822]
28803 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28804 libc_hidden_def.
28805
28806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28807
28808 [BZ #18822]
28809 * csu/version.c (__libc_print_version): Add attribute_hidden.
28810
28811 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28812
28813 [BZ #18822]
28814 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28815
28816 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28817
28818 [BZ #18822]
28819 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28820
28821 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28822
28823 [BZ #18822]
28824 * nscd/nscd_helper.c (__nis_hash): New prototype.
28825
28826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28827
28828 [BZ #18822]
28829 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28830 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28831 libc_hidden_def.
28832 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28833 * termios/tcgetattr.c (__tcgetattr): Likewise.
28834
28835 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28836
28837 [BZ #18822]
28838 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28839 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28840 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28841 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28842 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28843
28844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28845
28846 [BZ #18822]
28847 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28848
28849 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28850
28851 [BZ #18822]
28852 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28853 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28854
28855 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28856
28857 [BZ #18822]
28858 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28859
28860 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28861
28862 [BZ #18822]
28863 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28864 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28865
28866 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28867
28868 [BZ #18822]
28869 * include/ifreq.h: New file.
28870 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28871 (__ifreq): Likewise.
28872 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28873 (__ifreq): Likewise.
28874
28875 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28876
28877 [BZ #18822]
28878 * include/idna.h: New file.
28879 * inet/getnameinfo.c: Include <idna.h> instead of
28880 <libidn/idna.h>.
28881 (__idna_to_unicode_lzlz): Removed.
28882 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28883 <libidn/idna.h>.
28884 (__idna_to_ascii_lz): Removed.
28885 (__idna_to_unicode_lzlz): Likewise.
28886
28887 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28888
28889 [BZ #18822]
28890 * include/plural-exp.h: New file.
28891 * intl/plural-exp.c: Include <plural-exp.h> instead of
28892 "plural-exp.h".
28893
28894 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28895
28896 [BZ #18822]
28897 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28898 "getsourcefilter.h".
28899 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28900 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28901 "getsourcefilter.h".
28902 (__get_sol): Removed.
28903
28904 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28905
28906 [BZ #18822]
28907 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28908 to ...
28909 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28910
28911 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28912
28913 [BZ #18822]
28914 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28915 attribute_hidden.
28916
28917 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28918
28919 [BZ #18822]
28920 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28921
28922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28923
28924 [BZ #18822]
28925 * include/search.h (__tdestroy): Add libc_hidden_proto.
28926 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28927
28928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28929
28930 [BZ #18822]
28931 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28932
28933 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28934
28935 [BZ #18822]
28936 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28937 attribute_hidden.
28938
28939 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28940
28941 [BZ #18822]
28942 * include/signal.h (__kill): Add libc_hidden_proto.
28943 (__sigblock): Likewise.
28944 (__sigprocmask): Likewise.
28945 (__sigaltstack): Likewise.
28946 * signal/kill.c (__kill): Add libc_hidden_def.
28947 * signal/sigblock.c (__sigblock): Likewise.
28948 * signal/sigprocmask.c (__sigprocmask): Likewise.
28949 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28950 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28951 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28952 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28953 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28954 Likewise.
28955 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28956 Likewise.
28957 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28958 (__sigprocmask): Likewise.
28959 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28960 Likewise.
28961 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28962 (__sigprocmask): Likewise.
28963 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28964 Likewise.
28965
28966 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28967
28968 [BZ #18822]
28969 * include/string.h (__strsep): Add libc_hidden_proto.
28970 * string/strsep.c (__strsep): Add libc_hidden_def.
28971
28972 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28973
28974 [BZ #18822]
28975 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28976 attribute_hidden.
28977 (__spawni): Likewise.
28978
28979 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28980
28981 [BZ #18822]
28982 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28983 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28984 libc_hidden_def.
28985
28986 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28987
28988 [BZ #18822]
28989 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28990
28991 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28992
28993 [BZ #18822]
28994 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28995 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28996 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28997 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28998 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28999 Likewise.
29000 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
29001 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
29002
29003 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29004
29005 [BZ #18822]
29006 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
29007 (__dcigettext): Likewise.
29008
29009 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29010
29011 [BZ #18822]
29012 * include/sys/sysinfo.h (__get_nprocs_conf): Add
29013 libc_hidden_proto.
29014 (__get_nprocs): Likewise.
29015 (__get_phys_pages): Likewise.
29016 (__get_avphys_pages): Likewise.
29017 (__get_child_max): Add attribute_hidden.
29018 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
29019 (__get_nprocs): Likewise.
29020 (__get_phys_pages): Likewise.
29021 (__get_avphys_pages): Likewise.
29022 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
29023 libc_hidden_def.
29024 (__get_nprocs): Likewise.
29025 (__get_phys_pages): Likewise.
29026 (__get_avphys_pages): Likewise.
29027 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
29028 libc_hidden_def.
29029 (__get_nprocs_conf): Likewise.
29030 (__get_phys_pages): Likewise.
29031 (__get_avphys_pages): Likewise.
29032
29033 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29034
29035 [BZ #18822]
29036 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
29037 attribute_hidden.
29038 (__netlink_close): Likewise.
29039 (__netlink_free_handle): Likewise.
29040 (__netlink_request): Likewise.
29041
29042 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29043
29044 [BZ #18822]
29045 * include/rpc/rpc.h (__rpc_thread_variables): Add
29046 attribute_hidden.
29047 (__rpc_thread_svc_cleanup): Likewise.
29048 (__rpc_thread_clnt_cleanup): Likewise.
29049 (__rpc_thread_key_cleanup): Likewise.
29050
29051 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29052
29053 [BZ #18822]
29054 * include/sys/uio.h (__readv): Add libc_hidden_proto.
29055 (__writev): Likewise.
29056 * misc/readv.c (__readv): Add libc_hidden_def.
29057 * misc/writev.c (__writev): Likewise.
29058 * sysdeps/posix/readv.c (__readv): Likewise.
29059 * sysdeps/posix/writev.c (__writev): Likewise.
29060 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
29061 (__readv): Likewise.
29062 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
29063 (__writev): Likewise.
29064
29065 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29066
29067 [BZ #18822]
29068 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
29069 (__regcomp): Add libc_hidden_proto.
29070 (__regexec): Likewise.
29071 (__regfree): Likewise.
29072 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
29073 (__regfree): Likewise.
29074 * posix/regexec.c (__regexec): Likewise.
29075
29076 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29077
29078 [BZ #18822]
29079 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
29080 (__getutent): Likewise.
29081 (__getutid): Likewise.
29082 (__getutline): Likewise.
29083 (__pututline): Likewise.
29084 (__getutent_r): Likewise.
29085 (__getutid_r): Likewise.
29086 (__getutline_r): Likewise.
29087 (__utmpname): Add attribute_hidden.
29088 (__setutent): Likewise.
29089 (__endutent): Likewise.
29090 * login/getutent.c (__getutent): Add libc_hidden_def.
29091 * login/getutent_r.c (__getutent_r): Likewise.
29092 (__pututline): Likewise.
29093 * login/getutid.c (__getutid): Likewise.
29094 * login/getutid_r.c (__getutid_r): Likewise.
29095 * login/getutline.c (__getutline): Likewise.
29096 * login/getutline_r.c (__getutline_r): Likewise.
29097 * login/updwtmp.c (__updwtmp): Likewise.
29098
29099 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29100
29101 [BZ #18822]
29102 * include/dirent.h (__opendir): Always add attribute_hidden.
29103 (__fdopendir): Likewise.
29104 (__closedir): Likewise.
29105 (__readdir): Likewise.
29106 (__readdir64): Add libc_hidden_proto.
29107 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29108 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29109 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29110 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29111 New alias.
29112
29113 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29114
29115 [BZ #18822]
29116 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29117 * include/netdb.h (__gethostbyaddr_r): Likewise.
29118 (__gethostbyname_r): Likewise.
29119 (__gethostbyname2_r): Likewise.
29120 (__getnetbyaddr_r): Likewise.
29121 (__getnetbyname_r): Likewise.
29122 (__getservbyname_r): Likewise.
29123 (__getservbyport_r): Likewise.
29124 (__getprotobyname_r): Likewise.
29125 (__getprotobynumber_r): Likewise.
29126 (__getnetgrent_r): Likewise.
29127 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29128 (__getrpcbynumber_r): Likewise.
29129 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29130
29131 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29132
29133 [BZ #18822]
29134 * include/stdio.h (__fcloseall): Add attribute_hidden.
29135 (__getline): Likewise.
29136 (__path_search): Likewise.
29137 (__gen_tempname): Likewise.
29138 (__libc_message): Likewise.
29139 (__flockfile): Likewise.
29140 (__funlockfile): Likewise.
29141 (__fxprintf): Likewise.
29142 (__fxprintf_nocancel): Likewise.
29143
29144 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29145
29146 [BZ #18822]
29147 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29148 (__sgetsgent_r): Likewise.
29149
29150 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29151
29152 [BZ #18822]
29153 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29154 (__statfs64): Likewise.
29155 (__fstatfs64): Likewise.
29156 * include/sys/statvfs.h (__statvfs64): Likewise.
29157 (__fstatvfs64): Likewise.
29158 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29159 (__statfs_filesize_max): Likewise.
29160 (__statfs_symlinks): Likewise.
29161 (__statfs_chown_restricted): Likewise.
29162
29163 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29164
29165 [BZ #18822]
29166 * include/time.h (__tzstring): Add attribute_hidden.
29167 (__tzfile_read): Likewise.
29168 (__tzfile_compute): Likewise.
29169 (__tzfile_default): Likewise.
29170 (__tzset_parse_tz): Likewise.
29171 (__offtime): Likewise.
29172 (__asctime_r): Likewise.
29173 (__tzset): Likewise.
29174 (__tz_convert): Likewise.
29175 (__getdate_r): Likewise.
29176 (__getclktck): Likewise.
29177
29178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29179
29180 [BZ #18822]
29181 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29182 (__nscd_unmap): Likewise.
29183 (__nscd_cache_search): Likewise.
29184 (__nscd_get_nl_timestamp): Likewise.
29185 (__nscd_getpwnam_r): Likewise.
29186 (__nscd_getpwuid_r): Likewise.
29187 (__nscd_getgrnam_r): Likewise.
29188 (__nscd_getgrgid_r): Likewise.
29189 (__nscd_gethostbyname_r): Likewise.
29190 (__nscd_gethostbyname2_r): Likewise.
29191 (__nscd_gethostbyaddr_r): Likewise.
29192 (__nscd_getai): Likewise.
29193 (__nscd_getgrouplist): Likewise.
29194 (__nscd_getservbyname_r): Likewise.
29195 (__nscd_getservbyport_r): Likewise.
29196 (__nscd_innetgr): Likewise.
29197 (__nscd_setnetgrent): Likewise.
29198
29199 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29200
29201 [BZ #18822]
29202 * include/gmp.h: Declare internal functions only if _ISOMAC is
29203 undefined.
29204 (__mpn_extract_double): Add attribute_hidden.
29205 (__mpn_extract_long_double): Likewise.
29206 (__mpn_extract_float128): Likewise.
29207 (__mpn_construct_float): Likewise.
29208 (__mpn_construct_double): Likewise.
29209 (__mpn_construct_long_double): Likewise.
29210 (__mpn_construct_float128): Likewise.
29211 (mpn_add_1): Likewise.
29212 (mpn_addmul_1): Likewise.
29213 (mpn_add_n): Likewise.
29214 (mpn_cmp): Likewise.
29215 (mpn_divrem): Likewise.
29216 (mpn_lshift): Likewise.
29217 (mpn_mul): Likewise.
29218 (mpn_mul_1): Likewise.
29219 (mpn_rshift): Likewise.
29220 (mpn_sub_1): Likewise.
29221 (mpn_submul_1): Likewise.
29222 (mpn_sub_n): Likewise.
29223
29224 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29225
29226 [BZ #18822]
29227 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29228 (__wcscat): Likewise.
29229 (__btowc): Likewise.
29230 (__wcrtomb): Likewise.
29231 (__mbsrtowcs): Likewise.
29232 (__wcsrtombs): Likewise.
29233 (__mbsnrtowcs): Likewise.
29234 (__wcsnrtombs): Likewise.
29235 (__wcsncpy): Likewise.
29236 (__wcpncpy): Likewise.
29237 (__wmemcpy): Likewise.
29238 (__wmempcpy): Likewise.
29239 (__wmemmove): Likewise.
29240 (__wcschrnul): Likewise.
29241 (__vfwscanf): Likewise.
29242 (__vswprintf): Likewise.
29243 (__fwprintf): Likewise.
29244 (__vfwprintf): Likewise.
29245
29246 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29247
29248 [BZ #18822]
29249 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29250 (__getgrgid_r): Likewise.
29251 (__getgrnam_r): Likewise.
29252 * include/pwd.h (__getpwuid_r): Likewise.
29253 (__getpwnam_r): Likewise.
29254 (__fgetpwent_r): Likewise.
29255 * include/shadow.h (__getspnam_r): Likewise.
29256 (__sgetspent_r): Likewise.
29257 (__fgetspent_r): Likewise.
29258
29259 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29260
29261 [BZ #18822]
29262 * include/unistd.h (__access): Add attribute_hidden.
29263 (__lseek64): Likewise.
29264 (__libc_pread64): Likewise.
29265 (__pipe2): Likewise.
29266 (__sleep): Likewise.
29267 (__chdir): Likewise.
29268 (__fchdir): Likewise.
29269 (__getcwd): Likewise.
29270 (__rmdir): Likewise.
29271 (__execvpe): Likewise.
29272 (__execve): Likewise.
29273 (__setsid): Likewise.
29274 (__getuid): Likewise.
29275 (__geteuid): Likewise.
29276 (__getgid): Likewise.
29277 (__getegid): Likewise.
29278 (__getgroups): Likewise.
29279 (__group_member): Likewise.
29280 (__ttyname_r): Likewise.
29281 (__isatty): Likewise.
29282 (__readlink): Likewise.
29283 (__unlink): Likewise.
29284 (__gethostname): Likewise.
29285 (__profil): Likewise.
29286 (__getdtablesize): Likewise.
29287 (__brk): Likewise.
29288 (__ftruncate): Likewise.
29289 (__ftruncate64): Likewise.
29290
29291 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29292
29293 [BZ #18822]
29294 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29295 * argp/argp-fs-xinl.c: Likewise.
29296 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29297 * argp/argp-parse.c: Include <argp.h>.
29298 * argp/argp-xinl.c: Likewise.
29299 * include/argp-fmtstream.h: New file.
29300 * include/argp.h (__argp_error): Add attribute_hidden.
29301 (__argp_failure): Likewise.
29302 (__argp_input): Likewise.
29303 (__argp_state_help): Likewise.
29304
29305 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29306
29307 [BZ #18822]
29308 * include/wchar.h (____wcstof_l_internal): New prototype.
29309 (____wcstod_l_internal): Likewise.
29310 (____wcstold_l_internal): Likewise.
29311 (____wcstol_l_internal): Likewise.
29312 (____wcstoul_l_internal): Likewise.
29313 (____wcstoll_l_internal): Likewise.
29314 (____wcstoull_l_internal): Likewise.
29315 (____wcstof128_l_internal): Likewise.
29316 * sysdeps/ieee754/float128/wcstof128.c
29317 (____wcstof128_l_internal): Removed.
29318 * sysdeps/ieee754/float128/wcstof128_l.c
29319 (____wcstof128_l_internal): Likewise.
29320 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29321 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29322 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29323 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29324 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29325 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29326 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29327 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29328 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29329 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29330
29331 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29332
29333 [BZ #18822]
29334 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29335 instead of <sys/statvfs.h>.
29336 (__internal_statvfs): Removed.
29337 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29338 instead of <sys/statvfs.h>.
29339 (__internal_statvfs64): Removed.
29340 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29341 "internal_statvfs.h" instead of <sys/statvfs.h>.
29342 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29343 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29344 instead of <sys/statvfs.h>.
29345 (__internal_statvfs): Removed.
29346 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29347 instead of <sys/statvfs.h>.
29348 (__internal_statvfs64): Removed.
29349
29350 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29351
29352 [BZ #18822]
29353 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29354 (__gconv_close): Likewise.
29355 (__gconv): Likewise.
29356 (__gconv_find_transform): Likewise.
29357 (__gconv_lookup_cache): Likewise.
29358 (__gconv_compare_alias_cache): Likewise.
29359 (__gconv_load_cache): Likewise.
29360 (__gconv_get_path): Likewise.
29361 (__gconv_close_transform): Likewise.
29362 (__gconv_release_cache): Likewise.
29363 (__gconv_find_shlib): Likewise.
29364 (__gconv_release_shlib): Likewise.
29365 (__gconv_get_builtin_trans): Likewise.
29366 (__gconv_compare_alias): Likewise.
29367 * include/dlfcn.h (_dlerror_run): Likewise.
29368 * include/stdio.h (__fortify_fail_abort): Likewise.
29369 * include/time.h (__tz_compute): Likewise.
29370 (__strptime_internal): Likewise.
29371 * intl/gettextP.h (_nl_find_domain): Likewise.
29372 (_nl_load_domain): Likewise.
29373 (_nl_find_msg): Likewise.
29374 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29375 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29376 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29377 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29378 (__gai_find_request): Likewise.
29379 (__gai_remove_request): Likewise.
29380 (__gai_notify): Likewise.
29381 (__gai_notify_only): Likewise.
29382 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29383 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29384 (_dl_non_dynamic_init): Likewise.
29385 (_dl_aux_init): Likewise.
29386 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29387 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29388 Likewise.
29389 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29390 (__wcsmbs_clone_conv): Likewise.
29391 (__wcsmbs_named_conv): Likewise.
29392
29393 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29394
29395 [BZ #18822]
29396 * include/stdlib.h (__random): Add attribute_hidden.
29397 (__random_r): Likewise.
29398 (__srandom_r): Likewise.
29399 (__initstate_r): Likewise.
29400 (__setstate_r): Likewise.
29401 (__erand48_r): Likewise.
29402 (__nrand48_r): Likewise.
29403 (__jrand48_r): Likewise.
29404 (__srand48_r): Likewise.
29405 (__seed48_r): Likewise.
29406 (__lcong48_r): Likewise.
29407 (__drand48_iterate): Likewise.
29408 (__setenv): Likewise.
29409 (__unsetenv): Likewise.
29410 (__clearenv): Likewise.
29411 (__ptsname_r): Likewise.
29412 (__posix_openpt): Likewise.
29413 (__add_to_environ): Likewise.
29414 (__realpath): Add libc_hidden_proto.
29415 (__ecvt_r): Likewise.
29416 (__fcvt_r): Likewise.
29417 (__qecvt_r): Likewise.
29418 (__qfcvt_r): Likewise.
29419 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29420 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29421
29422 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29423
29424 [BZ #18822]
29425 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29426 * include/time.h (__mktime_internal): Likewise.
29427 * libio/iolibio.h (__fopen_internal): Likewise.
29428
29429 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29430
29431 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29432 pointer in frame.
29433 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29434 Correct offset used to restore PIC register.
29435
29436 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29437
29438 [BZ libc/22165]
29439 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29440 code to load address of __getcontext_ret when generating PIC code.
29441
29442 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29443
29444 * elf/Makefile (tests-static-internal): Add
29445 tst-tls1-static-non-pie.
29446 (LDFLAGS-tst-tls1-static-non-pie): New.
29447 * elf/tst-tls1-static-non-pie.c: New file.
29448
29449 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29450
29451 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29452 (asinh): Define using libm_alias_double.
29453 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29454 (cbrt): Define using libm_alias_double.
29455 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29456 <libm-alias-double.h>.
29457 (copysign): Define using libm_alias_double.
29458 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29459 (erf): Define using libm_alias_double.
29460 (erfc): Likewise.
29461 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29462 (expm1): Define using libm_alias_double.
29463 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29464 (fabs): Define using libm_alias_double.
29465 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29466 libm_alias_double.
29467 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29468 <libm-alias-double.h>.
29469 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29470 libm_alias_double.
29471 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29472 <libm-alias-double.h>.
29473 (getpayload): Define using libm_alias_double.
29474 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29475 <libm-alias-double.h>.
29476 (llrint): Define using libm_alias_double.
29477 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29478 (lrint): Define using libm_alias_double.
29479 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29480 <libm-alias-double.h>.
29481 (nextup): Define using libm_alias_double.
29482 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29483 <libm-alias-double.h>.
29484 (roundeven): Define using libm_alias_double.
29485 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29486 libm_alias_double.
29487 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29488 <libm-alias-double.h>.
29489 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29490 using libm_alias_double.
29491 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29492 (cos): Define using libm_alias_double.
29493 (sin): Likewise.
29494 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29495 <libm-alias-double.h>.
29496 (sincos): Define using libm_alias_double.
29497 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29498 (tanh): Define using libm_alias_double.
29499 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29500 <libm-alias-double.h>.
29501 (totalorder): Define using libm_alias_double.
29502 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29503 <libm-alias-double.h>.
29504 (totalordermag): Define using libm_alias_double.
29505 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29506 libm_alias_double.
29507 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29508 libm_alias_double.
29509 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29510 <libm-alias-double.h>.
29511 (getpayload): Define using libm_alias_double.
29512 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29513 <libm-alias-double.h>.
29514 (roundeven): Define using libm_alias_double.
29515 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29516 <libm-alias-double.h>.
29517 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29518 <libm-alias-double.h>.
29519 (totalorder): Define using libm_alias_double.
29520 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29521 <libm-alias-double.h>.
29522 (totalordermag): Define using libm_alias_double.
29523 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29524 libc compat symbol here.
29525 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29526 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29527 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29528 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29529 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29530 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29531 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29532 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29533 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29534 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29535
29536 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29537
29538 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29539 _dl_relocate_static_pie instead of _dl_start to compute load
29540 address in static PIE. Return 0 if _DYNAMIC is undefined for
29541 static executable.
29542
29543 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29544
29545 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29546 _DYNAMIC is undefined for static executable.
29547
29548 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29549
29550 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29551
29552 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29553
29554 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29555
29556 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29557
29558 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29559 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29560 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29561 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29562 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29563 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29564 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29565 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29566 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29567 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29568 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29569 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29570 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29571 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29572 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29573 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29574 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29575
29576 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29577
29578 * math/bits/cmathcalls.h (cimag): Remove inline.
29579 (creal): Remove inline.
29580 (conj): Remove inline.
29581
29582 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29583
29584 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29585 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29586 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29587 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29588 (issignalingf_inline): Likewise.
29589 (POWF_LOG2_TABLE_BITS): Likewise.
29590 (POWF_LOG2_POLY_ORDER): Likewise.
29591 (POWF_SCALE_BITS): Likewise.
29592 (POWF_SCALE): Likewise.
29593 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29594 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29595 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29596
29597 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29598
29599 * math/Makefile (type-float-routines): Add e_log2f_data.
29600 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29601 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29602 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29603 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29604 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29605 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29606 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29607
29608 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29609
29610 * math/Makefile (type-float-routines): Add e_logf_data.
29611 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29612 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29613 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29614 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29615 * sysdeps/i386/fpu/e_logf_data.c: New file.
29616 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29617 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29618
29619 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29620
29621 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29622 undefined _DYNAMIC in PIE libc.a.
29623 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29624 Likewse.
29625
29626 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29627
29628 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29629 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29630 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29631 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29632 (__signbit): Remove.
29633 (__signbitl): Remove.
29634 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29635 (__signbit): Remove.
29636 (__signbitl): Remove.
29637 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29638 (__signbit): Remove.
29639 (__signbitl): Remove.
29640 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29641 (__signbit): Remove.
29642 (__signbitl): Remove.
29643 * sysdeps/tile/bits/mathinline.h: Delete file.
29644 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29645 (__signbit): Remove.
29646 (__signbitl): Remove.
29647
29648 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29649
29650 * math/math.h: Improve handling of C99 isgreater macros.
29651 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29652 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29653 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29654 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29655 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29656
29657 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29658
29659 * sysdeps/aarch64/libm-test-ulps: Update.
29660
29661 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29662
29663 [BZ #22225]
29664 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29665 math_opt_barrier on argument when doing arithmetic on it.
29666 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29667 Likewise. Use math_force_eval not math_opt_barrier after
29668 arithmetic.
29669 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29670 math_opt_barrier on argument when doing arithmetic on it.
29671 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29672 Likewise.
29673
29674 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29675
29676 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29677 libc_hidden_def.
29678 (__freeifaddrs): Likewise.
29679
29680 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29681
29682 * include/dirent.h (__dirfd): New declaration.
29683 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29684 alias.
29685 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29686 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29687 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29688 * include/unistd.h (__revoke): New declaration.
29689 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29690 alias.
29691 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29692 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29693 revoke.
29694 * include/dirent.h (__seekdir): New declaration.
29695 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29696 redefine as weak alias.
29697 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29698 of seekdir.
29699 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29700 and use libc_hidden_def on them.
29701 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29702 them.
29703 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29704 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29705 instead of getifaddrs and freeifaddrs.
29706
29707 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29708
29709 [BZ #18822]
29710 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29711 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29712 (__dso_handle): Remove declaration.
29713 * dlfcn/tstatexit.c (__dso_handle): Removed.
29714 (main): Don't check __dso_handle.
29715 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29716 (main): Don't check __dso_handle.
29717 * include/dso_handle.h: New file.
29718 * malloc/mtrace.c: Include <dso_handle.h>.
29719 (mtrace): Pass __dso_handle directly.
29720 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29721 (__dso_handle): Remove declaration.
29722 (__pthread_atfork): Pass __dso_handle directly.
29723 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29724 (__dso_handle): Removed.
29725 * posix/wordexp-test.c: Include <dso_handle.h>.
29726 (__dso_handle): Remove declaration.
29727 (__app_register_atfork): Pass __dso_handle directly.
29728 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29729 (__dso_handle): Remove declaration.
29730 (at_quick_exit): Pass __dso_handle directly.
29731 * stdlib/atexit.c: Include <dso_handle.h>.
29732 (__dso_handle): Remove declaration.
29733 (atexit): Pass __dso_handle directly.
29734 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29735 (__dso_handle): Removed.
29736
29737 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29738
29739 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29740 using VDSO.
29741
29742 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29743
29744 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29745 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29746 values to correct default value for given type.
29747
29748 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29749
29750 [BZ #22101]
29751 * elf/Makefile (tests): Add tst-debug1.
29752 ($(objpfx)tst-debug1): New.
29753 ($(objpfx)tst-debug1.out): Likewise.
29754 ($(objpfx)tst-debug1mod1.so): Likewise.
29755 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29756 with p_filesz == 0.
29757 * elf/tst-debug1.c: New file.
29758
29759 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29760
29761 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29762 Define using __ifunc.
29763
29764 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29765
29766 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29767 exp2f() values.
29768
29769 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29770
29771 [BZ #22156]
29772 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29773
29774 2017-09-26 Florian Weimer <fweimer@redhat.com>
29775
29776 * resolv/Makefile (tests-internal): Fix typo in comment.
29777
29778 2017-09-26 Florian Weimer <fweimer@redhat.com>
29779
29780 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29781
29782 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29783
29784 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29785 Use an union instead of a max_align_t array for __space,
29786 so that __space is the same size on all platforms.
29787 * malloc/scratch_buffer_grow_preserve.c
29788 (__libc_scratch_buffer_grow_preserve): Likewise.
29789
29790 [BZ #22183]
29791 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29792 version to 2.
29793 * posix/Makefile (routines): Add glob-lstat-compat and
29794 glob64-lstat-compat.
29795 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29796 * posix/glob-lstat-compat.c: New file.
29797 * posix/glob64-lstat-compat.c: Likewise.
29798 * posix/tst-glob_lstat_compat.c: Likewise.
29799 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29800 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29801 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29802 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29803 Likewise.
29804 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29805 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29806 * posix/glob.c (glob_lstat): New function.
29807 (glob): Rename to __glob and add versioned symbol to 2.27.
29808 (glob_in_dir): Use glob_lstat.
29809 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29810 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29811 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29812 2.27.
29813 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29814 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29815 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29816 gl_lstat on glob call.
29817 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29818 and glob64 symbols.
29819 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29820 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29821 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29822 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29823 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29824 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29825 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29826 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29827 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29828 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29829 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29830 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29831 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29832 Likewise.
29833 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29834 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29835 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29836 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29837 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29838 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29839 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29840 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29841 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29842 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29843 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29844 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29845
29846 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29847
29848 * configure.ac (AS): Require binutils 2.25 or later.
29849 * configure: Regenerated.
29850
29851 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29852
29853 [BZ #22207]
29854 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29855 VM size.
29856
29857 2017-09-25 DJ Delorie <dj@redhat.com>
29858
29859 [BZ #22161]
29860 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29861 resetting timeout.
29862
29863 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29864
29865 * sysdeps/ieee754/dbl-64/sincos32.h
29866 [SINCCOS32_H]: Remove define.
29867 [SINCOS32_H]: Define.
29868
29869 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29870
29871 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29872 (exp2f): Likewise.
29873 * math/w_exp2f.c: New file.
29874 * math/w_expf.c: New file.
29875 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29876 * math/w_expf_compat.c (__expf_compat): Likewise.
29877 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29878 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29879 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29880 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29881 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29882 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29883 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29884 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29885 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29886 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29887 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29888 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29889 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29890 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29892 Likewise.
29893 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29894 Likewise.
29895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29896 Likewise.
29897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29898 Likewise.
29899 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29900 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29901 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29902 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29903 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29904 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29905 Likewise.
29906 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29907 Likewise.
29908 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29909 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29910 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29911
29912 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29913
29914 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29915 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29916 (roundtoint, converttoint): Likewise.
29917 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29918 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29919 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29920 * sysdeps/ieee754/flt-32/math_config.h: New file.
29921 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29922 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29923 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29924 * sysdeps/i386/fpu/math_errf.c: New file.
29925 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29926 * sysdeps/ia64/fpu/math_errf.c: New file.
29927 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29928 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29929
29930 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29931
29932 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29933 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29934 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29935 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29936 to make sure that these symbols are defined.
29937 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29938 of <limits.h>
29939 (__need_NULL): Do not define.
29940 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29941 alignment.
29942 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29943 CMGROUP_MAX, cmsgcred): Do not define.
29944 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29945 NULL.
29946 * bits/socket.h: Likewise.
29947 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29948 __gettimeofday instead of gettimeofday.
29949 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29950 instead of settimeofday.
29951
29952 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29953
29954 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29955 (asinhf): Define using libm_alias_float.
29956 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29957 (atanf): Define using libm_alias_float.
29958 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29959 (cbrtf): Define using libm_alias_float.
29960 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29961 (ceilf): Define using libm_alias_float.
29962 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29963 <libm-alias-float.h>.
29964 (copysignf): Define using libm_alias_float.
29965 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29966 (cosf): Define using libm_alias_float.
29967 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29968 (erff): Define using libm_alias_float.
29969 (erfcf): Likewise.
29970 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29971 (expm1f): Define using libm_alias_float.
29972 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29973 (fabsf): Define using libm_alias_float.
29974 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29975 (floorf): Define using libm_alias_float.
29976 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29977 (frexpf): Define using libm_alias_float.
29978 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29979 libm_alias_float.
29980 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29981 <libm-alias-float.h>.
29982 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29983 libm_alias_float.
29984 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29985 <libm-alias-float.h>.
29986 (getpayloadf): Define using libm_alias_float.
29987 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29988 <libm-alias-float.h>.
29989 (llrintf): Define using libm_alias_float.
29990 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29991 <libm-alias-float.h>.
29992 (llroundf): Define using libm_alias_float.
29993 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29994 (logbf): Define using libm_alias_float.
29995 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29996 (lrintf): Define using libm_alias_float.
29997 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29998 (lroundf): Define using libm_alias_float.
29999 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
30000 (modff): Define using libm_alias_float.
30001 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
30002 <libm-alias-float.h>.
30003 (nearbyintf): Define using libm_alias_float.
30004 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
30005 <libm-alias-float.h>.
30006 (nextafterf): Define using libm_alias_float.
30007 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
30008 <libm-alias-float.h>.
30009 (nextupf): Define using libm_alias_float.
30010 * sysdeps/ieee754/flt-32/s_remquof.c: Include
30011 <libm-alias-float.h>.
30012 (remquof): Define using libm_alias_float.
30013 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
30014 (rintf): Define using libm_alias_float.
30015 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
30016 <libm-alias-float.h>.
30017 (roundevenf): Define using libm_alias_float.
30018 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
30019 (roundf): Define using libm_alias_float.
30020 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
30021 using libm_alias_float.
30022 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
30023 <libm-alias-float.h>.
30024 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
30025 Define using libm_alias_float.
30026 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
30027 <libm-alias-float.h>.
30028 (sincosf): Define using libm_alias_float.
30029 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
30030 (sinf): Define using libm_alias_float.
30031 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
30032 (tanf): Define using libm_alias_float.
30033 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
30034 (tanhf): Define using libm_alias_float.
30035 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
30036 <libm-alias-float.h>.
30037 (totalorderf): Define using libm_alias_float.
30038 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
30039 <libm-alias-float.h>.
30040 (totalordermagf): Define using libm_alias_float.
30041 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
30042 (truncf): Define using libm_alias_float.
30043 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
30044 libm_alias_float.
30045 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
30046 libm_alias_float.
30047
30048 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30049
30050 [BZ #22146]
30051 math/math.h: Let fpclassify use the builtin in C++ mode, even
30052 when optimazing for size.
30053
30054 2017-09-22 Joseph Myers <joseph@codesourcery.com>
30055
30056 * csu/Makefile (generated): Do not add version-info.h.
30057 (before-compile): Likewise.
30058 (all-Banner-files): Remove variable.
30059 ($(objpfx)version-info.h): Remove rule.
30060 * csu/version.c (banner): Do not include "version-info.h".
30061 * libidn/Banner: Remove.
30062 * manual/contrib.texi (Simon Josefsson): New entry.
30063
30064 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30065
30066 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
30067 Remove conditionals on LDBL_MANT_DIG.
30068 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
30069 (__ieee754_lgammal_r): Likewise.
30070
30071 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30072
30073 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
30074 _Float128 and L().
30075 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
30076 _Float128 and L(). Replace _Float128 with long double and L(x)
30077 with xL, throughout the file.
30078 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30079 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30080 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30081 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30082
30083 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30084
30085 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30086 sysdeps/ieee754/ldbl-128ibm.
30087 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30088 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30089 of including it. Keep _Float128 and L() intact. These will be
30090 reviewed by a separate patch.
30091 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30092 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30093 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30094 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30095
30096 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30097
30098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30099 (__finitef128): Define to __redirect___finitef128.
30100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30101 (__isinff128): Define to __redirect___isinff128.
30102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30103 (__isnanf128): Define to __redirect___isnanf128.
30104
30105 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30106
30107 * sysdeps/powerpc/powerpc64le/Makefile
30108 (CFLAGS-tst-strtod-nan-locale.c): New variable.
30109 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30110
30111 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
30112 Carlos O'Donell <carlos@redhat.com>
30113
30114 [BZ #22180]
30115 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30116 * stdlib/test-dlclose-exit-race.c: New file.
30117 * stdlib/test-dlclose-exit-race-helper.c: New file.
30118 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30119
30120 2017-09-21 Joseph Myers <joseph@codesourcery.com>
30121
30122 * crypt/Banner: Remove file.
30123 * nptl/Banner: Likewise.
30124 * resolv/Banner: Likewise.
30125 * soft-fp/Banner: Likewise.
30126 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30127 ($(objpfx)version.d): Remove dependency on banner.h.
30128 ($(objpfx)version.os): Likewise.
30129 * nptl/version.c (banner): Do not include banner.h.
30130 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30131 Jelinek and BIND code.
30132
30133 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30134 Carlos O'Donell <carlos@redhat.com>
30135
30136 * support/xdlfcn.h: New file.
30137 * support/xdlfcn.c: New file.
30138 * support/Makefile (libsupport-routines): Add xdlfcn.
30139 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30140
30141 2017-09-20 Joseph Myers <joseph@codesourcery.com>
30142
30143 [BZ #20142]
30144 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30145 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30146 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30147 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30148 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30149 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30150 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30151 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30152
30153 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30154 Ricky Zhou <rickyz@google.com>
30155 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
30156
30157 [BZ #14333]
30158 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30159 Remove atomics.
30160 (__new_exitfn): Fail registration when we finished at_exit processing.
30161 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30162 * stdlib/on_exit.c (__on_exit): Likewise.
30163 * stdlib/exit.c (__exit_funcs_done): New variable.
30164 (__run_exit_handlers): Use __exit_funcs_lock.
30165 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30166 declarations.
30167 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30168 (test-cxa_atexit-race, test-on_exit-race): New tests.
30169 * stdlib/test-atexit-race-common.c: New file.
30170 * stdlib/test-atexit-race.c: New file.
30171 * stdlib/test-at_quick_exit-race.c: New file.
30172 * stdlib/test-cxa_atexit-race.c: New file.
30173 * stdlib/test-on_exit-race.c: New file.
30174
30175 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
30176
30177 * benchtests/Makefile: Add exp2f and log2f benchmarks.
30178 * benchtests/exp2f-inputs: Copy of expf-inputs.
30179 * benchtests/log2f-inputs: Copy of logf-inputs.
30180
30181 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30182
30183 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30184 Explicitly take address of first element of array arguments in
30185 call to INLINE_SYSCALL.
30186
30187 2017-09-19 Andreas Schwab <schwab@suse.de>
30188
30189 [BZ #22134]
30190 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30191 execveat first.
30192 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30193 unimplemented.
30194 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30195 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30196 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30197 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30198 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30199 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30200 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30201 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30202 * posix/Makefile (tests): Add tst-fexecve.
30203 * posix/tst-fexecve.c: New file.
30204
30205 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30206
30207 * benchtests/Makefile: Add logf benchmark.
30208 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30209
30210 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30211
30212 * benchtests/Makefile: Add expf benchmark.
30213 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30214
30215 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30216
30217 * csu/Makefile: Add -funwind-tables to libc-start.c.
30218 * debug/Makefile: Add -funwind-tables to backtrace.c.
30219 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30220 * sysdeps/arm/Makefile: Likewise.
30221 * sysdeps/i386/Makefile: Likewise.
30222 * sysdeps/m68k/Makefile: Likewise.
30223 * sysdeps/mips/Makefile: Likewise.
30224 * sysdeps/nios2/Makefile: Likewise.
30225 * sysdeps/sh/Makefile: Likewise.
30226 * sysdeps/sparc/Makefile: Likewise.
30227
30228 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30229
30230 * benchtests/Makefile (bench-math): Add trunc and truncf.
30231 (CFLAGS-bench-trunc.c): New variable.
30232 (CFLAGS-bench-truncf.c): Likewise.
30233 * benchtests/trunc-inputs: New file.
30234 * benchtests/truncf-inputs: Likewise.
30235
30236 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30237
30238 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30239
30240 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30241
30242 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30243 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30244 redefine.
30245 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30246 (exp10l): Define as weak alias.
30247 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30248 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30249 and redefine.
30250 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30251 (remainderl): Define as weak alias.
30252
30253 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30254 (fmal): Define using libm_alias_ldouble.
30255 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30256 (acoshl): Define using libm_alias_ldouble.
30257 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30258 (acosl): Define using libm_alias_ldouble.
30259 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30260 (asinl): Define using libm_alias_ldouble.
30261 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30262 (atan2l): Define using libm_alias_ldouble.
30263 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30264 (atanhl): Define using libm_alias_ldouble.
30265 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30266 (coshl): Define using libm_alias_ldouble.
30267 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30268 (exp10l): Define using libm_alias_ldouble.
30269 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30270 (exp2l): Define using libm_alias_ldouble.
30271 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30272 (expl): Define using libm_alias_ldouble.
30273 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30274 (fmodl): Define using libm_alias_ldouble.
30275 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30276 (hypotl): Define using libm_alias_ldouble.
30277 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30278 (j0l): Define using libm_alias_ldouble.
30279 (y0l): Likewise.
30280 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30281 (j1l): Define using libm_alias_ldouble.
30282 (y1l): Likewise.
30283 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30284 (jnl): Define using libm_alias_ldouble.
30285 (ynl): Likewise.
30286 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30287 (log10l): Define using libm_alias_ldouble.
30288 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30289 (log2l): Define using libm_alias_ldouble.
30290 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30291 (logl): Define using libm_alias_ldouble.
30292 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30293 (powl): Define using libm_alias_ldouble.
30294 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30295 (remainderl): Define using libm_alias_ldouble.
30296 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30297 (sinhl): Define using libm_alias_ldouble.
30298 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30299 (sqrtl): Define using libm_alias_ldouble.
30300 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30301 (tgammal): Define using libm_alias_ldouble.
30302 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30303 (exp10l): Do not use long_double_symbol here.
30304 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30305 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30306 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30307 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30308 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30309 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30310 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30311 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30312 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30313 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30314 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30315 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30316 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30317 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30318 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30319 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30320 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30321 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30322 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30323 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30324 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30325 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30326
30327 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30328
30329 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30330 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30331
30332 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30333
30334 * io/read.c (read): Add libc_hidden_weak.
30335 * sysdeps/mach/hurd/read.c (read): Likewise.
30336 * io/write.c (write): Likewise.
30337 * sysdeps/mach/hurd/write.c (write): Likewise.
30338 * io/pread64.c (__pread64): Likewise.
30339 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30340 * posix/pread64.c (__pread64): Add libc_hidden_def.
30341
30342 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30343
30344 * benchtests/scripts/compare_strings.py: New option -g.
30345 (draw_graph): Print a message that a graph is being generated.
30346 (process_results): Generate graph only if -g is passed.
30347 (main): Process option -g.
30348
30349 * benchtests/scripts/compare_strings.py (process_results):
30350 Better spacing for output.
30351
30352 * benchtests/scripts/compare_strings.py: Use argparse.
30353 * benchtests/README: Document existence of compare_strings.py.
30354
30355 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30356
30357 * math/s_fma.c: Include <libm-alias-double.h>.
30358 (fma): Define using libm_alias_double.
30359 * math/s_nextafter.c: Include <libm-alias-double.h>.
30360 (nextafter): Define using libm_alias_double.
30361 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30362 (acos): Define using libm_alias_double.
30363 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30364 (aocsh): Define using libm_alias_double.
30365 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30366 (asin): Define using libm_alias_double.
30367 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30368 (atan2): Define using libm_alias_double.
30369 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30370 (atanh): Define using libm_alias_double.
30371 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30372 (cosh): Define using libm_alias_double.
30373 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30374 (exp10): Define using libm_alias_double.
30375 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30376 (exp2): Define using libm_alias_double.
30377 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30378 (exp): Define using libm_alias_double.
30379 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30380 (fmod): Define using libm_alias_double.
30381 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30382 (hypot): Define using libm_alias_double.
30383 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30384 (j0): Define using libm_alias_double.
30385 (y0): Likewise.
30386 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30387 (j1): Define using libm_alias_double.
30388 (y1): Likewise.
30389 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30390 (jn): Define using libm_alias_double.
30391 (yn): Likewise.
30392 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30393 (log10): Define using libm_alias_double.
30394 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30395 (log2): Define using libm_alias_double.
30396 * math/w_log_compat.c: Include <libm-alias-double.h>.
30397 (log): Define using libm_alias_double.
30398 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30399 (pow): Define using libm_alias_double.
30400 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30401 (remainder): Define using libm_alias_double.
30402 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30403 (sinh): Define using libm_alias_double.
30404 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30405 (sqrt): Define using libm_alias_double.
30406 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30407 (tgamma): Define using libm_alias_double.
30408 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30409 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30410 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30411 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30412 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30413 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30414 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30415 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30416 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30417 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30418 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30419 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30420 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30421 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30422 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30423 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30424 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30425 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30426 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30427 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30428 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30429 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30430 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30431 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30432 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30433
30434 * math/e_acoshl.c: Remove.
30435 * math/e_acosl.c: Likewise.
30436 * math/e_asinl.c: Likewise.
30437 * math/e_atan2l.c: Likewise.
30438 * math/e_atanhl.c: Likewise.
30439 * math/e_coshl.c: Likewise.
30440 * math/e_expl.c: Likewise.
30441 * math/e_fmodl.c: Likewise.
30442 * math/e_gammal_r.c: Likewise.
30443 * math/e_hypotl.c: Likewise.
30444 * math/e_j0l.c: Likewise.
30445 * math/e_j1l.c: Likewise.
30446 * math/e_jnl.c: Likewise.
30447 * math/e_lgammal_r.c: Likewise.
30448 * math/e_log10l.c: Likewise.
30449 * math/e_log2l.c: Likewise.
30450 * math/e_logl.c: Likewise.
30451 * math/e_powl.c: Likewise.
30452 * math/e_rem_pio2l.c: Likewise.
30453 * math/e_sinhl.c: Likewise.
30454 * math/e_sqrtf128.c: Likewise.
30455 * math/e_sqrtl.c: Likewise.
30456 * math/k_cosl.c: Likewise.
30457 * math/k_sinl.c: Likewise.
30458 * math/k_tanl.c: Likewise.
30459 * math/s_asinhl.c: Likewise.
30460 * math/s_atanl.c: Likewise.
30461 * math/s_cbrtl.c: Likewise.
30462 * math/s_erfl.c: Likewise.
30463 * math/s_expm1l.c: Likewise.
30464 * math/s_log1pl.c: Likewise.
30465 * math/s_tanhl.c: Likewise.
30466
30467 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30468
30469 [BZ #21745]
30470 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30471 [$(subdir) = math] (sysdep_calls): New variable. Has the
30472 previous contents of sysdep_routines, but re-sorted..
30473 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30474 sysdep_calls.
30475 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30476 defined in sysdep_calls and replace by the respective m_* names.
30477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30478 (compat_symbol): Undefine to avoid duplicated compat symbols in
30479 libc.
30480
30481 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30482
30483 * math/s_fmaf.c: Include <libm-alias-float.h>.
30484 (fmaf): Define using libm_alias_float.
30485 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30486 (acosf): Define using libm_alias_float.
30487 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30488 (acoshf): Define using libm_alias_float.
30489 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30490 (asinf): Define using libm_alias_float.
30491 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30492 (atan2f): Define using libm_alias_float.
30493 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30494 (atanhf): Define using libm_alias_float.
30495 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30496 (coshf): Define using libm_alias_float.
30497 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30498 (exp10f): Define using libm_alias_float.
30499 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30500 (fmodf): Define using libm_alias_float.
30501 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30502 (hypotf): Define using libm_alias_float.
30503 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30504 (j0f): Define using libm_alias_float.
30505 (y0f): Likewise.
30506 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30507 (j1f): Define using libm_alias_float.
30508 (y1f): Likewise.
30509 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30510 (jnf): Define using libm_alias_float.
30511 (ynf): Likewise.
30512 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30513 (log10f): Define using libm_alias_float.
30514 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30515 (log2f): Define using libm_alias_float.
30516 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30517 (logf): Define using libm_alias_float.
30518 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30519 (powf): Define using libm_alias_float.
30520 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30521 (remainderf): Define using libm_alias_float.
30522 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30523 (sinhf): Define using libm_alias_float.
30524 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30525 (sqrtf): Define using libm_alias_float.
30526 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30527 (tgammaf): Define using libm_alias_float.
30528
30529 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30530
30531 * include/math.h (roundeven): Change hidden_proto call to
30532 __roundeven.
30533 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30534 alias.
30535 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30536 (y0): Rename to __y0 and define as weak alias.
30537 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30538 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30539 alias.
30540 (y0f): Rename to __y0f and define as weak alias.
30541 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30542 alias.
30543 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30544 (y1): Rename to __y1 and define as weak alias.
30545 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30546 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30547 alias.
30548 (y1f): Rename to __y1f and define as weak alias.
30549 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30550 alias.
30551 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30552 (yn): Rename to __yn and define as weak alias.
30553 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30554 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30555 alias.
30556 (ynf): Rename to __ynf and define as weak alias.
30557 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30558 (fromfp): Define as weak alias.
30559 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30560 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30561 (fromfpx): Define as weak alias.
30562 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30563 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30564 __getpayload and define as weak alias.
30565 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30566 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30567 __roundeven and define as weak alias.
30568 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30569 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30570 __setpayload.
30571 (setpayload): Define as weak alias.
30572 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30573 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30574 __setpayloadsig.
30575 (setpayloadsig): Define as weak alias.
30576 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30577 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30578 __totalorder and define as weak alias.
30579 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30580 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30581 to __totalordermag and define as weak alias.
30582 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30583 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30584 (ufromfp): Define as weak alias.
30585 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30586 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30587 __ufromfpx.
30588 (ufromfpx): Define as weak alias.
30589 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30590 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30591 Rename to __getpayload and define as weak alias.
30592 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30593 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30594 Rename to __roundeven and define as weak alias.
30595 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30596 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30597 Rename to __totalorder and define as weak alias.
30598 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30599 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30600 (totalordermag): Rename to __totalordermag and define as weak
30601 alias.
30602 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30603 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30604 macro.
30605 (__roundevenl): Likewise.
30606 (__totalorderl): Likewise.
30607 (__totalordermagl): Likewise
30608 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30609 __fromfpf128.
30610 (fromfpf128): Define as weak alias.
30611 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30612 __fromfpxf128.
30613 (fromfpxf128): Define as weak alias.
30614 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30615 __setpayloadf128.
30616 (setpayloadf128): Define as weak alias.
30617 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30618 __setpayloadsigf128.
30619 (setpayloadsigf128): Define as weak alias.
30620 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30621 __ufromfpf128.
30622 (ufromfpf128): Define as weak alias.
30623 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30624 __ufromfpxf128.
30625 (ufromfpxf128): Define as weak alias.
30626 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30627 (fromfpf): Define as weak alias.
30628 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30629 __fromfpxf.
30630 (fromfpxf): Define as weak alias.
30631 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30632 __getpayloadf and define as weak alias.
30633 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30634 __roundevenf and define as weak alias.
30635 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30636 __setpayloadf.
30637 (setpayloadf): Define as weak alias.
30638 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30639 __setpayloadsigf.
30640 (setpayloadsigf): Define as weak alias.
30641 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30642 __totalorderf and define as weak alias.
30643 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30644 Rename to __totalordermagf and define as weak alias.
30645 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30646 __ufromfpf.
30647 (ufromfpf): Define as weak alias.
30648 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30649 __ufromfpxf.
30650 (ufromfpxf): Define as weak alias.
30651 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30652 __fromfpl.
30653 (fromfpl): Define as weak alias.
30654 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30655 __fromfpxl.
30656 (fromfpxl): Define as weak alias.
30657 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30658 to __getpayloadl and define as weak alias.
30659 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30660 __roundevenl and define as weak alias.
30661 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30662 __setpayloadl.
30663 (setpayloadl): Define as weak alias.
30664 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30665 __setpayloadsigl.
30666 (setpayloadsigl): Define as weak alias.
30667 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30668 to __totalorderl and define as weak alias.
30669 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30670 Rename to __totalordermagl and define as weak alias.
30671 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30672 __ufromfpl.
30673 (ufromfpl): Define as weak alias.
30674 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30675 __ufromfpxl.
30676 (ufromfpxl): Define as weak alias.
30677 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30678 __fromfpl.
30679 (fromfpl): Define as weak alias.
30680 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30681 __fromfpxl.
30682 (fromfpxl): Define as weak alias.
30683 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30684 Rename to __getpayloadl and define as weak alias.
30685 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30686 to __roundevenl and define as weak alias. Call __roundeven
30687 instead of roundeven.
30688 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30689 __setpayloadl.
30690 (setpayloadl): Define as weak alias.
30691 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30692 __setpayloadsigl.
30693 (setpayloadsigl): Define as weak alias.
30694 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30695 Rename to __totalorderl and define as weak alias.
30696 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30697 Rename to __totalordermagl and define as weak alias.
30698 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30699 __ufromfpl.
30700 (ufromfpl): Define as weak alias.
30701 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30702 __ufromfpxl.
30703 (ufromfpxl): Define as weak alias.
30704 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30705 __fromfpl.
30706 (fromfpl): Define as weak alias.
30707 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30708 __fromfpxl.
30709 (fromfpxl): Define as weak alias.
30710 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30711 __getpayloadl and define as weak alias.
30712 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30713 __roundevenl and define as weak alias.
30714 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30715 __setpayloadl.
30716 (setpayloadl): Define as weak alias.
30717 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30718 __setpayloadsigl.
30719 (setpayloadsigl): Define as weak alias.
30720 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30721 __totalorderl and define as weak alias.
30722 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30723 Rename to __totalordermagl and define as weak alias.
30724 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30725 __ufromfpl.
30726 (ufromfpl): Define as weak alias.
30727 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30728 __ufromfpxl.
30729 (ufromfpxl): Define as weak alias.
30730
30731 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30732
30733 * benchtests/bench-string.h (realloc_bufs): New function.
30734 (test_init): Call it.
30735 * benchtests/bench-memset-large.c (do_test): Likewise.
30736 * benchtests/bench-memset.c (do_test): Likewise.
30737
30738 * benchtests/bench-memset-large.c: Print output in JSON
30739 format.
30740 * benchtests/bench-memset.c: Likewise.
30741
30742 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30743
30744 [BZ #21084]
30745 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30746 * iconvdata/Makefile: Add IBM858.
30747 * iconvdata/gconv-modules: Likewise.
30748 * iconvdata/tst-tables.sh: Likewise.
30749 * iconvdata/ibm858.c: New file.
30750 * localedata/charmaps/IBM858: Likewise.
30751
30752 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30753
30754 [BZ #22023]
30755 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30756 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30757
30758 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30759
30760 [BZ #22112]
30761 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30762 and add tel_int_fmt.
30763
30764 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30765
30766 * sysdeps/generic/libm-alias-float128.h: New file.
30767 * sysdeps/generic/math-type-macros-float128.h: Include
30768 <libm-alias-float128.h>.
30769 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30770
30771 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30772
30773 * sysdeps/generic/libm-alias-ldouble.h: New file.
30774 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30775 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30776 * sysdeps/generic/math-type-macros-ldouble.h: Include
30777 <libm-alias-ldouble.h>.
30778 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30779 libm_alias_ldouble.
30780
30781 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30782
30783 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30784 * math/w_exp_compat.c: ... here.
30785 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30786 * math/w_expf_compat.c: ... here.
30787 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30788 * math/w_expl_compat.c: ... here.
30789 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30790 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30791 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30792 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30793
30794 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30795
30796 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30797 redefine.
30798 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30799 macro.
30800 (ldexpl): Only define as compat symbol for libc, not libm.
30801 (scalbnl): Define as compat symbol for libc here.
30802 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30803 define for [IS_IN (libc)].
30804 (__ldexpl_2): Remove alias.
30805 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30806 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30807 name in long_double_symbol call.
30808 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30809 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30810 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30811 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30812 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30813 Remove macro.
30814 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30815 Define as compat symbol.
30816
30817 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30818
30819 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30820 * sysdeps/unix/sysv/linux/alpha/Makefile
30821 [$(subdir) = csu] (sysdep_routines): Remove rule.
30822
30823 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30824
30825 * sysdeps/generic/libm-alias-double.h: New file.
30826 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30827 * sysdeps/generic/math-type-macros-double.h: Include
30828 <libm-alias-double.h>.
30829 [declare_mgen_alias] (declare_mgen_alias): Define to use
30830 libm_alias_double.
30831 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30832 (M_LIBM_NEED_COMPAT): Remove macro.
30833 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30834 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30835 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30836 code.
30837 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30838 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30839 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30840 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30841 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30842 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30843 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30844 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30845 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30846 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30847 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30848 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30849 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30850 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30851 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30852 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30853 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30854 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30855 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30856 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30857 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30858 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30859 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30860 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30861 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30862 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30863 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30864 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30865 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30866 macro.
30867 (declare_mgen_alias): New macro.
30868 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30869 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30871 (M_LIBM_NEED_COMPAT): Remove macro.
30872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30873 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30874 <first-versions.h>.
30875 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30876 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30877
30878 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30879
30880 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30881 (declare_mgen_alias_2): Remove.
30882 * sysdeps/generic/math-type-macros-double.h
30883 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30884 Likewise.
30885 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30886 alias.
30887 (ldexp): Define with declare_mgen_alias.
30888 (scalbn): Likewise.
30889
30890 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30891
30892 * grp/initgroups.c: Include config.h.
30893 (DEFAULT_CONFIG): New macro.
30894 (internal_getgrouplist): Use DEFAULT_CONFIG.
30895 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30896 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30897 (DEFAULT_DEFCONFIG): New macro.
30898 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30899 * nss/grp-lookup.c: Include config.h
30900 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30901 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30902 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30903 * manual/nss.texi: Update default values section.
30904
30905 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30906
30907 [BZ #21967]
30908 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30909 New.
30910 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30911 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30912 Handle MathVec_Prefer_No_AVX512.
30913 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30914 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30915 is set.
30916
30917 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30918
30919 * posix/sched_primax.c (__sched_get_priority_max): Add
30920 libc_hidden_def.
30921 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30922 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30923 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30924 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30925 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30926 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30927 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30928 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30929 Add aliases.
30930
30931 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30932
30933 * sysdeps/generic/libm-alias-float.h: New file.
30934 * sysdeps/generic/math-type-macros-float.h: Include
30935 <libm-alias-float.h>.
30936 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30937
30938 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30939
30940 [BZ #22093]
30941 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30942 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30943 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30944 (HWCAP_IMPORTANT): Likewise.
30945 (HWCAP_X86_64): New enum.
30946 (HWCAP_X86_AVX512_1): Updated.
30947 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30948 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30949 (modules-names): Add x86_64/tst-x86_64mod-1.
30950 (LDFLAGS-tst-x86_64mod-1.so): New.
30951 ($(objpfx)tst-x86_64-1): Likewise.
30952 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30953 (tst-x86_64-1-clean): Likewise.
30954 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30955 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30956
30957 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30958
30959 * po/sv.po: Update translations.
30960 * po/fr.po: Likewise.
30961
30962 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30963
30964 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30965 seconds.
30966 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30967 seconds.
30968 * elf/rtld-Rules: Fix $(error) use.
30969
30970 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30971
30972 [BZ #14925]
30973 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30974 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30975 * localedata/locales/bn_BD: “Bengali” was still used in some
30976 comments. Change it to “Bangla”.
30977
30978 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30979
30980 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30981
30982 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30983
30984 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30985 thunderx2t99p1 to list of cpu names.
30986 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30987 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30988
30989 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30990
30991 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30992 Use strcmp instead of tunable_is_name.
30993
30994 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30995
30996 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30997 (F_GET_RW_HINT): New macro.
30998 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30999 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
31000 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
31001 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
31002 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
31003 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
31004 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
31005 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
31006 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
31007
31008 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
31009 (F_ADD_SEALS): New macro.
31010 [__USE_GNU] (F_GET_SEALS): Likewise.
31011 [__USE_GNU] (F_SEAL_SEAL): Likewise.
31012 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
31013 [__USE_GNU] (F_SEAL_GROW): Likewise.
31014 [__USE_GNU] (F_SEAL_WRITE): Likewise.
31015
31016 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31017
31018 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
31019 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
31020 * posix/glob_internal.h (__glob_pattern_type):
31021 * posix/glob.c (glob):
31022 * posix/glob_pattern_p.c (__glob_pattern_p):
31023 Use them.
31024
31025 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
31026 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
31027 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
31028 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
31029 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
31031 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
31032 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
31033 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31034 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
31035 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31036 * sysdeps/wordsize-64/glob.c: Likewise.
31037 * sysdeps/wordsize-64/glob64.c: Likewise.
31038 * sysdeps/wordsize-64/globfree.c: Likewise.
31039 * sysdeps/wordsize-64/globfree64.c: Likewise.
31040 * sysdeps/unix/sysv/linux/glob.c: New file.
31041 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
31042 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
31043 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
31044 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
31045 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
31046 adds !GLOB_NO_OLD_VERSION as an extra condition.
31047 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
31048 using relative path instead of absolute one.
31049 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
31050 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
31051 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
31052 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
31053 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
31054 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
31055
31056 [BZ #1062]
31057 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
31058 (glob): Use the same scratch buffer for both getlogin_r and
31059 getpwnam_r. Don’t require preallocation of the login name. This
31060 simplifies storage allocation, and corrects the handling of
31061 long login names.
31062
31063 [BZ #1062]
31064 * posix/glob.c (glob): Port recent patches to platforms
31065 lacking getpwnam_r.
31066 (glob): Fix longstanding misuse of errno after getpwnam_r, which
31067 returns an error number rather than setting errno.
31068
31069 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
31070 instead of GCC extension.
31071 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
31072 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
31073 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
31074
31075 [BZ #866]
31076 [BZ #1062]
31077 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
31078 * posix/bug-glob1.c: Remove file.
31079 * posix/tst-glob_symlinks.c: New file.
31080 * posix/glob.c (__lstat64): New macro.
31081 (is_dir): New function.
31082 (glob, glob_in_dir): Match symlinks even if they are dangling.
31083 (link_stat, link_exists_p): Remove. All uses removed.
31084
31085 [BZ #1062]
31086 [BZ #19971]
31087 * posix/glob.c (struct readdir_result): Remove skip_entry member.
31088 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31089 All uses removed.
31090
31091 [BZ #1062]
31092 CVE-2017-15671
31093 * posix/Makefile (routines): Add globfree, globfree64, and
31094 glob_pattern_p.
31095 * posix/flexmember.h: New file.
31096 * posix/glob_internal.h: Likewise.
31097 * posix/glob_pattern_p.c: Likewise.
31098 * posix/globfree.c: Likewise.
31099 * posix/globfree64.c: Likewise.
31100 * sysdeps/gnu/globfree64.c: Likewise.
31101 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31102 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31103 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31104 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31105 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31106 * sysdeps/wordsize-64/globfree.c: Likewise.
31107 * sysdeps/wordsize-64/globfree64.c: Likewise.
31108 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31109 [NDEBUG): Remove comments.
31110 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31111 (dirent_type): New type. Use uint_fast8_t not
31112 uint8_t, as C99 does not require uint8_t.
31113 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31114 (struct readdir_result): Use dirent_type. Do not define skip_entry
31115 unless it is needed; this saves a byte on platforms lacking d_ino.
31116 (readdir_result_type, readdir_result_skip_entry):
31117 New functions, replacing ...
31118 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31119 these functions, which were removed. This makes the callers
31120 easier to read. All callers changed.
31121 (D_INO_TO_RESULT): Now empty if there is no d_ino.
31122 (size_add_wrapv, glob_use_alloca): New static functions.
31123 (glob, glob_in_dir): Check for size_t overflow in several places,
31124 and fix some size_t checks that were not quite right.
31125 Remove old code using SHELL since Bash no longer
31126 uses this.
31127 (glob, prefix_array): Separate MS code better.
31128 (glob_in_dir): Remove old Amiga and VMS code.
31129 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31130 separate files.
31131 (glob_in_dir): Do not rely on undefined behavior in accessing
31132 struct members beyond their bounds. Use a flexible array member
31133 instead
31134 (link_stat): Rename from link_exists2_p and return -1/0 instead of
31135 0/1. Caller changed.
31136 (glob): Fix memory leaks.
31137 * posix/glob64 (globfree64): Move to separate file.
31138 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31139 (globfree64): Remove hidden alias.
31140 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31141 oldglob.
31142 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31143 separate file.
31144 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31145 define.
31146 Move compat code to separate file.
31147 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31148 separate file.
31149
31150 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
31151
31152 * resolv/tst-resolv-qtypes.c (domain): Changed to
31153 "const char domain[] =".
31154
31155 2017-09-07 Joseph Myers <joseph@codesourcery.com>
31156
31157 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31158 version to 3.1.6.
31159
31160 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31161 (TCP_MD5SIG_EXT): Likewise.
31162 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31163 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31164 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
31165
31166 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31167
31168 2017-09-07 Mike FABIAN <mfabian@redhat.com>
31169
31170 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31171
31172 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
31173
31174 [BZ #22100]
31175 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31176
31177 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
31178
31179 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31180 before assuming that the file is empty. Avoid testing buffer content
31181 when nread == 0.
31182
31183 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31184
31185 [BZ #18858]
31186 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31187 Remove define.
31188 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31189 Likewise.
31190 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31191 Likewise.
31192 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31193 Likewise.
31194 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31195 Likewise.
31196 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31197 Likewise.
31198 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31199 Likewise.
31200
31201 2017-09-06 Florian Weimer <fweimer@redhat.com>
31202
31203 * malloc/dynarray_emplace_enlarge.c
31204 (__libc_dynarray_emplace_enlarge): Add missing else.
31205
31206 2017-09-06 Florian Weimer <fweimer@redhat.com>
31207
31208 [BZ #22096]
31209 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31210 case of failure to obtain the global conf object.
31211
31212 2017-09-06 Florian Weimer <fweimer@redhat.com>
31213
31214 [BZ #22095]
31215 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31216 dynarray allocation failure.
31217
31218 2017-09-06 Florian Weimer <fweimer@redhat.com>
31219
31220 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31221 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31222 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31223 New functions.
31224 (response): Call them. Add 'p', '6' flag processing.
31225 (test_reverse): New function.
31226 (test_get2_any): Call it.
31227 (test_no_inet6): Add 'p' test.
31228 (test_inet6): Likewise.
31229
31230 2017-09-06 Florian Weimer <fweimer@redhat.com>
31231
31232 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31233 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31234 the QNAME.
31235 (test_gai): Adjust query names. Add additional tests.
31236 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31237 test_get2. Adjust query names. Add additional tests.
31238 (test_no_inet6): New function, extracted from threadfunc.
31239 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31240 Add additional tests.
31241
31242 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31243
31244 [BZ #22070]
31245 * localedata/unicode-gen/utf8_gen.py: Set the width for
31246 characters with Prepended_Concatenation_Mark property to 1
31247 * localedata/charmaps/UTF-8: Updated using the improved script.
31248
31249 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31250
31251 [BZ #21750]
31252 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31253 use the range notation for all ranges of neighbouring characters
31254 with the same width.
31255
31256 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31257
31258 * sysdeps/generic/math-type-macros-double.h: Include
31259 <math-svid-compat.h>.
31260 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31261 * sysdeps/generic/math-type-macros-float.h: Include
31262 <math-svid-compat.h>.
31263 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31264 * sysdeps/generic/math-type-macros-ldouble.h: Include
31265 <math-svid-compat.h>.
31266 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31267 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31268 condition.
31269 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31270 * math/w_acosf_compat.c: Likewise.
31271 * math/w_acosh_compat.c: Likewise.
31272 * math/w_acoshf_compat.c: Likewise.
31273 * math/w_acoshl_compat.c: Likewise.
31274 * math/w_acosl_compat.c: Likewise.
31275 * math/w_asin_compat.c: Likewise.
31276 * math/w_asinf_compat.c: Likewise.
31277 * math/w_asinl_compat.c: Likewise.
31278 * math/w_atan2_compat.c: Likewise.
31279 * math/w_atan2f_compat.c: Likewise.
31280 * math/w_atan2l_compat.c: Likewise.
31281 * math/w_atanh_compat.c: Likewise.
31282 * math/w_atanhf_compat.c: Likewise.
31283 * math/w_atanhl_compat.c: Likewise.
31284 * math/w_cosh_compat.c: Likewise.
31285 * math/w_coshf_compat.c: Likewise.
31286 * math/w_coshl_compat.c: Likewise.
31287 * math/w_exp10_compat.c: Likewise.
31288 * math/w_exp10f_compat.c: Likewise.
31289 * math/w_exp10l_compat.c: Likewise.
31290 * math/w_exp2_compat.c: Likewise.
31291 * math/w_exp2f_compat.c: Likewise.
31292 * math/w_exp2l_compat.c: Likewise.
31293 * math/w_fmod_compat.c: Likewise.
31294 * math/w_fmodf_compat.c: Likewise.
31295 * math/w_fmodl_compat.c: Likewise.
31296 * math/w_hypot_compat.c: Likewise.
31297 * math/w_hypotf_compat.c: Likewise.
31298 * math/w_hypotl_compat.c: Likewise.
31299 * math/w_j0_compat.c: Likewise.
31300 * math/w_j0f_compat.c: Likewise.
31301 * math/w_j0l_compat.c: Likewise.
31302 * math/w_j1_compat.c: Likewise.
31303 * math/w_j1f_compat.c: Likewise.
31304 * math/w_j1l_compat.c: Likewise.
31305 * math/w_jn_compat.c: Likewise.
31306 * math/w_jnf_compat.c: Likewise.
31307 * math/w_jnl_compat.c: Likewise.
31308 * math/w_lgamma_r_compat.c: Likewise.
31309 * math/w_lgammaf_r_compat.c: Likewise.
31310 * math/w_lgammal_r_compat.c: Likewise.
31311 * math/w_log10_compat.c: Likewise.
31312 * math/w_log10f_compat.c: Likewise.
31313 * math/w_log10l_compat.c: Likewise.
31314 * math/w_log2_compat.c: Likewise.
31315 * math/w_log2f_compat.c: Likewise.
31316 * math/w_log2l_compat.c: Likewise.
31317 * math/w_log_compat.c: Likewise.
31318 * math/w_logf_compat.c: Likewise.
31319 * math/w_logl_compat.c: Likewise.
31320 * math/w_pow_compat.c: Likewise.
31321 * math/w_powf_compat.c: Likewise.
31322 * math/w_powl_compat.c: Likewise.
31323 * math/w_remainder_compat.c: Likewise.
31324 * math/w_remainderf_compat.c: Likewise.
31325 * math/w_remainderl_compat.c: Likewise.
31326 * math/w_sinh_compat.c: Likewise.
31327 * math/w_sinhf_compat.c: Likewise.
31328 * math/w_sinhl_compat.c: Likewise.
31329 * math/w_sqrt_compat.c: Likewise.
31330 * math/w_sqrtf_compat.c: Likewise.
31331 * math/w_sqrtl_compat.c: Likewise.
31332 * math/w_tgamma_compat.c: Likewise.
31333 * math/w_tgammaf_compat.c: Likewise.
31334 * math/w_tgammal_compat.c: Likewise.
31335 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31336 [LIBM_SVID_COMPAT].
31337 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31338 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31339 [LIBM_SVID_COMPAT].
31340 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31341 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31342 [LIBM_SVID_COMPAT].
31343 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31344 * sysdeps/i386/fpu/w_sqrt.c: New file.
31345 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31346 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31347 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31348 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31349 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31350 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31351 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31352 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31353 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31354 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31355 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31356 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31357 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31358 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31359 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31360 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31361 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31362 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31363 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31364 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31365 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31366 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31367 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31368 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31369 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31370 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31371 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31372 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31373 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31374 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31375 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31376 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31377 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31378 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31379 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31380 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31381 * sysdeps/ia64/fpu/w_log.c: Likewise.
31382 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31383 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31384 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31385 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31386 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31387 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31388 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31389 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31390 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31391 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31392 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31393 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31394 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31395 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31396 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31397 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31398 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31399 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31400 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31401 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31402 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31403 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31404 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31405 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31406 [LIBM_SVID_COMPAT].
31407 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31408 * sysdeps/ieee754/k_standard.c: Likewise.
31409 * sysdeps/ieee754/k_standardf.c: Likewise.
31410 * sysdeps/ieee754/k_standardl.c: Likewise.
31411 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31412 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31413 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31414 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31415 long_double_symbol call on [LIBM_SVID_COMPAT].
31416 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31417 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31418 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31419 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31420 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31421 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31422 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31423 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31424 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31425 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31426 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31427 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31428 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31429 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31430 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31431 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31432 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31433 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31434 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31435 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31436 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31437 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31438
31439 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31440
31441 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31442 * malloc/tst-mallocstate.c: Convert from test-skeleton
31443 to test-driver. Ifdef code using TEST_COMPAT macro.
31444 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31445 * math/test-matherr.c: Likewise.
31446
31447 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31448
31449 [BZ #22086]
31450 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31451 comparing word with byte-swapped constant.
31452
31453 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31454
31455 [BZ #20498]
31456 * locale/iso-639.def: add Miskito.
31457 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31458 * localedata/locales/miq_NI: New file.
31459
31460 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31461
31462 [BZ #18822]
31463 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31464 (__mkdir): Likewise.
31465 * io/chmod.c (__chmod): Add libc_hidden_def.
31466 * io/mkdir.c (__mkdir): Likewise.
31467 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31468 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31469 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31470 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31471
31472 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31473
31474 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31475 version to 4.13.
31476
31477 [BZ #22082]
31478 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31479 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31480
31481 2017-09-04 Florian Weimer <fweimer@redhat.com>
31482
31483 * math/math.h: Issue warning if log is defined.
31484
31485 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31486
31487 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31488 kernel version to 4.13.
31489
31490 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31491
31492 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31493 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31494 parameter.
31495 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31496 just <bits/types.h>.
31497 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31498 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31499 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31500 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31501 * misc/preadv2.c: Include <errno.h>.
31502 * misc/preadv64v2.c: Include <errno.h>.
31503 * misc/pwritev2.c: Include <errno.h>.
31504 * misc/pwritev64v2.c: Include <errno.h>.
31505 * sysdeps/posix/preadv2.c: Include <errno.h>.
31506 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31507 Fix <unistd.h> inclusion.
31508 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31509 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31510 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31511 __strtoul_internal): New functions.
31512 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31513 * sysdeps/posix/system.c: Include <sigsetops.h>.
31514 * sysdeps/mach/hurd/i386/Makefile
31515 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31516 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31517 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31518 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31519 __feraiseexcept_renamed to feraiseexcept instead of
31520 __GI_feraiseexcept.
31521 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31522 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31523 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31524 RWF_NOWAIT): Define to 0 if undefined already.
31525 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31526 boils down to 0.
31527 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31528 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31529
31530 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31531
31532 * manual/math.texi (pow10): Do not document.
31533 (pow10f): Likewise.
31534 (pow10l): Likewise.
31535 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31536 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31537 * math/libm-test-exp10.inc (pow10_test): Remove.
31538 (do_test): Do not call pow10.
31539 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31540 [NO_LONG_DOUBLE] (pow10l): Likewise.
31541 * math/w_exp10f_compat.c (pow10f): Likewise.
31542 * math/w_exp10l_compat.c (pow10l): Likewise.
31543 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31544 (pow10): Make into compat symbol.
31545 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31546 (pow10f): Make into compat symbol.
31547 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31548 (pow10l): Make into compat symbol.
31549 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31550 pow10.
31551 (CFLAGS-nldbl-pow10.c): Remove variable..
31552 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31553 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31554 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31555 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31556 Undefine and redefine.
31557 (pow10l): Make into compat symbol.
31558 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31559 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31560 * sysdeps/arm/libm-test-ulps: Likewise.
31561 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31562 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31563 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31564 * sysdeps/microblaze/libm-test-ulps: Likewise.
31565 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31566 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31567 * sysdeps/nios2/libm-test-ulps: Likewise.
31568 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31569 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31570 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31571 * sysdeps/sh/libm-test-ulps: Likewise.
31572 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31573 * sysdeps/tile/libm-test-ulps: Likewise.
31574 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31575
31576 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31577
31578 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31579
31580 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31581
31582 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31583 "../ChangeLog.old/ChangeLog.8".
31584 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31585 "../ChangeLog.old/ChangeLog.14".
31586
31587 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31588
31589 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31590 Threads Library.
31591
31592 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31593
31594 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31595
31596 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31597
31598 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31599 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31600
31601 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31602
31603 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31604 32 atexit handlers.
31605
31606 2017-09-01 Zack Weinberg <zackw@panix.com>
31607
31608 * math/math.h (HUGE_VAL): Improve commentary.
31609
31610 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31611 Andreas Schwab <schwab@suse.de>
31612
31613 [BZ #21530]
31614 * include/stdio.h (__gen_tempfd): New function.
31615 * stdio-common/Makefile (routines): Add gentempfd.
31616 * stdio-common/gentempfd.c: New file.
31617 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31618 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31619 unnamed file first.
31620
31621 2017-09-01 Florian Weimer <fweimer@redhat.com>
31622
31623 [BZ #21915]
31624 [BZ #21922]
31625 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31626 result to determine success or failure, not the errno value.
31627 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31628 (tst-nss-files-hosts-erange): Link with -ldl.
31629 * nss/tst-nss-files-hosts-erange.c: New file.
31630 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31631 (do_test): Add NO_DATA tests.
31632 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31633 (do_test): Call it.
31634
31635 2017-09-01 Florian Weimer <fweimer@redhat.com>
31636
31637 [BZ #21922]
31638 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31639 coming from gethostbyname2_r.
31640
31641 2017-09-01 Florian Weimer <fweimer@redhat.com>
31642
31643 * support/namespace.h (struct support_chroot_configuration): Add
31644 hosts, host_conf.
31645 (struct support_chroot): Add path_hosts, path_host_conf.
31646 * support/support_chroot.c (write_file): New function.
31647 (support_chroot_create): Call it to process /etc/resolv.conf,
31648 /etc/hosts, /etc/host.conf.
31649 (support_chroot_free): Update.
31650
31651 2017-09-01 Florian Weimer <fweimer@redhat.com>
31652
31653 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31654 status indicates it is set.
31655
31656 2017-09-01 Florian Weimer <fweimer@redhat.com>
31657
31658 [BZ #20532]
31659 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31660 function lookup failures more reliable.
31661
31662 2017-09-01 Florian Weimer <fweimer@redhat.com>
31663
31664 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31665 (getcanonname): Likewise.
31666 (gaih_inet): Likewise.
31667
31668 2017-09-01 Florian Weimer <fweimer@redhat.com>
31669
31670 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31671 (getcanonname): Likewise.
31672 (gaih_inet): Likewise.
31673
31674 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31675 Richard Henderson <rth@twiddle.net>
31676
31677 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31678 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31679 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31680 (IREG_SIZE, OREG_SIZE): New macros.
31681 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31682 (IREG_SIZE, OREG_SIZE): New macros.
31683 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31684 (IREG_SIZE): New macro.
31685 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31686 (IREG_SIZE): New macro.
31687 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31688 New includes.
31689 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31690 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31691 (__CONCATX): Handle exceptions correctly on large values that may
31692 set FE_INVALID.
31693 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31694 Initialize if not already set.
31695 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31696
31697 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31698
31699 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31700 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31701 Likewise.
31702 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31703 Likewise.
31704 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31705 Likewise.
31706 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31707 Likewise.
31708 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31709 Likewise.
31710 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31711 Likewise.
31712 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31713 Likewise.
31714 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31715 (NO_CANCELLATION): Likewise.
31716 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31717 Likewise.
31718 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31719 Likewise.
31720 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31721 Likewise.
31722 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31723 (NO_CANCELLATION): Likewise.
31724 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31725 (NO_CANCELLATION): Likewise.
31726 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31727 Likewise
31728 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31729 Likewise.
31730 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31731 Likewise.
31732 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31733 Likewise.
31734 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31735 hidden prototype.
31736 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31737 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31738
31739 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31740
31741 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31742 in resolver call.
31743
31744 2017-08-31 Florian Weimer <fweimer@redhat.com>
31745
31746 * include/libc-symbols.h (internal_function): Remove.
31747
31748 2017-08-31 Florian Weimer <fweimer@redhat.com>
31749
31750 * stdlib/fmtmsg.c (internal_addseverity): Remove
31751 internal_function.
31752
31753 2017-08-31 Florian Weimer <fweimer@redhat.com>
31754
31755 * stdio-common/printf_fp.c (group_number): Remove
31756 internal_function.
31757 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31758
31759 2017-08-31 Florian Weimer <fweimer@redhat.com>
31760
31761 * posix/fnmatch.c (internal_function): Remove definition.
31762 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31763 * posix/regcomp.c (peek_token, init_word_char)
31764 (duplicate_node_closure, fetch_token, peek_token)
31765 (peek_token_bracket, build_range_exp, build_collating_symbol):
31766 Likewise.
31767 * posix/regex_internal.c (re_string_construct_common)
31768 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31769 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31770 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31771 (re_string_translate_buffer, re_string_reconstruct)
31772 (re_string_peek_byte_case, re_string_fetch_byte_case)
31773 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31774 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31775 (re_node_set_add_intersect, re_node_set_init_union)
31776 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31777 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31778 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31779 (re_acquire_state_context): Likewise.
31780 * posix/regex_internal.h (internal_function): Remove definition.
31781 (re_string_realloc_buffers, build_wcs_buffer)
31782 (build_wcs_upper_buffer, build_upper_buffer)
31783 (re_string_translate_buffer, re_string_context_at)
31784 (re_string_char_size_at, re_string_wchar_at)
31785 (re_string_elem_size_at): Likewise.
31786 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31787 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31788 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31789 (re_search_internal, re_search_2_stub, re_search_stub)
31790 (re_copy_regs, prune_impossible_nodes, check_matching)
31791 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31792 (free_fail_stack_return, sift_states_iter_mb)
31793 (sift_states_backward, build_sifted_states)
31794 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31795 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31796 (check_subexp_limits, sift_states_bkref, merge_state_array)
31797 (find_recover_state, transit_state, merge_state_with_log)
31798 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31799 (transit_state_mb, transit_state_bkref, get_subexp)
31800 (get_subexp_sub, find_subexp_node, check_arrival)
31801 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31802 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31803 (check_node_accept_bytes, find_collation_sequence_value)
31804 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31805 (acquire_init_state_context, check_halt_node_context)
31806 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31807 (sub_epsilon_src_nodes): Likewise.
31808 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31809 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31810 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31811 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31812 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31813 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31814 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31815 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31816 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31817 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31818 (PREADV): Likewise.
31819 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31820 (PREADV): Likewise.
31821 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31822 (PWRITEV): Likewise.
31823 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31824 (PWRITEV): Likewise.
31825 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31826 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31827
31828 2017-08-31 Florian Weimer <fweimer@redhat.com>
31829
31830 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31831 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31832 Remove internal_function.
31833 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31834 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31835 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31836 (__deallocate_stack, __libc_pthread_init)
31837 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31838 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31839 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31840 Likewise.
31841 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31842 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31843 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31844 Likewise.
31845 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31846 (__pthread_mutex_unlock_usercnt): Likewise.
31847
31848 2017-08-31 Florian Weimer <fweimer@redhat.com>
31849
31850 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31851 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31852 (fts_safe_changedir): Remove internal_function.
31853 * io/ftw.c (internal_function): Remove definition.
31854 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31855
31856 2017-08-31 Florian Weimer <fweimer@redhat.com>
31857
31858 * inet/deadline.c (__deadline_current_time)
31859 (__deadline_from_timeval, __deadline_to_ms): Remove
31860 internal_function.
31861 * inet/getnameinfo.c (nrl_domainname): Likewise.
31862 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31863 * inet/inet6_option.c (add_pad): Likewise.
31864 * inet/net-internal.h (__deadline_current_time)
31865 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31866 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31867 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31868 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31869
31870 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31871
31872 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31873 include <bits/nan.h>.
31874 * math/Makefile (headers): Remove bits/nan.h.
31875 * bits/nan.h: Remove.
31876 * sysdeps/ieee754/bits/nan.h: Likewise.
31877 * sysdeps/mips/bits/nan.h: Likewise.
31878
31879 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31880 not include <bits/inf.h>.
31881 * math/Makefile (headers): Remove bits/inf.h.
31882 * bits/inf.h: Remove.
31883 * sysdeps/ieee754/bits/inf.h: Likewise.
31884
31885 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31886 bits/huge_vall.h or bits/huge_val_flt128.h.
31887 (HUGE_VAL): Define directly here.
31888 [__USE_ISOC99] (HUGE_VALF): Likewise.
31889 [__USE_ISOC99] (HUGE_VALL): Likewise.
31890 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31891 (HUGE_VAL_F128): Likewise.
31892 * math/Makefile (headers): Remove bits/huge_val.h,
31893 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31894 * bits/huge_val.h: Remove.
31895 * bits/huge_val_flt128.h: Likewise.
31896 * bits/huge_valf.h: Likewise.
31897 * bits/huge_vall.h: Likewise.
31898 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31899 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31900 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31901 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31902 * sysdeps/sh/bits/huge_val.h: Likewise.
31903 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31904 * sysdeps/x86/bits/huge_vall.h: Likewise.
31905
31906 2017-08-31 Florian Weimer <fweimer@redhat.com>
31907
31908 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31909 internal_function.
31910 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31911 Likewise.
31912 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31913 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31914 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31915 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31916 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31917 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31918 * elf/dl-libc.c (dlerror_run): Likewise.
31919 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31920 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31921 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31922 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31923 Likewise.
31924 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31925 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31926 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31927 * elf/dl-profile.c (_dl_start_profile): Likewise.
31928 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31929 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31930 Likewise.
31931 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31932 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31933 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31934 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31935 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31936 (_dl_allocate_tls_storage): Likewise.
31937 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31938 (_dl_check_all_versions): Likewise.
31939 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31940 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31941 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31942 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31943 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31944 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31945 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31946 internal_function from __dl_start.
31947 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31948 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31949 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31950 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31951 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31952 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31953 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31954 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31955 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31956 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31957 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31958 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31959 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31960 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31961 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31962 Likewise.
31963 (struct rtld_global_ro): Remove internal_function from the
31964 _dl_lookup_symbol_x member.
31965 (_dl_symbol_value): Remove. No longer defined anywhere.
31966 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31967 internal_function.
31968 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31969 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31970 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31971 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31972 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31973 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31974 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31975 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31976 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31977 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31978 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31979 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31980
31981 2017-08-31 Florian Weimer <fweimer@redhat.com>
31982
31983 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31984 Remove internal_function.
31985 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31986 Likewise.
31987 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31988 Likewise.
31989
31990 2017-08-31 Florian Weimer <fweimer@redhat.com>
31991
31992 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31993 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31994 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31995
31996 2017-08-31 Florian Weimer <fweimer@redhat.com>
31997
31998 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31999 (__gai_enqueue_request): Remove internal_function.
32000 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
32001 (__gai_remove_request, __gai_notify, __gai_notify_only)
32002 (__gai_sigqueue): Likewise.
32003 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
32004 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
32005 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
32006 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
32007 Likewise.
32008
32009 2017-08-31 Florian Weimer <fweimer@redhat.com>
32010
32011 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
32012 * include/dirent.h (__opendirat, __getdents, __getdents64)
32013 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
32014 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
32015 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
32016 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
32017 Likewise.
32018 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
32019
32020 2017-08-31 Florian Weimer <fweimer@redhat.com>
32021
32022 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
32023 internal_function.
32024 (GETCWD_RETURN_TYPE): Likewise.
32025
32026 2017-08-31 Florian Weimer <fweimer@redhat.com>
32027
32028 * include/time.h (__tz_compute, __strptime_internal): Remove
32029 internal_function.
32030 * time/strptime_l.c (__strptime_internal): Likewise.
32031 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
32032
32033 2017-08-31 Florian Weimer <fweimer@redhat.com>
32034
32035 * iconv/gconv.c (__gconv): Remove internal_function.
32036 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
32037 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
32038 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
32039 (__gconv_release_cache): Likewise.
32040 * iconv/gconv_close.c (__gconv_close): Likewise.
32041 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
32042 (read_conf_file, __gconv_get_path): Likewise.
32043 * iconv/gconv_db.c (derivation_lookup, add_derivation)
32044 (__gconv_release_step, gen_steps, increment_counter)
32045 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
32046 (__gconv_close_transform, free_modules_db): Likewise.
32047 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
32048 Likewise.
32049 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
32050 (__gconv_find_transform, __gconv_lookup_cache)
32051 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
32052 (__gconv_close_transform, __gconv_release_cache)
32053 (__gconv_loaded_object, __gconv_release_shlib)
32054 (__gconv_compare_alias): Likewise.
32055 * iconv/gconv_open.c (__gconv_open): Likewise.
32056 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
32057 * iconv/iconvconfig.c (add_module): Likewise.
32058 * intl/dcigettext.c (plural_lookup, guess_category_value)
32059 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
32060 * intl/eval-plural.h (plural_eval): Likewise.
32061 * intl/finddomain.c (_nl_find_domain): Likewise.
32062 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
32063 (_nl_load_domain, _nl_find_msg): Likewise.
32064 (internal_function): Remove definition.
32065 * intl/loadinfo.h (internal_function): Likewise.
32066 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
32067 internal_function.
32068 * intl/localealias.c (internal_function): Remove definition.
32069 (read_alias_file): Remove internal_function.
32070 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
32071 * intl/plural-exp.h (internal_function): Remove definition.
32072 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
32073 internal_function.
32074 * intl/plural.c: Regenerate.
32075 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
32076 * locale/coll-lookup.c (__collidx_table_lookup)
32077 (__collseq_table_lookup): Likewise.
32078 * locale/coll-lookup.h (__collidx_table_lookup)
32079 (__collseq_table_lookup): Likewise.
32080 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32081 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32082 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32083 (_nl_unload_locale): Likewise.
32084 * locale/localeinfo.h (struct __locale_data): Remove
32085 internal_function from cleanup member.
32086 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32087 (_nl_remove_locale, _nl_load_locale_from_archive)
32088 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32089 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32090 (_nl_cleanup_time): Remove internal_function.
32091 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32092 (_nl_parse_alt_digit): Likewise.
32093 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32094 (_nl_select_era_entry): Likewise.
32095 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32096 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32097 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32098 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32099 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32100
32101 2017-08-31 Florian Weimer <fweimer@redhat.com>
32102
32103 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32104 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32105 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32106 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32107 Likewise.
32108 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32109 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32110 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32111 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32112 Likewise.
32113 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32114
32115 2017-08-31 Florian Weimer <fweimer@redhat.com>
32116
32117 * misc/getttyent.c (skip, value): Remove internal_function.
32118 * misc/syslog.c (openlog_internal): Likewise.
32119 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32120
32121 2017-08-31 Florian Weimer <fweimer@redhat.com>
32122
32123 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32124 (__nss_rewrite_field): Remove internal_function.
32125 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32126 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32127 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32128 * nss/nsswitch.c (nss_parse_file, nss_getline)
32129 (nss_parse_service_list, nss_new_service): Likewise.
32130 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32131 * nss/valid_field.c (__nss_valid_field): Likewise.
32132 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32133
32134 2017-08-31 Florian Weimer <fweimer@redhat.com>
32135
32136 * malloc/arena.c (__malloc_fork_lock_parent)
32137 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32138 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32139 internal_function from defintions.
32140 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32141 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32142 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32143 internal_function from declarations.
32144 * malloc/malloc.c (internal_function): Do not define.
32145 (mem2mem_check): Remove internal_function from declaration.
32146 (munmap_chunk, mremap_chunk): Remove internal_function.
32147 * malloc/mtrace.c (tr_where): Likewise.
32148
32149 2017-08-31 Florian Weimer <fweimer@redhat.com>
32150
32151 * include/rpc/pmap_clnt.h (__get_socket): Remove
32152 internal_function.
32153 * sunrpc/auth_des.c (synchronize): Likewise.
32154 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32155 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32156 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32157 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32158 (key_call): Likewise.
32159 * sunrpc/pm_getport.c (__get_socket): Likewise.
32160 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32161 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32162 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32163 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32164 (invalidate): Likewise.
32165 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32166 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32167 (set_input_fragment, get_input_bytes): Likewise.
32168
32169 2017-08-31 Florian Weimer <fweimer@redhat.com>
32170
32171 * malloc/malloc.c (_int_free): Remove locked variable and related
32172 asserts.
32173
32174 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
32175
32176 [BZ #22051]
32177 * Makerules (build-module-helper-objlist): Filter out
32178 $(elf-objpfx)sofini.os.
32179 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32180 needed.
32181
32182 2017-08-31 Florian Weimer <fweimer@redhat.com>
32183
32184 * libio/fcloseall.c: Assume weak_alias is defined.
32185 * libio/feof.c: Likewise.
32186 * libio/fileno.c: Likewise.
32187 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32188 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32189 definitions.
32190 (_IO_file_open): Call __open directly.
32191 (_IO_new_file_sync): Assume ESPIPE is defined.
32192 (_IO_file_seekoff_maybe_mmap): Call __read directly.
32193 (_IO_new_file_write): Call __write directly.
32194 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32195 * libio/ftello64.c (__ftello64): Assume EIO is defined.
32196 * libio/genops.c: Assume _LIBC is defined.
32197 (save_for_backup): Remove internal_function.
32198 * libio/getc.c: Assume weak_alias is defined.
32199 * libio/getwc.c: Likewise.
32200 * libio/iofclose.c: Assume _LIBC is defined.
32201 * libio/iofdopen.c: Likewise.
32202 (_IO_fcntl): Remove macro definition.
32203 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32204 Call __fcntl directly.
32205 * libio/iofflush.c: Assume weak_alias is defined.
32206 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32207 defined.
32208 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32209 * libio/iofgets.c: Likewise.
32210 * libio/iofopen.c: Assume _LIBC is defined.
32211 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32212 * libio/iofputs.c: Assume weak_alias is defined.
32213 * libio/iofread.c: Likewise.
32214 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32215 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32216 * libio/ioftell.c: Assume weak_alias is defined.
32217 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32218 * libio/iofwide.c: Assume _LIBC is defined.
32219 (_IO_fwide): Drop SHARED conditional because it is implied by
32220 SHLIB_COMPAT.
32221 * libio/iofwrite.c: Assume weak_alias is defined.
32222 * libio/iogetdelim.c: Likewise.
32223 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32224 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32225 (_IO_getwline): Call __wmemcpy directly.
32226 * libio/iopopen.c: Assume _LIBC is defined.
32227 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32228 (_IO_close): Remove macro definitions.
32229 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32230 _exit directly.
32231 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32232 directly.
32233 * libio/ioputs.c: Assume weak_alias is defined.
32234 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32235 * libio/iosetbuffer.c: Assume weak_alias is defined.
32236 * libio/iosetvbuf.c: Likewise.
32237 * libio/ioungetc.c: Likewise.
32238 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32239 libc_hidden_def, libc_hidden_weak, NULL are defined.
32240 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32241 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32242 defined.
32243 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32244 definitions.
32245 (_IO_old_file_init_internal): Drop SHARED conditional because it
32246 is implied by SHLIB_COMPAT.
32247 (_IO_old_file_fopen): Call __open directly.
32248 (_IO_old_file_sync): Assume ESPIPE is defined.
32249 (_IO_old_file_write): Call __write directly.
32250 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32251 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32252 Call __fcntl directly.
32253 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32254 (_IO_old_fgetpos): Assume EIO is defined.
32255 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32256 (_IO_old_fgetpos64): Assume EIO is defined.
32257 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32258 (_IO_old_fsetpos): Assume EIO is defined.
32259 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32260 (_IO_old_fsetpos64): Assume EIO is defined.
32261 * libio/oldiopopen.c: Assume _LIBC is defined.
32262 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32263 (_IO_close): Remove macro definitions.
32264 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32265 directly.
32266 (_IO_old_proc_close): Call __close, __waitpid directly.
32267 * libio/put.c: Assume weak_alias is defined.
32268 * libio/stdfiles.c: Assume _LIBC is defined.
32269 * libio/stdio.c: Likewise.
32270 * libio/wfileops.c: Likewise.
32271 (_IO_wfile_sync): Assume ESPIPE is defined.
32272 * libio/wgenops.c: Assume _LIBC is defined.
32273 (save_for_wbackup): Remove internal_function.
32274
32275 2017-08-31 Florian Weimer <fweimer@redhat.com>
32276
32277 * malloc/malloc.c (top_check): Change return type to void. Remove
32278 internal_function.
32279 * malloc/hooks.c (top_check): Likewise.
32280 (malloc_check, realloc_check, memalign_check): Adjust.
32281
32282 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32283
32284 [BZ #21457]
32285 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32286 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32287 sigcontext and namespace requirements.
32288 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32289 * sysdeps/m68k/sys/ucontext.h: Likewise.
32290 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32291 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32292 <bits/sigcontext.h>.
32293 (__ctx): Define earlier.
32294 (mcontext_t): Define structure contents rather than using struct
32295 sigcontext.
32296 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32297 __glibc_reserved1 instead of __reserved.
32298 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32299 <bits/sigcontext.h>.
32300 (__ctx): Define earlier.
32301 (mcontext_t): Define structure contents rather than using struct
32302 sigcontext.
32303 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32304 mcontext_t instead of struct sigcontext.
32305 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32306 <bits/sigcontext.h>.
32307 (__ctx): Define earlier.
32308 (mcontext_t): Define structure contents rather than using struct
32309 sigcontext.
32310 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32311 <bits/sigcontext.h>.
32312 (__ctx): Define earlier.
32313 (mcontext_t): Define structure contents rather than using struct
32314 sigcontext.
32315 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32316 mcontext_t instead of struct sigcontext.
32317 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32318 mcontext_t instead of struct sigcontext.
32319 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32320 <bits/sigcontext.h>.
32321 (__ctx): New macro.
32322 (struct __ia64_fpreg_mcontext): New type.
32323 (mcontext_t): Define structure contents rather than using struct
32324 sigcontext.
32325 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32326 (uc_sigmask): Define using __ctx.
32327 (uc_stack): Likewise.
32328 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32329 <bits/sigcontext.h>.
32330 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32331 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32332 <bits/sigcontext.h>.
32333 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32334 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32335 <bits/sigcontext.h>.
32336 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32337 <bits/sigcontext.h>.
32338 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32339 <bits/sigcontext.h>.
32340 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32341 <bits/sigcontext.h>.
32342 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32343 <bits/sigcontext.h>.
32344 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32345 <bits/sigcontext.h>.
32346 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32347 <bits/sigcontext.h>.
32348 (__ctx): Define earlier.
32349 (mcontext_t): Define structure contents rather than using struct
32350 sigcontext.
32351 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32352 <bits/sigcontext.h>. Include <bits/types.h>.
32353 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32354 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32355 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32356 (test-xfail-UNIX98/signal.h/conform): Likewise.
32357 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32358 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32359 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32360 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32361 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32362 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32363 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32364 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32365 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32366
32367 2017-08-30 Florian Weimer <fweimer@redhat.com>
32368
32369 * malloc/dynarray_emplace_enlarge.c
32370 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32371 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32372 * malloc/tst-dynarray.c (test_long_overflow): New function.
32373 (do_test): Call it.
32374
32375 2017-08-30 Florian Weimer <fweimer@redhat.com>
32376
32377 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32378 (set_arena_corrupt): Remove definitions.
32379 (mtrim): Do not check for corrupt arena.
32380 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32381 Likewise.
32382
32383 2017-08-30 Florian Weimer <fweimer@redhat.com>
32384
32385 [BZ #21754]
32386 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32387 check_action.
32388 (ptmalloc_init): Do not set or use check_action.
32389 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32390 call to malloc_printerr. Remove return statement.
32391 (free_check): Likewise. Remove arena unlock.
32392 (top_check): Update comment. Adjust call to malloc_printerr.
32393 Remove heap repair code.
32394 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32395 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32396 (sysmalloc): Adjust call to malloc_printerr.
32397 (munmap_chunk, __libc_realloc): Likewise. Remove return
32398 statement.
32399 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32400 Remove errout label and corresponding gotos.
32401 (_int_free): Likewise. Remove arena unlock.
32402 (do_set_mallopt_check): Do not set check_action.
32403 (malloc_printerr): Adjust parameter list. Do not mark arena as
32404 corrupt.
32405 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32406 comment.
32407 * manual/probes.texi (Memory Allocation Probes): Remove
32408 memory_mallopt_check_action.
32409
32410 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32411
32412 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32413 Use pointer to uint64_t instead of long int for sp.
32414
32415 2017-08-30 Florian Weimer <fweimer@redhat.com>
32416
32417 [BZ #21754]
32418 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32419 without printing a backtrace. Do not leak any information in the
32420 error message.
32421 * manual/memory.texi (Heap Consistency Checking): Update.
32422 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32423
32424 2017-08-30 Florian Weimer <fweimer@redhat.com>
32425
32426 Do not scale NPTL tests with available number of CPUs.
32427 * nptl/tst-cond16.c (count): Set to constant value of 8.
32428 * nptl/tst-cond18.c (count): Likewise.
32429
32430 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32431
32432 [BZ #22035]
32433 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32434 Define to take a second argument that is a macro that
32435 concatentates a suffix, not the suffix itself.
32436 (__CONCAT_d): New macro.
32437 (__CONCAT_f): Likewise.
32438 (__CONCAT_l): Likewise.
32439
32440 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32441
32442 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32443 by child.
32444
32445 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32446 Aurelien Jarno <aurelien@aurel32.net>
32447 Maciej W. Rozycki <macro@imgtec.com>
32448
32449 [BZ #21956]
32450 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32451 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32452 `mips16-syscall6' and `mips16-syscall7'.
32453 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32454 (CFLAGS-mips16-syscall7.c): Remove.
32455 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32456 Remove `__mips16_syscall5', `__mips16_syscall6' and
32457 `__mips16_syscall7'.
32458 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32459 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32460 `__mips_syscall_return'.
32461 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32462 (__mips16_syscall1): Likewise.
32463 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32464 (__mips16_syscall2): Likewise.
32465 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32466 (__mips16_syscall3): Likewise.
32467 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32468 (__mips16_syscall4): Likewise.
32469 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32470 Remove.
32471 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32472 Remove.
32473 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32474 Remove.
32475 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32476 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32477 `__mips16_syscall5'. Remove prototype.
32478 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32479 `__mips16_syscall6'. Remove prototype.
32480 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32481 `__mips16_syscall7'. Remove prototype.
32482 (__nomips16, __mips16_syscall_return): Move to...
32483 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32484 (__nomips16, __mips_syscall_return): ... here.
32485 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32486 `__mips16_syscall_return' to `__mips_syscall_return'.
32487 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32488 `internal_syscall##nr'.
32489 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32490 `internal_syscall##nr'.
32491 (FORCE_FRAME_POINTER): Remove.
32492 (__mips_syscall5): New prototype.
32493 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32494 (__mips_syscall6): New prototype.
32495 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32496 (__mips_syscall7): New prototype.
32497 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32498 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32499 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32500 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32501 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32502 (sysdep_routines): Add libc-do-syscall.
32503 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32504 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32505
32506 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32507
32508 [BZ #21672]
32509 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32510 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32511 (advise_stack_range): New function.
32512 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32513 stack non required to advise_stack_range at allocatestack.c
32514
32515 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32516
32517 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32518
32519 2017-08-29 Florian Weimer <fweimer@redhat.com>
32520
32521 [BZ #22026]
32522 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32523 __end_fct. Mangle __end_fct after setting it to NULL.
32524 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32525 (modules-names, modules-names-tests): Add
32526 tst-gconv-init-failure-mod.
32527 (gconv-modules): New target.
32528 (tst-gconv-init-failure-mod.so): Link against libsupport.
32529 (tst-gconv-init-failure): Depend on gconv-modules,
32530 tst-gconv-init-failure-mod.so.
32531 * iconv/tst-gconv-init-failure-mod.c: New file.
32532 * iconv/tst-gconv-init-failure.c: Likewise.
32533 * iconv/test-gconv-modules: Likewise.
32534
32535 2017-08-29 Florian Weimer <fweimer@redhat.com>
32536
32537 [BZ #22025]
32538 * iconv/gconv_db.c (free_derivation): Remove redundant
32539 parentheses.
32540 (gen_steps): Unconditionally mangle __btowc_fct after
32541 initialization.
32542 (increment_counter): Likewise. Do not call init_fct for internal
32543 modules.
32544
32545 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32546
32547 [BZ #22028]
32548 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32549 (_MSUF_): Remove macro.
32550 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32551 Likewise.
32552 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32553 (__REDIRFROM_X): New macro.
32554 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32555 Likewise.
32556 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32557 (__REDIRTO_X): Likewise.
32558 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32559 arguments.
32560 (__MATH_REDIRCALL_2): Likewise.
32561 (__MATH_REDIRCALL_INTERNAL): Likewise.
32562 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32563 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32564 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32565 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32566 * math/test-finite-macros.c: New file.
32567 * math/Makefile (tests): Add test-finite-macros.
32568 (CFLAGS-test-finite-macros.c): New variable.
32569
32570 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32571 Jeff Law <law@redhat.com>
32572
32573 [BZ #22025]
32574 Mangle NULL pointers in iconv/gconv.
32575 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32576 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32577 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32578 is non-NULL before demangling the end_fct. Check for NULL
32579 end_fct after demangling.
32580 (__gconv_release_step): Demangle the end_fct before checking
32581 it for NULL. Remove assert on __shlibc_handle != NULL.
32582 (gen_steps): Don't check btowc_fct for NULL before mangling.
32583 Demangle init_fct before checking for NULL.
32584 (increment_counter): Likewise.
32585 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32586 end_fct for NULL before mangling.
32587 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32588 for NULL.
32589
32590 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32591
32592 [BZ #21971]
32593 * locale/iso-639.def: add Morisyen.
32594
32595 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32596
32597 [BZ #21930]
32598 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32599 (iszero): New C++ implementation that does not use
32600 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32601 signaling nans are enabled, since __builtin_types_compatible_p
32602 is a C-only feature.
32603 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32604 defined, include ieee754_float128.h for access to the union and
32605 member ieee854_float128.ieee.
32606 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32607 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32608 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32609 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32610 options of test-math-zero on powerpc64le.
32611
32612 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32613
32614 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32615 Change double to float.
32616
32617 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32618
32619 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32620 unconditional.
32621 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32622 conditional code; define contents only for [LIBM_SVID_COMPAT].
32623
32624 2017-08-28 Florian Weimer <fweimer@redhat.com>
32625
32626 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32627 (abi-lp64_be-options): Remove.
32628 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32629 (abi-hard-options): Likewise.
32630 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32631 (abi-o32_hard-options, abi-o32_soft_2008-options)
32632 (abi-o32_hard_2008-options, abi-n32_soft-options)
32633 (abi-n32_hard-options, abi-n32_soft_2008-options)
32634 (abi-n32_hard_2008-options, abi-n64_soft-options)
32635 (abi-n64_hard-options, abi-n64_soft_2008-options)
32636 (abi-n64_hard_2008-options): Likewise.
32637 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32638 (abi-64-v1-options, abi-64-v2-options): Likewise.
32639 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32640 (abi-64-options): Likewise.
32641 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32642 (abi-64-options): Likewise.
32643 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32644 (abi-64-options): Likewise.
32645 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32646 (abi-64-options, abi-x32-options): Likewise.
32647
32648 2017-08-28 Florian Weimer <fweimer@redhat.com>
32649
32650 Store supported list of SYS_* system calls in the source tree.
32651 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32652 (bits/syscall.h): Generate from list file.
32653 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32654 [$(subdir) = misc] (tests): Add tst-syscall-list.
32655 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32656 [$(subdir) = misc] (tst-syscall-list-macros.list)
32657 [$(subdir) = misc] (tst-syscall-list-nr.list)
32658 (tst-syscall-list-sys.list): Helper targets for new
32659 tst-syscall-list test.
32660 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32661 tst-syscall-list.sh.
32662 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32663 target. Do not include bits/syscall.d.
32664 [$(subdir) = misc] (generated): Do not update.
32665 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32666 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32667 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32668 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32669
32670 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32671
32672 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32673 (tst-cxa_atexit, tst-on_exit): Likewise.
32674 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32675 tst-cxa_atexit, and tst-on_exit.
32676 * stdlib/tst-atexit-common.c: New file.
32677 * stdlib/tst-atexit.c: New file.
32678 * stdlib/tst-at_quick_exit.c: New file.
32679 * stdlib/tst-cxa_atexit.c: New file.
32680 * stdlib/tst-on_exit.c: New file.
32681
32682 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32683
32684 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32685 * mach/stack_chk_fail_local.c: New file.
32686 * hurd/stack_chk_fail_local.c: New file.
32687 * mach/Machrules ($(interface-library)-routines): Add
32688 stack_chk_fail_local.
32689 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32690 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32691 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32692 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32693 * hurd/Makefile (CFLAGS-hurdstartup.o,
32694 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32695
32696 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32697
32698 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32699 (index_cpu_*, index_arch_*): Removed.
32700
32701 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32702
32703 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32704 Use uint64_t instead of unsigned long.
32705
32706 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32707
32708 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32709 [__HAVE_DISTINCT_FLOAT128].
32710
32711 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32712 of <bits/math-finite.h>.
32713 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32714 inclusion of <bits/math-finite.h>.
32715 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32716 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32717 __NO_LONG_DOUBLE_MATH].
32718 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32719 (__MATH_REDIRCALL_2): Likewise.
32720 (__MATH_REDIRCALL_INTERNAL): Likewise.
32721 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32722 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32723 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32724
32725 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32726 Remove file.
32727 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32728 Likewise.
32729 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32730 Likewise.
32731 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32732 Likewise.
32733 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32734 Likewise.
32735 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32736 Likewise.
32737 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32738 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32739 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32740 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32741 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32742 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32743 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32744 w_sqrtf_compat-ppc32.
32745
32746 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32747
32748 * math/math.h [defined __cplusplus] (issignaling): In the long
32749 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32750 is not defined. Call __issignaling, otherwise.
32751
32752 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32753
32754 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32755 syscall definitions and replace __builtin_expect with __glibc_likely.
32756 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32757 syscall.
32758 (SYSCALL_CANCELLABLE): Removedefinition
32759 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32760 definition.
32761 (PSEUDO_END): Likewise.
32762 [IS_IN (libpthread)] (CENABLE): Likewise.
32763 [IS_IN (libpthread)] (CDISABLE): Likewise.
32764 [IS_IN (libc)] (CENABLE): Likewise.
32765 [IS_IN (libc)] (CENABLE): Likewise.
32766 [IS_IN (librt)] (CDISABLE): Likewise.
32767 [IS_IN (librt)] (CDISABLE): Likewise.
32768 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32769 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32770 definition.
32771 (PSEUDO_END): Likewise.
32772 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32773 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32774 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32775 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32776 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32777 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32778 (CENABLE): Likewise.
32779 (CDISABLE): Likewise.
32780 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32781 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32782 defintion.
32783 (PSEUDO_END): Likewise.
32784 [IS_IN (libpthread)] (CENABLE): Likewise.
32785 [IS_IN (libpthread)] (CDISABLE): Likewise.
32786 [IS_IN (libc)] (CENABLE): Likewise.
32787 [IS_IN (libc)] (CENABLE): Likewise.
32788 [IS_IN (librt)] (CDISABLE): Likewise.
32789 [IS_IN (librt)] (CDISABLE): Likewise.
32790 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32791 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32792 definition.
32793 (PSEUDO_END): Likewise.
32794 [IS_IN (libpthread)] (CENABLE): Likewise.
32795 [IS_IN (libpthread)] (CDISABLE): Likewise.
32796 [IS_IN (libc)] (CENABLE): Likewise.
32797 [IS_IN (libc)] (CENABLE): Likewise.
32798 [IS_IN (librt)] (CDISABLE): Likewise.
32799 [IS_IN (librt)] (CDISABLE): Likewise.
32800 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32801 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32802 definition.
32803 (PSEUDO_END): Likewise.
32804 [IS_IN (libpthread)] (CENABLE): Likewise.
32805 [IS_IN (libpthread)] (CDISABLE): Likewise.
32806 [IS_IN (libc)] (CENABLE): Likewise.
32807 [IS_IN (libc)] (CENABLE): Likewise.
32808 [IS_IN (librt)] (CDISABLE): Likewise.
32809 [IS_IN (librt)] (CDISABLE): Likewise.
32810 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32811 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32812 definition.
32813 (PSEUDO_END): Likewise.
32814 [IS_IN (libpthread)] (CENABLE): Likewise.
32815 [IS_IN (libpthread)] (CDISABLE): Likewise.
32816 [IS_IN (libc)] (CENABLE): Likewise.
32817 [IS_IN (libc)] (CENABLE): Likewise.
32818 [IS_IN (librt)] (CDISABLE): Likewise.
32819 [IS_IN (librt)] (CDISABLE): Likewise.
32820 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32821 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32822 definition.
32823 (PSEUDO_END): Likewise.
32824 [IS_IN (libpthread)] (CENABLE): Likewise.
32825 [IS_IN (libpthread)] (CDISABLE): Likewise.
32826 [IS_IN (libc)] (CENABLE): Likewise.
32827 [IS_IN (libc)] (CENABLE): Likewise.
32828 [IS_IN (librt)] (CDISABLE): Likewise.
32829 [IS_IN (librt)] (CDISABLE): Likewise.
32830 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32831 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32832 definition.
32833 (PSEUDO_END): Likewise.
32834 [IS_IN (libpthread)] (CENABLE): Likewise.
32835 [IS_IN (libpthread)] (CDISABLE): Likewise.
32836 [IS_IN (libc)] (CENABLE): Likewise.
32837 [IS_IN (libc)] (CENABLE): Likewise.
32838 [IS_IN (librt)] (CDISABLE): Likewise.
32839 [IS_IN (librt)] (CDISABLE): Likewise.
32840 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32841 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32842 Remove definition.
32843 (PSEUDO_END): Likewise.
32844 [IS_IN (libpthread)] (CENABLE): Likewise.
32845 [IS_IN (libpthread)] (CDISABLE): Likewise.
32846 [IS_IN (libc)] (CENABLE): Likewise.
32847 [IS_IN (libc)] (CENABLE): Likewise.
32848 [IS_IN (librt)] (CDISABLE): Likewise.
32849 [IS_IN (librt)] (CDISABLE): Likewise.
32850 (SINGLE_THREAD_P): Likewise.
32851 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32852 definition.
32853 (PSEUDO_END): Likewise.
32854 [IS_IN (libpthread)] (CENABLE): Likewise.
32855 [IS_IN (libpthread)] (CDISABLE): Likewise.
32856 [IS_IN (libc)] (CENABLE): Likewise.
32857 [IS_IN (libc)] (CENABLE): Likewise.
32858 [IS_IN (librt)] (CDISABLE): Likewise.
32859 [IS_IN (librt)] (CDISABLE): Likewise.
32860 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32861 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32862 definition.
32863 (PSEUDO_END): Likewise.
32864 [IS_IN (libpthread)] (CENABLE): Likewise.
32865 [IS_IN (libpthread)] (CDISABLE): Likewise.
32866 [IS_IN (libc)] (CENABLE): Likewise.
32867 [IS_IN (libc)] (CENABLE): Likewise.
32868 [IS_IN (librt)] (CDISABLE): Likewise.
32869 [IS_IN (librt)] (CDISABLE): Likewise.
32870 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32871 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32872 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32873 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32874 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32875 definition.
32876 (PSEUDO_END): Likewise.
32877 [IS_IN (libpthread)] (CENABLE): Likewise.
32878 [IS_IN (libpthread)] (CDISABLE): Likewise.
32879 [IS_IN (libc)] (CENABLE): Likewise.
32880 [IS_IN (libc)] (CENABLE): Likewise.
32881 [IS_IN (librt)] (CDISABLE): Likewise.
32882 [IS_IN (librt)] (CDISABLE): Likewise.
32883 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32884 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32885 definition.
32886 (PSEUDO_END): Likewise.
32887 [IS_IN (libpthread)] (CENABLE): Likewise.
32888 [IS_IN (libpthread)] (CDISABLE): Likewise.
32889 [IS_IN (libc)] (CENABLE): Likewise.
32890 [IS_IN (libc)] (CENABLE): Likewise.
32891 [IS_IN (librt)] (CDISABLE): Likewise.
32892 [IS_IN (librt)] (CDISABLE): Likewise.
32893 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32894 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32895 definition.
32896 (PSEUDO_END): Likewise.
32897 [IS_IN (libpthread)] (CENABLE): Likewise.
32898 [IS_IN (libpthread)] (CDISABLE): Likewise.
32899 [IS_IN (libc)] (CENABLE): Likewise.
32900 [IS_IN (libc)] (CENABLE): Likewise.
32901 [IS_IN (librt)] (CDISABLE): Likewise.
32902 [IS_IN (librt)] (CDISABLE): Likewise.
32903 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32904 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32905 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32906 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32907 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32908 definition.
32909 (PSEUDO_END): Likewise.
32910 [IS_IN (libpthread)] (CENABLE): Likewise.
32911 [IS_IN (libpthread)] (CDISABLE): Likewise.
32912 [IS_IN (libc)] (CENABLE): Likewise.
32913 [IS_IN (libc)] (CENABLE): Likewise.
32914 [IS_IN (librt)] (CDISABLE): Likewise.
32915 [IS_IN (librt)] (CDISABLE): Likewise.
32916 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32917 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32918 definition.
32919 (PSEUDO_END): Likewise.
32920 [IS_IN (libpthread)] (CENABLE): Likewise.
32921 [IS_IN (libpthread)] (CDISABLE): Likewise.
32922 [IS_IN (libc)] (CENABLE): Likewise.
32923 [IS_IN (libc)] (CENABLE): Likewise.
32924 [IS_IN (librt)] (CDISABLE): Likewise.
32925 [IS_IN (librt)] (CDISABLE): Likewise.
32926 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32927
32928 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32929
32930 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32931
32932 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32933
32934 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32935
32936 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32937
32938 [BZ #21982]
32939 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32940 middle and outer with size_t instead of int. Repleace %d and
32941 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32942 "MAX (outer, nchars - 64)" to support unsigned outer and
32943 nchars. Also exit loop when outer == 0.
32944
32945 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32946
32947 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32948 * include/signal.h (__sigsuspend_nocancel): Likewise.
32949 * include/time.h (__nanosleep_nocancel): Likewise.
32950 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32951 * login/utmp_file.c: Include non cancellable syscall header.
32952 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32953 prototype.
32954
32955 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32956
32957 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32958 .byte sequences with AVX512F instructions.
32959 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32960 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32961 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32962 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32963 Likewise.
32964 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32965 Likewise.
32966
32967 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32968 Steve Ellcey <sellcey@cavium.com>
32969
32970 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32971 Use PTR_REG macro in cmp instruction.
32972
32973 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32974
32975 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32976 Change the return type of the ifunc resolver to match the return
32977 type of the target function.
32978
32979 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32980
32981 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32982 (preadv64): Likewise.
32983 (pwrite64(: Likewise.
32984 (pwritev64): Likewise.
32985
32986 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32987 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32988 (LOAD_ARGS_0): Likewise.
32989 (LOAD_ARGS_1): Likewise.
32990 (LOAD_ARGS_2): Likewise.
32991 (LOAD_ARGS_3): Likewise.
32992 (LOAD_ARGS_4): Likewise.
32993 (LOAD_ARGS_5): Likewise.
32994 (LOAD_ARGS_6): Likewise.
32995 (LOAD_REGS_0): Likewise.
32996 (LOAD_REGS_1): Likewise.
32997 (LOAD_REGS_2): Likewise.
32998 (LOAD_REGS_3): Likewise.
32999 (LOAD_REGS_4): Likewise.
33000 (LOAD_REGS_5): Likewise.
33001 (LOAD_REGS_6): Likewise.
33002 (ASM_ARGS_0): Likewise.
33003 (ASM_ARGS_1): Likewise.
33004 (ASM_ARGS_2): Likewise.
33005 (ASM_ARGS_3): Likewise.
33006 (ASM_ARGS_4): Likewise.
33007 (ASM_ARGS_5): Likewise.
33008 (ASM_ARGS_6): Likewise.
33009 (LOAD_ARGS_TYPES_1): Likewise.
33010 (LOAD_ARGS_TYPES_2): Likewise.
33011 (LOAD_ARGS_TYPES_3): Likewise.
33012 (LOAD_ARGS_TYPES_4): Likewise.
33013 (LOAD_ARGS_TYPES_5): Likewise.
33014 (LOAD_ARGS_TYPES_6): Likewise.
33015 (LOAD_REGS_TYPES_1): Likewise.
33016 (LOAD_REGS_TYPES_2): Likewise.
33017 (LOAD_REGS_TYPES_3): Likewise.
33018 (LOAD_REGS_TYPES_4): Likewise.
33019 (LOAD_REGS_TYPES_5): Likewise.
33020 (LOAD_REGS_TYPES_6): Likewise.
33021 (TYPEFY): New define.
33022 (ARGIFY): Likewise.
33023 (internal_syscall0): Likewise.
33024 (internal_syscall1): Likewise.
33025 (internal_syscall2): Likewise.
33026 (internal_syscall3): Likewise.
33027 (internal_syscall4): Likewise.
33028 (internal_syscall5): Likewise.
33029 (internal_syscall6): Likewise.
33030 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
33031 (INTERNAL_SYSCALL_NCS): Remove define.
33032 (internal_syscall1): Add define.
33033
33034 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33035
33036 * math/w_remainder_compat.c: Remove duplicate inclusion of
33037 math-svid-compat.h.
33038 * math/w_remainderf_compat.c: Likewise.
33039 * math/w_remainderl_compat.c: Likewise.
33040
33041 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33042
33043 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33044
33045 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33046
33047 [BZ #21684]
33048 * math/tgmath.h (__floating_type): Simplify definitions.
33049 (__real_integer_type): New macro.
33050 (__complex_integer_type): Likewise.
33051 (__expr_is_real): Likewise.
33052 (__tgmath_real_type_sub): Update comment to describe handling of
33053 complex types.
33054 (__tgmath_complex_type_sub): New macro.
33055 (__tgmath_complex_type): Likewise.
33056 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33057 (__TGMATH_CF128): Use __expr_is_real.
33058 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
33059 __expr_is_real.
33060 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33061 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
33062 * math/gen-tgmath-tests.py (Type.create_type): Create complex
33063 integer types.
33064
33065 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33066
33067 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
33068 macro.
33069 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
33070 alias.
33071 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
33072 Likewise.
33073
33074 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
33075 nanosleep_not_cancel with __nanosleep_nocancel.
33076 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
33077 (__nanosleep_nocancel): New macro.
33078 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
33079 function.
33080 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33081 macro.
33082 (__nanosleep_nocancel): New prototype.
33083
33084 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33085 pause_not_cancel with __pause_nocancel.
33086 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33087 (__pause_nocancel): New macro.
33088 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33089 macro.
33090 (__pause_nocancel): New prototype.
33091 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33092
33093 2017-08-22 Martin Sebor <msebor@redhat.com>
33094
33095 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33096 to return a pointer to the same type as the target function.
33097
33098 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33099
33100 [BZ #18822]
33101 [BZ #21986]
33102 * include/printf.h (__printf_fphex): Add attribute_hidden.
33103 (__guess_grouping): New prototype.
33104 * stdio-common/printf_fp.c (__guess_grouping): Removed.
33105 * stdio-common/reg-printf.c (__register_printf_specifier): Add
33106 libc_hidden_proto and libc_hidden_def.
33107 * stdlib/strfmon_l.c (__guess_grouping): Removed.
33108 (__vstrfmon_l): Remove the third argument passed to
33109 __guess_grouping.
33110
33111 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33112
33113 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33114 definition for issignaling that does not rely on __MATH_TG,
33115 since __MATH_TG uses __builtin_types_compatible_p, which is only
33116 available in C mode.
33117 (CFLAGS-test-math-issignaling.cc): New variable.
33118 * math/Makefile [CXX] (tests): Add test-math-issignaling.
33119 * math/test-math-issignaling.cc: New test for C++ implementation
33120 of type-generic issignaling.
33121 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33122 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33123 options of test-math-issignaling on powerpc64le.
33124
33125 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33126
33127 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33128 building libc.a.
33129 (hidden_proto): Likewise.
33130 (hidden_tls_proto): Likewise.
33131 (__hidden_proto): Likewise.
33132
33133 2017-08-22 Florian Weimer <fweimer@redhat.com>
33134
33135 math: Statically link tests of internal functionality.
33136 * math/Makefile (tests): Remove atest-exp, atest-sincos,
33137 atest-exp2.
33138 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33139 (gmp-objs): Remove assignment.
33140 (atest-exp, atest-sincos, atest-exp2): Remove targets.
33141
33142 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33143
33144 [BZ #21987]
33145 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33146 and copy to ...
33147 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33148 ... here.
33149 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33150 ... and here.
33151
33152 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33153 variable definitions above inclusion of ../Rules.
33154
33155 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33156
33157 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33158 case calling __builtin_unreachable.
33159
33160 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33161
33162 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33163 __waitpid_nocancel.
33164 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33165 (__waitpid_nocancel): New macro.
33166 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33167 macro.
33168 (__waitpid_nocancel): Replace macro with a function.
33169 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33170 function.
33171
33172 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33173 __fcntl_nocancel.
33174 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33175 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33176
33177 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33178 __writev_nocancel_nostatus.
33179 (write_call_graph): Likewise.
33180 (write_bb_counts): Likewise.
33181 * resolv/herror.c (herror): Likewise.
33182 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33183 macro.
33184 (__writev_nocancel_nostatus): New macro.
33185 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33186 Remove macro.
33187 (__writev_nocancel_nostatus): New function.
33188
33189 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33190
33191 Revert:
33192 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33193
33194 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33195 building libc.a.
33196 (hidden_proto): Likewise.
33197 (hidden_tls_proto): Likewise.
33198 (__hidden_proto): Likewise.
33199
33200 [BZ #21973]
33201 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33202 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33204 Likewise.
33205 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33206 Likewise.
33207 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33208 Likewise.
33209 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33210 Likewise.
33211 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33212 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33213 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33214 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33215 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33216 GLIBC_2.0 sqrtl symbol.
33217
33218 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33219 [__USE_MISC] (_LIB_VERSION): Likewise.
33220 [__USE_MISC] (struct exception): Likewise.
33221 [__USE_MISC] (matherr): Likewise.
33222 [__USE_MISC] (DOMAIN): Likewise.
33223 [__USE_MISC] (SING): Likewise.
33224 [__USE_MISC] (OVERFLOW): Likewise.
33225 [__USE_MISC] (UNDERFLOW): Likewise.
33226 [__USE_MISC] (TLOSS): Likewise.
33227 [__USE_MISC] (PLOSS): Likewise.
33228 [__USE_MISC] (HUGE): Likewise.
33229 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33230 * math/math-svid-compat.h: New file.
33231 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33232 and matherrl.
33233 * include/math.h [!_ISOMAC] (__matherr): Remove.
33234 * manual/arith.texi (FP Exceptions): Do not document matherr.
33235 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33236 (tests-internal): New variable.
33237 (install-lib): Do not add libieee.a.
33238 (non-lib.a): Likewise.
33239 (extra-objs): Do not add libieee.a and ieee-math.o.
33240 (CPPFLAGS-s_lib_version.c): Remove variable.
33241 ($(objpfx)libieee.a): Remove rule.
33242 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33243 * math/ieee-math.c: Remove.
33244 * math/libm-test-support.c (matherr): Remove.
33245 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33246 and license notices. Include <math-svid-compat.h> and
33247 <shlib-compat.h>.
33248 (matherr): Undefine as macro. Use compat_symbol_reference.
33249 (_LIB_VERSION): Likewise.
33250 * math/test-matherr-2.c: New file.
33251 * math/test-matherr-3.c: Likewise.
33252 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33253 declaration.
33254 (__kernel_standard_f): Likewise.
33255 (__kernel_standard_l): Likewise.
33256 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33257 <math_private.h>. Include <math-svid-compat.h>.
33258 (_LIB_VERSION): Undefine as macro.
33259 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33260 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33261 [LIBM_SVID_COMPAT], use compat_symbol.
33262 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33263 <math_private.h>. Include <math-svid-compat.h>.
33264 (matherr): Undefine as macro.
33265 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33266 compat_symbol.
33267 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33268 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33269 compat_symbol_reference.
33270 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33271 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33272 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33273 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33274 (MATHERR_D): Remove declaration.
33275 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33276 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33277 [LIBM_BUILD] (pmatherrf): Likewise.
33278 [LIBM_BUILD] (pmatherr): Likewise.
33279 [LIBM_BUILD] (pmatherrl): Likewise.
33280 (DOMAIN): Likewise.
33281 (SING): Likewise.
33282 (OVERFLOW): Likewise.
33283 (UNDERFLOW): Likewise.
33284 (TLOSS): Likewise.
33285 (PLOSS): Likewise.
33286 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33287 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33288 compat_symbol.
33289 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33290 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33291 compat_symbol.
33292 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33293 * math/w_acos_compat.c: Likewise.
33294 * math/w_acosf_compat.c: Likewise.
33295 * math/w_acosh_compat.c: Likewise.
33296 * math/w_acoshf_compat.c: Likewise.
33297 * math/w_acoshl_compat.c: Likewise.
33298 * math/w_acosl_compat.c: Likewise.
33299 * math/w_asin_compat.c: Likewise.
33300 * math/w_asinf_compat.c: Likewise.
33301 * math/w_asinl_compat.c: Likewise.
33302 * math/w_atan2_compat.c: Likewise.
33303 * math/w_atan2f_compat.c: Likewise.
33304 * math/w_atan2l_compat.c: Likewise.
33305 * math/w_atanh_compat.c: Likewise.
33306 * math/w_atanhf_compat.c: Likewise.
33307 * math/w_atanhl_compat.c: Likewise.
33308 * math/w_cosh_compat.c: Likewise.
33309 * math/w_coshf_compat.c: Likewise.
33310 * math/w_coshl_compat.c: Likewise.
33311 * math/w_exp10_compat.c: Likewise.
33312 * math/w_exp10f_compat.c: Likewise.
33313 * math/w_exp10l_compat.c: Likewise.
33314 * math/w_exp2_compat.c: Likewise.
33315 * math/w_exp2f_compat.c: Likewise.
33316 * math/w_exp2l_compat.c: Likewise.
33317 * math/w_fmod_compat.c: Likewise.
33318 * math/w_fmodf_compat.c: Likewise.
33319 * math/w_fmodl_compat.c: Likewise.
33320 * math/w_hypot_compat.c: Likewise.
33321 * math/w_hypotf_compat.c: Likewise.
33322 * math/w_hypotl_compat.c: Likewise.
33323 * math/w_j0_compat.c: Likewise.
33324 * math/w_j0f_compat.c: Likewise.
33325 * math/w_j0l_compat.c: Likewise.
33326 * math/w_j1_compat.c: Likewise.
33327 * math/w_j1f_compat.c: Likewise.
33328 * math/w_j1l_compat.c: Likewise.
33329 * math/w_jn_compat.c: Likewise.
33330 * math/w_jnf_compat.c: Likewise.
33331 * math/w_jnl_compat.c: Likewise.
33332 * math/w_lgamma_main.c: Likewise.
33333 * math/w_lgamma_r_compat.c: Likewise.
33334 * math/w_lgammaf_main.c: Likewise.
33335 * math/w_lgammaf_r_compat.c: Likewise.
33336 * math/w_lgammal_main.c: Likewise.
33337 * math/w_lgammal_r_compat.c: Likewise.
33338 * math/w_log10_compat.c: Likewise.
33339 * math/w_log10f_compat.c: Likewise.
33340 * math/w_log10l_compat.c: Likewise.
33341 * math/w_log2_compat.c: Likewise.
33342 * math/w_log2f_compat.c: Likewise.
33343 * math/w_log2l_compat.c: Likewise.
33344 * math/w_log_compat.c: Likewise.
33345 * math/w_logf_compat.c: Likewise.
33346 * math/w_logl_compat.c: Likewise.
33347 * math/w_pow_compat.c: Likewise.
33348 * math/w_powf_compat.c: Likewise.
33349 * math/w_powl_compat.c: Likewise.
33350 * math/w_remainder_compat.c: Likewise.
33351 * math/w_remainderf_compat.c: Likewise.
33352 * math/w_remainderl_compat.c: Likewise.
33353 * math/w_scalb_compat.c: Likewise.
33354 * math/w_scalbf_compat.c: Likewise.
33355 * math/w_scalbl_compat.c: Likewise.
33356 * math/w_sinh_compat.c: Likewise.
33357 * math/w_sinhf_compat.c: Likewise.
33358 * math/w_sinhl_compat.c: Likewise.
33359 * math/w_sqrt_compat.c: Likewise.
33360 * math/w_sqrtf_compat.c: Likewise.
33361 * math/w_sqrtl_compat.c: Likewise.
33362 * math/w_tgamma_compat.c: Likewise.
33363 * math/w_tgammaf_compat.c: Likewise.
33364 * math/w_tgammal_compat.c: Likewise.
33365 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33366 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33367 * sysdeps/ieee754/k_standard.c: Likewise.
33368 * sysdeps/ieee754/k_standardf.c: Likewise.
33369 * sysdeps/ieee754/k_standardl.c: Likewise.
33370 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33371 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33372 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33373 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33374 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33375 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33376 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33377 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33378 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33379 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33380 Likewise.
33381 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33382 Likewise.
33383 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33384 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33385 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33386 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33387
33388 2017-08-21 Florian Weimer <fweimer@redhat.com>
33389
33390 [BZ #21864]
33391 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33392 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33393 Move before inclusion of ../Rules.
33394
33395 2017-08-21 Florian Weimer <fweimer@redhat.com>
33396
33397 [BZ #21972]
33398 * assert/assert.h (assert): Use static_cast (bool) for C++.
33399 Use the ternary operator in the warning branch for GNU C.
33400 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33401 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33402 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33403 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33404 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33405
33406 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33407
33408 [BZ #18822]
33409 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33410 (__syscall_clock_gettime): Add attribute_hidden.
33411 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33412 (__start_context): Likewise.
33413
33414 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33415
33416 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33417 building libc.a.
33418 (hidden_proto): Likewise.
33419 (hidden_tls_proto): Likewise.
33420 (__hidden_proto): Likewise.
33421
33422 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33423
33424 * include/libc-symbols.h (attribute_hidden): Enable hidden
33425 visibility in libc.a compiled with PIE.
33426
33427 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33428
33429 [BZ #18822]
33430 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33431 Add attribute_hidden.
33432
33433 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33434
33435 [BZ #21864]
33436 * Makerules (all-nonlib): Add $(others-extras).
33437 * catgets/Makefile (others-extras): New.
33438 * elf/Makefile (others-extras): Likewise.
33439 * nss/Makefile (others-extras): Likewise.
33440
33441 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33442
33443 [BZ #18822]
33444 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33445 * elf/dl-open.c: Include <libc-internal.h>.
33446 (__libc_multiple_libcs): Removed.
33447 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33448 <hp-timing.h>.
33449 * include/libc-internal.h (__libc_multiple_libcs): New.
33450 * misc/sbrk.c: Include <libc-internal.h>.
33451 (__libc_multiple_libcs): Removed.
33452
33453 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33454
33455 [BZ #18822]
33456 * grp/initgroups.c (__nss_group_database): Removed.
33457 (__nss_initgroups_database): Likewise.
33458 * nscd/gai.c (__nss_hosts_database): Likewise.
33459 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33460 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33461 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33462 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33463 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33464 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33465 attribute_hidden.
33466 * nss/nsswitch.c (__nss_database_custom): Define only if
33467 USE_NSCD is defined.
33468 (__nss_configure_lookup): Use __nss_database_custom only if
33469 USE_NSCD is defined.
33470 * nss/nsswitch.h (__nss_database_custom): Declare only if
33471 USE_NSCD is defined. Add attribute_hidden.
33472 (__nss_setent): Add attribute_hidden.
33473 (__nss_endent): Likewise.
33474 (__nss_getent_r): Likewise.
33475 (__nss_getent): Likewise.
33476 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33477
33478 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33479
33480 [BZ #18822]
33481 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33482 libc_hidden_proto and libc_hidden_def.
33483
33484 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33485
33486 [BZ #18822]
33487 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33488 Add libc_hidden_proto.
33489 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33490 Add libc_hidden_def.
33491
33492 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33493
33494 [BZ #21974]
33495 * gmon/Makefile (routines): Remove bb_init_func and
33496 bb_exit_func.
33497 (elide-routines.os): Removed.
33498 * gmon/bb_exit_func.c: Likewise.
33499 * gmon/bb_init_func.c: Likewise.
33500 * include/sys/gmon.h (__bb): Likewise.
33501 (__bb_init_func): Likewise.
33502 (__bb_exit_func): Likewise.
33503 * sysdeps/alpha/bb_init_func.S: Likewise.
33504
33505 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33506
33507 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33508 * include/setjmp.h (____longjmp_chk): Here. Add
33509 attribute_hidden.
33510
33511 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33512
33513 [BZ #18822]
33514 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33515 attribute_hidden.
33516 (__strspn_sse2): Likewise.
33517
33518 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33519
33520 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33521 (close_not_cancel_no_status): Likewise.
33522 (__close_nocancel): New macro.
33523 (__close_nocancel_nostatus): Likewise.
33524 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33525 macro.
33526 (close_not_cancel): Likewise.
33527 (close_not_cancel_no_status): Likewise.
33528 (__close_nocancel): New prototype.
33529 (__close_nocancel_nostatus): New function.
33530 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33531 * catgets/open_catalog.c (__open_catalog): Replace
33532 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33533 * gmon/gmon.c (write_gmon): Likewise.
33534 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33535 * intl/loadmsgcat.c (close): Likewise.
33536 * io/ftw.c (open_dir_stream): Likewise.
33537 (ftw_startup): Likewise.
33538 * libio/fileops.c (_IO_file_open): Likewise.
33539 (_IO_file_close_mmap): Likewise.
33540 (_IO_file_close): Likewise.
33541 * libio/iopopen.c (_IO_dup2): Likewise.
33542 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33543 * locale/loadlocale.c (_nl_load_locale): Likewise.
33544 * login/utmp_file.c (pututline_file): Likewise.
33545 (endutent_file): Likewise.
33546 * misc/daemon.c (daemon): Likewise.
33547 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33548 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33549 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33550 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33551 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33552 * nscd/nscd_helper.c (open_socket): Likewise.
33553 (__nscd_open_socket): Likewise.
33554 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33555 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33556 (__nscd_innetgr): Likewise.
33557 * nss/nss_db/db-open.c (internal_setent): Likewise.
33558 * resolv/res-close.c (__res_iclose): Likewise.
33559 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33560 * sysdeps/posix/closedir.c (__closedir): Likewise.
33561 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33562 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33563 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33564 (opendir_tail): Likewise.
33565 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33566 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33567 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33568 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33569 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33570 (gethostid): Likewise.
33571 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33572 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33573 Likewise.
33574 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33575 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33576 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33577 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33578 Likewise.
33579 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33580 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33581 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33582 Likewise.
33583 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33584 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33585 Likewise.
33586 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33587 Likewise.
33588 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33589 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33590 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33591 __close_nocancel.
33592
33593 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33594 (openat_not_cancel_3): Likewise.
33595 (openat64_not_cancel_3): Likewise).
33596 (openat_not_cancel_3): Likewise).
33597 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33598 macro.
33599 (openat_not_cancel_3): Likewise.
33600 (openat64_not_cancel): Likewise.
33601 (openat64_not_cancel_3): Likewise.
33602 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33603 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33604 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33605 __open{64}_nocancel.
33606 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33607 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33608 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33609
33610 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33611
33612 [BZ #18822]
33613 * include/argz.h (__argz_create_sep): New function prototype.
33614 (__argz_append): Likewise.
33615 (__argz_add): Likewise.
33616 (__argz_add_sep): Likewise.
33617 (__argz_delete): Likewise.
33618 (__argz_insert): Likewise.
33619 (__argz_replace): Likewise.
33620 * string/argz.h (__argz_create_sep): Removed.
33621 (__argz_append): Likewise.
33622 (__argz_add): Likewise.
33623 (__argz_add_sep): Likewise.
33624 (__argz_delete): Likewise.
33625 (__argz_insert): Likewise.
33626 (__argz_replace): Likewise.
33627
33628 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33629
33630 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33631 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33632 (GNU_PROPERTY_STACK_SIZE): Likewie.
33633 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33634 (GNU_PROPERTY_LOPROC): Likewise.
33635 (GNU_PROPERTY_HIPROC): Likewise.
33636 (GNU_PROPERTY_LOUSER): Likewise.
33637 (GNU_PROPERTY_HIUSER): Likewise.
33638 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33639 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33640 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33641 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33642 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33643 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33644 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33645 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33646 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33647 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33648 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33649 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33650 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33651 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33652 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33653 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33654 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33655 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33656 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33657 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33658 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33659 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33660 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33661
33662 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33663
33664 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33665 in C++ mode.
33666
33667 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33668
33669 [BZ #21930]
33670 * math/math.h (isinf): Check if in C or C++ mode before using
33671 __builtin_types_compatible_p, since this is a C mode feature.
33672
33673 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33674
33675 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33676 (__write_nocancel): New macro.
33677 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33678 Rewrite as a function prototype.
33679 (write_not_cancel): Remove macro.
33680 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33681 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33682 (write_gmon): Likewise.
33683 * libio/fileops.c (_IO_new_file_write): Likewise.
33684 * login/utmp_file.c (pututline_file): Likewise.
33685 (updwtmp_file): Likewise.
33686 * stdio-common/psiginfo.c (psiginfo): Likewise.
33687 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33688 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33689 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33690 Likewise.
33691 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33692 Likewise.
33693
33694 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33695 (__read_nocancel): New macro.
33696 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33697 __read_nocancel.
33698 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33699 macro.
33700 (__read_nocancel): New prototype.
33701 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33702 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33703 with __read_nocancel.
33704 * intl/loadmsgcat.c (read): Likewise.
33705 * libio/fileops.c (_IO_file_read): Likewise.
33706 * locale/loadlocale.c (_nl_load_locale): Likewise.
33707 * login/utmp_file.c (getutent_r_file): Likewise.
33708 (internal_getut_r): Likewise.
33709 (getutline_r_file): Likewise.
33710 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33711 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33712 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33713 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33714 Likewise.
33715 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33716 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33717 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33718 Likewise.
33719 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33720 Likewise.
33721 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33722 Likewise.
33723 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33724 Likewise.
33725 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33726
33727 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33728
33729 [BZ #21966]
33730 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33731 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33732 usable.
33733
33734 2017-08-17 DJ Delorie <dj@redhat.com>
33735
33736 * bug17079.c: Update to new test harness.
33737 * test-digits-dots.c: Likewise.
33738 * test-netdb.c: Likewise.
33739 * tst-field.c: Likewise.
33740 * tst-nss-getpwent.c: Likewise.
33741 * tst-nss-static.c: Likewise.
33742 * tst-nss-test1.c: Likewise.
33743 * tst-nss-test2.c: Likewise.
33744 * tst-nss-test3.c: Likewise.
33745 * tst-nss-test4.c: Likewise.
33746 * tst-nss-test5.c: Likewise.
33747
33748 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33749
33750 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33751 (open_not_cancel_2): Likewise.
33752 (open_nocancel): New macro.
33753 (open64_nocancel): Likewise.
33754 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33755 (open_not_cancel_2): Likewise.
33756 (__open_nocancel): New prototype.
33757 (__open64_nocancel): Likewise.
33758 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33759 __open_nocancel.
33760 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33761 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33762 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33763 with __open_nocancel.
33764 * csu/check_fds.c (check_one_fd): Likewise.
33765 * gmon/gmon.c (write_gmon): Likewise.
33766 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33767 * intl/loadmsgcat.c (open): Likewise.
33768 * libio/fileops.c (_IO_file_open): Likewise.
33769 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33770 * locale/loadlocale.c (_nl_load_locale): Likewise.
33771 * login/utmp_file.c (setutent_file): Likewise.
33772 * misc/daemon.c (daemon): Likewise.
33773 * nss/nss_db/db-open.c (internal_setent): Likewise.
33774 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33775 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33776 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33777 (__opendir): Likewise.
33778 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33779 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33780 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33781 (gethostid): Likewise.
33782 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33783 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33784 Likewise.
33785 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33786 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33787 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33788 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33789 Likewise.
33790 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33791 Likewise.
33792 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33793 Likewise.
33794 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33795 Likewise.
33796 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33797 Likewise.
33798 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33799 Likewise.
33800 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33801 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33802
33803 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33804
33805 * benchtests/bench-skeleton.c (main): Add support for
33806 latency benchmarking.
33807 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33808
33809 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33810
33811 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33812 the startup object.
33813
33814 2017-08-17 Florian Weimer <fweimer@redhat.com>
33815
33816 * include/sys/socket.h (__opensock): Remove internal_function.
33817 * socket/opensock.c (__opensock): Likewise.
33818 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33819
33820 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33821
33822 [BZ #21944]
33823 * signal/bits/types/__sigval_t.h: New file.
33824 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33825 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33826 and define sigval_t using __sigval_t.
33827 * include/bits/types/__sigval_t.h: New file.
33828 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33829 instead of <bits/types/__sigval_t.h>.
33830 (struct sigevent): Use __sigval_t instead of sigval_t.
33831 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33832 instead of <bits/types/__sigval_t.h>.
33833 (siginfo_t): Use __sigval_t instead of sigval_t.
33834 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33835 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33836 (struct sigevent): Use __sigval_t instead of sigval_t.
33837 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33838 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33839 (siginfo_t): Use __sigval_t instead of sigval_t.
33840 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33841
33842 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33843
33844 * NEWS: Remove "[Add new features here]" for 2.27.
33845
33846 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33847
33848 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33849 libc.so.
33850
33851 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33852
33853 * NEWS: Mention x86-64 FMA optimization.
33854
33855 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33856
33857 [BZ #21912]
33858 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33859 Add e_expf-fma.
33860 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33861 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33862 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33863
33864 2017-08-16 Andreas Schwab <schwab@suse.de>
33865
33866 [BZ #16750]
33867 CVE-2009-5064
33868 * elf/ldd.bash.in: Never run file directly.
33869
33870 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33871
33872 [BZ #21955]
33873 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33874 (L(SP_INF_0)): Likewise.
33875
33876 2017-08-15 Florian Weimer <fweimer@redhat.com>
33877
33878 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33879 run-built-tests.
33880
33881 2017-08-15 Florian Weimer <fweimer@redhat.com>
33882
33883 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33884 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33885 BROKEN_THREAD_SIGNALS code.
33886 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33887 request_list): Remove caller_pid member used for
33888 BROKEN_THREAD_SIGNALS.
33889 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33890 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33891 Remove BROKEN_THREAD_SIGNALS support.
33892 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33893 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33894
33895 2017-08-15 Florian Weimer <fweimer@redhat.com>
33896
33897 * gmon/Makefile (tests): Add tst-gmon.
33898 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33899 Set.
33900 (tests-special): Add tst-gmon-prof.out.
33901 (tst-gmon.out): Depend on clean-tst-gmon-data.
33902 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33903 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33904 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33905 startup object.
33906 * aclocal.m4 (GPROF): Set and substitute.
33907 * config.amke.in (GPROF): Set.
33908 * configure: Regenerate.
33909
33910 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33911
33912 * elf/elf.h A (NT_PPC_TAR): New macro.
33913 (NT_PPC_PPR): Likewise.
33914 (NT_PPC_DSCR): Likewise.
33915 (NT_PPC_EBB): Likewise.
33916 (NT_PPC_PMU): Likewise.
33917 (NT_PPC_TM_CGPR): Likewise.
33918 (NT_PPC_TM_CFPR): Likewise.
33919 (NT_PPC_TM_CVMX): Likewise.
33920 (NT_PPC_TM_CVSX): Likewise.
33921 (NT_PPC_TM_SPR): Likewise.
33922 (NT_PPC_TM_CTAR): Likewise.
33923 (NT_PPC_TM_CPPR): Likewise.
33924 (NT_PPC_TM_CDSCR): Likewise.
33925
33926 2017-08-15 Florian Weimer <fweimer@redhat.com>
33927
33928 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33929 regparm (2) instead of internal_function.
33930 (_MCOUNT_DECL): Adjust.
33931
33932 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33933
33934 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33935 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33936
33937 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33938
33939 * conform/data/sys/wait.h-data (si_value): Do not expect for
33940 XPG42.
33941
33942 2017-08-14 Florian Weimer <fweimer@redhat.com>
33943
33944 [BZ #21962]
33945 NSS: Create stubs for accidentally exported lookup functions.
33946 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33947 Remove declaration.
33948 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33949 (ether_hostton): Call __nss_ethers_lookup2 instead.
33950 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33951 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33952 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33953 (setup): Call __nss_netgroup_lookup2 instead.
33954 * nss/Makefile (routines): Add compat-lookup.
33955 * nss/Versions (GLIBC_2.27): Add symbol version.
33956 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33957 (DB_COMPAT_FCT): Remove.
33958 * nss/compat-lookup.c: New file.
33959 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33960 from databases.def.
33961 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33962 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33963 (netname2user): Call __nss_publickey_lookup2 instead.
33964 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33965 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33966 instead.
33967
33968 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33969 Sergei Trofimovich <slyfox@inbox.ru>
33970
33971 [BZ #21908]
33972 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33973 Rename to MMAP2_PAGE_UNIT.
33974 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33975 __OFF_T_MATCHES_OFF64_T is not defined.
33976 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33977 uint64_t.
33978 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33979 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33980
33981 2017-08-14 Florian Weimer <fweimer@redhat.com>
33982
33983 i386: Do not set internal_function.
33984 * config.h.in (USE_REGPARMS, internal_function): Remove.
33985 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33986 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33987
33988 2017-08-14 Florian Weimer <fweimer@redhat.com>
33989
33990 * elf/dl-init.c (_dl_init): Remove internal_function.
33991 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33992 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33993
33994 2017-08-14 Florian Weimer <fweimer@redhat.com>
33995
33996 * elf/rtld.c (_dl_start): Remove internal_function.
33997 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33998 _dl_start.
33999
34000 2017-08-14 Florian Weimer <fweimer@redhat.com>
34001
34002 * elf/dl-fini.c (_dl_fini): Remove internal_function
34003 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
34004
34005 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
34006
34007 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
34008 (bit_cpu_SHSTK): Likewise.
34009 (index_cpu_IBT): Likewise.
34010 (index_cpu_SHSTK): Likewise.
34011 (reg_IBT): Likewise.
34012 (reg_SHSTK): Likewise.
34013 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
34014 Handle index_cpu_IBT and index_cpu_SHSTK.
34015
34016 2017-08-14 Mike FABIAN <mfabian@redhat.com>
34017
34018 [BZ #19982]
34019 * po/fr.po: Fix spelling mistake.
34020
34021 2017-08-13 Florian Weimer <fweimer@redhat.com>
34022
34023 * elf/dl-addr.c (_dl_addr): Remove internal_function.
34024 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
34025 (_dl_catch_error, _dl_receive_error): Likewise.
34026 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
34027 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
34028 (_dl_deallocate_tls): Likewise.
34029 * include/dlfcn.h (_dl_addr): Likewise.
34030 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
34031 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
34032 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
34033 Likewise.
34034
34035 2017-08-13 Florian Weimer <fweimer@redhat.com>
34036
34037 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
34038 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
34039 internal_function.
34040 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
34041
34042 2017-08-13 Florian Weimer <fweimer@redhat.com>
34043
34044 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
34045 internal_function.
34046 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
34047 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
34048 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
34049 internal_function from _dl_make_stack_executable_hook member.
34050 (_dl_make_stack_executable): Remove internal_function.
34051 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
34052 Likewise.
34053 * sysdeps/unix/sysv/linux/dl-execstack.c
34054 (_dl_make_stack_executable): Likewise.
34055
34056 2017-08-13 Florian Weimer <fweimer@redhat.com>
34057
34058 * sysdeps/unix/sysv/linux/netlinkaccess.h
34059 (__netlink_assert_response): Remove internal_function.
34060 * sysdeps/unix/sysv/linux/netlink_assert_response.c
34061 (__netlink_assert_response): Likewise.
34062
34063 2017-08-13 Florian Weimer <fweimer@redhat.com>
34064
34065 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
34066 internal_function.
34067 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
34068
34069 2017-08-13 Florian Weimer <fweimer@redhat.com>
34070
34071 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
34072 internal_function.
34073 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
34074 * inet/netgroup.h (__internal_setnetgrent)
34075 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34076 * inet/getnetgrent_r.c (__internal_setnetgrent)
34077 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
34078 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
34079 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
34080 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34081 * nss/nsswitch.h (db_lookup_function): Likewise.
34082
34083 2017-08-13 Florian Weimer <fweimer@redhat.com>
34084
34085 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34086 Remove internal_function.
34087 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34088 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34089 message argument on the stack.
34090 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34091 Likeweise.
34092
34093 2017-08-12 Mike FABIAN <mfabian@redhat.com>
34094
34095 Adapt test case data to the changes in the thousands
34096 separators.
34097
34098 [BZ #20756]
34099 * localedata/tst-langinfo.sh: Adapt test case data.
34100 * stdlib/tst-strfmon_l.c: Likewise.
34101 * stdlib/tst-strtod4.c: Likewise.
34102 * stdlib/tst-strtod5i.c: Likewise.
34103
34104 2017-08-11 Florian Weimer <fweimer@redhat.com>
34105
34106 [BZ #21242]
34107 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34108 Suppress pedantic warning resulting from statement expression.
34109 (__ASSERT_FUNCTION): Add missing __extension__.
34110
34111 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34112
34113 * benchtests/bench-memmove-large.c: Print output in JSON
34114 format.
34115 * benchtests/bench-memmove.c: Likewise.
34116
34117 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34118 * benchtests/bench-memchr.c (do_one_test): Likewise.
34119 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34120 * benchtests/bench-memcpy.c (do_one_test): Likewise.
34121 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34122 * benchtests/bench-memmove.c (do_one_test): Likewise.
34123 * benchtests/bench-memset-large.c (do_one_test): Likewise.
34124 * benchtests/bench-memset.c (do_one_test): Likewise.
34125 * benchtests/bench-string.h (test_init): Remove memsets.
34126
34127 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34128
34129 * manual/lang.texi
34130 (Computing the Width of an Integer Data Type): Rename section to
34131 "Width of an Integer Type". Remove inaccurate statement regarding
34132 lack of C language facilities for determining width of integer
34133 types, and reorder content to improve flow and context of
34134 discussion.
34135
34136 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34137
34138 * lang.texi (va_copy): Change standard from ISO to C99.
34139 (__va_copy): Add standard and header annotation.
34140 Update description for clarity of origins and current use.
34141
34142 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34143
34144 [BZ #21941]
34145 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34146 xssqrtqp requires operands to be in Vector Registers
34147 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34148 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34149 (__ieee754_sqrtf128): Likewise.
34150
34151 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
34152
34153 * sysdeps/aarch64/memcmp.S (memcmp):
34154 Rewrite of optimized memcmp.
34155
34156 2017-08-10 Florian Weimer <fweimer@redhat.com>
34157
34158 Introduce ld.so exceptions.
34159 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34160 (_dl_exception_create, _dl_exception_create_format)
34161 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34162 (_dl_catch_exception): Declare.
34163 (_dl_catch_error): Update comment.
34164 * elf/dl-error-skeleton.c (struct catch): Replace objname,
34165 errstring, malloced members with exception member.
34166 (_dl_out_of_memory): Remove.
34167 (fatal_error): New function, extracted from _dl_signal_error.
34168 (_dl_signal_exception, _dl_signal_cexception): New functions.
34169 (_dl_signal_error): Call _dl_exception_create to allocate an
34170 exception object.
34171 (_dl_catch_exception): New function, based on _dl_catch_error.
34172 (_dl_catch_error): Implement using _dl_catch_exception.
34173 * elf/dl-exception.c: New file.
34174 * elf/Makefile (dl-routines): Add dl-exception.
34175 (elide-routines.os): Likewise.
34176 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34177 _dl_exception_create_format, _dl_exception_free.
34178 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34179 _dl_signal_exception.
34180 * elf/dl-lookup.c (make_string): Remove.
34181 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34182 _dl_signal_cexception, _dl_exception_free.
34183 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34184 _dl_signal_exception.
34185 * elf/dl-sym.c (do_sym): Likewise.
34186 * elf/dl-version.c (make_string): Remove.
34187 (match_symbol): Use _dl_exception_create_format,
34188 _dl_signal_cexception, _dl_exception_free.
34189 (_dl_check_map_versions): Likewise.
34190 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34191 _dl_catch_exception.
34192 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34193 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34194 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34195 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34196 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34197 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34198 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34199 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34200 Likewise.
34201 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34202 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34203 (ld.so): Likewise.
34204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34205 (ld.so): Likewise.
34206 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34207 Likewise.
34208 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34209 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34210 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34211 Likewise.
34212 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34213 Likewise.
34214 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34215
34216 2017-08-10 Florian Weimer <fweimer@redhat.com>
34217
34218 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34219 attribute_hidden, internal_function.
34220 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34221 internal_function.
34222
34223 2017-08-10 Florian Weimer <fweimer@redhat.com>
34224
34225 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34226 function which calls __builtin_unreachable.
34227
34228 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34229
34230 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34231 Indian monetary formatting
34232 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34233 test cases.
34234
34235 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34236
34237 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34238 Fix typo in comment.
34239
34240 [BZ #21928]
34241 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34242 PTRACE_SEIZE_DEVEL): Remove.
34243 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34244 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34245 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34246 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34247 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34248
34249 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34250
34251 * posix/bits/types.h (__qaddr_t): Remove.
34252
34253 [BZ #21457]
34254 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34255 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34256 __glibc_reserved1.
34257 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34258 (ucontext_t): Use __ctx with uc_flags.
34259 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34260 (__ctxt): Likewise.
34261 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34262 __glibc_reserved1.
34263 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34264 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34265 __glibc_reserved1.
34266 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34267 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34268 __glibc_reserved1.
34269 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34270 macro.
34271 (ucontext_t): Use __ctx with uc_flags.
34272 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34273 (ucontext_t): Use __ctx with uc_flags.
34274 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34275 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34276 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34277 (ucontext_t): Use __ctx with uc_flags.
34278 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34279 undefine further down.
34280 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34281 __glibc_reserved1.
34282 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34283 undefine further down.
34284 (ucontext_t): Use __ctx with uc_flags.
34285 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34286 undefine further down.
34287 (ucontext_t): Use __ctx with uc_flags.
34288 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34289 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34290 Rename uc_pad to __glibc_reserved1.
34291 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34292 undefine further down.
34293 (ucontext_t): Use __ctx with uc_flags.
34294 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34295 further down.
34296 (ucontext_t): Use __ctx with uc_flags.
34297 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34298 __ctx with uc_flags.
34299 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34300 (ucontext_t): Use __ctx with uc_flags.
34301 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34302 __ctx with uc_flags.
34303
34304 2017-08-09 Florian Weimer <fweimer@redhat.com>
34305
34306 [BZ #21932]
34307 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34308 before early return.
34309
34310 2017-08-09 Andreas Schwab <schwab@suse.de>
34311
34312 [BZ #21041]
34313 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34314 renamed alias.
34315
34316 [BZ #21041]
34317 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34318 tst-compat-forwarder.
34319 (modules-names): Add tst-compat-forwarder-mod.
34320 ($(objpfx)tst-compat-forwarder): Depend on
34321 $(objpfx)tst-compat-forwarder-mod.so.
34322 * nptl/tst-compat-forwarder.c: New file.
34323 * nptl/tst-compat-forwarder-mod.c: New file.
34324
34325 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34326
34327 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34328 comments.
34329
34330 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34331 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34332 memcpy_falkor.
34333 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34334 Bump.
34335 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34336 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34337 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34338 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34339 Add falkor.
34340 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34341 New macro.
34342
34343 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34344
34345 [BZ #759]
34346 * manual/setjmp.texi (getcontex): Document uc_stack value
34347 compatibility differences.
34348
34349 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34350
34351 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34352 (old_malloc_hook): Likewise.
34353 (old_memalign_hook): Likewise.
34354 (old_realloc_hook): Likewise.
34355 (struct hdr): Likewise.
34356 (flood): Likewise.
34357 (freehook): Likewise.
34358 (mallochook): Likewise.
34359 (memalignhook): Likewise.
34360 (reallochook): Likewise.
34361 (mprobe): Likewise.
34362 * malloc/mtrace.c (mallwatch): Likewise.
34363 (tr_old_free_hook): Likewise.
34364 (tr_old_malloc_hook): Likewise.
34365 (tr_old_realloc_hook): Likewise.
34366 (tr_old_memalign_hook): Likewise.
34367 (tr_where): Likewise.
34368 (lock_and_info): Likewise.
34369 (tr_freehook): Likewise.
34370 (tr_mallochook): Likewise.
34371 (tr_reallochook): Likewise.
34372 (tr_memalignhook): Likewise.
34373 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34374 * misc/mmap.c (__mmap): Likewise.
34375 * misc/mmap64.c (__mmap64): Likewise.
34376 * misc/mprotect.c (__mprotect): Likewise.
34377 * misc/msync.c (msync): Likewise.
34378 * misc/munmap.c (__munmap): Likewise.
34379 * posix/posix_madvise.c (posix_madvise): Likewise.
34380 * socket/send.c (__send): Likewise.
34381 * socket/sendto.c (__sendto): Likewise.
34382 * socket/setsockopt.c (__setsockopt): Likewise.
34383 * string/memcmp.c (__ptr_t): Remove macro.
34384 (MEMCMP): Use void * instead of ptr_t.
34385 * string/memrchr.c (__ptr_t): Remove macro.
34386 (__memrchr): Use void * instead of ptr_t.
34387 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34388 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34389 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34390 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34391 * sysdeps/mach/msync.c (msync): Likewise.
34392 * sysdeps/mach/munmap.c (__munmap): Likewise.
34393 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34394 Likewise.
34395 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34396 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34397 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34398 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34399 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34400 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34401 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34402 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34403 Likewise.
34404 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34405 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34406 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34407 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34408 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34409 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34410 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34411 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34412 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34413 Likewise.
34414 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34415 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34416 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34417 (MEMCMP): Use void * instead of ptr_t.
34418 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34419 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34420
34421 2017-08-08 Florian Weimer <fweimer@redhat.com>
34422
34423 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34424 return statement.
34425
34426 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34427
34428 [BZ #21913]
34429 * csu/libc-tls.c: Include <startup.h> first.
34430 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34431 * elf/dl-tunables.c: Include <startup.h> first.
34432 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34433 * sysdeps/generic/startup.h: New file.
34434 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34435 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34436 (I386_USE_SYSENTER): New. Defined to 0.
34437
34438 2017-08-08 Andreas Schwab <schwab@suse.de>
34439
34440 [BZ #21041]
34441 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34442 * nptl/pt-system.c (system): Likewise.
34443
34444 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34445
34446 [BZ #21780]
34447 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34448 EOPNOTSUPP.
34449 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34450 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34451 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34452 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34453 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34454 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34455 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34456
34457 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34458
34459 [BZ #21899]
34460 * bits/sigaction.h (struct sigaction): Define sa_handler and
34461 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34462 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34463 [__USE_XOPEN_EXTENDED].
34464 (SA_RESTART): Likewise.
34465 (SA_NODEFER): Likewise.
34466 (SA_RESETHAND): Likewise.
34467 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34468 (struct sigaction): Define sa_handler and sa_sigaction using union
34469 also for [__USE_XOPEN_EXTENDED].
34470 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34471 [__USE_XOPEN_EXTENDED].
34472 (SA_RESTART): Likewise.
34473 (SA_NODEFER): Likewise.
34474 (SA_RESETHAND): Likewise.
34475 * sysdeps/unix/sysv/linux/bits/sigaction.h
34476 (struct sigaction): Define sa_handler and sa_sigaction using union
34477 also for [__USE_XOPEN_EXTENDED].
34478 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34479 [__USE_XOPEN_EXTENDED].
34480 (SA_RESTART): Likewise.
34481 (SA_NODEFER): Likewise.
34482 (SA_RESETHAND): Likewise.
34483 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34484 (struct sigaction): Define sa_handler and sa_sigaction using union
34485 also for [__USE_XOPEN_EXTENDED].
34486 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34487 [__USE_XOPEN_EXTENDED].
34488 (SA_RESTART): Likewise.
34489 (SA_NODEFER): Likewise.
34490 (SA_RESETHAND): Likewise.
34491 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34492 (struct sigaction): Define sa_handler and sa_sigaction using union
34493 also for [__USE_XOPEN_EXTENDED].
34494 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34495 [__USE_XOPEN_EXTENDED].
34496 (SA_RESTART): Likewise.
34497 (SA_NODEFER): Likewise.
34498 (SA_RESETHAND): Likewise.
34499 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34500 (struct sigaction): Define sa_handler and sa_sigaction using union
34501 also for [__USE_XOPEN_EXTENDED].
34502 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34503 [__USE_XOPEN_EXTENDED].
34504 (SA_RESTART): Likewise.
34505 (SA_NODEFER): Likewise.
34506 (SA_RESETHAND): Likewise.
34507 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34508 (struct sigaction): Define sa_handler and sa_sigaction using union
34509 also for [__USE_XOPEN_EXTENDED].
34510 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34511 [__USE_XOPEN_EXTENDED].
34512 (SA_RESTART): Likewise.
34513 (SA_NODEFER): Likewise.
34514 (SA_RESETHAND): Likewise.
34515 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34516 (struct sigaction): Define sa_handler and sa_sigaction using union
34517 also for [__USE_XOPEN_EXTENDED].
34518 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34519 [__USE_XOPEN_EXTENDED].
34520 (SA_RESTART): Likewise.
34521 (SA_NODEFER): Likewise. Define directly rather than as alias.
34522 (SA_RESETHAND): Likewise.
34523 (SA_INTERRUPT): Define only for [__USE_MISC].
34524 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34525 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34526 [__USE_MISC].
34527 (SA_STACK): Define only for [__USE_MISC].
34528 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34529 (struct sigaction): Define sa_handler and sa_sigaction using union
34530 also for [__USE_XOPEN_EXTENDED].
34531 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34532 [__USE_XOPEN_EXTENDED].
34533 (SA_RESTART): Likewise.
34534 (SA_NODEFER): Likewise.
34535 (SA_RESETHAND): Likewise.
34536 (SA_NOPTRACE): Define only for [__USE_MISC].
34537
34538 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34539 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34540 (struct catalog_info): Likewise.
34541 * inet/htontest.c (lo): Likewise.
34542 (foo): Likewise.
34543 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34544 * inet/inet_net.c (inet_network): Likewise.
34545 * inet/inet_netof.c (inet_netof): Likewise.
34546 * inet/rcmd.c (__ivaliduser): Likewise.
34547 (iruserok): Likewise.
34548 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34549 * locale/programs/locale-spec.c (locale_special): Likewise.
34550 * nis/nis_findserv.c (struct findserv_req): Likewise.
34551 (__nis_findfastest_with_timeout): Likewise.
34552 * nss/test-netdb.c (test_network): Likewise.
34553 * resolv/inet_neta.c (inet_neta): Likewise.
34554 * resolv/ns_date.c (ns_datetosecs): Likewise.
34555 (SECS_PER_DAY): Likewise.
34556 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34557 Likewise.
34558 * resolv/res_comp.c (__putlong): Likewise.
34559 (__putshort): Likewise.
34560 (_getlong): Likewise.
34561 (_getshort): Likewise.
34562 * resolv/res_debug.c (p_time): Likewise.
34563 (precsize_ntoa): Likewise.
34564 (precsize_aton): Likewise.
34565 (latlon2ul): Likewise.
34566 (loc_aton): Likewise.
34567 (loc_ntoa): Likewise.
34568 * resolv/res_hconf.c (struct netaddr): Likewise.
34569 (_res_hconf_reorder_addrs): Likewise.
34570 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34571 (clnttcp_control): Likewise.
34572 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34573 (clntudp_control): Likewise.
34574 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34575 (clntunix_control): Likewise.
34576 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34577 * sunrpc/rpc/auth.h (union des_block): Likewise.
34578 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34579 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34580 (xdrrec_create): Likewise.
34581 (xdrrec_endofrecord): Likewise.
34582 (flush_out): Likewise.
34583 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34584 (xdrstdio_putlong): Likewise.
34585 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34586 Likewise.
34587
34588 * misc/sys/cdefs.h (__long_double_t): Remove.
34589 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34590 instead of __long_double_t,
34591 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34592
34593 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34594
34595 * benchtests/scripts/compare_strings.py: Avoid display error when
34596 running on a text terminal.
34597
34598 * benchtests/scripts/compare_strings.py (main): Add an
34599 optional -base option.
34600 (process_results): New argument base_func.
34601
34602 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34603 hardcoding memcpy.
34604 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34605 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34606
34607 2017-08-07 Andreas Schwab <schwab@suse.de>
34608
34609 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34610 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34611 * intl/Makefile ($(objpfx)tst-gettext.out)
34612 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34613 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34614 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34615 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34616 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34617 * posix/Makefile ($(objpfx)globtest.out)
34618 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34619 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34620 ($(objpfx)tst-printf.out): Likewise.
34621 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34622 ($(objpfx)tst-setcontext3.out): Likewise.
34623
34624 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34625
34626 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34627 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34628 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34629 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34630 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34631 and mptan-fma.
34632 (CFLAGS-doasin-fma.c): New.
34633 (CFLAGS-dosincos-fma.c): Likewise.
34634 (CFLAGS-e_asin-fma.c): Likewise.
34635 (CFLAGS-e_atan2-fma.c): Likewise.
34636 (CFLAGS-e_exp-fma.c): Likewise.
34637 (CFLAGS-e_log-fma.c): Likewise.
34638 (CFLAGS-e_pow-fma.c): Likewise.
34639 (CFLAGS-halfulp-fma.c): Likewise.
34640 (CFLAGS-mpa-fma.c): Likewise.
34641 (CFLAGS-mpatan-fma.c): Likewise.
34642 (CFLAGS-mpatan2-fma.c): Likewise.
34643 (CFLAGS-mpexp-fma.c): Likewise.
34644 (CFLAGS-mplog-fma.c): Likewise.
34645 (CFLAGS-mpsqrt-fma.c): Likewise.
34646 (CFLAGS-mptan-fma.c): Likewise.
34647 (CFLAGS-s_atan-fma.c): Likewise.
34648 (CFLAGS-sincos32-fma.c): Likewise.
34649 (CFLAGS-slowexp-fma.c): Likewise.
34650 (CFLAGS-slowpow-fma.c): Likewise.
34651 (CFLAGS-s_sin-fma.c): Likewise.
34652 (CFLAGS-s_tan-fma.c): Likewise.
34653 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34654 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34655 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34656 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34657 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34658 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34659 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34660 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34661 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34662 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34663 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34664 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34665 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34666 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34667 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34668 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34669 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34670 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34671 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34672 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34673 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34674 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34675 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34676 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34677 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34678 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34679 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34680 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34681 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34682 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34683 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34684
34685 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34686
34687 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34688 (min_of_type_f): New macro.
34689 (min_of_type_): Likewise.
34690 (min_of_type_l): Likewise.
34691 (min_of_type_f128): Likewise.
34692 (min_of_type): Define using __MATH_TG and taking an expression
34693 argument.
34694 (math_check_force_underflow): Pass expression instead of type to
34695 min_of_type.
34696 (math_check_force_underflow_nonneg): Likewise.
34697
34698 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34699
34700 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34701 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34702 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34703
34704 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34705
34706 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34707 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34708 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34709 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34710 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34711 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34712 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34713 memmove_chk-nonshared and memset_chk-nonshared
34714 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34715 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34716 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34717 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34718 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34719 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34720 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34721 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34722 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34723 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34724 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34725 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34726 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34727 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34728 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34729 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34730 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34731 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34732 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34733 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34734 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34735 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34736 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34737 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34738 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34739 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34740 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34741 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34742 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34743 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34744 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34745 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34746 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34747 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34748 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34749 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34750 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34751 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34752 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34753 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34754 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34755 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34756 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34757 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34758 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34759 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34760 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34761 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34762 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34763 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34764 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34765 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34766 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34767 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34768 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34769 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34770 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34771 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34772 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34773 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34774 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34775 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34776 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34777 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34778 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34779 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34780 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34781 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34782 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34783 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34784 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34785 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34786 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34787 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34788 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34789 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34790 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34791 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34792 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34793 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34794 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34795 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34796 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34797 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34798 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34799 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34800 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34801 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34802 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34803 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34804 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34805 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34806 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34807 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34808 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34809 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34810 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34811 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34812 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34813 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34814 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34815 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34816 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34817 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34818 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34819 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34820 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34821 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34822
34823 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34824
34825 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34826 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34827 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34828 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34829 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34830 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34831 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34832 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34833 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34834 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34835 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34836 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34837 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34838 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34839 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34840 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34841 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34842 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34843 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34844 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34845 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34846 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34847 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34848 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34849 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34850 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34851 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34852 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34853 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34854 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34855 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34856 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34857 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34858 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34859 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34860 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34861 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34862 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34863 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34864 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34865 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34866 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34867 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34868 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34869 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34870 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34871 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34872 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34873 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34874 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34875 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34876 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34877 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34878 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34879 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34880 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34881 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34882 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34883 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34884 ...
34885 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34886 Don't include <sysdep.h> nor <init-arch.h>.
34887 (_ZGVbN2v_cos): Removed.
34888 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34889 ...
34890 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34891 Don't include <sysdep.h> nor <init-arch.h>.
34892 (_ZGVdN4v_cos): Removed.
34893 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34894 ...
34895 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34896 Don't include <sysdep.h> nor <init-arch.h>.
34897 (_ZGVeN8v_cos): Removed.
34898 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34899 ...
34900 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34901 Don't include <sysdep.h> nor <init-arch.h>.
34902 (_ZGVbN2v_exp): Removed.
34903 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34904 ...
34905 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34906 Don't include <sysdep.h> nor <init-arch.h>.
34907 (_ZGVdN4v_exp): Removed.
34908 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34909 ...
34910 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34911 Don't include <sysdep.h> nor <init-arch.h>.
34912 (_ZGVeN8v_exp): Removed.
34913 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34914 ...
34915 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34916 Don't include <sysdep.h> nor <init-arch.h>.
34917 (_ZGVbN2v_log): Removed.
34918 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34919 ...
34920 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34921 Don't include <sysdep.h> nor <init-arch.h>.
34922 (_ZGVdN4v_log): Removed.
34923 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34924 ...
34925 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34926 Don't include <sysdep.h> nor <init-arch.h>.
34927 (_ZGVeN8v_log): Removed.
34928 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34929 ...
34930 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34931 Don't include <sysdep.h> nor <init-arch.h>.
34932 (_ZGVbN2vv_pow): Removed.
34933 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34934 ...
34935 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34936 Don't include <sysdep.h> nor <init-arch.h>.
34937 (_ZGVdN4vv_pow): Removed.
34938 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34939 ...
34940 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34941 Don't include <sysdep.h> nor <init-arch.h>.
34942 (_ZGVeN8vv_pow): Removed.
34943 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34944 ...
34945 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34946 Don't include <sysdep.h> nor <init-arch.h>.
34947 (_ZGVbN2v_sin): Removed.
34948 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34949 ...
34950 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34951 Don't include <sysdep.h> nor <init-arch.h>.
34952 (_ZGVbN4v_sin): Removed.
34953 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34954 ...
34955 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34956 Don't include <sysdep.h> nor <init-arch.h>.
34957 (_ZGVbN8v_sin): Removed.
34958 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34959 ...
34960 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34961 Don't include <sysdep.h> nor <init-arch.h>.
34962 (_ZGVbN2vvv_sincos): Removed.
34963 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34964 ...
34965 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34966 Don't include <sysdep.h> nor <init-arch.h>.
34967 (_ZGVdN4vvv_sincos): Removed.
34968 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34969 ...
34970 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34971 Don't include <sysdep.h> nor <init-arch.h>.
34972 (_ZGVeN8vvv_sincos): Removed.
34973 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34974 ...
34975 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34976 Don't include <sysdep.h> nor <init-arch.h>.
34977 (_ZGVeN16v_cosf): Removed.
34978 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34979 ...
34980 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34981 Don't include <sysdep.h> nor <init-arch.h>.
34982 (_ZGVbN4v_cosf): Removed.
34983 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34984 ...
34985 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34986 Don't include <sysdep.h> nor <init-arch.h>.
34987 (_ZGVdN8v_cosf): Removed.
34988 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34989 ...
34990 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34991 Don't include <sysdep.h> nor <init-arch.h>.
34992 (_ZGVeN16v_expf): Removed.
34993 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34994 ...
34995 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34996 Don't include <sysdep.h> nor <init-arch.h>.
34997 (_ZGVbN4v_expf): Removed.
34998 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34999 ...
35000 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
35001 Don't include <sysdep.h> nor <init-arch.h>.
35002 (_ZGVdN8v_expf): Removed.
35003 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
35004 ...
35005 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
35006 Don't include <sysdep.h> nor <init-arch.h>.
35007 (_ZGVeN16v_logf): Removed.
35008 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
35009 ...
35010 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
35011 Don't include <sysdep.h> nor <init-arch.h>.
35012 (_ZGVbN4v_logf): Removed.
35013 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
35014 ...
35015 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
35016 Don't include <sysdep.h> nor <init-arch.h>.
35017 (_ZGVdN8v_logf): Removed.
35018 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
35019 ...
35020 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
35021 Don't include <sysdep.h> nor <init-arch.h>.
35022 (_ZGVeN16vv_powf): Removed.
35023 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
35024 ...
35025 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
35026 Don't include <sysdep.h> nor <init-arch.h>.
35027 (_ZGVbN4vv_powf): Removed.
35028 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
35029 ...
35030 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
35031 Don't include <sysdep.h> nor <init-arch.h>.
35032 (_ZGVdN8vv_powf): Removed.
35033 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
35034 ...
35035 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
35036 Don't include <sysdep.h> nor <init-arch.h>.
35037 (_ZGVeN16vvv_sincosf): Removed.
35038 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
35039 ...
35040 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
35041 Don't include <sysdep.h> nor <init-arch.h>.
35042 (_ZGVbN4vvv_sincosf): Removed.
35043 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
35044 ...
35045 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
35046 Don't include <sysdep.h> nor <init-arch.h>.
35047 (_ZGVdN8vvv_sincosf): Removed.
35048 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
35049 ...
35050 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
35051 Don't include <sysdep.h> nor <init-arch.h>.
35052 (_ZGVeN16v_sinf): Removed.
35053 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
35054 ...
35055 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
35056 Don't include <sysdep.h> nor <init-arch.h>.
35057 (_ZGVbN4v_sinf): Removed.
35058 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
35059 ...
35060 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
35061 Don't include <sysdep.h> nor <init-arch.h>.
35062 (_ZGVdN8v_sinf): Removed.
35063
35064 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35065
35066 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
35067 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
35068 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
35069 s_rint-sse4_1 and s_rintf-sse4_1.
35070 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
35071 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
35072 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
35073 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
35074 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
35075 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
35076 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
35077 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
35078 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
35079 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
35080 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
35081 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35082 (__ceil): Removed.
35083 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35084 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
35085 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35086 (__ceilf): Removed.
35087 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35088 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
35089 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35090 (__floor): Removed.
35091 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35092 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
35093 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35094 (__floorf): Removed.
35095 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35096 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
35097 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35098 (__nearbyint): Removed.
35099 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35100 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
35101 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35102 (__nearbyintf): Removed.
35103 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35104 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
35105 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35106 (__rint): Removed.
35107 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35108 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
35109 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35110 (__rintf): Removed.
35111
35112 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35113
35114 * sysdeps/i386/start.S (_start): Check Check PIC instead of
35115 SHARED. Avoid dynamic relocation against main in static PIE.
35116
35117 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35118
35119 [BZ #21815]
35120 * elf/Makefile (CFLAGS-tst-prelink.c): New.
35121 (LDFLAGS-tst-prelink): Likewise.
35122
35123 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35124
35125 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35126 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35127 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35128 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35129 (INTERNAL_SYSCALL_NCS): Likewise.
35130 (LOADARGS_1): Likewise.
35131 (LOADARGS_5): Likewise.
35132 (RESTOREARGS_1): Likewise.
35133 (RESTOREARGS_5): Likewise.
35134
35135 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35136
35137 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35138 (MEMPCPY_SYMBOL): Likewise.
35139 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35140 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35141 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35142 in libc.a.
35143 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35144 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35145 Likewise.
35146 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35147 (__hidden_ver1): Don't use in libc.a.
35148 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35149 (__mempcpy): Don't create a weak alias in libc.a.
35150 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35151 libc.a.
35152 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35153 (__hidden_ver1): Don't use in libc.a.
35154
35155 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35156
35157 * config.make.in (have-insert): New.
35158 * configure.ac (libc_cv_insert): New. Set to yes if linker
35159 supports INSERT in linker script.
35160 (AC_SUBST(libc_cv_insert): New.
35161 * configure: Regenerated.
35162 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35163 if $(have-insert) == yes.
35164
35165 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35166
35167 * elf/Makefile (tests): Add vismain only if
35168 $(have-protected-data) == yes.
35169 (tests-pie): Likewise.
35170
35171 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35172
35173 [BZ #21871]
35174 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35175 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35176
35177 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35178
35179 [BZ #21790]
35180 * sysdeps/i386/i586/memset.S
35181 (__memset_zero_constant_len_parameter): Removed.
35182 * sysdeps/i386/i686/memset.S
35183 (__memset_zero_constant_len_parameter): Likewise.
35184 * sysdeps/i386/i686/multiarch/memset_chk.S
35185 (__memset_zero_constant_len_parameter): Likewise.
35186 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35187 Likewise.
35188
35189 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35190
35191 * stdlib/getentropy.c (getentropy): Change return type to int.
35192
35193 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35194
35195 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35196
35197 2017-08-03 Joseph Myers <joseph@codesourcery.com>
35198
35199 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35200 u_intN_t.
35201 * math/s_nexttowardf.c (__nexttowardf): Likewise.
35202 * sysdeps/generic/math_private.h (ieee_double_shape_type):
35203 Likewise.
35204 (ieee_float_shape_type): Likewise.
35205 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35206 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35207 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35208 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35209 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35210 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35211 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35212 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35213 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35214 Likewise.
35215 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35216 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35217 (__ieee754_yn): Likewise.
35218 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35219 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35220 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35221 Likewise.
35222 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35223 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35224 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35225 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35226 (__erfc): Likewise.
35227 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35228 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35229 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35230 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35231 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35232 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35233 Likewise.
35234 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35235 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35236 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35237 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35238 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35239 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35240 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35241 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35242 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35243 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35244 (__issignaling): Likewise.
35245 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35246 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35247 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35248 Likewise.
35249 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35250 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35251 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35252 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35253 Likewise.
35254 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35255 Likewise.
35256 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35257 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35258 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35259 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35260 (__erfcf): Likewise.
35261 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35262 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35263 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35264 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35265 Likewise.
35266 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35267 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35268 Likewise.
35269 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35270 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35271 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35272 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35273 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35274 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35275 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35276 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35277 Likewise.
35278 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35279 Likewise.
35280 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35281 Likewise.
35282 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35283 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35284 Likewise.
35285 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35286 Likewise.
35287 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35288 (__ieee754_ynl): Likewise.
35289 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35290 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35291 Likewise.
35292 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35293 Likewise.
35294 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35295 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35296 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35297 Likewise.
35298 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35299 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35300 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35301 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35302 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35303 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35304 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35305 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35306 Likewise.
35307 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35308 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35309 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35310 Likewise.
35311 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35312 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35313 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35314 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35315 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35316 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35317 Likewise.
35318 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35319 Likewise.
35320 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35321 Likewise.
35322 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35323 Likewise.
35324 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35325 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35326 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35327 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35328 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35329 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35330 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35331 Likewise.
35332 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35333 Likewise.
35334 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35335 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35336 Likewise.
35337 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35338 (__ieee754_remainderl): Likewise.
35339 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35340 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35341 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35342 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35343 Likewise.
35344 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35345 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35346 Likewise.
35347 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35348 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35349 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35350 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35351 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35352 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35353 Likewise.
35354 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35355 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35356 (__ieee754_y0l): Likewise.
35357 (pzero): Likewise.
35358 (qzero): Likewise.
35359 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35360 (__ieee754_y1l): Likewise.
35361 (pone): Likewise.
35362 (qone): Likewise.
35363 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35364 (__ieee754_ynl): Likewise.
35365 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35366 (__ieee754_lgammal_r): Likewise.
35367 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35368 Likewise.
35369 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35370 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35371 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35372 (__erfcl): Likewise.
35373 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35374 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35375 Likewise.
35376 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35377 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35378 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35379 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35380 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35381 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35382 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35383 Likewise.
35384 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35385 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35386 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35387 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35388 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35389 Likewise.
35390 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35391 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35392 Likewise.
35393 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35394 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35395 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35396 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35397 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35398
35399 2017-08-03 Florian Weimer <fweimer@redhat.com>
35400
35401 [BZ #21885]
35402 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35403 on memory allocation failure.
35404
35405 2017-08-03 Alan Modra <amodra@gmail.com>
35406
35407 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35408 tst-tlsopt-powerpc.c with function name change and no test harness.
35409 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35410 Call tls_get_addr_opt_test.
35411 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35412 (modules-names): Add mod-tlsopt-powerpc.
35413 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35414 (tst-tlsopt-powerpc): Depend on .so.
35415 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35416 define. Expand use in TLS_GD and TLS_LD.
35417
35418 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35419
35420 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35421 function.
35422 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35423
35424 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35425
35426 [BZ #21686]
35427 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35428 comparing size with that of double.
35429 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35430 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35431 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35432 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35433 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35434 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35435 unsigned __int128 types.
35436
35437 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35438
35439 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35440 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35441 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35442 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35443 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35444
35445 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35446
35447 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35448
35449 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35450
35451 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35452 of SHARED.
35453 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35454 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35455 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35456 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35457 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35458 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35459 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35460
35461 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35462
35463 [BZ #21685]
35464 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35465 bit-field expressions passed to sizeof or typeof.
35466 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35467 (__TGMATH_F128): Likewise.
35468 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35469 (__TGMATH_CF128): Likewise.
35470 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35471 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35472 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35473 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35474 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35475 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35476 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35477 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35478 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35479 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35480 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35481 (__TGMATH_UNARY_IMAG): Likewise.
35482 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35483 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35484 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35485 type.
35486 (define_vars_for_type): Handle bit_field type specially.
35487 (Tests.__init__): Declare structure with bit-field element.
35488
35489 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35490
35491 [BZ #21791]
35492 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35493 (MEMCPY_CHK): Define only if SHARED is defined.
35494 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35495 Likewise.
35496 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35497 Likewise.
35498
35499 See ChangeLog.18 for earlier changes.