]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc: Refactor powerpc64 lround/lroundf/llround/llroundf
[thirdparty/glibc.git] / ChangeLog
1 2019-06-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
4 (libm-sysdep_routines): Add s_llround-power8, s_llround-power6x,
5 s_llround-power5+, s_llround-ppc64, and s_llroundf-ppc64.
6 (CFLAGS-s_llround-power8.c, CFLAGS-s_llround-power6x.c,
7 CFLAGS-s_llround-power5+.c): New rule.
8 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power5+.c:
9 New file.
10 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power6x.c:
11 Likewise.
12 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-power8.c:
13 Likewise.
14 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround-ppc64.c:
15 Likewise.
16 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf-ppc64.c:
17 Likewise.
18 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Move to ...
19 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llround.c: ... here.
20 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Move to ...
21 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llroundf.c: ... here.
22 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: Move to ...
23 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lround.c: ... here.
24 * sysdeps/powerpc/powerpc64/fpu/Makefile
25 [$(subdir) == math] (CFLAGS-s_llround.c): New rule.
26 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
27 (libm-sysdep_routines): Remove s_llround-* objects.
28 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Remove
29 file.
30 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S:
31 Likewise.
32 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S:
33 Likewise.
34 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S:
35 Likewise.
36 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S:
37 Likewise.
38 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
39 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
40 * sysdeps/powerpc/powerpc64/fpu/s_lround.S: Likewise.
41 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.S: Likewise.
42 * sysdeps/powerpc/powerpc64/fpu/s_llround.c: New file.
43 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.c: Likewise.
44 * sysdeps/powerpc/powerpc64/fpu/s_lround.c: Likewise.
45 * sysdeps/powerpc/powerpc64/fpu/s_lroundf.c: Likewise.
46 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
47 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llroundf.S: Likewise.
48 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
49 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llroundf.S: Likewise.
50 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
51 * sysdeps/powerpc/powerpc64/power8/fpu/s_llroundf.S: Likewise.
52
53 * sysdeps/powerpc/fpu/s_lrintf.S: Remove file.
54 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Move to ...
55 * sysdeps/powerpc/fpu/s_lrintf.c: ... here.
56 * sysdeps/powerpc/powerpc32/fpu/Makefile
57 [$(subdir) == math] (CFLAGS-s_lrint.c): New rule.
58 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Add power4
59 optimization.
60 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
61 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Remove file.
62 * sysdeps/powerpc/powerpc32/fpu/s_lrint.c: New file.
63 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
64 (CFLAGS-s_llrintf-power6.c, CFLAGS-s_llrintf-ppc32.c,
65 CFLAGS-s_llrint-power6.c, CFLAGS-s_llrint-ppc32.c,
66 CFLAGS-s_lrint-ppc32.c): New rule.
67 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
68 Remove file.
69 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
70 Likewise.
71 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
72 Likewise.
73 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
74 Likewise.
75 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
76 Likewise.
77 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
78 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
79 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
80 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
81 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.c:
82 New file.
83 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.c:
84 Likewise.
85 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.c:
86 Likewise.
87 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.c:
88 Likewise.
89 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.c:
90 Likewise.
91
92 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
93 (libm-sysdep_routines): Add s_llrint-power8, s_llrint-power6x, and
94 s_llrint-ppc64.
95 (CFLAGS-s_llrint-power8.c, CFLAGS-s_llrint-power6x.c): New rule.
96 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power6x.c: New
97 file.
98 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-power8.c:
99 Likewise.
100 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint-ppc64.c:
101 Likewise.
102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: Move to ...
103 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: ... here.
104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Move to ...
105 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrint.c: ... here.
106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Move to ...
107 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_llrintf.c: ... here.
108 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_lrint.c: New file.
109 * sysdeps/powerpc/powerpc64/fpu/Makefile: Likewise.
110 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
111 (libm-sysdep_routines): Remove s_llrint-* objects.
112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Remove
113 file.
114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S:
115 Likewise.
116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
117 * sysdeps/powerpc/powerpc64/fpu/s_llrint.c: New file.
118 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.c: Likewise.
119 * sysdeps/powerpc/powerpc64/fpu/s_lrint.c: Likewise.
120 * sysdeps/powerpc/powerpc64/fpu/s_lrintf.c: Likewise.
121 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Remove file.
122 * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
123 * sysdeps/powerpc/powerpc64/fpu/s_lrint.S: Likewise.
124 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
125 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Likewise.
126
127 2019-06-14 Florian Weimer <fweimer@redhat.com>
128
129 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
130 argument to __glibc_has_include to inhibit macro expansion.
131
132 2019-06-14 Florian Weimer <fweimer@redhat.com>
133
134 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
135 function-like macro, so that __has_include can inhibit expansion
136 of its argument.
137
138 2019-06-13 Joseph Myers <joseph@codesourcery.com>
139
140 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
141 New macro.
142
143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
144 Allow memset in libc.so.
145
146 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
147
148 * sysdeps/aarch64/dl-dtprocnum.h: New file.
149 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
150 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
151 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
152 symbols at load time.
153 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
154
155 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
156
157 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
158 (DT_AARCH64_VARIANT_PCS): Define.
159
160 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
161
162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
163 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
164 objects.
165 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
166 Remove file.
167 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
168 Likewise.
169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
171 Likewise.
172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
173 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
174 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
175 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
176 Remove s_finite* objects.
177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
178 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
180 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
181 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
183 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
184 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
185 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
186 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
187
188 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
189 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
190
191 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
192 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
193 objects.
194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
195 Remove file.
196 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
197 Likewise.
198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
199 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
200 Likewise.
201 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
202 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
203 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
204 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
205 Remove s_isinf* and s_isinf* objects.
206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
212 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
213 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
214 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
215 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
216
217 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
218 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
219
220 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
221 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
222 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
224 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
225 s_isnanf-* objects.
226 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
227 Remove file
228 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
229 Likewise.
230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
231 Likewise.
232 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
233 Likewise.
234 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
236 Likewise.
237 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
238 Likewise.
239 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
240 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
241 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
242 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
243 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
244 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
245 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
246 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
247 Remove s_isnan-* and s_isnanf-* objects.
248 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
249 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
251 Likewise.
252 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
253 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
256 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
257 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
258 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
259 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
260 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
261 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
262 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
263 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
264 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
265
266 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
267 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
268
269 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
270 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
271 CFLAGS-bench-isfinite.c): New rule.
272 * benchtests/isnan-input: New file.
273 * benchtests/isinf-input: New file.
274 * benchtests/isfinite-input: New file.
275
276 * sysdeps/powerpc/fpu/s_copysign.c: New file.
277 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
278 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
279 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
280 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
281 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
282 s_copysign-ppc32.
283 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
284 Remove file.
285 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
286 Likewise.
287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
288 Likewise.
289 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
290 Likewise.
291 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
292 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
293 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
294 Remove s_copysign-power6 s_copysign-ppc64.
295 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
296 Remove file.
297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
298 Likewise.
299 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
300 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
301 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
302 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
303 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
304 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
305
306 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
307 round_to_integer_float, round_mode): Add RINT handling.
308 (reset_fenv_mode): New symbol.
309 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
310 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
311 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
312 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
313 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
314 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
315
316 2019-06-12 Florian Weimer <fweimer@redhat.com>
317
318 [BZ #24632]
319 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
320 * libio/freopen.c (freopen): Use it.
321
322 2019-06-12 Florian Weimer <fweimer@redhat.com>
323
324 Linux: Deprecate sysctl.
325 * include/sysctl.h (__sysctl): Remove declaration.
326 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
327 check.
328 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
329 (sysctl): Add deprecation attribute.
330 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
331 directly, to avoid the deprecation warning. Do not include
332 <string.h>.
333 (__sysctl): Remove hidden alias.
334
335 2019-06-12 Florian Weimer <fweimer@redhat.com>
336
337 Linux: Use kernel headers for statx definitions if available.
338 * include/bits/statx-generic.h: New file.
339 * include/bits/types/struct_statx.h: Likewise.
340 * include/bits/types/struct_statx_timestamp.h: Likewise.
341 * io/Makefile (headers): Add bits/statx-generic.h.
342 * io/bits/statx-generic.h: New file. Partly copied from
343 io/bits/statx.h.
344 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
345 define original_statx.
346 * io/bits/types/struct_statx.h: Likewise.
347 * io/bits/types/struct_statx_timestamp.h: Likewise.
348 (statx_generic): Use original_statx.
349 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
350 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
351
352 2019-06-12 Florian Weimer <fweimer@redhat.com>
353
354 * misc/sys/cdefs.h (__glibc_has_include): Define.
355
356 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
357
358 * string/memmem.c (__memmem): Rewrite to improve performance.
359
360 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
361
362 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
363 warning.
364 (two_way_long_needle): Block inlining.
365 * string/strstr.c (strstr2): Add new function.
366 (strstr3): Likewise.
367 (STRSTR): Completely rewrite strstr to improve performance.
368
369 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
370
371 * benchtests/bench-strstr.c (test_hard_needle): New function.
372
373 2019-06-10 Joseph Myers <joseph@codesourcery.com>
374
375 * malloc/tst-calloc.c: Include <libc-diag.h>.
376 (null_test): Ignore -Wunused-result around calls to calloc.
377 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
378 (do_test): Ignore -Wunused-result around call to malloc.
379
380 2019-06-07 Florian Weimer <fweimer@redhat.com>
381
382 Linux: Add getdents64 system call.
383 * include/dirnent.h (getdents): Add comment and change buffer
384 argument type to void *.
385 (getdents64): Likewise. Add hidden prototype.
386 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
387 getdents64.
388 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
389 Add tst-getdents64.
390 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
391 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
392 argument type to void *.
393 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
394 Add hidden definition and getdents64 alias.
395 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
396 Likewise.
397 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
398 * manual/filesys.texi (Accessing Directories): Add Low-level
399 Directory Access node reference.
400 (Opening a Directory): Cross-reference it.
401 (Low-level Directory Access): New node.
402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
403 getdents64.
404 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
405 Likewise.
406 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
407 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
408 Likewise.
409 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
410 Likewise.
411 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
412 Likewise.
413 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
414 Likewise.
415 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
416 Likewise.
417 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
418 Likewise.
419 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
420 Likewise.
421 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
422 (GLIBC_2.30): Likewise.
423 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
424 (GLIBC_2.30): Likewise.
425 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
426 (GLIBC_2.30): Likewise.
427 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
428 (GLIBC_2.30): Likewise.
429 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
430 Likewise.
431 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
432 (GLIBC_2.30): Likewise.
433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
434 (GLIBC_2.30): Likewise.
435 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
436 (GLIBC_2.30): Likewise.
437 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
438 (GLIBC_2.30): Likewise.
439 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
440 Likewise.
441 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
442 Likewise.
443 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
444 Likewise.
445 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
446 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
447 Likewise.
448 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
449 Likewise.
450 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
451 Likewise.
452 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
453 Likewise.
454
455 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
456
457 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
458 (__FPU_MFFS): New.
459 (__FPU_MFFSL): New.
460 (_FPU_GET_RC): New.
461 (_FPU_GETCW): Use __FPU_MFFS().
462 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
463
464 2019-06-06 Florian Weimer <fweimer@redhat.com>
465
466 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
467 internal GCC preprocessor identifier __has_include__.
468
469 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
470
471 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
472 with call to equivalent function.
473
474 2019-06-04 Florian Weimer <fweimer@redhat.com>
475
476 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
477 (do_release_shlib): Adjust for __twalk_r.
478 (__gconv_release_shlib): Call __twalk_r.
479
480 2019-06-04 Andreas Schwab <schwab@suse.de>
481
482 [BZ #18830]
483 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
484 no irreversible characters occurred.
485 * iconv/gconv_simple.c (internal_ucs4_loop)
486 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
487 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
488 (ucs4_internal_loop_single, internal_ucs4le_loop)
489 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
490 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
491 (ucs4le_internal_loop_single): Add const to outend.
492 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
493 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
494 * iconv/Makefile (tests): Add tst-iconv7.
495 * iconv/tst-iconv7.c: New file.
496
497 2019-06-03 Joseph Myers <joseph@codesourcery.com>
498
499 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
500
501 2019-06-01 Florian Weimer <fweimer@redhat.com>
502
503 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
504 * sysdeps/unix/sysv/linux/arm/Makefile
505 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
506 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
507 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
508 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
509 compatibility symbols.
510
511 2019-05-31 Florian Weimer <fweimer@redhat.com>
512
513 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
514 system calls for the arm architecture: breakpoint, get_tls,
515 set_tls, usr26, usr32.
516
517 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
518
519 * sysdeps/powerpc/Makefile
520 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
521 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
522 Declare '.machine power7' to get support for ldbrx.
523 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
524 directive based on the directory of the file.
525 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
526 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
527 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
528 '.machine' directive.
529 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
530 (VADDUQM_V7_V8): Remove.
531 (__STRCASECMP): Replace macros with actual instructions.
532 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
533 '.machine' directive.
534 (VCLZD_V8_v7): Remove.
535 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
536
537 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
538
539 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
540 Remove file.
541 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
542
543 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
544
545 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
546 NEARBYINT handling.
547 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
548 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
549 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
550 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
551 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
552 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
553
554 2019-05-28 mansayk <6688000@gmail.com>
555
556 [BZ #24370]
557 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
558
559 2019-05-28 mansayk <6688000@gmail.com>
560
561 [BZ #24369]
562 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
563 (abmon): Likewise, but remove the trailing dots.
564
565 2019-05-28 Joseph Myers <joseph@codesourcery.com>
566
567 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
568
569 2019-05-27 Florian Weimer <fweimer@redhat.com>
570
571 * nptl/nptl-init.c: Add comment.
572
573 2019-05-24 Florian Weimer <fweimer@redhat.com>
574
575 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
576 struct in_addr/struct in6_addr alignment.
577
578 2019-05-23 Joseph Myers <joseph@codesourcery.com>
579
580 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
581 (F_SEAL_FUTURE_WRITE): New macro.
582
583 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
584
585 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
586 * elf/tst-ldconfig-bad-aux-cache.c: New file.
587 * elf/tst-ldconfig_aux-cache.root: New directory.
588 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
589 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
590 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
591
592 2019-05-22 Zack Weinberg <zackw@panix.com>
593
594 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
595 host type.
596 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
597 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
598
599 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
601 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
602 Delete.
603
604 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
605 Issue an #error if used with a compiler in SPE-float mode.
606 * sysdeps/powerpc/powerpc32/__longjmp_common.S
607 * sysdeps/powerpc/powerpc32/setjmp_common.S
608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
609 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
611 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
613 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
614 Remove code to preserve SPE register state.
615
616 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
617 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
618 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
619 Remove __SPE__ ifndefs.
620
621 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
622
623 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
624 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
625 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
626 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
627 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
628 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
629 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
630 (INNER_LOOP_ITERS_MEDIUM): New define.
631 (INNER_LOOP_ITERS_SMALL): New define.
632 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
633 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
634 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
635 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
636 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
637
638 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
639
640 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
641 New define.
642 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
643 (SEMTIMEDOP_IPC_ARGS): Likewise.
644
645 2019-05-21 Florian Weimer <fweimer@redhat.com>
646
647 [BZ #24584]
648 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
649 before updating __counter field and release it afterwards. Add
650 overflow check.
651 * iconv/gconv.h (struct __gconv_step): Mention synchronization
652 requirement for __counter member.
653
654 2019-05-21 Florian Weimer <fweimer@redhat.com>
655
656 [BZ #24583]
657 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
658 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
659 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
660 instead of __gconv_release_step.
661 * libio/Makefile (tests): Add tst-wfile-gconv.
662 (tests-container): Add tst-wfile-ascii.
663 (tst-wfile-gconv-ENV): Enable mtrace.
664 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
665 (tests-special): Add tst-wfile-gconv-mem.out.
666 (tst-wfile-gconv.out): Depend on locales.
667 (tst-wfile-gconv-mem.out): Add mtrace rule.
668 * libio/tst-wfile-ascii.c: New file.
669 * libio/tst-wfile-gconv.c: Likewise.
670
671 2019-05-20 Florian Weimer <fweimer@redhat.com>
672
673 [BZ #24588]
674 libio: Remove codecvt vtable.
675 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
676 __libio_codecvt.
677 * libio/iofgetpos.c (_IO_new_fgetpos): Call
678 __libio_codecvt_encoding.
679 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
680 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
681 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
682 * libio/iofwide.c (__libio_codecvt): Remove variable.
683 (_IO_fwide): Do not copy __libio_codecvt.
684 (__libio_codecvt_out): Rename from do_out and export.
685 (do_unshift): Remove function.
686 (__libio_codecvt_in): Rename from do_in and export.
687 (__libio_codecvt_encoding): Rename from do_encoding and export.
688 (do_always_noconv): Remove function.
689 (__libio_codecvt_length): Rename from do_length and export.
690 (do_max_length): Remove function.
691 * libio/libio.h (enum __codecvt_result): Remove definition; moved
692 to libioP.h.
693 (struct _IO_codecvt): Remove fields __codecvt_destr,
694 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
695 __codecvt_do_encoding, __codecvt_do_always_noconv,
696 __codecvt_do_length, __codecvt_do_max_length.
697 * libio/libioP.h (enum __codecvt_result): Define; moved from
698 libio.h.
699 (__libio_codecvt_out, __libio_codecvt_in)
700 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
701 functions.
702 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
703 (_IO_wfile_underflow): Call __libio_codecvt_in.
704 (_IO_wfile_underflow): Likewise.
705 (_IO_wfile_underflow_mmap): Likewise.
706 (_IO_wfile_sync): Call __libio_codecvt_encoding,
707 __libio_codecvt_length.
708 (adjust_wide_data): Call __libio_codecvt_encoding,
709 __libio_codecvt_in.
710 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
711 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
712 __libio_codecvt_length.
713
714 2019-05-20 Florian Weimer <fweimer@redhat.com>
715
716 * support/support.h (support_sbindir_prefix): Declare.
717 (support_install_rootsbindir): Update comment.
718 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
719 * support/support_paths.c (support_sbindir_prefix): Define.
720
721 2019-05-20 Mike Crowe <mac@mcrowe.com>
722
723 * support/timespec.c: Add backslash to correct newline in failure
724 message.
725
726 * support/timespec.h: Correct confusing comment.
727
728 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
729
730 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
731 define.
732 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
733 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
734 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
735 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
736
737 [BZ #24570]
738 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
739 usage.
740
741 2019-05-20 Joseph Myers <joseph@codesourcery.com>
742
743 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
744 (NT_ARM_PACG_KEYS): Likewise.
745
746 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
747
748 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
749 (tcache_put): Remove redundant assert.
750 (tcache_get): Remove redundant asserts.
751 (__libc_malloc): Check tcache count is not zero.
752 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
753
754 2019-05-17 Florian Weimer <fweimer@redhat.com>
755
756 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
757
758 2019-05-16 Joseph Myers <joseph@codesourcery.com>
759
760 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
761 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
762 0x050100].
763 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
764 Likewise.
765 * sysdeps/unix/sysv/linux/sh/kernel-features.h
766 (__ASSUME_STATX): Likewise.
767
768 2019-05-16 Florian Weimer <fweimer@redhat.com>
769
770 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
771 flags argument.
772 (LINE_PARSER): Do not map IPv4 addresses.
773 (internal_nis_gethostent_r): Remove flags argument. Adjust call
774 to parse_line.
775 (_nss_nis_gethostent_r): Always pass AF_INET to
776 internal_nis_gethostent_r.
777 (internal_gethostbyname2_r): Remove flags argument. Adjust call
778 to parse_line.
779 (_nss_nis_gethostbyname2_r): Adjust call to
780 internal_nis_gethostent_r.
781 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
782 call to internal_nis_gethostent_r.
783 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
784 from parse_line.
785 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
786 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
787 Remove flags argument. Do not map IPv4 addresses.
788 (internal_nisplus_gethostent_r): Adjust call to
789 _nss_nisplus_parse_hostent.
790 (internal_gethostbyname2_r): Remove flags argument. Adjust call
791 to _nss_nisplus_parse_hostent.
792 (_nss_nisplus_gethostbyname2_r): Adjust call to
793 internal_gethostbyname2_r.
794 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
795 Adjust call to internal_gethostbyname2_r.
796 (_nss_nisplus_gethostbyaddr_r): Adjust call to
797 _nss_nisplus_parse_hostent.
798 (_nss_nisplus_gethostbyname4_r): Adjust call to
799 internal_gethostbyname2_r.
800
801 2019-05-16 Florian Weimer <fweimer@redhat.com>
802
803 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
804 Remove flags.
805 (LINE_PARSER): Remove address mapping.
806 (EXTRA_ARGS_VALUE): Remove flags argument.
807 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
808 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
809 gethostbyname3_multi.
810 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
811 _nss_files_gethostbyname3_r.
812 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
813
814 2019-05-16 Florian Weimer <fweimer@redhat.com>
815
816 * support/support_test_compare_blob.c (report_blob): Report
817 incorrect NULL blobs.
818
819 2019-05-15 Mark Wielaard <mark@klomp.org>
820
821 [BZ# 24476]
822 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
823 __libc_once_get (once) and static_buf == NULL.
824 (__dlerror): Check we have a valid key, set result to static_buf
825 otherwise.
826
827 2019-05-15 Andreas Schwab <schwab@suse.de>
828
829 [BZ #20568]
830 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
831 __codecvt_do_length.
832 * libio/Makefile (tests): Add tst-wfile-sync.
833 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
834 * libio/tst-wfile-sync.c: New file.
835 * libio/tst-wfile-sync.input: New file.
836
837 2019-05-15 Florian Weimer <fweimer@redhat.com>
838
839 nss: Turn __nss_database_lookup into a compatibility symbol.
840 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
841 __nss_database_lookup.
842 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
843 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
844 __nss_database_lookup.
845 (__nss_next): Move to …
846 * nss/compat-lookup.c (nss_next): … here. Change it to fail
847 unconditionally.
848 (__nss_database_lookup): New function.
849 * nss/Versions (GLIBC_2.0): Update comment.
850 (GLIBC_PRIVATE): Export __nss_database_lookup2.
851 * grp/initgroups.c (internal_getgrouplist): Call
852 __nss_database_lookup2 instead of __nss_database_lookup.
853 * nscd/aicache.c (addhstaiX): Likewise.
854 * nscd/initgrcache.c (addinitgroupsX): Likewise.
855 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
856 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
857 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
858 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
859 Likewise.
860 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
861 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
862 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
863
864 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
865
866 * support/support.h (support_install_rootsbindir): New variable.
867 * support/support_paths.c: Likewise.
868 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
869
870 2019-05-15 Florian Weimer <fweimer@redhat.com>
871
872 * iconv/gconv.h (__gconv_transliterate): Move declaration …
873 * iconv/gconv_int.h (__gconv_transliterate): … here.
874 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
875 * iconv/skeleton.c: Likewise.
876
877 2019-05-14 Florian Weimer <fweimer@redhat.com>
878
879 Linux: Add the tgkill function.
880 * bits/signal_ext.h: New file.
881 * manual/signal.texi (Signaling Another Process): Document tgkill.
882 * signal/Makefile (headers): Add bits/signal_ext.h.
883 * signal/signal.h: Include <bits/signal_ext.h>.
884 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
885 (tst-tgkill): Link with libpthread.
886 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
887 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
888 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
889 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
890 tgkill.
891 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
892 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
893 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
894 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
895 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
896 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
897 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
898 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
899 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
900 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
901 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
902 Likewise.
903 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
904 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
905 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
906 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
907 Likewise.
908 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
909 Likewise.
910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
911 Likewise.
912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
913 Likewise.
914 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
915 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
916 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
917 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
918 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
919 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
920 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
921 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
922
923 2019-05-14 Carlos O'Donell <carlos@redhat.com>
924
925 * manual/search.texi (Tree Search Function): Adjust twalk_r
926 documentation.
927
928 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
929
930 [BZ #24544]
931 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
932 pre-defined value.
933
934 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
935 * support/support.h (support_bindir_prefix): New variable.
936 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
937
938 * config.make.in (bindir): New variable.
939
940 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
941 (lll_trylock): Call __lll_trylock.
942 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
943 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
944 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
945 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
946 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
947 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
948 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
949 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
950 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
951 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
952 lowlevellock-futex.h.
953
954 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
955 initialization for LLL_LOCK_INITIALIZER different than 0.
956 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
957 Assume LLL_LOCK_INITIALIZER being 0.
958 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
959 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
960 Likewise.
961 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
962 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
963
964 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
965 Optimize futex call and add systemtap probe.
966
967 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
968 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
969 __libc_disable_asynccancel, __librt_enable_asynccancel,
970 __libc_disable_asynccancel, __librt_enable_asynccancel,
971 __librt_disable_asynccancel): Move to ...
972 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
973 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
974 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
975 * sysdeps/generic/single-thread.h: New file.
976 * sysdeps/unix/sysdep.h: Include single-thread.h.
977 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
978 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
979
980 2019-05-08 Mike FABIAN <mfabian@redhat.com>
981
982 [BZ #24535]
983 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
984 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
985 Unicode 12.1.0.
986 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
987 * localedata/unicode-gen/PropList.txt: Likewise.
988 * localedata/unicode-gen/UnicodeData.txt: Likewise.
989 * localedata/charmaps/UTF-8: Regenerate.
990 * localedata/locales/i18n_ctype: Likewise.
991 * localedata/locales/tr_TR: Likewise.
992 * localedata/locales/translit_circle: Likewise.
993 * localedata/locales/translit_cjk_compat: Likewise.
994 * localedata/locales/translit_combining: Likewise.
995 * localedata/locales/translit_compat: Likewise.
996 * localedata/locales/translit_font: Likewise.
997 * localedata/locales/translit_fraction: Likewise.
998
999 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
1000
1001 [BZ #24531]
1002 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
1003 (do_set_tcache_count): Only update if count is small enough.
1004 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
1005
1006 2019-05-10 Florian Weimer <fweimer@redhat.com>
1007
1008 * nptl/sem_close.c (struct walk_closure): Define.
1009 (walker): Adjust for __twalk_r.
1010 (sem_close): Call __twalk_r.
1011
1012 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1013
1014 * support/timespec.c (test_timespec_before_impl,
1015 test_timespec_equal_or_after_impl): print timespec member as intmax_t
1016 insted of long int.
1017
1018 2019-05-09 Mike Crowe <mac@mcrowe.com>
1019
1020 * nptl/tst-abstime.c: Use libsupport.
1021
1022 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
1023 small bug where only tv.tv_usec was checked which could cause an
1024 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
1025 than a second.
1026
1027 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
1028 libsupport.
1029
1030 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
1031 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
1032
1033 * nptl/tst-cond11.c: Use libsupport.
1034
1035 * support/timespec.h: New file. Provide timespec helper functions
1036 along with macros in the style of those in check.h.
1037 * support/timespec.c: New file. Implement check functions declared
1038 in support/timespec.h.
1039 * support/timespec-add.c: New file from gnulib containing
1040 timespec_add implementation that handles overflow.
1041 * support/timespec-sub.c: New file from gnulib containing
1042 timespec_sub implementation that handles overflow.
1043 * support/README: Mention timespec.h.
1044
1045 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
1046
1047 [BZ #24537]
1048 * nptl/Makefile: Move tst-eintr1 to xtests.
1049
1050 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1051
1052 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
1053 TRUNC handling.
1054 (round_mode): Add definition for TRUNC.
1055 * sysdeps/powerpc/fpu/s_trunc.c: New file.
1056 * sysdeps/powerpc/fpu/s_truncf.c: New file.
1057 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
1058 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1059 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
1060 Likewise.
1061 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
1062 Likewise.
1063 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
1064 Likewise.
1065 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
1066 Likewise.
1067 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
1068 file.
1069 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
1070 Likewise.
1071 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
1072 Likewise.
1073 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
1074 Likewise.
1075 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
1076 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
1077 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1078 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
1079 s_truncf-power5+, and s_truncf-ppc64.
1080 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
1081 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
1082 file.
1083 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
1084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
1085 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
1086 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
1087 file.
1088 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
1089 Likewise.
1090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
1091 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
1092 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1093 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
1094 s_truncf-power5+, and s_truncf-ppc64.
1095 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
1096 file.
1097 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
1098 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
1099 Likewise.
1100 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
1101 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1102 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1103 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
1104 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
1105
1106 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
1107 ROUND handling.
1108 (round_mode): Add definition for ROUND.
1109 (round_to_integer_float): Likewise.
1110 * sysdeps/powerpc/fpu/s_round.c: New file.
1111 * sysdeps/powerpc/fpu/s_roundf.c: New file.
1112 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
1113 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1114 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
1115 Likewise.
1116 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
1117 Likewise.
1118 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
1119 Likewise.
1120 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
1121 Likewise.
1122 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
1123 file.
1124 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
1125 Likewise.
1126 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1127 Likewise.
1128 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1129 Likewise.
1130 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1131 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1132 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1133 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1134 s_roundf-power5+, and s_roundf-ppc64.
1135 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1136 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1137 file.
1138 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1139 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1140 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1141 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1142 file.
1143 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1144 Likewise.
1145 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1146 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1147 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1148 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1149 s_roundf-power5+, and s_roundf-ppc64.
1150 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1151 file.
1152 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1153 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1154 Likewise.
1155 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1156 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1157 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1158 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1159 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1160
1161 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1162 Add FLOOR option.
1163 (round_mode): Add definition for FLOOR.
1164 * sysdeps/powerpc/fpu/s_floor.c: New file.
1165 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1166 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1167 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1169 Remove file.
1170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1171 Likewise
1172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1173 Likewise.
1174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1175 Likewise.
1176 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1177 New file.
1178 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1179 Likewise.
1180 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1181 Likewise.
1182 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1183 Likewise.
1184 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1185 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1186 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1187 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1188 s_floorf-power5+, and s_floorf-ppc64.
1189 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1190 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1191 file.
1192 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1193 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1194 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1195 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1196 file.
1197 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1198 Likewise.
1199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1200 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1201 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1202 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1203 s_floorf-power5+, and s_floorf-ppc64.
1204 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1205 file.
1206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1207 file.
1208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1209 Likewise.
1210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1211 Likewise.
1212 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1213 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1214 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1215 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1216
1217 2019-05-08 Mike Crowe <mac@mcrowe.com>
1218
1219 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1220 clock_gettime wrapper for use in tests that fails the test rather
1221 than returning failure.
1222
1223 * support/xtime.h: New file to declare xclock_gettime.
1224
1225 * support/Makefile: Add xclock_gettime.c.
1226
1227 * support/README: Mention xtime.h.
1228
1229 2019-05-08 Florian Weimer <fweimer@redhat.com>
1230
1231 malloc/tst-mallocfork2: Use process-shared barriers.
1232 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1233 (signal_count, sigusr1_sender_pid): Remove.
1234 (iterations): Define constant.
1235 (shared): New variable.
1236 (sigusr1_received): Update comment.
1237 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1238 (signal_sender): Optional use barriers to avoid sending signals
1239 during irrelevant times.
1240 (do_it): Initialize variable shared. Use xfork for error
1241 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1242 the iteration count, independent of signal delivery. Check for
1243 deadlocks in fork. Introduce barriers for reducing signal
1244 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1245 replaced by the barriers. Count signals during fork/free/malloc
1246 and report them.
1247 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1248
1249 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1250
1251 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1252 version to 5.1.
1253 (clock_adjtime64) New syscall.
1254 (clock_getres_time64) Likewise.
1255 (clock_gettime64) Likewise.
1256 (clock_nanosleep_time64) Likewise.
1257 (clock_settime64) Likewise.
1258 (futex_time64) Likewise.
1259 (io_pgetevents_time64) Likewise.
1260 (io_uring_enter) Likewise.
1261 (io_uring_register) Likewise.
1262 (io_uring_setup) Likewise.
1263 (mq_timedreceive_time64) Likewise.
1264 (mq_timedsend_time64) Likewise.
1265 (pidfd_send_signal) Likewise.
1266 (ppoll_time64) Likewise.
1267 (pselect6_time64) Likewise.
1268 (recvmmsg_time64) Likewise.
1269 (rt_sigtimedwait_time64) Likewise.
1270 (sched_rr_get_interval_time64) Likewise.
1271 (semtimedop_time64) Likewise.
1272 (timer_gettime64) Likewise.
1273 (timer_settime64) Likewise.
1274 (timerfd_gettime64) Likewise.
1275 (timerfd_settime64) Likewise.
1276 (utimensat_time64) Likewise.
1277
1278 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1279 version to 9 branch.
1280
1281 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1282
1283 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1284 __memmove_thunderx2 to the list of implementations
1285 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1286 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1287 (__memmove_thunderx2): Rewritten using SIMD ld/st
1288 (__memcpy_thunderx2): Fixed handling overlapping cases.
1289 Used ldp/stp instead of ldr/str if possible. Made loops
1290 tails branchless.
1291
1292 2019-05-03 Florian Weimer <fweimer@redhat.com>
1293
1294 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1295
1296 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1297
1298 [BZ #24506]
1299 * elf/tst-pldd.c (in_str_list): New function.
1300 (do_test): Add default names for ld and libc as one option.
1301
1302 2019-05-02 Florian Weimer <fweimer@redhat.com>
1303
1304 misc: Add twalk_r function.
1305 * include/search.h (__twalk_r): Declare.
1306 * manual/examples/twalk.c: New file.
1307 * manual/search.texi (Tree Search Function): Document twalk_r.
1308 * misc/Versions (2.30): Export twalk_r.
1309 (GLIBC_PRIVATE): Export __twalk_r.
1310 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1311 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1312 (twalk_r): Add weak alias.
1313 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1314 (walk_trace): New variable.
1315 (struct twalk_with_twalk_r_closure): Define.
1316 (twalk_with_twalk_r_action): New function.
1317 (twalk_with_twalk_r): Likewise.
1318 (walk_action): Call walk_trace_add.
1319 (walk_tree_with): Rename from walk_tree. Add walk argument.
1320 (walk_tree): New function.
1321 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1322 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1323 Likewise.
1324 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1325 Likewise.
1326 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1327 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1328 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1329 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1330 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1331 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1332 Likewise.
1333 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1334 Likewise.
1335 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1336 Likewise.
1337 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1338 (GLIBC_2.30): Likewise.
1339 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1340 (GLIBC_2.30): Likewise.
1341 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1342 (GLIBC_2.30): Likewise.
1343 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1344 (GLIBC_2.30): Likewise.
1345 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1346 Likewise.
1347 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1348 (GLIBC_2.30): Likewise.
1349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1350 (GLIBC_2.30): Likewise.
1351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1352 (GLIBC_2.30): Likewise.
1353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1354 (GLIBC_2.30): Likewise.
1355 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1356 Likewise.
1357 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1358 Likewise.
1359 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1360 Likewise.
1361 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1362 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1363 Likewise.
1364 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1365 Likewise.
1366 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1367 Likewise.
1368 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1369 Likewise.
1370
1371 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1372
1373 Make mktime etc. compatible with __time64_t
1374 Keep these functions compatible with Gnulib while adding
1375 __time64_t support. The basic idea is to move private API
1376 declarations from include/time.h to time/mktime-internal.h, since
1377 the former file cannot easily be shared with Gnulib whereas the
1378 latter can.
1379 Also, do some other minor cleanup while in the neighborhood.
1380 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1381 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1382 since Gnulib needs it.
1383 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1384 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1385 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1386 (in_time_t_range): New static function.
1387 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1388 so that glibc users are not tempted to use __time64_t.
1389 * time/mktime-internal.h: Rewrite so that it does both glibc
1390 and Gnulib work. Include time.h if not _LIBC.
1391 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1392 (__time64_t): New type or macro, moved here from
1393 posix/bits/types.h.
1394 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1395 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1396 from include/time.h.
1397 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1398 New macros, taken from GNulib.
1399 (__mktime_internal): New prototype, moved here from include/time.h.
1400 * time/mktime.c (mktime_min, mktime_max, convert_time)
1401 (ranged_convert, __mktime_internal, __mktime64):
1402 * time/timegm.c (__timegm64):
1403 Use __time64_t, not time_t.
1404 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1405 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1406 Rename from mktime.
1407 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1408 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1409 for libc_hidden_def.
1410 Include errno.h.
1411 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1412 Rename from timegm.
1413 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1414
1415 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1416
1417 [BZ #19444]
1418 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1419 from `-Wmaybe-uninitialized'.
1420 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1421
1422 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1423
1424 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1425 function.
1426 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1427 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1428 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1429 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1430 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1431 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1432 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1433 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1434 Remove file.
1435 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1436 Likewise.
1437 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1438 Likewise.
1439 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1440 Likewise.
1441 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1442 New file.
1443 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1444 Likewise.
1445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1446 Likewise.
1447 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1448 Likewise.
1449 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1450 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1451 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1452 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1453 Likewise.
1454 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1455 Likewise.
1456 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1457 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1458 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1459 file.
1460 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1461 Likewise.
1462 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1463 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1464 * here.
1465 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1466 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1467 s_ceilf-power5+, and s_ceilf-ppc64.
1468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1469 file.
1470 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1472 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1473 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1474 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1475 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1476 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1477
1478 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1479 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1480 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1481
1482 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1483
1484 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1485 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1486 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1487 (sem_getvalue): Likewise.
1488
1489 2019-04-26 Florian Weimer <fweimer@redhat.com>
1490
1491 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1492 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1493
1494 2019-04-26 Florian Weimer <fweimer@redhat.com>
1495
1496 Makeconfig: Move -Wl,-rpath-link options before library references.
1497 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1498 (link-libc): Remove $(link-libc-rpath-link).
1499
1500 2019-04-25 Florian Weimer <fweimer@redhat.com>
1501
1502 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1503 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1504 (+link-static-before-libc): Remove $(CC).
1505 (+link-static, +link-static-tests): Add $(CC).
1506 (+link-before-libc): Remove $(CC).
1507 (+link, +link-pie, +link-pie-printers): Add $(CC).
1508
1509 2019-04-26 Florian Weimer <fweimer@redhat.com>
1510
1511 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1512 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1513 (+link-static-before-libc): Remove $(CC).
1514 (+link-static, +link-static-tests): Add $(CC).
1515 (+link-before-libc): Remove $(CC).
1516 (+link, +link-pie, +link-pie-printers): Add $(CC).
1517
1518 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1519
1520 [BZ#24484]
1521 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1522
1523 2019-04-25 Florian Weimer <fweimer@redhat.com>
1524
1525 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1526 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1527 (bench-link-targets): New variable.
1528 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1529
1530 2019-04-25 Florian Weimer <fweimer@redhat.com>
1531
1532 Also enable BIND_NOW for programs if --enable-bind-now.
1533 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1534 (+link-pie): Use $(link-extra-flags).
1535 (+link-static): Likewise.
1536 [! $(build-pie-default)] (+link): Likewise.
1537 * manual/install.texi (Configuring and compiling): Update
1538 --enable-bind-now description.
1539 * INSTALL: Regenerated.
1540
1541 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1542
1543 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1544 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1545
1546 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1547
1548 [BZ #18465]
1549 * malloc/Makefile (others): Add memusagestat.
1550 ($(objpfx)memusagestat): Delete rule.
1551 (LDLIBS-memusagestat): New variable.
1552
1553 2019-04-24 Florian Weimer <fweimer@redhat.com>
1554
1555 * locale/Makefile (tests-special): Guard setting by
1556 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1557 to run while cross-compiling.
1558
1559 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1560
1561 [BZ #18035]
1562 * elf/Makefile (tests-container): Add tst-pldd.
1563 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1564 (E(find_maps)): Avoid use alloca, use default read file operations
1565 instead of explicit LFS names, and fix infinite loop.
1566 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1567 (get_process_info): Use _Static_assert instead of assert, use default
1568 directory operations instead of explicit LFS names, and free some
1569 leadek pointers.
1570 * elf/tst-pldd.c: New file.
1571
1572 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1573
1574 * malloc/arena.c (do_set_mallopt_check): Removed.
1575
1576 2019-04-23 Florian Weimer <fweimer@redhat.com>
1577
1578 locale: Add LOCPATH diagnostics to the locale program.
1579 * locale/programs/locale.c (setlocale_failed): New variable.
1580 (try_setlocale): New function.
1581 (quote_string): Likewise.
1582 (setlocale_diagnostics): Likewise.
1583 (main): Call try_setlocale instead of setlocale. Call
1584 setlocale_diagnostics.
1585 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1586 (tst-locale-locpath.out): New target.
1587 * locale/tst-locale-locpath.sh: New file.
1588
1589 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1590
1591 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1592 to 2.30 notes.
1593
1594 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1595
1596 [BZ #23741]
1597 * malloc/hooks.c (malloc_check, realloc_check): Use
1598 __builtin_add_overflow on overflow check and adapt to
1599 checked_request2size change.
1600 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1601 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1602 allocation size to PTRDIFF_MAX.
1603 (REQUEST_OUT_OF_RANGE): Remove macro.
1604 (checked_request2size): Change to inline function and limit maximum
1605 requested size to PTRDIFF_MAX.
1606 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1607 maximum allocation size to PTRDIFF_MAX.
1608 (_mid_memalign): Use _int_memalign call for overflow check.
1609 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1610 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1611 limit maximum requested size to PTRDIFF_MAX.
1612 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1613 valloc, pvalloc): Add __attribute_alloc_size__.
1614 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1615 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1616 larger than PTRDIFF_MAX.
1617 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1618 around tests of malloc with negative sizes.
1619 * malloc/tst-posix_memalign.c (do_test): Likewise.
1620 * malloc/tst-pvalloc.c (do_test): Likewise.
1621 * malloc/tst-valloc.c (do_test): Likewise.
1622 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1623 with resulting size allocation larger than PTRDIFF_MAX with
1624 reallocarray_nowarn.
1625 (reallocarray_nowarn): New function.
1626 * NEWS: Mention the malloc function semantic change.
1627
1628 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1629
1630 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1631 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1632
1633 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1634 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1635 * sysdeps/powerpc/fpu/s_fma.c: New file.
1636 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1637
1638 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1639 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1640
1641 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1642 the magic flag store.
1643 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1644 Likewise.
1645 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1646 Likewise.
1647 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1648 Remove rt_sigreturn call.
1649
1650 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1651 Remove rt_sigreturn call.
1652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1653 Likewise.
1654 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1656
1657 * support/Makefile (libsupport-routines): Add support_subprocess,
1658 xposix_spawn, xposix_spawn_file_actions_addclose, and
1659 xposix_spawn_file_actions_adddup2.
1660 (tst-support_capture_subprocess-ARGS): New rule.
1661 * support/capture_subprocess.h (support_capture_subprogram): New
1662 prototype.
1663 * support/support_capture_subprocess.c (support_capture_subprocess):
1664 Refactor to use support_subprocess and support_capture_poll.
1665 (support_capture_subprogram): New function.
1666 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1667 str_to_write_mode, test_common, parse_int, handle_restart,
1668 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1669 (do_test): Add support_capture_subprogram tests.
1670 * support/subprocess.h: New file.
1671 * support/support_subprocess.c: Likewise.
1672 * support/xposix_spawn.c: Likewise.
1673 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1674 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1675 * support/xspawn.h: Likewise.
1676
1677 2019-04-17 Mike Gerow <gerow@google.com>
1678
1679 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1680 groups limit.
1681
1682 2019-04-11 Florian Weimer <fweimer@redhat.com>
1683
1684 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1685 domain with empty string.
1686 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1687
1688 2019-04-11 Florian Weimer <fweimer@redhat.com>
1689
1690 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1691 comment.
1692 (alloc_buffer_next): Change return type to non-const. Update
1693 comment.
1694
1695 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1696
1697 * manual/time.texi (Formatting Calendar Time): Add missing percent
1698 sign to conversion specifier.
1699
1700 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1701 Kwok Cheung Yeung <kcy@codesourcery.com>
1702
1703 [BZ #16573]
1704 * malloc/mtrace.c: Define prototypes for all hooks.
1705 (set_default_hooks): New function.
1706 (set_trace_hooks): Likewise.
1707 (save_default_hooks): Likewise.
1708 (tr_freehook): Use new s*_hooks functions.
1709 (tr_mallochook): Likewise.
1710 (tr_reallochook): Likewise.
1711 (tr_memalignhook): Likewise.
1712 (mtrace): Likewise.
1713 (muntrace): Likewise.
1714
1715 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1716
1717 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1718 (generic_stpcpy): New function.
1719 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1720 (generic_stpncpy): New function.
1721 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1722 (generic_strcat): New function.
1723 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1724 (generic_strcpy): New function.
1725 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1726 (STUPID_STRNCAT): Remove function.
1727 (generic_strncat): New function.
1728 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1729 (STUPID_STRNCPY): Remove function.
1730 (generic_strncpy): New function.
1731 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1732 (generic_strnlen): New function.
1733 (memchr_strnlen): New function.
1734 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1735 (memchr_strlen): Likewise.
1736
1737 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1738
1739 * benchtests/bench-strstr.c (input): Add realistic input text.
1740 (stupid_strstr): Remove function.
1741 (basic_strstr): Add function.
1742 (twoway_strstr): Add function.
1743 (do_one_test): Add result checking.
1744 (do_test): Use new input text. Remove accidental early matches.
1745 (test_main): Improve range of tests, reduce unaligned cases.
1746
1747 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1748
1749 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1750 (basic_memmem): Add function.
1751 (twoway_memmem): Add function.
1752
1753 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1754
1755 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1756 * benchtests/bench-malloc-thread.c: Likewise.
1757 * benchtests/bench-skeleton.c: Likewise.
1758 * benchtests/bench-strtod.c: Likewise.
1759 * benchtests/bench-timing.h: Likewise.
1760
1761 2019-04-08 Florian Weimer <fweimer@redhat.com>
1762
1763 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1764 definitions.
1765 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1766 RES_INSECURE2 security checks.
1767 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1768 RES_INSECURE2 handling.
1769
1770 2019-04-08 Florian Weimer <fweimer@redhat.com>
1771
1772 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1773 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1774 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1775 GETHOSTBYNAME.
1776 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1777 (tests-internal): Update justification for tst-resolv-res_init,
1778 tst-resolv-res_init-thread.
1779 (tst-res_use_inet6): Remove target.
1780 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1781 * resolv/res_debug.c (p_option): Remove "inet6" support.
1782 * resolv/res_init.c (res_setoptions): Likewise.
1783 * resolv/res_use_inet6.h: Remove file.
1784 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1785 definition.
1786 (res_use_inet6): Always return false.
1787 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1788 * resolv/resolv_context.h: Adjust file comment.
1789 (struct resolv_context): Update comment on __next field.
1790 (__resolv_context_put): Update comment.
1791 * resolv/tst-res_use_inet6.c: Remove file.
1792 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1793 "inet6" support.
1794 (test_cases): Adjust test case.
1795 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1796 (thread_byname2_af_inet6): Use old byname_inet6 code.
1797 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1798 (gai): Remove do_inet6 argument.
1799 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1800 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1801 (thread_gai_unspec_inet6): Remove functions.
1802 (do_test): Adjust thread_funcs.
1803 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1804 RES_USE_INET6 flag.
1805 (gaih_inet): Do not disable RES_USE_INET6 flag.
1806
1807 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1808
1809 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1810 and remove redundant code.
1811
1812 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1813
1814 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1815 New rule.
1816 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1817 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1818 Likewise.
1819 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1820 Likewise.
1821 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1822 Likewise.
1823 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1824 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1825 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1826 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1827 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1828 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1829 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1830 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1831 wcsrchr-power7.
1832 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1833 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1834 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1835 Remove wcsrchr optimizations.
1836 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1837
1838 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1839 the loop unroll.
1840
1841 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1842 New rule.
1843 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1844 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1845 Likewise.
1846 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1847 Likewise.
1848 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1849 Likewise.
1850 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1851 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1852 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1853 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1854 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1855 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1856 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1857 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1858 wcschr-power7.
1859 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1860 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1861 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1862 Remove wcschr optimizations.
1863 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1864
1865 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1866 the loop unroll.
1867
1868 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1869 New rule.
1870 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1871 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1872 Likewise.
1873 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1874 Likewise.
1875 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1876 Likewise.
1877 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1878 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1879 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1880 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1881 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1882 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1883 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1884 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1885 wcscpy-power7.
1886 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1887 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1888 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1889 Remove wcscpy optimizations.
1890 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1891
1892 * include/loop_unroll.h: New file.
1893 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1894 besides generic implementation.
1895
1896 2019-04-03 DJ Delorie <dj@redhat.com>
1897
1898 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1899 snprintf truncating output.
1900
1901 2019-04-02 DJ Delorie <dj@redhat.com>
1902
1903 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1904 warning.
1905
1906 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1907
1908 [BZ #22964]
1909 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1910 era.
1911 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1912 (mkreftable): Add rules for the new Japanese era and the new dates.
1913
1914 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1915 Rafal Luzynski <digitalfreak@lingonborough.com>
1916
1917 * time/tst-strftime2.c (date_t): Explicitly define the type.
1918 (dates): Use natural month and year numbers to express a date.
1919 (is_before): New function to compare dates.
1920 (mkreftable): Minor improvements to simplify maintenance.
1921 (do_test): Reflect the changes in dates array.
1922
1923 [BZ #24293]
1924 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1925 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1926 * time/tst-strftime2.c (locales): Likewise.
1927 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1928 2010-04-01, and 2011-04-01.
1929 (mkreftable): Add rules for the new locales and the new dates.
1930
1931 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1932
1933 * localedata/locales/ja_JP: Add comments to era entries.
1934
1935 2019-04-01 DJ Delorie <dj@redhat.com>
1936
1937 [BZ #24394]
1938 * time/strptime_l.c (%Ey): Fix fencepost error.
1939 * time/tst-strftime3.c: New.
1940 * time/Makefile (tests): Add tst-strftime3.
1941
1942 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1943
1944 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1945 conditional branch to DIVBYZERO. Fix unwind info.
1946 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1947 excb after conditional branch to $powerof2. Add missing unop
1948 instructions and .align directives and reorder instructions to
1949 match __divqu.
1950
1951 2019-04-01 Richard Henderson <rth@twiddle.net>
1952
1953 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1954 Do not redefine.
1955 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1956 Do not redefine.
1957
1958 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1959
1960 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1961 $libc_cv_riscv_float_abi in `test' invocation.
1962 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1963
1964 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1965
1966 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1967 asm with builtin.
1968 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1969 Likewise.
1970 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1971 (_GET_SI_FPSCR): Likewise.
1972 (_SET_SI_FPSCR): Likewise.
1973
1974 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1975
1976 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1977 clang 2.8.
1978 (signbit): Use builtin for clang 3.3.
1979 (isinf): Use builtin for clang 3.7.
1980
1981 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1982
1983 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1984
1985 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1986
1987 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1988 quote in printf.
1989
1990 2019-03-25 Mike Crowe <mac@mcrowe.com>
1991
1992 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1993 pthread_rwlock_timedrdlock with calls to
1994 pthread_rwlock_timedwrlock to ensure that the latter is tested
1995 too. Use new function name in diagnostic messages too.
1996
1997 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1998 (do_test) Use libsupport test macros rather than hand-coded
1999 conditionals and error messages. Ensure that sem_init returns zero
2000 rather than not -1. Use <support/test-driver.c> rather than
2001 test-skeleton.c.
2002
2003 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
2004 test macros rather than hand-coded conditionals and error messages.
2005 Use <support/test-driver.c> rather than test-skeleton.c.
2006
2007 2019-03-25 Joseph Myers <joseph@codesourcery.com>
2008
2009 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
2010
2011 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
2012 (NT_MIPS_MSA): Likewise.
2013
2014 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2015
2016 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
2017 * benchtests/README: Update description.
2018 * benchtests/bench-timing.h: Default to hp-timing.
2019 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
2020 HP_TIMING_PRINT): Remove.
2021 (HP_TIMING_NOW): Add generic implementation.
2022 (hp_timing_t): Change to uint64_t.
2023
2024 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
2025 HP_TIMING_INLINE.
2026 * nptl/descr.h: Likewise.
2027 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
2028 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
2029 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
2030 Abstract hp-timing usage with RTLD_* macros.
2031 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
2032 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
2033 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
2034 HP_TIMING_NONAVAIL): Likewise.
2035 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2036 Likewise.
2037 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
2038 HP_SMALL_TIMING_AVAIL): Likewise.
2039 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
2040 HP_SMALL_TIMING_AVAIL): Likewise.
2041 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
2042 HP_SMALL_TIMING_AVAIL): Likewise.
2043 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
2044 HP_SMALL_TIMING_AVAIL): Likewise.
2045 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
2046 Likewise.
2047 * sysdeps/generic/hp-timing-common.h: Update comment with
2048 HP_TIMING_AVAIL removal.
2049
2050 * include/random-bits.h: New file.
2051 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
2052 (__res_context_mkquery): Remove usage hp-timing usage and replace with
2053 random_bits.
2054 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
2055 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
2056 Likewise.
2057
2058 * include/libc-internal.h (__get_clockfreq): Remove prototype.
2059 * rt/Makefile (clock-routines): Remove get_clockfreq.
2060 * rt/get_clockfreq.c: Remove file.
2061 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
2062 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
2063 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
2064 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
2065 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
2066
2067 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
2068 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
2069 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
2070 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
2071 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
2072
2073 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
2074 pthread_clock_settime.
2075 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
2076 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
2077 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
2078 * elf/rtld.c (_dl_start_final): Likewise.
2079 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
2080 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
2081 Remove.
2082 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
2083 (_dl_cpuclock_offset): Remove.
2084 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
2085 cpuclock_offset_ununsed.
2086 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
2087 cpuclock_offset set.
2088 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
2089 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
2090 * nptl/pthread_clock_gettime.c: Remove file.
2091 * nptl/pthread_clock_settime.c: Likewise.
2092 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
2093 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
2094 and CLOCK_PROCESS_CPUTIME_ID support.
2095 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
2096 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
2097 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
2098 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
2099 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
2100 Likewise.
2101 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
2102
2103 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2104
2105 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
2106 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
2107 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
2108 New defines.
2109 * sysdeps/s390/memmem-arch13.S: New file.
2110 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
2111 if it is only used as fallback.
2112 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
2113 * sysdeps/s390/multiarch/ifunc-impl-list.c
2114 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
2115
2116 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2117
2118 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
2119 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
2120 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
2121 New defines.
2122 * sysdeps/s390/multiarch/ifunc-impl-list.c
2123 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
2124 * sysdeps/s390/strstr-arch13.S: New file.
2125 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2126 if it is only used as fallback.
2127 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2128
2129 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2130
2131 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2132 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2133 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2134 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2135 ifunc selector.
2136 * sysdeps/s390/multiarch/ifunc-impl-list.c
2137 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2138 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2139 S390_IS_ARCH13_MIE3): New defines.
2140
2141 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2142
2143 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2144 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2145 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2146 * sysdeps/s390/configure: Regenerated.
2147
2148 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2149
2150 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2151 Add vxe2, vxp, dflt, sort flags.
2152 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2153 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2154 capabilities.
2155 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2156 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2157 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2158 HWCAP_S390_DFLT): Define.
2159
2160 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2161
2162 [BZ #24372]
2163 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2164 of compiler warning.
2165 * locale/programs/ld-collate.c (collate_output): Likewise.
2166
2167 2019-03-21 DJ Delorie <dj@redhat.com>
2168
2169 [BZ #24372]
2170 * iconv/iconvconfig.c (write_output): Replace floating point math
2171 with integer math to avoid imprecise results.
2172 * locale/programs/ld-collate.c (collate_output): Likewise.
2173
2174 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2175
2176 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2177 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2178
2179 2019-03-20 mansayk <6688000@gmail.com>
2180
2181 [BZ #24296]
2182 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2183 (abday): Likewise, but remove the trailing dots.
2184
2185 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2186
2187 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2188 macro.
2189 (HWCAP_PACA): Likewise.
2190 (HWCAP_PACG): Likewise.
2191 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2192 Increase to 32.
2193 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2194
2195 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2196
2197 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2198 should be handled.
2199
2200 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2201
2202 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2203 version to 5.0.
2204 (old_getpagesize): New syscall.
2205
2206 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2207
2208 [BZ #24293]
2209 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2210 * localedata/locales/cmn_TW (era): Likewise.
2211 * localedata/locales/hak_TW (era): Likewise.
2212 * localedata/locales/lzh_TW (era): Likewise.
2213 * localedata/locales/nan_TW (era): Likewise.
2214
2215 2019-03-14 Adam Maris <amaris@redhat.com>
2216
2217 * malloc/malloc.c (_int_malloc): Check for large bin list
2218 corruption when inserting unsorted chunk.
2219
2220 2019-03-14 Florian Weimer <fweimer@redhat.com>
2221
2222 Remove obsolete, never-implemented XSI STREAMS declarations.
2223 * manual/terminal.texi (Allocation): Remove portability note and
2224 adjust example.
2225 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2226 _SC_STREAMS.
2227 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2228 * sysdeps/unix/inet/Subdirs (streams): Remove.
2229 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2230 (conformtest-headers-UNIX98): Likewise.
2231 (conformtest-headers-XOPEN2K): Likewise.
2232 (conformtest-headers-POSIX2008): Likewise.
2233 * posix/compat-streams.c: New file.
2234 * posix/Makefile (routines): Add it.
2235 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2236 getpmsg, isastream, putmsg, putpmsg.
2237 (GLIBC_2.30): New section.
2238 * bits/stropts.h: Remove file.
2239 * bits/xtitypes.h: Likewise.
2240 * conform/data/stropts.h-data: Likewise.
2241 * include/stropts.h: Likewise.
2242 * include/sys/stropts.h: Likewise.
2243 * include/xtitypes.h: Likewise.
2244 * streams/Makefile: Likewise.
2245 * streams/fattach.c: Likewise.
2246 * streams/fdetach.c: Likewise.
2247 * streams/getmsg.c: Likewise.
2248 * streams/getpmsg.c: Likewise.
2249 * streams/isastream.c: Likewise.
2250 * streams/putmsg.c: Likewise.
2251 * streams/putpmsg.c: Likewise.
2252 * streams/stropts.h: Likewise.
2253 * streams/sys/stropts.h: Likewise.
2254 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2255 * sysdeps/s390/bits/xtitypes.h: Likewise.
2256 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2257 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2258 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2259 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2260 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2261 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2262 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2263 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2264 * sysdeps/x86/bits/xtitypes.h: Likewise.
2265
2266 2019-03-14 Florian Weimer <fweimer@redhat.com>
2267
2268 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2269 libnss_files.
2270 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2271 but not with libnss_files.
2272 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2273
2274 2019-03-14 Zack Weinberg <zackw@panix.com>
2275
2276 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2277 Specify encoding="utf-8" when opening headers to check.
2278
2279 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2280
2281 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2282 version to 5.0.
2283 (Context.checkout_tar): Handle variable major version for Linux
2284 kernel.
2285
2286 2019-03-13 Florian Weimer <fweimer@redhat.com>
2287
2288 [BZ #24047]
2289 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2290
2291 2019-03-13 Zack Weinberg <zackw@panix.com>
2292
2293 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2294 Move to stdlib.
2295 * include/inttypes.h: Adjust to match.
2296 * include/stdint.h: New wrapper.
2297
2298 2019-03-13 Zack Weinberg <zackw@panix.com>
2299
2300 * scripts/check-obsolete-constructs.py: New test script.
2301 * scripts/check-installed-headers.sh: Remove tests for
2302 obsolete typedefs, superseded by check-obsolete-constructs.py.
2303 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2304 as a special test. Update commentary.
2305 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2306 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2307 Update commentary.
2308 * posix/sys/types.h (__u_intN_t): Remove.
2309 (u_int8_t): Typedef using __uint8_t.
2310 (u_int16_t): Typedef using __uint16_t.
2311 (u_int32_t): Typedef using __uint32_t.
2312 (u_int64_t): Typedef using __uint64_t.
2313
2314 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2315
2316 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2317 call _dl_procinfo.
2318 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2319 Ignore types other than AT_HWCAP.
2320 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2321 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2322 Likewise.
2323 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2324 in the case of falling back to generic output mechanism.
2325 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2326 Likewise.
2327
2328 2019-03-12 Florian Weimer <fweimer@redhat.com>
2329
2330 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2331
2332 2019-03-12 Florian Weimer <fweimer@redhat.com>
2333
2334 [BZ #24047]
2335 resolv: Enable full ICMP errors for UDP DNS sockets
2336 * resolv/res_enable_icmp.c: New file.
2337 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2338 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2339 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2340 socket.
2341
2342 2019-03-11 Mao Han <han_mao@c-sky.com>
2343
2344 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2345 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2346
2347 2019-03-11 Mao Han <han_mao@c-sky.com>
2348
2349 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2350 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2351 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2352
2353 2019-03-11 Mao Han <han_mao@c-sky.com>
2354
2355 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2356 directly.
2357 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2358 definition.
2359
2360 2019-03-11 Mao Han <han_mao@c-sky.com>
2361
2362 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2363 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2364 in mcontext_t
2365
2366 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2367
2368 [BZ #24307]
2369 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2370 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2371 Unicode 12.0.0.
2372 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2373 * localedata/unicode-gen/PropList.txt: Likewise.
2374 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2375 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2376 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2377 * localedata/charmaps/UTF-8: Regenerate.
2378 * localedata/locales/i18n_ctype: Likewise.
2379 * localedata/locales/tr_TR: Likewise.
2380 * localedata/locales/translit_circle: Likewise.
2381 * localedata/locales/translit_cjk_compat: Likewise.
2382 * localedata/locales/translit_combining: Likewise.
2383 * localedata/locales/translit_compat: Likewise.
2384 * localedata/locales/translit_font: Likewise.
2385 * localedata/locales/translit_fraction: Likewise.
2386
2387 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2388
2389 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2390 than after operators.
2391 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2392 (setitimer_locked): Likewise.
2393 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2394 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2395 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2396 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2397 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2398 (PPC_CPU_SUPPORTED): Likewise.
2399 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2400 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2401 (stat_overflow): Likewise.
2402 (statfs_overflow): Likewise.
2403 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2404 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2405 (eq_ttyname_r): Likewise.
2406 (run_chroot_tests): Likewise.
2407
2408 2019-03-07 Florian Weimer <fweimer@redhat.com>
2409
2410 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2411 header check.
2412
2413 2019-03-07 Martin Liska <mliska@suse.cz>
2414
2415 * math/Makefile: Change location where math-vector-fortran.h is
2416 installed.
2417 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2418 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2419 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2420 * scripts/check-installed-headers.sh: Skip Fortran header files.
2421 * scripts/check-wrapper-headers.py: Likewise.
2422
2423 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2424
2425 * nptl/nptl-init.c (__have_futex_clock_realtime,
2426 __have_futex_clock_realtime): Remove definition.
2427 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2428 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2429 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2430 __ASSUME_FUTEX_CLOCK_REALTIME support.
2431 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2432 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2433 * sysdeps/unix/sysv/linux/kernel-features.h
2434 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2435 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2436 Adjust comment.
2437
2438 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2439
2440 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2441 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2442 __GI___wcscpy and wcscpy.
2443
2444 2019-03-04 Florian Weimer <fweimer@redhat.com>
2445
2446 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2447 declaration.
2448 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2449 defined.
2450
2451 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2452
2453 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2454 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2455
2456 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2457
2458 [BZ #24162]
2459 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2460 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2461
2462 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2463
2464 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2465 tests.
2466 (do_test): Likewise.
2467 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2468 (do_test_call_varg): Likewise.
2469 (do_test_call_rarg): Likewise.
2470 * sysdeps/ieee754/ldbl-opt/Makefile
2471 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2472 tst-nldbl-error.
2473 ($(objpfx)tst-nldbl-warn.c): New rule.
2474 ($(objpfx)tst-nldbl-error.c): Likewise.
2475 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2476 New variables.
2477
2478 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2479
2480 [BZ #23984]
2481 * include/bits/error-ldbl.h: New file.
2482 * include/error.h: Include stdarg.h. Declare internal functions
2483 __error_internal and __error_at_line_internal.
2484 * misc/Makefile (headers): Add bits/error-ldbl.h.
2485 * misc/bits/error-ldbl.h: New file.
2486 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2487 avoid the inclusion of bits/error.h.
2488 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2489 and __nldbl_error_at_line.
2490 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2491 (__nldbl_error, __ndlbl_error_at_line): New functions.
2492 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2493 Redirect error and error_at_line.
2494 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2495 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2496 Likewise.
2497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2498 Likewise.
2499 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2500 Likewise.
2501 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2502 Likewise.
2503 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2504 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2505 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2506
2507 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2508
2509 [BZ #23984]
2510 * include/bits/err-ldbl.h: New file.
2511 * include/err.h: Add prototypes for the internal functions:
2512 __vwarnx_internal and __vwarn_internal.
2513 * misc/Makefile (headers): Add bits/err-ldbl.h.
2514 * misc/bits/err-ldbl.h: New file.
2515 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2516 defined, i.e.: when -mlong-double-64 is in use.
2517 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2518 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2519 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2520 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2521 (VA_CALL): New macro.
2522 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2523 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2524 functions.
2525 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2526 declare prototypes for the new functions.
2527 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2529 Likewise.
2530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2531 Likewise.
2532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2533 Likewise.
2534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2535 Likewise.
2536 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2537 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2538 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2539
2540 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2541
2542 * sysdeps/ieee754/ldbl-opt/Makefile
2543 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2544 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2545 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2546
2547 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2548
2549 [BZ #23983]
2550 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2551 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2552 * argp/bits/argp-ldbl.h: New file.
2553 * include/argp.h: Include stdarg.h. Add prototypes for internal
2554 functions: __argp_error_internal and __argp_failure_internal.
2555 * include/bits/argp-ldbl.h: New file.
2556 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2557 __nldbl_argp_error and __nldbl_argp_failure.
2558 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2559 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2560 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2561 Redirect argp_error and argp_failure calls.
2562 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2564 Likewise.
2565 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2566 Likewise.
2567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2568 Likewise.
2569 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2570 Likewise.
2571 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2572 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2573 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2574
2575 2019-03-01 Florian Weimer <fweimer@redhat.com>
2576
2577 [BZ #20419]
2578 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2579 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2580 code, to avoid creating an ABI tag note.
2581 (modules-names-nobuild): Add tst-big-note-lib.
2582
2583 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2584
2585 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2586 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2587
2588 2019-03-01 Florian Weimer <fweimer@redhat.com>
2589
2590 [BZ #20271]
2591 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2592 (__netlink_assert_response): Add additional missing newlines.
2593
2594 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2595
2596 * sysdeps/powerpc/powerpc32/dl-machine.c
2597 (__elf_machine_fixup_plt): Use space before '('.
2598 (__process_machine_rela): Likewise.
2599 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2600 Likewise.
2601 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2602 Likewise.
2603 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2604 Likewise.
2605 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2606 (pattern): Likewise.
2607 (delta): Likewise.
2608 (check_result): Likewise.
2609 (check_excepts): Likewise.
2610 (check_op): Likewise.
2611 (fail_xr): Likewise.
2612 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2613 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2614 (SCNHSZ): Likewise.
2615 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2616 Likewise.
2617 (ARGS): Likewise.
2618 (__makecontext): Likewise.
2619 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2620 Likewise.
2621
2622 2019-02-28 Florian Weimer <fweimer@redhat.com>
2623
2624 [BZ #23937]
2625 elf: Add test with a local IFUNC resolver.
2626 * elf/ifuncmain9.c: New file.
2627 * elf/ifuncmain9pic.c: Likewise.
2628 * elf/ifuncmain9picstatic.c: Likewise.
2629 * elf/ifuncmain9pie.c: Likewise.
2630 * elf/ifuncmain9static.c: Likewise.
2631 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2632 ifuncmain9static, ifuncmain9picstatic.
2633 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2634 Add ifuncmain9, ifuncmain9pic.
2635 * elf/Makefile [multi-arch && build-shared && have-fpie]
2636 (ifunc-pie-tests): Add ifuncmain9pie.
2637 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2638 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2639 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2640
2641 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2642
2643 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2644 * configure: Regenerated.
2645 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2646
2647 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2648
2649 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2650 symbol as __wcspcy instead of wcscpy.
2651
2652 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2653
2654 * include/stdio.h (__renameat2): New hidden prototype.
2655 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2656 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2657 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2658 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2659
2660 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2661
2662 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2663 if statement.
2664
2665 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2666 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2667 * benchtests/bench-strlen.c (do_test): Likewise.
2668 (test_main): Likewise.
2669 * catgets/gencat.c (read_old): Likewise.
2670 * elf/cache.c (load_aux_cache): Likewise.
2671 * iconvdata/bug-iconv8.c (do_test): Likewise.
2672 * math/test-tgmath-ret.c (do_test): Likewise.
2673 * nis/nis_call.c (rec_dirsearch): Likewise.
2674 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2675 * nptl/tst-audit-threads.c (do_test): Likewise.
2676 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2677 * nss/nss_test1.c (init): Likewise.
2678 * nss/test-netdb.c (test_hosts): Likewise.
2679 * posix/execvpe.c (maybe_script_execute): Likewise.
2680 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2681 * stdio-common/tst-printf.c (do_test): Likewise.
2682 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2683 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2684 * stdlib/qsort.c (STACK_SIZE): Likewise.
2685 * stdlib/test-canon.c (do_test): Likewise.
2686 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2687 * string/memcmp.c (OPSIZ): Likewise.
2688 * string/test-strcpy.c (do_test): Likewise.
2689 (do_random_tests): Likewise.
2690 * string/test-strlen.c (do_test): Likewise.
2691 (test_main): Likewise.
2692 * string/test-strrchr.c (do_test): Likewise.
2693 (do_random_tests): Likewise.
2694 * string/tester.c (test_memrchr): Likewise.
2695 (test_memchr): Likewise.
2696 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2697 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2698 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2699 (read_encoded_value_with_base): Likewise.
2700 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2701 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2702 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2703 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2704 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2705 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2706 Likewise.
2707 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2708 Likewise.
2709 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2710 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2711 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2712 Likewise.
2713 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2714 Likewise.
2715 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2716 Likewise.
2717 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2718 Likewise.
2719 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2720 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2721 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2722 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2723 * time/test_time.c (main): Likewise.
2724
2725 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2726
2727 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2728
2729 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2730 wmemcpy.
2731
2732 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2733 wmemcpy.
2734
2735 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2736
2737 * include/wchar.h (__wcscpy): New prototype.
2738 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2739 (__wcscpy): Route internal symbol to generic implementation.
2740 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2741 Add internal __wcscpy alias.
2742 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2743 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2744 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2745 * wcsmbs/wcscpy.c (wcscpy): Add
2746 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2747 use generic implementation.
2748 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2749
2750 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2751 wmemset.
2752
2753 * sysdeps/m68k/wcpcpy.c: Remove file.
2754 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2755
2756 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2757
2758 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2759 than after operators.
2760 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2761 * sysdeps/mach/hurd/getcwd.c
2762 (__hurd_canonicalize_directory_name_internal): Likewise.
2763 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2764 (pthread_mutex_consistent): Likewise.
2765 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2766 Likewise.
2767 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2768 (__pthread_mutex_transfer_np): Likewise.
2769 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2770 (__pthread_mutex_unlock): Likewise.
2771 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2772 (mtx_owned_p): Likewise.
2773 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2774 (pthread_mutexattr_getrobust): Likewise.
2775 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2776 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2777 Likewise.
2778 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2779 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2780 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2781 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2782 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2783 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2784 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2785 Likewise.
2786 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2787 Likewise.
2788 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2789 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2790 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2791 (____longjmp_chk): Likewise.
2792 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2793 Likewise.
2794 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2795 (INTERNAL_SYSCALL): Likewise.
2796 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2797 (INTERNAL_SYSCALL): Likewise.
2798 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2799 (__get_clockfreq_via_cpuinfo): Likewise.
2800
2801 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2802 comments.
2803 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2804 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2805 (WORD_COPY_BWD): Likewise.
2806 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2807 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2808 Likewise.
2809 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2810 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2811 comment.
2812 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2813
2814 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2815
2816 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2817 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2818 rather than after operators.
2819 * elf/cache.c (print_cache): Likewise.
2820 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2821 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2822 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2823 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2824 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2825 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2826 (reauth_proc): Likewise.
2827 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2828 (__file_name_split_at): Likewise.
2829 (__directory_name_split_at): Likewise.
2830 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2831 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2832 * iconv/gconv_dl.c (do_print): Likewise.
2833 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2834 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2835 * locale/setlocale.c (new_composite_name): Likewise.
2836 * malloc/memusagestat.c (main): Likewise.
2837 * misc/fstab.c (fstab_convert): Likewise.
2838 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2839 Likewise.
2840 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2841 (getgrent_next_file): Likewise.
2842 (internal_getgrnam_r): Likewise.
2843 (internal_getgrgid_r): Likewise.
2844 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2845 Likewise.
2846 (internal_getgrent_r): Likewise.
2847 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2848 (getpwent_next_nss): Likewise.
2849 (getpwent_next_file): Likewise.
2850 (internal_getpwnam_r): Likewise.
2851 (internal_getpwuid_r): Likewise.
2852 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2853 Likewise.
2854 (getspent_next_nss): Likewise.
2855 (internal_getspnam_r): Likewise.
2856 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2857 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2858 * string/strchr.c (STRCHR): Likewise.
2859 * string/strchrnul.c (STRCHRNUL): Likewise.
2860 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2861 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2862 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2863 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2864 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2865 Likewise.
2866 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2867 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2868 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2869 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2870 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2871 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2872 (open_file): Likewise.
2873 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2874 (pthread_mutexattr_setprotocol): Likewise.
2875 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2876 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2877 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2878 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2879 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2880 Likewise.
2881 (elf_machine_rela): Likewise.
2882 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2883 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2884 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2885 * sysdeps/posix/rename.c (rename): Likewise.
2886 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2887 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2888 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2889 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2890 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2891 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2892 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2893 Likewise.
2894 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2895 Likewise.
2896 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2897 * time/tzfile.c (__tzfile_compute): Likewise.
2898
2899 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2900
2901 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2902 rather than after operators.
2903 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2904 * crypt/md5.c (md5_finish_ctx): Likewise.
2905 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2906 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2907 * elf/cache.c (load_aux_cache): Likewise.
2908 * elf/dl-load.c (open_verify): Likewise.
2909 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2910 * elf/readelflib.c (process_elf_file): Likewise.
2911 * elf/rtld.c (dl_main): Likewise.
2912 * elf/sprof.c (generate_call_graph): Likewise.
2913 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2914 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2915 * hurd/dtable.c (reauth_dtable): Likewise.
2916 * hurd/getdport.c (__getdport): Likewise.
2917 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2918 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2919 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2920 Likewise.
2921 * hurd/hurdioctl.c (fioctl): Likewise.
2922 * hurd/hurdselect.c (_hurd_select): Likewise.
2923 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2924 (STOPSIGS): Likewise.
2925 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2926 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2927 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2928 * hurd/msgportdemux.c (msgport_server): Likewise.
2929 * hurd/setauth.c (_hurd_setauth): Likewise.
2930 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2931 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2932 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2933 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2934 * login/tst-utmp.c (do_check): Likewise.
2935 (simulate_login): Likewise.
2936 * mach/lowlevellock.h (lll_lock): Likewise.
2937 (lll_trylock): Likewise.
2938 * math/test-fenv.c (ALL_EXC): Likewise.
2939 * math/test-fenvinline.c (ALL_EXC): Likewise.
2940 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2941 * nis/nis_call.c (__do_niscall3): Likewise.
2942 * nis/nis_callback.c (cb_prog_1): Likewise.
2943 * nis/nis_defaults.c (searchaccess): Likewise.
2944 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2945 * nis/nis_ismember.c (internal_ismember): Likewise.
2946 * nis/nis_local_names.c (nis_local_principal): Likewise.
2947 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2948 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2949 Likewise.
2950 * nis/ypclnt.c (yp_match): Likewise.
2951 (yp_first): Likewise.
2952 (yp_next): Likewise.
2953 (yp_master): Likewise.
2954 (yp_order): Likewise.
2955 * nscd/hstcache.c (cache_addhst): Likewise.
2956 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2957 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2958 (internal_getpwuid_r): Likewise.
2959 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2960 * posix/glob.h (__GLOB_FLAGS): Likewise.
2961 * posix/regcomp.c (peek_token): Likewise.
2962 (peek_token_bracket): Likewise.
2963 (parse_expression): Likewise.
2964 * posix/regexec.c (sift_states_iter_mb): Likewise.
2965 (check_node_accept_bytes): Likewise.
2966 * posix/tst-spawn3.c (do_test): Likewise.
2967 * posix/wordexp-test.c (testit): Likewise.
2968 * posix/wordexp.c (parse_tilde): Likewise.
2969 (exec_comm): Likewise.
2970 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2971 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2972 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2973 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2974 * stdio-common/tst-fileno.c (do_test): Likewise.
2975 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2976 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2977 * stdlib/strtod_l.c (round_and_return): Likewise.
2978 (____STRTOF_INTERNAL): Likewise.
2979 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2980 * string/strcspn.c (STRCSPN): Likewise.
2981 * string/test-memmem.c (simple_memmem): Likewise.
2982 * termios/tcsetattr.c (tcsetattr): Likewise.
2983 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2984 * time/asctime.c (asctime_internal): Likewise.
2985 * time/strptime_l.c (__strptime_internal): Likewise.
2986 * time/sys/time.h (timercmp): Likewise.
2987 * time/tzfile.c (__tzfile_compute): Likewise.
2988
2989 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2990
2991 [BZ #21915]
2992 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2993
2994 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2995
2996 * argp/argp-help.c (__argp_error_internal): New function,
2997 renamed from __argp_error, but that takes a 'mode_flags'
2998 parameter to control the format of long double parameters.
2999 (__argp_error): Converted into a call __argp_error_internal.
3000 (__argp_failure_internal): New function, renamed from
3001 __argp_failure, but that takes a 'mode_flags' parameter.
3002 (__argp_failure): Converted into a call __argp_failure_internal.
3003 * misc/err.c (__vwarnx_internal): New function, renamed from
3004 vwarnx, but that takes a 'mode_flags' parameter.
3005 (vwarnx): Converted into a call to __vwarnx_internal.
3006 (__vwarn_internal): New function, renamed from vwarn, but that
3007 takes a 'mode_flags' parameter.
3008 (vwarn): Converted into a call to __vwarn_internal.
3009 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
3010 call to __vfxprintf with 'mode_flags'.
3011 (__error_internal): New function, renamed from error, but that
3012 takes a 'mode_flags' parameter.
3013 (error): Converted into a call to __error_internal.
3014 (__error_at_line_internal): New function, renamed from
3015 error_at_line, but that takes a 'mode_flags' parameter.
3016 (error_at_line): Converted into a call to
3017 __error_at_line_internal.
3018 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
3019 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
3020 Likewise.
3021
3022 2019-02-20 Martin Liska <mliska@suse.cz>
3023
3024 * math/Makefile: Install math-vector-fortran.h.
3025 * bits/math-vector-fortran.h: New file.
3026 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
3027
3028 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3029
3030 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
3031 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
3032
3033 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
3034
3035 * nptl/pthread_mutex_trylock.c: Fix comment.
3036
3037 2019-02-19 Carlos O'Donell <carlos@redhat.com>
3038
3039 * nptl/pthread_tryjoin.c: Fix comment.
3040
3041 2019-02-18 Joseph Myers <joseph@codesourcery.com>
3042
3043 [BZ #24231]
3044 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
3045 after R_SPARC_H34 case.
3046
3047 2019-02-18 Florian Weimer <fweimer@redhat.com>
3048
3049 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
3050 (getanswer): Do not call Dprintf.
3051 (res_gethostbyname2_context): Likewise.
3052 (res_gethostbyaddr_context): Likewise.
3053
3054 2019-02-18 Florian Weimer <fweimer@redhat.com>
3055
3056 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
3057 declaration.
3058 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
3059 Remove definitions.
3060 * libio/stdfiles.c: Update comment.
3061 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
3062 set _IO_stdin, _IO_stdout, _IO_stderr.
3063 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
3064 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
3065 inline function.
3066 (_IO_deallocate_file): New inline function.
3067 * libio/iolibio.h (_IO_vprintf): Remove definition.
3068 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
3069 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
3070 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
3071 _IO_legacy_file.
3072 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
3073 __builtin_expect. Use _IO_legacy_file.
3074
3075 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
3076
3077 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
3078 Initialize ctid with a known value and remove update of ctid
3079 after clone.
3080 (wait_tid): Adjust arguments and call futex_wait with ctid_val
3081 as assumed current value of ctid_ptr.
3082
3083 2019-02-16 Florian Weimer <fweimer@redhat.com>
3084
3085 Check that non-sysdeps headers have wrapper headers.
3086 * scripts/check-wrapper-headers.py: New file.
3087 * Makefile (tests-special): Add check-wrapper-headers.out.
3088 (check-wrapper-headers.out): New target.
3089 * Rules (tests-special): Add check-wrapper-headers.out.
3090 (check-wrapper-headers.out): New target.
3091
3092 2019-02-16 Florian Weimer <fweimer@redhat.com>
3093
3094 Add missing header wrappers under include/.
3095 * include/ar.h: New file.
3096 * include/bits/mqueue2.h: Likewise.
3097 * include/bits/stdio.h: Likewise.
3098 * include/bits/stdio2.h: Likewise.
3099 * include/fstab.h: Likewise.
3100 * include/fts.h: Likewise.
3101 * include/lastlog.h: Likewise.
3102 * include/netinet/icmp6.h: Likewise.
3103 * include/netinet/igmp.h: Likewise.
3104 * include/netinet/ip6.h: Likewise.
3105 * include/re_comp.h: Likewise.
3106 * include/regexp.h: Likewise.
3107 * include/rpcsvc/bootparam.h: Likewise.
3108 * include/rpcsvc/yp_prot.h: Likewise.
3109 * include/sys/random.h: Likewise.
3110 * include/sys/stropts.h: Likewise.
3111 * include/sys/ttychars.h: Likewise.
3112 * include/sys/vfs.h: Likewise.
3113 * include/wait.h: Likewise.
3114
3115 2019-02-16 Florian Weimer <fweimer@redhat.com>
3116
3117 * nptl_db/proc_service.h: Move to ...
3118 * sysdeps/nptl/proc_service.h: ... here.
3119 * nptl_db/thread_db.h: Move to ...
3120 * sysdeps/nptl/thread_db.h: ... here.
3121 * nptl/descr.h: Include <thread_db.h>.
3122
3123 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3124
3125 * io/Makefile (tests): Add tst-lockf.
3126 * io/lockf.c (lockf): Use __fcntl and only define for
3127 !__OFF_T_MATCHES_OFF64_T.
3128 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3129 __OFF_T_MATCHES_OFF64_T case.
3130 * io/tst-lockf.c: New file.
3131 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3132 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3133 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3134 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3135 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3136 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3137 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3138 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3139 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3140
3141 2019-02-15 Florian Weimer <fweimer@redhat.com>
3142
3143 [BZ #24211]
3144 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3145 pd->result after the thread descriptor has been freed.
3146
3147 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3148
3149 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3150 from function return type.
3151
3152 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3153
3154 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 * scripts/test_printers_common.py: Set TERM to a known harmless
3157 value.
3158
3159 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3160
3161 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3162 (xdr_u_int): Likewise.
3163 (xdr_enum): Likewise.
3164 (xdr_bytes): Reword fall-through comment.
3165 (xdr_string): Likewise.
3166
3167 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3168
3169 [BZ #2421]
3170 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3171 (tests): Add tst-join8 tst-join9.
3172 * nptl/lll_timedwait_tid.c: Remove file.
3173 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3174 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3175 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3176 * nptl/pthread_join_common.c (timedwait_tid): New function.
3177 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3178 is set.
3179 * nptl/tst-join5.c (thread_join): New function.
3180 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3181 check.
3182 * nptl/tst-join8.c: New file.
3183 * nptl/tst-join9.c: Likewise.
3184 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3185 lll_futex_timed_wait_cancel): Add generic macros.
3186 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3187 Remove definitions.
3188 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3189 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3190 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3191 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3192 Remove function.
3193 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3194 Likewise.
3195 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3196 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3197 (lll_futex_timed_wait_cancel): New macro.
3198
3199 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3200
3201 * benchtests/Makefile: Add malloc-simple benchmark.
3202 * benchtests/bench-malloc-simple.c: New benchmark.
3203
3204 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3205
3206 * benchtests/bench-memmove.c (do_one_test): Remove unused
3207 ORIG_SRC.
3208 (do_test): Adjust.
3209 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3210 ORIG_SRC.
3211 (do_test): Adjust.
3212
3213 2019-01-13 Jim Wilson <jimw@sifive.com>
3214
3215 [BZ #24040]
3216 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3217 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3218 (func): New.
3219 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3220 call func directly.
3221 * nptl/Makefile (tests): Add tst-unwind-thread.
3222 (CFLAGS-tst-unwind-thread.c): Define.
3223 * nptl/tst-unwind-thread.c: New file.
3224 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3225 as undefined.
3226
3227 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3228
3229 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3230 comment wording.
3231 * nis/nis_call.c (__do_niscall3): Likewise.
3232
3233 * catgets/gencat.c (normalize_line): Use braces around empty
3234 'else' body.
3235 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3236 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3237 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3238 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3239 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3240 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3241 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3242 definition.
3243
3244 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3245 execlp returns.
3246
3247 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3248
3249 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3250 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3251 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3252 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3253 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3254 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3255 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3256 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3257 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3258 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3259 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3260 * benchtests/bench-bcopy.c: Delete file.
3261 * benchtests/bench-bzero.c: Likewise.
3262 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3263 (simple_memccpy): Remove.
3264 (generic_memccpy): Add function.
3265 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3266 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3267 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3268 (generic_mempcpy): Add new function.
3269 * benchtests/bench-memset.c (simple_bzero): Remove.
3270 (builtin_bzero): Remove.
3271 (builtin_memset): Remove.
3272 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3273 (generic_rawmemchr): Add new function.
3274
3275 2019-02-12 Florian Weimer <fweimer@redhat.com>
3276
3277 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3278
3279 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3280
3281 [BZ #24122]
3282 * elf/Makefile (tests): Add tst-audit13.
3283 (modules-names): Add tst-audit13mod1.
3284 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3285 rule.
3286 * elf/tst-audit13.c: New file.
3287 * elf/tst-audit13mod1.c: Likewise.
3288
3289 2019-02-12 Florian Weimer <fweimer@redhat.com>
3290
3291 [BZ #24122]
3292 * elf/rtld.c (unload_audit_module): New function.
3293 (report_audit_module_load_error): Likewise.
3294 (load_audit_module): Likewise. Extracted from dl_main. Call
3295 _dl_close if the laversion symbol cannot be found. Use early
3296 returns for error handling. Add malloc error check. Check for a
3297 zero return value from la_version. Remove spurious comment about
3298 static TLS initialization. Remove useless casts.
3299 (notify_audit_modules_of_loaded_object): New function. Extracted
3300 from dl_main.
3301 (load_audit_module): Likewise.
3302 (dl_main): Call load_audit_modules.
3303
3304 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3305
3306 * elf/dl-exception.c (_dl_exception_create_format): Add
3307 fall-through comments.
3308 * elf/ldconfig.c (parse_conf_include): Likewise.
3309 * elf/rtld.c (print_statistics): Likewise.
3310 * locale/programs/charmap.c (parse_charmap): Likewise.
3311 * misc/mntent_r.c (__getmntent_r): Likewise.
3312 * posix/wordexp.c (parse_arith): Likewise.
3313 (parse_backtick): Likewise.
3314 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3315 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3316 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3317
3318 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3319
3320 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3321 Use float instead of double.
3322
3323 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3324
3325 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3326
3327 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3328
3329 * sysdeps/powerpc/bits/mathinline.h: Remove.
3330
3331 2019-02-08 Florian Weimer <fweimer@redhat.com>
3332
3333 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3334 * math/bits/math-finite.h: Move to ...
3335 * bits/math-finite.h: ... here.
3336
3337 2019-02-08 Florian Weimer <fweimer@redhat.com>
3338
3339 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3340 * bits/unistd_ext.h: here.
3341
3342 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3343
3344 [BZ #21915]
3345 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3346 * nss/tst-nss-files-hosts-long.c: New file.
3347 * nss/tst-nss-files-hosts-long.root: New directory.
3348 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3349 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3350
3351 2019-02-08 Florian Weimer <fweimer@redhat.com>
3352
3353 * include/bits/unistd_ext.h: Remove file.
3354 * posix/bits/unistd_ext.h: Move to ...
3355 * sysdeps/generic/bits/unistd_ext.h: ... here.
3356
3357 2019-02-08 Florian Weimer <fweimer@redhat.com>
3358
3359 * include/bits/unistd_ext.h: New file.
3360
3361 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3362
3363 * time/tst-strftime2.c: Use array_length macros instead of magic
3364 numbers.
3365
3366 2019-02-08 Florian Weimer <fweimer@redhat.com>
3367
3368 [BZ #24161]
3369 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3370 argument.
3371 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3372 locking if the new do_locking argument is true.
3373 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3374 __run_fork_handlers.
3375
3376 2019-02-08 Florian Weimer <fweimer@redhat.com>
3377
3378 [BZ #6399]
3379 Linux: Add gettid system call wrapper.
3380 * posix/Makefile (headers): Add bits/unistd_ext.h.
3381 * posix/bits/unistd_ext.h: New file.
3382 * posix/unistd.h: Include it.
3383 * manual/process.texi (Process Identification): Document gettid.
3384 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3385 tst-gettid, tst-gettid-kill.
3386 (tst-gettid): Link with $(shared-thread-library).
3387 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3388 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3389 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3390 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3391 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3392 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3393 Add gettid.
3394 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3395 Likewise.
3396 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3397 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3398 Likewise.
3399 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3400 Likewise.
3401 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3402 Likewise.
3403 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3404 Likewise.
3405 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3406 Likewise.
3407 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3408 Likewise.
3409 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3410 Likewise.
3411 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3412 (GLIBC_2.30): Likewise.
3413 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3414 (GLIBC_2.30): Likewise.
3415 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3416 (GLIBC_2.30): Likewise.
3417 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3418 (GLIBC_2.30): Likewise.
3419 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3420 Likewise.
3421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3422 (GLIBC_2.30): Likewise.
3423 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3424 (GLIBC_2.30): Likewise.
3425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3426 (GLIBC_2.30): Likewise.
3427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3428 (GLIBC_2.30): Likewise.
3429 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3430 Likewise.
3431 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3432 Likewise.
3433 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3434 Likewise.
3435 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3436 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3437 Likewise.
3438 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3439 Likewise.
3440 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3441 Likewise.
3442 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3443 Likewise.
3444 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3445
3446 2019-02-08 Florian Weimer <fweimer@redhat.com>
3447
3448 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3449 compatibility symbols.
3450
3451 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3452
3453 [BZ #24180]
3454 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3455 Add compiler barriers and comments.
3456
3457 2019-02-07 Florian Weimer <fweimer@redhat.com>
3458
3459 * include/array_length.h (array_length): Do not use a statement
3460 expression and _Static_assert, so that array_length can be used at
3461 file scope and as a constant expression.
3462
3463 2019-02-07 Florian Weimer <fweimer@redhat.com>
3464
3465 * support/xdlfcn.h (xdlmopen): Declare.
3466 * support/xdlmopen.c: New file.
3467 * support/Makefile (libsupport-routines): Add xdlmopen.
3468
3469 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3470
3471 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3472 before return type, without separate inline.
3473 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3474 * elf/dl-tunables.h (tunable_is_name): Likewise.
3475 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3476 (do_set_top_pad): Likewise.
3477 (do_set_mmap_threshold): Likewise.
3478 (do_set_mmaps_max): Likewise.
3479 (do_set_mallopt_check): Likewise.
3480 (do_set_perturb_byte): Likewise.
3481 (do_set_arena_test): Likewise.
3482 (do_set_arena_max): Likewise.
3483 (do_set_tcache_max): Likewise.
3484 (do_set_tcache_count): Likewise.
3485 (do_set_tcache_unsorted_limit): Likewise.
3486 * nis/nis_subr.c (count_dots): Likewise.
3487 * nptl/allocatestack.c (advise_stack_range): Likewise.
3488 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3489 (do_sin): Likewise.
3490 (reduce_sincos): Likewise.
3491 (do_sincos): Likewise.
3492 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3493 (do_set_elision_enable): Likewise.
3494 (TUNABLE_CALLBACK_FNDECL): Likewise.
3495
3496 2019-02-06 Florian Weimer <fweimer@redhat.com>
3497
3498 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3499 (xdlsym): Use dlerror to detect a NULL symbol.
3500
3501 2019-02-06 Florian Weimer <fweimer@redhat.com>
3502
3503 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3504 <stap-probe.h>.
3505 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3506
3507 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3508
3509 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3510
3511 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3512
3513 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3514 __wmemcmp and weak alias to wmemcmp.
3515
3516 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3517
3518 [BZ #23403]
3519 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3520 TLS_TCB_AT_TP tls variant.
3521 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3522 Add alignment checks.
3523 * support/Makefile (libsupport-routines): Add xposix_memalign and
3524 xpthread_setstack.
3525 * support/support.h: Add xposix_memalign.
3526 * support/xthread.h: Add xpthread_attr_setstack.
3527 * support/xposix_memalign.c: New File.
3528 * support/xpthread_attr_setstack.c: Likewise.
3529
3530 2019-02-05 Florian Weimer <fweimer@redhat.com>
3531
3532 [BZ #24164]
3533 arm: Use "nr" constraint for Systemtap probes, to avoid the
3534 compiler using memory operands for constants, due to the "o"
3535 alternative in the default "nor" constraint.
3536 * include/stap-probe.h [USE_STAP_PROBE]: Include
3537 <stap-probe-machine.h>
3538 * sysdeps/generic/stap-probe-machine.h: New file.
3539 * sysdeps/arm/stap-probe-machine.h: Likewise.
3540
3541 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3542
3543 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3544 with 0, not tcache->entries[tc_idx].
3545
3546 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3547 once.
3548
3549 2019-02-04 Andreas Schwab <schwab@suse.de>
3550
3551 [BZ #16976]
3552 [BZ #17396]
3553 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3554 looking up collating elements match against (wide) character
3555 sequence instead of name. Correct alignment adjustment.
3556 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3557 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3558 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3559 (LOCALES): Add cs_CZ.ISO-8859-2.
3560 * posix/tst-fnmatch4.c: New file.
3561 * posix/tst-fnmatch5.c: New file.
3562 * include/wchar.h (__wmemcmp): Declare.
3563 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3564 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3565 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3566 * sysdeps/s390/wmemcmp.c: Likewise.
3567
3568 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3569
3570 [BZ #24155]
3571 CVE-2019-7309
3572 * NEWS: Updated for CVE-2019-7309.
3573 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3574 upper 32 bits of RDX register for x32. Use unsigned Jcc
3575 instructions, instead of signed.
3576 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3577 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3578
3579 2019-02-04 Florian Weimer <fweimer@redhat.com>
3580
3581 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3582 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3583 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3584 Likewise.
3585 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3586 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3587 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3588 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3589 Likewise.
3590 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3591 Likewise.
3592 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3593 Likewise.
3594 (posix_spawn_file_actions_addopen): Likewise.
3595 (posix_spawn_file_actions_addclose): Likewise.
3596 (posix_spawn_file_actions_adddup2): Likewise.
3597 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3598 qualifiers.
3599 (posix_spawn_file_actions_addfchdir_np): Likewise.
3600
3601 2019-02-04 David Newall <glibc@davidnewall.com>
3602
3603 elf: Implement --preload option for the dynamic linker.
3604 * elf/rtld.c (preloadarg): New variable.
3605 (handle_preload_list): Pass through “where” argument to
3606 do_preload.
3607 (dl_main): Handle "--preload" and add second call to
3608 handle_preload_list.
3609 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3610 (tst-rtld-preload-OBJS): Set variable.
3611 (tst-rtld-preload.out): New target.
3612 * elf/tst-rtld-preload.sh: New file.
3613
3614 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3615
3616 * Makefile (testrun.sh): Exit in case of incorrect argument.
3617
3618 2019-02-04 Florian Weimer <fweimer@redhat.com>
3619
3620 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3621 alignment gaps.
3622
3623 2019-02-03 Florian Weimer <fweimer@redhat.com>
3624
3625 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3626 implicit overflow checks.
3627
3628 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3629
3630 * stdlib/isomac.c: Include <unistd.h>.
3631
3632 2019-02-03 Florian Weimer <fweimer@redhat.com>
3633
3634 * include/time.h (__tzfile_default): Use int, not long int, for
3635 the GMT offsets.
3636 * time/tzfile.c (struct ttinfo): Change type of the offset member
3637 to int.
3638 (__tzfile_read): Remove useless cast.
3639 (__tzfile_default): Adjust prototype.
3640 * time/tzset.c (tz_rule): Change type of the offset member to int.
3641 (parse_offset): Change the type of the sign variable to int.
3642
3643 2019-02-03 Florian Weimer <fweimer@redhat.com>
3644
3645 [BZ #24153]
3646 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3647 * libio/getchar.c (getchar): Likewise.
3648 * libio/getchar_u.c (getchar_unlocked): Likewise.
3649 * libio/getwchar.c (getwchar): Likewise.
3650 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3651 * libio/iogets.c (_IO_gets): Likewise.
3652 * libio/vscanf.c (_IO_vscanf): Likewise.
3653 * libio/vwscanf.c (__vwscanf): Likewise.
3654 * libio/tst-bz24153.c: New file.
3655 * libio/Makefile (tests): Add it.
3656
3657 2019-02-02 Florian Weimer <fweimer@redhat.com>
3658
3659 [BZ #14829]
3660 * manual/resource.texi (Basic Scheduling Functions): Add
3661 portability note. Change process to task throughout the section.
3662 Remove incorrect comment about sched_yield as it affects
3663 tasks/threads, not entire processes.
3664 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3665 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3666
3667 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3668
3669 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3670 * configure: Regenerated.
3671 * manual/install.texi (Tools for Compilation): Update minimum GCC
3672 version.
3673 * INSTALL: Regenerated.
3674
3675 2019-02-01 Florian Weimer <fweimer@redhat.com>
3676
3677 * support/support_test_compare_string.c
3678 (support_test_compare_string): Use "string" in error message.
3679 * support/tst-test_compare_string.c (do_test): Adjust.
3680
3681 2019-02-01 Florian Weimer <fweimer@redhat.com>
3682
3683 * support/support_format_address_family.c
3684 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3685
3686 2019-02-01 Florian Weimer <fweimer@redhat.com>
3687
3688 * manual/socket.texi (Internet Address Formats): Clarify the byte
3689 order of struct sockaddr_in, struct sockaddr_in6. Document
3690 sin6_flowinfo and sin6_scope_id.
3691
3692 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3693
3694 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3695 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3696 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3697 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3698 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3699 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3700
3701 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3702
3703 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3704 [!MEMCHR](MEMCHR): Set to __memchr.
3705 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3706 Add memchr_generic and memchr_nosimd.
3707 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3708 (__libc_ifunc_impl_list): Add memchr ifuncs.
3709 * sysdeps/aarch64/multiarch/memchr.c: New file.
3710 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3711 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3712
3713 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3714
3715 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3716 Add memset_emag.
3717 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3718 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3719 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3720 Add IS_EMAG check for ifunc dispatch.
3721 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3722 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3723
3724 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3725
3726 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3727 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3728 Add emag.
3729 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3730 New macro.
3731
3732 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3733
3734 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3735
3736 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3737
3738 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3739 syscall-template file.
3740
3741 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3742 Torvald Riegel <triegel@redhat.com>
3743 Rik Prohaska <prohaska7@gmail.com>
3744
3745 [BZ# 23844]
3746 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3747 tst-rwlock-trywrlock-stall.
3748 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3749 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3750 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3751 Set __wrphase_fute to 1 only if we started the write phase.
3752 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3753 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3754 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3755 * support/xpthread_rwlock_destroy.c: New file.
3756 * support/xthread.h: Declare xpthread_rwlock_destroy.
3757
3758 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3759
3760 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3761 version to 4.0.2.
3762
3763 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3764
3765 [BZ #24051]
3766 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3767 * libio/fileops.c (_IO_new_file_underflow): Likewise
3768 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3769 * libio/putchar.c (putchar): Likewise.
3770 * libio/putchar_u.c (putchar_unlocked): Likewise.
3771 * libio/putwchar.c (putchar): Likewise.
3772 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3773 * libio/tst-bz24051.c: New test.
3774 * libio/Makefile (tests): Add tst-bz24051
3775
3776 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3777
3778 CVE-2019-9169
3779 regex: fix read overrun [BZ #24114]
3780 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3781 https://debbugs.gnu.org/34140
3782 * posix/regexec.c (proceed_next_node):
3783 Do not read past end of input buffer.
3784
3785 2019-01-31 Florian Weimer <fweimer@redhat.com>
3786
3787 [BZ #24059]
3788 * nss/nss_files/files-alias.c (get_next_alias): Handle
3789 continuation line without newline at the end.
3790 * nss/tst-nss-files-alias-truncated.c: New file.
3791 * nss/Makefile [$(build-shared)] (tests): Add
3792 tst-nss-files-alias-truncated.
3793 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3794 * support/namespace.h (struct support_chroot_configuration): Add
3795 aliases member.
3796 (struct support_chroot): Add path_aliases member.
3797 * support/support_chroot.c (support_chroot_create): Handle
3798 aliases.
3799 (support_chroot_free): Free path_aliases.
3800
3801 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3802
3803 * version.h (RELEASE): Set to "development".
3804 (VERSION): Set to "2.29.9000".
3805 * NEWS: Add section for 2.30.
3806
3807 * version.h (RELEASE): Set to "stable".
3808 (VERSION): Set to "2.29".
3809 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3810
3811 * NEWS: Add the list of bugs fixed in 2.29.
3812 * manual/contrib.texi: Update contributors list with some more
3813 names.
3814 * manual/install.texi: Update latest versions of packages
3815 tested.
3816 * INSTALL: Regenerated.
3817
3818 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3819
3820 * po/be.po: Update translations.
3821 * po/bg.po: Likewise.
3822 * po/ca.po: Likewise.
3823 * po/cs.po: Likewise.
3824 * po/da.po: Likewise.
3825 * po/de.po: Likewise.
3826 * po/el.po: Likewise.
3827 * po/eo.po: Likewise.
3828 * po/es.po: Likewise.
3829 * po/fi.po: Likewise.
3830 * po/fr.po: Likewise.
3831 * po/gl.po: Likewise.
3832 * po/hr.po: Likewise.
3833 * po/hu.po: Likewise.
3834 * po/ia.po: Likewise.
3835 * po/id.po: Likewise.
3836 * po/it.po: Likewise.
3837 * po/ja.po: Likewise.
3838 * po/ko.po: Likewise.
3839 * po/lt.po: Likewise.
3840 * po/nb.po: Likewise.
3841 * po/nl.po: Likewise.
3842 * po/pl.po: Likewise.
3843 * po/pt_BR.po: Likewise.
3844 * po/ru.po: Likewise.
3845 * po/rw.po: Likewise.
3846 * po/sk.po: Likewise.
3847 * po/sl.po: Likewise.
3848 * po/sv.po: Likewise.
3849 * po/tr.po: Likewise.
3850 * po/uk.po: Likewise.
3851 * po/vi.po: Likewise.
3852 * po/zh_CN.po: Likewise.
3853 * po/zh_TW.po: Likewise.
3854
3855 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3856
3857 [BZ #24130]
3858 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3859 of $f3 register on $y_is_neg path.
3860
3861 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3862
3863 [BZ #24110]
3864 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3865 sigaltstack.ss_flags.
3866
3867 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3868
3869 [BZ #23758]
3870 * manual/time.texi (strftime): Document "%Ey".
3871 * time/strftime_l.c (__strftime_internal): Set the default width
3872 padding with zero of "%Ey" to 2.
3873
3874 [BZ #24096]
3875 * manual/time.texi (strftime): Document "%EC" and "%EY".
3876 * time/Makefile (tests): Add tst-strftime2.
3877 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3878 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3879 override padding for "%Ey".
3880 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3881 "%Ey" in the subformat as if decorated with that flag.
3882 * time/tst-strftime2.c: New file.
3883
3884 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3885
3886 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3887 are not defined.
3888
3889 [BZ #24122]
3890 * elf/Makefile (tests): Add tst-audit13.
3891 (modules-names): Add tst-audit13mod1.
3892 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3893 rule.
3894 * elf/rtld.c (dl_main): Handle invalid audit module version.
3895 * elf/tst-audit13.c: New file.
3896 * elf/tst-audit13mod1.c: Likewise.
3897
3898 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3899
3900 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3901 returned by __hurd_at_flags.
3902 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3903 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3904 directly instead of __hurd_file_name_lookup.
3905
3906 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3907
3908 * scripts/build-many-glibcs.py (Context.checkout): Default
3909 binutils version to 2.32 branch.
3910
3911 2019-01-21 Florian Weimer <fweimer@redhat.com>
3912
3913 [BZ #20018]
3914 CVE-2016-10739
3915 resolv: Reject trailing characters in host names
3916 * include/arpa/inet.h (__inet_aton_exact): Declare.
3917 (inet_aton): Remove hidden prototype. No longer used internally.
3918 * nscd/gai.c (__inet_aton): Do not define.
3919 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3920 * nss/digits_dots.c (__inet_aton): Likewise.
3921 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3922 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3923 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3924 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3925 (tst-resolv-trailing): Likewise.
3926 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3927 libc.
3928 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3929 Make static. Add endp parameter.
3930 (__inet_aton_exact): New function.
3931 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3932 (__inet_addr): Call inet_aton_end.
3933 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3934 not just IPv6. Call __inet_aton_exact.
3935 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3936 (tests): Make const. Add additional test cases with trailing
3937 characters.
3938 (do_test): Use array_length.
3939 * resolv/tst-inet_aton_exact.c: New file.
3940 * resolv/tst-resolv-trailing.c: Likewise.
3941 * resolv/tst-resolv-nondecimal.c: Likewise.
3942 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3943
3944 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3945
3946 [BZ# 24097]
3947 CVE-2019-6488
3948 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3949 Clear the upper 32 bits of RSI register.
3950 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3951 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3952 and tst-size_t-wcsnlen.
3953 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3954 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3955
3956 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3957
3958 [BZ# 24097]
3959 CVE-2019-6488
3960 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3961 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3962 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3963 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3964 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3965
3966 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3967
3968 [BZ# 24097]
3969 CVE-2019-6488
3970 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3971 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3972 * sysdeps/x86_64/strcmp.S: Likewise.
3973 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3974 tst-size_t-strncmp and tst-size_t-wcsncmp.
3975 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3976 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3977 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3978
3979 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3980
3981 [BZ# 24097]
3982 CVE-2019-6488
3983 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3984 RDX_LP for length. Clear the upper 32 bits of RDX register.
3985 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3986 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3987 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3988 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3989
3990 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3991
3992 [BZ# 24097]
3993 CVE-2019-6488
3994 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3995 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3996 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3997 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3998
3999 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4000
4001 [BZ# 24097]
4002 CVE-2019-6488
4003 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
4004 length. Clear the upper 32 bits of RDX register.
4005 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
4006 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
4007 Likewise.
4008 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
4009 Likewise.
4010 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
4011 tst-size_t-wmemchr.
4012 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
4013
4014 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4015
4016 [BZ# 24097]
4017 CVE-2019-6488
4018 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
4019 length. Clear the upper 32 bits of RDX register.
4020 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
4021 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
4022 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
4023 tst-size_t-wmemcmp.
4024 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
4025 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
4026
4027 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
4028
4029 [BZ# 24097]
4030 CVE-2019-6488
4031 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
4032 upper 32 bits of RDX register.
4033 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
4034 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
4035 tst-size_t-wmemchr.
4036 * sysdeps/x86_64/x32/test-size_t.h: New file.
4037 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
4038 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
4039
4040 2019-01-18 Florian Weimer <fweimer@redhat.com>
4041
4042 [BZ #24112]
4043 resolv: Do not send queries for non-host-names in nss_dns.
4044 * resolv/nss_dns/dns-host.c (check_name): New function.
4045 (_nss_dns_gethostbyname2_r): Use it.
4046 (_nss_dns_gethostbyname_r): Likewise.
4047 (_nss_dns_gethostbyname4_r): Likewise.
4048
4049 2019-01-21 Florian Weimer <fweimer@redhat.com>
4050
4051 * resolv/inet_addr.c: Reformat to GNU style.
4052 (__inet_addr, __inet_aton): Update comment.
4053
4054 2019-01-18 Florian Weimer <fweimer@redhat.com>
4055
4056 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
4057 ("malloc: Use current (C11-style) atomics for fastbin access").
4058 This commit introduces a substantial performance regression on
4059 POWER and Aarch64.
4060 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
4061 (REMOVE_FB): Define.
4062 (_int_malloc): Use it and reindent.
4063 (_int_free): Use CAS loop with
4064 catomic_compare_and_exchange_val_rel.
4065 (malloc_consolidate): Use atomic_exchange_acq.
4066
4067
4068 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
4069
4070 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
4071 -Wl,-z,now.
4072 (LDFLAGS-tst-minsigstksz-2): Likewise.
4073 (LDFLAGS-tst-minsigstksz-3): Likewise.
4074 (LDFLAGS-tst-minsigstksz-3a): Likewise.
4075 (LDFLAGS-tst-minsigstksz-4): Likewise.
4076
4077 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
4078
4079 * manual/time.texi (strftime): Fix the wording to "alternative" rather
4080 than "alternate".
4081
4082 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
4083
4084 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
4085
4086 2019-01-16 Zack Weinberg <zackw@panix.com>
4087
4088 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
4089 (xget_sigstack_location): New test support functions.
4090 * support/xsigstack.c: New file, implementing them.
4091 * support/tst-xsigstack.c: New test for them.
4092 * support/Makefile: Update.
4093
4094 * signal/tst-minsigstksz-1.c
4095 * signal/tst-minsigstksz-2.c
4096 * signal/tst-minsigstksz-3.c
4097 * signal/tst-minsigstksz-3a.c
4098 * signal/tst-minsigstksz-4.c: New tests.
4099 * signal/Makefile: Run them.
4100
4101 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
4102
4103 * po/libc.pot: Regenerate.
4104
4105 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4106
4107 * math/libm-test-fma.inc (fma_test_data): Set
4108 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
4109
4110 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4111
4112 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
4113 (do_test): Changed __vector __int128_t to __vector unsigned int.
4114
4115 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4116
4117 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4118 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
4119 stpcpy-avx2 and stpncpy-avx2.
4120 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
4121 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
4122 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
4123 and __stpncpy_avx2.
4124 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
4125 ifunc-strcpy.h}: rename header for a more generic name.
4126 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4127 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4128 AVX unaligned load is fast and vzeroupper is preferred.
4129 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4130 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4131 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4132 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4133 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4134 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4135
4136 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4137
4138 * argp/argp-help.c: Fix typo in comment.
4139 * misc/sys/cdefs.h: Likewise.
4140 * posix/regexec.c (sift_states_iter_mb): Likewise.
4141 * socket/sockatmark.c: Likewise.
4142 * socket/sys/socket.h: Likewise.
4143 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4144 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4145 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4146 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4147 * sysdeps/unix/sockatmark.c: Likewise.
4148 * time/strptime_l.c: Likewise.
4149
4150 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4151
4152 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4153 missing space after the cast of "_NL_CURRENT".
4154
4155 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4156
4157 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4158 ifdef to fix read of VSCR.
4159 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4160 tst-ucontext-ppc64-vscr.c to test list.
4161 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4162
4163 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4164
4165 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4166 fall-through.
4167
4168 2019-01-09 Jim Wilson <jimw@sifive.com>
4169
4170 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4171
4172 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4173
4174 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4175 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4176 __memcpy_falkor for ares.
4177 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4178 Add new define.
4179 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4180 Add ares cpu.
4181
4182 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4183
4184 [BZ #24066]
4185 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4186 4_FP_W_TYPEs are used for IEEE quad precision.
4187 * soft-fp/extendhftf2.c: Likewise.
4188 * soft-fp/extendsftf2.c: Likewise.
4189 * soft-fp/extendxftf2.c: Likewise.
4190 * soft-fp/trunctfdf2.c: Likewise.
4191 * soft-fp/trunctfhf2.c: Likewise.
4192 * soft-fp/trunctfsf2.c: Likewise.
4193 * soft-fp/trunctfxf2.c: Likewise.
4194 * sysdeps/alpha/ots_cvttx.c: Likewise.
4195 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4196 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4197 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4198 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4199 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4200 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4201 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4202 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4203 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4204 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4205 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4206 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4207 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4208 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4209 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4210 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4211 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4212
4213 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4214
4215 [BZ #24024]
4216 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4217 code with -fmath-errno.
4218 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4219 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4220 * string/test-strerror-errno.c: New file.
4221
4222 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4223
4224 [BZ #24046]
4225 * localedata/locales/en_US (date_fmt): Add, set to
4226 "%a %d %b %Y %r %Z".
4227
4228 2019-01-07 Florian Weimer <fweimer@redhat.com>
4229
4230 [BZ #24063]
4231 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4232 instead of @var{errno}.
4233 (Parsing of Integers): Likewise.
4234 (Parsing of Floats): Likewise.
4235 * manual/filesys.texi (Working with Directory Trees): Likewise.
4236 (Temporary Files): Likewise.
4237 * manual/job.texi (Terminal Access Functions): Likewise.
4238 * manual/llio.texi (Synchronizing I/O): Likewise.
4239 * manual/math.texi (SVID Random): Likewise.
4240 * manual/message.texi (The catgets Functions): Likewise.
4241 (Translation with gettext): Likewise.
4242 (Locating gettext catalog): Likewise.
4243 (Charset conversion in gettext): Likewise.
4244 * manual/nss.texi (NSS Module Function Internals): Likewise.
4245 * manual/search.texi (Hash Search Function): Likewise.
4246 * manual/setjmp.texi (System V contexts): Likewise.
4247 * manual/time.texi (Sleeping): Likewise.
4248 * manual/users.texi (Lookup User): Likewise.
4249 (Lookup Group): Likewise.
4250
4251 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4252
4253 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4254 fix typo.
4255
4256 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4257
4258 [BZ #19444]
4259 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4260 __builtin_unreachable for default case in switch.
4261 (__ieee754_yn): Likewise.
4262 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4263 (__ieee754_ynl): Likewise.
4264 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4265 (__ieee754_ynl): Likewise.
4266 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4267 (__ieee754_ynl): Likewise.
4268
4269 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4270
4271 * manual/maint.texi: Use @{ and @}.
4272
4273 2019-01-04 Florian Weimer <fweimer@redhat.com>
4274
4275 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4276 function.
4277 (do_in_chroot_1): Call it.
4278 (run_chroot_tests):
4279 Improve error reporting in case it is not possible to create a
4280 collision for the PTY name required by the test.
4281
4282 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4283
4284 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4285 lll_wait_tid with timeout.
4286 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4287 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4288 futex_reltimed_wait_cancelable for cancelabla mode.
4289 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4290 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4291 macros.
4292 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4293 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4294 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4295 SYSCALL_CANCEL_NCS): New macro.
4296 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4297 (lll_timedwait_tid): Remove macro.
4298 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4299 Likewise.
4300 (lll_timedwait_tid): Likewise.
4301 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4302 Likewise.
4303 (lll_timedwait_tid): Likewise.
4304 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4305 Likewise.
4306 (lll_timedwait_tid): Likewise.
4307 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4308 Use INTERNAL_SYSCALL_CANCEL.
4309 * sysdeps/unix/sysv/linux/futex-internal.h
4310 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4311 instead of __pthread_{enable,disable}_asynccancel.
4312 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4313 (lll_futex_wait_cancel): New macro.
4314
4315 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4316 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4317
4318 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4319 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4320
4321 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4322 in backtrace analysis.
4323 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4324 side-effects.
4325 (tf_send): Likewise.
4326
4327 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4328 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4329 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4330 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4331 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4332 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4333 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4334 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4335 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4336 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4337 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4338 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4339 Likewise.
4340 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4341 tst-cancel-wrappers.sh.
4342 (generated): Remove tst-cancel-wrappers.out.
4343 (tst-cancel-wrappers.out): Remove rule.
4344 * nptl/tst-cancel-wrappers.sh: Remove file.
4345
4346 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4347
4348 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4349 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4350 Update.
4351
4352 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4353
4354 [BZ #23640]
4355 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4356 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4357 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4358 close-on-exec reset for adddup2 file action.
4359 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4360
4361 2019-01-03 Zack Weinberg <zackw@panix.com>
4362
4363 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4364 parameter. Only use deprecated scanf when __USE_GNU is defined
4365 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4366 than 201103L, whichever is relevant for the language being compiled.
4367
4368 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4369 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4370 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4371 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4372 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4373
4374 * libio/iovsscanf.c
4375 * libio/fwscanf.c
4376 * libio/iovswscanf.c
4377 * libio/swscanf.c
4378 * libio/vscanf.c
4379 * libio/vwscanf.c
4380 * libio/wscanf.c
4381 * stdio-common/fscanf.c
4382 * stdio-common/scanf.c
4383 * stdio-common/vfscanf.c
4384 * stdio-common/vfwscanf.c
4385 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4386 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4387 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4388 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4389 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4390 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4391 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4392 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4393 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4394 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4395 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4396 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4397 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4398 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4399 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4400
4401 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4402 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4403 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4404 not sscanf.
4405 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4406 with a preprocessor macro.
4407
4408 * stdio-common/bug21.c, stdio-common/scanf14.c:
4409 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4410 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4411 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4412 to xscanf, xfscanf, xsscanf.
4413
4414 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4415 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4416 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4417 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4418 xfscanf, xsscanf.
4419 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4420 override feature selection macros or provide definitions of u_char etc.
4421 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4422 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4423 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4424 with -std=gnu89.
4425
4426 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4427
4428 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4429 bits/termios-misc.h.
4430 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4431 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4432 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4433 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4434 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4435 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4436
4437 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4438 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4439 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4440 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4441 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4442 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4443 termios-misc.h.
4444 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4445 (sysdep_headers): Add termios-misc.h.
4446
4447 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4448 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4449 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4450
4451 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4452 termios-tcflow.h.
4453 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4454 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4455 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4456 TCSAFLUSH): Move to termios-tcflow.h.
4457 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4458 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4459 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4460 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4461
4462 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4463 termios-c_lflag.h.
4464 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4465 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4466 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4467 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4468 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4469 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4470 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4471 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4472 Likewise.
4473 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4474 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4475 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4476 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4477
4478 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4479 termios-c_cflag.h.
4480 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4481 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4482 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4483 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4484 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4485 termios-c_cflag.h.
4486 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4487 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4488 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4489 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4490
4491 [BZ #23783]
4492 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4493 termios-baud.h.
4494 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4495 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4496 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4497 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4498 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4499 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4500 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4501 __MAX_BAUD): Move to termios-baud.h.
4502 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4503 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4504 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4505 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4506 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4507
4508 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4509 termios-c_oflag.h.
4510 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4511 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4512 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4513 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4514 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4515 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4516 termios-c_oflag.h.
4517 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4518 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4519 FFR1): Likewise.
4520 [USE_MISC] (XTABS): Likewise.
4521 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4522 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4523 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4524 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4525
4526 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4527 termios-c_iflag.h.
4528 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4529 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4530 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4531 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4532 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4533 IUTF8): Move to termios-c_iflag.h.
4534 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4535 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4536 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4537 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4538
4539 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4540 termios-cc.h.
4541 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4542 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4543 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4544 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4545 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4546 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4547 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4548 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4549 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4550 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4551 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4552 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4553
4554 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4555 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4556 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4557 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4558 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4559 termios-struct.h.
4560 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4561 termios-struct.h.
4562 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4563 Likewise.
4564 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4565 Likewise.
4566 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4567 Likewise.
4568 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4569 Likewise.
4570 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4571 _HAVE_C_OSPEED): Define.
4572 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4573 _HAVE_C_OSPEED): Likewise.
4574 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4575 _HAVE_C_OSPEED): Likewise.
4576 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4577 (cfsetospeed): Check for define value instead of existence.
4578 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4579 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4580 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4581 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4582 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4583
4584 [BZ #17783]
4585 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4586 Define.
4587 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4588 (TIOCSER_TEMT): Likewise.
4589 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4590 (TEOCSER_TEMT): Likewise.
4591
4592 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4593
4594 [BZ #24011]
4595 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4596
4597 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4598
4599 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4600
4601 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4602
4603 * sysdeps/htl/pt-barrierattr-setpshared.c
4604 (pthread_barrierattr_setpshared): Add stub warning.
4605 * sysdeps/htl/pt-condattr-setpshared.c
4606 (pthread_condattr_setpshared): Likewise.
4607 * sysdeps/htl/pt-mutexattr-setpshared.c
4608 (pthread_mutexattr_setpshared): Likewise.
4609 * sysdeps/htl/pt-rwlockattr-setpshared.c
4610 (pthread_rwlockattr_setpshared): Likewise.
4611 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4612 (pthread_mutexattr_setpshared): Likewise.
4613
4614 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4615
4616 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4617 constants to match with Linux 4.20.
4618
4619 * sysdeps/mips/mips32/libm-test-ulps: Update.
4620 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4621
4622 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4623
4624 [BZ #24034]
4625 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4626 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4627 than __typeof (...) for the a_ptr variable.
4628
4629 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4630
4631 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4632 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4633 * libio/Makefile (tests): Add tst-sprintf-ub and
4634 tst-sprintf-chk-ub.
4635 (CFLAGS-tst-sprintf-ub.c): New variable.
4636 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4637 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4638 destination buffer and check for overflows in fortified mode.
4639 * libio/libioP.h (PRINTF_CHK): New macro.
4640 * libio/tst-sprintf-chk-ub.c: New file.
4641 * libio/tst-sprintf-ub.c: Likewise.
4642
4643 2019-01-02 Florian Weimer <fweimer@redhat.com>
4644
4645 [BZ #24018]
4646 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4647 failure.
4648
4649 2019-01-02 Florian Weimer <fweimer@redhat.com>
4650
4651 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4652
4653 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4654
4655 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4656 macro.
4657
4658 * sysdeps/unix/sysv/linux/netpacket/packet.h
4659 (PACKET_IGNORE_OUTGOING): New macro.
4660
4661 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4662 macro.
4663
4664 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4665 version to 4.20.
4666 (riscv_flush_icache): New syscall.
4667
4668 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4669 trailing whitespace removed.
4670 * scripts/config.guess: Update to version 2019-01-01.
4671 * scripts/config.sub: Update to version 2019-01-01.
4672 * scripts/move-if-change: Update from gnulib.
4673
4674 * NEWS: Update copyright dates.
4675 * catgets/gencat.c (print_version): Likewise.
4676 * csu/version.c (banner): Likewise.
4677 * debug/catchsegv.sh: Likewise.
4678 * debug/pcprofiledump.c (print_version): Likewise.
4679 * debug/xtrace.sh (do_version): Likewise.
4680 * elf/ldconfig.c (print_version): Likewise.
4681 * elf/ldd.bash.in: Likewise.
4682 * elf/pldd.c (print_version): Likewise.
4683 * elf/sotruss.sh: Likewise.
4684 * elf/sprof.c (print_version): Likewise.
4685 * iconv/iconv_prog.c (print_version): Likewise.
4686 * iconv/iconvconfig.c (print_version): Likewise.
4687 * locale/programs/locale.c (print_version): Likewise.
4688 * locale/programs/localedef.c (print_version): Likewise.
4689 * login/programs/pt_chown.c (print_version): Likewise.
4690 * malloc/memusage.sh (do_version): Likewise.
4691 * malloc/memusagestat.c (print_version): Likewise.
4692 * malloc/mtrace.pl: Likewise.
4693 * manual/libc.texinfo: Likewise.
4694 * nptl/version.c (banner): Likewise.
4695 * nscd/nscd.c (print_version): Likewise.
4696 * nss/getent.c (print_version): Likewise.
4697 * nss/makedb.c (print_version): Likewise.
4698 * posix/getconf.c (main): Likewise.
4699 * scripts/test-installation.pl: Likewise.
4700 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4701
4702 * All files with FSF copyright notices: Update copyright dates
4703 using scripts/update-copyrights.
4704 * locale/programs/charmap-kw.h: Regenerated.
4705 * locale/programs/locfile-kw.h: Likewise.
4706
4707 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4708
4709 * timezone/zdump.c: Update from tzcode 2018i.
4710 * timezone/zic.c: Likewise.
4711
4712 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4713
4714 regex: improve Gnulib port to AIX
4715 From the glibc point of view, this removes duplicate macro
4716 definitions and is obviously safe.
4717 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4718 * posix/regex_internal.h:
4719 (__attribute__, __attribute_warn_unused_result__):
4720 Remove; already defined elsewhere.
4721
4722 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4723
4724 [BZ #24027]
4725 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4726 copying operation. (ncopies had the wrong type, resulting in an
4727 integer wraparound and too few elements being copied.)
4728
4729 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4730
4731 [BZ #24022]
4732 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4733 <asm/syscalls.h> exists with __has_include__ before including it.
4734
4735 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4736
4737 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4738 version to 4.20.
4739
4740 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4741
4742 * hurd/lookup-retry: Include <unistd.h>.
4743 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4744 Release it on return. Handle "pid" magical lookup retry.
4745
4746 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4747
4748 [BZ #10496]
4749 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4750 (t_fmt_ampm): Likewise.
4751 * localedata/locales/aa_ER (t_fmt): Likewise.
4752 (t_fmt_ampm): Likewise.
4753 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4754 (t_fmt_ampm): Likewise.
4755 * localedata/locales/aa_ET (t_fmt): Likewise.
4756 (t_fmt_ampm): Likewise.
4757 * localedata/locales/am_ET (t_fmt): Likewise.
4758 (t_fmt_ampm): Likewise.
4759 * localedata/locales/byn_ER (t_fmt): Likewise.
4760 (t_fmt_ampm): Likewise.
4761 * localedata/locales/om_ET (t_fmt): Likewise.
4762 (t_fmt_ampm): Likewise.
4763 * localedata/locales/sid_ET (t_fmt): Likewise.
4764 (t_fmt_ampm): Likewise.
4765 * localedata/locales/so_DJ (t_fmt): Likewise.
4766 (t_fmt_ampm): Likewise.
4767 * localedata/locales/so_ET (t_fmt): Likewise.
4768 (t_fmt_ampm): Likewise.
4769 * localedata/locales/so_SO (t_fmt): Likewise.
4770 (t_fmt_ampm): Likewise.
4771 * localedata/locales/ti_ER (t_fmt): Likewise.
4772 (t_fmt_ampm): Likewise.
4773 * localedata/locales/ti_ET (t_fmt): Likewise.
4774 (t_fmt_ampm): Likewise.
4775 * localedata/locales/tig_ER (t_fmt): Likewise.
4776 (t_fmt_ampm): Likewise.
4777 * localedata/locales/wal_ET (t_fmt): Likewise.
4778 (t_fmt_ampm): Likewise.
4779
4780 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4781 * localedata/locales/ar_IN (t_fmt): Likewise.
4782 * localedata/locales/bhb_IN (t_fmt): Likewise.
4783 * localedata/locales/bho_IN (t_fmt): Likewise.
4784 * localedata/locales/bi_VU (t_fmt): Likewise.
4785 * localedata/locales/bn_BD (t_fmt): Likewise.
4786 * localedata/locales/bn_IN (t_fmt): Likewise.
4787 * localedata/locales/brx_IN (t_fmt): Likewise.
4788 * localedata/locales/doi_IN (t_fmt): Likewise.
4789 * localedata/locales/en_HK (t_fmt): Likewise.
4790 (t_fmt_ampm): Likewise.
4791 * localedata/locales/en_IN (t_fmt): Likewise.
4792 * localedata/locales/en_PH (t_fmt): Likewise.
4793 * localedata/locales/gu_IN (t_fmt): Likewise.
4794 * localedata/locales/hi_IN (t_fmt): Likewise.
4795 * localedata/locales/hif_FJ (t_fmt): Likewise.
4796 * localedata/locales/hne_IN (t_fmt): Likewise.
4797 * localedata/locales/kn_IN (t_fmt): Likewise.
4798 * localedata/locales/kok_IN (t_fmt): Likewise.
4799 * localedata/locales/ks_IN (t_fmt): Likewise.
4800 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4801 * localedata/locales/mag_IN (t_fmt): Likewise.
4802 * localedata/locales/mai_IN (t_fmt): Likewise.
4803 * localedata/locales/mjw_IN (t_fmt): Likewise.
4804 * localedata/locales/ml_IN (t_fmt): Likewise.
4805 * localedata/locales/mni_IN (t_fmt): Likewise.
4806 * localedata/locales/mr_IN (t_fmt): Likewise.
4807 * localedata/locales/ms_MY (t_fmt): Likewise.
4808 * localedata/locales/pa_IN (t_fmt): Likewise.
4809 * localedata/locales/raj_IN (t_fmt): Likewise.
4810 * localedata/locales/sa_IN (t_fmt): Likewise.
4811 * localedata/locales/sat_IN (t_fmt): Likewise.
4812 * localedata/locales/sd_IN (t_fmt): Likewise.
4813 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4814 * localedata/locales/tcy_IN (t_fmt): Likewise.
4815 * localedata/locales/the_NP (t_fmt): Likewise.
4816 * localedata/locales/to_TO (t_fmt): Likewise.
4817 * localedata/locales/ur_IN (t_fmt): Likewise.
4818
4819 * localedata/locales/hif_FJ (d_t_fmt): Set to
4820 "%A %d %b %Y %I:%M:%S %p".
4821 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4822
4823 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4824 * localedata/locales/ar_BH (t_fmt): Likewise.
4825 * localedata/locales/ar_DZ (t_fmt): Likewise.
4826 * localedata/locales/ar_EG (t_fmt): Likewise.
4827 * localedata/locales/ar_IQ (t_fmt): Likewise.
4828 * localedata/locales/ar_JO (t_fmt): Likewise.
4829 * localedata/locales/ar_KW (t_fmt): Likewise.
4830 * localedata/locales/ar_LB (t_fmt): Likewise.
4831 * localedata/locales/ar_LY (t_fmt): Likewise.
4832 * localedata/locales/ar_OM (t_fmt): Likewise.
4833 * localedata/locales/ar_QA (t_fmt): Likewise.
4834 * localedata/locales/ar_SD (t_fmt): Likewise.
4835 * localedata/locales/ar_SS (t_fmt): Likewise.
4836 * localedata/locales/ar_SY (t_fmt): Likewise.
4837 * localedata/locales/ar_TN (t_fmt): Likewise.
4838 * localedata/locales/ar_YE (t_fmt): Likewise.
4839
4840 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4841 (t_fmt_ampm): Likewise.
4842 * localedata/locales/gez_ET (t_fmt): Likewise.
4843 (t_fmt_ampm): Likewise.
4844
4845 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4846 (t_fmt_ampm): Likewise.
4847 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4848
4849 * localedata/locales/zh_HK (t_fmt):
4850 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4851
4852 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4853 because this locale does not use the 12-hour clock.
4854 (t_fmt): Set to "%Z %H:%M:%S".
4855 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4856
4857 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4858 because this locale does not use the 12-hour clock.
4859 (t_fmt): Set to "%H:%M:%S %Z".
4860 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4861
4862 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4863 because this locale does not use the 12-hour clock.
4864 (t_fmt): Set to "%T".
4865 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4866 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4867
4868 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4869 because this locale does not use the 12-hour clock.
4870 (t_fmt): Set to "%H:%M:%S %Z".
4871 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4872
4873 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4874 because this locale does not use the 12-hour clock.
4875 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4876 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4877
4878 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4879
4880 [BZ #10496]
4881 [BZ #23724]
4882 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4883 (t_fmt_ampm): Likewise.
4884 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4885 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4886 (d_fmt): Set to "%-d.%-m.%y".
4887
4888 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4889
4890 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4891 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4892 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4893 Likewise.
4894 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4895 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4896 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4897 function.
4898 * support/blob_repeat.c (check_mul_overflow_size_t,
4899 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4900
4901 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4902
4903 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4904
4905 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4906
4907 regex: simplify Gnulib port
4908 This simplifies the code, by removing stuff intended for porting
4909 to Gnulib but no longer needed there.
4910 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4911 uses of libc_hidden_def, weak_alias.
4912 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4913 _Restrict_ except for public-facing headers.
4914 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4915 Remove; already defined elsewhere.
4916 * posix/regex.c, posix/regex_internal.h:
4917 Use __GNUC_PREREQ instead of rolling our own.
4918 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4919
4920 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4921
4922 * benchtests/bench-strlen.c (generic_strlen): New function.
4923 (memchr_strlen): New function.
4924
4925 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4926
4927 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4928 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4929 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4930
4931 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4932
4933 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4934
4935 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4936
4937 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4938 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4939 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4940 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4941 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4942 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4943 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4944
4945 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4946
4947 [BZ #24023]
4948 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4949 PLT reference in libc.so.
4950 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4951 _Q_lltoq and _Q_qtod PLT references in libc.so.
4952
4953 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4954
4955 * benchtests/bench-memchr.c: Cleanup defines.
4956 * benchtests/bench-memcmp.c: Likewise.
4957 * benchtests/bench-memset.c: Likewise.
4958 * benchtests/bench-memset-large.c: Likewise.
4959 * benchtests/bench-memset-walk.c: Likewise.
4960 * benchtests/bench-stpcpy.c: Likewise.
4961 * benchtests/bench-stpncpy.c: Likewise.
4962 * benchtests/bench-strcat.c: Likewise.
4963 * benchtests/bench-strchr.c: Likewise.
4964 * benchtests/bench-strcmp.c: Likewise.
4965 * benchtests/bench-strcpy.c: Likewise.
4966 * benchtests/bench-strcspn.c: Likewise.
4967 * benchtests/bench-string.h: Likewise.
4968 * benchtests/bench-strlen.c: Likewise.
4969 * benchtests/bench-strncat.c: Likewise.
4970 * benchtests/bench-strncmp.c: Likewise.
4971 * benchtests/bench-strncpy.c: Likewise.
4972 * benchtests/bench-strnlen.c: Likewise.
4973 * benchtests/bench-strpbrk.c: Likewise.
4974 * benchtests/bench-strrchr.c: Likewise.
4975 * benchtests/bench-strspn.c: Likewise.
4976
4977 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4978
4979 * stdlib/longlong.h: Update from GCC.
4980
4981 [BZ #23993]
4982 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4983 * configure: Regenerated.
4984 * manual/install.texi (Tools for Compilation): Update minimum GCC
4985 version.
4986 * INSTALL: Regenerated.
4987
4988 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4989
4990 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4991
4992 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4993
4994 * malloc/malloc.c (mremap_chunk): Additional checks.
4995
4996 2018-12-21 Mao Han <han_mao@c-sky.com>
4997
4998 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4999 * scripts/build-many-glibcs.py: Add C-SKY targets.
5000 * sysdeps/csky/Implies: New file.
5001 * sysdeps/csky/Makefile: Likewise.
5002 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
5003 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
5004 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
5005 * sysdeps/csky/abiv2/memcmp.S: Likewise.
5006 * sysdeps/csky/abiv2/memcpy.S: Likewise.
5007 * sysdeps/csky/abiv2/memmove.S: Likewise.
5008 * sysdeps/csky/abiv2/memset.S: Likewise.
5009 * sysdeps/csky/abiv2/setjmp.S: Likewise.
5010 * sysdeps/csky/abiv2/start.S: Likewise.
5011 * sysdeps/csky/abiv2/strcmp.S: Likewise.
5012 * sysdeps/csky/abiv2/strcpy.S: Likewise.
5013 * sysdeps/csky/abiv2/strlen.S: Likewise.
5014 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
5015 * sysdeps/csky/abort-instr.h: Likewise.
5016 * sysdeps/csky/atomic-machine.h: Likewise.
5017 * sysdeps/csky/bits/endian.h: Likewise.
5018 * sysdeps/csky/bits/fenv.h: Likewise.
5019 * sysdeps/csky/bits/link.h: Likewise.
5020 * sysdeps/csky/bits/setjmp.h: Likewise.
5021 * sysdeps/csky/bsd-_setjmp.S: Likewise.
5022 * sysdeps/csky/bsd-setjmp.S: Likewise.
5023 * sysdeps/csky/configure: Likewise.
5024 * sysdeps/csky/configure.ac: Likewise.
5025 * sysdeps/csky/dl-machine.h: Likewise.
5026 * sysdeps/csky/dl-procinfo.c: Likewise.
5027 * sysdeps/csky/dl-procinfo.h: Likewise.
5028 * sysdeps/csky/dl-sysdep.h: Likewise.
5029 * sysdeps/csky/dl-tls.h: Likewise.
5030 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
5031 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
5032 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
5033 * sysdeps/csky/fpu/fegetenv.c: Likewise.
5034 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
5035 * sysdeps/csky/fpu/fegetmode.c: Likewise.
5036 * sysdeps/csky/fpu/fegetround.c: Likewise.
5037 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
5038 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
5039 * sysdeps/csky/fpu/fenv_private.h: Likewise.
5040 * sysdeps/csky/fpu/fesetenv.c: Likewise.
5041 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
5042 * sysdeps/csky/fpu/fesetmode.c: Likewise.
5043 * sysdeps/csky/fpu/fesetround.c: Likewise.
5044 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
5045 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
5046 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
5047 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
5048 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
5049 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
5050 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
5051 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
5052 * sysdeps/csky/fpu_control.h: Likewise.
5053 * sysdeps/csky/gccframe.h: Likewise.
5054 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
5055 * sysdeps/csky/ldsodefs.h: Likewise.
5056 * sysdeps/csky/libc-tls.c: Likewise.
5057 * sysdeps/csky/linkmap.h: Likewise.
5058 * sysdeps/csky/machine-gmon.h: Likewise.
5059 * sysdeps/csky/memusage.h: Likewise.
5060 * sysdeps/csky/nofpu/Implies: Likewise.
5061 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
5062 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
5063 * sysdeps/csky/nptl/Makefile: Likewise.
5064 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
5065 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
5066 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
5067 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
5068 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
5069 * sysdeps/csky/nptl/tls.h: Likewise.
5070 * sysdeps/csky/preconfigure: Likewise.
5071 * sysdeps/csky/sfp-machine.h: Likewise.
5072 * sysdeps/csky/sotruss-lib.c: Likewise.
5073 * sysdeps/csky/stackinfo.h: Likewise.
5074 * sysdeps/csky/sysdep.h: Likewise.
5075 * sysdeps/csky/tininess.h: Likewise.
5076 * sysdeps/csky/tst-audit.h: Likewise.
5077 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
5078 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
5079 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
5080 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
5081 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
5082 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
5083 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
5084 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
5085 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
5086 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
5087 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
5088 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
5089 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
5090 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
5091 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
5092 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
5093 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
5094 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
5095 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
5096 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
5097 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
5098 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
5099 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
5100 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
5101 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
5102 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
5103 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
5104 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
5105 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
5106 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
5107 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
5108 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
5109 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
5110 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
5111 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
5112 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
5113 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
5114 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
5115 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
5116 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
5117 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
5118 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
5119 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
5120 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
5121
5122 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5123
5124 * include/time.h (__difftime64): Add.
5125 * time/difftime.c (subtract): convert to 64-bit time.
5126 * time/difftime.c (__difftime64): Add.
5127 * time/difftime.c (__difftime): Wrap around __difftime64.
5128
5129 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5130
5131 * manual/examples/add.c: Remove redundant "if not".
5132 * manual/examples/argp-ex1.c: Likewise.
5133 * manual/examples/argp-ex2.c: Likewise.
5134 * manual/examples/argp-ex3.c: Likewise.
5135 * manual/examples/argp-ex4.c: Likewise.
5136 * manual/examples/atexit.c: Likewise.
5137 * manual/examples/db.c: Likewise.
5138 * manual/examples/dir.c: Likewise.
5139 * manual/examples/dir2.c: Likewise.
5140 * manual/examples/execinfo.c: Likewise.
5141 * manual/examples/filecli.c: Likewise.
5142 * manual/examples/filesrv.c: Likewise.
5143 * manual/examples/fmtmsgexpl.c: Likewise.
5144 * manual/examples/genpass.c: Likewise.
5145 * manual/examples/inetcli.c: Likewise.
5146 * manual/examples/inetsrv.c: Likewise.
5147 * manual/examples/isockad.c: Likewise.
5148 * manual/examples/longopt.c: Likewise.
5149 * manual/examples/memopen.c: Likewise.
5150 * manual/examples/memstrm.c: Likewise.
5151 * manual/examples/mkdirent.c: Likewise.
5152 * manual/examples/mkfsock.c: Likewise.
5153 * manual/examples/mkisock.c: Likewise.
5154 * manual/examples/mygetpass.c: Likewise.
5155 * manual/examples/pipe.c: Likewise.
5156 * manual/examples/popen.c: Likewise.
5157 * manual/examples/rprintf.c: Likewise.
5158 * manual/examples/search.c: Likewise.
5159 * manual/examples/select.c: Likewise.
5160 * manual/examples/setjmp.c: Likewise.
5161 * manual/examples/sigh1.c: Likewise.
5162 * manual/examples/sigusr.c: Likewise.
5163 * manual/examples/stpcpy.c: Likewise.
5164 * manual/examples/strdupa.c: Likewise.
5165 * manual/examples/strftim.c: Likewise.
5166 * manual/examples/subopt.c: Likewise.
5167 * manual/examples/swapcontext.c: Likewise.
5168 * manual/examples/termios.c: Likewise.
5169 * manual/examples/testopt.c: Likewise.
5170 * manual/examples/testpass.c: Likewise.
5171 * manual/examples/timeval_subtract.c: Likewise.
5172
5173 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5174
5175 * sysdeps/x86/fpu/math_private.h: New file.
5176 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5177
5178 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5179 definition.
5180 (cosh): Likewise.
5181 (tanh): Likewise.
5182
5183 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5184
5185 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5186 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5187 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5188 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5189 fields.
5190 (_dl_show_auxv): Give a special treatment to
5191 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5192 and AT_L3_CACHEGEOMETRY.
5193 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5194 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5195 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5196 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5197
5198 2018-12-19 Andreas Schwab <schwab@suse.de>
5199
5200 * nscd/connections.c (check_use): Don't abort on invalid len.
5201
5202 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5203
5204 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5205 values in the 64bit value cases.
5206
5207 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5208
5209 * include/time.h
5210 (__ctime64_r): Add.
5211 * time/ctime_r.c
5212 (__ctime64_r): Add.
5213 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5214
5215 * include/time.h
5216 (__ctime64): Add.
5217 * time/gmtime.c
5218 (__ctime64): Add.
5219 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5220
5221 * include/time.h
5222 (__gmtime64_r): Add.
5223 * time/gmtime.c
5224 (__gmtime64_r): Add.
5225 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5226
5227 * include/time.h
5228 (__gmtime64): Add.
5229 * time/gmtime.c
5230 (__gmtime64): Add.
5231 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5232
5233 * include/time.h
5234 (__localtime64_r): Add.
5235 * time/localtime.c
5236 (__localtime64_r): Add.
5237 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5238
5239 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5240
5241 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5242 kernel_sigction definition.
5243
5244 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5245
5246 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5247
5248 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5249 __syscall_rt_sigaction.
5250 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5251 (kernel_sigaction): Use Linux generic defintion.
5252 (STUB): Define.
5253 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5254 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5255 (__syscall_rt_sigaction): Remove implementation.
5256 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5257 hidden.
5258 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5259 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5260 INTERNAL_SYSCALL): Remove definitions.
5261 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5262 action and signal set size.
5263 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5264 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5265
5266 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5267 James Clarke <jrtc27@jrtc27.com>
5268
5269 [BZ #23967]
5270 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5271 Define if SA_RESTORER is defined.
5272 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5273 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5274 already defined.
5275 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5276 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5277 definitions.
5278 (HAS_SA_RESTORER): Define.
5279 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5280 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5281 (HAS_SA_RESTORER): Define.
5282 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5283 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5284 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5285 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5286 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5287
5288 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5289
5290 * sysdeps/unix/sysv/linux/kernel-features.h
5291 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5292 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5293 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5294 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5295 (__ASSUME_ST_INO_64_BIT): Likewise.
5296 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5297 <kernel-features.h>.
5298 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5299 Remove conditional code.
5300 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5301 <kernel-features.h>.
5302 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5303 Remove conditional code.
5304 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5305 <kernel-features.h>.
5306 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5307 Remove conditional code.
5308 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5309 <kernel-features.h>.
5310 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5311 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5312
5313 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5314
5315 * sysdeps/s390/multiarch/ifunc-resolve.h
5316 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5317 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5318 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5319 Delete macro definition.
5320 (s390_libc_ifunc_init): Rename to
5321 s390_libc_ifunc_expr_stfle_init.
5322 * sysdeps/s390/bzero: Use
5323 s390_libc_ifunc_expr_stfle_init instead of
5324 s390_libc_ifunc_init.
5325 * sysdeps/s390/memcmp.c: Likewise.
5326 * sysdeps/s390/memcpy.c: Likewise.
5327 * sysdeps/s390/mempcpy.c: Likewise.
5328 * sysdeps/s390/memset.c: Likewise.
5329
5330 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5331
5332 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5333 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5334
5335 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5336
5337 * sysdeps/s390/multiarch/Makefile
5338 (sysdep_routines): Remove wmemcmp variants.
5339 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5340 * sysdeps/s390/multiarch/ifunc-impl-list.c
5341 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5342 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5343 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5344 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5345 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5346 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5347 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5348 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5349
5350 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5351
5352 * sysdeps/s390/multiarch/Makefile
5353 (sysdep_routines): Remove wmemset variants.
5354 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5355 * sysdeps/s390/multiarch/ifunc-impl-list.c
5356 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5357 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5358 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5359 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5360 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5361 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5362 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5363 * sysdeps/s390/ifunc-wmemset.h: New file.
5364
5365 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5366
5367 * sysdeps/s390/multiarch/Makefile
5368 (sysdep_routines): Remove wmemchr variants.
5369 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5370 * sysdeps/s390/multiarch/ifunc-impl-list.c
5371 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5372 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5373 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5374 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5375 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5376 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5377 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5378 * sysdeps/s390/ifunc-wmemchr.h: New file.
5379
5380 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5381
5382 * sysdeps/s390/multiarch/Makefile
5383 (sysdep_routines): Remove wcscspn variants.
5384 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5385 * sysdeps/s390/multiarch/ifunc-impl-list.c
5386 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5387 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5388 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5389 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5390 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5391 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5392 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5393 * sysdeps/s390/ifunc-wcscspn.h: New file.
5394
5395 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5396
5397 * sysdeps/s390/multiarch/Makefile
5398 (sysdep_routines): Remove wcspbrk variants.
5399 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5400 * sysdeps/s390/multiarch/ifunc-impl-list.c
5401 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5402 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5403 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5404 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5405 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5406 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5407 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5408 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5409
5410 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5411
5412 * sysdeps/s390/multiarch/Makefile
5413 (sysdep_routines): Remove wcsspn variants.
5414 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5415 * sysdeps/s390/multiarch/ifunc-impl-list.c
5416 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5417 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5418 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5419 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5420 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5421 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5422 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5423 * sysdeps/s390/ifunc-wcsspn.h: New file.
5424
5425 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5426
5427 * sysdeps/s390/multiarch/Makefile
5428 (sysdep_routines): Remove wcsrchr variants.
5429 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5430 * sysdeps/s390/multiarch/ifunc-impl-list.c
5431 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5432 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5433 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5434 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5435 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5436 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5437 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5438 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5439
5440 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5441
5442 * sysdeps/s390/multiarch/Makefile
5443 (sysdep_routines): Remove wcschrnul variants.
5444 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5445 * sysdeps/s390/multiarch/ifunc-impl-list.c
5446 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5447 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5448 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5449 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5450 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5451 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5452 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5453 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5454
5455 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5456
5457 * sysdeps/s390/multiarch/Makefile
5458 (sysdep_routines): Remove wcschr variants.
5459 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5460 * sysdeps/s390/multiarch/ifunc-impl-list.c
5461 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5462 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5463 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5464 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5465 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5466 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5467 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5468 * sysdeps/s390/ifunc-wcschr.h: New file.
5469
5470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5471
5472 * sysdeps/s390/multiarch/Makefile
5473 (sysdep_routines): Remove wcsncmp variants.
5474 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5475 * sysdeps/s390/multiarch/ifunc-impl-list.c
5476 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5477 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5478 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5479 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5480 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5481 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5482 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5483 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5484
5485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5486
5487 * sysdeps/s390/multiarch/Makefile
5488 (sysdep_routines): Remove wcscmp variants.
5489 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5490 * sysdeps/s390/multiarch/ifunc-impl-list.c
5491 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5492 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5493 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5494 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5495 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5496 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5497 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5498 * sysdeps/s390/ifunc-wcscmp.h: New file.
5499
5500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5501
5502 * sysdeps/s390/multiarch/Makefile
5503 (sysdep_routines): Remove wcsncat variants.
5504 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5505 * sysdeps/s390/multiarch/ifunc-impl-list.c
5506 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5507 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5508 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5509 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5510 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5511 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5512 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5513 * sysdeps/s390/ifunc-wcsncat.h: New file.
5514
5515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5516
5517 * sysdeps/s390/multiarch/Makefile
5518 (sysdep_routines): Remove wcscat variants.
5519 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5520 * sysdeps/s390/multiarch/ifunc-impl-list.c
5521 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5522 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5523 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5524 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5525 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5526 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5527 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5528 * sysdeps/s390/ifunc-wcscat.h: New file.
5529
5530 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5531
5532 * sysdeps/s390/multiarch/Makefile
5533 (sysdep_routines): Remove wcpncpy variants.
5534 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5535 * sysdeps/s390/multiarch/ifunc-impl-list.c
5536 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5537 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5538 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5539 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5540 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5541 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5542 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5543 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5544
5545 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5546
5547 * sysdeps/s390/multiarch/Makefile
5548 (sysdep_routines): Remove wcsncpy variants.
5549 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5550 * sysdeps/s390/multiarch/ifunc-impl-list.c
5551 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5552 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5553 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5554 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5555 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5556 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5557 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5558 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5559
5560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5561
5562 * sysdeps/s390/multiarch/Makefile
5563 (sysdep_routines): Remove wcpcpy variants.
5564 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5565 * sysdeps/s390/multiarch/ifunc-impl-list.c
5566 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5567 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5568 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5569 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5570 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5571 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5572 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5573 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5574
5575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5576
5577 * sysdeps/s390/multiarch/Makefile
5578 (sysdep_routines): Remove wcscpy variants.
5579 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5580 * sysdeps/s390/multiarch/ifunc-impl-list.c
5581 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5582 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5583 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5584 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5585 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5586 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5587 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5588 * sysdeps/s390/ifunc-wcscpy.h: New file.
5589
5590 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5591
5592 * sysdeps/s390/multiarch/Makefile
5593 (sysdep_routines): Remove wcsnlen variants.
5594 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5595 * sysdeps/s390/multiarch/ifunc-impl-list.c
5596 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5597 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5598 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5599 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5600 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5601 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5602 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5603 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5604
5605 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5606
5607 * sysdeps/s390/multiarch/Makefile
5608 (sysdep_routines): Remove wcslen variants.
5609 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5610 * sysdeps/s390/multiarch/ifunc-impl-list.c
5611 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5612 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5613 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5614 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5615 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5616 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5617 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5618 * sysdeps/s390/ifunc-wcslen.h: New file.
5619
5620 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5621
5622 * sysdeps/s390/multiarch/Makefile
5623 (sysdep_routines): Remove memrchr variants.
5624 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5625 * sysdeps/s390/multiarch/ifunc-impl-list.c
5626 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5627 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5628 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5629 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5630 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5631 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5632 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5633 * sysdeps/s390/ifunc-memrchr.h: New file.
5634
5635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5636
5637 * sysdeps/s390/multiarch/Makefile
5638 (sysdep_routines): Remove memccpy variants.
5639 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5640 * sysdeps/s390/multiarch/ifunc-impl-list.c
5641 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5642 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5643 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5644 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5645 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5646 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5647 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5648 * sysdeps/s390/ifunc-memccpy.h: New file.
5649
5650 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5651
5652 * sysdeps/s390/multiarch/Makefile
5653 (sysdep_routines): Remove rawmemchr variants.
5654 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5655 * sysdeps/s390/multiarch/ifunc-impl-list.c
5656 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5657 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5658 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5659 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5660 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5661 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5662 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5663 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5664
5665 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5666
5667 * sysdeps/s390/multiarch/Makefile
5668 (sysdep_routines): Remove memchr variants.
5669 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5670 * sysdeps/s390/multiarch/ifunc-impl-list.c
5671 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5672 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5673 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5674 * sysdeps/s390/multiarch/memchr.c: Move to ...
5675 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5676 * sysdeps/s390/ifunc-memchr.h: New file.
5677 * sysdeps/s390/s390-64/memchr.S: Move to ...
5678 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5679 for 31/64bit and ifunc handling.
5680 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5681 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5682 * sysdeps/s390/s390-32/memchr.S: Likewise.
5683
5684 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5685
5686 * sysdeps/s390/multiarch/Makefile
5687 (sysdep_routines): Remove strcspn variants.
5688 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5689 * sysdeps/s390/multiarch/ifunc-impl-list.c
5690 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5691 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5692 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5693 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5694 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5695 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5696 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5697 * sysdeps/s390/ifunc-strcspn.h: New file.
5698
5699 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5700
5701 * sysdeps/s390/multiarch/Makefile
5702 (sysdep_routines): Remove strpbrk variants.
5703 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5704 * sysdeps/s390/multiarch/ifunc-impl-list.c
5705 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5706 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5707 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5708 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5709 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5710 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5711 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5712 * sysdeps/s390/ifunc-strpbrk.h: New file.
5713
5714 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5715
5716 * sysdeps/s390/multiarch/Makefile
5717 (sysdep_routines): Remove strspn variants.
5718 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5719 * sysdeps/s390/multiarch/ifunc-impl-list.c
5720 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5721 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5722 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5723 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5724 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5725 * sysdeps/s390/multiarch/strspn.c: Move to ...
5726 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5727 * sysdeps/s390/ifunc-strspn.h: New file.
5728
5729 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5730
5731 * sysdeps/s390/multiarch/Makefile
5732 (sysdep_routines): Remove strrchr variants.
5733 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5734 * sysdeps/s390/multiarch/ifunc-impl-list.c
5735 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5736 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5737 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5738 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5739 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5740 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5741 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5742 * sysdeps/s390/ifunc-strrchr.h: New file.
5743
5744 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5745
5746 * sysdeps/s390/multiarch/Makefile
5747 (sysdep_routines): Remove strchrnul variants.
5748 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5749 * sysdeps/s390/multiarch/ifunc-impl-list.c
5750 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5751 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5752 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5753 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5754 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5755 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5756 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5757 * sysdeps/s390/ifunc-strchrnul.h: New file.
5758
5759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5760
5761 * sysdeps/s390/multiarch/Makefile
5762 (sysdep_routines): Remove strchr variants.
5763 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5764 * sysdeps/s390/multiarch/ifunc-impl-list.c
5765 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5766 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5767 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5768 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5769 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5770 * sysdeps/s390/multiarch/strchr.c: Move to ...
5771 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5772 * sysdeps/s390/ifunc-strchr.h: New file.
5773
5774 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5775
5776 * sysdeps/s390/multiarch/Makefile
5777 (sysdep_routines): Remove strncmp variants.
5778 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5779 * sysdeps/s390/multiarch/ifunc-impl-list.c
5780 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5781 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5782 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5783 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5784 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5785 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5786 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5787 * sysdeps/s390/ifunc-strncmp.h: New file.
5788
5789 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5790
5791 * sysdeps/s390/multiarch/Makefile
5792 (sysdep_routines): Remove strcmp variants.
5793 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5794 * sysdeps/s390/multiarch/ifunc-impl-list.c
5795 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5796 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5797 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5798 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5799 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5800 * sysdeps/s390/ifunc-strcmp.h: New file.
5801 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5802 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5803 for 31/64bit and ifunc handling.
5804 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5805 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5806 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5807
5808 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5809
5810 * sysdeps/s390/multiarch/Makefile
5811 (sysdep_routines): Remove strncat variants.
5812 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5813 * sysdeps/s390/multiarch/ifunc-impl-list.c
5814 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5815 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5816 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5817 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5818 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5819 * sysdeps/s390/multiarch/strncat.c: Move to ...
5820 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5821 * sysdeps/s390/ifunc-strncat.h: New file.
5822
5823 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5824
5825 * sysdeps/s390/multiarch/Makefile
5826 (sysdep_routines): Remove strcat variants.
5827 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5828 * sysdeps/s390/multiarch/ifunc-impl-list.c
5829 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5830 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5831 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5832 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5833 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5834 * sysdeps/s390/multiarch/strcat.c: Move to ...
5835 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5836 * sysdeps/s390/ifunc-strcat.h: New file.
5837
5838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5839
5840 * sysdeps/s390/multiarch/Makefile
5841 (sysdep_routines): Remove stpncpy variants.
5842 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5843 * sysdeps/s390/multiarch/ifunc-impl-list.c
5844 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5845 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5846 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5847 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5848 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5849 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5850 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5851 * sysdeps/s390/ifunc-stpncpy.h: New file.
5852
5853 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5854
5855 * sysdeps/s390/multiarch/Makefile
5856 (sysdep_routines): Remove strncpy variants.
5857 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5858 * sysdeps/s390/multiarch/ifunc-impl-list.c
5859 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5860 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5861 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5862 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5863 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5864 * sysdeps/s390/ifunc-strncpy.h: New file.
5865 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5866 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5867 and adjust ifunc handling.
5868 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5869 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5870 and adjust ifunc handling.
5871 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5872 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5873
5874 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5875
5876 * sysdeps/s390/multiarch/Makefile
5877 (sysdep_routines): Remove stpcpy variants.
5878 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5879 * sysdeps/s390/multiarch/ifunc-impl-list.c
5880 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5881 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5882 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5883 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5884 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5885 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5886 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5887 * sysdeps/s390/ifunc-stpcpy.h: New file.
5888
5889 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5890
5891 * sysdeps/s390/multiarch/Makefile
5892 (sysdep_routines): Remove strcpy variants.
5893 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5894 * sysdeps/s390/multiarch/ifunc-impl-list.c
5895 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5896 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5897 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5898 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5899 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5900 * sysdeps/s390/ifunc-strcpy.h: New file.
5901 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5902 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5903 for 31/64bit and ifunc handling.
5904 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5905 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5906 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5907
5908 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5909
5910 * sysdeps/s390/multiarch/Makefile
5911 (sysdep_routines): Remove strnlen variants.
5912 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5913 * sysdeps/s390/multiarch/ifunc-impl-list.c
5914 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5915 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5916 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5917 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5918 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5919 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5920 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5921 * sysdeps/s390/ifunc-strnlen.h: New file.
5922
5923 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5924
5925 * sysdeps/s390/multiarch/Makefile
5926 (sysdep_routines): Remove strlen variants.
5927 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5928 * sysdeps/s390/multiarch/ifunc-impl-list.c
5929 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5930 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5931 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5932 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5933 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5934 * sysdeps/s390/multiarch/strlen.c: Move to ...
5935 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5936 * sysdeps/s390/ifunc-strlen.h: New file.
5937
5938 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5939
5940 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5941 * sysdeps/s390/multiarch/ifunc-impl-list.c
5942 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5943 * sysdeps/s390/ifunc-memmem.h: New file.
5944 * sysdeps/s390/memmem.c: Likewise.
5945 * sysdeps/s390/memmem-c.c: Likewise.
5946 * sysdeps/s390/memmem-vx.c: Likewise.
5947
5948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5949
5950 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5951 * sysdeps/s390/multiarch/ifunc-impl-list.c
5952 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5953 * sysdeps/s390/ifunc-strstr.h: New file.
5954 * sysdeps/s390/strstr.c: Likewise.
5955 * sysdeps/s390/strstr-c.c: Likewise.
5956 * sysdeps/s390/strstr-vx.c: Likewise.
5957
5958 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5959
5960 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5961 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5962 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5963 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5964 New defines.
5965 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5966 * sysdeps/s390/memmove-c.c: New file.
5967 * sysdeps/s390/memmove.c: Likewise.
5968 * sysdeps/s390/multiarch/ifunc-impl-list.c
5969 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5970
5971 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5972
5973 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5974 * sysdeps/s390/configure.ac: Add check for z13 support.
5975 * sysdeps/s390/configure: Regenerated.
5976
5977 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5978
5979 * sysdeps/s390/memcopy.h: New file.
5980
5981 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5982
5983 * sysdeps/s390/s390-32/bcopy.S: Remove.
5984 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5985
5986 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5987
5988 * sysdeps/s390/ifunc-memcpy.h: New File.
5989 * sysdeps/s390/memcpy.S: Move to ...
5990 * sysdeps/s390/memcpy-z900.S ... here.
5991 Move implementations from memcpy-s390x.s to here.
5992 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5993 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5994 Remove memcpy/mempcpy variants.
5995 * sysdeps/s390/Makefile (sysdep_routines):
5996 Add memcpy/mempcpy variants.
5997 * sysdeps/s390/multiarch/ifunc-impl-list.c
5998 (__libc_ifunc_impl_list): Adjust ifunc variants for
5999 memcpy and mempcpy.
6000 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
6001 to ...
6002 * sysdeps/s390/memcpy.c: ... here.
6003 Adjust ifunc variants for memcpy.
6004 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
6005 * sysdeps/s390/mempcpy.c: ... here.
6006 Adjust ifunc variants for mempcpy.
6007 * sysdeps/s390/mempcpy.S: Delete file.
6008
6009 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6010
6011 * sysdeps/s390/s390-64/memcpy.S: Move to ...
6012 * sysdeps/s390/memcpy.S: ... here.
6013 Adjust to be usable for 31/64bit.
6014 * sysdeps/s390/s390-32/memcpy.S: Delete File.
6015 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
6016 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
6017 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6018 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
6019 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
6020 Adjust to be usable for 31/64bit.
6021 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
6022 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
6023 * sysdeps/s390/multiarch/memcpy.c: ... here.
6024 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
6025
6026 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6027
6028 * sysdeps/s390/ifunc-memcmp.h: New File.
6029 * sysdeps/s390/memcmp.S: Move to ...
6030 * sysdeps/s390/memcmp-z900.S ... here.
6031 Move implementations from memcmp-s390x.s to here.
6032 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
6033 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6034 Remove memcmp variants.
6035 * sysdeps/s390/Makefile (sysdep_routines):
6036 Add memcmp variants.
6037 * sysdeps/s390/multiarch/ifunc-impl-list.c
6038 (__libc_ifunc_impl_list): Adjust ifunc variants for
6039 memcmp.
6040 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
6041 to ...
6042 * sysdeps/s390/memcmp.c: ... here.
6043 Adjust ifunc variants for memcmp.
6044
6045 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6046
6047 * sysdeps/s390/s390-64/memcmp.S: Move to ...
6048 * sysdeps/s390/memcmp.S: ... here.
6049 Adjust to be usable for 31/64bit.
6050 * sysdeps/s390/s390-32/memcmp.S: Delete File.
6051 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
6052 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6053 Remove memcmp.
6054 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6055 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
6056 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
6057 Adjust to be usable for 31/64bit.
6058 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
6059 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
6060 * sysdeps/s390/multiarch/memcmp.c: ... here.
6061 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
6062
6063 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6064
6065 * sysdeps/s390/s390-32/bzero.S: Delete file.
6066 * sysdeps/s390/s390-64/bzero.S: Likewise.
6067 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
6068 * sysdeps/s390/bzero.c: New file.
6069 * sysdeps/s390/memset-z900.S: Add bzero entry points.
6070 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
6071 * sysdeps/s390/multiarch/ifunc-impl-list.c
6072 (__libc_ifunc_impl_list): Add bzero ifunc variants.
6073
6074 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6075
6076 * sysdeps/s390/ifunc-memset.h: New File.
6077 * sysdeps/s390/memset.S: Move to ...
6078 * sysdeps/s390/memset-z900.S ... here.
6079 Move implementations from memset-s390x.s to here.
6080 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
6081 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
6082 Remove memset variants.
6083 * sysdeps/s390/Makefile (sysdep_routines):
6084 Add memset variants.
6085 * sysdeps/s390/multiarch/ifunc-impl-list.c
6086 (__libc_ifunc_impl_list): Adjust ifunc variants for
6087 memset.
6088 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
6089 to ...
6090 * sysdeps/s390/memset.c: ... here.
6091 Adjust ifunc variants for memset.
6092
6093 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6094
6095 * sysdeps/s390/s390-64/memset.S: Move to ...
6096 * sysdeps/s390/memset.S: ... here.
6097 Adjust to be usable for 31/64bit.
6098 * sysdeps/s390/s390-32/memset.S: Delete File.
6099 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
6100 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
6101 Remove memset.
6102 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
6103 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
6104 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
6105 Adjust to be usable for 31/64bit.
6106 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
6107 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
6108 * sysdeps/s390/multiarch/memset.c: ... here.
6109 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
6110
6111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6112
6113 * sysdeps/s390/multiarch/ifunc-resolve.h
6114 (s390_libc_ifunc_init, s390_libc_ifunc,
6115 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
6116
6117 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
6118
6119 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
6120 * sysdeps/s390/configure.ac: Add check for z10 support.
6121 * sysdeps/s390/configure: Regenerated.
6122
6123 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
6124
6125 * sysdeps/i386/atomic-machine.h: Merged with ...
6126 * sysdeps/x86_64/atomic-machine.h: To ...
6127 * sysdeps/x86/atomic-machine.h: This. New file.
6128
6129 2018-12-18 Florian Weimer <fweimer@redhat.com>
6130
6131 Rewrite locale/gen-translit.pl in Python.
6132 * locale/Makefile (generated): Add C-translit.h.
6133 (before-compile): Add $(objpfx)C-translit.h.
6134 (C-translit.h): Move to $(objpfx). Create target directory.
6135 Build using Python script.
6136 * locale/gen-translit.py: New file.
6137 * locale/gen-translit.pl: Remove file.
6138 * locale/C-translit.h.in: Change comment character to '#' for
6139 easier parsing without a C preprocessor.
6140 * locale/C-translit.h: Remove generated file.
6141 * manual/install.texi (Tools for Compilation): Do not mention
6142 C-translit.h.
6143 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6144 Remove locale/C-translit.h.
6145 * scripts/update-copyrights: Likewise.
6146 * INSTALL: Regenerate.
6147
6148 2018-12-18 Florian Weimer <fweimer@redhat.com>
6149
6150 [BZ #23995]
6151 * localedata/locales/bi_VU: Remove executable bit from file.
6152
6153 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6154
6155 * include/time.h
6156 (__localtime64): Add.
6157 * manual/maint.texi: Document Y2038 symbol handling.
6158 * time/localtime.c
6159 (__localtime64): Add.
6160 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6161
6162 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6163
6164 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6165 Do not clobber r12.
6166
6167 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6168 to allow extra macros from first or second sources.
6169 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6170 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6171 (tests-special): Add $(objpfx)tst-mman-consts.out.
6172 ($(objpfx)tst-mman-consts.out): New makefile target.
6173
6174 2018-12-17 Mao Han <han_mao@c-sky.com>
6175
6176 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6177 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6178 without stat64 system call support.
6179 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6180 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6181 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6182 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6183 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6184 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6185 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6186 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6187 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6188 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6189 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6190
6191 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6192
6193 regex: fix storage-exhaustion error
6194 [BZ #18040]
6195 * posix/regexec.c (get_subexp):
6196 Do not continue if storage is exhausted.
6197
6198 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6199
6200 regex: fix heap-use-after-free error
6201 [BZ #18040]
6202 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6203 https://debbugs.gnu.org/32592
6204 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6205 call extend_buffers which reallocates the re_string_t internal buffer.
6206 Local variable 'buf' was not updated in such case, resulting in
6207 use-after-free.
6208 * posix/regexec.c (get_subexp): Update 'buf' after call to
6209 get_subexp_sub.
6210
6211 2018-12-15 Florian Weimer <fweimer@redhat.com>
6212
6213 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6214 (minimum_stride_size): Use it.
6215 (support_blob_repeat_allocate): Likewise.
6216
6217 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6218
6219 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6220 definition.
6221 (acosh): Likewise.
6222 (atanh): Likewise.
6223
6224 2018-12-14 Florian Weimer <fweimer@redhat.com>
6225
6226 * manual/process.texi (Process Creation Concepts): Remove
6227 documentation of process (ID) lifetime. List more process
6228 creation functions. Reference Process Identification section.
6229 (Process Identification): Add information about process ID
6230 lifetime. Describe Linux thread/task IDs.
6231 * manual/signal.texi (Signaling Another Process): Mention that the
6232 signal is always sent to the process.
6233
6234 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6235
6236 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6237 and tst-ldbl-efgcvt.
6238 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6239 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6240 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6241 (fcvt_tests, output_error, output_r_error, do_test): Use the
6242 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6243 select the type of floating-point variables and arguments; to
6244 produce extra tests for double and conversion specifiers for
6245 printf; and to set the names of called functions.
6246 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6247 in tst-efgcvt-template.c.
6248 * misc/tst-ldbl-efgcvt.c: Likewise.
6249
6250 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6251
6252 * nss/Makefile (tst-nss-test3.out): New rule.
6253
6254 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6255
6256 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6257 clobber sp.
6258
6259 2018-12-13 fanjinke <fanjinke@hygon.cn>
6260
6261 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6262 "HygonGenuine".
6263
6264 2018-12-13 Andreas Schwab <schwab@suse.de>
6265
6266 [BZ #23861]
6267 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6268 (__pthread_rwlock_rdlock_full): Update expected value for
6269 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6270 * nptl/tst-rwlock-pwn.c: New file.
6271 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6272
6273 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6274
6275 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6276 definition.
6277
6278 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6279
6280 * benchtests/scripts/compare_bench.py (do_compare): write to
6281 stderr in casestat is not present.
6282 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6283 stderr in case timings field is not present. Also string showing
6284 the output filename goes into the stderr.
6285
6286 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6287
6288 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6289 and ZeroDivisorError exceptions.
6290 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6291 argument to loop through user provided statistics.
6292 * benchtests/scripts/compare_bench.py (main): Include the --stats
6293 argument.
6294
6295 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6296
6297 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6298 instead of return.
6299
6300 2018-12-12 Florian Weimer <fweimer@redhat.com>
6301
6302 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6303 clause to copyright header.
6304
6305 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6306
6307 [BZ #23614]
6308 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6309 registers saved in the stack frame.
6310 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6311 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6312
6313 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6314
6315 * include/bits/monetary-ldbl.h: New file.
6316 * include/bits/printf-ldbl.h: Likewise.
6317 * include/bits/stdio-ldbl.h: Likewise.
6318 * include/bits/stdlib-ldbl.h: Likewise.
6319 * include/bits/syslog-ldbl.h: Likewise.
6320 * include/bits/wchar-ldbl.h: Likewise.
6321
6322 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6323
6324 * libio/libio.h: Remove redirection for _IO_vfprintf.
6325
6326 2018-12-11 Andreas Schwab <schwab@suse.de>
6327
6328 * Makerules: Remove all references to abilist-pattern.
6329 (update-all-abi): Simplify find expression.
6330
6331 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6332
6333 [BZ #23961]
6334 * math/auto-libm-test-in: Add new test case.
6335 * math/auto-libm-test-out-pow: Regenerated.
6336 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6337
6338 2018-12-10 DJ Delorie <dj@redhat.com>
6339
6340 [BZ #23948]
6341 * support/test-container.c: Move postclean step to before we
6342 change namespaces.
6343
6344 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6345
6346 * scripts/gen-as-const.py (main): Handle --python option.
6347 * scripts/gen-py-const.awk: Remove.
6348 * Makerules (py-const-script): Use gen-as-const.py.
6349 ($(py-const)): Likewise.
6350 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6351 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6352 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6353 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6354 ~PTHREAD_MUTEX_NO_ELISION_NP.
6355 * manual/README.pretty-printers: Update reference to
6356 gen-py-const.awk.
6357
6358 * scripts/glibcextract.py: New file.
6359 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6360 or tempfile. Import glibcexctract.
6361 (compute_c_consts): Remove. Moved to glibcextract.py.
6362 (gen_test): Update reference to compute_c_consts.
6363 (main): Likewise.
6364 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6365 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6366 * sysdeps/unix/sysv/linux/Makefile
6367 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6368 Redirect stderr as well as stdout.
6369
6370 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6371
6372 [BZ #19767]
6373 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6374 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6375 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6376 ALWAYS_USE_VSYSCALL.
6377 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6378 ALWAYS_USE_VSYSCALL.
6379 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6380 ALWAYS_USE_VSYSCALL.
6381
6382 2018-12-10 Florian Weimer <fweimer@redhat.com>
6383
6384 [BZ #23972]
6385 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6386 offset instead of count for clarity. Fix typo in comment.
6387 (__old_getdents64): Keep track of previous offset. Use it to call
6388 handle_overflow.
6389 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6390 that d_off is never zero.
6391
6392 2018-12-10 Andreas Schwab <schwab@suse.de>
6393
6394 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6395 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6396 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6397 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6398 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6399
6400 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6401
6402 * timezone/private.h: Update from tzcode 2018g.
6403 * timezone/tzfile.h: Likewise.
6404 * timezone/tzselect.ksh: Likewise.
6405 * timezone/zdump.c: Likewise.
6406 * timezone/zic.c: Likewise.
6407
6408 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6409
6410 [BZ #23490]
6411 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6412 (do_test): Adjust buffer size and fix format.
6413
6414 2018-12-07 DJ Delorie <dj@redhat.com>
6415
6416 [BZ #23907]
6417 * malloc/tst-tcfree3.c: New.
6418 * malloc/Makefile: Add it.
6419
6420 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6421
6422 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6423
6424 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6425
6426 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6427 used as a mask for the mode argument of __vfscanf_internal and
6428 __vfwscanf_internal.
6429 * stdio-common/vfscanf-internal.c
6430 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6431 (__strtof128_internal): Define to __wcstof128_internal.
6432 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6433 __strtof128_internal or __wcstof128_internal when the format of
6434 long double is the same as _Float128.
6435
6436 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6437
6438 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6439 * posix/confstr.c (confstr): Rename to __confstr.
6440 (__confstr): Add hidden def.
6441 (confstr): Add weak alias for __confstr.
6442 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6443 confstr.
6444
6445 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6446
6447 * NEWS: Mention getcpu.
6448 * include/sched.h (__getcpu): New libc_hidden_proto.
6449 * manual/resource.texi: Document getcpu.
6450 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6451 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6452 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6453 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6454 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6455 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6456 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6457 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6458 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6459 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6460 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6461 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6462 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6463 Likewise.
6464 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6465 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6466 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6467 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6468 Likewise.
6469 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6470 Likewise.
6471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6472 Likewise.
6473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6474 Likewise.
6475 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6476 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6477 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6478 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6479 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6480 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6481 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6482 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6483 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6484 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6485 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6486 Also check getcpu.
6487
6488 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6489
6490 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6491 functions.
6492 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6493
6494 2018-12-07 Florian Weimer <fweimer@redhat.com>
6495
6496 [BZ #17405]
6497 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6498 * posix/Versions (GLIBC_2.29): Export
6499 posix_spawn_file_actions_addfchdir_np.
6500 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6501 * posix/spawn_faction_destroy.c
6502 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6503 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6504 and the field action.fchdir_action.
6505 * posix/tst-spawn-chdir.c (add_chdir): New function.
6506 (do_test): Add do_fchdir loop. Call add_chdir.
6507 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6508 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6509 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6510 posix_spawn_file_actions_addfchdir_np.
6511 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6512 Likewise.
6513 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6514 Likewise.
6515 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6516 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6517 Likewise.
6518 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6519 Likewise.
6520 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6521 Likewise.
6522 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6523 Likewise.
6524 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6525 Likewise.
6526 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6527 Likewise.
6528 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6529 (GLIBC_2.29): Likewise.
6530 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6531 (GLIBC_2.29): Likewise.
6532 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6533 (GLIBC_2.29): Likewise.
6534 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6535 (GLIBC_2.29): Likewise.
6536 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6537 Likewise.
6538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6539 (GLIBC_2.29): Likewise.
6540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6541 (GLIBC_2.29): Likewise.
6542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6543 (GLIBC_2.29): Likewise.
6544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6545 (GLIBC_2.29): Likewise.
6546 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6547 Likewise.
6548 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6549 Likewise.
6550 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6551 Likewise.
6552 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6553 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6554 Likewise.
6555 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6556 Likewise.
6557 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6558 Likewise.
6559 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6560 Likewise.
6561
6562 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6563
6564 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6565 trailing whitespace removed.
6566 * scripts/config.guess: Update to version 2018-11-28.
6567 * scripts/config.sub: Update to version 2018-11-28.
6568 * scripts/install-sh: Update to version 2018-03-11.20.
6569 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6570 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6571
6572 2018-12-07 Florian Weimer <fweimer@redhat.com>
6573
6574 [BZ #23927]
6575 CVE-2018-19591
6576 * inet/tst-if_index-long.c: New file.
6577 * inet/Makefile (tests): Add tst-if_index-long.
6578
6579 2018-12-07 Florian Weimer <fweimer@redhat.com>
6580
6581 * support/check.h (support_record_failure_is_failed): Declare.
6582 * support/descriptors.h: New file.
6583 * support/support_descriptors.c: Likewise.
6584 * support/tst-support_descriptors.c: Likewise.
6585 * support/support_record_failure.c
6586 (support_record_failure_is_failed): New function.
6587 * support/Makefile (libsupport-routines): Add support_descriptors.
6588 (tests): Add tst-support_descriptors.
6589
6590 2018-12-05 Zack Weinberg <zackw@panix.com>
6591 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6592
6593 * stdio-common/vfprintf-internal.c
6594 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6595 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6596 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6597 and __no_long_double.
6598 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6599 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6600 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6601 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6602 and __nldbl_*syslog* functions.
6603 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6604 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6605 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6606 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6607 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6608 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6609 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6610 (__nldbl_vwprintf, __nldbl_wprintf):
6611 Directly call the appropriate __v*printf_internal routine, passing
6612 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6613 variable names.
6614 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6615 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6616 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6617 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6618 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6619 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6620 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6621 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6622 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6623 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6624 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6625 (__nldbl_syslog, __nldbl_vsyslog):
6626 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6627 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6628 appropriate.
6629 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6630 appropriate.
6631
6632 2018-12-05 Zack Weinberg <zackw@panix.com>
6633 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6634
6635 [BZ #11319]
6636 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6637 Moved here from debug/vsprintf_chk.c.
6638 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6639 and completion logic for the strfile to match exactly what
6640 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6641 _IO_str_init_static_internal instead of maxlen-1.
6642 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6643 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6644 __vsprintf_internal.
6645
6646 * debug/vsprintf_chk.c (__vsprintf_chk)
6647 * debug/sprintf_chk.c (__sprintf_chk):
6648 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6649 'flags' argument is positive, and slen as maxlen. No need to lock
6650 the FILE and/or construct a temporary FILE. Minimize and normalize
6651 header inclusions and variable names. Do not libc_hidden_def anything.
6652
6653 * debug/asprintf_chk.c (__asprintf_chk)
6654 * debug/dprintf_chk.c (__dprintf_chk)
6655 * debug/fprintf_chk.c (__fprintf_chk)
6656 * debug/fwprintf_chk.c (__fwprintf_chk)
6657 * debug/printf_chk.c (__printf_chk)
6658 * debug/snprintf_chk.c (__snprintf_chk)
6659 * debug/swprintf_chk.c (__swprintf_chk)
6660 * debug/vasprintf_chk.c (__vasprintf_chk)
6661 * debug/vdprintf_chk.c (__vdprintf_chk)
6662 * debug/vfprintf_chk.c (__vfprintf_chk)
6663 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6664 * debug/vprintf_chk.c (__vprintf_chk)
6665 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6666 * debug/vswprintf_chk.c (__vswprintf_chk)
6667 * debug/vwprintf_chk.c (__vwprintf_chk)
6668 * debug/wprintf_chk.c (__wprintf_chk):
6669 Directly call the corresponding vxxprintf_internal function, passing
6670 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6671 the FILE and/or construct a temporary FILE. Minimize and normalize
6672 header inclusions and variable names. Do not libc_hidden_def anything.
6673
6674 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6675 __obstack_vprintf_internal.
6676 (__obstack_vprintf_chk): Convert into a wrapper that calls
6677 __obstack_vprintf_internal (these two functions already had the
6678 same code) and move to new file...
6679 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6680 file.
6681 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6682 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6683 * debug/Makefile (routines): Add vobprintf_chk.
6684
6685 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6686 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6687 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6688 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6689 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6690 (__nldbl___obstack_vfprintf_chk):
6691 Directly call the corresponding vxxprintf_internal function,
6692 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6693 duplicate comparison of slen with 0 or maxlen from the corresponding
6694 non-__nldbl function.
6695
6696 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6697 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6698 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6699 Remove libc_hidden_proto.
6700
6701 * stdio-common/vfprintf-internal.c
6702 (__vfprintf_internal, __vfwprintf_internal):
6703 Do not check _IO_FLAGS2_FORTIFY.
6704 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6705 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6706 a comment explaining why it has the maxlen argument.
6707 (_IO_acquire_lock_clear_flags2_fct): Remove.
6708 (_IO_acquire_lock_clear_flags2): Remove.
6709 (_IO_release_lock): Remove conditional statement which will
6710 now never execute.
6711 (_IO_acquire_lock): Remove variable which is now unused.
6712 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6713 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6714
6715 * stdio-common/Makefile (tests): Add tst-bz11319 and
6716 tst-bz11319-fortify2.
6717 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6718 * stdio-common/tst-bz11319-fortify2.c: New file.
6719 * stdio-common/tst-bz11319.c: Likewise.
6720
6721 2018-12-05 Zack Weinberg <zackw@panix.com>
6722 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6723
6724 * misc/syslog.c: Include libioP.h, not iolibio.h.
6725 (__vsyslog_internal): New function with the former body of
6726 __vsyslog_chk; takes mode_flags argument same as
6727 __v*printf_internal. Call __vfprintf_internal directly.
6728
6729 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6730 Remove libc_hidden_def.
6731 (__syslog, __syslog_chk): Use __vsyslog_internal.
6732 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6733
6734 * include/sys/syslog.h: Add multiple inclusion guard.
6735 Add prototype for __vsyslog_internal.
6736 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6737
6738 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6739 Use __vsyslog_internal.
6740
6741 2018-12-05 Zack Weinberg <zackw@panix.com>
6742 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6743
6744 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6745 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6746 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6747 New functions.
6748 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6749 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6750
6751 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6752 Include wctype.h here if COMPILE_WPRINTF is defined.
6753 Define __vfprintf_internal or __vfwprintf_internal, depending
6754 on COMPILE_WPRINTF.
6755 Temporarily, on entry to this function, update mode_flags
6756 according to the environmental settings corresponding to
6757 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6758 Throughout, check mode_flags instead of __ldbl_is_dbl and
6759 _IO_FLAGS2_FORTIFY on the destination FILE.
6760 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6761 Include vfprintf-internal.c. Don't include wctype.h.
6762 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6763 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6764 and vfprintf.
6765 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6766 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6767 and vfwprintf.
6768 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6769
6770 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6771 and add mode_flags argument; use __vfprintf_internal.
6772 (__vdprintf): New function. Alias vdprintf to this.
6773 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6774 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6775 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6776 (__obstack_printf): Use __obstack_printf_internal.
6777 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6778 public aliases __vsnprintf and vsnprintf.
6779 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6780 called internally.
6781 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6782 public aliases _IO_vsprintf and vsprintf.
6783 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6784 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6785 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6786 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6787 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6788
6789 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6790 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6791 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6792 * stdio-common/printf.c: Use __vfprintf_internal.
6793
6794 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6795 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6796 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6797
6798 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6799 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6800 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6801 __vfwprintf_internal.
6802
6803 * libio/libio.h: Remove libc_hidden_proto and declaration for
6804 _IO_vfprintf.
6805 Remove declaration of _IO_vfwprintf.
6806 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6807 _IO_vsprintf.
6808 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6809 _IO_obstack_printf.
6810 * include/stdio.h: Add prototype for __vasprintf.
6811 (__vsnprintf): Remove declaration, because there are no more
6812 internal calls.
6813 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6814 declaration, because there are no more internal calls.
6815
6816 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6817 __vsnprintf_internal, instead of _IO_vsnprintf.
6818 * argp/argp-help.c (__argp_error, __argp_failure): Use
6819 __vasprintf_internal, instead of _IO_vasprintf.
6820 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6821 redefine, because there are no more internal calls.
6822
6823 2018-12-05 Zack Weinberg <zackw@panix.com>
6824 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6825
6826 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6827 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6828 Include libio/strfile.h instead of libioP.h.
6829 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6830 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6831 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6832 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6833 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6834 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6835 necessary. Do not set __no_long_double. Normalize variable names.
6836 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6837 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6838 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6839 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6840 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6841 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6842 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6843 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6844 Do not set __no_long_double. Normalize variable names.
6845
6846 2018-12-05 Zack Weinberg <zackw@panix.com>
6847 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6848
6849 * stdio-common/isoc99_scanf.c
6850 * stdio-common/isoc99_fscanf.c
6851 * stdio-common/isoc99_sscanf.c
6852 * stdio-common/isoc99_vscanf.c
6853 * stdio-common/isoc99_vfscanf.c
6854 * stdio-common/isoc99_vsscanf.c
6855 * wcsmbs/isoc99_wscanf.c
6856 * wcsmbs/isoc99_fwscanf.c
6857 * wcsmbs/isoc99_swscanf.c
6858 * wcsmbs/isoc99_vwscanf.c
6859 * wcsmbs/isoc99_vfwscanf.c
6860 * wcsmbs/isoc99_vswscanf.c:
6861 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6862 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6863 No need to lock and unlock the FILE passed to that function.
6864
6865 * stdio-common/vfscanf-internal.c
6866 (__vfscanf_internal, __vfwscanf_internal):
6867 Don't look at _IO_FLAGS2_SCANF_STD.
6868 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6869 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6870 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6871
6872 2018-12-05 Zack Weinberg <zackw@panix.com>
6873 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6874
6875 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6876 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6877 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6878 * libio/strfile.h: Add multiple inclusion guard.
6879 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6880
6881 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6882 consistency with the other version of this file.
6883 (ldbl_compat_symbol): New macro.
6884 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6885 New macro.
6886
6887 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6888 Define __vfscanf_internal or __vfwscanf_internal, depending on
6889 COMPILE_WSCANF; don't define any other public symbols.
6890 Remove errval and code to set errp.
6891 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6892 as the mode_flags argument.
6893 (encode_error, conv_error, input_error): Don't set errval.
6894 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6895 Include vfscanf-internal.c.
6896 * stdio-common/vfscanf.c: New file defining the public entry
6897 point vfscanf, which calls __vfscanf_internal.
6898 * stdio-common/vfwscanf.c: New file defining the public entry
6899 point vfwscanf, which calls __vfwscanf_internal.
6900
6901 * stdio-common/iovfscanf.c: New file.
6902 * stdio-common/iovfwscanf.c: Likewise.
6903
6904 * stdio-common/Makefile (routines): Add vfscanf-internal,
6905 vfwscanf-internal, iovfscanf, iovfwscanf.
6906 * stdio-common/Versions: Mention GLIBC_2.29, so that
6907 it can be used in SHLIB_COMPAT expressions.
6908 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6909 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6910 Call __vfscanf_internal, instead of _IO_vfscanf.
6911 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6912 _IO_vfscanf.
6913 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6914 _IO_vfwscanf.
6915
6916 * libio/iovsscanf.c: Clean up includes, when possible. Use
6917 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6918 __vfscanf_internal or __vfwscanf_internal directly.
6919 * libio/iovswscanf.c: Likewise.
6920 * libio/swscanf.c: Likewise.
6921 * libio/vscanf.c: Likewise.
6922 * libio/vwscanf.c: Likewise.
6923 * libio/wscanf.c: Likewise.
6924 * stdio-common/isoc99_fscanf.c: Likewise.
6925 * stdio-common/isoc99_scanf.c: Likewise.
6926 * stdio-common/isoc99_sscanf.c: Likewise.
6927 * stdio-common/isoc99_vfscanf.c: Likewise.
6928 * stdio-common/isoc99_vscanf.c: Likewise.
6929 * stdio-common/isoc99_vsscanf.c: Likewise.
6930 * stdio-common/scanf.c: Likewise.
6931 * stdio-common/sscanf.c: Likewise.
6932 * wcsmbs/isoc99_fwscanf.c: Likewise.
6933 * wcsmbs/isoc99_swscanf.c: Likewise.
6934 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6935 * wcsmbs/isoc99_vswscanf.c: Likewise.
6936 * wcsmbs/isoc99_vwscanf.c: Likewise.
6937 * wcsmbs/isoc99_wscanf.c: Likewise.
6938
6939 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6940
6941 * include/time.h
6942 (__tz_compute): Replace time_t with __time64_t.
6943 (__tz_convert): Replace time_t* with __time64_t.
6944 (__offtime): Replace time_t* with __time64_t.
6945 * time/gmtime.c
6946 (__gmtime_r): Adjust call to __tz_convert.
6947 (gmtime): Likewise.
6948 * time/localtime.c
6949 (__localtime_r): Likewise.
6950 (localtime): Likewise.
6951 * time/offtime.c: Replace time_t with __time64_t.
6952 * time/tzset.c: Likewise.
6953
6954 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6955
6956 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6957 dynamic linker unless [$(run-built-tests) = yes].
6958
6959 2018-12-03 DJ Delorie <dj@delorie.com>
6960
6961 * support/test-container.c (check_for_unshare_hints): New.
6962 (main): Call it if unshare fails. Add support for "su" scriptlet
6963 command.
6964
6965 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6966
6967 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6968 'START' to indicate that start text should be output.
6969 (gen_test): Likewise.
6970 (main): Generate 'START' for first symbol or '--' line, or at end
6971 of input if not previously generated.
6972
6973 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6974
6975 [BZ #19767]
6976 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6977 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6978 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6979 ALWAYS_USE_VSYSCALL.
6980
6981 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6982
6983 [BZ #23913]
6984 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6985 new_argv by one.
6986
6987 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6988
6989 [BZ #23923]
6990 * locale/programs/localedef.c: Declare boolean hard_links default true.
6991 (options): Add --no-hard-links option.
6992 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6993 * locale/programs/localedef.h: Declare prototype for hard_links.
6994 * locale/programs/locfile.c (write_locale_data): Don't use hard
6995 links if hard_links is false.
6996
6997 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6998
6999 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
7000 cpu_features_basic.
7001 (__cache_sysconf): Likewise.
7002 (init_cacheinfo): Likewise.
7003 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
7004 populate COMMON_CPUID_INDEX_80000007 and
7005 COMMON_CPUID_INDEX_80000008.
7006 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
7007 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
7008 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
7009 (init_cpu_features): Use _Static_assert on
7010 index_arch_Fast_Unaligned_Load.
7011 __get_cpuid_registers and __get_arch_feature. Updated for
7012 cpu_features_basic. Set stepping in cpu_features.
7013 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
7014 (FEATURE_INDEX_2): New.
7015 (FEATURE_INDEX_MAX): Changed to enum.
7016 (COMMON_CPUID_INDEX_D_ECX_1): New.
7017 (COMMON_CPUID_INDEX_80000007): Likewise.
7018 (COMMON_CPUID_INDEX_80000008): Likewise.
7019 (cpuid_registers): Likewise.
7020 (cpu_features_basic): Likewise.
7021 (CPU_FEATURE_USABLE): Likewise.
7022 (bit_arch_XXX_Usable): Likewise.
7023 (cpu_features): Use cpuid_registers and cpu_features_basic.
7024 (bit_arch_XXX): Reweritten.
7025 (bit_cpu_XXX): Likewise.
7026 (index_cpu_XXX): Likewise.
7027 (reg_XXX): Likewise.
7028 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
7029 <support/check.h>.
7030 (CHECK_CPU_FEATURE): New.
7031 (CHECK_CPU_FEATURE_USABLE): Likewise.
7032 (cpu_kinds): Likewise.
7033 (do_test): Print vendor, family, model and stepping. Check
7034 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
7035 (TEST_FUNCTION): Removed.
7036 Include <support/test-driver.c> instead of
7037 "../../test-skeleton.c".
7038 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
7039 Check POPCNT instead of POPCOUNT.
7040 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
7041
7042 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7043
7044 * scripts/gen-as-const.py (main): Avoid emitting empty line when
7045 there is no element in `consts'.
7046
7047 2018-12-01 Florian Weimer <fweimer@redhat.com>
7048
7049 * support/support_capture_subprocess.c
7050 (support_capture_subprocess): Check that pipe descriptors have
7051 expected values. Close original pipe descriptors in subprocess.
7052
7053 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7054
7055 [BZ #23032]
7056 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
7057 attr with __pthread_default_barrierattr.
7058 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
7059 attr with __pthread_default_condattr.
7060 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
7061 attr with __pthread_default_mutexattr.
7062 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
7063 attr with __pthread_default_rwlockattr.
7064
7065 2018-12-01 Kemi Wang <kemi.wang@intel.com>
7066
7067 * manual/tunables.texi (POSIX Thread Tunables): New node.
7068 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
7069 * nptl/nptl-init.c: Include pthread_mutex_conf.h
7070 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
7071 __pthread_tunables_init.
7072 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
7073 (max_adaptive_count): Define.
7074 * nptl/pthread_mutex_conf.c: New file.
7075 * nptl/pthread_mutex_conf.h: New file.
7076 * sysdeps/generic/adaptive_spin_count.h: New file.
7077 * sysdeps/nptl/dl-tunables.list: New file.
7078 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
7079 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
7080 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
7081 Likewise.
7082
7083 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
7084
7085 [BZ #20544]
7086 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
7087 * stdlib/on_exit.c (__on_exit): Likewise.
7088 * stdlib/Makefile (tests): Add tst-bz20544.
7089 * stdlib/tst-bz20544.c: New test.
7090
7091 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
7092
7093 [BZ #19767]
7094 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
7095 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
7096 New.
7097
7098 2018-11-30 Florian Weimer <fweimer@redhat.com>
7099
7100 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
7101 Extend error logging.
7102 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
7103 symbol.
7104
7105 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7106
7107 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
7108 __sigismember instead of sigismember.
7109 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
7110 cancel_handler): New definitions.
7111 (do_system): Use posix_spawn instead of fork and execl and remove
7112 reentracy code.
7113 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
7114 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
7115 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
7116 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
7117 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
7118 * sysdeps/unix/sysv/linux/system.c: Likewise.
7119
7120 [BZ #22834]
7121 [BZ #17490]
7122 * NEWS: Add new semantic for atfork with popen and system.
7123 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
7124 fork and execl.
7125
7126 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7127
7128 [BZ #23690]
7129 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7130 modification order when accessing reloc_result->addr.
7131 * include/link.h (reloc_result): Add field init.
7132 * nptl/Makefile (tests): Add tst-audit-threads.
7133 (modules-names): Add tst-audit-threads-mod1 and
7134 tst-audit-threads-mod2.
7135 Add rules to build tst-audit-threads.
7136 * nptl/tst-audit-threads-mod1.c: New file.
7137 * nptl/tst-audit-threads-mod2.c: Likewise.
7138 * nptl/tst-audit-threads.c: Likewise.
7139 * nptl/tst-audit-threads.h: Likewise.
7140
7141 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7142
7143 * scripts/gen-as-const.py: New file.
7144 * scripts/gen-as-const.awk: Remove.
7145 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7146 gen-as-const.py.
7147 ($(objpfx)test-as-const-%.c): Likewise.
7148
7149 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7150
7151 * elf/dl-exception.c: Include <_itoa.h>.
7152
7153 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7154
7155 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7156 returned by __f_setlk.
7157
7158 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7159 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7160
7161 * elf/Makefile (tests-internal): Add tst-create_format1.
7162 * elf/dl-exception.c (_dl_exception_create_format): Support
7163 %x, %lx and %zx.
7164 * elf/tst-create_format1.c: New file.
7165
7166 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7167
7168 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7169 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7170 gnulib.)
7171 * argp/argp-help.c (__argp_failure): Likewise.
7172
7173 2018-11-29 Mao Han <han_mao@c-sky.com>
7174
7175 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7176 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7177 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7178 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7179 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7180 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7181 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7182 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7183 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7184 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7185 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7186 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7187 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7188 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7189 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7190 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7191 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7192 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7193 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7194 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7195 (R_CKCORE_TLS_TPOFF32): New defines.
7196
7197 2018-11-29 Florian Weimer <fweimer@redhat.com>
7198
7199 * posix/Makefile (before-compile): Remove testcases.h and
7200 ptestcases.h.
7201 (generated): Add testcases.h and ptestcases.h.
7202 (testcases.h, ptestcases.h): Move to $(objpfx).
7203 (runtests.o): Add dependency on testcases.h.
7204 (runptests.o): Add dependency on ptestcases.h.
7205 * posix/testcases.h, posix/ptestcases.h: Remove files.
7206 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7207 not touch posix/testcases.h and posix/ptestcases.h.
7208
7209 2018-11-28 Florian Weimer <fweimer@redhat.com>
7210
7211 support: Add signal support to support_capture_subprocess_check.
7212 * support/capture_subprocess.h (support_capture_subprocess_check):
7213 Adjust comment and rename parameter.
7214 * support/support_capture_subprocess_check.c
7215 (print_actual_status): New function.
7216 (support_capture_subprocess_check): Support negative
7217 status_or_signal. Call print_actual_status.
7218 * support/tst-support_capture_subprocess.c (do_test): Call
7219 support_capture_subprocess_check.
7220 * libio/tst-vtables-common.c (termination_status)
7221 (init_termination_status): Remove.
7222 (check_for_termination): Adjust support_capture_subprocess_check
7223 call.
7224 (do_test): Remove call to init_termination_status.
7225
7226 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7227
7228 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7229 source directory instead of a copy.
7230 (CommandList.create_copy_dir): Remove.
7231
7232 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7233
7234 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7235
7236 2018-11-28 Florian Weimer <fweimer@redhat.com>
7237
7238 * support/support.h (support_quote_string): Do not use str
7239 parameter name.
7240
7241 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7242
7243 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7244 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7245
7246 2018-11-27 Florian Weimer <fweimer@redhat.com>
7247
7248 * support/support.h (support_quote_string): Declare.
7249 * support/support_quote_string.c: New file.
7250 * support/tst-support_quote_string.c: Likewise.
7251 * support/Makefile (libsupport-routines): Add
7252 support_quote_string.
7253 (tests): Add tst-support_quote_string.
7254
7255 2018-11-27 Florian Weimer <fweimer@redhat.com>
7256
7257 [BZ #23927]
7258 CVE-2018-19591
7259 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7260 descriptor leak in case of ENODEV error.
7261
7262 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7263
7264 [BZ #19767]
7265 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7266 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7267 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7268
7269 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7270
7271 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7272 Error for unknown lines.
7273
7274 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7275
7276 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7277 Touch additional files.
7278
7279 2018-11-26 Florian Weimer <fweimer@redhat.com>
7280
7281 [BZ #23907]
7282 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7283 double-frees.
7284
7285 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7286
7287 [BZ #19767]
7288 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7289 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7290 SHARED. Include sysdep.h.
7291 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7292 ALWAYS_USE_VSYSCALL.
7293 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7294 ALWAYS_USE_VSYSCALL.
7295
7296 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7297
7298 [BZ #19767]
7299 * nptl/Makefile (tests-static): Add tst-cond11-static.
7300 (tests): Likewise.
7301 * nptl/tst-cond11-static.c: New File.
7302 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7303 tst-affinity-static.
7304 (tests): Likewise.
7305 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7306 instead of SHARED.
7307 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7308 (USE_VSYSCALL): Likewise.
7309 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7310 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7311 instead of SHARED.
7312 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7313 SHARED.
7314 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7315 New.
7316
7317 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7318
7319 [BZ #23915]
7320 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7321 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7322 Undefine.
7323
7324 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7325
7326 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7327 (tst-cet-legacy-1a-ARGS): New.
7328 ($(objpfx)tst-cet-legacy-1a): New target.
7329 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7330
7331 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7332
7333 * conform/conformtest.py (CompileSubTest.__init__): Set
7334 self.run_early to False.
7335 (ExecuteSubTest.__init__): Likewise.
7336 (HeaderTests.run): Try running all non-optional, non-XFAILed
7337 compilation tests in a single execution of the compiler.
7338
7339 * conform/conformtest.py (CompileSubTest): New class.
7340 (ExecuteSubTest): Likewise.
7341 (ElementTest.run): Rename to gen_subtests. Append tests to
7342 self.subtests instead of running them.
7343 (ConstantTest.run): Likewise.
7344 (SymbolTest.run): Likewise.
7345 (TypeTest.run): Likewise.
7346 (TagTest.run): Likewise.
7347 (FunctionTest.run): Likewise.
7348 (VariableTest.run): Likewise.
7349 (MacroFunctionTest.run): Likewise.
7350 (MacroStrTest.run): Likewise.
7351 (HeaderTests.handle_test_line): Generate subtests for tests.
7352 (HeaderTests.run): Run subtests for tests.
7353
7354 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7355
7356 * math/Versions (GLIBC_2.29): Add pow.
7357 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7358 symbol.
7359 * math/w_pow.c: New file.
7360 * sysdeps/i386/fpu/w_pow.c: New file.
7361 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7362 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7363 and add necessary aliases.
7364 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7365 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7366 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7367 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7368 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7369 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7370 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7371 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7372 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7373 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7374 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7375 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7376 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7377 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7378 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7380 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7383 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7384 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7385 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7386 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7387 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7388 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7389 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7390 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7391 __pow.
7392 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7393 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7394 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7395
7396 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7397
7398 * math/Versions (GLIBC_2.29): Add log2.
7399 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7400 symbol.
7401 * math/w_log2.c: New file.
7402 * sysdeps/i386/fpu/w_log2.c: New file.
7403 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7404 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7405 and add necessary aliases.
7406 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7407 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7408 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7409 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7410 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7411 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7412 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7413 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7414 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7415 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7416 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7417 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7418 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7419 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7420 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7421 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7425 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7426 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7427 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7428 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7429 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7430 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7431 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7432
7433 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7434
7435 * math/Versions (GLIBC_2.29): Add log.
7436 * math/w_log_compat.c (__log_compat): Change to versioned compat
7437 symbol.
7438 * math/w_log.c: New file.
7439 * sysdeps/i386/fpu/w_log.c: New file.
7440 * sysdeps/ia64/fpu/e_log.S: Update.
7441 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7442 and add necessary aliases.
7443 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7444 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7445 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7446 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7447 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7448 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7449 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7450 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7451 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7452 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7453 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7454 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7455 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7456 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7457 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7460 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7462 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7463 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7464 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7465 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7466 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7467 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7468 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7469 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7470 __log.
7471 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7472 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7473 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7474 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7475
7476 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7477
7478 * math/Versions (GLIBC_2.29): Add exp and exp2.
7479 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7480 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7481 * math/w_exp_compat.c (__exp_compat): Likewise.
7482 * math/w_exp.c: New file.
7483 * math/w_exp2.c: New file.
7484 * sysdeps/i386/fpu/w_exp.c: New file.
7485 * sysdeps/i386/fpu/w_exp2.c: New file.
7486 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7487 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7488 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7489 and add necessary aliases.
7490 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7491 and add necessary aliases.
7492 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7493 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7494 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7495 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7496 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7497 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7498 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7499 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7500 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7501 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7502 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7503 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7504 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7505 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7506 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7507 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7508 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7509 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7511 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7512 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7513 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7514 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7515 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7516 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7517 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7518 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7519 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7520 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7521 (__ieee754_exp): Rename to __exp.
7522 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7523 (__ieee754_exp): Rename to __exp.
7524 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7525 (__ieee754_exp): Rename to __exp.
7526 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7527 __exp.
7528 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7529
7530 2018-11-20 DJ Delorie <dj@redhat.com>
7531
7532 * malloc/malloc.c (tcache_entry): Add key field.
7533 (tcache_put): Set it.
7534 (tcache_get): Likewise.
7535 (_int_free): Check for double free in tcache.
7536 * malloc/tst-tcfree1.c: New.
7537 * malloc/tst-tcfree2.c: New.
7538 * malloc/Makefile: Run the new tests.
7539 * manual/probes.texi: Document memory_tcache_double_free probe.
7540
7541 * dlfcn/dlerror.c (check_free): Prevent double frees.
7542
7543 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7544
7545 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7546
7547 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7548
7549 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7550 in tests. Use names for format arguments.
7551 (ConstantTest.run): Likewise.
7552 (SymbolTest.run): Likewise.
7553 (TypeTest.run): Likewise.
7554 (TagTest.run): Likewise.
7555 (FunctionTest.run): Likewise.
7556 (VariableTest.run): Likewise.
7557 (MacroFunctionTest.run): Likewise.
7558 (MacroStrTest.run): Likewise.
7559 (HeaderTests.__init__): Set self.num_tests.
7560 (HeaderTests.handle_test_line): Set test.num. Increment
7561 self.num_tests.
7562
7563 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7564
7565 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7566 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7567 SEEK_SET.
7568
7569 2018-11-19 Mao Han <han_mao@c-sky.com>
7570
7571 * scripts/config.guess: Update to version 2018-08-29.
7572 * scripts/config.sub: Update to version 2018-08-29.
7573
7574 2018-11-19 Florian Weimer <fweimer@redhat.com>
7575
7576 support: Print timestamps in timeout handler.
7577 * support/support_test_main.c (print_timestamp): New function.
7578 (signal_handler): Use it to print the termination time and the
7579 time of the last write to standard output.
7580
7581 2018-11-16 Zack Weinberg <zackw@panix.com>
7582 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7583
7584 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7585 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7586 argument.
7587 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7588 and add flags argument. Check flags instead of __ldbl_is_dbl when
7589 deciding whether to set is_long_double.
7590 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7591 passing zero for flags argument.
7592 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7593
7594 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7595 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7596 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7597 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7598 variable names. Remove libc_hidden_def/libc_hidden_proto from
7599 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7600 longer called from within the library.
7601 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7602 for __nldbl___vstrfmon_l, declare it explicitly.
7603
7604 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7605
7606 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7607
7608 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7609 macros
7610 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7611 F_SETLK64, F_SETLKW64, respectively.
7612 * sysdeps/mach/hurd/f_setlk.c: New file.
7613 * sysdeps/mach/hurd/f_setlk.h: New file.
7614 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7615 f_setlk.
7616 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7617 (__libc_fcntl): Move non-flock operations to...
7618 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7619 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7620
7621 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7622
7623 mktime: DEBUG_MKTIME cleanup
7624 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7625 And it’s no longer needed now that glibc and Gnulib both have
7626 their own testing mechanisms for mktime.
7627 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7628
7629 mktime: fix non-EOVERFLOW errno handling
7630 [BZ#23789]
7631 mktime was not properly reporting failures when the underlying
7632 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7633 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7634 The problem could happen on non-glibc platforms, with Gnulib.
7635 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7636 (tm_diff): ... this simpler function, which does not change errno.
7637 All callers changed to deal with errno themselves.
7638 (ranged_convert, __mktime_internal): Return failure immediately if
7639 the underlying function reports any failure other than EOVERFLOW.
7640 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7641 gap code fails.
7642
7643 mktime: fix bug with Y2038 DST transition
7644 [BZ#23789]
7645 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7646 mishandle a DST transition that jumps over the Y2038 boundary.
7647 No such DST transitions are known so this is only a theoretical
7648 bug, but we might as well do things right.
7649
7650 mktime: make more room for overflow
7651 [BZ#23789]
7652 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7653 This is so that we can add tm_diff results to a previous guess,
7654 which will be useful in a later patch.
7655
7656 mktime: simplify offset guess
7657 [BZ#23789]
7658 * time/mktime.c (__mktime_internal): Omit excess precision.
7659
7660 mktime: new test for mktime failure
7661 [BZ#23789]
7662 Based on a test suggested by Albert Aribaud in:
7663 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7664 * time/Makefile (tests): Add bug-mktime4.
7665 * time/bug-mktime4.c: New file.
7666
7667 mktime: fix EOVERFLOW bug
7668 [BZ#23789]
7669 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7670 Include libc-config.h, not config.h, for __set_errno.
7671 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7672
7673 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7674
7675 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7676 __attribute_copy__ to copy attributes from name. Drop static qualifier
7677 to avoid warnings about leaf attribute not having effect on static
7678 functions.
7679
7680 2018-11-13 Florian Weimer <fweimer@redhat.com>
7681
7682 * malloc/malloc.c (fastbin_push_entry): New function.
7683 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7684 (REMOVE_FB): Remove macro.
7685 (_int_malloc): Use fastbin_pop_entry and reindent.
7686 (_int_free): Use fastbin_push_entry.
7687 (malloc_consolidate): Use atomic_exchange_acquire.
7688
7689 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7690
7691 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7692 alias attribute, not with strong_alias.
7693
7694 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7695 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7696 with additional parameter thread.
7697 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7698 in terms of __hidden_ver2.
7699 (hidden_tls_def): New macro.
7700 (libc_hidden_tls_def): Likewise.
7701 (rtld_hidden_tls_def): Likewise.
7702 (libm_hidden_tls_def): Likewise.
7703 (libmvec_hidden_tls_def): Likewise.
7704 (libresolv_hidden_tls_def): Likewise.
7705 (librt_hidden_tls_def): Likewise.
7706 (libdl_hidden_tls_def): Likewise.
7707 (libnss_files_hidden_tls_def): Likewise.
7708 (libnsl_hidden_tls_def): Likewise.
7709 (libnss_nisplus_hidden_tls_def): Likewise.
7710 (libutil_hidden_tls_def): Likewise.
7711 (libutil_hidden_tls_def): Likweise.
7712 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7713 libc_hidden_tls_def.
7714 (__sim_disabled_exceptions_thread): Likewise.
7715 (__sim_round_mode_thread): Likewise.
7716
7717 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7718 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7719 copy attributes from name.
7720
7721 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7722
7723 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7724 Use __attribute_copy__ to copy attributes from name.
7725
7726 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7727 with __hidden_ver1 call.
7728 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7729 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7730 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7731 (__cosf): Do not declare here.
7732 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7733 (__sincosf): Do not declare here.
7734 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7735 (__sinf): Do not declare here.
7736
7737 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7738 (__BIG_ENDIAN): Likewise.
7739 (__BYTE_ORDER): Likewise.
7740 (strong_alias): Likewise.
7741 (_strong_alias): Likewise.
7742
7743 2018-11-12 Florian Weimer <fweimer@redhat.com>
7744
7745 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7746 function. Move after the definition of in_smallbin_range. Do not
7747 use __builtin_expect for paths that lead to a noreturn function.
7748 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7749 because it is unclear whether this is in fact an unlikely
7750 condition.
7751 (_int_malloc, _int_free): Adjust.
7752 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7753 variables.
7754 * malloc/arena.c (heap_trim): Likewise.
7755
7756 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7757
7758 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7759 it, free it if needed.
7760 (reauthenticate): Test and use ccwdir.
7761 (child_init_port): In non-resetids case, test and use ccwdir.
7762 (child_chdir): New nested function to set ccwdir.
7763 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7764 * hurd/hurd/port.h (_hurd_port_move): New function.
7765 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7766 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7767 * hurd/Versions (_hurd_port_move): Export function.
7768 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7769 symbol.
7770 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7771 of dtablesize for allocating dtable_cloexec.
7772
7773 2018-11-09 Martin Sebor <msebor@redhat.com>
7774
7775 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7776 it's already defined.
7777 (_strong_alias): Use __attribute_copy__.
7778 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7779 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7780 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7781 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7782 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7783 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7784 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7785 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7786 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7787 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7788 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7789 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7790 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7791 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7792 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7793 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7794 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7795 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7796 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7797
7798 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7799
7800 * misc/tst-efgcvt.c: Include support/check.h and
7801 support/test-driver.c. Do not include test-skeleton.c.
7802 (error_count): Remove.
7803 (output_error): Replace increments to error_count with calls to
7804 support_record_failure.
7805 (output_r_error): Likewise.
7806 (special): Likewise.
7807 (do_test): Unconditionally return zero.
7808 (TEST_FUNCTION): Remove.
7809
7810 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7811
7812 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7813 not $(@D)/scratch.
7814 ($(linknamespace-header-tests)): Likewise.
7815
7816 * conform/conformtest.py: New file.
7817 * conform/conformtest.pl: Remove.
7818 * conform/GlibcConform.pm: Likewise.
7819 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7820 (KEYWORDS_C99): Likewise.
7821 (KEYWORDS): Likewise.
7822 * conform/Makefile ($(conformtest-header-tests)): Use
7823 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7824 option. Use --header instead of --headers.
7825 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7826 function entries.
7827 * conform/data/spawn.h-data: Likewise.
7828 * conform/data/fcntl.h-data (openat): Add space after function
7829 name.
7830 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7831 (wcscasecmp_l): Likewise.
7832 * conform/data/termios.h-data (c_cc): Add space after element
7833 name.
7834
7835 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7836
7837 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7838 instead of manually comparing and reporting mismatching strings.
7839 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7840 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7841
7842 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7843
7844 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7845 __ASSUME_SOCKETCALL.
7846 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7847 (__ASSUME_SOCKETCALL): Remove.
7848 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7849 (__ASSUME_SOCKETCALL): Likewise.
7850 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7851 (__ASSUME_SOCKETCALL): Likewise.
7852 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7853 (__ASSUME_SOCKETCALL): Likewise.
7854 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7855 (__ASSUME_SOCKETCALL): Likewise.
7856 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7857 (__ASSUME_SOCKETCALL): Likewise.
7858 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7859 (__ASSUME_SOCKETCALL): Likewise.
7860
7861 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7862
7863 [BZ #23509]
7864 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7865 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7866 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7867 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7868 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7869 lc_unknown.
7870
7871 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7872
7873 [BZ #17630]
7874 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7875
7876 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7877
7878 [BZ #23867]
7879 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7880 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7881 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7882 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7883
7884 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7885
7886 * support/support_test_compare_string.c
7887 (support_test_compare_string): Fix printf format.
7888
7889 2018-11-07 Florian Weimer <fweimer@redhat.com>
7890
7891 Implement TEST_COMPARE_STRING.
7892 * support/check.h (TEST_COMPARE_STRING): Define.
7893 (support_test_compare_string): Declare.
7894 * support/Makefile (libsupport-routines): Add
7895 support_test_compare_string.
7896 (tests): Add tst-test_compare_string.
7897 * support/support_test_compare_string.c: New file.
7898 * support/tst-test_compare_string.c: Likewise.
7899
7900 2018-11-07 Andreas Schwab <schwab@suse.de>
7901
7902 [BZ #23864]
7903 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7904 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7905 Undef.
7906
7907 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7908
7909 [BZ #23862]
7910 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7911 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7912 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7913 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7914 Likewise.
7915
7916 2018-11-06 Florian Weimer <fweimer@redhat.com>
7917
7918 [BZ #17405]
7919 * posix/Makefile (routines): Add spawn_faction_addchdir.
7920 (tests): Add tst-spawn-chdir.
7921 * posix/Versions (GLIBC_2.29): Add
7922 posix_spawn_file_actions_addchdir_np.
7923 * posix/spawn_faction_addchdir.c: New file.
7924 * posix/spawn_faction_destroy.c
7925 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7926 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7927 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7928 chdir_action.
7929 * posix/tst-spawn-chdir.c: New file.
7930 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7931 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7932 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7933 posix_spawn_file_actions_addchdir_np.
7934 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7935 Likewise.
7936 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7937 Likewise.
7938 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7939 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7940 Likewise.
7941 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7942 Likewise.
7943 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7944 Likewise.
7945 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7946 Likewise.
7947 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7948 Likewise.
7949 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7950 Likewise.
7951 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7952 (GLIBC_2.29): Likewise.
7953 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7954 (GLIBC_2.29): Likewise.
7955 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7956 (GLIBC_2.29): Likewise.
7957 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7958 (GLIBC_2.29): Likewise.
7959 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7960 Likewise.
7961 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7962 (GLIBC_2.29): Likewise.
7963 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7964 (GLIBC_2.29): Likewise.
7965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7966 (GLIBC_2.29): Likewise.
7967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7968 (GLIBC_2.29): Likewise.
7969 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7970 Likewise.
7971 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7972 Likewise.
7973 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7974 Likewise.
7975 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7976 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7977 Likewise.
7978 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7979 Likewise.
7980 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7981 Likewise.
7982 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7983 Likewise.
7984
7985 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7986
7987 * misc/Makefile (tests): Add tst-ldbl-error.
7988 * misc/tst-ldbl-error.c: New file.
7989
7990 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7991
7992 * misc/Makefile (tests): Add tst-ldbl-warn.
7993 * misc/tst-ldbl-warn.c: New file.
7994
7995 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7996
7997 * argp/Makefile (tests): Add tst-ldbl-argp.
7998 * argp/tst-ldbl-argp.c: New file.
7999
8000 2018-11-05 Arjun Shankar <arjun@redhat.com>
8001
8002 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
8003 __gconv_path_elem and call __gconv_get_path unconditionally.
8004
8005 2018-11-05 Andreas Schwab <schwab@suse.de>
8006
8007 [BZ #22927]
8008 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
8009 creating the first helper thread failed.
8010
8011 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
8012
8013 * sysdeps/mach/hurd/msync.c: New file.
8014
8015 2018-11-02 Florian Weimer <fweimer@redhat.com>
8016
8017 * support/shell-container.c (copy_func): Call
8018 support_copy_file_range instead of copy_file_range to support
8019 cross-device copies.
8020
8021 2018-11-02 Florian Weimer <fweimer@redhat.com>
8022
8023 * support/test-container.c: Include <libc-pointer-arith.h> for
8024 ALIGN_UP.
8025
8026 2018-11-01 Zong Li <zong@andestech.com>
8027
8028 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
8029 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
8030 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
8031 (__FP_FRAC_SET_8): Add implementation for RV32 use.
8032
8033 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
8034 variable to avoid overlap arguments.
8035
8036 2018-11-01 Joseph Myers <joseph@codesourcery.com>
8037
8038 * posix/bug-regex22.c (main): Use puts with distinct error
8039 messages for unexpected success of re_compile_pattern, not printf
8040 with NULL argument to %s.
8041
8042 * stdio-common/bug22.c: Include <libc-diag.h>.
8043 (do_test): Disable -Wformat-overflow= warnings around fprintf
8044 calls outputting more than INT_MAX characters.
8045 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
8046 around printf call with NULL %s argument.
8047
8048 [BZ #23848]
8049 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
8050 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
8051 Undefine.
8052 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8053 (__ASSUME_RECVMSG_SYSCALL): Likewise.
8054 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8055 (__ASSUME_SENDTO_SYSCALL): Likewise.
8056 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8057 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
8058 [!__arch64__].
8059 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8060 (__ASSUME_CONNECT_SYSCALL): Likewise.
8061 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
8062 (__ASSUME_RECVFROM_SYSCALL): Likewise.
8063 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
8064 Define.
8065 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
8066 Likewise.
8067 [__LINUX_KERNEL_VERSION >= 0x040400]
8068 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
8069 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
8070 Remove.
8071 (listen): Likewise.
8072 (setsockopt): Likewise.
8073
8074 2018-11-01 Fredrik Noring <noring@nocrew.org>
8075
8076 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
8077 with the ISA override.
8078
8079 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
8080
8081 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
8082 #endif.
8083
8084 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8085
8086 * manual/errno.texi (EIEIO): Document how translators should
8087 translate the error message.
8088 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
8089 printing trailing whitespaces refused by git.
8090 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
8091 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
8092 * hurd/Makefile (user-interfaces): Add pci.
8093
8094 2018-10-30 Joseph Myers <joseph@codesourcery.com>
8095
8096 * conform/linknamespace.py: New file.
8097 * conform/linknamespace.pl: Remove file.
8098 * conform/Makefile ($(linknamespace-header-tests)): Use
8099 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
8100 option.
8101
8102 2018-10-30 Florian Weimer <fweimer@redhat.com>
8103
8104 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
8105 memory leaks.
8106
8107 2018-10-30 Florian Weimer <fweimer@redhat.com>
8108
8109 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
8110
8111 2018-10-30 Florian Weimer <fweimer@redhat.com>
8112
8113 * stdlib/tst-strtod-overflow.c (do_test): Switch to
8114 support_blob_repeat.
8115
8116 2018-10-30 Florian Weimer <fweimer@redhat.com>
8117
8118 Avoid spurious test failures in stdlib/test-bz22786.
8119 * support/Makefile (libsupport-routines): Add blob_repeat.
8120 (tests): Add tst-support_blob_repeat.
8121 * support/blob_repeat.h: New file.
8122 * support/blob_repeat.c: Likewise.
8123 * support/tst-support_blob_repeat.c: Likewise.
8124 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
8125 support_blob_repeat_allocate.
8126
8127 2018-10-30 Andreas Schwab <schwab@suse.de>
8128
8129 [BZ #23125]
8130 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8131 Don't use tail call.
8132 * elf/tst-unwind-main.c: New file.
8133 * elf/Makefile (tests): Add tst-unwind-main.
8134 (CFLAGS-tst-unwind-main.c): Define.
8135
8136 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8137
8138 [BZ #23791]
8139 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8140 n_cs_precedes to 0.
8141 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8142
8143 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8144
8145 * conform/glibcconform.py: Do not import shutil.
8146 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8147 of mkdtemp.
8148
8149 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8150 critic_missing for versions before 3.4.
8151 * configure: Regenerated.
8152 * manual/install.texi (Tools for Compilation): Document
8153 requirement for Python to build glibc.
8154 * INSTALL: Regenerated.
8155 * Rules [PYTHON]: Make code unconditional.
8156 * benchtests/Makefile [PYTHON]: Likewise.
8157 * conform/Makefile [PYTHON]: Likewise.
8158 * manual/Makefile [PYTHON]: Likewise.
8159 * math/Makefile [PYTHON]: Likewise.
8160
8161 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8162
8163 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8164 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8165 answer to interrupt_operation, return EIEIO instead of EINTR.
8166 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8167 _hurd_intr_rpc_msg_about_to global point to start of controlled
8168 assembly snippet. Make it check canceled flag.
8169 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8170 the _hurd_intr_rpc_msg_about_to point.
8171 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8172 issue, remove cancel flag check.
8173
8174 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8175
8176 * scripts/build-many-glibcs.py: Remove compatibility for missing
8177 os.cpu_count and re.fullmatch.
8178
8179 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8180
8181 [BZ #23822]
8182 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8183 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8184 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8185
8186 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8187
8188 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8189 macro.
8190
8191 2018-10-25 Florian Weimer <fweimer@redhat.com>
8192
8193 [BZ #23562]
8194 [BZ #23821]
8195 XFAIL siginfo_t si_band conform test on sparc64.
8196 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8197 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8198 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8199 (conformtest-xfail-conds): Add sparc64-linux.
8200 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8201 sparc64.
8202 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8203
8204 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8205
8206 * elf/elf.h (NT_MIPS_DSP): New macro.
8207 (NT_MIPS_FP_MODE): Likewise.
8208
8209 2018-10-25 Zong Li <zong@andestech.com>
8210
8211 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8212 name by adding the file extension (.so).
8213
8214 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8215
8216 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8217 (test-xfail-ISO11/threads.h/linknamespace,
8218 test-xfail-ISO11/threads.h/conform): Add.
8219
8220 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8221
8222 * math/gen-libm-test.py: Import os.
8223 (ALL_FLOATS_MANUAL): New constant.
8224 (ALL_FLOATS_SUFFIX): Likewise.
8225 (Ulps.all_functions): New function.
8226 (real_all_ulps): Likewise.
8227 (generate_err_table_sub): Likewise.
8228 (generate_err_table): Likewise.
8229 (main): Handle -s and -m options.
8230 * manual/libm-err-tab.pl: Remove.
8231 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8232 instead of libm-err-tab.pl.
8233 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8234 != no].
8235 * manual/install.texi (Tools for Compilation): Document
8236 requirement for Python to build manual.
8237 * INSTALL: Regenerated.
8238
8239 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8240
8241 * bits/time64.h: New file.
8242 * include/time.h: Replace internal_time_t with __time64_t.
8243 * posix/bits/types (__time64_t): Add.
8244 * stdlib/Makefile: Add bits/time64.h to includes.
8245 * time/tzfile.c: Replace internal_time_t with __time64_t.
8246
8247 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8248
8249 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8250 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8251 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8252 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8253 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8254 prototype.
8255 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8256 * posix/spawn_faction_addclose.c
8257 (__posix_spawn_file_actions_addclose): Add hidden definition.
8258 * posix/spawn_faction_adddup2.c
8259 (__posix_spawn_file_actions_adddup2): Likewise.
8260 * posix/spawn_faction_destroy.c
8261 (__posix_spawn_file_actions_destroy): Likewise.
8262 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8263 Likewise.
8264 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8265 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8266 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8267 Likewise.
8268 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8269 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8270 Likewise.
8271
8272 2018-10-24 Andreas Schwab <schwab@suse.de>
8273
8274 [BZ #18093]
8275 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8276 format cache.
8277 * elf/cache.c (print_cache): Likewise.
8278
8279 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8280
8281 * bits/timesize.h: New file.
8282 * stdlib/Makefile (headers): Add bits/timesize.h.
8283 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8284 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8285 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8286 (__SEM_PAD_AFTER_TIME): Likewise.
8287 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8288 (__SHM_PAD_AFTER_TIME): Likewise.
8289 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8290 (__MSQ_PAD_BEFORE_TIME): Likewise.
8291 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8292 (__SEM_PAD_BEFORE_TIME): Likewise.
8293 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8294 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8295 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8296 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8297 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8298 (__MSQ_PAD_BEFORE_TIME): Likewise.
8299 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8300 (__SEM_PAD_BEFORE_TIME): Likewise.
8301 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8302 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8303 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8304 (__MSQ_PAD_BEFORE_TIME): Likewise.
8305 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8306 (__SEM_PAD_BEFORE_TIME): Likewise.
8307 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8308 (__SHM_PAD_BEFORE_TIME): Likewise.
8309 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8310 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8311 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8312
8313 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8314
8315 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8316 USE_RDTSCP is defined.
8317 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8318 USE_RDTSCP is defined.
8319
8320 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8321
8322 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8323 defined.
8324
8325 [BZ #23709]
8326 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8327 independently of other flags.
8328
8329 2018-10-23 Florian Weimer <fweimer@redhat.com>
8330
8331 * time/tst-mktime2.c (N_STRINGS): Remove.
8332 (set_timezone): New function.
8333 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8334 (mktime_test1): Report localtime failure and check errno value.
8335 Use TEST_COMPARE.
8336 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8337 (do_test): Remove alarm call. Use set_timezone and array_length.
8338
8339 2018-10-23 Andreas Schwab <schwab@suse.de>
8340
8341 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8342 (__start_context): Use END instead of PSEUDO_END.
8343
8344 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8345
8346 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8347 version to 4.19.
8348
8349 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8350 version to 4.19.
8351
8352 [BZ #23793]
8353 * wcsmbs/c32rtomb.c: New file.
8354 * wcsmbs/mbrtoc32.c: Likewise.
8355 * wcsmbs/tst-c32-state.c: Likewise.
8356 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8357 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8358 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8359 (tests): Add tst-c32-state.
8360 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8361 $(gen-locales).
8362
8363 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8364
8365 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8366 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8367
8368 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8369
8370 [BZ #23794]
8371 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8372 pair and return 0 in that case, and use saved character to
8373 interpret following character.
8374 * wcsmbs/tst-c16-surrogate.c: New file.
8375 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8376 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8377 Depend on $(gen-locales)
8378
8379 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8380
8381 [BZ #23562]
8382 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8383 (struct siginfo_t): Use correct type for si_band.
8384
8385 2018-10-19 Florian Weimer <fweimer@redhat.com>
8386
8387 [BZ #23689]
8388 * resource/bits/types/struct_rusage.h (struct rusage): Update
8389 comment on struct. Remove extraneous field comment.
8390
8391 2018-10-18 David S. Miller <davem@davemloft.net>
8392
8393 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8394 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8395 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8396 sysdep_routines in subdir elf.
8397 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8398 version for __vdso_clock_gettime.
8399 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8400 Define.
8401 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8402 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8403
8404 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8405
8406 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8407
8408 * sysdeps/i386/init-arch.h: Removed.
8409 * sysdeps/i386/i586/init-arch.h: Likewise.
8410 * sysdeps/i386/i686/init-arch.h: Likewise.
8411 * sysdeps/i386/i686/hp-timing.h: Likewise.
8412 * sysdeps/x86_64/hp-timing.h: Likewise.
8413 * sysdeps/i386/isa.h: New file.
8414 * sysdeps/i386/i586/isa.h: Likewise.
8415 * sysdeps/i386/i686/isa.h: Likewise.
8416 * sysdeps/x86_64/isa.h: Likewise.
8417 * sysdeps/x86/hp-timing.h: New file.
8418 * sysdeps/x86/init-arch.h: Include <isa.h>.
8419
8420 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8421
8422 * math/libm-test-pow.inc (pow_test_data): Do not allow
8423 divide-by-zero exception for pow(+/- 0, -Inf).
8424
8425 2018-10-17 Zack Weinberg <zackw@panix.com>
8426
8427 * manual/job.texi (Job Control is Optional): Remove node, as
8428 job control has not been optional in quite some time.
8429 (Job Control): Mention briefly that systems older than
8430 POSIX.1-2001 might not support job control.
8431 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8432 defined on systems conforming to POSIX.1-2001.
8433
8434 2018-10-17 Arjun Shankar <arjun@redhat.com>
8435
8436 [BZ #22062]
8437 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8438 indentation.
8439 * (__gconv_read_conf): Mark function static.
8440 * (once): New static variable.
8441 * (__gconv_load_conf): New function.
8442 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8443 * iconv/gconv_db.c (once): Remove static variable.
8444 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8445 __gconv_read_conf.
8446 * (__gconv_find_transform): Likewise.
8447 * iconv/tst-iconv-mt.c: New test.
8448 * iconv/Makefile: Add tst-iconv_mt.
8449
8450 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8451
8452 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8453 bits/shm-pad.h.
8454 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8455 (shmatt_t): Define as __syscall_ulong_t.
8456 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8457 and [__SHM_PAD_AFTER_TIME].
8458 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8459 Define shm_segsz and associated padding based on
8460 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8461 Use __syscall_ulong_t instead of unsigned long int.
8462 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8463 unsigned long int.
8464 [__USE_MISC] (struct shm_info): Likewise.
8465 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8466 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8467 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8468 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8469 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8470 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8471 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8472 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8473 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8474 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8475 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8476
8477 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8478 bits/shmlba.h.
8479 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8480 (SHMLBA): Remove macro.
8481 (__getpagesize): Remove function declaration.
8482 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8483 <bits/shmlba.h>.
8484 (SHMLBA): Remove macro.
8485 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8486 <bits/shmlba.h>.
8487 (SHMLBA): Remove macro.
8488 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8489 <bits/shmlba.h>.
8490 (SHMLBA): Remove macro.
8491 (__getpagesize): Remove function declaration.
8492 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8493 <bits/shmlba.h>.
8494 (SHMLBA): Remove macro.
8495 (__getshmlba): Remove function declaration.
8496 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8497 (SHMLBA): Remove macro.
8498 (__getpagesize): Remove function declaration.
8499 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8500 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8501 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8502 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8503 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8504 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8505 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8506 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8507 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8508 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8509
8510 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8511
8512 [BZ #23275]
8513 * nptl/tst-mutex10.c: New File.
8514 * nptl/Makefile (tests): Add tst-mutex10.
8515 (tst-mutex10-ENV): New variable.
8516 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8517 Ensure that elision path is used if elision is available.
8518 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8519 Likewise.
8520 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8521 Likewise.
8522 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8523 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8524 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8525 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8526 Likewise.
8527 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8528 (__pthread_mutex_cond_lock_adjust): Likewise.
8529 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8530 Likewise.
8531 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8532 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8533 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8534 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8535 Add comments.
8536 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8537 Use atomic_load_relaxed and atomic_store_relaxed.
8538 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8539 Use atomic_store_relaxed.
8540
8541 2018-10-17 Andreas Schwab <schwab@suse.de>
8542
8543 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8544 * crypt/badsalttest.c (TIMEOUT): Likewise.
8545 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8546 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8547 * io/test-lfs.c (TIMEOUT): Likewise.
8548 * libio/tst-atime.c (TIMEOUT): Likewise.
8549 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8550 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8551 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8552 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8553 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8554 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8555 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8556 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8557 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8558 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8559 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8560 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8561 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8562 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8563 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8564 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8565 * nptl/tst-once2.c (TIMEOUT): Likewise.
8566 * nptl/tst-once3.c (TIMEOUT): Likewise.
8567 * nptl/tst-once4.c (TIMEOUT): Likewise.
8568 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8569 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8570 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8571 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8572 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8573 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8574 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8575 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8576 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8577 * posix/tst-chmod.c (TIMEOUT): Likewise.
8578 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8579 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8580 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8581 * posix/tst-regex2.c (TIMEOUT): Likewise.
8582 * posix/tst-waitid.c (TIMEOUT): Likewise.
8583 * rt/tst-aio.c (TIMEOUT): Likewise.
8584 * rt/tst-aio10.c (TIMEOUT): Likewise.
8585 * rt/tst-aio4.c (TIMEOUT): Likewise.
8586 * rt/tst-aio5.c (TIMEOUT): Likewise.
8587 * rt/tst-aio6.c (TIMEOUT): Likewise.
8588 * rt/tst-aio64.c (TIMEOUT): Likewise.
8589 * rt/tst-aio7.c (TIMEOUT): Likewise.
8590 * rt/tst-aio9.c (TIMEOUT): Likewise.
8591 * rt/tst-clock.c (TIMEOUT): Likewise.
8592 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8593 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8594 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8595 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8596 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8597 * rt/tst-timer4.c (TIMEOUT): Likewise.
8598 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8599 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8600 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8601 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8602 * time/tst-ftime.c (TIMEOUT): Likewise.
8603 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8604
8605 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8606
8607 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8608 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8609 for thunderX2.
8610
8611 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8612
8613 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8614 bits/sem-pad.h.
8615 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8616 instead of <bits/wordsize.h>.
8617 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8618 and [__SEM_PAD_AFTER_TIME].
8619 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8620 __syscall_ulong_t instead of unsigned long int.
8621 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8622 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8623 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8624 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8625 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8626 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8627 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8628 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8629 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8630 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8631 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8632
8633 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8634
8635 regex: simplify by using intprops.h
8636 [BZ#23744]
8637 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8638 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8639 intprops.h defines them.
8640
8641 regex: __builtin_expect → __glibc_unlikely
8642 [BZ#23744]
8643 This refactoring was prompted by a problem when the regex code is
8644 used as part of Gnulib and when the builder’s compiler does not grok
8645 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8646 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8647 Although this refactoring does not fix the problem directly,
8648 we might as well have Gawk use the now-preferred glibc style for when
8649 __builtin_expect is unavailable.
8650 * posix/regex_internal.h (BE): Remove.
8651 All uses replaced by __glibc_unlikely or __glibc_likely.
8652
8653 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8654
8655 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8656 bits/msq-pad.h.
8657 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8658 instead of <bits/wordsize.h>.
8659 (msgqnum_t): Define as __syscall_ulong_t.
8660 (msglen_t): Likewise.
8661 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8662 and [__MSQ_PAD_AFTER_TIME].
8663 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8664 __syscall_ulong_t instead of unsigned long int.
8665 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8666 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8667 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8668 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8669 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8670 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8671 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8672 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8673 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8674 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8675 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8676
8677 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8678
8679 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8680 (struct shmid_ds): Condition padding after time fields on
8681 [__WORDSIZE == 32].
8682 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8683 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8684 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8685
8686 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8687 (struct semid_ds): Condition padding after time fields on
8688 [__WORDSIZE == 32].
8689 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8690 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8691 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8692 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8693
8694 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8695 (struct msqid_ds): Condition padding after time fields on
8696 [__WORDSIZE == 32].
8697 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8698 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8699 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8700 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8701
8702 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8703
8704 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8705
8706 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8707
8708 * libio/tst-readline.c (TIMEOUT): Define.
8709
8710 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8711
8712 mktime fix for Gnulib + coreutils
8713 [BZ#23745]
8714 This fix affects only Gnulib. Problem discovered when
8715 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8716 * time/mktime.c:
8717 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8718 Do not define since it is not used. Defining an unused static
8719 function prompts a warning from GCC when Coreutils is configured
8720 with --enable-gcc-warnings.
8721
8722 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8723
8724 * benchtests/scripts/compare_bench.py (main): set float type on
8725 threshold argument.
8726
8727 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8728
8729 [BZ #23740]
8730 * localedata/locales/kl_GL (mon): Update, the relative case.
8731 (alt_mon): Add, fill with month names in the nominative case.
8732 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8733 (d_fmt): Set to "%b %d %Y".
8734
8735 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8736
8737 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8738 <bits/mman-linux.h>.
8739 (PROT_READ): Don't define here.
8740 (PROT_WRITE): Likewise.
8741 (PROT_EXEC): Likewise.
8742 (PROT_NONE): Likewise.
8743 (PROT_GROWSDOWN): Likewise.
8744 (PROT_GROWSUP): Likewise.
8745 (MAP_SHARED): Likewise.
8746 (MAP_PRIVATE): Likewise.
8747 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8748 [__USE_MISC] (MAP_FILE): Likewise.
8749 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8750 [__USE_MISC] (MAP_ANON): Likewise.
8751 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8752 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8753 (MCL_CURRENT): Likewise.
8754 (MCL_FUTURE): Likewise.
8755 (MCL_ONFAULT): Likewise.
8756 [__USE_MISC] (MADV_NORMAL): Likewise.
8757 [__USE_MISC] (MADV_RANDOM): Likewise.
8758 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8759 [__USE_MISC] (MADV_WILLNEED): Likewise.
8760 [__USE_MISC] (MADV_DONTNEED): Likewise.
8761 [__USE_MISC] (MADV_FREE): Likewise.
8762 [__USE_MISC] (MADV_REMOVE): Likewise.
8763 [__USE_MISC] (MADV_DONTFORK): Likewise.
8764 [__USE_MISC] (MADV_DOFORK): Likewise.
8765 [__USE_MISC] (MADV_HWPOISON): Likewise.
8766 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8767 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8768 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8769 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8770 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8771 (__MAP_ANONYMOUS): New macro.
8772 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8773 <bits/mman-linux.h> inclusion.
8774 (MAP_FIXED): Likewise.
8775 (MS_SYNC): Likewise.
8776 (MS_ASYNC): Likewise.
8777 (MS_INVALIDATE): Likewise.
8778 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8779 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8780 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8781 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8782 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8783 [__USE_MISC] (MADV_DODUMP): Likewise.
8784 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8785 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8786
8787 [BZ #23735]
8788 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8789 Define.
8790 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8791 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8792 Add test-nldbl-redirect.
8793 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8794 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8795 $(objpfx)libnldbl_nonshared.a.
8796
8797 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8798
8799 * support/support.h (support_objdir_elf_ldso): New variable.
8800 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8801 * support/Makefile (CFLAGS-support_paths.c): Add definition
8802 for OBJDIR_ELF_LDSO_PATH.
8803 * support/test-container.c (main): Search for the ld.so
8804 which is also used by the testsuite.
8805
8806 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8807
8808 [BZ #20209]
8809 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8810 should be "sap" rather than "sab".
8811 (day): Fix spelling of Sunday, should be "sapaat" rather than
8812 "sabaat".
8813
8814 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8815
8816 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8817
8818 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8819
8820 [BZ #19444]
8821 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8822 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8823 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8824
8825 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8826
8827 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8828
8829 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8830
8831 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8832 Add -mrtm.
8833 (CFLAGS-elision-unlock.c): Likewise.
8834 (CFLAGS-elision-timed.c): Likewise.
8835 (CFLAGS-elision-trylock.c): Likewise.
8836 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8837
8838 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8839
8840 [BZ #21037]
8841 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8842 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8843 new fd_to_filename interface.
8844 * libio/freopen64.c (freopen64): Likewise.
8845 * libio/tst-memstream.h: New file.
8846 * libio/tst-memstream4.c: Likewise.
8847 * libio/tst-wmemstream4.c: Likewise.
8848 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8849 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8850 and remove internal dynamic allocation.
8851
8852 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8853
8854 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8855 (MREMAP_MAYMOVE): Do not define here.
8856 [__USE_GNU] (MREMAP_FIXED): Likewise.
8857 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8858 (MREMAP_MAYMOVE): Define here instead.
8859 [__USE_GNU] (MREMAP_FIXED): Likewise.
8860 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8861 (MREMAP_MAYMOVE): Remove.
8862 [__USE_GNU] (MREMAP_FIXED): Likewise.
8863
8864 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8865
8866 * math/fromfp.h: Do not include <math_private.h>.
8867 * math/s_cacosh_template.c: Likewise.
8868 * math/s_casin_template.c: Likewise.
8869 * math/s_casinh_template.c: Likewise.
8870 * math/s_ccos_template.c: Likewise.
8871 * math/s_cproj_template.c: Likewise.
8872 * math/s_fdim_template.c: Likewise.
8873 * math/s_fmaxmag_template.c: Likewise.
8874 * math/s_fminmag_template.c: Likewise.
8875 * math/s_iseqsig_template.c: Likewise.
8876 * math/s_ldexp_template.c: Likewise.
8877 * math/s_nextdown_template.c: Likewise.
8878 * math/w_log1p_template.c: Likewise.
8879 * math/w_scalbln_template.c: Likewise.
8880 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8881 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8882 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8883 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8884 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8885 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8886 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8887 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8888 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8889 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8890 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8891 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8892 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8893 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8894 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8895 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8896 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8897 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8898 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8899 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8900 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8901 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8902 * sysdeps/ieee754/k_standardf.c: Likewise.
8903 * sysdeps/ieee754/k_standardl.c: Likewise.
8904 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8905 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8906 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8907 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8908 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8909 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8910 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8911 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8912 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8913 * sysdeps/ieee754/s_signgam.c: Likewise.
8914 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8915 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8916 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8917 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8918 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8919 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8920 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8921 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8922 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8923 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8924 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8925 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8926 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8927 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8928 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8929 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8930 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8931 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8932 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8933 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8934 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8935 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8936 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8937 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8938 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8939 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8940 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8941 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8942 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8943 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8944 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8945 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8946 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8947 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8948 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8949 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8950 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8951 <math_private.h>.
8952 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8953
8954 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8955
8956 [BZ #23716]
8957 * sysdeps/i386/dl-cet.c: Removed.
8958 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8959 prototype.
8960 (_dl_runtime_profile_shstk): Likewise.
8961 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8962 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8963
8964 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8965
8966 [BZ #23579]
8967 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8968 do_test_with_invalid_iov): New tests.
8969 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8970 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8971 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8972 errno is ENOSYS.
8973 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8974 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8975 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8976
8977 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8978
8979 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8980 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8981 (MATH_REDIRECT_BINARY_ARGS): New macro.
8982 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8983 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8984 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8985 header inclusion.
8986 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8987 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8988 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8989 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8990 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8991 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8992 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8993 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8994 Likewise.
8995 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8996 Likewise.
8997 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8998 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8999 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
9000 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
9001 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
9002 Likewise.
9003 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
9004 Likewise.
9005 * sysdeps/generic/math_private_calls.h
9006 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
9007 Do not declare and define as an inline function.
9008 * math/divtc3.c (__divtc3): Use copysign functions instead of
9009 __copysign variants.
9010 * math/multc3.c (__multc3): Likewise.
9011 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
9012 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
9013 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9014 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9015 Likewise.
9016 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
9017 (__ieee754_yn): Likewise.
9018 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9019 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
9020 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9021 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9022 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
9023 (__sin): Likewise.
9024 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
9025 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9026 Likewise.
9027 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
9028 Likewise.
9029 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
9030 Likewise.
9031 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9032 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9033 Likewise.
9034 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
9035 (__ieee754_ynf): Likewise.
9036 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
9037 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
9038 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9039 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9040 Likewise.
9041 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
9042 (__ieee754_ynl): Likewise.
9043 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
9044 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
9045 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9046 Likewise.
9047 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
9048 (__ieee754_ynl): Likewise.
9049 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
9050 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
9051 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
9052 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9053 Likewise.
9054 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
9055 (__ieee754_ynl)
9056 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
9057 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
9058 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
9059 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9060 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9061
9062 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9063 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
9064 using MATH_REDIRECT.
9065 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
9066 header inclusion.
9067 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
9068 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9069 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9070 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
9071 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9072 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9073 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9074 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
9075 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
9076 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
9077 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
9078 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9079 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9080 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9081 (round): Redirect to __round.
9082 (__roundl): Call round instead of __round.
9083 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
9084 Remove macro.
9085 [_ARCH_PWR5X] (__roundf): Likewise.
9086 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
9087 functions instead of __round variants.
9088 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9089 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9090 Likewise.
9091 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9092 Likewise.
9093 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9094 Likewise.
9095 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
9096 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
9097 __lroundl.
9098 (__ieee754_expl): Call roundl instead of __roundl.
9099
9100 2018-09-27 Andreas Schwab <schwab@suse.de>
9101
9102 [BZ #23717]
9103 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
9104 (do_test): Make st1 static.
9105
9106 2018-09-26 Andreas Schwab <schwab@suse.de>
9107
9108 [BZ #23707]
9109 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
9110 * elf/Makefile (tests): Add tst-unwind-ctor.
9111 (modules-names): Add tst-unwind-ctor-lib.
9112 ($(objpfx)tst-unwind-ctor): Depend on
9113 $(objpfx)tst-unwind-ctor-lib.so.
9114
9115 2018-09-26 Joseph Myers <joseph@codesourcery.com>
9116
9117 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
9118 file. Most contents moved from ....
9119 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
9120 and include <bits/mman-map-flags-generic.h>.
9121 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9122 (sysdep_headers): Add bits/mman-map-flags-generic.h.
9123 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
9124 <bits/mman-map-flags-generic.h>.
9125 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9126 macros defined in <bits/mman-map-flags-generic.h>.
9127 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9128 <bits/mman-map-flags-generic.h>.
9129 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9130 defined in <bits/mman-map-flags-generic.h>.
9131
9132 2018-09-26 Andreas Schwab <schwab@suse.de>
9133
9134 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9135 output.
9136
9137 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9138 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9139 Fangrui Song <maskray@google.com>
9140
9141 [BZ #20480]
9142 * config.make.in (have-textrel_ifunc): New define.
9143 * configure.ac: Add check if linker supports textrel relocation with
9144 ifunc.
9145 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9146 tst-ifunc-textrel.
9147 (CFLAGS-tst-ifunc-textrel.c): New rule.
9148 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9149 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9150 * elf/tst-ifunc-textrel.c: New file.
9151
9152 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9153
9154 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9155 <bits/procfs-prregset.h>.
9156 (prgregset_t): Define using __prgregset_t.
9157 (prfpregset_t): Define using __prfpregset_t.
9158 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9159 (sysdep_headers): Add bits/procfs-prregset.h.
9160 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9161 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9162 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9163 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9164
9165 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9166 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9167 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9168 pr_uid and pr_gid.
9169 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9170 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9171 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9172 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9173 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9174 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9175 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9176 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9177 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9178 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9179 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9180 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9181 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9182 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9183 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9184 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9185 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9186 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9187 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9188 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9189 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9190 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9191 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9192 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9193
9194 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9195 AArch64 version. Include <bits/procfs.h>.
9196 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9197 (sysdep_headers): Add bits/procfs.h.
9198 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9199 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9200 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9201 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9202 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9203 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9204 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9205 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9206 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9207 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9208 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9209 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9210 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9211 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9212 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9213 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9214 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9215
9216 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9217
9218 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9219 Use libsupport.
9220
9221 2018-09-25 Arjun Shankar <arjun@redhat.com>
9222
9223 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9224 (__gconv_max_path_elem_len): Likewise.
9225 (__gconv_nmodules): Likewise.
9226 (__gconv_get_path): Likewise.
9227 (path_elem): Move to ...
9228 * iconv/gconv_conf.c: ... here.
9229 (__gconv_get_path): Mark function static.
9230 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9231 * iconv/gconv_open.c: ... here.
9232
9233 2018-09-24 Andreas Schwab <schwab@suse.de>
9234
9235 * scripts/haveversions.awk: New file.
9236 * Makerules ($(common-objpfx)Versions.def)
9237 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9238 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9239 Move rules ...
9240 * Makeconfig ($(common-objpfx)Versions.def)
9241 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9242 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9243 ... here.
9244 ($(common-objpfx)Versions.mk): New rule. Include it.
9245 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9246 Emit error if build-obsolete-nsl = yes.
9247 * manual/install.texi (Configuring and compiling): Describe
9248 --enable-obsolete-nsl as unavaiable after version 2.28.
9249 * INSTALL: Regenerate.
9250
9251 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9252
9253 * NEWS: Add note about new TLE support on powerpc64le.
9254 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9255 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9256 __ununsed1.
9257 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9258 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9259 * sysdeps/powerpc/powerpc32/sysdep.h,
9260 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9261 ABORT_TRANSACTION): Remove macros.
9262 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9263 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9264 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9266 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9267 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9268 usage.
9269 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9270
9271 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9272
9273 [BZ #10425]
9274 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9275 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9276 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9277 which is the same as in it_IT.
9278 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9279 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9280
9281 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9282
9283 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9284 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9285 using MATH_REDIRECT.
9286 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9287 header inclusion.
9288 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9289 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9290 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9291 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9292 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9293 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9294 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9295 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9296 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9297 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9298 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9299 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9300 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9301 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9302 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9303 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9304 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9305 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9306 (ceil): Redirect to __ceil.
9307 (floor): Redirect to __floor.
9308 (trunc): Redirect to __trunc.
9309 (__truncl): Call trunc instead of __trunc.
9310 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9311 Remove macro.
9312 [_ARCH_PWR5X] (__truncf): Likewise.
9313 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9314 trunc functions instead of __trunc variants.
9315 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9316 Likewise.
9317 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9318 Likewise.
9319 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9320 Likewise.
9321 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9322 Likewise.
9323
9324 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9325 [__i586__ || __pentium__].
9326 [__i486__]: Handle explicitly.
9327 (HAS_CPUID): Define to 1 if above macros are undefined.
9328 (HAS_I586): Likewise.
9329 (HAS_I686): Likewise.
9330
9331 2018-09-20 Florian Weimer <fweimer@redhat.com>
9332
9333 * misc/tst-gethostid.c: New file.
9334 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9335 (tst-gethostid): Link with -ldl.
9336
9337 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9338
9339 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9340 value from gethostbyname_r.
9341
9342 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9343
9344 * stdlib/tst-setcontext9.c (f1): Rename to...
9345 (f1a): ... this.
9346 (f1b): New function implementing lower half of f1 in alternate stack.
9347
9348 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9349
9350 Fix mktime localtime offset confusion
9351 [BZ #23603]
9352 * include/time.h (__mktime_internal): The localtime offset is now
9353 of type long int instead of time_t. This is the longstanding type
9354 in glibc, and it is more than enough to represent difference
9355 between localtime and gmtime even if it is 32 bits and time_t is
9356 64. Changing it now will let us avoid an unnecessary change when
9357 time_t is widened to 64 bits on 32-bit platforms.
9358 * time/mktime-internal.h (mktime_offset_t): Now long int.
9359
9360 Merge mktime, timegm from upstream Gnulib
9361 [BZ #23603][BZ #16346]
9362 This fixes some obscure problems with integer overflow.
9363 Although it looks scary, it is almost all a byte-for-byte copy
9364 from Gnulib, and the Gnulib code has been tested reasonably well.
9365 * include/intprops.h: New file, copied from Gnulib.
9366 * include/verify.h, time/mktime-internal.h:
9367 New tiny files, simplified from Gnulib.
9368 * time/mktime.c: Copy from Gnulib. This has the following changes:
9369 Do not include config.h if DEBUG_MKTIME is nonzero.
9370 Include stdbool.h, intprops.h, verify.h.
9371 Include string.h only if needed.
9372 Include stdlib.h on MS-Windows.
9373 Include mktime-internal.h.
9374 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9375 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9376 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9377 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9378 simplify later conditionals; default the others to zero. Use
9379 these conditionals to express only the code needed on the current
9380 platform. In uses of these conditionals, explicitly spell out how
9381 _LIBC affects things, so it’s easier to review from a glibc
9382 viewpoint.
9383 (WRAPV): Remove; no longer needed now that we have
9384 systematic overflow checking.
9385 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9386 compartmentalize tzset issues. Move system-dependent tzsettish
9387 code here from mktime.
9388 (verify): Remove; now done by verify.h. All uses changed.
9389 (long_int): Use a more-conservative definition, to avoid
9390 integer overflow.
9391 (SHR): Remove, replacing with ...
9392 (shr): New function, which means we needn’t worry about side
9393 effects in args, and conversion analysis is simpler.
9394 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9395 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9396 (time_t_avg, time_t_add_ok): Remove.
9397 (mktime_min, mktime_max): New constants.
9398 (leapyear, isdst_differ): Use bool for booleans.
9399 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9400 Use long_int, not time_t, for mktime differences.
9401 (long_int_avg): New function, replacing time_t_avg.
9402 INT_ADD_WRAPV replaces time_t_add_ok.
9403 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9404 All uses changed.
9405 (convert_time): New function.
9406 (ranged_convert): Use it.
9407 (__mktime_internal): Last arg now points to mktime_offset_t, not
9408 time_t. All uses changed. This is a no-op on glibc, where
9409 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9410 offset guess. Directly check for integer overflow instead of
9411 using a heuristic that works only 99.9...% of the time.
9412 Access *OFFSET only once, to avoid an unlikely race if the
9413 compiler delays a load and if this cascades into a signed integer
9414 overflow.
9415 (mktime): Move tzsettish code to my_tzset, and move
9416 localtime_offset to within mktime so that it doesn’t
9417 need a separate ifdef.
9418 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9419 instead of localtime.
9420 * time/timegm.c: Copy from Gnulib. This has the following changes:
9421 Include mktime-internal.h.
9422 [!_LIBC]: Include config.h and time.h. Do not include
9423 timegm.h or time_r.h. Make __mktime_internal a macro,
9424 and include mktime-internal.h to get its declaration.
9425 (timegm): Temporary is now mktime_offset_t, not time_t.
9426 This affects only Gnulib.
9427
9428 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9429
9430 [BZ #23637]
9431 * string/test-strstr.c (pr23637): New function.
9432 (test_main): Add tests with longer needles.
9433 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9434 * string/strstr.c (AVAILABLE): Likewise.
9435
9436 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9437
9438 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9439
9440 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9441
9442 * NEWS: Mention pow improvements.
9443 * math/Makefile (type-double-routines): Add e_pow_log_data.
9444 * sysdeps/generic/math_private.h (__exp1): Remove.
9445 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9446 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9447 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9448 contraction.
9449 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9450 (exp_inline): Remove.
9451 (__ieee754_exp): Only single double input is handled.
9452 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9453 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9454 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9455 (__pow_log_data): Define.
9456 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9457 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9458 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9459 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9460 contraction.
9461 (CFLAGS-e_pow-fma4.c): Likewise.
9462
9463 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9464
9465 Simplify tzfile fstat failure code
9466 [BZ #21716]
9467 * time/tzfile.c (__tzfile_read): Simplify slightly.
9468
9469 Fix tzfile low-memory assertion failure
9470 [BZ #21716]
9471 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9472 when registering time zone abbreviations.
9473
9474 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9475
9476 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9477 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9478 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9479 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9480 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9481 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9482 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9483 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9484 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9485
9486 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9487 __ceil.
9488 (__ceill): Call ceil instead of __ceil.
9489 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9490 __floor.
9491 (__floorl): Call floor instead of __floor.
9492
9493 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9494
9495 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9496 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9497 using MATH_REDIRECT.
9498 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9499 header inclusion.
9500 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9501 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9502 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9503 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9504 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9505 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9506 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9507 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9508 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9509 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9510 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9511 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9512 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9513 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9514 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9515 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9516 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9517 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9518 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9519 Remove macro.
9520 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9521 functions instead of __ceil variants.
9522 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9523 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9524 Likewise.
9525 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9526 Likewise.
9527 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9528 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9529 Likewise.
9530 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9531 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9532
9533 [BZ #21286]
9534 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9535 constant.
9536 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9537 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9538 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9539 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9540 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9541 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9542 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9543 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9544 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9545 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9546 (ILL_BADIADDR): Remove constant.
9547 (TRAP_BRANCH): Likewise.
9548 (TRAP_HWBKPT): Likewise.
9549
9550 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9551
9552 [BZ #23656]
9553 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9554 Remove [_MIPS_SIM = _ABIN32] conditional case.
9555 (struct elf_prpsinfo): Likewise.
9556
9557 [BZ #23649]
9558 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9559 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9560 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9561 Likewise.
9562 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9563 elf_prpsinfo): Likewise.
9564 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9565 elf_prpsinfo): Likewise.
9566 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9567 Likewise.
9568
9569 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9570 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9571 using MATH_REDIRECT.
9572 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9573 header inclusion.
9574 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9575 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9576 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9577 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9578 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9579 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9580 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9581 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9582 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9583 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9584 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9585 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9586 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9587 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9588 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9589 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9590 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9591 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9592 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9593 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9595 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9596 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9597 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9598 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9599 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9600 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9601 __rint variants.
9602 * math/e_scalbf.c (invalid_fn): Likewise.
9603 * math/e_scalbl.c (invalid_fn): Likewise.
9604 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9605 Likewise.
9606 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9607 Likewise.
9608 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9609 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9610 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9611 Likewise.
9612 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9613 Likewise.
9614 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9615 Likewise.
9616 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9617 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9618
9619 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9620 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9621 New macro.
9622 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9623 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9624 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9625 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9626 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9627 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9628 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9629 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9630 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9631 && !NO_MATH_REDIRECT] (floor): Likewise.
9632 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9633 header inclusion.
9634 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9635 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9636 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9637 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9638 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9639 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9640 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9641 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9643 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9646 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9647 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9648 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9649 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9650 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9651 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9652 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9653 Remove macro.
9654 [_ARCH_PWR5X] (__floorf): Likewise.
9655 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9656 inline function.
9657 [__SSE4_1__] (__floorf): Likewise.
9658 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9659 instead of __floor variants.
9660 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9661 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9662 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9663 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9664 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9665 * math/w_tgamma_compat.c (__tgamma): Likewise.
9666 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9667 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9668 * math/w_tgammal_compat.c (__tgammal): Likewise.
9669 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9670 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9671 Likewise.
9672 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9673 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9674 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9675 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9676 Likewise.
9677 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9678 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9679 Likewise.
9680 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9681 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9682 Likewise.
9683 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9684 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9685 Likewise.
9686 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9687 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9688 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9689 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9690 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9691 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9692
9693 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9694
9695 * elf/Makefile (modules-names-tests): New variable.
9696
9697 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9698
9699 * NEWS: Mention log2 improvements.
9700 * math/Makefile (type-double-routines): Add e_log2_data.
9701 * sysdeps/i386/fpu/e_log2_data.c: New file.
9702 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9703 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9704 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9705 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9706 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9707 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9708
9709 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9710
9711 * NEWS: Mention log improvement.
9712 * math/Makefile (type-double-routines): Add e_log_data.
9713 * sysdeps/i386/fpu/e_log_data.c: New file.
9714 * sysdeps/ia64/fpu/e_log_data.c: New file.
9715 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9716 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9717 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9718 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9719 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9720 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9721
9722 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9723 Xuepeng Guo <xuepeng.guo@intel.com>
9724
9725 [BZ #23606]
9726 * sysdeps/i386/start.S: Include <sysdep.h>
9727 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9728 enabled. Add cfi_undefined (eip).
9729
9730 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9731
9732 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9733 (MOVQ): Likewise.
9734 (EXTRACT_WORDS64): Likewise.
9735 (INSERT_WORDS64): Likewise.
9736 (GET_FLOAT_WORD): Likewise.
9737 (SET_FLOAT_WORD): Likewise.
9738
9739 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9740 argument.
9741 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9742 build, but not for second build if --full-gcc. Use
9743 --enable-languages=all for second build if --full-gcc.
9744 (get_parser): Add --full-gcc option.
9745 (main): Update call to Context.
9746
9747 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9748
9749 [BZ #10797]
9750 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9751 Single Quotation Mark).
9752 (thousands_sep): Likewise.
9753 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9754 * localedata/locales/it_IT (thousands_sep): Use ".".
9755 (grouping): Use "3;3".
9756
9757 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9758
9759 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9760 x86_64 and i686 configs using --enable-obsolete-rpc
9761 --enable-obsolete-nsl.
9762
9763 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9764
9765 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9766
9767 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9768
9769 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9770 Increment size of new_argv by one.
9771
9772 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9773
9774 [BZ #17426]
9775 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9776 * localedata/locales/ar_IN (d_fmt): Likewise.
9777 * localedata/locales/bhb_IN (d_fmt): Likewise.
9778 * localedata/locales/bho_IN (d_fmt): Likewise.
9779 * localedata/locales/bn_BD (d_fmt): Likewise.
9780 * localedata/locales/bn_IN (d_fmt): Likewise.
9781 * localedata/locales/doi_IN (d_fmt): Likewise.
9782 * localedata/locales/gu_IN (d_fmt): Likewise.
9783 * localedata/locales/hi_IN (d_fmt): Likewise.
9784 * localedata/locales/hne_IN (d_fmt): Likewise.
9785 * localedata/locales/kn_IN (d_fmt): Likewise.
9786 * localedata/locales/mag_IN (d_fmt): Likewise.
9787 * localedata/locales/mai_IN (d_fmt): Likewise.
9788 * localedata/locales/mjw_IN (d_fmt): Likewise.
9789 * localedata/locales/ml_IN (d_fmt): Likewise.
9790 * localedata/locales/mni_IN (d_fmt): Likewise.
9791 * localedata/locales/mr_IN (d_fmt): Likewise.
9792 * localedata/locales/pa_IN (d_fmt): Likewise.
9793 * localedata/locales/raj_IN (d_fmt): Likewise.
9794 * localedata/locales/sat_IN (d_fmt): Likewise.
9795 * localedata/locales/sd_IN (d_fmt): Likewise.
9796 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9797 * localedata/locales/ta_IN (d_fmt): Likewise.
9798 * localedata/locales/ta_LK (d_fmt): Likewise.
9799 * localedata/locales/tcy_IN (d_fmt): Likewise.
9800 * localedata/locales/ur_IN (d_fmt): Likewise.
9801
9802 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9803 * localedata/locales/ks_IN (d_fmt): Likewise.
9804 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9805
9806 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9807 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9808 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9809 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9810
9811 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9812
9813 * NEWS: Mention exp and exp2 improvements.
9814 * math/Makefile (libm-support): Remove t_exp.
9815 (type-double-routines): Add math_err and e_exp_data.
9816 * sysdeps/aarch64/libm-test-ulps: Update.
9817 * sysdeps/arm/libm-test-ulps: Update.
9818 * sysdeps/i386/fpu/e_exp_data.c: New file.
9819 * sysdeps/i386/fpu/math_err.c: New file.
9820 * sysdeps/i386/fpu/t_exp.c: Remove.
9821 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9822 * sysdeps/ia64/fpu/math_err.c: New file.
9823 * sysdeps/ia64/fpu/t_exp.c: Remove.
9824 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9825 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9826 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9827 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9828 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9829 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9830 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9831 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9832 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9833 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9834 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9835 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9836 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9837 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9838 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9839 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9840
9841 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9842
9843 * sysdeps/alpha/fpu/math_private.h: Remove.
9844
9845 * sysdeps/generic/math_private.h
9846 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9847 Move this inline function ....
9848 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9849 * include/math.h [!_ISOMAC]: To here....
9850
9851 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9852
9853 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9854 code ....
9855 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9856 * include/fenv.h [!_ISOMAC]: ... to here.
9857 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9858 (feraiseexcept): Likewise.
9859 * math/fromfp.h: Do not include <fenv_private.h>.
9860 * math/s_cexp_template.c: Likewise.
9861 * math/s_csin_template.c: Likewise.
9862 * math/s_csinh_template.c: Likewise.
9863 * math/s_ctan_template.c: Likewise.
9864 * math/s_ctanh_template.c: Likewise.
9865 * math/s_iseqsig_template.c: Likewise.
9866 * math/w_acos_compat.c: Likewise.
9867 * math/w_acosf_compat.c: Likewise.
9868 * math/w_acosl_compat.c: Likewise.
9869 * math/w_asin_compat.c: Likewise.
9870 * math/w_asinf_compat.c: Likewise.
9871 * math/w_asinl_compat.c: Likewise.
9872 * math/w_j0_compat.c: Likewise.
9873 * math/w_j0f_compat.c: Likewise.
9874 * math/w_j0l_compat.c: Likewise.
9875 * math/w_j1_compat.c: Likewise.
9876 * math/w_j1f_compat.c: Likewise.
9877 * math/w_j1l_compat.c: Likewise.
9878 * math/w_jn_compat.c: Likewise.
9879 * math/w_jnf_compat.c: Likewise.
9880 * math/w_log10_compat.c: Likewise.
9881 * math/w_log10f_compat.c: Likewise.
9882 * math/w_log10l_compat.c: Likewise.
9883 * math/w_log2_compat.c: Likewise.
9884 * math/w_log2f_compat.c: Likewise.
9885 * math/w_log2l_compat.c: Likewise.
9886 * math/w_log_compat.c: Likewise.
9887 * math/w_logf_compat.c: Likewise.
9888 * math/w_logl_compat.c: Likewise.
9889 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9890 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9891 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9892 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9893 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9894 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9895 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9896 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9897 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9898 * sysdeps/ieee754/k_standardl.c: Likewise.
9899 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9900 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9901 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9902 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9903 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9904 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9905 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9906 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9907 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9908 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9909 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9910 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9911 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9912 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9913 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9914 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9915 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9916 * math/w_ilogb_template.c: Include <fenv.h> instead of
9917 <fenv_private.h>.
9918 * math/w_llogb_template.c: Likewise.
9919 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9920 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9921
9922 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9923
9924 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9925 * math/fromfp.h: Include <fenv_private.h>.
9926 * math/math-narrow.h: Likewise.
9927 * math/s_cexp_template.c: Likewise.
9928 * math/s_csin_template.c: Likewise.
9929 * math/s_csinh_template.c: Likewise.
9930 * math/s_ctan_template.c: Likewise.
9931 * math/s_ctanh_template.c: Likewise.
9932 * math/s_iseqsig_template.c: Likewise.
9933 * math/w_acos_compat.c: Likewise.
9934 * math/w_acosf_compat.c: Likewise.
9935 * math/w_acosl_compat.c: Likewise.
9936 * math/w_asin_compat.c: Likewise.
9937 * math/w_asinf_compat.c: Likewise.
9938 * math/w_asinl_compat.c: Likewise.
9939 * math/w_ilogb_template.c: Likewise.
9940 * math/w_j0_compat.c: Likewise.
9941 * math/w_j0f_compat.c: Likewise.
9942 * math/w_j0l_compat.c: Likewise.
9943 * math/w_j1_compat.c: Likewise.
9944 * math/w_j1f_compat.c: Likewise.
9945 * math/w_j1l_compat.c: Likewise.
9946 * math/w_jn_compat.c: Likewise.
9947 * math/w_jnf_compat.c: Likewise.
9948 * math/w_llogb_template.c: Likewise.
9949 * math/w_log10_compat.c: Likewise.
9950 * math/w_log10f_compat.c: Likewise.
9951 * math/w_log10l_compat.c: Likewise.
9952 * math/w_log2_compat.c: Likewise.
9953 * math/w_log2f_compat.c: Likewise.
9954 * math/w_log2l_compat.c: Likewise.
9955 * math/w_log_compat.c: Likewise.
9956 * math/w_logf_compat.c: Likewise.
9957 * math/w_logl_compat.c: Likewise.
9958 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9959 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9960 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9961 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9962 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9963 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9964 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9965 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9966 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9967 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9968 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9969 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9970 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9971 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9972 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9973 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9974 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9975 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9976 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9977 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9978 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9979 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9980 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9981 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9982 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9983 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9984 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9985 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9986 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9987 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9988 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9989 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9990 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9991 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9992 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9993 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9994 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9995 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9996 * sysdeps/ieee754/k_standardl.c: Likewise.
9997 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9998 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9999 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10000 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10001 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
10002 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
10003 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
10004 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
10005 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
10006 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
10007 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
10008 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
10009 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
10010 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10011 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10012 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
10013 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
10014 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
10015 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
10016 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
10017 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
10018 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
10019 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
10020 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
10021 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
10022 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10023 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10024 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
10025 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
10026 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
10027 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
10028 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
10029 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
10030 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
10031 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
10032 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
10033 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10034 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10035 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
10036 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
10037 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
10038 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
10039 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
10040 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
10041 * sysdeps/riscv/rvd/s_finite.c: Likewise.
10042 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
10043 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
10044 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
10045 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
10046 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
10047 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
10048 * sysdeps/riscv/rvf/fegetround.c: Likewise.
10049 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
10050 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
10051 * sysdeps/riscv/rvf/fesetround.c: Likewise.
10052 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
10053 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
10054 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
10055 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
10056 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
10057 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
10058 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
10059 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
10060 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
10061 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
10062 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
10063 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
10064 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
10065 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
10066 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
10067 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
10068
10069 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10070
10071 [BZ #20271]
10072 * include/stdio.h (__libc_fatal): Mention newline in comment.
10073 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
10074 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
10075 * nscd/initgrcache.c (addinitgroupsX): Likewise.
10076 * nss/nsswitch.c (__nss_next2): Likewise.
10077 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
10078 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
10079 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
10080 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
10081 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
10082 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
10083 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
10084 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
10085 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
10086 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
10087 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
10088 * sysdeps/unix/sysv/linux/netlink_assert_response.c
10089 (__netlink_assert_response): Likewise.
10090
10091 2018-08-31 Joseph Myers <joseph@codesourcery.com>
10092
10093 * conform/glibcconform.py: New file.
10094 * conform/list-header-symbols.py: Likewise.
10095 * conform/list-header-symbols.pl: Remove.
10096 * conform/Makefile (tests-special): Only add linknamespace tests
10097 if [PYTHON].
10098 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
10099
10100 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
10101
10102 [BZ #23597]
10103 * support/Makefile (libsupport-routines): Add
10104 support_copy_file_range and xcopy_file_range.
10105 * support/support.h: Include <sys/types.h>.
10106 (support_copy_file_range): New prototype.
10107 * support/support_copy_file_range.c: New file. Copied and
10108 modified from io/copy_file_range-compat.c.
10109 * support/test-container.c (copy_one_file): Call xcopy_file_rang
10110 instead of copy_file_range.
10111 * support/xcopy_file_range.c: New file.
10112 * support/xunistd.h (xcopy_file_range): New prototype.
10113
10114 2018-08-30 Carlos O'Donell <carlos@redhat.com>
10115
10116 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
10117 xpthread_create and xpthread_join.
10118
10119 2018-08-30 Florian Weimer <fweimer@redhat.com>
10120
10121 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
10122
10123 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
10124
10125 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10126 if malloc fails.
10127
10128 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10129
10130 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10131 and minus_oflow as non-finite.
10132
10133 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10134
10135 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10136 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10137 moved to fenv_private.h except for ...
10138 (TOINT_INTRINSICS): Kept in math_private.h.
10139 (roundtoint): Likewise.
10140 (converttoint): Likewise.
10141 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10142 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10143 * sysdeps/arm/math_private.h: Remove.
10144 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10145 ....
10146 * sysdeps/generic/math_private.h: ... this file. Include
10147 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10148 Include <fenv_private.h>. Remove functions and macros moved to
10149 fenv_private.h.
10150 * sysdeps/i386/fpu/math_private.h: Remove.
10151 * sysdeps/mips/math_private.h: Move to ....
10152 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10153 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10154 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10155 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10156 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10157 * sysdeps/powerpc/fpu/math_private.h: Do not include
10158 <fenv_private.h>.
10159 * sysdeps/riscv/rvf/math_private.h: Move to ....
10160 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10161 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10162 <fenv_private.h>.
10163 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10164 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10165 * sysdeps/sparc/fpu/math_private.h: Remove.
10166 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10167 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10168 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10169 <fenv_private.h>.
10170 * sysdeps/x86_64/fpu/math_private.h: Do not include
10171 <sysdeps/i386/fpu/fenv_private.h>.
10172
10173 2018-08-28 Florian Weimer <fweimer@redhat.com>
10174
10175 [BZ #23578]
10176 * posix/tst-regcomp-truncated.c: New file.
10177 * posix/Makefile (tests): Add it.
10178 (tst-regcomp-truncated.out): Depend on generated locales.
10179
10180 2018-08-28 Florian Weimer <fweimer@redhat.com>
10181
10182 * support/test-container.c (main): Treat unshare failure with
10183 EPERM as an unsupported test.
10184
10185 2018-08-28 Florian Weimer <fweimer@redhat.com>
10186
10187 [BZ #23520]
10188 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10189 * nscd/netgroupcache.c
10190 (addgetnetgrentX): Add tofreep parameter. Do not free
10191 heap-allocated buffer.
10192 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10193 (addgetnetgrentX_ignore): New function.
10194 (addgetnetgrent): Call it.
10195 (readdgetnetgrent): Likewise.
10196
10197 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10198
10199 * string/memmem.c: Use memcmp for first match.
10200
10201 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10202
10203 [BZ #17426]
10204 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10205
10206 2018-08-27 DJ Delorie <dj@redhat.com>
10207
10208 * support/Makefile (others): Don't list programs explicitly as a
10209 dependency of "others".
10210
10211 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10212
10213 * sysdeps/generic/math-tests-trap-force.h: New file.
10214 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10215 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10216 * sysdeps/powerpc/math-tests.h: Remove file.
10217 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10218
10219 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10220 Torvald Riegel <triegel@redhat.com>
10221
10222 [BZ #23538]
10223 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10224 Update r to include the set wake-request flag if waiters are
10225 remaining after spinning.
10226
10227 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10228
10229 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10230
10231 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10232
10233 [BZ #23578]
10234 regex: fix uninitialized memory access
10235 I introduced this bug into gnulib in commit
10236 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10237 eventually it was merged into glibc. The bug was found by
10238 project-repo <bugs@feusi.co> and reported here:
10239 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10240 Diagnosis and draft fix reported by Assaf Gordon here:
10241 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10242 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10243 * posix/regex_internal.c (build_wcs_upper_buffer):
10244 Fix bug when mbrtowc returns 0.
10245
10246 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10247
10248 * po/be.po: Update translation.
10249
10250 2018-08-24 DJ Delorie <dj@delorie.com>
10251
10252 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10253 $(libunwind).
10254
10255 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10256
10257 [BZ #23400]
10258 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10259 create temporary files in source tree.
10260
10261 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10262
10263 * sysdeps/generic/math-tests-trap.h: New file.
10264 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10265 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10266 * sysdeps/aarch64/math-tests.h: Remove file.
10267 * sysdeps/arm/math-tests.h: Likewise.
10268 * sysdeps/riscv/math-tests.h: Likewise.
10269 * sysdeps/aarch64/math-tests-trap.h: New file.
10270 * sysdeps/arm/math-tests-trap.h: Likewise.
10271 * sysdeps/riscv/math-tests-trap.h: Likewise.
10272
10273 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10274
10275 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10276 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10277 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10278 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10279 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10280 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10281 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10282 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10283 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10284 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10285 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10286 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10287 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10288 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10289 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10290 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10291 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10292 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10293
10294 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10295
10296 * sysdeps/generic/math-tests-exceptions.h: New file.
10297 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10298 (EXCEPTION_TESTS_float): Do not define here.
10299 (EXCEPTION_TESTS_double): Likewise.
10300 (EXCEPTION_TESTS_long_double): Likewise.
10301 (EXCEPTION_TESTS_float128): Likewise.
10302 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10303 Likewise.
10304 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10305 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10306 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10307 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10308 * sysdeps/mips/math-tests.h: Likewise.
10309 * sysdeps/nios2/math-tests.h: Likewise.
10310 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10311 (EXCEPTION_TESTS_float): Do not define here.
10312 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10313 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10314 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10315
10316 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10317
10318 * NEWS: Move optimized sinf entry to 2.29.
10319
10320 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10321
10322 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10323
10324 2018-08-22 DJ Delorie <dj@redhat.com>
10325
10326 * Makefile (testroot.pristine): New rules to initialize the
10327 test-in-container "testroot".
10328 * Makerules (all-testsuite): Add tests-container.
10329 * Rules (tests-expected): Add tests-container.
10330 (binaries-all-tests): Likewise.
10331 (tests-container): New, run these tests in the testroot container.
10332 * support/Makefile (others): Add *-container, support_paths.c,
10333 xmkdirp, and links-dso-program.
10334 * support/links-dso-program-c.c: New.
10335 * support/links-dso-program.cc: New.
10336 * support/test-container.c: New.
10337 * support/shell-container.c: New.
10338 * support/echo-container.c: New.
10339 * support/true-container.c: New.
10340 * support/xmkdirp.c: New.
10341 * support/xsymlink.c: New.
10342 * support/support_paths.c: New.
10343 * support/support.h: Add support paths prototypes.
10344 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10345
10346 * nss/tst-nss-test3.c: Convert to test-in-container.
10347 * nss/tst-nss-test3.root/: New.
10348
10349 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10350
10351 regex: port Gnulib code to z/OS POSIX environment
10352 Problem reported by Arnold Robbins in:
10353 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10354 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10355 Undef.
10356
10357 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10358
10359 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10360 (ROUNDING_TESTS_double): Remove.
10361 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10362 (ROUNDING_TESTS_double): Remove.
10363 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10364 (ROUNDING_TESTS_double): Remove.
10365 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10366 (ROUNDING_TESTS_float): Remove.
10367 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10368 (ROUNDING_TESTS_float): Remove.
10369 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10370 (ROUNDING_TESTS_float): Remove.
10371 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10372 !TEST_MATHVEC here.
10373 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10374 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10375
10376 * sysdeps/generic/math-tests-rounding.h: New file.
10377 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10378 (ROUNDING_TESTS_float): Do not define here.
10379 (ROUNDING_TESTS_double): Likewise.
10380 (ROUNDING_TESTS_long_double): Likewise.
10381 (ROUNDING_TESTS_float128): Likewise.
10382 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10383 (ROUNDING_TESTS_double): Undefine before defining.
10384 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10385 (ROUNDING_TESTS_double): Undefine before defining.
10386 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10387 (ROUNDING_TESTS_double): Undefine before defining.
10388 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10389 (ROUNDING_TESTS_float): Undefine before defining.
10390 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10391 (ROUNDING_TESTS_float): Undefine before defining.
10392 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10393 (ROUNDING_TESTS_float): Undefine before defining.
10394 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10395 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10396 not define here.
10397 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10398 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10399 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10400 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10401 (ROUNDING_TESTS_float): Do not define here.
10402 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10403 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10404 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10405 (ROUNDING_TESTS_float): Likewise.
10406 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10407 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10408 * sysdeps/mips/math-tests.h [__mips_soft_float]
10409 (ROUNDING_TESTS_float): Likewise.
10410 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10411 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10412 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10413 (ROUNDING_TESTS_double): Likewise.
10414 (ROUNDING_TESTS_long_double): Likewise.
10415
10416 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10417
10418 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10419 (PF_XDP): New macro.
10420 (AF_XDP): New macro.
10421 (SOL_XDP): New macro.
10422
10423 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10424
10425 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10426 (TCP_INQ): Likewise.
10427 (TCP_CM_INQ): Likewise.
10428 (TCP_REPAIR_ON): Likewise.
10429 (TCP_REPAIR_OFF): Likewise.
10430 (TCP_REPAIR_OFF_NO_WP): Likewise.
10431 (struct tcp_zerocopy_receive): New type.
10432
10433 2018-08-21 Florian Weimer <fweimer@redhat.com>
10434
10435 * support/support.h (support_descriptor_supports_holes): Declare.
10436 * support/Makefile (libsupport-routines): Add
10437 support_descriptor_supports_holes.
10438 * support/support_descriptor_supports_holes.c: New file.
10439 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10440 and stop testing if holes are not supported.
10441 * io/test-lfs.c (do_prepare): Likewise.
10442 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10443 Likewise.
10444 * timezone/tst-tzset.c (create_tz_file): Likewise.
10445 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10446 variable.
10447 (do_prepare): Set it.
10448 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10449
10450 2018-08-21 Florian Weimer <fweimer@redhat.com>
10451
10452 [BZ #17248]
10453 * Makeconfig (+cflags): Do not sort (and deduplicate).
10454
10455 2018-08-21 Florian Weimer <fweimer@redhat.com>
10456
10457 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10458 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10459
10460 2018-08-20 Florian Weimer <fweimer@redhat.com>
10461
10462 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10463 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10464
10465 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10466
10467 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10468 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10469 and ssi_arch members.
10470
10471 * elf/elf.c (NT_VMCOREDD): New macro.
10472 (AT_MINSIGSTKSZ): Likewise.
10473
10474 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10475
10476 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10477 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10478 s_cosf-ppc64 and s_cosf-power8.
10479 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10480 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10481 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10482 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10483 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10484 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10485 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10486 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10487 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10488 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10489 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10490 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10491
10492 2018-08-17 Florian Weimer <fweimer@redhat.com>
10493
10494 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10495
10496 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10497
10498 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10499
10500 2018-08-16 Florian Weimer <fweimer@redhat.com>
10501
10502 * configure.ac: Add --with-nonshared-cflags option.
10503 * config.make.in (extra-nonshared-cflags): Set variable.
10504 * Makeconfig (CFLAGS-.oS): Use it.
10505 * manual/install.texi (Configuring and compiling): Document
10506 --with-nonshared-cflags.
10507 * configure: Regenerate.
10508 * INSTALL: Likewise.
10509
10510 2018-08-16 Florian Weimer <fweimer@redhat.com>
10511
10512 * Makeconfig (ASFLAGS): Always append required assembler flags.
10513
10514 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10515
10516 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10517 (malloc_consolidate): Likewise.
10518
10519 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10520
10521 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10522
10523 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10524
10525 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10526 every strlen call.
10527
10528 * benchtests/bench-strlen.c: Print performance numbers in json.
10529
10530 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10531
10532 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10533 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10534 only for little endian.
10535 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10536 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10537 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10538 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10539 Add check for little endian.
10540 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10541 (__strcmp_power9): Add check for little endian.
10542 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10543 Add check for little endian.
10544 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10545 (__strncmp_power9): Add check for little endian.
10546 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10547 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10548 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10549 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10550 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10551
10552 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10553
10554 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10555 [!STRLEN](STRLEN): Set to __strlen.
10556 * sysdeps/aarch64/multiarch/strlen.c: New file.
10557 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10558 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10559 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10560 (__libc_ifunc_impl_list): Add strlen.
10561 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10562 strlen_generic and strlen_asimd.
10563
10564 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10565
10566 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10567 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10568 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10569
10570 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10571
10572 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10573
10574 2018-08-14 Florian Weimer <fweimer@redhat.com>
10575
10576 [BZ #23519]
10577 * include/stdio.h (__vfxprintf): Declare.
10578 * stdio-common/fxprintf.c (__vfxprintf): New function.
10579 (__fxprintf): Call it.
10580 * misc/err.c (convert_and_print): Remove function.
10581 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10582 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10583 * misc/Makefile (tests): Add tst-warn-wide.
10584 * misc/tst-warn-wide.c: New file.
10585
10586 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10587 Szabolcs Nagy <szabolcs.nagy@arm.com>
10588
10589 * NEWS: Mention sinf, cosf, sincosf.
10590 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10591 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10592 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10593 constants rather than including generic sincosf.h.
10594 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10595 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10596 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10597 (reduced_cos): Remove.
10598 (sinf_poly): New function.
10599 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10600
10601 2018-08-14 Florian Weimer <fweimer@redhat.com>
10602
10603 [BZ #23521]
10604 [BZ #23522]
10605 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10606 processing, bail out if no room, and close the stream before
10607 returning ERANGE.
10608 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10609 (tst-nss-files-alias-leak): Link with libdl.
10610 (tst-nss-files-alias-leak.out): Depend on nss_files.
10611
10612 * nss/tst-nss-files-alias-leak.c: New file.
10613
10614 2018-08-14 Florian Weimer <fweimer@redhat.com>
10615
10616 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10617 server_user, stat_user.
10618
10619 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10620
10621 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10622 version to 4.18.
10623 (io_pgetevents): New syscall.
10624 (rseq): Likewise.
10625
10626 * manual/install.texi (Configuring and compiling): Do not list
10627 tools used for testing pretty printers here.
10628 (Tools for Compilation): List Python, PExpect and GDB here.
10629 Update descriptions of uses of Perl and Python.
10630 * INSTALL: Regenerate.
10631
10632 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10633 version to 4.18.
10634
10635 2018-08-13 Florian Weimer <fweimer@redhat.com>
10636
10637 * misc/error.c (error): Add missing va_end call.
10638 (error_at_line): Likewise.
10639
10640 2018-08-13 Florian Weimer <fweimer@redhat.com>
10641
10642 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10643
10644 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10645
10646 * benchtests/scripts/benchout.schema.json (properties): Add
10647 new properties.
10648
10649 * benchtests/bench-skeleton.c (main): Add duration and
10650 iterations attributes.
10651
10652 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10653
10654 regex: Gnulib unibyte RRI uses bytes not chars
10655 Adjust the non-glibc code to agree with what Gawk needs for
10656 rational range interpretation (RRI) for regular expression ranges.
10657 In unibyte locales, Gawk wants ranges to use the underlying byte
10658 rather than the character code point. This change does not affect
10659 glibc proper.
10660 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10661 In unibyte locales, use the byte value rather than
10662 running it through btowc.
10663
10664 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10665
10666 * sysdeps/generic/math-tests-snan.h: New file.
10667 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10668 (SNAN_TESTS_float): Do not define here.
10669 (SNAN_TESTS_double): Likewise.
10670 (SNAN_TESTS_long_double): Likewise.
10671 (SNAN_TESTS_float128): Likewise.
10672 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10673 * sysdeps/i386/fpu/math-tests.h: Remove file.
10674 * sysdeps/ia64/math-tests-snan.h: New file.
10675 * sysdeps/ia64/math-tests.h: Remove file.
10676 * sysdeps/x86/math-tests.h: Likewise.
10677 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10678
10679 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10680 Szabolcs Nagy <szabolcs.nagy@arm.com>
10681
10682 * math/Makefile: Add s_sincosf_data.c.
10683 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10684 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10685 (sincosf_poly): Likewise.
10686 (reduce_small): Likewise.
10687 (reduce_large): Likewise.
10688 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10689 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10690 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10691 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10692
10693 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10694 Szabolcs Nagy <szabolcs.nagy@arm.com>
10695
10696 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10697 (converttoint): Use lround.
10698 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10699 document the semantics when TOINT_INTRINSICS is set.
10700 (converttoint): Likewise.
10701 (TOINT_RINT): Remove.
10702 (TOINT_SHIFT): Remove.
10703 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10704 path.
10705
10706 2018-08-10 Florian Weimer <fweimer@redhat.com>
10707
10708 [BZ #23497]
10709 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10710 function.
10711 (__old_getdents64): Use getdents64. Convert entries without
10712 moving them.
10713 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10714 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10715 tst-readdir64-compat.
10716
10717 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10718
10719 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10720 Fix unwind.
10721
10722 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10723
10724 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10725 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10726 code to s390x-mcount.h and #include it.
10727 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10728 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10729 (__fentry__): Add.
10730
10731 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10732
10733 * stdlib/Versions: Remove __fentry__.
10734 * sysdeps/i386/Versions: Add __fentry__.
10735 * sysdeps/x86_64/Versions: Add __fentry__.
10736
10737 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10738
10739 * sysdeps/s390/Makefile: Register the new tests.
10740 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10741 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10742 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10743 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10744 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10745 * sysdeps/s390/tst-dl-runtime.c: New file.
10746
10747 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10748
10749 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10750 Do not clobber R0.
10751
10752 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10753
10754 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10755 Do not clobber R0.
10756
10757 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10758
10759 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10760 Do not clobber R0.
10761
10762 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10763
10764 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10765 Do not clobber R0.
10766
10767 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10768
10769 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10770 Use symbolic offsets for stack variables.
10771
10772 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10773
10774 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10775 Use symbolic offsets for stack variables.
10776
10777 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10778
10779 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10780 Use symbolic offsets for stack variables.
10781
10782 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10783
10784 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10785 Use symbolic offsets for stack variables.
10786
10787 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10788
10789 * math/gen-libm-test.py: New file.
10790 * math/gen-libm-test.pl: Remove.
10791 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10792 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10793 gen-libm-test.pl.
10794 ($(libm-test-c-noauto-obj)): Likewise.
10795 ($(libm-test-c-auto-obj)): Likewise.
10796 ($(libm-test-c-narrow-obj)): Likewise.
10797 (regen-ulps): Likewise.
10798 * math/README.libm-test: Update references to gen-libm-test.pl.
10799 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10800 referencing gen-libm-test.pl.
10801 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10802 * math/libm-test-support.c: Likewise.
10803 * math/libm-test-support.h: Likewise.
10804 * sysdeps/generic/libm-test-ulps: Likewise.
10805
10806 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10807
10808 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10809 Fix value.
10810
10811 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10812
10813 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10814 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10815
10816 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10817
10818 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10819 symbols.
10820 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10821 __pthread_setspecific): Add hidden proto.
10822 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10823 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10824
10825 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10826
10827 * benchtests/bench-string.h (buf1_size, buf2_size): New
10828 variables.
10829 (init_sizes): New function.
10830 (test_init): Use it.
10831 (alloc_buf, exit_error): New functions.
10832 (alloc_bufs): Use ALLOC_BUF.
10833 (realloc_bufs): Remove.
10834 * benchtests/bench-memcmp.c (do_test): Adjust.
10835 * benchtests/bench-memset-large.c (do_test): Likewise.
10836 * benchtests/bench-memset-walk.c (do_test): Likewise.
10837 * benchtests/bench-memset.c (do_test): Likewise.
10838 * benchtests/bench-strncmp.c (do_test): Likewise.
10839
10840 2018-08-06 Andreas Schwab <schwab@suse.de>
10841
10842 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10843 of CONST_THREAD_AREA.
10844
10845 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10846
10847 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10848 (STATE_SAVE_MASK): Likewise.
10849 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10850 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10851 (STATE_SAVE_MASK): Likewise.
10852 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10853 instead of <cpu-features.h>.
10854
10855 2018-08-03 DJ Delorie <dj@redhat.com>
10856
10857 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10858 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10859
10860 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10861
10862 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10863
10864 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10865 after TEST_* calls.
10866 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10867 * math/libm-test-logb.inc (logb_test_data): Likewise.
10868
10869 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10870
10871 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10872 * string/strstr.c (AVAILABLE): Likewise.
10873
10874 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10875
10876 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10877 <init-arch.h>.
10878 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10879 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10880 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10881
10882 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10883
10884 * po/be.po: Update translation.
10885
10886 * po/be.po: Update translation.
10887
10888 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10889
10890 * sysdeps/x86/cpu-features-offsets.sym
10891 (rtld_global_ro_offsetof): Removed.
10892 (CPU_FEATURES_SIZE): Likewise.
10893 (CPUID_OFFSET): Likewise.
10894 (CPUID_SIZE): Likewise.
10895 (CPUID_EAX_OFFSET): Likewise.
10896 (CPUID_EBX_OFFSET): Likewise.
10897 (CPUID_ECX_OFFSET): Likewise.
10898 (CPUID_EDX_OFFSET): Likewise.
10899 (FAMILY_OFFSET): Likewise.
10900 (MODEL_OFFSET): Likewise.
10901 (FEATURE_OFFSET): Likewise.
10902 (FEATURE_SIZ): Likewise.
10903 (COMMON_CPUID_INDEX_1): Likewise.
10904 (COMMON_CPUID_INDEX_7): Likewise.
10905 (FEATURE_INDEX_1): Likewise.
10906 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10907
10908 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10909
10910 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10911 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10912 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10913 (install-locales): Depend on install-locale-archive.
10914 (install-locale-archive): Define.
10915 (install-locale-files): Define.
10916 (build-one-locale): Define macro.
10917 * manual/install.texi (Running make install): Document.
10918 * manual/INSTALL: Regenerate.
10919
10920 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10921
10922 * benchtests/scripts/compare_strings.py: Import traceback.
10923 (parse_file): Pretty-print error.
10924
10925 * NEWS: Mention the change.
10926 * elf/dl-tunables.list: Rename tune namespace to cpu.
10927 * sysdeps/powerpc/dl-tunables.list: Likewise.
10928 * sysdeps/x86/dl-tunables.list: Likewise.
10929 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10930 cpu.name.
10931 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10932 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10933 * manual/README.tunables: Likewise.
10934 * manual/tunables.texi: Likewise.
10935 * sysdeps/powerpc/cpu-features.c: Likewise.
10936 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10937 (init_cpu_features): Likewise.
10938 * sysdeps/x86/cpu-features.c: Likewise.
10939 * sysdeps/x86/cpu-features.h: Likewise.
10940 * sysdeps/x86/cpu-tunables.c: Likewise.
10941 * sysdeps/x86_64/Makefile: Likewise.
10942 * sysdeps/x86/dl-cet.c: Likewise.
10943
10944 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10945
10946 [BZ #23479]
10947 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10948 [__mips_hard_float].
10949 (FE_UNDERFLOW): Likewise.
10950 (FE_OVERFLOW): Likewise.
10951 (FE_DIVBYZERO): Likewise.
10952 (FE_INVALID): Likewise.
10953 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10954 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10955 (FE_UPWARD): Likewise.
10956 (FE_DOWNWARD): Likewise.
10957 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10958 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10959 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10960 [__mips_hard_float].
10961 (FP_ROUNDMODE): Likewise.
10962 (FP_RND_NEAREST): Likewise.
10963 (FP_RND_ZERO): Likewise.
10964 (FP_RND_PINF): Likewise.
10965 (FP_RND_MINF): Likewise.
10966 (FP_EX_INVALID): Likewise.
10967 (FP_EX_OVERFLOW): Likewise.
10968 (FP_EX_UNDERFLOW): Likewise.
10969 (FP_EX_DIVZERO): Likewise.
10970 (FP_EX_INEXACT): Likewise.
10971 (FP_INIT_ROUNDMODE): Likewise.
10972 * sysdeps/mips/nofpu/fesetenv.c: New file.
10973 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10974
10975 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10976
10977 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10978 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10979 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10980 conditional on [FE_UPWARD].
10981
10982 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10983
10984 regex: fix memory leak in Gnulib
10985 Problem and fix reported by Assaf Gordon in:
10986 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10987 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10988 range_ends members too, as they are defined in 'struct
10989 re_charset_t' even if not _LIBC. This affects only Gnulib.
10990
10991 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10992
10993 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10994 ...
10995 (get_common_indices): This.
10996 (init_cpu_features): Updated.
10997
10998 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10999
11000 * sysdeps/generic/math-tests-snan-payload.h: New file.
11001 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
11002 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
11003 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
11004 * sysdeps/generic/math-tests.h: Include
11005 <math-tests-snan-payload.h>.
11006 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11007 * sysdeps/hppa/math-tests.h: Remove file.
11008 * sysdeps/mips/math-tests.h [!__mips_nan2008]
11009 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
11010 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
11011 Likewise.
11012
11013 * sysdeps/generic/math-tests-snan-cast.h: New file.
11014 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
11015 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
11016 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
11017 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
11018
11019 2018-08-01 Carlos O'Donel <carlos@redhat.com>
11020
11021 * version.h (RELEASE): Set to "development".
11022 (VERSION): Set to "2.28.9000".
11023 * NEWS (2.29): New section.
11024
11025 * version.h (RELEASE): Set to "stable".
11026 (VERSION): Set to "2.28".
11027 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
11028 * NEWS: Add the list of bugs fixed in 2.28.
11029
11030 * po/ca.po: Update to latest version.
11031 * po/cs.po: Likewise
11032 * po/da.po: Likewise
11033 * po/el.po: Likewise
11034 * po/eo.po: Likewise
11035 * po/es.po: Likewise
11036 * po/fi.po: Likewise
11037 * po/fr.po: Likewise
11038 * po/gl.po: Likewise
11039 * po/hu.po: Likewise
11040 * po/ia.po: Likewise
11041 * po/id.po: Likewise
11042 * po/it.po: Likewise
11043 * po/ja.po: Likewise
11044 * po/ko.po: Likewise
11045 * po/lt.po: Likewise
11046 * po/nb.po: Likewise
11047 * po/nl.po: Likewise
11048 * po/pt_BR.po: Likewise
11049 * po/ru.po: Likewise
11050 * po/rw.po: Likewise
11051 * po/sk.po: Likewise
11052 * po/sl.po: Likewise
11053 * po/tr.po: Likewise
11054 * po/zh_CN.po: Likewise
11055 * po/zh_TW.po: Likewise
11056
11057 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
11058
11059 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
11060 initialization...
11061 (init): ... before initializing libpthread.
11062
11063 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
11064 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
11065 (__mach_setup_tls): ... new function.
11066 (mach_setup_tls): New alias.
11067 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
11068 __mach_setup_thread.
11069 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
11070 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
11071 * mach/Versions [libc] (mach_setup_tls): Add symbol.
11072 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
11073
11074 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11075
11076 * manual/install.texi: Update versions.
11077 * INSTALL: Regenerate.
11078
11079 * manual/contrib.texi (Contributors): Update contributions.
11080
11081 2018-07-31 Carlos O'Donell <carlos@redhat.com>
11082
11083 * po/be.po: Update translations.
11084
11085 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11086
11087 * sysdeps/sh/libm-test-ulps: Update.
11088
11089 2018-07-30 Carlos O'Donell <carlos@redhat.com>
11090
11091 * po/bg.po: Update translations.
11092 * po/de.po: Likewise.
11093 * po/hr.po: Likewise.
11094 * po/pt_BR.po: Likewise.
11095 * po/sv.po: Likewise.
11096 * po/vi.po: Likewise.
11097
11098 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11099
11100 [BZ #23467]
11101 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11102 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
11103 (CFLAGS-tst-cet-property-1.o): New.
11104 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
11105 ($(objpfx)tst-cet-property-2): Likewise.
11106 ($(objpfx)tst-cet-property-2.out): Likewise.
11107 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
11108 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
11109 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
11110 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
11111 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
11112
11113 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
11114
11115 [BZ #23458]
11116 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
11117
11118 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
11119
11120 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
11121 __sbrk): Do not set attribute_hidden.
11122 * sysdeps/mach/hurd/not-errno.h: New file.
11123 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11124 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
11125
11126 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11127
11128 * po/uk.po: Update translations.
11129 * po/cs.po: Likewise.
11130 * po/pl.po: Likewise.
11131
11132 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11133
11134 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11135 parse beyond the note end.
11136
11137 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11138
11139 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11140 kernel does not support OFD locks.
11141 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11142
11143 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11144
11145 * sysdeps/mach/hurd/Versions (libc): Make __access and
11146 __access_noerrno external so they can override the ld symbols.
11147 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11148 __writev, __open64, __access_noerrno extern so they can be overrided.
11149 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11150 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11151
11152 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11153
11154 * po/libc.pot: Regenerate.
11155
11156 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11157
11158 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11159
11160 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11161
11162 [BZ #23459]
11163 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11164 function.
11165 (init_cpu_features): Call get_extended_indices for both Intel
11166 and AMD CPUs.
11167 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11168 Remove "for AMD" comment.
11169
11170 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11171
11172 [BZ # 23456]
11173 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11174 COMMON_CPUID_INDEX_80000001.
11175
11176 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11177
11178 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11179 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11180
11181 2018-07-26 Florian Weimer <fweimer@redhat.com>
11182
11183 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11184 aliases for symbols not in the implementation namespace.
11185
11186 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11187
11188 [BZ #23393]
11189 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11190 lowercase in LATIN script.
11191 * localedata/Makefile (test-input): Add en_US.UTF-8.
11192 * localedata/en_US.UTF-8.in: New file.
11193 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11194 and restore old tests.
11195 * posix/tst-regexloc.c (do_test): Add back range expression test.
11196
11197 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11198
11199 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11200
11201 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11202
11203 * nptl/threads.h: Move to ...
11204 * sysdeps/nptl/threads.h: ... here.
11205 * sysdeps/hurd/stdc-predef.h: New file.
11206
11207 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11208
11209 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11210 tst-cet-setcontext-1 if CET is enabled.
11211 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11212 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11213
11214 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11215
11216 * include/threads.h: Move to ...
11217 * sysdeps/nptl/threads.h: ... here.
11218 * sysdeps/htl/threads.h: New file.
11219 * conform/Makefile (linknamespace-libs-ISO11): Use
11220 static-thread-library instead of linking libpthread.
11221 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11222
11223 2018-07-25 Florian Weimer <fweimer@redhat.com>
11224
11225 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11226 nanoseconds into seconds.
11227 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11228 (do_test): Likewise.
11229 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11230 (do_test): Likewise. Avoid nanosecond overflow and spurious
11231 timeouts due to system load.
11232 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11233 (child_wait): Increment it.
11234 (do_test): Wait as long as necessary until all expected threads
11235 have arrived.
11236
11237 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11238 H.J. Lu <hongjiu.lu@intel.com>
11239
11240 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11241 __ssp.
11242 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11243 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11244 (__push___start_context): New.
11245 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11246 <asm/prctl.h>.
11247 (__getcontext): Record the current shadow stack base. Save the
11248 caller's shadow stack pointer and base.
11249 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11250 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11251 (__push___start_context): New prototype.
11252 (__makecontext): Call __push___start_context to allocate a new
11253 shadow stack, push __start_context onto the new stack as well
11254 as the new shadow stack.
11255 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11256 <asm/prctl.h>.
11257 (__setcontext): Restore the target shadow stack.
11258 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11259 <asm/prctl.h>.
11260 (__swapcontext): Record the current shadow stack base. Save
11261 the caller's shadow stack pointer and base. Restore the target
11262 shadow stack.
11263 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11264 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11265 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11266
11267 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11268
11269 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11270 tst-setcontext8 and tst-setcontext9.
11271 * stdlib/tst-setcontext6.c: New file.
11272 * stdlib/tst-setcontext7.c: Likewise.
11273 * stdlib/tst-setcontext8.c: Likewise.
11274 * stdlib/tst-setcontext9.c: Likewise.
11275
11276 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11277
11278 * stdlib/Makefile ((tests): Add tst-setcontext5.
11279 * stdlib/tst-setcontext5.c: New file.
11280
11281 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11282
11283 * stdlib/Makefile (tests): Add tst-setcontext4.
11284 * stdlib/tst-setcontext4.c: New file.
11285
11286 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11287
11288 * stdlib/Makefile (tests): Add tst-swapcontext1.
11289 * stdlib/tst-swapcontext1.c: New test.
11290
11291 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11292
11293 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11294 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11295 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11296 and tst-cet-legacy-4c.
11297 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11298 and tst-cet-legacy-mod-4.
11299 (CFLAGS-tst-cet-legacy-2.c): New.
11300 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11301 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11302 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11303 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11304 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11305 ($(objpfx)tst-cet-legacy-1): Likewise.
11306 ($(objpfx)tst-cet-legacy-2): Likewise.
11307 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11308 ($(objpfx)tst-cet-legacy-2a): Likewise.
11309 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11310 ($(objpfx)tst-cet-legacy-4): Likewise.
11311 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11312 ($(objpfx)tst-cet-legacy-4a): Likewise.
11313 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11314 (tst-cet-legacy-4a-ENV): Likewise.
11315 ($(objpfx)tst-cet-legacy-4b): Likewise.
11316 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11317 (tst-cet-legacy-4b-ENV): Likewise.
11318 ($(objpfx)tst-cet-legacy-4c): Likewise.
11319 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11320 (tst-cet-legacy-4c-ENV): Likewise.
11321 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11322 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11323 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11324 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11325 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11326 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11327 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11328 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11329 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11330 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11331 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11332
11333 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11334
11335 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11336 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11337 with ssp_base.
11338 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11339 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11340 with ssp_base.
11341
11342 2018-07-25 Andreas Schwab <schwab@suse.de>
11343
11344 [BZ #23442]
11345 * locale/weightwc.h (findidx): Handle the case where usrc is a
11346 prefix of cp but one character too short.
11347
11348 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11349
11350 * NEWS: Add ISO C threads addition.
11351
11352 2018-07-24 Florian Weimer <fweimer@redhat.com>
11353
11354 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11355 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11356 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11357 4.13.
11358
11359 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11360
11361 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11362 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11363 <sys/prctl.h> and <asm/prctl.h>.
11364 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11365 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11366 and <asm/prctl.h>.
11367 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11368 ARCH_CET_LEGACY_BITMAP.
11369 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11370 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11371 * sysdeps/x86/libc-start.c: Include <startup.h>.
11372
11373 2018-07-24 Florian Weimer <fweimer@redhat.com>
11374
11375 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11376 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11377
11378 2018-07-24 Rical Jasan <rj@2c3t.io>
11379 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11380 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11381
11382 [BZ #14092]
11383 * manual/debug.texi: Update adjacent chapter name.
11384 * manual/probes.texi: Likewise.
11385 * manual/threads.texi (ISO C Threads): New section.
11386 (POSIX Threads): Convert to a section.
11387
11388 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11389 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11390
11391 [BZ# 14092]
11392 * nptl/Makefile (tests): Add new test files.
11393 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11394 * nptl/tst-cnd-basic.c: Likewise.
11395 * nptl/tst-cnd-broadcast.c: Likewise.
11396 * nptl/tst-cnd-timedwait.c: Likewise.
11397 * nptl/tst-mtx-basic.c: Likewise.
11398 * nptl/tst-mtx-recursive.c: Likewise.
11399 * nptl/tst-mtx-timedlock.c: Likewise.
11400 * nptl/tst-mtx-trylock.c: Likewise.
11401 * nptl/tst-thrd-basic.c: Likewise.
11402 * nptl/tst-thrd-detach.c: Likewise.
11403 * nptl/tst-thrd-sleep.c: Likewise.
11404 * nptl/tst-tss-basic.c: Likewise.
11405
11406 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11407
11408 [BZ #14092]
11409 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11410 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11411 symbols.
11412 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11413 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11414 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11415 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11416 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11417 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11418 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11419 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11420 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11421 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11422 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11423 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11425 Likewise.
11426 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11427 Likewise.
11428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11429 Likewise.
11430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11431 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11432 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11433 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11434 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11435 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11436 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11437 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11438 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11439 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11440 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11441 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11442 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11443 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11444 Likewise.
11445 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11446 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11447 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11448 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11449 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11450 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11451 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11452 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11453 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11454 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11455 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11456 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11457 ikewise.
11458 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11460 Likewise.
11461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11462 Likewise.
11463 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11464 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11465 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11466 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11467 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11468 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11469 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11470 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11471
11472 [BZ #14092]
11473 * conform/data/threads.h-data (thread_local): New macro.
11474 (TSS_DTOR_ITERATIONS): Likewise.
11475 (tss_t): New type.
11476 (tss_dtor_t): Likewise.
11477 (tss_create): New function.
11478 (tss_get): Likewise.
11479 (tss_set): Likewise.
11480 (tss_delete): Likewise.
11481 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11482 tss_get, and tss_set objects.
11483 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11484 * nptl/tss_create.c: New file.
11485 * nptl/tss_delete.c: Likewise.
11486 * nptl/tss_get.c: Likewise.
11487 * nptl/tss_set.c: Likewise.
11488 * sysdeps/nptl/threads.h (thread_local): New define.
11489 (TSS_DTOR_ITERATIONS): Likewise.
11490 (tss_t): New typedef.
11491 (tss_dtor_t): Likewise.
11492 (tss_create): New prototype.
11493 (tss_get): Likewise.
11494 (tss_set): Likewise.
11495 (tss_delete): Likewise.
11496
11497 [BZ #14092]
11498 * conform/data/threads.h-data (cnd_t): New type.
11499 (cnd_init): New function.
11500 (cnd_signal): Likewise.
11501 (cnd_broadcast): Likewise.
11502 (cnd_wait): Likewise.
11503 (cnd_timedwait): Likewise.
11504 (cnd_destroy): Likewise.
11505 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11506 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11507 object.
11508 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11509 * nptl/cnd_broadcast.c: New file.
11510 * nptl/cnd_destroy.c: Likewise.
11511 * nptl/cnd_init.c: Likewise.
11512 * nptl/cnd_signal.c: Likewise.
11513 * nptl/cnd_timedwait.c: Likewise.
11514 * nptl/cnd_wait.c: Likewise.
11515 * sysdeps/nptl/threads.h (cnd_t): New type.
11516 (cnd_init): New prototype.
11517 (cnd_signa): Likewise.
11518 (cnd_broadcast): Likewise.
11519 (cnd_wait): Likewise.
11520 (cnd_timedwait): Likewise.
11521 (cnd_destroy): Likewise.
11522
11523 [BZ #14092]
11524 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11525 (once_flag): New type.
11526 (call_once): New function.
11527 * nptl/Makefile (libpthread-routines): Add call_once object.
11528 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11529 * nptl/call_once.c: New file.
11530 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11531 (once_flag): New type.
11532 (call_once): New prototype.
11533
11534 [BZ #14092]
11535 * conform/data/threads.h-data (mtx_plain): New constant.
11536 (mtx_recursive): Likewise.
11537 (mtx_timed): Likewise.
11538 (mtx_t): New type.
11539 (mtx_init): New function.
11540 (mtx_lock): Likewise.
11541 (mtx_timedlock): Likewise.
11542 (mtx_trylock): Likewise.
11543 (mtx_unlock): Likewise.
11544 (mtx_destroy): Likewise.
11545 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11546 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11547 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11548 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11549 * nptl/mtx_destroy.c: New file.
11550 * nptl/mtx_init.c: Likewise.
11551 * nptl/mtx_lock.c: Likewise.
11552 * nptl/mtx_timedlock.c: Likewise.
11553 * nptl/mtx_trylock.c: Likewise.
11554 * nptl/mtx_unlock.c: Likewise.
11555 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11556 (mtx_recursive): Likewise.
11557 (mtx_timed): Likewise.
11558 (mtx_t): New type.
11559 (mtx_init): New prototype.
11560 (mtx_lock): Likewise.
11561 (mtx_timedlock): Likewise.
11562 (mtx_trylock): Likewise.
11563 (mtx_unlock): Likewise.
11564 (mtx_destroy): Likewise.
11565
11566 [BZ #14092]
11567 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11568 (linknamespace-libs-ISO11): Add libpthread.a.
11569 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11570 functions.
11571 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11572 * nptl/Makefile (headers): Add threads.h.
11573 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11574 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11575 thrd_yield.
11576 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11577 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11578 thrd_join, thrd_sleep, and thrd_yield symbols.
11579 * nptl/descr.h (struct pthread): Add c11 field.
11580 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11581 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11582 routine with expected function prototype.
11583 (__pthread_create_2_1): Add C11 threads check based on attribute
11584 value.
11585 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11586 * nptl/thrd_create.c: New file.
11587 * nptl/thrd_current.c: Likewise.
11588 * nptl/thrd_detach.c: Likewise.
11589 * nptl/thrd_equal.c: Likewise.
11590 * nptl/thrd_exit.c: Likewise.
11591 * nptl/thrd_join.c: Likewise.
11592 * nptl/thrd_priv.h: Likewise.
11593 * nptl/thrd_sleep.c: Likewise.
11594 * nptl/thrd_yield.c: Likewise.
11595 * include/threads.h: Likewise.
11596
11597 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11598
11599 * bits/indirect-return.h: New file.
11600 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11601 * sysdeps/x86/bits/indirect-return.h: Likewise.
11602 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11603 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11604 (swapcontext): Add __INDIRECT_RETURN.
11605 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11606 (prepare_test_buffer): Use it.
11607
11608 2018-07-24 Andreas Schwab <schwab@suse.de>
11609
11610 [BZ #23448]
11611 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11612 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11613
11614 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11615
11616 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11617 Redefine if shadow stack is enabled.
11618 (SYSCALL_ERROR_LABEL): Likewise.
11619 (__vfork): Pop shadow stack and jump back to to caller directly
11620 when shadow stack is in use.
11621 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11622 Redefine if shadow stack is enabled.
11623 (SYSCALL_ERROR_LABEL): Likewise.
11624 (__vfork): Pop shadow stack and jump back to to caller directly
11625 when shadow stack is in use.
11626
11627 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11628
11629 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11630 enabled.
11631 (foo): Likewise.
11632 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11633 (foo): Likewise.
11634
11635 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11636
11637 * scripts/build-many-glibcs.py (Context.checkout): Default
11638 binutils version to 2.31 branch.
11639
11640 2018-07-20 Zong Li <zong@andestech.com>
11641
11642 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11643 URL of gcc's tarball.
11644
11645 2018-07-20 Florian Weimer <fweimer@redhat.com>
11646
11647 [BZ #23396]
11648 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11649 not compare an extra byte after the end of the weights.
11650
11651 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11652
11653 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11654 to 1.
11655 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11656 hidden prototypes.
11657 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11658 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11659 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11660 list of libraries whose stack executability is expected.
11661 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11662 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11663 variable.
11664 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11665 libc.so libpthread.so.
11666
11667 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11668
11669 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11670 SOCK_NONBLOCK.
11671 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11672 and SOCK_NONBLOCK.
11673 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11674 implement __pipe2.
11675 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11676
11677 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11678
11679 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11680 library to improve command line parsing.
11681 (__main__): make schema file as optional parameter (--schema),
11682 defaulting to benchtests/scripts/benchout.schema.json.
11683 (main): move out of the parsing stuff to __main_  and leave it
11684 only as caller of main comparison functions.
11685
11686 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11687
11688 * NEWS: Add a note for Intel CET status.
11689 * manual/install.texi: Likewise.
11690 * INSTALL: Regenerated.
11691
11692 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11693
11694 [BZ #23140]
11695 * localedata/locales/oc_FR (mon): Rename to...
11696 (alt_mon): This, then update October (typo fix).
11697 (mon): New content (genitive case, month names preceded by
11698 "de" or "d’").
11699
11700 [BZ #23422]
11701 * localedata/locales/oc_FR (abday): Update all items.
11702 (day): Update Wednesday and Saturday (typo fixes).
11703 (abmon): Update all items, except May.
11704 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11705 (LC_IDENTIFICATION): Bump the revision number and date.
11706 Keep the "category" entries in alphabetic order.
11707 (LC_ADDRESS): Remove no longer needed comment.
11708 (LC_COLLATE): Use “copy "ca_ES"”.
11709 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11710 "name_mrs".
11711
11712 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11713
11714 * grp/tst_fgetgrent.c: Include <unistd.h>.
11715 (main): Use mkstemp instead of tmpnam.
11716 * io/test-utime.c (main): Likewise.
11717 * posix/annexc.c (macrofile): Change to modifiable array.
11718 (main): Remove macrofile here.
11719 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11720 macrofile here.
11721 (check_header): Do not remove macrofile here.
11722 * posix/bug-getopt1.c: Include <stdlib.h>.
11723 (do_test): Use mkstemp instead of tmpnam.
11724 * posix/bug-getopt2.c: Include <stdlib.h>.
11725 (do_test): Use mkstemp instead of tmpnam.
11726 * posix/bug-getopt3.c: Include <stdlib.h>.
11727 (do_test): Use mkstemp instead of tmpnam.
11728 * posix/bug-getopt4.c: Include <stdlib.h>.
11729 (do_test): Use mkstemp instead of tmpnam.
11730 * posix/bug-getopt5.c: Include <stdlib.h>.
11731 (do_test): Use mkstemp instead of tmpnam.
11732 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11733 (main): Use mkstemp instead of tmpnam.
11734 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11735 (main): Use mkstemp instead of tmpnam.
11736 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11737 (main): use mkstemp instead of tmpnam.
11738 * stdlib/isomac.c (macrofile): Change to modifiable array.
11739 (main): Remove macrofile here.
11740 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11741 macrofile here.
11742 (check_header): Do not remove macrofile here.
11743
11744 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11745
11746 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11747 glibc.tune.x86_shstk.
11748
11749 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11750
11751 * NEWS: Mention --enable-cet.
11752 * manual/install.texi: Document --enable-cet.
11753 * INSTALL: Regenerated.
11754
11755 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11756
11757 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11758 Add _CET_NOTRACK before indirect jump to jump table.
11759
11760 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11761
11762 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11763 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11764 to jump table.
11765
11766 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11767
11768 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11769 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11770 to jump table.
11771
11772 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11773
11774 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11775 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11776 to jump table.
11777
11778 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11779
11780 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11781 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11782 to jump table.
11783
11784 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11785
11786 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11787 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11788 to jump table.
11789 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11790
11791 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11792
11793 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11794 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11795 to jump table.
11796
11797 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11798
11799 * sysdeps/i386/i686/multiarch/memset-sse2.S
11800 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11801 to jump table.
11802
11803 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11804
11805 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11806 indirect jump to jump table.
11807
11808 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11809
11810 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11811 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11812 to jump table.
11813 (MEMCPY): Likewise.
11814
11815 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11816
11817 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11818 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11819 to jump table.
11820 (MEMCPY): Likewise.
11821
11822 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11823
11824 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11825 _CET_NOTRACK before indirect jump to jump table.
11826
11827 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11828
11829 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11830 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11831 to jump table.
11832
11833 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11834
11835 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11836 indirect jump to jump table.
11837
11838 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11839
11840 [BZ #22241]
11841 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11842 (LOCALES): Likewise.
11843 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11844 * localedata/locales/sah_RU: New file.
11845 * localedata/sah_RU.UTF-8.in: New file.
11846
11847 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11848
11849 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11850 "sysdep.h".
11851 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11852 _CET_ENDBR to indirect jump targets and adjust jump destination
11853 for _CET_ENDBR.
11854 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11855 "sysdep.h".
11856 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11857 _CET_ENDBR to indirect jump targets and adjust jump destination
11858 for _CET_ENDBR.
11859 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11860 "sysdep.h".
11861 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11862 _CET_ENDBR to indirect jump targets and adjust jump destination
11863 for _CET_ENDBR.
11864
11865 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11866
11867 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11868 _CET_ENDBR.
11869
11870 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11871
11872 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11873 _CET_ENDBR.
11874 (_dl_tlsdesc_undefweak): Likewise.
11875 (_dl_tlsdesc_dynamic): Likewise.
11876 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11877 (_dl_tlsdesc_resolve_rel): Likewise.
11878 (_dl_tlsdesc_resolve_rela): Likewise.
11879 (_dl_tlsdesc_resolve_hold): Likewise.
11880 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11881 (_dl_tlsdesc_undefweak): Likewise.
11882 (_dl_tlsdesc_dynamic): Likewise.
11883 (_dl_tlsdesc_resolve_rela): Likewise.
11884 (_dl_tlsdesc_resolve_hold): Likewise.
11885
11886 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11887
11888 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11889 (_fini): Likewise.
11890 * sysdeps/x86_64/crti.S (_init): Likewise.
11891 (_fini): Likewise.
11892
11893 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11894
11895 [BZ #23140]
11896 * localedata/locales/os_RU (mon): Rename to...
11897 (alt_mon): This.
11898 (mon): Import from CLDR (genitive case).
11899
11900 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11901
11902 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11903 cet-tunables.h> when CET is enabled.
11904
11905 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11906
11907 [BZ #21598]
11908 * configure.ac: Add --enable-cet.
11909 * configure: Regenerated.
11910 * elf/Makefille (all-built-dso): Add a comment.
11911 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11912 Include <dl-prop.h>.
11913 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11914 segment.
11915 * elf/dl-open.c: Include <dl-prop.h>.
11916 (dl_open_worker): Call _dl_open_check.
11917 * elf/rtld.c: Include <dl-prop.h>.
11918 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11919 _rtld_main_check.
11920 * sysdeps/generic/dl-prop.h: New file.
11921 * sysdeps/i386/dl-cet.c: Likewise.
11922 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11923 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11924 * sysdeps/x86/cet-tunables.h: Likewise.
11925 * sysdeps/x86/check-cet.awk: Likewise.
11926 * sysdeps/x86/configure: Likewise.
11927 * sysdeps/x86/configure.ac: Likewise.
11928 * sysdeps/x86/dl-cet.c: Likewise.
11929 * sysdeps/x86/dl-procruntime.c: Likewise.
11930 * sysdeps/x86/dl-prop.h: Likewise.
11931 * sysdeps/x86/libc-start.h: Likewise.
11932 * sysdeps/x86/link_map.h: Likewise.
11933 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11934 _CET_ENDBR.
11935 (_dl_runtime_profile): Likewise.
11936 (_dl_runtime_resolve_shstk): New.
11937 (_dl_runtime_profile_shstk): Likewise.
11938 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11939 if CET is enabled.
11940 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11941 (CFLAGS-.os): Likewise.
11942 (CFLAGS-.op): Likewise.
11943 (CFLAGS-.oS): Likewise.
11944 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11945 is enabled.
11946 (tests-special): Add $(objpfx)check-cet.out.
11947 (cet-built-dso): New.
11948 (+$(cet-built-dso:=.note)): Likewise.
11949 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11950 ($(objpfx)check-cet.out): New.
11951 (generated): Add check-cet.out.
11952 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11953 <cet-tunables.h>.
11954 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11955 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11956 (init_cpu_features): Call get_cet_status to check CET status
11957 and update dl_x86_feature_1 with CET status. Call
11958 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11959 (set_x86_shstk). Disable and lock CET in libc.a.
11960 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11961 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11962 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11963 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11964 (_CET_ENDBR): Define if not defined.
11965 (ENTRY): Add _CET_ENDBR.
11966 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11967 x86_shstk.
11968 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11969 _CET_ENDBR.
11970 (_dl_runtime_profile): Likewise.
11971
11972 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11973
11974 [BZ #21895]
11975 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11976 restore r2 on longjmp.
11977 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11978 test list.
11979 Added rules to build test tst-setjmp-bug21895-static.
11980 Added module setjmp-bug21895 and rules to build a shared object from it.
11981 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11982 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11983
11984 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11985
11986 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11987 * benchtests/bench-strstr.c: Likewise.
11988 * string/memmem.c (FASTSEARCH): Define.
11989 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11990 Add support for FASTSEARCH.
11991 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11992 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11993 (FASTSEARCH): Define.
11994 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11995 * string/test-strstr.c: Likewise.
11996
11997 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11998
11999 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
12000 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
12001
12002 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
12003 H.J. Lu <hongjiu.lu@intel.com>
12004
12005 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
12006 (__longjmp): Restore shadow stack pointer if shadow stack is
12007 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12008 isn't defined for __longjmp_cancel.
12009 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
12010 (_setjmp): Save shadow stack pointer if shadow stack is enabled
12011 and SHADOW_STACK_POINTER_OFFSET is defined.
12012 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
12013 (setjmp): Save shadow stack pointer if shadow stack is enabled
12014 and SHADOW_STACK_POINTER_OFFSET is defined.
12015 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
12016 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12017 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12018 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
12019 <jmp_buf-ssp.h>.
12020 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12021 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12022 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
12023 Remove jmp_buf-ssp.sym.
12024 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12025 <jmp_buf-ssp.h>.
12026 (____longjmp_chk): Restore shadow stack pointer if shadow stack
12027 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12028 * sysdeps/x86/Makefile (gen-as-const-headers): Add
12029 jmp_buf-ssp.sym.
12030 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
12031 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
12032 (__longjmp): Restore shadow stack pointer if shadow stack is
12033 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
12034 isn't defined for __longjmp_cancel.
12035 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
12036 (__sigsetjmp): Save shadow stack pointer if shadow stack is
12037 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
12038
12039 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
12040
12041 [BZ #22563]
12042 * nptl/pthread_create.c: Include <tls-setup.h>.
12043 (__pthread_create_2_1): Call tls_setup_tcbhead.
12044 * sysdeps/generic/tls-setup.h: New file.
12045 * sysdeps/x86/nptl/tls-setup.h: Likewise.
12046 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
12047 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
12048 Likewise.
12049 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
12050 to feature_1.
12051 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
12052 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
12053 (X86_FEATURE_1_SHSTK): Likewise.
12054 (CET_ENABLED): Likewise.
12055 (IBT_ENABLED): Likewise.
12056 (SHSTK_ENABLED): Likewise.
12057
12058 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
12059
12060 [BZ #23208]
12061 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
12062 (LOCALES): Likewise.
12063 * localedata/dsb_DE.UTF-8.in: New file.
12064 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
12065
12066 2018-07-12 Florian Weimer <fweimer@redhat.com>
12067
12068 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
12069 __mprotect, not mprotect.
12070
12071 2018-07-11 Florian Weimer <fweimer@redhat.com>
12072
12073 * io/Makefile (headers): Add bits/statx.h.
12074
12075 2018-07-10 Mike FABIAN <mfabian@redhat.com>
12076
12077 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
12078 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
12079 and headers.
12080 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
12081 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
12082 for utf8_gen.py
12083
12084 2018-07-10 Florian Weimer <fweimer@redhat.com>
12085
12086 * io/Makefile (routines): Add statx.
12087 (tests-internal): Add tst-statx.
12088 * io/Versions (GLIBC_2.28): Export statx.
12089 * io/bits/statx.h: New file.
12090 * io/sys/stat.h [__USE_GNU]: Include it.
12091 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
12092 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
12093 Define.
12094 * io/statx.c: New file.
12095 * io/statx_generic.: Likewise.
12096 * io/tst-statx.: Likewise.
12097 * include/bits/statx.h: Likewise.
12098 * sysdeps/unix/sysv/linux/kernel-features.h
12099 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
12100 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12101 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
12102 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
12103 Undefine.
12104 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12105 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
12106 * sysdeps/unix/sysv/linux/statx.c: New file.
12107 * manual/filesys.texi: Note that statx is undocumented.
12108 * sysdeps/**/libc*.abilist: Update.
12109
12110 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12111
12112 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
12113 a kernel issue which lead to test failure in some cases.
12114
12115 2018-07-10 Florian Weimer <fweimer@redhat.com>
12116
12117 [BZ #23036]
12118 * posix/regexec.c (check_node_accept_bytes): When comparing
12119 weights, do not compare an extra byte after the end of the
12120 weights.
12121
12122 2018-07-10 Florian Weimer <fweimer@redhat.com>
12123
12124 * libio/readline.c: Fix copyright year.
12125 * libio/tst-readline.c Likewise.
12126 * nss/tst-nss-files-hosts-getent.c: Likewise.
12127
12128 2018-07-06 Florian Weimer <fweimer@redhat.com>
12129
12130 [BZ #18991]
12131 * nss/nss_files/files-XXX.c (internal_getent): Use
12132 __libc_readline_unlocked. Seek back to the start of the line if
12133 parsing failes with ERANGE.
12134 (get_contents_ret, get_contents): Remove.
12135 * nss/tst-nss-files-hosts-getent.c: New file.
12136 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12137 (tst-nss-files-hosts-getent): Link with -ldl.
12138
12139 2018-07-06 Florian Weimer <fweimer@redhat.com>
12140
12141 * include/stdio.h (__libc_readline_unlocked): Declare.
12142 (__ftello64, __fseeko64): Declare aliases.
12143 * libio/readline.c: New file.
12144 * libio/tst-readline.c: Likewise.
12145 (routines): Add readline.
12146 (tests-internal): Add tst-readlime.
12147 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12148 __libc_readline_unlocked.
12149 * libio/fseeko.c (__fseeko): Rename from fseeko.
12150 (fseeko): Add alias.
12151 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12152 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12153 (fseeko64): Add alias.
12154 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12155 * libio/ftello64.c (__ftello64): Rename from ftello64.
12156 (ftello64): Add alias.
12157
12158 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12159
12160 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12161 HWCAP_ATOMICS.
12162
12163 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12164
12165 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12166 Use dl_hwcap without masking.
12167 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12168 Remove HWCAP_CPUID.
12169
12170 2018-07-06 Florian Weimer <fweimer@redhat.com>
12171
12172 * conform/conformtest.pl (checknamespace): Escape literal braces
12173 in regular expressions.
12174
12175 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12176
12177 * sysdeps/x86/cpu-features.c (get_common_indeces):
12178 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12179 * sysdeps/x86/cpu-features.c (init_cpu_features):
12180 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12181
12182 2018-07-05 Florian Weimer <fweimer@redhat.com>
12183
12184 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12185 protector.
12186 (CFLAGS-elf-init.oS): Likewise.
12187
12188 2018-07-05 Florian Weimer <fweimer@redhat.com>
12189 Carlos O'Donell <carlos@redhat.com>
12190
12191 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12192 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12193 with stack protector enabled because there is no risk of infinite
12194 recursion.
12195
12196 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12197
12198 [BZ #19818]
12199 [BZ #23307]
12200 * libc-abis (ABSOLUTE): New ABI.
12201 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12202 * NEWS: Mention the new ABI.
12203
12204 2018-07-05 Florian Weimer <fweimer@redhat.com>
12205
12206 [BZ # 17662]
12207 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12208 (RENAME_WHITEOUT): Define.
12209 [__USE_GNU] (renameat2): Declare.
12210 * stdio-common/Makefile (routines): Add renameat2.
12211 (tests): Add tst-renameat2.
12212 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12213 * stdio-common/renameat2.c: New file.
12214 * stdio-common/tst-renameat2.c: Likewise.
12215 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12216 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12217 undocumented.
12218 * sysdeps/unix/sysv/linux/kernel-features.h
12219 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12220 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12221 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12222 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12223 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12224 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12225 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12226 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12227 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12228 * include/stdio.h (__renameat): Add alias for renameat.
12229 * stdio-common/renameat.c (__renameat): Rename from renameat.
12230 Add hidden definition and alias.
12231 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12232 * sysdeps/mach/hurd/renameat.c: Likewise.
12233 * sysdeps/**/libc*.abilist: Add renameat2.
12234
12235 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12236
12237 * posix/bug-regex33.c: Fix build after regex sync.
12238
12239 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12240
12241 [BZ #23164]
12242 * localedata/tst-langinfo-setlocale.c: New file.
12243 * localedata/tst-langinfo-setlocale-static.c: New file.
12244 * localedata/tst-langinfo-newlocale.c: New file.
12245 * localedata/tst-langinfo-newlocale-static.c: New file.
12246 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12247 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12248 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12249 (tests-static): Remove tst-langinfo-static. Add
12250 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12251 (tests-special): Remove $(objpfx)tst-langinfo.out,
12252 $(objpfx)tst-langinfo-static.out. Add
12253 $(objpfx)tst-langinfo-setlocale.out,
12254 $(objpfx)tst-langinfo-newlocale.out,
12255 $(objpfx)tst-langinfo-setlocale-static.out,
12256 $(objpfx)tst-langinfo-newlocale-static.out.
12257 ($(objpfx)tst-langinfo.out): Remove.
12258 ($(objpfx)tst-langinfo-static.out): Remove.
12259 ($(objpfx)tst-langinfo-newlocale.out): New target.
12260 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12261 (test-xfail-tst-langinfo-newlocale-static): Add.
12262 ($(objpfx)tst-langinfo-setlocale.out): New target.
12263 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12264 * localedata/tst-langinfo.c: Call test_locale.
12265 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12266 data.
12267
12268 2018-07-04 Florian Weimer <fweimer@redhat.com>
12269
12270 testrun.sh: Implement --tool=strace, --tool=valgrind
12271 * Makefile (testrun-script): Define variable.
12272 (testrun.sh): Use variable.
12273 * manual/install.texi (Tools for Compilation): make 4.0 or later
12274 is required.
12275 * configure.ac: Check for make 4.0 or later.
12276 * INSTALL: Regenerate.
12277 * configure: Likewise.
12278
12279 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12280
12281 [BZ #23233]
12282 [BZ #21163]
12283 [BZ #18986]
12284 [BZ #13762]
12285 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12286 * posix/PCRE.tests: Remove invalid test.
12287 * posix/bug-regex28.c: Fix expected values for used syntax.
12288 * posix/bug-regex37.c: New file.
12289 * posix/bug-regex38.c: Likewise.
12290 * posix/regcomp.c: Sync with gnulib.
12291 * posix/regex.c: Likewise.
12292 * posix/regex.h: Likewise.
12293 * posix/regex_internal.c: Likewise.
12294 * posix/regex_internal.h: Likewise.
12295 * posix/regexec.c: Likewise.
12296
12297 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12298
12299 [BZ #23308]
12300 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12301 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12302 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12303 * localedata/unicode-gen/PropList.txt: likewise.
12304 * localedata/unicode-gen/UnicodeData.txt: likewise.
12305 * localedata/charmaps/UTF-8: Regenerate.
12306 * localedata/locales/i18n_ctype: likewise.
12307 * localedata/locales/tr_TR: likewise.
12308 * localedata/locales/translit_circle: likewise.
12309 * localedata/locales/translit_cjk_compat: likewise.
12310 * localedata/locales/translit_combining: likewise.
12311 * localedata/locales/translit_compat: likewise.
12312 * localedata/locales/translit_font: likewise.
12313 * localedata/locales/translit_fraction: likewise.
12314
12315 2018-07-03 Florian Weimer <fweimer@redhat.com>
12316
12317 [BZ #23363]
12318 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12319 * stdio-common/tst-printf.sh: Adjust expected output.
12320 * LICENSES: Update.
12321
12322 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12323
12324 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12325 symbol.
12326
12327 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12328
12329 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12330 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12331 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12332 * stdio-common/tst-printfsz-islongdouble.c: New file.
12333 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12334 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12335 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12336 [subdir == stdio-common] (tests-internal): Add
12337 test-printf-size-ieee128, and test-printf-size-ibm128.
12338 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12339 (CFLAGS-test-printf-size-ibm128.c): New variables.
12340 [subdir == stdio-common] (tests-special): Add
12341 $(objpfx)test-printf-size-ieee128.out and
12342 $(objpfx)test-printf-size-ibm128.out.
12343 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12344 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12345 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12346 __printf_sizeieee128.
12347 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12348 New file.
12349 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12350 Likewise.
12351 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12352 Likewise.
12353
12354 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12355
12356 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12357 (exp2f_inline): Likewise.
12358 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12359 (__math_uflowf): Likewise.
12360 (__math_may_uflowf): Likewise.
12361 (__math_divzerof): Likewise.
12362 (__math_invalidf): Likewise.
12363 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12364 (__math_oflowf): Likewise.
12365 (__math_uflowf): Likewise.
12366 (__math_may_uflowf): Likewise.
12367 (__math_divzerof): Likewise.
12368 (__math_invalidf): Likewise.
12369
12370 2018-06-29 DJ Delorie <dj@redhat.com>
12371 Carlos O'Donell <carlos@redhat.com>
12372
12373 [BZ #23329]
12374 * include/libc-symbols.h: Comment the freeres framework.
12375 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12376 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12377 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12378 * dlfcn/dlerror.c: Include libc-symbols.h
12379 (__dlerror_main_freeres): New function.
12380 * dlfcn/dlfreeres.c: New file.
12381 * dlfcn/sdlfreeres.c: New file.
12382 * include/dlfcn.h: Declare __dlerror_main_freeres.
12383 * malloc/set-freeres.c: Declare __libdl_freeres, and
12384 __libpthread_freeres.
12385 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12386 the releavant libraries are loaded.
12387 * malloc/thread-freeres.c: Add comments.
12388 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12389 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12390 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12391 (__free_stacks): Rename to...
12392 (free_stacks): ...this. Mark static.
12393 (queue_stack): Call free_stacks.
12394 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12395 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12396 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12397 ptr_freeres element from struct.
12398 (pthread_functions): Remove .ptr_freeres from struct initializer.
12399 [SHARED] (nptl_freeres): Remove.
12400 * nptl/nptlfreeres.c: New file.
12401 * nptl/pthreadP.h
12402 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12403 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12404 attribute_hidden.
12405 (__free_stacks): Rename to...
12406 (__nptl_stacks_freeres): ...this.
12407 (__shm_directory_freeres): Declare.
12408 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12409 (__nptl_unwind_freeres): ...this.
12410 * resolv/res-close.c: Add comment.
12411 * resolv/resolv_conf.c: Include libc-symbols.h.
12412 * string/strerror_l.c: Include libc-symbols.h.
12413 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12414 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12415 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12416 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12417
12418 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12419
12420 * stdlib/tst-strfmon_l.c: Add tests for long double.
12421
12422 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12423
12424 [BZ #23208]
12425 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12426 * localedata/locales/dsb_DE: New file.
12427
12428 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12429
12430 [BZ #23140]
12431 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12432 genitive case).
12433 (alt_mon): New entry, import from CLDR (nominative case).
12434
12435 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12436
12437 [BZ #22996]
12438 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12439
12440 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12441
12442 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12443 Use vector registers.
12444
12445 * sysdeps/aarch64/multiarch/memmove_falkor.S
12446 (__memcpy_falkor): Use vector registers.
12447
12448 2018-06-29 Martin Sebor <msebor@redhat.com>
12449
12450 * manual/stdio.texi (Customizing Printf): Mention interaction
12451 with GCC built-ins.
12452
12453 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12454
12455 [BZ #23307]
12456 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12457 `st_value' is 0 if `st_shndx' is SHN_ABS.
12458 * elf/tst-absolute-zero.c: New file.
12459 * elf/tst-absolute-zero-lib.c: New file.
12460 * elf/tst-absolute-zero-lib.lds: New file.
12461 * elf/Makefile (tests): Add `tst-absolute-zero'.
12462 (modules-names): Add `tst-absolute-zero-lib'.
12463 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12464 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12465 ($(objpfx)tst-absolute-zero: New dependency.
12466
12467 2018-06-29 Zack Weinberg <zackw@panix.com>
12468
12469 * configure.ac: New command-line option --disable-crypt.
12470 Force --disable-nss-crypt when --disable-crypt is given, with a
12471 warning if it was explicitly enabled.
12472 * configure: Regenerate.
12473 * config.make.in: New boolean substitution variable $(build-crypt).
12474 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12475 when $(build-crypt).
12476 * manual/install.texi: Document --disable-crypt.
12477 * INSTALL: Regenerate.
12478
12479 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12480 which is never set.
12481 * conform/Makefile: Only include libcrypt.a in
12482 linknamespace-libs-xsi and linknamespace-libs-XPG4
12483 when $(build-crypt).
12484 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12485 USE_CRYPT to 1 when $(build-crypt).
12486 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12487 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12488 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12489
12490 2018-06-29 Zack Weinberg <zackw@panix.com>
12491
12492 * crypt/crypt.h, posix/unistd.h: Update comments and
12493 prototypes for crypt and crypt_r.
12494
12495 * manual/crypt.texi (Cryptographic Functions): New initial
12496 exposition.
12497 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12498 (Unpredictable Bytes): Improve initial exposition. Clarify error
12499 behavior of getentropy and getrandom.
12500 * manual/examples/genpass.c: Generate a salt using getentropy
12501 instead of the current time. Use hash $5$ (SHA-2-256).
12502 * manual/examples/testpass.c: Demonstrate validation against
12503 hashes generated with three different one-way functions.
12504
12505 * manual/intro.texi: crypt.texi does not need an overview
12506 anymore.
12507
12508 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12509 * manual/terminal.texi: Consistently refer to "passphrases"
12510 * instead of "passwords", and to the "user database" instead
12511 * of the "password database".
12512 * manual/users.texi: Similarly. Add notes about how actual
12513 passphrase hashes are now stored in the shadow database.
12514 Remove 20-year-old junk todo note.
12515
12516 2018-06-29 Zack Weinberg <zackw@panix.com>
12517
12518 * manual/crypt.texi: Use a normal top-level @node declaration.
12519 Move most of the introductory text to the 'crypt' section.
12520 Move the example programs below the @deftypefun for 'crypt_r'.
12521 Move the 'getpass' section...
12522 * manual/terminal.texi: ...here.
12523
12524 2018-06-29 Zack Weinberg <zackw@panix.com>
12525 Florian Weimer <fweimer@redhat.com>
12526
12527 * posix/unistd.h: Do not declare encrypt.
12528 (_XOPEN_CRYPT): Remove macro definition.
12529 (crypt): Declare only for _USE_MISC.
12530 * stdlib/stdlib.h: Do not declare setkey.
12531 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12532 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12533
12534 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12535 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12536 into compat symbols. Don't define initial_perm if it's not
12537 going to be used.
12538 * crypt/cert.c: Link explicitly with the expected versions for
12539 setkey and encrypt. If they are not available at all, mark
12540 the test as unsupported.
12541
12542 * sunrpc/des_crypt.c: Unconditionally block linkage with
12543 cbc_crypt and ecb_crypt for new binaries.
12544 * sunrpc/des_soft.c: Unconditionally block linkage with
12545 des_setparity for new binaries.
12546
12547 * manual/crypt.texi: Remove the entire "DES Encryption"
12548 section. Also remove the paragraph talking about FIPS 140-2
12549 from the introduction.
12550 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12551 of libgcrypt for "real" encryption, not DES.
12552 * manual/conf.texi (Constants for Sysconf): Mention that
12553 _XOPEN_CRYPT is no longer impelemented.
12554
12555 * conform/data/unistd.h-data: Remove crypt function declaration.
12556
12557 2018-06-29 Florian Weimer <fweimer@redhat.com>
12558
12559 [BZ #23351]
12560 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12561 (disallow_malloc_check): Remove variable.
12562 (__malloc_check_init): Adjust.
12563 (malloc_set_state): Update comment.
12564 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12565 declarations.
12566
12567 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12568
12569 [BZ #23140]
12570 * localedata/locales/ast_ES (mon): Rename to...
12571 (alt_mon): This.
12572 (mon): Import from CLDR (genitive case).
12573
12574 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12575 Jakub Sitnicki <jkbs@redhat.com>
12576
12577 [BZ #21812]
12578 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12579 on NLM_F_DUMP_INTR.
12580
12581 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12582
12583 * manual/llio.texi: Remove spurious space.
12584
12585 2018-06-28 Florian Weimer <fweimer@redhat.com>
12586
12587 [BZ #23349]
12588 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12589 _STRUCT_TIMESPEC.
12590
12591 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12592
12593 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12594 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12595 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12596 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12597 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12598 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12599 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12600
12601 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12602
12603 [BZ #23266]
12604 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12605 Copy and null-terminate entries that are not terminated, in
12606 addition to empty ones.
12607
12608 2018-06-27 Florian Weimer <fweimer@redhat.com>
12609
12610 [BZ #18023]
12611 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12612 (extend_alloca_account): Remove.
12613 * manual/stdio.texi (Variable Arguments Output): Update comment.
12614
12615 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12616
12617 * nptl/sockperf.c: Remove file.
12618
12619 2018-06-27 Florian Weimer <fweimer@redhat.com>
12620
12621 [BZ #18023]
12622 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12623 scratch_buffer instead of extend_alloca.
12624
12625 2018-06-27 Florian Weimer <fweimer@redhat.com>
12626
12627 [BZ #18023]
12628 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12629 scratch_buffer instead of extend_alloca. Update comments.
12630
12631 2018-06-27 Florian Weimer <fweimer@redhat.com>
12632
12633 [BZ #18023]
12634 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12635 instead of extend_alloca.
12636
12637 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12638
12639 [BZ #13888]
12640 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12641 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12642 /tmp.
12643 * scripts/test-installation.pl: Put temporary files in build
12644 directory, not /tmp.
12645 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12646 (CFLAGS-bug4.c): Likewise.
12647 (CFLAGS-bug5.c): Likewise.
12648 (CFLAGS-test-fseek.c): Likewise.
12649 (CFLAGS-test-popen.c): Likewise.
12650 (CFLAGS-test_rdwr.c): Likewise.
12651 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12652 /tmp.
12653 * stdio-common/bug4.c (main): Likewise.
12654 * stdio-common/bug5.c (main): Likewise.
12655 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12656 * stdio-common/test-popen.c (do_test): Likewise.
12657 * stdio-common/test_rdwr.c (main): Likewise.
12658
12659 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12660
12661 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12662 (sem_open): Set sem.newsem.pad to zero for valgrind.
12663
12664 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12665
12666 [BZ #20251]
12667 * NEWS: Mention fcntl64 addition.
12668 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12669 * login/utmp_file.c: Likewise.
12670 * sysdeps/posix/fdopendir.c: Likewise.
12671 * sysdeps/posix/opendir.c: Likewise.
12672 * sysdeps/unix/pt-fcntl.c: Likewise.
12673 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12674 __fcntl64_nocancel_adjusted): New prototype.
12675 (__fcntl_nocancel_adjusted): Remove prototype.
12676 * io/Makefile (routines): Add fcntl64.
12677 (CFLAGS-fcntl64.c): New rule.
12678 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12679 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12680 * io/fcntl.h (fcntl64): Add prototype and redirect if
12681 __USE_FILE_OFFSET64 is defined.
12682 * io/fcntl64.c: New file.
12683 * manual/llio.text: Add a note for which commands fcntl acts a
12684 cancellation point.
12685 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12686 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12687 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12688 New symbols.
12689 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12690 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12691 non-LFS case.
12692 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12693 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12694 to __fcntl64_nocancel.
12695 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12696 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12697 to __fcntl64_nocancel.
12698 * sysdeps/generic/not-cancel.h: Likewise.
12699 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12700 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12701 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12702 (fcntl64): New symbol.
12703 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12714 fcntl64): Likewise.
12715 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12717 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12725 Likewise.
12726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12727 Likewise.
12728 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12731
12732 2018-06-26 Florian Weimer <fweimer@redhat.com>
12733
12734 Run thread shutdown functions in an explicit order.
12735 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12736 definition.
12737 (__libc_thread_freeres): Call thread shutdown functions
12738 explicitly.
12739 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12740 * include/string.h (__strerror_thread_freeres): Declare.
12741 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12742 arena_thread_freeres. No longer static. Remove thread shutdown
12743 hook registration.
12744 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12745 Declare.
12746 * resolv/res-close.c (__res_thread_freeres): Renamed from
12747 res_thread_freeres. No longer static. Remove thread shutdown
12748 hook registration.
12749 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12750 * resolv/resolv_conf.c (freeres): Remove incorrect section
12751 attribute and use libc_freeres_fn.
12752 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12753 strerror_thread_freeres. No longer static. Remove thread
12754 shutdown hook registration.
12755 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12756 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12757 shutdown hook registration.
12758 * Makerules (shlib.lds): Do not provide section boundary symbols
12759 for __libc_thread_subfreeres.
12760 * manual/memory.texi (Basic Allocation): Update comment.
12761
12762 2018-06-26 Florian Weimer <fweimer@redhat.com>
12763
12764 Remove always-defined _RPC_THREAD_SAFE_ macro.
12765 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12766 Do not define _RPC_THREAD_SAFE_.
12767 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12768 conditional.
12769 * sunrpc/clnt_perr.c: Likewise.
12770 * sunrpc/clnt_raw.c: Likewise.
12771 * sunrpc/clnt_simp.c: Likewise.
12772 * sunrpc/key_call.c: Likewise.
12773 * sunrpc/rpc_common.c: Likewise.
12774 * sunrpc/rpc_main.c: Likewise.
12775 * sunrpc/rpc_thread.c: Likewise.
12776 * sunrpc/svc.c: Likewise.
12777 * sunrpc/svc_raw.c: Likewise.
12778 * sunrpc/svc_simple.c: Likewise.
12779 * sumrpc/svcauth_des.c: Likewise.
12780
12781 2018-06-26 Florian Weimer <fweimer@redhat.com>
12782
12783 * libio/Makefile (tests-internal): Add tst-vtables,
12784 tst-vtables-interposed.
12785 * libio/tst-vtables.c: New file.
12786 * libio/tst-vtables-common.c: Likewise.
12787 * libio/tst-vtables-interposed.c: Likewise.
12788
12789 2018-06-26 Florian Weimer <fweimer@redhat.com>
12790
12791 * support/support_test_main.c (support_test_main): Only call
12792 setvbuf if not disables.
12793 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12794 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12795
12796 2018-06-26 Florian Weimer <fweimer@redhat.com>
12797
12798 [BZ #23313]
12799 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12800
12801 2018-06-25 Florian Weimer <fweimer@redhat.com>
12802
12803 [BZ #18023]
12804 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12805 Use struct scratch_buffer instead of extend_alloca.
12806
12807 2018-06-25 Florian Weimer <fweimer@redhat.com>
12808
12809 [BZ #18023]
12810 * nss/getent.c (initgroups_keys): Use dynarray instead of
12811 extend_alloca.
12812
12813 2018-06-25 Florian Weimer <fweimer@redhat.com>
12814
12815 [BZ #18023]
12816 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12817 Use struct scratch_buffer instead of extend_alloca.
12818
12819 2018-06-25 Florian Weimer <fweimer@redhat.com>
12820
12821 [BZ #18023]
12822 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12823 back to malloc directly, without stack allocations.
12824
12825 2018-06-25 Florian Weimer <fweimer@redhat.com>
12826
12827 [BZ #18023]
12828 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12829 of extend_alloca.
12830
12831 2018-06-25 Florian Weimer <fweimer@redhat.com>
12832
12833 [BZ #18023]
12834 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12835 of extend_alloca.
12836 * nscd/hstcache.c (addhstbyX): Likewise.
12837 * nscd/pwdcache.c (addpwbyX): Likewise.
12838 * nscd/servicescache.c (addservbyX): Likewise.
12839
12840 2018-06-25 Florian Weimer <fweimer@redhat.com>
12841
12842 [BZ #18023]
12843 * nscd/connections.c (read_cmdline): New function.
12844 (restart): Use it. Update comment.
12845
12846 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12847
12848 [BZ #23140]
12849 * localedata/locales/csb_PL (mon): Rename to...
12850 (alt_mon): This.
12851 (abmon): Rename to...
12852 (ab_alt_mon): This.
12853 (mon): Add with proper genitive forms, copy from Wikipedia.
12854 (abmon): Likewise.
12855
12856 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12857
12858 [BZ #19485]
12859 * localedata/locales/csb_PL (mon): Fix typos:
12860 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12861 (yesstr): Add, value is "jo".
12862 (nostr): Add, value is "nié".
12863
12864 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12865
12866 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12867 all log1p and significand functions on m680x0.
12868 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12869 of s_significand.c..
12870 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12871 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12872 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12873 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12874 s_log1p.c and include it..
12875
12876 2018-06-21 Vincent Chen <vincentc@andestech.com>
12877
12878 * elf/elf.h (R_NDS32_NONE): New define.
12879 (R_NDS32_32_RELA): Likewise.
12880 (R_NDS32_COPY): Likewise.
12881 (R_NDS32_GLOB_DAT): Likewise.
12882 (R_NDS32_JUMP_SLOT): Likewise.
12883 (R_NDS32_RELATIVE): Likewise.
12884 (R_NDS32_TLS_TPOFF): Likewise.
12885 (R_NDS32_TLS_DESC): Likewise.
12886
12887 2018-06-21 Mark Wielaard <mark@klomp.org>
12888
12889 * elf/elf.h (R_BPF_MAP_FD): Removed.
12890 (R_BPF_64_64, R_BPF_64_32): New.
12891
12892 2018-06-21 Florian Weimer <fweimer@redhat.com>
12893
12894 [BZ #23253]
12895 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12896 Renamed from libc_feholdsetround_ctx.
12897 (default_libc_feresetround_ctx): Renamed from
12898 libc_feresetround_ctx.
12899 (default_libc_feholdsetround_noex_ctx): Renamed from
12900 libc_feholdsetround_noex_ctx.
12901 (default_libc_feresetround_noex_ctx): Renamed from
12902 libc_feresetround_noex_ctx.
12903 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12904 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12905 forwardning to the old implementations under the new names.
12906 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12907 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12908 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12909 (libc_feresetround_ctx): Forward to default implements for i386
12910 and MATH_SET_BOTH_ROUNDING_MODES.
12911 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12912 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12913
12914 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12915
12916 * string/tst-cmp.c: Include <libc-diag.h>.
12917 (strncmp_max): Disable -Wstringop-overflow= around call to
12918 strncmp.
12919 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12920 strncasecmp.
12921
12922 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12923 (main): Disable -Wunused-value around call to strpbrk.
12924 * string/bug-strspn1.c: Include <libc-diag.h>.
12925 (main): Disable -Wunused-value around call to strspn.
12926
12927 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12928 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12929
12930 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12931 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12932
12933 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12934
12935 * math/Makefile (libm-calls): Move s_significandF to...
12936 (gen-libm-calls): ... here.
12937 * math/s_significand_template.c: New file.
12938 * math/s_significand.c: Removed.
12939 * math/s_significandf.c: Removed.
12940 * math/s_significandl.c: Removed.
12941 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12942 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12943
12944 * math/e_exp2_template.c (declare_mgen_finite_alias,
12945 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12946 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12947 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12948
12949 2018-06-20 Florian Weimer <fweimer@redhat.com>
12950
12951 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12952
12953 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12954
12955 [BZ #23280]
12956 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12957 floating-point number to strtod functions rather than possibly
12958 negating result of those functions.
12959 * stdio-common/tst-scanf-round.c: New file.
12960 * stdio-common/Makefile (tests): Add tst-scanf-round.
12961 ($(objpfx)tst-scanf-round): Depend on $(libm).
12962
12963 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12964
12965 * sysdeps/mach/hurd/localplt.data: Move to...
12966 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12967 R_386_GLOB_DAT like on Linux i386.
12968
12969 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12970
12971 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12972 (SHM_STAT_ANY): New macro.
12973 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12974 (SHM_STAT_ANY): Likewise.
12975 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12976 (SHM_STAT_ANY): Likewise.
12977 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12978 (SHM_STAT_ANY): Likewise.
12979 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12980 (SHM_STAT_ANY): Likewise.
12981 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12982 (SHM_STAT_ANY): Likewise.
12983 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12984 (SHM_STAT_ANY): Likewise.
12985 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12986 (SHM_STAT_ANY): Likewise.
12987 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12988 (SHM_STAT_ANY): Likewise.
12989 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12990 (SHM_STAT_ANY): Likewise.
12991 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12992 (SHM_STAT_ANY): Likewise.
12993 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12994 (SHM_STAT_ANY): Likewise.
12995
12996 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12997 (SEM_STAT_ANY): New macro.
12998 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12999 (SEM_STAT_ANY): Likewise.
13000 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
13001 (SEM_STAT_ANY): Likewise.
13002 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
13003 (SEM_STAT_ANY): Likewise.
13004 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
13005 (SEM_STAT_ANY): Likewise.
13006 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
13007 (SEM_STAT_ANY): Likewise.
13008 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
13009 (SEM_STAT_ANY): Likewise.
13010 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
13011 (SEM_STAT_ANY): Likewise.
13012 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
13013 (SEM_STAT_ANY): Likewise.
13014 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
13015 (SEM_STAT_ANY): Likewise.
13016
13017 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
13018 (MSG_STAT_ANY): New macro.
13019 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
13020 (MSG_STAT_ANY): Likewise.
13021 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
13022 (MSG_STAT_ANY): Likewise.
13023 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
13024 (MSG_STAT_ANY): Likewise.
13025 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
13026 (MSG_STAT_ANY): Likewise.
13027 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
13028 (MSG_STAT_ANY): Likewise.
13029 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
13030 (MSG_STAT_ANY): Likewise.
13031 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
13032 (MSG_STAT_ANY): Likewise.
13033 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
13034 (MSG_STAT_ANY): Likewise.
13035 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
13036 (MSG_STAT_ANY): Likewise.
13037
13038 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13039 (MAP_TYPE): Change value to 0x2b.
13040
13041 2018-06-18 Florian Weimer <fweimer@redhat.com>
13042
13043 [BZ #15722]
13044 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
13045 socket with SOCK_CLOEXEC.
13046
13047 2018-06-18 Joseph Myers <joseph@codesourcery.com>
13048
13049 [BZ #23303]
13050 * sysdeps/powerpc/powerpc64/le/Makefile
13051 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
13052 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
13053 (gnulib-tests): Also add $(f128-loader-link) for
13054 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
13055
13056 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
13057
13058 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
13059 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
13060 of sendfile.
13061 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
13062 (sendfile64): New strong alias.
13063 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
13064 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
13065 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
13066 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
13067 attribute.
13068 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
13069 ___pthread_get_cleanup_stack.
13070 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
13071 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
13072 * mach/shortcut.awk: Make syscall stubs include
13073 <mach-shortcuts-hidden.h> and add hidden definition.
13074 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
13075 (__mach_msg): Add hidden prototype.
13076 * mach/msg.c: Include <mach.h>.
13077 (__mach_msg): Add hidden definition.
13078 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
13079 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
13080 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
13081 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
13082 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
13083 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
13084 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
13085 prototype and definition.
13086 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
13087 hidden target for _hurd_self_sigstate.
13088
13089 2018-06-15 Joseph Myers <joseph@codesourcery.com>
13090
13091 [BZ #23007]
13092 * stdlib/tst-strtod-nan-sign-main.c: New file.
13093 * stdlib/tst-strtod-nan-sign.c: Likewise.
13094 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
13095 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
13096 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
13097 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
13098 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
13099
13100 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
13101
13102 [BZ #23007]
13103 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
13104 appropriate sign.
13105
13106 2018-06-14 Florian Weimer <fweimer@redhat.com>
13107
13108 [BZ #23290]
13109 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
13110 that the result stays within the ISO-8859-1 range.
13111 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
13112 characters are defined in IBM273.
13113
13114 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
13115
13116 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
13117 __mach_task_self): Remove attribute_hidden.
13118
13119 2018-06-14 Joseph Myers <joseph@codesourcery.com>
13120
13121 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
13122 ignore -Wrestrict for one test.
13123
13124 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
13125 Szabolcs Nagy <szabolcs.nagy@arm.com>
13126
13127 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13128
13129 2018-06-14 Florian Weimer <fweimer@redhat.com>
13130
13131 * scripts/update-abilist.sh: Accept empty list of files to patch.
13132
13133 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13134
13135 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13136 test-xfail-check-abi-libmachuser): Add.
13137 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13138 __libc_read and __libc_write to __read and __write.
13139 * sysdeps/hurd/include/hurd/port.h: New file.
13140 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13141 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13142 __thread_switch, __evc_wait): Move declarations to...
13143 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13144 attribute_hidden.
13145 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13146 use PLT to call _hurd_self_sigstate.
13147
13148 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13149
13150 [BZ #23279]
13151 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13152 MAX_EXP as overflowing.
13153 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13154 overflow flag.
13155 (round_str): Output also whether result overflows in each rounding
13156 mode.
13157 * stdlib/tst-strtod-round-data: Add more tests.
13158 * stdlib/tst-strtod-round-data.h: Regenerated.
13159 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13160 (TEST): Handle extra arguments for overflow flags.
13161 (struct test_overflow): New type.
13162 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13163 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13164 (test_in_one_mode): Take argument with overflow information.
13165 (do_test): Update calls to test_in_one_mode.
13166
13167 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13168
13169 * elf/dl-load (_dl_dst_substitute): Correct comment.
13170 (_dl_dst_count): Likewise.
13171
13172 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13173 lll_futex_timed_wait.
13174
13175 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13176
13177 [BZ #23277]
13178 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13179 attribute.
13180 * math/test-nan-const.c: New file.
13181 * math/Makefile (tests): Add test-nan-const.
13182 (CFLAGS-test-nan-const.c): New variable.
13183
13184 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13185
13186 * benchtests/scripts/compare_strings.py (process_results): Add
13187 funcs argument. Compare only functions which are selected.
13188 (main): Check if base function is among selected functions.
13189 Pass selected functions to process_results.
13190 (__main__): Add -f/--functions argument.
13191
13192 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13193 Hongbo Zhang <hongbo.zhang@linaro.org>
13194
13195 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13196 __memcpy_falkor for phecda core.
13197 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13198 __memmove_falkor for phecda core.
13199 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13200 __memset_falkor for phecda core.
13201 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13202 for phecda core.
13203 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13204 macro to identify phecda core.
13205
13206 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13207 Andreas Schwab <schwab@suse.de>
13208 Dmitry V. Levin <ldv@altlinux.org>
13209 Florian Weimer <fweimer@redhat.com>
13210
13211 [BZ #23102]
13212 [BZ #21942]
13213 [BZ #18018]
13214 [BZ #23259]
13215 CVE-2011-0536
13216 * elf/dl-dst.h: Remove DL_DST_COUNT.
13217 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13218 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13219 (is_dst): Comment. Support ELF gABI.
13220 (_dl_dst_count): Comment. Simplify and count DSTs.
13221 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13222 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13223 locals.
13224
13225 2018-06-12 Zack Weinberg <zackw@panix.com>
13226
13227 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13228 * sysdeps/unix/sysv/linux/dl-sysdep.c
13229 Include not-cancel.h. Use __close_nocancel instead of __close,
13230 __open64_nocancel instead of __open, __read_nocancel instead of
13231 __libc_read, and __write_nocancel instead of __libc_write.
13232
13233 * csu/check_fds.c (check_one_fd)
13234 * sysdeps/posix/fdopendir.c (__fdopendir)
13235 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13236 instead of __fcntl and/or __libc_fcntl.
13237
13238 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13239 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13240 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13241 Use __open64_nocancel instead of __open_nocancel.
13242
13243 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13244 hidden_proto declarations to the end and issue them if either
13245 IS_IN(libc) or IS_IN(rtld).
13246 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13247 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13248 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13249 read_nocancel, waitpid_nocancel, write_nocancel.
13250
13251 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13252 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13253 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13254
13255 * nptl/pt-fcntl.c: New file.
13256 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13257 (libpthread-routines): Add pt-fcntl.
13258 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13259 (__libc_fcntl): Remove attribute_hidden.
13260 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13261 __fcntl_nocancel_adjusted, not fcntl_common.
13262 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13263 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13264 to fcntl_nocancel.c.
13265 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13266 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13267 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13268 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13269
13270 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13271 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13272 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13273 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13274 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13275 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13276 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13277 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13278 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13279 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13280 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13281 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13282 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13283 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13284 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13285 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13286 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13287 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13288 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13289 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13290
13291 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13292 libpthread-routines.
13293 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13294 defines nothing.
13295
13296 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13297 __libc_read, and __write instead of __libc_write. Define
13298 __open64 in addition to __open.
13299
13300 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13301
13302 [BZ #23250]
13303 [BZ #10686]
13304 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13305 to _private_tm[3] and add __glibc_reserved2.
13306 Add _Static_assert of offset of __private_ss == 0x30.
13307 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13308 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13309
13310 2018-06-12 Florian Weimer <fweimer@redhat.com>
13311
13312 x86: Make strncmp usable from rtld.
13313 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13314 __strncmp_ia32 if in libc (and not in rtld).
13315 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13316 strncmp if not in libc (and not to __strncmp_sse2).
13317
13318 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13319
13320 [BZ #23140]
13321 * localedata/locales/gd_GB (mon): Rename to...
13322 (alt_mon): This.
13323 (mon): Import from CLDR (genitive case).
13324 * localedata/locales/hsb_DE (mon): Rename to...
13325 (alt_mon): This.
13326 (mon): Import from CLDR (genitive case).
13327 * localedata/locales/wa_BE (mon): Rename to...
13328 (alt_mon): This.
13329 (mon): Add, fill with the proper genitive forms, but CLDR data
13330 is incomplete; completed according to the comments in this file.
13331 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13332
13333 * localedata/locales/wa_BE (country_name): Reword
13334 "Beljike" -> "Beldjike".
13335
13336 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13337
13338 [BZ #23272]
13339 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13340 cases of non-finite arguments.
13341 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13342
13343 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13344
13345 [BZ #23174]
13346 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13347
13348 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13349
13350 [BZ #23264]
13351 * include/unistd.h (__execvpex): New prototype.
13352 * posix/Makefile (tests): Add tst-spawn4.
13353 (tests-internal): Add tst-spawn4-compat.
13354 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13355 * posix/tst-spawn4-compat.c: New file.
13356 * posix/tst-spawn4.c: Likewise.
13357 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13358 binaries as shell scripts.
13359 * sysdeps/posix/spawni.c (__spawni): Likewise.
13360
13361 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13362
13363 [BZ #23145]
13364 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13365 ($(all-built-dso:=.dynsym): New target.
13366 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13367 ($(objpfx)check-initfini.out): New target.
13368 (generated): Add check-initfini.out.
13369 * scripts/check-initfini.awk: New file.
13370 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13371 (_fini): Likewise.
13372 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13373 (_fini): Likewise.
13374 * sysdeps/arm/crti.S (_init): Mark as hidden.
13375 (_fini): Likewise.
13376 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13377 (_fini): Likewise.
13378 * sysdeps/i386/crti.S (_init): Mark as hidden.
13379 (_fini): Likewise.
13380 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13381 (_fini): Likewise.
13382 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13383 (_fini): Likewise.
13384 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13385 (_fini): Likewise.
13386 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13387 (_fini): Likewise.
13388 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13389 (_fini): Likewise.
13390 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13391 (_fini): Likewise.
13392 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13393 (_fini): Likewise.
13394 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13395 (_fini): Likewise.
13396 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13397 (_fini): Likewise.
13398 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13399 (_fini): Likewise.
13400 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13401 (_fini): Likewise.
13402 * sysdeps/sh/crti.S (_init): Mark as hidden.
13403 (_fini): Likewise.
13404 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13405 (_fini): Likewise.
13406 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13407 (_fini): Likewise.
13408
13409 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13410
13411 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13412 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13413 and TF redirection to KFtype and KF only when the default
13414 long double type is not the IEEE 128-bit floating point type.
13415
13416 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13417
13418 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13419 macro.
13420 (HWCAP_USCAT): Likewise.
13421 (HWCAP_ILRCPC): Likewise.
13422 (HWCAP_FLAGM): Likewise.
13423 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13424 Increase to 28.
13425 (_dl_aarch64_cap_flags): Add new flag names.
13426
13427 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13428 (MAP_FIXED_NOREPLACE): New macro.
13429 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13430 (MAP_FIXED_NOREPLACE): Likewise.
13431 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13432 (MAP_FIXED_NOREPLACE): Likewise.
13433 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13434 (MAP_FIXED_NOREPLACE): Likewise.
13435 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13436 (MAP_FIXED_NOREPLACE): Likewise.
13437 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13438 (MAP_FIXED_NOREPLACE): Likewise.
13439 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13440 (MAP_FIXED_NOREPLACE): Likewise.
13441 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13442 (MAP_FIXED_NOREPLACE): Likewise.
13443 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13444 (MAP_FIXED_NOREPLACE): Likewise.
13445 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13446 (MAP_FIXED_NOREPLACE): Likewise.
13447 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13448 (MAP_FIXED_NOREPLACE): Likewise.
13449 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13450 (MAP_FIXED_NOREPLACE): Likewise.
13451 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13452 (MAP_FIXED_NOREPLACE): Likewise.
13453 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13454 (MAP_FIXED_NOREPLACE): Likewise.
13455 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13456 (MAP_FIXED_NOREPLACE): Likewise.
13457
13458 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13459 version to 4.17.
13460
13461 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13462
13463 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13464 version to 4.17
13465
13466 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13467
13468 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13469 int.
13470 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13471
13472 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13473
13474 * benchtests/scripts/compare_string.py: (process_results) Catch
13475 exception in non-existent base_func and catch exception in
13476 non-existent attribute.
13477 (parse_file) Catch exception if input file does not exist.
13478
13479 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13480
13481 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13482 options to avoid diff calculation and omit header, respectively.
13483 (main): process --no-diff and --no-header
13484
13485 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13486 H.J. Lu <hongjiu.lu@intel.com>
13487
13488 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13489 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13490 wcsncmp-sse2.
13491 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13492 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13493 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13494 and __wcsncmp_sse2.
13495 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13496 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13497 AVX unaligned load is fast and vzeroupper is preferred.
13498 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13499 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13500 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13501 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13502 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13503 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13504 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13505 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13506 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13507 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13508 is undefined.
13509
13510 2018-06-01 Florian Weimer <fweimer@redhat.com>
13511
13512 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13513 configuring with --disable-multi-arch, building with
13514 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13515 Haswell-era CPU.
13516
13517 2018-06-01 Florian Weimer <fweimer@redhat.com>
13518
13519 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13520 results from building with “-march=x86-64 -mtune=generic
13521 -mfpmath=sse” and running on a Haswell-era CPU.
13522
13523 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13524
13525 [BZ #18473]
13526 * soft-fp/sqrttf2.c: Remove file.
13527 * soft-fp/sqrtdf2.c: Move to ....
13528 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13529 <shlib-compat.h>.
13530 (__sqrtdf2): Make conditional on
13531 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13532 symbol.
13533 * soft-fp/sqrtsf2.c: Move to ....
13534 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13535 <shlib-compat.h>.
13536 (__sqrtsf2): Make conditional on
13537 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13538 symbol.
13539 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13540 (gcc-double-routines): Remove sqrtdf2.
13541 (gcc-quad-routines): Remove sqrttf2.
13542 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13543 Do not filter out sqrtsf2 and sqrtdf2.
13544 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13545 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13546
13547 2018-06-01 Florian Weimer <fweimer@redhat.com>
13548
13549 * sysdeps/generic/libcidn.abilist: Remove file.
13550
13551 2018-06-01 Florian Weimer <fweimer@redhat.com>
13552
13553 [BZ #23236]
13554 * libio/strfile.h (struct _IO_str_fields): Rename members to
13555 discourage their use and add comment.
13556 (_IO_STR_DYNAMIC): Remove unused macro.
13557 * libio/strops.c (_IO_str_init_static_internal): Do not use
13558 callback pointers. Call malloc and free.
13559 (_IO_str_overflow): Do not use callback pointers. Call malloc
13560 and free.
13561 (enlarge_userbuf): Likewise.
13562 (_IO_str_finish): Call free.
13563 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13564 _allocate_buffer_unused.
13565 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13566 and free.
13567 (enlarge_userbuf): Likewise.
13568 (_IO_wstr_finish): Call free.
13569 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13570 _allocate_buffer_unused, _free_buffer_unused.
13571 * libio/memstream.c (__open_memstream): Likewise.
13572 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13573 * libio/wmemstream.c (open_wmemstream): Likewise.
13574
13575 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13576
13577 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13578 AMD Ryzen 7 1800X.
13579
13580 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13581
13582 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13583 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13584 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13585 New file.
13586 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13587 Likewise.
13588 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13589
13590 2018-05-29 Florian Weimer <fweimer@redhat.com>
13591
13592 * support/Makefile (libsupport-routines): Add
13593 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13594 xpthread_barrierattr_setpshared.
13595 * support/xpthread_barrierattr_destroy.c: New file.
13596 * support/xpthread_barrierattr_init.c: Likewise.
13597 * support/xpthread_barrierattr_setpshared.c: Likewise.
13598
13599 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13600
13601 [BZ #23206]
13602 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13603 _r_debug and update DT_DEBUG for debugger.
13604
13605 2018-05-29 Florian Weimer <fweimer@redhat.com>
13606
13607 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13608 (tst-strtod5i.out): Likewise.
13609
13610 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13611
13612 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13613 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13614 (sparc64-quad-routines): New variable. Moved from ....
13615 [$(subdir) = soft-fp] (sysdep_routines): Add
13616 $(sparc64-quad-routines). Moved from ....
13617 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13618 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13619 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13620 moved from ....
13621 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13622 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13623 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13624 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13625 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13626 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13627 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13628 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13629 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13630 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13631 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13632 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13633 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13634 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13635 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13636 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13637 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13638 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13639 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13640 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13641 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13642 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13643 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13644 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13645 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13646 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13647 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13648 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13649 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13650 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13651 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13652 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13653 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13654 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13655 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13656 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13657 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13658 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13659 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13660 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13661 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13662 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13663 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13664 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13665 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13666 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13667 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13668 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13669 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13670 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13671 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13672 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13673 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13674 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13675 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13676 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13677 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13678 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13679
13680 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13681 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13682 (sparc32-quad-routines): New variable. Moved from ....
13683 [$(subdir) = soft-fp] (sysdep_routines): Add
13684 $(sparc32-quad-routines). Moved from ....
13685 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13686 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13687 moved from ....
13688 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13689 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13690 * sysdeps/sparc/sparc32/q_add.c: ... here.
13691 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13692 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13693 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13694 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13695 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13696 * sysdeps/sparc/sparc32/q_div.c: ... here.
13697 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13698 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13699 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13700 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13701 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13702 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13703 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13704 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13705 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13706 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13707 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13708 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13709 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13710 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13711 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13712 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13713 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13714 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13715 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13716 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13717 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13718 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13719 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13720 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13721 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13722 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13723 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13724 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13725 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13726 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13727 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13728 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13729 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13730 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13731 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13732 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13733 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13734 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13735 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13736 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13737 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13738 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13739 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13740 * sysdeps/sparc/sparc32/q_util.c: ... here.
13741 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13742 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13743 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13744 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13745
13746 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13747 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13748
13749 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13750 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13751 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13752 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13753
13754 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13755
13756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13757 powerpc/soft-fp.
13758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13759 Likewise.
13760 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13761 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13762
13763 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13764
13765 [BZ #23171]
13766 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13767 double version.
13768
13769 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13770
13771 * sysdeps/sh/Implies: Remove sh/soft-fp.
13772 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13773 * sysdeps/sh/sfp-machine.h: ... here.
13774
13775 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13776
13777 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13778 (__mempcpy_erms): Skip zero length.
13779 (__memmove_erms): Likewise.
13780 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13781 (__memset_erms): Likewise.
13782
13783 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13784
13785 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13786 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13787 Add functions moved from ....
13788 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13789 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13790 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13791 from ....
13792 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13793 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13794 * sysdeps/alpha/e_sqrtl.c: ... here.
13795 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13796 * sysdeps/alpha/local-soft-fp.h: ... here.
13797 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13798 * sysdeps/alpha/ots_add.c: ... here.
13799 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13800 * sysdeps/alpha/ots_cmp.c: ... here.
13801 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13802 * sysdeps/alpha/ots_cmpe.c: ... here.
13803 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13804 * sysdeps/alpha/ots_cvtqux.c: ... here.
13805 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13806 * sysdeps/alpha/ots_cvtqx.c: ... here.
13807 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13808 * sysdeps/alpha/ots_cvttx.c: ... here.
13809 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13810 * sysdeps/alpha/ots_cvtxq.c: ... here.
13811 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13812 * sysdeps/alpha/ots_cvtxt.c: ... here.
13813 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13814 * sysdeps/alpha/ots_div.c: ... here.
13815 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13816 * sysdeps/alpha/ots_mul.c: ... here.
13817 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13818 * sysdeps/alpha/ots_nintxq.c: ... here.
13819 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13820 * sysdeps/alpha/ots_sub.c: ... here.
13821 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13822 * sysdeps/alpha/sfp-machine.h: ... here.
13823
13824 2018-05-23 Florian Weimer <fweimer@redhat.com>
13825
13826 [BZ #19728]
13827 [BZ #19729]
13828 [BZ #22247]
13829 CVE-2016-6261
13830 CVE-2016-6263
13831 CVE-2017-14062
13832 Switch to extern IDNA implementation (libidn2).
13833 * libidn: Remove subdirectory.
13834 * LICENSES: Do not mention licensing conditions for the removed
13835 libidn code.
13836 * config.h.in (HAVE_LIBIDN): Remove.
13837 * include/dlfcn.h (__libc_dlopen): Update comment.
13838 * include/idna.h: Remove file.
13839 * inet/Makefile (routines): Add idna.
13840 (tests-static, tests-internal): Add tst-idna_name_classify.
13841 (LOCALES): Generate locales for tests.
13842 (tst-idna_name_classify.out): Depend on generated locales.
13843 * inet/idna_name_classify.c: New file.
13844 * inet/tst-idna_name_classify.c: Likewise.
13845 * inet/net-internal.h (__idna_to_dns_encoding)
13846 (__idna_from_dns_encoding): Declare.
13847 * inet/net-internal.h (enum idna_name_classification): Define.
13848 (__idna_name_classify): Declare.
13849 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13850 __idna_from_dns_encoding.
13851 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13852 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13853 name as a fallback in case of encoding errors.
13854 (getnameinfo): Use DEPRECATED_NI_IDN.
13855 * inet/idna.c: New file.
13856 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13857 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13858 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13859 (modules-names): Add tst-no-libidn2.
13860 (extra-test-objs): Add tst-no-libidn2.os.
13861 (LDFLAGS-tst-no-libidn2.so): Set soname.
13862 (LOCALES): Set, and generate locales.
13863 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13864 (tst-resolv-ai_idn-latin1): Likewise.
13865 (tst-resolv-ai_idn-nolibidn2): Likewise.
13866 (tst-resolv-ai_idn.out): Depend on locales.
13867 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13868 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13869 tst-no-libidn2.so.
13870 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13871 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13872 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13873 * resolv/tst-resolv-ai_idn.c: New file.
13874 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13875 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13876 * resolv/tst-no-libidn2.c: Likewise.
13877 * support/support_format_addrinfo.c (format_ai_flags): Do not
13878 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13879 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13880 (gaih_inet): Call __idna_to_dns_encoding and
13881 __idna_from_dns_encoding, and use the original (punycode) name if
13882 __idna_from_dns_encoding fails due to an encoding error.
13883 (getaddrinfo): Use DEPRECATED_AI_IDN.
13884 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13885 * sysdeps/unix/inet/configure: Remove file.
13886 * sysdeps/unix/inet/configure.ac: Likewise.
13887
13888 2018-05-23 Florian Weimer <fweimer@redhat.com>
13889
13890 Implement allocate_once.
13891 * include/allocate_once.h: New file.
13892 * misc/allocate_once.c: Likewise.
13893 * misc/tst-allocate_once.c: Likewise.
13894 * misc/Makefile (routines): Add allocate_once.
13895 (tests-internal): Add tst-allocate_once.
13896 (generated): Add tst-allocate_once.mtrace,
13897 tst-allocate_once-mem.out.
13898 (tests-special): Add tst-allocate_once-mem.out.
13899 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13900 (tst-allocate_once-mem.out): Call mtrace.
13901 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13902
13903 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13904
13905 [BZ #23196]
13906 * string/test-memcpy.c (do_test1): New function.
13907 (test_main): Call it.
13908
13909 2018-05-23 Andreas Schwab <schwab@suse.de>
13910
13911 [BZ #23196]
13912 CVE-2018-11237
13913 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13914 (L(preloop_large)): Save initial destination pointer in %r11 and
13915 use it instead of %rax after the loop.
13916 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13917
13918 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13919
13920 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13921 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13922 -I../soft-fp. Moved from ....
13923 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13924 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13925 * sysdeps/aarch64/e_sqrtl.c: ... here.
13926 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13927 * sysdeps/aarch64/sfp-machine.h: ... here.
13928
13929 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13930 -Wmaybe-uninitialized around access to fq[0].
13931 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13932 Likewise.
13933
13934 [BZ #18471]
13935 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13936 aliases for non-libc case of versioned symbols.
13937 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13938 (llseek): Define as compat symbol if
13939 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13940 with link warning.
13941 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13942 Make into a compat symbol, disabled for minimum symbol version
13943 GLIBC_2.28 and later.
13944 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13945
13946 2018-05-22 Florian Weimer <fweimer@redhat.com>
13947
13948 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13949 not add -mpreferred-stack-boundary=4.
13950 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13951 (stack-align-test-flags): Likewise.
13952 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13953 Likewise.
13954 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13955 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13956 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13957 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13958 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13959 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13960 (CFLAGS-tst-align2.c): Likewise.
13961
13962 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13963
13964 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13965 (index_arch_Prefer_FSRM): Likewise.
13966 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13967 Also check Prefer_FSRM.
13968 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13969 Also return OPTIMIZE (erms) for Prefer_FSRM.
13970
13971 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13972
13973 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13974 (index_cpu_FSRM): Likewise.
13975 (reg_FSRM): Likewise.
13976
13977 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13978
13979 * math/gen-tgmath-tests.py: Import sys.
13980 (Tests.__init__): Initialize macros_seen.
13981 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13982 if requested to do so for this macro.
13983 (Tests.add_all_tests): Take argument for macro for which to
13984 generate tests.
13985 (Tests.check_macro_list): New function.
13986 (main): Handle check-list argument and argument specifying macro
13987 for which to generate tests.
13988 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13989 [PYTHON] (tgmath3-macro-tests): Likewise.
13990 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13991 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13992 not test-tgmath3.c.
13993 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13994 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13995 to CFLAGS.
13996 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13997 [PYTHON] ($(foreach
13998 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13999 rule.
14000 [PYTHON] (tests-special): Add
14001 $(objpfx)test-tgmath3-macro-list.out.
14002 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
14003
14004 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
14005 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
14006 later.
14007
14008 [BZ #22639]
14009 * time/tzset.c (SECSPERDAY): Cast to time_t.
14010 * time/tst-y2039.c: New file.
14011 * time/Makefile (tests): Add tst-y2039.
14012
14013 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
14014
14015 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
14016 (PREFETCH_ONE_SET): Remove duplicate line.
14017
14018 2018-05-17 Florian Weimer <fweimer@redhat.com>
14019
14020 * sysdeps/generic/math-type-macros-double.h: Include
14021 <math-nan-payload-double.h> after <libm-alias-double.h>.
14022 * sysdeps/generic/math-type-macros-float.h: Include
14023 <math-nan-payload-float.h> after <libm-alias-float.h>.
14024 * sysdeps/generic/math-type-macros-float128.h: Include
14025 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
14026 * sysdeps/generic/math-type-macros-ldouble.h: Include
14027 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
14028
14029 2018-05-17 Andreas Schwab <schwab@suse.de>
14030
14031 * resolv/res_send.c (__res_context_send): Don't set errno when
14032 returing error after malloc failure.
14033
14034 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
14035
14036 * nptl/allocatestack.c (allocate_stack): Remove the
14037 !__ASSUME_PRIVATE_FUTEX paths.
14038 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
14039 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
14040 Likewise.
14041 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
14042 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14043 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14044 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
14045 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
14046 !__ASSUME_PRIVATE_FUTEX path.
14047 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
14048 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
14049 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
14050 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
14051 !__ASSUME_PRIVATE_FUTEX macros.
14052 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
14053 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
14054 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
14055 * sysdeps/unix/sysv/linux/kernel-features.h
14056 (__ASSUME_PRIVATE_FUTEX): Removed.
14057
14058 2018-05-17 Joseph Myers <joseph@codesourcery.com>
14059
14060 * math/Makefile (libm-narrow-fns): Add div.
14061 (libm-test-funcs-narrow): Likewise.
14062 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
14063 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
14064 * math/gen-auto-libm-tests.c (test_functions): Add div.
14065 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
14066 (NARROW_DIV_ROUND_TO_ODD): Likewise.
14067 (NARROW_DIV_TRIVIAL): Likewise.
14068 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
14069 macro.
14070 (__ddivl): Likewise.
14071 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
14072 ddiv.
14073 (CFLAGS-nldbl-ddiv.c): New variable.
14074 (CFLAGS-nldbl-fdiv.c): Likewise.
14075 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14076 __nldbl_ddivl.
14077 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
14078 prototype.
14079 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
14080 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
14081 * math/auto-libm-test-in: Add tests of div.
14082 * math/auto-libm-test-out-narrow-div: New generated file.
14083 * math/libm-test-narrow-div.inc: New file.
14084 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
14085 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
14086 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
14087 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
14088 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
14089 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
14090 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
14091 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
14092 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
14093 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
14094 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
14095 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
14096 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
14097 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
14098 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
14099 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
14100 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
14101 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
14102 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14103 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14104 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14105 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14106 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14107 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14108 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14109 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14110 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14111 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14112 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14113 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14114 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14115 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14120 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14121 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14122 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14123 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14124 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14125 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14126 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14127 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14128
14129 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14130
14131 [BZ #23178]
14132 * nscd/nscd-client.h (sendfileall): Remove prototype.
14133 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14134 (handle_request): Use writeall instead of sendfileall.
14135 * nscd/aicache.c (addhstaiX): Likewise.
14136 * nscd/grpcache.c (cache_addgr): Likewise.
14137 * nscd/hstcache.c (cache_addhst): Likewise.
14138 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14139 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14140 * nscd/pwdcache.c (cache_addpw): Likewise.
14141 * nscd/servicescache.c (cache_addserv): Likewise.
14142 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14143 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14144 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14145 Remove define.
14146
14147 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14148
14149 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14150 Include <string/strncat.c>.
14151 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14152 alias.
14153 (__GI___strncat): New hidden alias.
14154
14155 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14156
14157 * sysdeps/mips/mips32/libm-test-ulps: Update.
14158 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14159
14160 2018-05-16 Florian Weimer <fweimer@redhat.com>
14161
14162 * support/Makefile (libsupport-routines): Add support_quote_blob,
14163 support_test_compare_blob.
14164 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14165 * support/check.h (TEST_COMPARE_BLOB): Define.
14166 (support_test_compare_blob): Declare.
14167 * support/support.h (support_quote_blob): Declare.
14168 * support/support_quote_blob.c: New file.
14169 * support/support_test_compare_blob.c: Likewise.
14170 * support/tst-support_quote_blob.c: Likewise.
14171 * support/tst-test_compare_blob.c: Likewise.
14172
14173 2018-05-16 Florian Weimer <fweimer@redhat.com>
14174
14175 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14176 of <strtod_nan_double.h>.
14177 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14178 instead of SET_MANTISSA.
14179 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14180 of include <strtod_nan_float.h>.
14181 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14182 instead of <strtod_nan_ldouble.h>.
14183 * stdlib/strtod_nan_double.h: Move to ...
14184 * sysdeps/generic/math-nan-payload-double.h: ... here.
14185 (FLOAT): Remove definition.
14186 (SET_MANTISSA): Rename to ...
14187 (SET_NAN_PAYLOAD): ... this.
14188 * stdlib/strtod_nan_float.h: Move to ...
14189 * sysdeps/generic/math-nan-payload-float.h: ... here.
14190 (FLOAT): Remove definition.
14191 (SET_MANTISSA): Rename to ...
14192 (SET_NAN_PAYLOAD): ... this.
14193 * sysdeps/generic/math-type-macros-double.h: Include
14194 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14195 instead of <math-svid-compat.h>.
14196 * sysdeps/generic/math-type-macros-float.h: Include
14197 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14198 instead of <math-svid-compat.h>.
14199 * sysdeps/generic/math-type-macros-float128.h: Include
14200 <math-nan-payload-float128.h>.
14201 * sysdeps/generic/math-type-macros-ldouble.h: Include
14202 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14203 instead of <math-svid-compat.h>.
14204 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14205 check for definition.
14206 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14207 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14208 Include <ieee754_float128.h>.
14209 (FLOAT): Remove definition.
14210 (SET_MANTISSA): Rename to ...
14211 (SET_NAN_PAYLOAD): ... this.
14212 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14213 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14214 Do not include <float128_private.h>.
14215 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14216 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14217 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14218 (FLOAT): Remove definition.
14219 (SET_MANTISSA): Rename to ...
14220 (SET_NAN_PAYLOAD): ... this.
14221 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14222 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14223 (FLOAT): Remove definition.
14224 (SET_MANTISSA): Rename to ...
14225 (SET_NAN_PAYLOAD): ... this.
14226 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14227 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14228 (FLOAT): Remove definition.
14229 (SET_MANTISSA): Rename to ...
14230 (SET_NAN_PAYLOAD): ... this.
14231 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14232 of "../stdlib/strtod_nan_double.h".
14233 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14234 of "../stdlib/strtod_nan_float.h".
14235 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14236 instead of "../stdlib/strtod_nan_ldouble.h".
14237 * manual/arith.texi (Parsing of Floats): Adjust comment.
14238
14239 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14240
14241 * math/Makefile (libm-narrow-fns): Add mul.
14242 (libm-test-funcs-narrow): Likewise.
14243 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14244 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14245 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14246 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14247 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14248 (NARROW_MUL_TRIVIAL): Likewise.
14249 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14250 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14251 macro.
14252 (__dmull): Likewise.
14253 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14254 dmul.
14255 (CFLAGS-nldbl-dmul.c): New variable.
14256 (CFLAGS-nldbl-fmul.c): Likewise.
14257 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14258 __nldbl_dmull.
14259 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14260 prototype.
14261 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14262 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14263 * math/auto-libm-test-in: Add tests of mul.
14264 * math/auto-libm-test-out-narrow-mul: New generated file.
14265 * math/libm-test-narrow-mul.inc: New file.
14266 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14267 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14268 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14269 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14270 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14271 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14272 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14273 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14274 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14275 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14276 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14277 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14278 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14279 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14280 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14281 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14282 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14283 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14284 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14285 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14286 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14287 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14288 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14289 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14290 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14292 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14293 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14300 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14302 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14303 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14304 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14305 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14306 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14307 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14308 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14309 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14310
14311 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14312
14313 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14314 with *%eax in call.
14315
14316 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14317
14318 * sysdeps/i386/ldsodefs.h: Removed.
14319 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14320 * sysdeps/x86/ldsodefs.h: This.
14321 (La_i86_regs): New.
14322 (La_i86_retval): Likewise.
14323 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14324 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14325
14326 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14327
14328 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14329 unnecessary testl.
14330
14331 2018-05-13 Alan Modra <amodra@gmail.com>
14332
14333 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14334 R_PARISC_TLS_DTPOFF32 reloc addend.
14335
14336 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14337
14338 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14339 * math/math.h: Restrict the prototype definition for the functions
14340 issignaling(_Float128) and iszero(_Float128); and template
14341 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14342 __HAVE_FLOAT128_UNLIKE_LDBL.
14343 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14344 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14345 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14346 __f128() constants; define the type _Float128 as long double;
14347 and reuse long double in __CFLOAT128.
14348
14349 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14350
14351 * sysdeps/generic/math_private.h: Do not include
14352 <math-barriers.h>.
14353 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14354 <math_private.h>.
14355 * math/fromfp.h: Include <math-barriers.h>.
14356 * math/math-narrow.h: Likewise.
14357 * math/s_nextafter.c: Likewise.
14358 * math/s_nexttowardf.c: Likewise.
14359 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14360 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14361 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14362 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14363 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14364 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14365 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14366 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14367 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14368 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14369 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14370 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14371 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14372 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14373 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14374 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14375 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14376 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14377 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14378 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14379 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14380 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14381 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14382 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14383 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14384 * sysdeps/ieee754/k_standardl.c: Likewise.
14385 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14386 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14387 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14388 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14389 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14390 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14391 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14392 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14393 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14394 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14395 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14396 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14397 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14398 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14399 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14400 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14401 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14402 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14403 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14404 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14405 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14406 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14407
14408 2018-05-11 Florian Weimer <fweimer@redhat.com>
14409
14410 Use 64-bit epoch values in the time zone file parser.
14411 * include/time.h (internal_time_t): Define.
14412 (__tzfile_compute): Use it.
14413 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14414 member.
14415 (transitions): Switch to internal_time_t.
14416 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14417 types.
14418 (__tzfile_compute): Use internal_time_t for timer argument. Check
14419 for truncation before calling __offtime.
14420
14421 2018-05-11 Florian Weimer <fweimer@redhat.com>
14422
14423 [BZ #23166]
14424 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14425 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14426 Likewise.
14427 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14428 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14429 export without --enable-obsolete-rpc.
14430 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14431 symbol. This should not have been exported, ever.
14432
14433 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14434
14435 [BZ #23152]
14436 * localedata/locales/gd_GB (abmon): Fix typo in May:
14437 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14438
14439 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14440
14441 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14442 Use multiple registers to copy data in loop tail.
14443
14444 * sysdeps/aarch64/multiarch/memmove_falkor.S
14445 (__memmove_falkor): Use multiple registers to move data in
14446 loop tail.
14447
14448 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14449
14450 * math/math-underflow.h: New file.
14451 * sysdeps/generic/math_private.h: Do not include <float.h>.
14452 (fabs_tg): Remove macro. Moved to math-underflow.h.
14453 (min_of_type_f): Likewise.
14454 (min_of_type_): Likewise.
14455 (min_of_type_l): Likewise.
14456 (min_of_type_f128): Likewise.
14457 (min_of_type): Likewise.
14458 (math_check_force_underflow): Likewise.
14459 (math_check_force_underflow_nonneg): Likewise.
14460 (math_check_force_underflow_complex): Likewise.
14461 * math/e_exp2_template.c: Include <math-underflow.h>.
14462 * math/k_casinh_template.c: Likewise.
14463 * math/s_catan_template.c: Likewise.
14464 * math/s_catanh_template.c: Likewise.
14465 * math/s_ccosh_template.c: Likewise.
14466 * math/s_cexp_template.c: Likewise.
14467 * math/s_clog10_template.c: Likewise.
14468 * math/s_clog_template.c: Likewise.
14469 * math/s_csin_template.c: Likewise.
14470 * math/s_csinh_template.c: Likewise.
14471 * math/s_csqrt_template.c: Likewise.
14472 * math/s_ctan_template.c: Likewise.
14473 * math/s_ctanh_template.c: Likewise.
14474 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14475 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14476 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14477 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14478 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14479 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14480 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14481 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14482 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14483 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14484 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14485 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14486 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14487 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14488 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14489 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14490 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14491 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14492 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14493 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14494 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14495 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14496 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14497 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14498 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14499 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14500 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14501 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14502 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14503 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14504 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14505 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14506 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14507 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14508 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14509 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14510 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14511 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14512 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14513 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14514 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14515 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14516 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14517 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14518 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14519 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14520 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14521 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14522 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14523 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14524 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14525 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14526 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14527 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14528 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14529 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14530 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14531 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14532 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14533 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14534 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14535 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14536 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14537 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14538 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14539 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14540 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14541 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14542 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14543 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14544 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14545 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14546 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14547 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14548 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14549 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14550 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14551 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14552 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14553 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14554 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14555 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14556 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14557 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14558
14559 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14560
14561 * sysdeps/generic/math-barriers.h: New file.
14562 * sysdeps/generic/math_private.h [!math_opt_barrier]
14563 (math_opt_barrier): Move to math-barriers.h.
14564 [!math_opt_barrier] (math_force_eval): Likewise.
14565 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14566 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14567 math-barriers.h.
14568 (math_force_eval): Likewise.
14569 * sysdeps/alpha/fpu/math-barriers.h: New file.
14570 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14571 math-barriers.h.
14572 (math_force_eval): Likewise.
14573 * sysdeps/x86/fpu/math-barriers.h: New file.
14574 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14575 math-barriers.h.
14576 (math_force_eval): Likewise.
14577 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14578 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14579 multiple-include guard for rename.
14580 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14581 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14582 math-barriers.h.
14583 (math_force_eval): Likewise.
14584
14585 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14586
14587 [BZ #22786]
14588 CVE-2018-11236
14589 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14590 computation.
14591 * stdlib/Makefile (test-bz22786): New test.
14592 * stdlib/test-bz22786.c: New test.
14593
14594 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14595
14596 * include/math-narrow-eval.h: New file. Contents moved from ....
14597 * sysdeps/generic/math_private.h: ... here.
14598 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14599 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14600 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14601 * stdlib/strtod_l.c: Likewise.
14602 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14603 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14604 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14605 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14606 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14607 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14608 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14609 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14610 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14611 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14612 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14613 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14614 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14615 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14616 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14617 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14618 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14619 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14620 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14621 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14622 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14623 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14624 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14625 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14626 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14627 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14628 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14629 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14630 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14631
14632 2018-05-08 Andreas Schwab <schwab@suse.de>
14633
14634 * sysdeps/nptl/internaltypes.h: Fix comment.
14635
14636 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14637
14638 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14639 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14640 hidden.
14641
14642 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14643
14644 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14645 of I into loop header.
14646 * benchtests/bench-memmove-walk.c
14647 (test_main): Likewise.
14648
14649 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14650
14651 Revert:
14652 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14653 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14654
14655 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14656
14657 [BZ #20419]
14658 * elf/dl-load.c (open_verify): Fix stack overflow.
14659 * elf/Makefile (tst-big-note): New test.
14660 * elf/tst-big-note-lib.S: New.
14661 * elf/tst-big-note.c: New.
14662
14663 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14664
14665 * scripts/abilist.awk: Ignore absolute symbols.
14666 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14667 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14668 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14669 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14670 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14671 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14672 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14673 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14674 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14675 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14676 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14677 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14687 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14688 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14689 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14690 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14691 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14692 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14693 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14695 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14696 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14701 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14702 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14703 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14704 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14705 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14706 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14707 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14708 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14709 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14710 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14711 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14712 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14713 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14714 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14715 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14716 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14717 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14718 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14719 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14720 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14721 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14722 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14723 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14724 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14725 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14726 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14727 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14728 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14729 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14730 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14731 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14732 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14733 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14734 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14735 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14736 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14737 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14738 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14739 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14740 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14741 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14742 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14743 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14744 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14745 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14746 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14747 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14748 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14749 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14750 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14751 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14752 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14753 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14754 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14755 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14756 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14757 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14758 Likewise.
14759 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14760 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14761 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14762 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14763 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14764 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14765 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14766 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14767 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14768 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14769 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14770 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14771 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14772 Likewise.
14773 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14774 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14775 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14776 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14777 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14778 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14779 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14780 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14781 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14782 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14783 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14784 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14785 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14786 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14787 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14788 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14789 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14790 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14791 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14792 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14793 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14794 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14795 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14796 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14797 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14798 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14799 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14800 Likewise.
14801 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14802 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14803 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14804 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14805 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14806 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14807 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14808 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14809 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14810 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14811 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14812 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14813 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14814 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14815 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14816 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14817 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14818 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14819 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14820 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14821 Likewise.
14822 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14823 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14824 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14825 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14826 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14827 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14828 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14829 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14830 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14831 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14832 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14833 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14834 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14835 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14836 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14837 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14838 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14839 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14840 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14841 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14842 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14843 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14844 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14845 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14846 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14847 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14848 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14849 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14851 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14852 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14853 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14854 Likewise.
14855 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14856 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14857 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14859 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14860 Likewise.
14861 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14862 Likewise.
14863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14864 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14865 Likewise.
14866 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14867 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14868 Likewise.
14869 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14870 Likewise.
14871 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14872 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14873 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14874 Likewise.
14875 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14876 Likewise.
14877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14878 Likewise.
14879 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14880 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14881 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14882 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14883 Likewise.
14884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14885 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14887 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14890 Likewise.
14891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14892 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14893 Likewise.
14894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14895 Likewise.
14896 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14897 Likewise.
14898 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14899 Likewise.
14900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14902 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14903 Likewise.
14904 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14905 Likewise.
14906 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14907 Likewise.
14908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14909 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14910 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14911 Likewise.
14912 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14913 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14914 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14915 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14916 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14917 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14918 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14919 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14920 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14921 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14922 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14923 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14924 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14925 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14926 Likewise.
14927 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14928 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14929 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14930 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14931 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14932 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14933 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14934 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14935 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14936 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14937 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14938 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14939 Likewise.
14940 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14941 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14942 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14943 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14944 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14945 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14946 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14947 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14948 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14949 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14950 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14951 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14952 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14953 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14954 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14955 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14956 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14957 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14958 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14959 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14960 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14961 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14962 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14963 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14964 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14965 Likewise.
14966 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14967 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14968 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14969 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14970 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14971 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14972 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14973 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14974 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14975 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14976 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14977 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14978 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14979 Likewise.
14980 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14981 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14982 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14983 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14984 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14985 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14986 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14987 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14988 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14989 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14990 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14991 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14992 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14993 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14994 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14995 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14996 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14997 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14998 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14999 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
15000 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
15001 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
15002 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
15003 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
15004 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
15005 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
15006 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
15007 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
15008 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
15009 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
15010 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
15011 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15012 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
15013 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
15014 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
15015 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
15016 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
15017 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
15018
15019 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
15020
15021 [BZ #23137]
15022 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
15023 Use atomic_load_acquire to load __tid.
15024
15025 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15026
15027 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
15028 Restore the pointer into %rdx, after syscall and use %rdx,
15029 instead of %rsi, to restore context.
15030
15031 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15032
15033 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
15034 Pop the pointer into %rdx after syscall and use %rdx, instead
15035 of %rsi, to restore context.
15036
15037 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
15038
15039 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
15040 handlers after setjmp.
15041 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
15042 defined.
15043 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
15044 <libc-pointer-arith.h>.
15045 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
15046 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
15047 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
15048 _JUMP_BUF_SIGSET_BITS_PER_WORD.
15049 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
15050 * sysdeps/x86/__longjmp_cancel.S: New file.
15051 * sysdeps/x86/longjmp.c: Likewise.
15052 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
15053
15054 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15055
15056 * NEWS: Add ustat.h deprecation entry.
15057 * bits/ustat.h: Remove file.
15058 * misc/sys/ustat.h: Likewise.
15059 * misc/ustat.h: Likewise.
15060 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
15061 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
15062 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
15063 compatibility mode.
15064 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
15065 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
15066 generic Linux implementation.
15067
15068 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15069
15070 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
15071 * math/w_expl_compat.c: Likewise.
15072 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
15073
15074 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
15075
15076 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
15077
15078 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15079
15080 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
15081 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
15082 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
15083 Remove.
15084 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
15085 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15086 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15087 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
15088 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
15089 and SYSCALL_LL64.
15090
15091 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15092
15093 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
15094
15095 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
15096 * math/w_asin_template.c: Likewise.
15097 * math/w_atanh_template.c: Likewise.
15098
15099 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
15100
15101 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
15102 to powerpc/powerpc64/be for big-endian.
15103 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
15104 little-endian.
15105
15106 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
15107 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
15108 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
15109 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
15110 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
15111 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
15112 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
15113 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
15114 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
15115 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
15116 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
15117 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
15118 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
15119 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
15120 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
15121 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
15122 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
15123 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
15124 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
15125 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15126 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15127 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15128 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15129 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15130 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15131 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15132 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15133 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15134 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15135 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15136 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15137 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15138
15139 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15140 adjusted to imply powerpc64 and older processors on powerpc64/be.
15141 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15142 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15143 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15144 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15145 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15146 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15147 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15148 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15149 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15150 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15151 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15152 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15153 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15154 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15155 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15156 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15157 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15158 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15159 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15160 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15161 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15162 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15163 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15164 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15165 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15166 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15167 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15168 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15169 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15170 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15171 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15172
15173 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15174 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15175 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15176 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15177
15178 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15179 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15180 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15181 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15182
15183 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15184 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15185 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15186 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15187 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15188 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15189 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15190 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15191 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15192 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15193 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15194
15195 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15196 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15197 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15198 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15199 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15200 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15201 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15202 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15203 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15204 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15205 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15206
15207 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15208 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15209 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15210 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15211 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15212 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15213 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15214 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15215 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15216 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15217 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15218 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15219
15220 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15221 and adjusted to imply olders processors.
15222 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15223 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15224 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15225 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15226 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15227 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15228 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15229 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15230 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15231 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15232 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15233
15234 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15235 powerpc64/le.
15236 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15237 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15238
15239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15240 powerpc64le.
15241 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15242 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15243
15244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15245 powerpc64/be.
15246 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15247 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15248 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15249
15250 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15251 powerpc64 and adjusted.
15252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15253 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15255 Likewise.
15256
15257 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15258
15259 * sysdeps/tile: Remove.
15260 * sysdeps/unix/sysv/linux/tile: Likewise.
15261 * README (tilegx-*-linux-gnu): Remove from list of supported
15262 configurations.
15263 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15264 contribution of support for generic Linux kernel syscall
15265 interface.
15266 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15267 tilegx configurations.
15268 (Config.install_linux_headers): Do not handle tile.
15269 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15270 in comment.
15271 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15272 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15273 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15274 conditional undefine and redefine.
15275 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15276 in comment.
15277 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15278 conditional undefine and redefine.
15279
15280 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15281
15282 * signal/tst-sigaction.c: New file to test BZ #23069.
15283 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15284
15285 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15286
15287 [BZ #22766]
15288 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15289 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15290 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15291 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15292
15293 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15294
15295 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15296 _DIRENT_MATCHES_DIRENT64 is not defined.
15297 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15298 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15299 is defined.
15300 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15301 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15302
15303 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15304
15305 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15306 version to GCC 8 branch.
15307
15308 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15309
15310 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15311 (check_no_hidden): Use type of original function when declaring
15312 alias.
15313
15314 * sysdeps/unix/sysv/linux/sys/ptrace.h
15315 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15316 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15317 (struct __ptrace_seccomp_metadata): New type.
15318 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15319 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15320 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15321 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15322 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15323 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15324 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15325 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15326 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15327 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15328 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15329 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15330 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15331 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15332 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15333 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15334
15335 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15336
15337 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15338 defined.
15339 * dirent/versionsort.c (versionsort): Likewise.
15340 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15341 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15342 * dirent/versionsort64.c (versionsort64): Likewise.
15343 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15344 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15345 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15346 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15347 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15348 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15349 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15350 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15351 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15352 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15353 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15354 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15355 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15356 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15357
15358 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15359
15360 * elf/elf.h (NT_PPC_PKEY): New macro.
15361
15362 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15363
15364 [BZ #23094]
15365 * localedata/locales/hr_HR: fix thousands_sep and
15366 mon_thousands_sep
15367
15368 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15369
15370 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15371 (XTABS): Define to TAB3.
15372
15373 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15374
15375 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15376
15377 * dirent/scandir-tail-common.c: New file.
15378 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15379 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15380 * dirent/scandir.c: Use scandir-tail-common.c.
15381 * dirent/scandirat.c: Likewise.
15382 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15383 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15384 if _DIRENT_MATCHES_DIRENT64 is defined.
15385 * dirent/scandirat64.c (scandirat64): Likewise.
15386 * include/dirent.h (__scandir_tail): Only define iff
15387 _DIRENT_MATCHES_DIRENT64 is not defined.
15388 (__scandir64_tail): Define regardless.
15389 (__scandirat, scandirat64): Remove libc_hidden_proto.
15390 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15391 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15393 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15394 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15395 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15396 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15397
15398 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15399
15400 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15401 New macro.
15402 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15403 Increase to 24.
15404 (_dl_aarch64_cap_flags): Add asimdfhm.
15405
15406 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15407
15408 * sysdeps/nios2/libm-test-ulps: Update.
15409
15410 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15411
15412 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15413 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15414
15415 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15416 requirements.
15417 (_DIRENT_MATCHES_DIRENT64): Undef
15418 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15419 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15420 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15421 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15422 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15423 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15424 use getdents64 syscalls as base.
15425 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15426 symbol if required.
15427 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15428 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15429 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15430 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15431 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15432 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15433 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15434 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15435 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15436 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15437 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15438
15439 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15440
15441 * scripts/test_printers_common.py (init_test): Disable lock elision.
15442
15443 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15444
15445 * math/test-tgmath.c (count_double, count_float,
15446 count_ldouble, count_cdouble, count_cfloat,
15447 count_cldouble): Use volatile int.
15448
15449 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15450
15451 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15452 (conformtest-xfail-conds): Add i386-gnu.
15453 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15454 i386-gnu.
15455 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15456 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15457 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15458 msqid_ds.msg_lrpid): Likewise.
15459 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15460 Likewise.
15461 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15462 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15463 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15464 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15465 unsigned int.
15466 (struct statvfs64): Likewise.
15467 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15468 Likewise.
15469 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15470 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15471 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15472 instead of wait_queue.
15473 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15474 instead of vm_area_struct.
15475 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15476 struct sched_param definition to it.
15477 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15478 * bits/types/struct_sched_param.h: New file.
15479 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15480 <bits/types/struct_sched_param.h> instead of <sched.h>.
15481 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15482 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15483 generic version but include <bits/pthreadtypes.h> to make struct
15484 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15485 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15486 non-compliant.
15487 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15488 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15489 [__USE_XOPEN] (OFDEL): New macro.
15490 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15491 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15492 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15493 prototypes.
15494 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15495 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15496 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15497 non-compliant.
15498 * sysdeps/i386/sys/ucontext.h: Likewise.
15499 * sysdeps/m68k/sys/ucontext.h: Likewise.
15500 * sysdeps/mips/sys/ucontext.h: Likewise.
15501 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15502 * sysdeps/mach/hurd/i386/Makefile
15503 (test-xfail-POSIX/fcntl.h/conform): Add.
15504 (test-xfail-POSIX/signal.h/conform): Add.
15505 (test-xfail-POSIX/semaphore.h/conform): Add.
15506 (test-xfail-POSIX/regex.h/conform): Add.
15507 (test-xfail-POSIX/aio.h/conform): Add.
15508 (test-xfail-POSIX/mqueue.h/conform): Add.
15509 (test-xfail-POSIX/sys/types.h/conform): Add.
15510 (test-xfail-UNIX98/fcntl.h/conform): Add.
15511 (test-xfail-UNIX98/netdb.h/conform): Add.
15512 (test-xfail-UNIX98/signal.h/conform): Add.
15513 (test-xfail-UNIX98/semaphore.h/conform): Add.
15514 (test-xfail-UNIX98/regex.h/conform): Add.
15515 (test-xfail-UNIX98/aio.h/conform): Add.
15516 (test-xfail-UNIX98/ftw.h/conform): Add.
15517 (test-xfail-UNIX98/mqueue.h/conform): Add.
15518 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15519 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15520 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15521 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15522 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15523 (test-xfail-UNIX98/sys/types.h/conform): Add.
15524 (test-xfail-UNIX98/stdlib.h/conform): Add.
15525 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15526 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15527 (test-xfail-POSIX2008/netdb.h/conform): Add.
15528 (test-xfail-POSIX2008/signal.h/conform): Add.
15529 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15530 (test-xfail-POSIX2008/regex.h/conform): Add.
15531 (test-xfail-POSIX2008/aio.h/conform): Add.
15532 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15533 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15534 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15535 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15536 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15537 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15538 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15539 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15540 (test-xfail-XOPEN2K/signal.h/conform): Add.
15541 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15542 (test-xfail-XOPEN2K/regex.h/conform): Add.
15543 (test-xfail-XOPEN2K/aio.h/conform): Add.
15544 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15545 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15546 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15547 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15548 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15549 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15550 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15551 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15552 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15553 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15554 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15555 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15556 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15557 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15558 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15559 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15560 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15561 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15562 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15563 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15564 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15565 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15566 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15567 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15568 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15569 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15570 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15571 i386-gnu.
15572 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15573 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15574
15575 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15576
15577 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15578 --enable-obsolete for powerpc-linux-gnuspe.
15579
15580 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15581
15582 * conform/data/sys/un.h-data: Allow sun_ prefix.
15583 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15584 prototypes.
15585 * sysdeps/mach/include/mach.h: Likewise.
15586 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15587 * sysdeps/mach/include/mach_error.h: Likewise.
15588
15589 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15590
15591 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15592 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15593 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15594 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15595
15596 2018-04-16 Andreas Schwab <schwab@suse.de>
15597
15598 [BZ #19527]
15599 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15600
15601 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15602
15603 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15604 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15605
15606 2018-04-12 DJ Delorie <dj@redhat.com>
15607
15608 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15609 version to 4.16.
15610
15611 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15612
15613 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15614 (struct kernel_sigaction): Use the same definition on 31bit as is used
15615 on 64bit.
15616
15617 2018-04-09 Florian Weimer <fweimer@redhat.com>
15618
15619 [BZ #23037]
15620 * resolv/res_send.c (send_dg): Use designated initializers instead
15621 of assignment to zero-initialize other fields of struct mmsghdr.
15622
15623 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15624
15625 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15626 __READDIR_ALIAS): Undefine after usage.
15627 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15628 __READDIR_R_ALIAS): Likewise.
15629 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15630 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15631 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15632 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15633 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15634 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15635 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15636 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15637 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15638 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15639 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15640 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15641 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15642 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15643 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15644 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15645 * sysdeps/unix/sysv/linux/readdir.c: New file.
15646 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15647 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15648 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15649
15650 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15651
15652 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15653
15654 * manual/charset.texi (Converting a Character): Fix typo.
15655
15656 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15657
15658 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15659
15660 * sysdeps/arm/libm-test-ulps: Update.
15661
15662 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15663 as base implementation.
15664 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15665 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15666 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15667 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15668 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15669 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15670 remove unrequired definitions and update comments.
15671 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15672 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15673 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15674 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15675 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15676 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15677 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15678 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15679 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15680 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15681 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15682 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15683 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15684 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15685 and RESET_SA_RESTORER hooks.
15686
15687 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15688
15689 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15690
15691 2018-04-05 Florian Weimer <fweimer@redhat.com>
15692
15693 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15694 integer overflow, memory leak on error, and indeterminate errno
15695 value. Add a null wide character to terminate the result string.
15696 * manual/charset.texi (Converting a Character): Mention embedded
15697 null bytes in the mbrtowc input string. Explain what happens in
15698 the -2 result case. Do not claim that mbrtowc is simple or
15699 obvious to use. Adjust the description of the code example. Use
15700 @code, not @var, for concrete variables.
15701
15702 2018-04-05 Florian Weimer <fweimer@redhat.com>
15703
15704 * manual/examples/mbstouwcs.c: New file.
15705 * manual/charset.texi (Converting a Character): Include it.
15706
15707 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15708
15709 * include/dirent.h (dirfd): Add hidden proto.
15710 * dirent/dirfd.c (dirfd): Add hidden def.
15711 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15712 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15713
15714 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15715
15716 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15717 sin, cos and sincos to 1 ULP.
15718
15719 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15720
15721 [BZ #19818]
15722 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15723 symbols.
15724 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15725 * elf/tst-absolute-sym.c: New file.
15726 * elf/tst-absolute-sym-lib.c: New file.
15727 * elf/tst-absolute-sym-lib.lds: New file.
15728 * elf/Makefile (tests): Add `tst-absolute-sym'.
15729 (modules-names): Add `tst-absolute-sym-lib'.
15730 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15731 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15732 ($(objpfx)tst-absolute-sym): New dependency.
15733
15734 [BZ #19818]
15735 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15736 parameter.
15737 (SYMBOL_ADDRESS): New macro.
15738 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15739 SYMBOL_ADDRESS for symbol address calculation.
15740 * elf/dl-runtime.c (_dl_fixup): Likewise.
15741 (_dl_profile_fixup): Likewise.
15742 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15743 * elf/rtld.c (dl_main): Likewise.
15744 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15745 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15746 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15747 (elf_machine_rela): Likewise.
15748 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15749 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15750 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15751 (elf_machine_rela): Likewise.
15752 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15753 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15754 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15755 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15756 Likewise.
15757 (elf_machine_reloc): Likewise.
15758 (elf_machine_got_rel): Likewise.
15759 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15760 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15761 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15762 Likewise.
15763 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15764 Likewise.
15765 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15766 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15767 Likewise.
15768 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15769 Likewise.
15770 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15771 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15772 Likewise.
15773 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15774 Likewise.
15775 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15776 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15777
15778 2018-04-04 Zack Weinberg <zackw@panix.com>
15779
15780 * sysdeps/generic/internal-signals.h: Include signal.h,
15781 sigsetops.h, and stdbool.h.
15782 (__libc_signal_block_all): Actually block all signals.
15783 (__libc_signal_block_app): Likewise.
15784 (__libc_signal_restore_set): Actually restore the signal mask.
15785
15786 2018-04-04 Florian Weimer <fweimer@redhat.com>
15787
15788 inet: Actually build and run tst-deadline.
15789 * inet/Makefile (tests-internal): Add tst-deadline and do not
15790 overwrite the variable.
15791 (tests-static-internal): Remove variable.
15792
15793 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15794
15795 [BZ #22947]
15796 * bits/uio-ext.h (RWF_APPEND): New.
15797 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15798 * manual/llio.texi: Document RWF_APPEND.
15799 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15800 (RWF_SUPPORTED): Add RWF_APPEND.
15801
15802 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15803
15804 [BZ #22391]
15805 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15806 check for internal nptl signals.
15807 * nptl/sigaction.c (__sigaction): Likewise.
15808 * signal/sigaddset.c (sigaddset): Likewise.
15809 * signal/sigdelset.c (sigdelset): Likewise.
15810 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15811 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15812 value.
15813 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15814 to filter out internal nptl signals.
15815 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15816 also check realtime signals using standard macros.
15817 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15818 __is_internal_signal, __libc_signal_block_all,
15819 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15820 * sysdeps/nptl/sigfillset.c: Remove file.
15821 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15822 Change return to bool.
15823 (__clear_internal_signals): Remove SIGTIMER clean since it is
15824 equal to SIGCANEL on Linux.
15825 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15826 signal set was constructed using standard functions.
15827
15828 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15829
15830 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15831 ifname is too long.
15832 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15833 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15834 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15835 hidden def.
15836 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15837 * signal/sigaddset.c: Include <sigsetopts.h>.
15838 * signal/sigdelset.c: Likewise.
15839
15840 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15841
15842 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15843 (__cos): Likewise.
15844 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15845 logic as sin and cos.
15846
15847 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15848
15849 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15850 inputs. Return correct sign.
15851 (do_sincos): Remove small input check before do_sin, let do_sin set
15852 the sign.
15853 (__sin): Likewise.
15854 (__cos): Likewise.
15855
15856 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15857
15858 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15859 (do_cos_slow): Likewise.
15860 (do_sin_slow): Likewise.
15861 (reduce_and_compute): Likewise.
15862 (slow): Likewise.
15863 (slow1): Likewise.
15864 (slow2): Likewise.
15865 (sloww): Likewise.
15866 (sloww1): Likewise.
15867 (sloww2): Likewise.
15868 (bslow): Likewise.
15869 (bslow1): Likewise.
15870 (bslow2): Likewise.
15871 (cslow2): Likewise.
15872
15873 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15874
15875 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15876 (do_cos): Remove corp parameter and calculations.
15877 (do_sin): Likewise.
15878 (do_sincos): Remove cor variable.
15879 (__sin): Use do_sincos for huge inputs.
15880 (__cos): Likewise.
15881 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15882 (reduce_and_compute_sincos): Remove unused function.
15883
15884 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15885
15886 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15887 reduce_sincos, improve accuracy to 136 bits.
15888 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15889 (__sin): Use improved reduction and simplified do_sincos calculation.
15890 (__cos): Likewise.
15891 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15892
15893 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15894
15895 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15896 (do_sincos_2): Likewise.
15897 (__sin): Remove middle range reduction case.
15898 (__cos): Likewise.
15899 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15900 reduction case.
15901
15902 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15903
15904 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15905 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15906 inputs.
15907 (__cos): Likewise.
15908 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15909
15910 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15911
15912 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15913 version to 4.16
15914
15915 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15916
15917 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15918 Remove definitions.
15919 (opendir_oflags): Use O_DIRECTORY regardless.
15920 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15921 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15922
15923 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15924
15925 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15926 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15927 macros.
15928 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15929 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15930 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15931 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15932 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15933 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15934
15935 * htl/Makefile: Bump licence to LGPL 2.1+.
15936 * htl/alloca_cutoff.c: Likewise.
15937 * htl/cthreads-compat.c: Likewise.
15938 * htl/lockfile.c: Likewise.
15939 * htl/pt-alloc.c: Likewise.
15940 * htl/pt-cancel.c: Likewise.
15941 * htl/pt-cleanup.c: Likewise.
15942 * htl/pt-create.c: Likewise.
15943 * htl/pt-dealloc.c: Likewise.
15944 * htl/pt-detach.c: Likewise.
15945 * htl/pt-exit.c: Likewise.
15946 * htl/pt-getattr.c: Likewise.
15947 * htl/pt-initialize.c: Likewise.
15948 * htl/pt-internal.h: Likewise.
15949 * htl/pt-join.c: Likewise.
15950 * htl/pt-self.c: Likewise.
15951 * htl/pt-setcancelstate.c: Likewise.
15952 * htl/pt-setcanceltype.c: Likewise.
15953 * htl/pt-sigmask.c: Likewise.
15954 * htl/pt-spin-inlines.c: Likewise.
15955 * htl/pt-testcancel.c: Likewise.
15956 * htl/pt-yield.c: Likewise.
15957 * htl/tests/test-1.c: Likewise.
15958 * htl/tests/test-10.c: Likewise.
15959 * htl/tests/test-11.c: Likewise.
15960 * htl/tests/test-12.c: Likewise.
15961 * htl/tests/test-13.c: Likewise.
15962 * htl/tests/test-14.c: Likewise.
15963 * htl/tests/test-15.c: Likewise.
15964 * htl/tests/test-16.c: Likewise.
15965 * htl/tests/test-17.c: Likewise.
15966 * htl/tests/test-2.c: Likewise.
15967 * htl/tests/test-3.c: Likewise.
15968 * htl/tests/test-4.c: Likewise.
15969 * htl/tests/test-5.c: Likewise.
15970 * htl/tests/test-6.c: Likewise.
15971 * htl/tests/test-7.c: Likewise.
15972 * htl/tests/test-8.c: Likewise.
15973 * htl/tests/test-9.c: Likewise.
15974 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15975 * sysdeps/htl/bits/cancelation.h: Likewise.
15976 * sysdeps/htl/bits/pthread-np.h: Likewise.
15977 * sysdeps/htl/bits/pthread.h: Likewise.
15978 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15979 * sysdeps/htl/bits/semaphore.h: Likewise.
15980 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15981 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15982 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15983 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15984 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15985 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15986 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15987 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15988 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15989 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15990 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15991 * sysdeps/htl/old_pt-atfork.c: Likewise.
15992 * sysdeps/htl/pt-atfork.c: Likewise.
15993 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15994 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15995 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15996 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15997 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15998 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15999 * sysdeps/htl/pt-attr-getscope.c: Likewise.
16000 * sysdeps/htl/pt-attr-getstack.c: Likewise.
16001 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
16002 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
16003 * sysdeps/htl/pt-attr-init.c: Likewise.
16004 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
16005 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
16006 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
16007 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
16008 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
16009 * sysdeps/htl/pt-attr-setscope.c: Likewise.
16010 * sysdeps/htl/pt-attr-setstack.c: Likewise.
16011 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
16012 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
16013 * sysdeps/htl/pt-attr.c: Likewise.
16014 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
16015 * sysdeps/htl/pt-barrier-init.c: Likewise.
16016 * sysdeps/htl/pt-barrier-wait.c: Likewise.
16017 * sysdeps/htl/pt-barrier.c: Likewise.
16018 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
16019 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
16020 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
16021 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
16022 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
16023 * sysdeps/htl/pt-cond-destroy.c: Likewise.
16024 * sysdeps/htl/pt-cond-init.c: Likewise.
16025 * sysdeps/htl/pt-cond-signal.c: Likewise.
16026 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
16027 * sysdeps/htl/pt-cond-wait.c: Likewise.
16028 * sysdeps/htl/pt-cond.c: Likewise.
16029 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
16030 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
16031 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
16032 * sysdeps/htl/pt-condattr-init.c: Likewise.
16033 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
16034 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
16035 * sysdeps/htl/pt-destroy-specific.c: Likewise.
16036 * sysdeps/htl/pt-equal.c: Likewise.
16037 * sysdeps/htl/pt-getconcurrency.c: Likewise.
16038 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
16039 * sysdeps/htl/pt-getschedparam.c: Likewise.
16040 * sysdeps/htl/pt-getspecific.c: Likewise.
16041 * sysdeps/htl/pt-init-specific.c: Likewise.
16042 * sysdeps/htl/pt-key-create.c: Likewise.
16043 * sysdeps/htl/pt-key-delete.c: Likewise.
16044 * sysdeps/htl/pt-key.h: Likewise.
16045 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
16046 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
16047 * sysdeps/htl/pt-mutex-init.c: Likewise.
16048 * sysdeps/htl/pt-mutex-lock.c: Likewise.
16049 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
16050 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
16051 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
16052 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
16053 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
16054 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
16055 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
16056 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
16057 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
16058 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
16059 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
16060 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
16061 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
16062 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
16063 * sysdeps/htl/pt-mutexattr.c: Likewise.
16064 * sysdeps/htl/pt-once.c: Likewise.
16065 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
16066 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
16067 * sysdeps/htl/pt-rwlock-init.c: Likewise.
16068 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
16069 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
16070 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
16071 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
16072 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
16073 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
16074 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
16075 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
16076 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
16077 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
16078 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
16079 * sysdeps/htl/pt-setconcurrency.c: Likewise.
16080 * sysdeps/htl/pt-setschedparam.c: Likewise.
16081 * sysdeps/htl/pt-setschedprio.c: Likewise.
16082 * sysdeps/htl/pt-setspecific.c: Likewise.
16083 * sysdeps/htl/pt-spin.c: Likewise.
16084 * sysdeps/htl/pt-startup.c: Likewise.
16085 * sysdeps/htl/pthread.h: Likewise.
16086 * sysdeps/htl/sem-close.c: Likewise.
16087 * sysdeps/htl/sem-destroy.c: Likewise.
16088 * sysdeps/htl/sem-getvalue.c: Likewise.
16089 * sysdeps/htl/sem-init.c: Likewise.
16090 * sysdeps/htl/sem-open.c: Likewise.
16091 * sysdeps/htl/sem-post.c: Likewise.
16092 * sysdeps/htl/sem-timedwait.c: Likewise.
16093 * sysdeps/htl/sem-trywait.c: Likewise.
16094 * sysdeps/htl/sem-unlink.c: Likewise.
16095 * sysdeps/htl/sem-wait.c: Likewise.
16096 * sysdeps/hurd/htl/pt-kill.c: Likewise.
16097 * sysdeps/i386/htl/pt-machdep.h: Likewise.
16098 * sysdeps/mach/htl/pt-block.c: Likewise.
16099 * sysdeps/mach/htl/pt-spin.c: Likewise.
16100 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
16101 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
16102 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
16103 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
16104 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
16105 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
16106 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
16107 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
16108 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
16109 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
16110 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
16111 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
16112 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
16113 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
16114 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
16115 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
16116 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
16117 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
16118 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
16119 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
16120 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
16121 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
16122 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
16123 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
16124 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
16125 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16126 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16127 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16128 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16129 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16130 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16131 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16132 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16133 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16134 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16135 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16136 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16137 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16138 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16139 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16140 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16141 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16142 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16143
16144 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16145 * README: Remove the mention of out-of-tree patches needed for
16146 GNU/Hurd.
16147
16148 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16149 (UTIME_NOW, UTIME_OMIT): Define macros.
16150
16151 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16152 instead of pthread_detach.
16153 (__cthread_fork): Call __pthread_create instead of pthread_create.
16154 (__cthread_keycreate): Call __pthread_key_create instead of
16155 pthread_key_create.
16156 (__cthread_getspecific): Call __pthread_getspecific instead of
16157 pthread_getspecific.
16158 (__cthread_setspecific): Call __pthread_setspecific instead of
16159 pthread_setspecific.
16160 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16161 __pthread_mutex_unlock instead of pthread_mutex_lock and
16162 pthread_mutex_unlock.
16163 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16164 ___pthread_get_cleanup_stack.
16165 (__pthread_get_cleanup_stack): New strong alias.
16166 * htl/pt-create.c: Include <pthreadP.h>.
16167 (entry_point): Call __pthread_exit instead of pthread_exit.
16168 (pthread_create): Rename to __pthread_create.
16169 (pthread_create): New strong alias.
16170 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16171 (pthread_detach): New strong alias.
16172 (__pthread_detach): Call __pthread_cond_broadcast instead of
16173 pthread_cond_broadcast.
16174 * htl/pt-exit.c: Include <pthreadP.h>.
16175 (__pthread_exit): Call __pthread_setcancelstate and
16176 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16177 __pthread_get_cleanup_stack.
16178 * htl/pt-testcancel.c: Include <pthreadP.h>.
16179 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16180 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16181 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16182 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16183 pthread_attr_getstacksize.
16184 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16185 Rename to __pthread_attr_getstackaddr.
16186 (pthread_attr_getstackaddr): New strong alias.
16187 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16188 Rename to __pthread_attr_getstacksize.
16189 (pthread_attr_getstacksize): New strong alias.
16190 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16191 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16192 (pthread_attr_setstack): New strong alias.
16193 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16194 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16195 pthread_attr_getstacksize, pthread_attr_setstacksize and
16196 pthread_attr_setstackaddr.
16197 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16198 Rename to __pthread_attr_setstackaddr.
16199 (pthread_attr_setstackaddr): New strong alias.
16200 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16201 Rename to __pthread_attr_setstacksize.
16202 (pthread_attr_setstacksize): New strong alias.
16203 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16204 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16205 pthread_exit.
16206 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16207 (__pthread_key_create): New hidden def.
16208 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16209 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16210 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16211 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16212 __pthread_setspecific, __pthread_setcancelstate,
16213 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16214 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16215 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16216 declarations.
16217 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16218 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16219 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16220 (pthread_attr_setstackaddr): New strong alias.
16221 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16222 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16223 (pthread_attr_setstacksize): New strong alias.
16224 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16225 (call_exit): Call __pthread_exit instead of pthread_exit.
16226 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16227 (_pthread_mutex_init): New hidden definition.
16228 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16229 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16230 instead of pthread_attr_init and pthread_attr_setstack.
16231
16232 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16233 __vm_deallocate instead of vm_allocate and vm_deallocate.
16234 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16235 setenv.
16236 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16237 of geteuid.
16238 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16239 strdup.
16240 * hurd/siginfo.c: Include <libioP.h>.
16241 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16242 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16243 munmap.
16244 * mach/devstream.c: Include <libioP.h>.
16245 (dealloc_ref): Call __mach_port_deallocate instead of
16246 mach_port_deallocate.
16247 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16248 Call __mach_port_deallocate instead of mach_port_deallocate.
16249 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16250 pathconf.
16251 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16252 munmap.
16253 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16254 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16255 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16256 of munmap.
16257 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16258 of close.
16259 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16260 instead of sysconf.
16261 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16262 __clock_gettime instead of clock_gettime.
16263 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16264 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16265 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16266 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16267 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16268 tcgetattr.
16269 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16270 __clock_gettime and __nanosleep instead of clock_gettime and
16271 nanosleep.
16272 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16273 __hurd_catch_signal.
16274 (hurd_catch_signal): New strong alias.
16275 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16276 __hurd_catch_signal instead of hurd_catch_signal.
16277 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16278 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16279 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16280 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16281 (_hurd_thread_sigstate): Add hidden def.
16282 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16283 mutex_unlock.
16284 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16285 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16286 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16287 __hurd_file_name_path_lookup.
16288 (hurd_file_name_path_lookup): New strong alias.
16289 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16290 hurd_file_name_path_lookup.
16291 * mach/errstring.c (mach_error_type): Add hidden def.
16292 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16293 * mach/mutex-init.c (__mutex_init): Add hidden def.
16294 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16295 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16296 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16297 * sysdeps/mach/hurd/getcwd.c
16298 (_hurd_canonicalize_directory_name_internal): Rename to
16299 __hurd_canonicalize_directory_name_internal.
16300 (_hurd_canonicalize_directory_name_internal): New strong alias.
16301 (__canonicalize_directory_name_internal, __getcwd): Call
16302 __hurd_canonicalize_directory_name_internal instead of
16303 _hurd_canonicalize_directory_name_internal.
16304 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16305 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16306 hidden defs.
16307 * sysdeps/hurd/include/hurd.h: New file.
16308 * sysdeps/hurd/include/hurd/fd.h: New file.
16309 * sysdeps/hurd/include/hurd/signal.h: New file.
16310 * sysdeps/mach/include/lock-intern.h: New file.
16311 * sysdeps/mach/include/mach.h: New file.
16312 * sysdeps/mach/include/mach/mig_support.h: New file.
16313 * sysdeps/mach/include/mach_error.h: New file.
16314 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16315 prototype.
16316 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16317 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16318 _HEADER_H_HIDDEN_DEF macro.
16319 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16320 _hurd_fd_error_signal): Add hidden prototype.
16321 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16322 hidden def.
16323 * libio/iolibio.h (_IO_puts): New hidden prototype.
16324 * libio/ioputs.c (_IO_puts): New hidden def.
16325 * sysdeps/mach/hurd/localplt.data: New file.
16326
16327 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16328 Amos Jeffries <squid3@treenet.co.nz>
16329 David Michael <fedora.dm0@gmail.com>
16330 Marco Gerards <marco@gnu.org>
16331 Marcus Brinkmann <marcus@gnu.org>
16332 Neal H. Walfield <neal@gnu.org>
16333 Pino Toscano <toscano.pino@tiscali.it>
16334 Richard Braun <rbraun@sceen.net>
16335 Roland McGrath <roland@gnu.org>
16336 Samuel Thibault <samuel.thibault@ens-lyon.org>
16337 Thomas DiModica <ricinwich@yahoo.com>
16338 Thomas Schwinge <tschwinge@gnu.org>
16339
16340 * htl: New directory.
16341 * sysdeps/htl: New directory.
16342 * sysdeps/hurd/htl: New directory.
16343 * sysdeps/i386/htl: New directory.
16344 * sysdeps/mach/htl: New directory.
16345 * sysdeps/mach/hurd/htl: New directory.
16346 * sysdeps/mach/hurd/i386/htl: New directory.
16347 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16348 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16349 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16350
16351 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16352
16353 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16354 signals in thread created for runing timers.
16355
16356 2018-04-01 Florian Weimer <fweimer@redhat.com>
16357
16358 * support/support_format_addrinfo.c (support_format_addrinfo):
16359 Include unknown error number in formatted result.
16360
16361 2018-03-29 Florian Weimer <fweimer@redhat.com>
16362
16363 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16364 capture SIGBUS.
16365
16366 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16367
16368 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16369 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16370 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16371 (__ASSUME_CLONE_BACKWARDS): Define.
16372
16373 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16374
16375 [BZ #23024]
16376 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16377 early when linux sentinel value is set.
16378
16379 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16380
16381 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16382
16383 2018-03-27 Andreas Schwab <schwab@suse.de>
16384
16385 [BZ #23005]
16386 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16387 allocation of private copy of nsaddr_list fails.
16388
16389 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16390
16391 [BZ #16552]
16392 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16393 * sysdeps/unix/sysv/linux/umount.c: ... here.
16394 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16395 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16396 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16397 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16398 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16399 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16400 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16401
16402 2018-03-26 Andreas Schwab <schwab@suse.de>
16403
16404 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16405 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16406 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16407 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16408 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16409 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16410 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16411 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16412 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16413 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16414 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16415 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16416 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16417 (R_RISCV_NUM): Define.
16418
16419 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16420
16421 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16422 TLS declaration of errno.
16423 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16424 __libc_setup_tls.
16425 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16426 (ARCH_SETUP_TLS): Likewise.
16427 * sysdeps/mach/hurd/libc-start.h: New file copied from
16428 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16429 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16430 instead of __libc_setup_tls.
16431 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16432 __libc_setup_tls before initializing libpthread and running _hurd_init
16433 which starts the signal thread.
16434 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16435 Declare function.
16436 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16437
16438 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16439
16440 [BZ #22998]
16441 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16442 after it is defined.
16443
16444 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16445 Max Horn <max@quendi.de>
16446
16447 [BZ #22644]
16448 CVE-2017-18269
16449 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16450 branch conditions.
16451 * string/test-memmove.c (do_test2): New testcase.
16452
16453 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16454
16455 * sysdeps/generic/frame.h: Remove file.
16456 * sysdeps/arm/frame.h: Likewise.
16457 * sysdeps/hppa/frame.h: Likewise.
16458 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16459 macro.
16460 (GET_FRAME): Likewise.
16461 (GET_STACK): Likewise.
16462 (CALL_SIGHANDLER): Likewise.
16463 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16464 Likewise.
16465 (GET_FRAME): Likewise.
16466 (GET_STACK): Likewise.
16467 (CALL_SIGHANDLER): Likewise.
16468 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16469 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16470 (GET_FRAME): Likewise.
16471 (GET_STACK): Likewise.
16472 (CALL_SIGHANDLER): Likewise.
16473 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16474 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16475 (GET_FRAME): Likewise.
16476 (GET_STACK): Likewise.
16477 (ADVANCE_STACK_FRAME): Likewise.
16478 (CALL_SIGHANDLER): Likewise.
16479 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16480 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16481 (GET_FRAME): Likewise.
16482 (GET_STACK): Likewise.
16483 (CALL_SIGHANDLER): Likewise.
16484 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16485 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16486 (GET_FRAME): Likewise.
16487 (GET_STACK): Likewise.
16488 (CALL_SIGHANDLER): Likewise.
16489 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16490 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16491 (GET_FRAME): Likewise.
16492 (GET_STACK): Likewise.
16493 (CALL_SIGHANDLER): Likewise.
16494 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16495 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16496 (GET_FRAME): Likewise.
16497 (GET_STACK): Likewise.
16498 (CALL_SIGHANDLER): Likewise.
16499 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16500 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16501 (GET_FRAME): Likewise.
16502 (GET_STACK): Likewise.
16503 (CALL_SIGHANDLER): Likewise.
16504 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16505 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16506 (GET_FRAME): Likewise.
16507 (GET_STACK): Likewise.
16508 (CALL_SIGHANDLER): Likewise.
16509 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16510 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16511 (GET_FRAME): Likewise.
16512 (GET_STACK): Likewise.
16513 (CALL_SIGHANDLER): Likewise.
16514 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16515 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16516 (GET_FRAME): Likewise.
16517 (GET_STACK): Likewise.
16518 (CALL_SIGHANDLER): Likewise.
16519 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16520 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16521 (GET_FRAME): Likewise.
16522 (GET_STACK): Likewise.
16523 (CALL_SIGHANDLER): Likewise.
16524 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16525 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16526 (FIRST_FRAME_POINTER): Likewise.
16527 (ADVANCE_STACK_FRAME): Likewise.
16528 (GET_STACK): Likewise.
16529 (GET_FRAME): Likewise.
16530 (CALL_SIGHANDLER): Likewise.
16531 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16532 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16533 (ADVANCE_STACK_FRAME): Likewise.
16534 (GET_STACK): Likewise.
16535 (GET_FRAME): Likewise.
16536 (CALL_SIGHANDLER): Likewise.
16537 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16538 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16539 (GET_FRAME): Likewise.
16540 (GET_STACK): Likewise.
16541 (CALL_SIGHANDLER): Likewise.
16542 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16543 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16544 (GET_FRAME): Likewise.
16545 (GET_STACK): Likewise.
16546 (CALL_SIGHANDLER): Likewise.
16547
16548 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16549
16550 * sysdeps/x86_64/backtrace.c: Move to ....
16551 * debug/backtrace.c: ... here.
16552 * sysdeps/aarch64/backtrace.c: Remove file.
16553 * sysdeps/alpha/backtrace.c: Likewise.
16554 * sysdeps/hppa/backtrace.c: Likewise.
16555 * sysdeps/ia64/backtrace.c: Likewise.
16556 * sysdeps/mips/backtrace.c: Likewise.
16557 * sysdeps/nios2/backtrace.c: Likewise.
16558 * sysdeps/riscv/backtrace.c: Likewise.
16559 * sysdeps/sh/backtrace.c: Likewise.
16560 * sysdeps/tile/backtrace.c: Likewise.
16561
16562 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16563
16564 [BZ #22987]
16565 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16566 function.
16567 (fdimf): Likewise.
16568 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16569
16570 [BZ #17343]
16571 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16572 possibly overflowing computations.
16573
16574 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16575
16576 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16577 values from Linux-specific section now that it is in the GNU section.
16578 * sysdeps/gnu/errlist.c: Regenerate.
16579
16580 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16581
16582 * math/Makefile (libm-narrow-fns): Add sub.
16583 (libm-test-funcs-narrow): Likewise.
16584 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16585 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16586 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16587 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16588 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16589 (NARROW_SUB_TRIVIAL): Likewise.
16590 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16591 macro.
16592 (__dsubl): Likewise.
16593 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16594 dsub.
16595 (CFLAGS-nldbl-dsub.c): New variable.
16596 (CFLAGS-nldbl-fsub.c): Likewise.
16597 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16598 __nldbl_dsubl.
16599 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16600 prototype.
16601 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16602 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16603 * math/auto-libm-test-in: Add tests of sub.
16604 * math/auto-libm-test-out-narrow-sub: New generated file.
16605 * math/libm-test-narrow-sub.inc: New file.
16606 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16607 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16608 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16609 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16610 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16611 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16612 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16613 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16614 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16615 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16616 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16617 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16618 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16619 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16620 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16621 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16622 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16623 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16624 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16625 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16626 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16627 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16628 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16629 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16630 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16631 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16632 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16633 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16634 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16635 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16636 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16637 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16638 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16641 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16642 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16643 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16644 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16645 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16646 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16647 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16648 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16649 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16650 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16651 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16652
16653 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16654
16655 [BZ #20079]
16656 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16657
16658 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16659
16660 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16661
16662 2018-03-18 Richard Braun <rbraun@sceen.net>
16663
16664 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16665 thread reference.
16666
16667 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16668
16669 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16670 (__libc_cleanup_fct): Define function.
16671 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16672 __libc_cleanup_end): Rewrite implementation using
16673 __attribute__ ((__cleanup__)).
16674 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16675 * hurd/Makefile (routines): Add hurdlock.
16676 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16677 interface.
16678 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16679 * hurd/hurdpid.c: Include <lowlevellock.h>
16680 (_S_msg_proc_newids): Use lll_wait to synchronize.
16681 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16682 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16683 * mach/Makefile (lock-headers): Remove machine-lock.h.
16684 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16685 <machine-lock.h>.
16686 (__spin_lock_t): New type.
16687 (__SPIN_LOCK_INITIALIZER): New macro.
16688 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16689 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16690 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16691 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16692 (__mutex_init): Initialize with lll.
16693 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16694 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16695 needing lll.
16696 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16697 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16698 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16699 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16700 (__setpgid): Use lll for synchronization.
16701 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16702 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16703 instead of <cthreads.h>.
16704 (_IO_lock_inexpensive): New macro
16705 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16706 (__libc_lock_self0): New declaration.
16707 (__libc_lock_owner_self): New macro.
16708 (__libc_key_t): Remove type.
16709 (_LIBC_LOCK_INITIALIZER): New macro.
16710 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16711 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16712 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16713 __libc_lock_define_initialized_recursive,
16714 __rtld_lock_define_initialized_recursive,
16715 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16716 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16717 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16718 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16719 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16720 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16721 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16722 New macros.
16723 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16724 * hurd/hurdlock.c: New file.
16725 * hurd/hurdlock.h: New file.
16726 * mach/lowlevellock.h: New file
16727
16728 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16729
16730 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16731 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16732 when opening a symlink with O_NOFOLLOW.
16733 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16734 path when flags contains O_NOFOLLOW.
16735 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16736 if flags contains O_DIRECTORY and the result is a directory.
16737 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16738 oneself when the pointer given in D is nul (as set by ext2fs).
16739 * sysdeps/mach/hurd/mlockall.c: New file.
16740 * sysdeps/mach/hurd/munlockall.c: New file.
16741
16742 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16743
16744 * hurd/hurdsig.c: Include <pthread.h>.
16745 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16746 get the signal thread stack layout.
16747 * hurd/Makefile (headers): Remove threadvar.h.
16748 (inline-headers): Remove threadvar.h.
16749 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16750 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16751 __hurd_threadvar_max, __hurd_errno_location.
16752 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16753 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16754 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16755 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16756 unless TLS is not initialized yet, in which case we do not need a
16757 critical section yet anyway.
16758 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16759 <machine-sp.h>.
16760 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16761 declarations.
16762 (__hurd_threadvar_index): Remove enum.
16763 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16764 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16765 inlines.
16766 (__hurd_reply_port0): New variable declaration.
16767 (__hurd_local_reply_port): New macro.
16768 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16769 (interrupted_reply_port_location): Add thread_t parameter. Use it
16770 with THREAD_TCB to access thread-local variables.
16771 (_hurdsig_abort_rpcs): Pass ss->thread to
16772 interrupted_reply_port_location.
16773 (_hurd_internal_post_signal): Likewise.
16774 (_hurdsig_init): Use presence of cthread_fork instead of
16775 __hurd_threadvar_stack_mask to start signal thread by hand.
16776 Remove signal thread threadvar initialization.
16777 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16778 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16779 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16780 of threadvar.
16781 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16782 __libc_lock_self0.
16783 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16784 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16785 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16786 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16787 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16788 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16789 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16790 define variables.
16791 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16792 <hurd/threadvar.h>.
16793 [IS_IN(rtld)] (rtld_errno): New variable.
16794 [IS_IN(rtld)] (__errno_location): New weak function.
16795 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16796 * sysdeps/mach/hurd/errno.c: Remove file.
16797 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16798 (__fork): Remove THREADVAR_SPACE macro and its use.
16799 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16800 variable.
16801 (init): Do not initialize threadvar.
16802 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16803 symbol.
16804 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16805 __hurd_local_reply_port instead of threadvar.
16806 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16807 _hurd_sigstate fields.
16808 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16809 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16810 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16811 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16812 instead of threadvar.
16813 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16814 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16815 (use_threadvar, global_reply_port): Remove variables.
16816 (__hurd_reply_port0): New variable.
16817 (__mig_get_reply_port): Use __hurd_local_reply_port and
16818 __hurd_reply_port0 instead of threadvar.
16819 (__mig_dealloc_reply_port): Likewise.
16820 (__mig_init): Do not initialize threadvar.
16821 * sysdeps/mach/hurd/profil.c: Fix comment.
16822 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16823 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16824 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16825 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16826 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16827 __cthread_setspecific.
16828 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16829 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16830 __cthread_t instead of cthread_fork, cthread_detach,
16831 pthread_getattr_np, pthread_attr_getstack.
16832 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16833 __cthread_keycreate.
16834 (cthread_getspecific): Rename to __cthread_getspecific.
16835 (cthread_setspecific): Rename to __cthread_setspecific.
16836 (__libc_getspecific): Use __cthread_getspecific instead of
16837 cthread_getspecific.
16838 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16839 __cthread_keycreate instead of cthread_keycreate.
16840 (__libc_setspecific): Use __cthread_setspecific instead of
16841 cthread_setspecific.
16842 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16843 Likewise.
16844 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16845 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16846 testing whether it is defined.
16847
16848 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16849
16850 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16851 Define macro.
16852 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16853 * sysdeps/mach/i386/thread_state.h
16854 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16855 i386_THREAD_STATE.
16856 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16857 i386_THREAD_STATE.
16858 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16859
16860 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16861 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16862
16863 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16864 macros.
16865 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16866 descriptor instead of creating a new one.
16867 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16868
16869 * mach/setup-thread.c: Include <ldsodefs.h>.
16870 (__mach_setup_thread): Call _dl_allocate_tls, pass
16871 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16872 MACHINE_THREAD_STATE_FLAVOR, before getting
16873 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16874 MACHINE_THREAD_STATE_FLAVOR with the result.
16875 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16876 MACHINE_THREAD_STATE_FIX_NEW.
16877 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16878 too. Add original thread parameter.
16879
16880 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16881
16882 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16883 Remove inline function.
16884
16885 * sysdeps/i386/fpu/libm-test-ulps: Update.
16886 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16887
16888 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16889
16890 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16891 commit.
16892
16893 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16894
16895 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16896 (__sincos_code): Remove define and undefine.
16897 [__FAST_MATH__] (__sincos): Remove inline function.
16898 [__FAST_MATH__] (__sincosf): Remove inline function.
16899 [__FAST_MATH__] (__sincosl): Remove inline function.
16900 (__atan2l): Remove inline functions.
16901 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16902 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16903 function.
16904 (floor): Remove inline function.
16905 (ceil): Likewise.
16906 [__FAST_MATH__] (__ldexp_code): Remove macro.
16907 [__FAST_MATH__] (ldexp): Remove inline function.
16908 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16909 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16910 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16911 [__USE_ISOC99] (__lrint_code): Remove macro.
16912 [__USE_ISOC99] (__llrint_code): Likewise.
16913 [__USE_ISOC99] (lrintf): Remove inline function.
16914 [__USE_ISOC99] (lrint): Likewise.
16915 [__USE_ISOC99] (lrintl): Likewise.
16916 [__USE_ISOC99] (llrint): Likewise.
16917 [__USE_ISOC99] (llrintf): Likewise.
16918 [__USE_ISOC99] (llrintl): Likewise.
16919
16920 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16921
16922 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16923 (__ieee754_sqrtf): Remove.
16924 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16925 (__ieee754_sqrtf): Remove.
16926 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16927 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16928 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16929 (__ieee754_sqrtf): Remove.
16930 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16931 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16932 (sqrtf): Remove.
16933 (sqrtl): Remove.
16934 (__ieee754_sqrt): Remove.
16935 (__ieee754_sqrtf): Remove.
16936 (__ieee754_sqrtl): Remove.
16937 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16938 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16939 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16940 (__ieee754_sqrtf): Remove.
16941 (__ieee754_sqrtl): Remove.
16942
16943 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16944
16945 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16946 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16947 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16948 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16949 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16950 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16951 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16952 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16953 Likewise.
16954 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16955 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16956 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16957 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16958 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16959 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16960 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16961 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16962 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16963 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16964 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16965 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16966 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16967 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16968 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16969 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16970 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16971 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16972 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16973 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16974 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16975 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16976 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16977 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16978 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16979 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16980 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16981 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16982 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16983 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16984 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16985 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16986 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16987 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16988 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16989 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16990 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16991 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16992 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16993 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16994
16995 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16996
16997 * include/math.h (sqrt): Declare with asm redirect.
16998 (sqrtf): Likewise.
16999 (sqrtl): Likewise.
17000 (sqrtf128): Likewise.
17001 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
17002 nonlib and libnldbl with -fmath-errno.
17003 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
17004 * math/w_sqrt_template.c: Likewise.
17005 * math/w_sqrtf_compat.c: Likewise.
17006 * math/w_sqrtl_compat.c: Likewise.
17007 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
17008 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
17009 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
17010 complex.h.
17011
17012 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
17013
17014 * benchtests/Makefile: Define _ISOMAC.
17015 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
17016 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
17017 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
17018 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
17019 * benchtests/bench-timing.h: Define attribute_hidden.
17020
17021 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
17022
17023 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
17024 mov + lsr.
17025
17026 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17027
17028 [BZ #22963]
17029 * localedata/locales/cs_CZ (mon): Rename to...
17030 (alt_mon): This.
17031 (mon): Import from CLDR (genitive case).
17032
17033 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17034
17035 [BZ #22937]
17036 * localedata/locales/el_CY (abmon): Rename to...
17037 (ab_alt_mon): This.
17038 (abmon): Import from CLDR (abbreviated genitive case).
17039 * localedata/locales/el_GR (abmon): Rename to...
17040 (ab_alt_mon): This.
17041 (abmon): Import from CLDR (abbreviated genitive case).
17042
17043 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
17044
17045 [BZ #22932]
17046 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
17047
17048 2018-03-15 Robert Buj <robert.buj@gmail.com>
17049
17050 [BZ #22848]
17051 * localedata/locales/ca_ES (abmon): Rename to...
17052 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17053 (mon): Rename to...
17054 (alt_mon): This.
17055 (abmon): Import from CLDR (genitive case, month names preceded by
17056 "de" or "d’").
17057 (mon): Likewise.
17058 (abday): Synchronize with CLDR.
17059 (d_t_fmt): Likewise.
17060 (d_fmt): Likewise.
17061 (am_pm): Likewise.
17062
17063 (LC_TIME): Improve indentation.
17064 (LC_TELEPHONE): Likewise.
17065 (LC_NAME): Likewise.
17066 (LC_ADDRESS): Likewise.
17067
17068 2018-03-14 Joseph Myers <joseph@codesourcery.com>
17069
17070 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
17071 (lrintf): Remove definitions used only with old GCC.
17072 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
17073 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
17074 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
17075 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
17076 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
17077 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
17078 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
17079 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
17080 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
17081 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
17082 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
17083 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
17084 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
17085 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
17086 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
17087 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
17088 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
17089 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
17090 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
17091 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
17092 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
17093 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
17094 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
17095 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
17096 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
17097 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
17098 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
17099 [__FAST_MATH__] (__M_SQRT2): Remove macro.
17100
17101 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
17102
17103 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
17104 instruction to unbreak builds with binutils 2.26 and older.
17105
17106 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
17107
17108 * sysdeps/aarch64/strncmp.S (count): New macro.
17109 (strncmp): Store misaligned length in SRC1 in COUNT.
17110 (mutual_align): Adjust.
17111 (misaligned8): Load dword at a time when it is safe.
17112
17113 2018-03-12 Zack Weinberg <zackw@panix.com>
17114
17115 [BZ #1190]
17116 [BZ #19476]
17117 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
17118 if the _IO_EOF_SEEN bit is already set; update commentary.
17119 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
17120 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
17121
17122 * support/support_openpty.c, support/tty.h: New files.
17123 * support/Makefile (libsupport-routines): Add support_openpty.
17124
17125 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17126 New test cases.
17127 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17128 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17129
17130 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17131
17132 * po/pt_BR.po: Update translations.
17133
17134 2018-03-12 David Michael <fedora.dm0@gmail.com>
17135
17136 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17137 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17138 get a port to the startup server.
17139
17140 2018-03-11 Zack Weinberg <zackw@panix.com>
17141
17142 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17143 before nldbl-compat.h.
17144
17145 2018-03-10 Zack Weinberg <zackw@panix.com>
17146
17147 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17148 math.h or math_private.h.
17149
17150 * sysdeps/alpha/fpu/s_isnan.c
17151 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17152 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17153 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17154 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17155 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17156 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17157 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17158 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17159 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17160 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17162 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17163 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17164 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17165 Include math_private.h.
17166
17167 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17168 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17169 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17170 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17171 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17172 * sysdeps/powerpc/power7/fpu/s_logb.c:
17173 Include math.h and math_private.h.
17174
17175 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17176 uses of $at in .set noat / .set at.
17177
17178 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17179
17180 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17181 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17182 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17183 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17184 Likewise.
17185
17186 2018-03-09 Florian Weimer <fweimer@redhat.com>
17187
17188 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17189 in comment.
17190
17191 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17192
17193 [BZ #22919]
17194 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17195 Add nop before __startcontext, add explaining comments.
17196
17197 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17198
17199 [BZ #22926]
17200 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17201 empty for __SPE__.
17202 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17203 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17204 Do not build hardware transactional code for __SPE__.
17205 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17206 (__lll_trylock_elision): Likewise.
17207 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17208 (__lll_unlock_elision): Likewise.
17209
17210 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17211 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17212 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17213 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17214 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17215 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17216 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17217 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17218 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17219 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17220 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17221 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17222 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17223 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17224 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17225 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17226 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17227 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17228 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17229 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17230 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17231 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17232 (__ASSUME_CLONE_BACKWARDS): Define.
17233 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17234 __clone2 if __NR_clone2 is defined.
17235 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17236 (__ASSUME_CLONE_BACKWARDS): Likewise.
17237 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17238 (__ASSUME_CLONE_BACKWARDS): Likewise.
17239 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17240 (__ASSUME_CLONE2): Likewise.
17241 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17242 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17243 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17244 variants and the define architecture can use.
17245 (__ASSUME_CLONE_DEFAULT): Define as default.
17246 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17247 (__ASSUME_CLONE_BACKWARDS): Likewise.
17248 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17249 (__ASSUME_CLONE_BACKWARDS): Likewise.
17250 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17251 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17252
17253 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17254
17255 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17256
17257 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17258 time.
17259
17260 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17261 (do_test_limit): Likewise.
17262
17263 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17264 for every implementation.
17265 (do_test): Likewise.
17266
17267 * benchtests/bench-strncmp.c: Convert output to json.
17268
17269 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17270
17271 * io/futimens.c: Add missing start-of-file descriptive comment.
17272 * io/utime.c: Likewise.
17273 * misc/futimesat.c: Likewise.
17274 * misc/utimes.c: Likewise.
17275 * sysdeps/mach/hurd/futimesat.c: Likewise.
17276 * sysdeps/mach/hurd/utimes.c: Likewise.
17277 * sysdeps/posix/utime.c: Likewise.
17278 * sysdeps/posix/utimes.c: Likewise.
17279 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17280 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17281 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17282 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17283
17284 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17285
17286 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17287 hurd_futimes.
17288 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17289 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17290 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17291 (__futimens): Move implementation to...
17292 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17293 utime_tvalue_from_tspec): ... new helper functions.
17294 (hurd_futimens): New function.
17295 * sysdeps/mach/hurd/futimesat.c: New file.
17296 * sysdeps/mach/hurd/utimensat.c: New file.
17297
17298 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17299
17300 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17301 UTIME_OMIT): New macros.
17302 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17303 before reverting to converting time spec to time value and calling
17304 __file_utimes.
17305 * sysdeps/mach/hurd/utime-helper.c: New file.
17306 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17307 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17308 reverting to utime_tvalue_from_tval and __file_utimes.
17309 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17310 (__lutimes): Just call hurd_futimens after lookup.
17311 * sysdeps/mach/hurd/utimes.c: Likewise.
17312
17313 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17314
17315 * bits/sigaction.h: Add include guard.
17316 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17317 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17318 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17319 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17320 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17321 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17322 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17323 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17324 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17325
17326 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17327
17328 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17329 -Wmaybe-uninitialized for -Os.
17330 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17331 this disabling.
17332
17333 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17334
17335 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17336 __INO_T_MATCHES_INO64_T is defined.
17337 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17338 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17339 of definition.
17340 * dirent/alphasort64.c: Likewise.
17341 * dirent/scandir.c: Likewise.
17342 * dirent/scandir64-tail.c: Likewise.
17343 * dirent/scandir64.c: Likewise.
17344 * dirent/scandirat.c: Likewise.
17345 * dirent/scandirat64.c: Likewise.
17346 * dirent/versionsort.c: Likewise.
17347 * dirent/versionsort64.c: Likewise.
17348 * include/dirent.h: Likewise.
17349
17350 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17351 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17352 for socketpair endpoint.
17353 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17354 WRITE_BUFFER_SIZE as buffer size for sending socket.
17355 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17356 issue on system where send is implemented with sendto syscall.
17357 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17358 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17359 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17360 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17361
17362 [BZ #21269]
17363 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17364 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17365 sa_restorer for vDSO case.
17366 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17367
17368 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17369
17370 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17371 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17372 * hurd/hurd/ioctl.h: Include <mach/port.h>
17373 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17374 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17375 <mach/mach_types.h> and <mach/message.h>.
17376 (headers): Move mach/param.h to bits/mach/param.h.
17377 * sysdeps/mach/i386/mach/param.h: Move file to ...
17378 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17379 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17380 of <mach/param.h>.
17381 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17382 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17383 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17384 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17385 trivial, for C++ conformity.
17386 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17387 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17388 Process mig output through $(migheadersed).
17389 * hurd/Makefile (migheadersed): Define variable.
17390 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17391 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17392 headers.
17393 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17394 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17395 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17396 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17397 <bits/types/sigset_t.h>.
17398 [!defined __USE_GNU]: Do not #error out.
17399 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17400 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17401 Include <stddef.h> and <bits/types/sigset_t.h>
17402 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17403 instead of sighandler_t.
17404 * stdlib/errno.h (error_t): Move definition to...
17405 * bits/types/error_t.h: ... new header.
17406 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17407 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17408 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17409 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17410 * hurd/hurd.h: Include <bits/types/error_t.h>
17411 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17412 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17413 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17414 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17415 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17416 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17417 * sysdeps/mach/hurd/futimens.c: New file.
17418
17419 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17420
17421 [BZ #22918]
17422 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17423 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17424 * nscd/gai.c (__nss_hosts_database): Readd definition.
17425 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17426 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17427 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17428
17429 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17430
17431 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17432 (ifunc_one): Likewise.
17433
17434 2018-03-01 DJ Delorie <dj@delorie.com>
17435
17436 [BZ #22342]
17437 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17438 key value.
17439
17440 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17441
17442 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17443 `match_pid' parameter.
17444 (td_ta_thr_iter): Update accordingly.
17445
17446 2018-03-01 Florian Weimer <fweimer@redhat.com>
17447
17448 * nptl/Makefile (install-lib-ldscripts): Remove.
17449 (install): Remove rule.
17450 ($(inst_libdir)/libpthread.so): Likewise.
17451
17452 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17453
17454 [BZ #22896]
17455 * localedata/locales/an_ES: update month and day names,
17456 improve d_fmt, improve postal_fmt, add country_post,
17457 add country_isbn
17458
17459 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17460
17461 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17462 Ukrainian instead of Bulgarian.
17463
17464 2018-03-01 Florian Weimer <fweimer@redhat.com>
17465
17466 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17467 reference.
17468
17469 2018-03-01 Florian Weimer <fweimer@redhat.com>
17470
17471 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17472 * nptl/Makefile (routines): Add pthread_atfork.
17473 (static-only-routines): Set to pthread_atfork.
17474 (libpthread-routines): Remove pthread_atfork.
17475 (libpthread-static-only-routines): Remove.
17476 (install): Update comment.
17477 (libpthread.so): Do not install libpthread_nonshared.a.
17478 (tests): Do not link with libpthread_nonshared.a.
17479 (generated): Remove libpthread_nonshared.a.
17480 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17481 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17482 with libpthread_nonshared.a.
17483
17484 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17485
17486 [BZ #22902]
17487 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17488 (libc_feholdexcept_setroundf128): New macro.
17489 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17490
17491 [BZ #15105]
17492 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17493 libc_hidden_def.
17494 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17495 * include/inttypes.h: New file.
17496
17497 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17498
17499 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17500 -Os in two more places.
17501
17502 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17503
17504 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17505 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17506 be sorted correctly at the moment because of a bug.
17507
17508 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17509
17510 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17511 treat ñ as a primary different character, sync the collation
17512 for Spanish with CLDR.
17513 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17514 * localedata/Makefile: Add new test files.
17515 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17516 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17517 collation order.
17518 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17519 * localedata/am_ET.UTF-8.in: New test file.
17520 * localedata/az_AZ.UTF-8.in: Likewise.
17521 * localedata/be_BY.UTF-8.in: Likewise.
17522 * localedata/ber_DZ.UTF-8.in: Likewise.
17523 * localedata/ber_MA.UTF-8.in: Likewise.
17524 * localedata/bg_BG.UTF-8.in: Likewise.
17525 * localedata/br_FR.UTF-8.in: Likewise.
17526 * localedata/cmn_TW.UTF-8.in: Likewise.
17527 * localedata/crh_UA.UTF-8.in: Likewise.
17528 * localedata/csb_PL.UTF-8.in: Likewise.
17529 * localedata/cv_RU.UTF-8.in: Likewise.
17530 * localedata/cy_GB.UTF-8.in: Likewise.
17531 * localedata/dz_BT.UTF-8.in: Likewise.
17532 * localedata/eo.UTF-8.in: Likewise.
17533 * localedata/es_ES.UTF-8.in: Likewise.
17534 * localedata/fa_IR.UTF-8.in: Likewise.
17535 * localedata/fi_FI.UTF-8.in: Likewise.
17536 * localedata/fil_PH.UTF-8.in: Likewise.
17537 * localedata/fur_IT.UTF-8.in: Likewise.
17538 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17539 * localedata/ha_NG.UTF-8.in: Likewise.
17540 * localedata/ig_NG.UTF-8.in: Likewise.
17541 * localedata/ik_CA.UTF-8.in: Likewise.
17542 * localedata/kk_KZ.UTF-8.in: Likewise.
17543 * localedata/ku_TR.UTF-8.in: Likewise.
17544 * localedata/ky_KG.UTF-8.in: Likewise.
17545 * localedata/ln_CD.UTF-8.in: Likewise.
17546 * localedata/mi_NZ.UTF-8.in: Likewise.
17547 * localedata/ml_IN.UTF-8.in: Likewise.
17548 * localedata/mn_MN.UTF-8.in: Likewise.
17549 * localedata/mr_IN.UTF-8.in: Likewise.
17550 * localedata/mt_MT.UTF-8.in: Likewise.
17551 * localedata/nb_NO.UTF-8.in: Likewise.
17552 * localedata/om_KE.UTF-8.in: Likewise.
17553 * localedata/os_RU.UTF-8.in: Likewise.
17554 * localedata/ps_AF.UTF-8.in: Likewise.
17555 * localedata/ro_RO.UTF-8.in: Likewise.
17556 * localedata/ru_RU.UTF-8.in: Likewise.
17557 * localedata/sc_IT.UTF-8.in: Likewise.
17558 * localedata/se_NO.UTF-8.in: Likewise.
17559 * localedata/sq_AL.UTF-8.in: Likewise.
17560 * localedata/sv_SE.UTF-8.in: Likewise.
17561 * localedata/szl_PL.UTF-8.in: Likewise.
17562 * localedata/tg_TJ.UTF-8.in: Likewise.
17563 * localedata/tk_TM.UTF-8.in: Likewise.
17564 * localedata/tt_RU.UTF-8.in: Likewise.
17565 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17566 * localedata/ug_CN.UTF-8.in: Likewise.
17567 * localedata/uz_UZ.UTF-8.in: Likewise.
17568 * localedata/vi_VN.UTF-8.in: Likewise.
17569 * localedata/yi_US.UTF-8.in: Likewise.
17570 * localedata/yo_NG.UTF-8.in: Likewise.
17571 * localedata/zh_CN.UTF-8.in: Likewise.
17572 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17573 file and fix bugs in the collation.
17574 * localedata/locales/az_AZ: Likewise.
17575 * localedata/locales/be_BY: Likewise.
17576 * localedata/locales/ber_DZ: Likewise.
17577 * localedata/locales/ber_MA: Likewise.
17578 * localedata/locales/bg_BG: Likewise.
17579 * localedata/locales/br_FR: Likewise.
17580 * localedata/locales/br_FR@euro: Likewise.
17581 * localedata/locales/ca_ES: Likewise.
17582 * localedata/locales/cns11643_stroke: Likewise.
17583 * localedata/locales/crh_UA: Likewise.
17584 * localedata/locales/cs_CZ: Likewise.
17585 * localedata/locales/csb_PL: Likewise.
17586 * localedata/locales/cv_RU: Likewise.
17587 * localedata/locales/cy_GB: Likewise.
17588 * localedata/locales/da_DK: Likewise.
17589 * localedata/locales/dz_BT: Likewise.
17590 * localedata/locales/en_CA: Likewise.
17591 * localedata/locales/eo: Likewise.
17592 * localedata/locales/es_CU: Likewise.
17593 * localedata/locales/es_EC: Likewise.
17594 * localedata/locales/es_ES: Likewise.
17595 * localedata/locales/es_US: Likewise.
17596 * localedata/locales/et_EE: Likewise.
17597 * localedata/locales/fa_IR: Likewise.
17598 * localedata/locales/fi_FI: Likewise.
17599 * localedata/locales/fil_PH: Likewise.
17600 * localedata/locales/fur_IT: Likewise.
17601 * localedata/locales/gez_ER@abegede: Likewise.
17602 * localedata/locales/ha_NG: Likewise.
17603 * localedata/locales/hr_HR: Likewise.
17604 * localedata/locales/hsb_DE: Likewise.
17605 * localedata/locales/hu_HU: Likewise.
17606 * localedata/locales/ig_NG: Likewise.
17607 * localedata/locales/ik_CA: Likewise.
17608 * localedata/locales/is_IS: Likewise.
17609 * localedata/locales/iso14651_t1_pinyin: Likewise.
17610 * localedata/locales/kk_KZ: Likewise.
17611 * localedata/locales/ku_TR: Likewise.
17612 * localedata/locales/ky_KG: Likewise.
17613 * localedata/locales/ln_CD: Likewise.
17614 * localedata/locales/lt_LT: Likewise.
17615 * localedata/locales/lv_LV: Likewise.
17616 * localedata/locales/mi_NZ: Likewise.
17617 * localedata/locales/ml_IN: Likewise.
17618 * localedata/locales/mn_MN: Likewise.
17619 * localedata/locales/mr_IN: Likewise.
17620 * localedata/locales/mt_MT: Likewise.
17621 * localedata/locales/nb_NO: Likewise.
17622 * localedata/locales/om_KE: Likewise.
17623 * localedata/locales/os_RU: Likewise.
17624 * localedata/locales/pl_PL: Likewise.
17625 * localedata/locales/ps_AF: Likewise.
17626 * localedata/locales/ro_RO: Likewise.
17627 * localedata/locales/ru_RU: Likewise.
17628 * localedata/locales/ru_UA: Likewise.
17629 * localedata/locales/sc_IT: Likewise.
17630 * localedata/locales/se_NO: Likewise.
17631 * localedata/locales/si_LK: Likewise.
17632 * localedata/locales/sq_AL: Likewise.
17633 * localedata/locales/sv_FI: Likewise.
17634 * localedata/locales/sv_FI@euro: Likewise.
17635 * localedata/locales/sv_SE: Likewise.
17636 * localedata/locales/szl_PL: Likewise.
17637 * localedata/locales/tg_TJ: Likewise.
17638 * localedata/locales/ti_ER: Likewise.
17639 * localedata/locales/tk_TM: Likewise.
17640 * localedata/locales/tl_PH: Likewise.
17641 * localedata/locales/tr_TR: Likewise.
17642 * localedata/locales/tt_RU: Likewise.
17643 * localedata/locales/tt_RU@iqtelif: Likewise.
17644 * localedata/locales/ug_CN: Likewise.
17645 * localedata/locales/uk_UA: Likewise.
17646 * localedata/locales/uz_UZ: Likewise.
17647 * localedata/locales/uz_UZ@cyrillic: Likewise.
17648 * localedata/locales/vi_VN: Likewise.
17649 * localedata/locales/yi_US: Likewise.
17650 * localedata/locales/yo_NG: Likewise.
17651
17652 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17653
17654 * gen-locales.mk: Make test files which contain @ modifiers in their
17655 name work.
17656 * localedata/gen-locale.sh: Likewise.
17657
17658 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17659
17660 * posix/tst-fnmatch.input: Fix results for range expressions
17661 for non C locales.
17662 * posix/tst-regexloc.c: Do not use a range expression for
17663 de_DE.ISO-8859-1 locale.
17664
17665 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17666
17667 * posix/bug-regex5.c: Fix test case because with the new
17668 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17669 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17670 file.
17671
17672 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17673
17674 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17675 downloaded from ISO, the collation order of @-. and space has changed.
17676 Therefore, this test file needed to be adapted.
17677 * localedata/fr_CA.UTF-8.in: Likewise.
17678 * localedata/fr_FR.UTF-8.in: Likewise.
17679 * localedata/uk_UA.UTF-8.in: Likewise.
17680
17681 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17682
17683 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17684 order of ȥ in the new iso14651_t1_common file.
17685 * localedata/pl_PL.UTF-8.in: Likewise.
17686
17687 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17688
17689 * localedata/locales/iso14651_t1_common: Add sections for various
17690 scripts to the iso14651_t1_common file.
17691
17692 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17693
17694 * localedata/locales/iso14651_t1_common: Use the code point of a
17695 character in the fourth collation level instead of IGNORE for all
17696 entries which have IGNORE on all 4 levels.
17697
17698 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17699
17700 * localedata/locales/iso14651_t1_common: Add some convenient collation
17701 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17702 rules similar to those in CLDR.
17703
17704 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17705
17706 * localedata/locales/iso14651_t1_common: The new version of this
17707 file downloaded from ISO contained several syntax errors which
17708 are fixed by this patch.
17709
17710 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17711
17712 * localedata/locales/iso14651_t1_common: replace all <U.....>
17713 with <U000.....> because glibc understands only 4 digit or 8 digit
17714
17715 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17716
17717 * localedata/locales/iso14651_t1_common: Necessary changes
17718 to make the file downloaded from ISO usable by glibc.
17719
17720 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17721
17722 [BZ #14095]
17723 * localedata/locales/iso14651_t1_common: Update file to
17724 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17725
17726 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17727
17728 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17729 of <nptl/pthreadP.h>
17730 (thread_attr_compare): Move function to...
17731 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17732 * sysdeps/nptl/timer_routines.h: ... new header.
17733 * sysdeps/mach/hurd/gai_misc.h: New file.
17734
17735 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17736
17737 * string/strcoll_l.c: Include <libc-diag.h>.
17738 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17739 declarations of seq1 and seq2.
17740
17741 [BZ #15105]
17742 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17743 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17744
17745 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17746
17747 [BZ #22433]
17748 [BZ #22807]
17749 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17750 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17751 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17752 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17753 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17754 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17755
17756 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17757
17758 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17759 macros used in __ptrace_request.
17760
17761 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17762
17763 [BZ #22792]
17764 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17765 to $(CC).
17766 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17767 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17768 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17769 <tcb-offsets.h>.
17770
17771 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17772
17773 [BZ #15105]
17774 * ctype/ctype.c (tolower): Use libc_hidden_def.
17775 (toupper): Likewise.
17776 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17777 [!_ISOMAC] (toupper): Likewise.
17778
17779 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17780
17781 * localedata/Makefile: Remove --quiet argument when
17782 installing locales
17783
17784 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17785
17786 [BZ #17438]
17787 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17788 in d_fmt.
17789 * localedata/locales/pt_PT (LC_TIME): likewise
17790
17791 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17792
17793 [BZ #22646]
17794 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17795 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17796 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17797
17798 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17799
17800 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17801
17802 * nptl/Makefile (routines): Remove unregister-atfork.
17803 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17804 (fork_handler_alloc): Remove function.
17805 (fork_handlers, fork_handler_init): New variables.
17806 (__fork_lock): Rename to atfork_lock.
17807 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17808 to use a dynamic array to add/remove atfork handlers.
17809 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17810 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17811 Remove declaration.
17812 (fork_handler): Remove next, refcntr, and need_signal member.
17813 (__run_fork_handler_type): New enum.
17814 (__run_fork_handlers): New prototype.
17815 * nptl/register-atfork.c: Remove file.
17816 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17817
17818 * sysdeps/nptl/nptl-signals.h: Move to ...
17819 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17820 comments.
17821 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17822 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17823 unnecessary check for SIGTIMER.
17824 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17825 remove unnecessary removal of SIGTIMER.
17826 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17827 include-signals.h rename.
17828 * nptl/pthreadP.h: Likewise.
17829 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17830 __is_internal_signal instead of __nptl_is_internal_signal.
17831
17832 2018-02-22 Andrew Waterman <andrew@sifive.com>
17833
17834 [BZ # 22884]
17835 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17836 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17837 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17838 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17839
17840 2018-02-22 DJ Delorie <dj@delorie.com>
17841
17842 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17843
17844 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17845
17846 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17847 do_misaligned, not misaligned8.
17848
17849 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17850
17851 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17852 Add memcpy_thunderx2.
17853 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17854 Increment to 4.
17855 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17856 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17857 and IS_THUNDERX2PA checks.
17858 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17859 Use macro to set name appropriately.
17860 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17861 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17862 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17863 New macro.
17864 (IS_THUNDERX2): New macro.
17865
17866 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17867
17868 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17869
17870 2018-02-21 Zack Weinberg <zackw@panix.com>
17871
17872 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17873 Define here, unconditionally.
17874 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17875 * libio/libioP.h: Remove #if 0 blocks.
17876 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17877 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17878 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17879
17880 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17881 Assume weak_alias is always defined.
17882
17883 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17884 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17885 Remove #if 0 and #ifdef TODO blocks.
17886 Assume text_set_element is always defined.
17887
17888 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17889 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17890 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17891
17892 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17893 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17894 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17895 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17896 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17897 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17898 Reformat bit flags for _flags field to make occupancy clearer.
17899 Update commentary.
17900 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17901 Keep definitions consistent with those in libio/libio.h.
17902
17903 * libio/libio.h (_IO_file_flags): Remove macro.
17904 All uses changed to _flags.
17905
17906 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17907 (__HAVE_COLUMN, _IO_BE): Don't define.
17908 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17909 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17910 * libio/libioP.h (EOF): Don't define.
17911 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17912 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17913 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17914 testing _IO_UNIFIED_JUMPTABLES.
17915
17916 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17917 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17918 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17919 (_IO_size_t): Delete; all uses changed to size_t.
17920 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17921 (_IO_off_t): Delete; all uses changed to off_t.
17922 (_IO_off64_t): Delete; all uses changed to off64_t.
17923 (_IO_pid_t): Delete; all uses changed to pid_t.
17924 (_IO_uid_t): Delete; all uses changed to uid_t.
17925 (_IO_wint_t): Delete; all uses changed to wint_t.
17926 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17927 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17928 (_IO_cookie_io_functions_t): Delete; all uses changed to
17929 cookie_io_functions_t.
17930 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17931 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17932 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17933 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17934
17935 * libio/iofopncook.c: Remove unnecessary forward declarations.
17936 * libio/iolibio.h: Correct outdated commentary.
17937 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17938 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17939 Remove unnecessary casts.
17940 * stdio-common/getline.c: Use _IO_getdelim directly.
17941 Don't redefine ssize_t.
17942 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17943 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17944 Remove outdated comments.
17945 * stdio-common/vfscanf.c: Don't redefine va_list.
17946
17947 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17948 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17949 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17950 which are always true, and __cplusplus, which is always false.
17951
17952 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17953
17954 [BZ #15105]
17955 [BZ #19463]
17956 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17957 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17958 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17959 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17960 libc_hidden_proto.
17961 [!_ISOMAC] (putc_unlocked): Likewise.
17962 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17963 define inline if [__USE_EXTERN_INLINES].
17964 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17965 putc_unlocked.
17966
17967 [BZ #15105]
17968 [BZ #19463]
17969 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17970 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17971 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17972 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17973 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17974 getc_unlocked.
17975 * time/tzfile.c (__tzfile_read): Likewise.
17976
17977 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17978
17979 [BZ #22517]
17980 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17981
17982 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17983
17984 * io/fcntl.h: Fix a typo in a comment.
17985
17986 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17987
17988 [BZ #22862]
17989 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17990 define _DEFAULT_SOURCE.
17991 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17992
17993 2018-02-21 Florian Weimer <fweimer@redhat.com>
17994
17995 [BZ #20890]
17996 * elf/cache.c (save_cache): Call fsync on temporary file before
17997 renaming it.
17998 (save_aux_cache): Call fdatasync on temporary file before renaming
17999 it.
18000
18001 2018-02-21 Florian Weimer <fweimer@redhat.com>
18002
18003 [BZ #22787]
18004 * include/caller.h: Remove file.
18005 * elf/dl-caller.c: Likewise.
18006 * elf/Makefile (dl-routines): Remove dl-caller.
18007 (shared-only-routines): Do not add dl-caller.
18008 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
18009 __check_caller.
18010 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
18011 member.
18012 (dl_open_worker): Do not call __check_caller.
18013 (_dl_open): Do not set caller_dl_open member.
18014 * elf/rtld.c (_rtld_global_ro): Do not initialize
18015 _dl_check_caller member.
18016 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
18017 _dl_check_caller member.
18018 (_dl_check_caller): Remove declaration.
18019 * sysdeps/unix/sysv/linux/dl-execstack.c
18020 (_dl_make_stack_executable): Do not call __check_caller.
18021
18022 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18023
18024 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
18025 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
18026
18027 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18028
18029 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
18030 description.
18031
18032 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
18033
18034 [BZ #16335]
18035 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
18036 of 199606L, 200112L, and 200809L.
18037 (_XOPEN_SOURCE): Document special values of 600 and 700.
18038 (_ISOC11_SOURCE): Document macro.
18039 (_ATFILE_SOURCE): Likewise.
18040 (_FORTIFY_SOURCE): Likewise.
18041
18042 2018-02-19 Joseph Myers <joseph@codesourcery.com>
18043
18044 [BZ #15105]
18045 [BZ #19463]
18046 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
18047 and define as weak alias of __ferror_unlocked. Use
18048 libc_hidden_weak.
18049 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
18050 libc_hidden_proto.
18051 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
18052 function if [__USE_EXTERN_INLINES].
18053 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
18054 ferror_unlocked.
18055
18056 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
18057
18058 [BZ #6889]
18059 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
18060
18061 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18062
18063 [BZ #22818]
18064 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
18065 the GLIBC_2.1 version.
18066
18067 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
18068
18069 [BZ #21508]
18070 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
18071 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
18072 intl/tst-gettext-de.po from po/de.po by removing the
18073 POT-Creation-Date line.
18074 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
18075 ../po/de.po.
18076 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
18077 ../po/de.po.
18078
18079 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
18080
18081 * mach/Makefile (headers): Add mach/param.h.
18082 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
18083 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
18084 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
18085 (__ptsname_r): Move implementation to...
18086 (__ptsname_internal): ... new function. Add filling the STP
18087 structure.
18088
18089 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
18090
18091 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
18092 idouble to 1 ULP.
18093
18094 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
18095
18096 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
18097 syntax.
18098
18099 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
18100
18101 * nptl/Makefile (tst-mutex8-ENV): Delete.
18102 * nptl/tst-mutex8.c (check_type):
18103 Add runtime check if mutex will be elided.
18104
18105 2018-02-15 Joseph Myers <joseph@codesourcery.com>
18106
18107 [BZ #20980]
18108 [BZ #21234]
18109 * manual/install.texi (Configuring and compiling): Describe
18110 passing CC and CFLAGS on configure command line, not as
18111 environment variables. Use @code markup on those variables.
18112 Specify what options go in CC and what go in CFLAGS. Note the
18113 requirement to compile with optimization.
18114 * INSTALL: Regenerated.
18115
18116 [BZ #18124]
18117 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
18118 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
18119 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
18120 __sigprocmask instead of sigprocmask.
18121 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
18122 Likewise.
18123 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
18124 __sigsetjmp and sigprocmask.
18125
18126 [BZ #15105]
18127 * include/argz.h (argz_next): Use libc_hidden_proto.
18128 (__argz_next): Likewise.
18129 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18130 (argz_next): Use libc_hidden_weak.
18131
18132 [BZ #15105]
18133 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18134 libc_hidden_proto.
18135 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18136 libc_hidden_def.
18137
18138 [BZ #15105]
18139 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18140 libc_hidden_proto.
18141 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18142
18143 [BZ #15105]
18144 [BZ #19463]
18145 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18146 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18147 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18148 (__feof_unlocked): New declaration, and inline function if
18149 [__USE_EXTERN_INLINES].
18150 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18151 instead of feof_unlocked.
18152 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18153 * nss/nsswitch.c (nss_parse_file): Likewise.
18154 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18155 Likewise.
18156 * time/getdate.c (__getdate_r): Likewise.
18157 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18158 Define as macro to call __feof_unlocked.
18159
18160 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18161
18162 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18163
18164 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18165
18166 * math/Makefile: Remove mpexp.c and mplog.c
18167 * sysdeps/i386/fpu/mpexp.c: Delete file.
18168 * sysdeps/i386/fpu/mplog.c: Likewise.
18169 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18170 * sysdeps/ia64/fpu/mplog.c: Likewise.
18171 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18172 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18173 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18174 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18175 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18176 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18177 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18178 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18179 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18180 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18181 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18182 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18183 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18184 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18185 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18186 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18187
18188 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18189
18190 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18191
18192 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18193
18194 * sysdeps/sh/libm-test-ulps: Update.
18195
18196 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18197
18198 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18199 idouble to 1 ULP.
18200
18201 2018-02-12 Zack Weinberg <zackw@panix.com>
18202
18203 [BZ #19239]
18204 * posix/sys/types.h: Don't include sys/sysmacros.h.
18205 * misc/sys/sysmacros.h: Remove the conditional deprecation
18206 warnings for the macros defined by this header.
18207
18208 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18209
18210 * manual/probes.texi: Remove slowexp probes.
18211 * math/Makefile: Remove slowexp.
18212 * sysdeps/generic/math_private.h (__slowexp): Remove.
18213 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18214 document error bounds.
18215 * sysdeps/i386/fpu/slowexp.c: Remove.
18216 * sysdeps/ia64/fpu/slowexp.c: Remove.
18217 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18218 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18219 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18220 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18221 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18222 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18223 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18224 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18225 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18226 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18227 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18228
18229 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18230
18231 [BZ #13932]
18232 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18233 * benchtests/pow-inputs: Update comment for slow path cases.
18234 * manual/probes.texi (slowpow_p10): Delete removed probe.
18235 (slowpow_p10): Likewise.
18236 * math/Makefile: Remove halfulp.c and slowpow.c.
18237 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18238 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18239 (__halfulp): Remove.
18240 (__slowpow): Remove.
18241 * sysdeps/i386/fpu/halfulp.c: Delete file.
18242 * sysdeps/i386/fpu/slowpow.c: Likewise.
18243 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18244 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18245 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18246 improve comments and add error analysis.
18247 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18248 (power1): Remove function:
18249 (log1): Remove error argument, add error analysis.
18250 (my_log2): Remove function.
18251 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18252 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18253 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18254 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18255 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18256 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18257 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18258 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18259 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18260 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18261 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18262 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18263 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18264 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18265
18266 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18267
18268 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18269 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18270
18271 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18272
18273 [BZ #22433]
18274 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18275 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18276 and PTRACE_SETHBPREGS.
18277
18278 2018-02-10 Zack Weinberg <zackw@panix.com>
18279
18280 [BZ #22830]
18281 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18282 correctly.
18283 * malloc/tst-malloc-stats-cancellation.c: New test case.
18284 * malloc/Makefile: Add new test case.
18285
18286 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18287
18288 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18289
18290 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18291
18292 * math/Makefile (libm-narrow-fns): Add add.
18293 (libm-test-funcs-narrow): Likewise.
18294 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18295 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18296 * math/gen-auto-libm-tests.c (test_functions): Add add.
18297 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18298 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18299 (NARROW_ADD_TRIVIAL): Likewise.
18300 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18301 macro.
18302 (__daddl): Likewise.
18303 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18304 dadd.
18305 (CFLAGS-nldbl-dadd.c): New variable.
18306 (CFLAGS-nldbl-fadd.c): Likewise.
18307 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18308 __nldbl_daddl.
18309 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18310 prototype.
18311 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18312 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18313 * math/auto-libm-test-in: Add tests of add.
18314 * math/auto-libm-test-out-narrow-add: New generated file.
18315 * math/libm-test-narrow-add.inc: New file.
18316 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18317 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18318 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18319 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18320 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18321 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18322 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18323 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18324 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18325 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18326 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18327 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18328 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18329 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18330 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18331 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18332 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18333 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18334 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18335 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18336 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18337 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18338 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18339 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18340 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18341 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18342 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18343 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18344 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18345 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18346 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18347 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18349 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18350 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18351 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18352 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18353 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18354 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18355 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18356 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18357 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18358 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18359 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18360 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18361 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18362
18363 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18364 (f128-pairs): New variable.
18365 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18366 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18367 to CFLAGS.
18368 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18369 Also make tests add $(f128-loader-link) to gnulib-tests.
18370
18371 2018-02-09 DJ Delorie <dj@redhat.com>
18372
18373 [BZ #22827]
18374 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18375 64-bit ELF type for 64-bit ELF objects.
18376
18377 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18378
18379 * math/libm-test-driver.c (snan_tests_arg): New variable.
18380 * math/libm-test-support.h (snan_tests_arg): New declaration.
18381 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18382
18383 * math/Makefile (test-type-pairs): New variable.
18384 (test-type-pairs-f64xf128-yes): Likewise.
18385 (tests): Add test-narrow-macros.
18386 (libm-test-funcs-narrow): New variable.
18387 (libm-test-c-narrow): Likewise.
18388 (generated): Add $(libm-test-c-narrow).
18389 (libm-tests-base-narrow): New variable.
18390 (libm-tests-narrow): Likewise.
18391 (libm-tests): Add $(libm-tests-narrow).
18392 (libm-tests-for-type): Handle $(libm-tests-narrow).
18393 (libm-test-c-narrow-obj): New variable.
18394 ($(libm-test-c-narrow-obj)): New rule.
18395 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18396 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18397 $(o-iterator) to set dependencies and CFLAGS.
18398 * math/gen-auto-libm-tests.c: Document use for narrowing
18399 functions.
18400 (output_for_one_input_case): Take argument NARROW.
18401 (generate_output): Likewise. Update call to
18402 output_for_one_input_case.
18403 (main): Take --narrow option. Update call to generate_output.
18404 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18405 (apply_lit): Update call to _apply_lit.
18406 (apply_arglit): New function.
18407 (parse_args): Handle "a" arguments.
18408 (parse_auto_input): Handle format names using ":".
18409 * math/README.libm-test: Document "a" parameter type.
18410 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18411 (ARG_TYPE_TRUE_MIN): Likewise.
18412 (ARG_TYPE_MAX): Likwise.
18413 (ARG_MIN_EXP): Likewise.
18414 (ARG_MAX_EXP): Likewise.
18415 (ARG_MANT_DIG): Likewise.
18416 (TEST_COND_arg_ibm128): Likewise.
18417 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18418 (TEST_COND_arg_fmt): New macro.
18419 (init_max_error): Update prototype.
18420 * math/libm-test-support.c (test_ibm128): New variable.
18421 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18422 instead of using [TEST_COND_ibm128] conditional.
18423 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18424 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18425 [TEST_NARROW] (TEST_MSG): New definition.
18426 (arg_plus_zero): New macro.
18427 (arg_minus_zero): Likewise.
18428 (arg_plus_infty): Likewise.
18429 (arg_minus_infty): Likewise.
18430 (arg_qnan_value_pl): Likewise.
18431 (arg_qnan_value): Likewise.
18432 (arg_snan_value_pl): Likewise.
18433 (arg_snan_value): Likewise.
18434 (arg_max_value): Likewise.
18435 (arg_min_value): Likewise.
18436 (arg_min_subnorm_value): Likewise.
18437 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18438 (RUN_TEST_LOOP_aa_f): New macro.
18439 (TEST_SUFF): New macro.
18440 (TEST_SUFF_STR): Likewise.
18441 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18442 (TEST_COND_any_ibm128): New macro.
18443 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18444 this_func. Update call to init_max_error.
18445 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18446 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18447 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18448 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18449 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18450 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18451 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18452 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18453 * math/test-math-vector.h (TEST_NARROW): Likewise.
18454 * math/test-arg-double.h: New file.
18455 * math/test-arg-float128.h: Likewise.
18456 * math/test-arg-float32x.h: Likewise.
18457 * math/test-arg-float64.h: Likewise.
18458 * math/test-arg-float64x.h: Likewise.
18459 * math/test-arg-ldouble.h: Likewise.
18460 * math/test-math-narrow.h: Likewise.
18461 * math/test-narrow-macros.c: Likewise.
18462 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18463 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18464 test-narrow-macros-ldbl-64.
18465 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18466
18467 * math/bits/mathcalls-narrow.h: New file.
18468 * include/bits/mathcalls-narrow.h: Likewise.
18469 * math/math-narrow.h: Likewise.
18470 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18471 (__MATHCALL_NARROW_ARGS_2): Likewise.
18472 (__MATHCALL_NARROW_ARGS_3): Likewise.
18473 (__MATHCALL_NARROW_NORMAL): Likewise.
18474 (__MATHCALL_NARROW_REDIR): Likewise.
18475 (__MATHCALL_NARROW): Likewise.
18476 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18477 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18478 defined.
18479 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18480 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18481 (libm-narrow-fns): New variable.
18482 (libm-narrow-types-basic): Likewise.
18483 (libm-narrow-types-ldouble-yes): Likewise.
18484 (libm-narrow-types-float128-yes): Likewise.
18485 (libm-narrow-types-float128-alias-yes): Likewise.
18486 (libm-narrow-types): Likewise.
18487 (libm-routines): Add narrowing functions.
18488 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18489 (libc_feholdexcept_setroundf128): New macro.
18490 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18491 * sysdeps/ieee754/float128/float128_private.h: Include
18492 <math/math-narrow.h>.
18493 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18494 Undefine and redefine.
18495 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18496 (libm_alias_float_ldouble): Undefine and redefine.
18497 (libm_alias_double_ldouble): Likewise.
18498
18499 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18500
18501 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18502
18503 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18504 FPCR/FPSR.
18505
18506 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18507
18508 * manual/creature.texi: Convert references to gcc.info to gcc.
18509 * manual/stdio.texi: Likewise.
18510 * manual/string.texi: Likewise.
18511
18512 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18513
18514 [BZ #17979]
18515 * posix/bits/types.h (__int_least8_t): New typedef.
18516 (__uint_least8_t): Likewise.
18517 (__int_least16_t): Likewise.
18518 (__uint_least16_t): Likewise.
18519 (__int_least32_t): Likewise.
18520 (__uint_least32_t): Likewise.
18521 (__int_least64_t): Likewise.
18522 (__uint_least64_t): Likewise.
18523 * sysdeps/generic/stdint.h (int_least8_t): Define using
18524 __int_least8_t.
18525 (int_least16_t): Define using __int_least16_t.
18526 (int_least32_t): Define using __int_least32_t.
18527 (int_least64_t): Define using __int_least64_t.
18528 (uint_least8_t): Define using __uint_least8_t.
18529 (uint_least16_t): Define using __uint_least16_t.
18530 (uint_least32_t): Define using __uint_least32_t.
18531 (uint_least64_t): Define using __uint_least64_t.
18532 * wcsmbs/uchar.h: Include <bits/types.h>.
18533 (char16_t): Define using __uint_least16_t conditional only on
18534 [!__USE_ISOCXX11].
18535 (char32_t): Define using __uint_least32_t conditional only on
18536 [!__USE_ISOCXX11].
18537 * wcsmbs/test-char-types.c: New file.
18538 * wcsmbs/Makefile (tests): Add test-char-types.
18539
18540 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18541 version to 4.0.1.
18542
18543 2018-02-07 Zack Weinberg <zackw@panix.com>
18544
18545 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18546 Delete all contents except for definitions of _G_HAVE_MMAP and
18547 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18548 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18549 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18550 change as above.
18551
18552 * libio/libio.h: Don't include bits/_G_config.h here.
18553 Include stddef.h with __need_wchar_t defined. Include
18554 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18555 Define _IO_iconv_t here, directly.
18556 Don't define _IO_HAVE_ST_BLKSIZE.
18557 * libio/libioP.h: Include _G_config.h here. Move include of
18558 shlib-compat.h up with rest of includes. Simplify conditionals
18559 controlling definition of _IO_JUMPS_OFFSET.
18560
18561 * csu/init.c: Remove always-true #if around entire file.
18562 Don't include stdio.h. Set _IO_stdin_used to hardwired
18563 constant 0x20001, and update commentary.
18564 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18565 Replace all uses of _G_va_list with __gnuc_va_list.
18566 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18567 instead of #if _IO_HAVE_ST_BLKSIZE.
18568 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18569 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18570 not #ifdef.
18571
18572 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18573 multiple-include guard to match.
18574 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18575 into this file.
18576 Remove preprocessor conditionals that are always true and/or
18577 redundant to other preprocessor conditionals in the same nest.
18578 Include shlib-compat.h unconditionally.
18579 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18580 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18581 defined after including stdio.h.
18582 Use __BEGIN_DECLS/__END_DECLS.
18583
18584 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18585 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18586 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18587
18588 2018-02-07 Zack Weinberg <zackw@panix.com>
18589
18590 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18591 New single-type headers split from _G_config.h.
18592 * libio/bits/types/cookie_io_functions_t.h
18593 * libio/bits/types/struct_FILE.h
18594 New single-type headers split from libio.h.
18595
18596 * libio/Makefile: Install the above new headers. Don't install
18597 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18598 bits/libio-ldbl.h.
18599 * libio/_G_config.h, libio/libio.h: Delete file.
18600
18601 * libio/bits/libio.h: Remove improper-inclusion guard.
18602 Include stdio.h and don't repeat anything that it does.
18603 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18604 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18605 __io_read_fn as cookie_read_function_t,
18606 __io_write_fn as cookie_write_function_t,
18607 __io_seek_fn as cookie_seek_function_t,
18608 __io_close_fn as cookie_close_function_t,
18609 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18610 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18611 here, in the "compatibility defines" section. Remove an #if 0
18612 block. Use the "body" macros from bits/types/struct_FILE.h to
18613 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18614 and _IO_ferror_unlocked.
18615 Move prototypes of __uflow and __overflow...
18616
18617 * libio/stdio.h: ...here. Don't include bits/libio.h.
18618 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18619 directly from stdarg.h. Include bits/types/__fpos_t.h,
18620 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18621 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18622 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18623 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18624 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18625 __ssize_t, not _IO_ssize_t. Unconditionally define
18626 BUFSIZ as 8192 and EOF as (-1).
18627
18628 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18629 macros from bits/types/struct_FILE.h instead of _IO_* macros
18630 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18631 instead of _IO_ssize_t.
18632 * libio/bits/stdio2.h: Similarly.
18633
18634 * libio/iolibio.h: Add multiple-include guard.
18635 Include bits/libio.h after stdio.h.
18636 * libio/libioP.h: Add multiple-include guard.
18637 Include stdio.h and bits/libio.h before iolibio.h.
18638
18639 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18640 * include/bits/types/cookie_io_functions_t.h
18641 * include/bits/types/struct_FILE.h: New wrappers.
18642
18643 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18644 Get definitions of _G_fpos_t and _G_fpos64_t from
18645 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18646 respectively. Remove improper-inclusion guards.
18647
18648 * conform/data/stdio.h-data: Update expectations of va_list.
18649 * scripts/check-installed-headers.sh: Remove special case for
18650 libio.h and _G_config.h.
18651
18652 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18653
18654 [BZ #15105]
18655 [BZ #19463]
18656 * include/sys/sysmacros.h [!_ISOMAC]
18657 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18658 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18659 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18660 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18661 libc_hidden_proto.
18662 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18663 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18664 Likewise.
18665 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18666 Undefine and redefine to add use __gnu_dev_ prefix.
18667 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18668 Likewise.
18669 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18670 and define as hidden inline function.
18671 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18672 Likewise.
18673 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18674 Likewise.
18675 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18676 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18677 (gnu_dev_minor): Likewise.
18678 (gnu_dev_makedev): Likewise.
18679 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18680 makedev.
18681 * posix/wordexp.c (exec_comm_child): Likewise.
18682 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18683 instead of minor and __gnu_dev_major instead of major.
18684 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18685 __gnu_dev_major instead of major.
18686 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18687 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18688 instead of gnu_dev_minor.
18689 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18690 (SLAVE_P): Likewise.
18691 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18692 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18693 instead of major.
18694
18695 [BZ #21313]
18696 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18697 in another place.
18698 * locale/weightwc.h (findidx): Likewise.
18699
18700 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18701
18702 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18703 (slowlog_inexact): Likewise
18704 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18705 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18706
18707 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18708
18709 [BZ #22797]
18710 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18711 missing second underscore to parameter name.
18712
18713 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18714
18715 [BZ #14508]
18716 [BZ #15512]
18717 [BZ #17082]
18718 [BZ #20530]
18719 * bits/byteswap.h: Update file comment. Do not include
18720 <bits/byteswap-16.h>.
18721 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18722 constant.
18723 (__bswap_16): Define as inline function.
18724 (__bswap_constant_32): Reformat definition.
18725 (__bswap_32): Always define as inline function, not macro, using
18726 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18727 otherwise __bswap_constant_32.
18728 (__bswap_constant_64): Reformat definition. Do not use
18729 __extension__ here.
18730 (__bswap_64): Always define as inline function, not macro. Use
18731 __extension__ on function definition. Use __builtin_bswap64 if
18732 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18733 * string/test-endian-file-scope.c: New file.
18734 * string/test-endian-sign-conversion.c: Likewise.
18735 * string/Makefile (headers): Remove bits/byteswap-16.h.
18736 (tests): Add test-endian-file-scope and
18737 test-endian-sign-conversion.
18738 (CFLAGS-test-endian-sign-conversion.c): New variable.
18739 * bits/byteswap-16.h: Remove file.
18740 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18741 * sysdeps/ia64/bits/byteswap.h: Likewise.
18742 * sysdeps/m68k/bits/byteswap.h: Likewise.
18743 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18744 * sysdeps/s390/bits/byteswap.h: Likewise.
18745 * sysdeps/tile/bits/byteswap.h: Likewise.
18746 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18747 * sysdeps/x86/bits/byteswap.h: Likewise.
18748
18749 [BZ #17721]
18750 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18751 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18752 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18753 199901L] (__restrict): Define to restrict.
18754
18755 [BZ #19667]
18756 * string/testcopy.c: Include <support/support.h>. Do not include
18757 <malloc.h>. Use <support/test-driver.c>.
18758 (main): Rename to do_test. Make static. Use xmalloc instead of
18759 malloc.
18760
18761 [BZ #13575]
18762 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18763 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18764 (SSIZE_MAX): Define to INT_MAX.
18765 * posix/test-ssize-max.c: New file.
18766 * posix/Makefile (tests): Add test-ssize-max.
18767
18768 [BZ #19668]
18769 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18770 <support/support.h>. Do not include <malloc.h>.
18771 (query_auxv): Use xmalloc instead of malloc.
18772
18773 [BZ #14553]
18774 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18775 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18776 instead of loff_t.
18777
18778 2018-02-06 Florian Weimer <fweimer@redhat.com>
18779
18780 [BZ #18023]
18781 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18782 Use scratch_buffer instead of extend_alloca.
18783
18784 2018-02-06 Zack Weinberg <zackw@panix.com>
18785
18786 * libio/stdio.h: Don't define getc or putc as macros.
18787 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18788 not _IO_getc and _IO_putc.
18789
18790 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18791 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18792
18793 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18794
18795 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18796 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18797
18798 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18799
18800 [BZ #14890]
18801 * elf/elf.h (NT_PRFPREG): New macro.
18802 (NT_S390_VXRS_LOW): Likewise.
18803 (NT_S390_VXRS_HIGH): Likewise.
18804 (NT_S390_GS_CB): Likewise.
18805 (NT_S390_GS_BC): Likewise.
18806 (NT_S390_RI_CB): Likewise.
18807
18808 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18809 (MAP_SYNC): New macro.
18810 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18811 Likewise.
18812 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18813 (MAP_SYNC): Likewise.
18814 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18815 (MAP_SYNC): Likewise.
18816 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18817 (MAP_SYNC): Likewise.
18818 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18819 (MAP_SYNC): Likewise.
18820 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18821 (MAP_SYNC): Likewise.
18822 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18823 (MAP_SYNC): Likewise.
18824 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18825 Likewise.
18826 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18827 Likewise.
18828
18829 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18830 (MAP_SHARED_VALIDATE): New macro.
18831 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18832 (MAP_SHARED_VALIDATE): Likewise.
18833
18834 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18835
18836 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18837 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18838 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18839
18840 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18841
18842 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18843 (DT_NUM): Updated to 35.
18844
18845 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18846
18847 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18848 __builtin_expect with __glibc_likely and __glibc_unlikely.
18849 (elf_machine_rela): Likewise.
18850 (elf_machine_lazy_rel): Likewise.
18851
18852 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18853
18854 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18855 __builtin_expect with __glibc_likely and __glibc_unlikely.
18856 (elf_machine_lazy_rel): Likewise.
18857
18858 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18859
18860 [BZ #22638]
18861 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18862 SHARED.
18863 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18864
18865 2018-02-05 Andreas Schwab <schwab@suse.de>
18866
18867 [BZ #22761]
18868 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18869 string.
18870
18871 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18872
18873 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18874 not check against PTHREAD_STACK_MIN.
18875
18876 2018-02-02 Sean McKean <smckean83@gmail.com>
18877
18878 [BZ #22735]
18879 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18880
18881 2018-02-02 Florian Weimer <fweimer@redhat.com>
18882
18883 [BZ #22753]
18884 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18885 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18886 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18887 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18888 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18889 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18890 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18891 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18892 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18893 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18894 * misc/tst-preadvwritev2.c (do_test): Call it.
18895 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18896
18897 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18898
18899 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18900
18901 * benchtests/bench-memcmp.c: Print json instead of plain text.
18902
18903 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18904 every test run.
18905
18906 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18907
18908 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18909 version to 4.15.
18910 (s390_sthyi): New syscall.
18911
18912 * sysdeps/generic/ldbl-classify-compat.h: New file.
18913 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18914 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18915 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18916 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18917 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18918 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18919 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18920 <ldbl-classify-compat.h>.
18921 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18922 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18923 <ldbl-classify-compat.h>.
18924 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18925 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18926 <ldbl-classify-compat.h>.
18927 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18928 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18929 <ldbl-classify-compat.h>.
18930 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18931 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18932 <ldbl-classify-compat.h>.
18933 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18934 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18935 <ldbl-classify-compat.h>.
18936 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18937 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18938 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18939 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18940 * sysdeps/microblaze/math_private.h: Likewise.
18941 * sysdeps/nios2/math_private.h: Likewise.
18942 * sysdeps/sh/math_private.h: Likewise.
18943
18944 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18945 * sysdeps/m68k/coldfire/math_private.h: ... here.
18946 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18947 * sysdeps/tile/math_private.h: Likewise.
18948 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18949 Remove macro.
18950 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18951 Likewise.
18952
18953 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18954 Remove macro.
18955 (libc_fetestexcept): Likewise.
18956 (libc_feupdateenv_test): Likewise.
18957 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18958 (libc_fetestexcept): Likewise.
18959 (libc_feupdateenv_test): Likewise.
18960 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18961 (libc_fetestexcept): Likewise.
18962 (libc_feupdateenv_test): Likewise.
18963 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18964 (libc_fetestexcept): Likewise.
18965 (libc_feupdateenv_test): Likewise.
18966
18967 * sysdeps/generic/math_private.h
18968 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18969 New inline function.
18970 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18971 Likewise.
18972
18973 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18974 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18975 * sysdeps/generic/math_private.h
18976 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18977 inline function.
18978 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18979 Likewise.
18980 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18981 Likewise.
18982 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18983 Likewise.
18984 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18985 Likewise.
18986 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18987 Likewise.
18988 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18989 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18990 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18991 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18992 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18993 (__fegetenv): Likewise.
18994 (fesetenv): Likewise.
18995 (__fesetenv): Likewise.
18996 (feupdateenv): Likewise.
18997 (__feupdateenv): Likewise.
18998 (fegetround): Likewise.
18999 (__fegetround): Likewise.
19000 (fesetround): Likewise.
19001 (__fesetround): Likewise.
19002
19003 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
19004 (feraiseexcept): New macro.
19005 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
19006 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
19007 Remove macro.
19008 (__feraiseexcept): Likewise.
19009 (feclearexcept): Likewise.
19010 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
19011 (__feraiseexcept): Likewise.
19012 (feclearexcept): Likewise.
19013 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
19014 (__feraiseexcept): Likewise.
19015 (feclearexcept): Likewise.
19016 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
19017 (__feraiseexcept): Likewise.
19018 (feclearexcept): Likewise.
19019 (fetestexcept): Likewise.
19020
19021 * sysdeps/m68k/coldfire/math-tests.h: New file.
19022
19023 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
19024 * sysdeps/m68k/bits/fenv.h: ... here.
19025 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
19026 not define.
19027 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
19028 Likewise.
19029 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
19030 Likewise.
19031 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
19032 Likewise.
19033 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
19034 Likewise.
19035 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
19036 Define to 0.
19037 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
19038 (__FE_UNDEFINED): New enum constant.
19039 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
19040 Do not define.
19041 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
19042 Likewise.
19043 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
19044 Likewise.
19045 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
19046 to match generic bits/fenv.h.
19047 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
19048 Do not define.
19049
19050 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
19051 packed on bits.
19052 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
19053 * soft-fp/half.h (union _FP_UNION_H): Likewise.
19054 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
19055 * soft-fp/single.h (union _FP_UNION_S): Likewise.
19056
19057 2018-02-01 Carlos O'Donell <carlos@redhat.com>
19058 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
19059 Joseph Myers <joseph@codesourcery.com>
19060
19061 [BZ #21314]
19062 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
19063 (__log1p): Disable -Wmaybe-uninitialized for -Os around
19064 computation using c.
19065 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
19066 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
19067 computation using c.
19068
19069 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19070
19071 * version.h (RELEASE): Set to "development".
19072 (VERSION): Set to "2.27.9000".
19073 * NEWS (2.28): New section.
19074
19075 * version.h (RELEASE): Set to "stable".
19076 (VERSION): Set to "2.27".
19077 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
19078
19079 * NEWS: Add the list of bugs fixed in 2.27.
19080
19081 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19082
19083 * stdlib/test-atexit-race-common.c (do_test): Check stack size
19084 against PTHREAD_STACK_MIN.
19085
19086 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
19087
19088 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
19089 New entries.
19090 (Rafal Luzynski, Andreas Schwab): Update.
19091
19092 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
19093
19094 [BZ #10871]
19095 * NEWS: List the languages which actually use the alternative
19096 months feature in this release. Also explain that "alt_mon" and
19097 "ab_alt_mon" are optional.
19098
19099 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
19100
19101 [BZ #22765]
19102 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
19103
19104 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
19105
19106 * manual/install.texi (Tools for Compilation): Update the newest
19107 versions of gcc, binutils, texinfo, gawk, bison, and sed.
19108 * INSTALL: Regenerated.
19109
19110 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
19111
19112 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
19113 instead of __builtin_expect.
19114
19115 2018-01-30 Florian Weimer <fweimer@redhat.com>
19116
19117 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
19118 data.
19119 * nss/tst-nss-getpwent.c (do_test): Likewise.
19120
19121 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
19122
19123 [BZ #10871]
19124 * localedata/locales/hr_HR (mon): Rename to...
19125 (alt_mon): This.
19126 (mon): Import from CLDR (genitive case).
19127 (d_t_fmt): Update the comment.
19128
19129 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19130
19131 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19132 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19133 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19134
19135 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19136
19137 * mach/Versions: Fix version when __mach_host_self_ was added.
19138 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19139 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19140 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19141 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19142 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19143 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19144 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19145 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19146 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19147 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19148 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19149 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19150 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19151 || to respect codestyle.
19152 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19153 (do_test_bz20181): Rename accordingly.
19154 * malloc/malloc.c: Include <assert.h>.
19155 (assert): Do not define.
19156 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19157 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19158 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19159 * sysdeps/mach/hurd/hp-timing.h: New file.
19160 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19161
19162 2018-01-29 Darius Rad <darius@bluespec.com>
19163
19164 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19165
19166 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19167
19168 * sysdeps/init_array/crti.S (.section .init_array): Add
19169 PREINIT_FUNCTION when defined.
19170 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19171 * config.h.in: Regenerate.
19172 * manual/platform.texi: Add RISC-V documenation for
19173 __riscv_flush_icache.
19174 * sysdeps/riscv/__longjmp.S: New file.
19175 * sysdeps/riscv/backtrace.c: Likewise.
19176 * sysdeps/riscv/bits/endian.h: Likewise.
19177 * sysdeps/riscv/bits/setjmp.h: Likewise.
19178 * sysdeps/riscv/bits/wordsize.h: Likewise.
19179 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19180 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19181 * sysdeps/riscv/dl-trampoline.S: Likewise.
19182 * sysdeps/riscv/gccframe.h: Likewise.
19183 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19184 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19185 * sysdeps/riscv/machine-gmon.h: Likewise.
19186 * sysdeps/riscv/memusage.h: Likewise.
19187 * sysdeps/riscv/setjmp.S: Likewise.
19188 * sysdeps/riscv/sys/asm.h: Likewise.
19189 * sysdeps/riscv/tls-macros.h: Likewise.
19190 * sysdeps/riscv/dl-tls.h: New file.
19191 * sysdeps/riscv/libc-tls.c: Likewise.
19192 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19193 * sysdeps/riscv/nptl/tls.h: Likewise.
19194 * sysdeps/riscv/stackinfo.h: Likewise.
19195 * sysdeps/riscv/bits/fenv.h: New file.
19196 * sysdeps/riscv/e_sqrtl.c: Likewise.
19197 * sysdeps/riscv/fpu_control.h: Likewise.
19198 * sysdeps/riscv/math-tests.h: Likewise.
19199 * sysdeps/riscv/nofpu/Implies: Likewise.
19200 * sysdeps/riscv/sfp-machine.h: Likewise.
19201 * sysdeps/riscv/tininess.h: Likewise.
19202 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19203 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19204 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19205 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19206 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19207 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19208 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19209 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19210 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19211 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19212 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19213 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19214 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19215 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19216 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19217 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19218 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19219 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19220 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19221 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19222 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19223 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19224 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19225 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19226 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19227 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19228 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19229 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19230 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19231 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19232 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19233 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19234 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19235 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19236 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19237 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19238 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19239 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19240 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19241 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19242 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19243 * sysdeps/riscv/rvf/math_private.h: Likewise.
19244 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19245 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19246 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19247 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19248 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19249 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19250 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19251 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19252 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19253 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19254 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19255 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19256 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19257 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19258 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19259 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19260 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19261 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19262 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19263 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19264 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19265 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19266 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19267 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19268 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19269 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19270 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19271 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19272 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19273 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19274 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19275 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19276 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19277 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19278 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19279 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19280 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19281 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19282 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19283 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19284 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19285 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19286 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19287 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19288 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19289 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19290 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19291 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19292 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19293 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19294 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19295 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19296 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19297 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19298 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19299 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19300 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19301 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19302 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19303 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19304 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19305 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19306 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19307 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19308 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19309 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19310 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19311 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19312 * sysdeps/riscv/Implies: New file.
19313 * sysdeps/riscv/Makefile: Likewise.
19314 * sysdeps/riscv/configure: Likewise.
19315 * sysdeps/riscv/configure.ac: Likewise.
19316 * sysdeps/riscv/nptl/Makefile: Likewise.
19317 * sysdeps/riscv/preconfigure: Likewise.
19318 * sysdeps/riscv/rv64/Implies-after: Likewise.
19319 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19320 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19321 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19322 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19323 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19324 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19325 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19326 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19327 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19328 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19329 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19330 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19331 (Config): Likewise.
19332
19333 2018-01-29 Florian Weimer <fweimer@redhat.com>
19334
19335 [BZ #22701]
19336 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19337 libnsl_hidden_proto.
19338 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19339 libnsl_hidden_proto.
19340 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19341 * nis/Makefile (libnsl-routines): Add nss-default only for
19342 build-obsolete-nsl.
19343 * nis/nis_defaults.c (__nis_default_ttl): Add
19344 libnsl_hidden_nolink_def.
19345 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19346 declaration.
19347 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19348 * nis/ypclnt.c (yp_maplist): Likewise.
19349
19350 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19351
19352 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19353 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19354
19355 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19356
19357 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19358 clean -dxfq for git updates when replacing sources.
19359
19360 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19361 --disable-libcilkrts unconditionally, not just for the final GCC
19362 build for Hurd.
19363
19364 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19365 version to 4.15.
19366
19367 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19368
19369 [BZ #10871]
19370 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19371 case).
19372
19373 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19374
19375 [BZ #10871]
19376 * localedata/locales/be_BY (mon): Rename to...
19377 (alt_mon): This, then synchronize with CLDR (nominative case).
19378 (abmon): Rename to...
19379 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19380 (mon): Import from CLDR (genitive case).
19381 (abmon): Likewise.
19382 * localedata/locales/be_BY@latin (mon): Rename to...
19383 (alt_mon): This.
19384 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19385
19386 * localedata/locales/be_BY@latin (lang_name): Reworded to
19387 "biełaruskaja mova".
19388
19389 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19390
19391 [BZ #10871]
19392 * localedata/locales/el_CY (mon): Renamed to...
19393 (alt_mon): This.
19394 (mon): Import from CLDR (genitive case).
19395 * localedata/locales/el_GR: Likewise.
19396
19397 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19398
19399 [BZ #10871]
19400 * localedata/locales/ru_RU (mon): Rename to...
19401 (alt_mon): This.
19402 (abmon): Rename to...
19403 (ab_alt_mon): This.
19404 (mon): Import from CLDR (genitive case).
19405 (abmon): Copy from the old content except the 5th month which is
19406 now in the genitive case, even when abbreviated.
19407 * localedata/locales/ru_UA: Likewise.
19408 * time/tst-strptime.c (day_tests): Add an actual example of
19409 a difference between %b and %Ob in Russian.
19410
19411 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19412
19413 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19414 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19415 a `c' variable.
19416 * resolv/res-close.c: Include <stdlib.h>.
19417 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19418 <sys/wait.h>, <time.h>, <sys/uio.h>.
19419 (NOT_CANCEL_H): Add inclusion guard.
19420 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19421 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19422 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19423 return 0.
19424 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19425 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19426 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19427 instead of void *.
19428 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19429 timer_ptr2id to cast struct timer_node * to void *.
19430 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19431 --disable-libcilkrts to gcc configure.
19432 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19433 and make them the default for now.
19434 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19435 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19436 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19437 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19438 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19439 MACH_IPC_COMPAT.
19440 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19441 __task_terminate would ever return successfully.
19442 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19443 to global scope.
19444 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19445 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19446 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19447 critical section to make code simpler and avoid warning.
19448 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19449 critical section to make code simpler and avoid warning.
19450 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19451 const char * instead of char *.
19452 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19453 __hurd_file_name_split, hurd_file_name_split,
19454 __hurd_directory_name_split, hurd_directory_name_split,
19455 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19456 hurd_file_name_path_lookup): Make lookup function parameter take a
19457 const char *name instead of char *name.
19458 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19459 __hurd_directory_name_split): Likewise.
19460 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19461 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19462 * sysdeps/mach/hurd/check_native.c: New file.
19463 * sysdeps/mach/hurd/check_pf.c: New file.
19464 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19465 (__freeifaddrs): Define macro to freeifaddrs.
19466 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19467 * sysdeps/mach/libmachuser.abilist: New file.
19468 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19469 (do_test_bz20181): Rename accordingly.
19470 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19471 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19472 <sys/mount.h>.
19473 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19474 version only if __USE_EXTERN_INLINES is defined.
19475 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19476 __hurd_sockfail): Likewise.
19477 (_hurd_fd_get): Always declare functions, and provide inline versions
19478 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19479 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19480 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19481 _hurd_port_set): Always declare functions, and provide inline versions
19482 only if __USE_EXTERN_INLINES and _LIBC are defined and
19483 IS_IN(libc).
19484 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19485 _hurd_critical_section_unlock): Likewise.
19486 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19487 * __hurd_threadvar_location): Likewise.
19488 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19489 _hurd_userlink_clear): Likewise.
19490 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19491 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19492 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19493 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19494 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19495 __spin_lock_locked): Likewise.
19496 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19497 __spin_lock_locked): Likewise.
19498 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19499 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19500 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19501 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19502 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19503 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19504 _POSIX_NO_TRUNC): Define to 0.
19505 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19506 check size against PTHREAD_STACK_MIN.
19507 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19508 IS_IN(libpthread)]: Include <sigsetops.h>.
19509 * mach/Makefile (user-interfaces): Add mach/gnumach.
19510 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19511 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19512 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19513 instead of invalid -1.
19514 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19515 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19516 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19517 <net/ppp_defs.h>.
19518
19519 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19520
19521 * hurd/fcntl-internal.h: New file.
19522
19523 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19524
19525 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19526
19527 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19528
19529 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19530
19531 [BZ #22701]
19532 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19533 Build only shared objects.
19534
19535 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19536
19537 * README: Update for hppa.
19538
19539 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19540
19541 * sysdeps/sparc/fpu/libm-test-ulps: Update
19542 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19543
19544 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19545
19546 Revert:
19547
19548 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19549
19550 [BZ #22563]
19551 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19552 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19553 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19554 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19555 to feature_1.
19556
19557 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19558
19559 [BZ #22563]
19560 * bits/types/__cancel_jmp_buf_tag.h: New file.
19561 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19562 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19563 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19564 * nptl/Makefile (headers): Add
19565 bits/types/__cancel_jmp_buf_tag.h.
19566 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19567 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19568 * sysdeps/nptl/pthread.h: Include
19569 <bits/types/__cancel_jmp_buf_tag.h>.
19570 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19571 __cancel_jmp_buf.
19572 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19573
19574 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19575
19576 [BZ #10871]
19577 * localedata/locales/uk_UA (mon): Renamed to...
19578 (alt_mon): This.
19579 (alt_digits): "0" removed and then renamed to...
19580 (mon): This.
19581 (date_fmt): Definition changed not to use the alternative
19582 digits hack.
19583
19584 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19585
19586 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19587 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19588 * elf/elf.h (EF_RISCV_RVC): New define.
19589 (EF_RISCV_FLOAT_ABI): Likewise.
19590 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19591 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19592 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19593 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19594 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19595 define.
19596 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19597
19598 2018-01-25 Andreas Schwab <schwab@suse.de>
19599
19600 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19601 single quotes.
19602 * sysdeps/gnu/configure: Regenerate.
19603 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19604 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19606 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19607 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19608 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19609 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19610 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19611
19612 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19613
19614 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19615 URL, and run autoconf, make it the default for now.
19616
19617 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19618
19619 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19620 soft-float ColdFire configuration.
19621
19622 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19623 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19624 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19625
19626 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19627 MicroBlaze file.
19628
19629 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19630 ....
19631 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19632 ... here.
19633 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19634 New file.
19635
19636 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19637 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19638 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19639 file.
19640
19641 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19642
19643 [BZ #22742]
19644 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19645 Rename to __reserved and add comment.
19646 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19647 Rename to __reserved.
19648
19649 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19650
19651 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19652 i686-gnu configurations.
19653 (Context.run_builds): Include mig, gnumach and hurd in components
19654 considered.
19655 (Context.checkout): Add mig, gnumach and hurd to components.
19656 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19657 hurd.
19658 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19659 (Config.build): Install gnumach headers, build mig and install
19660 hurd headers for 'gnu' OS.
19661 (Config.install_gnumach_headers): New function.
19662 (Config.install_hurd_headers): Likewise.
19663 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19664 when building for 'gnu' OS.
19665
19666 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19667
19668 * manual/tunables.texi (Hardware Capability Tunables): Fix
19669 spelling.
19670
19671 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19672
19673 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19674 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19675 (ALTMON_11, ALTMON_12): Improve documentation.
19676 * manual/time.texi (strftime): Likewise.
19677
19678 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19679
19680 [BZ #10871]
19681 * localedata/locales/pl_PL: Alternative month names added,
19682 primary month names are genitive now.
19683 * time/tst-strptime.c (day_tests): Actually use a genitive case
19684 of a month name in Polish language.
19685
19686 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19687
19688 [BZ #10871]
19689 * manual/locale.texi: Document ALTMON_1..12 constants for
19690 nl_langinfo. Specify when to use ALTMON instead of MON.
19691 * manual/time.texi (strftime, strptime): Document GNU extension
19692 permitting O modifier with %B and %b. Specify when to use
19693 %OB instead of %B.
19694
19695 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19696
19697 [BZ #10871]
19698 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19699 names, define them as the same as abbreviated month names explicitly.
19700 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19701 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19702 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19703 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19704 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19705 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19706 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19707 _NL_WABALTMON_12): New enum constants.
19708 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19709 wab_alt_mon, and ab_alt_mon_defined members.
19710 (time_output): Output ab_alt_mon and wab_alt_mon members.
19711 (time_read): Read them, initialize them as copies of abmon and wabmon
19712 respectively if they are missing, initialize ab_alt_mon_defined.
19713 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19714 * locale/programs/locfile-kw.h: Regenerate.
19715 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19716 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19717 and ru_RU.UTF-8.
19718 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19719 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19720 (__strftime_internal): Handle %Ob and %Oh formats.
19721 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19722 (__strptime_internal): Handle %Ob and %Oh formats.
19723 * time/tst-strptime.c (day_tests): Add more tests to parse different
19724 forms of month names including the new %Ob format specifier.
19725
19726 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19727
19728 [BZ #10871]
19729 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19730 define them as the same as primary full month names explicitly.
19731 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19732 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19733 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19734 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19735 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19736 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19737 _NL_WALTMON_12): New enum constants.
19738 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19739 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19740 macros.
19741 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19742 walt_mon, and alt_mon_defined members.
19743 (time_output): Output alt_mon and walt_mon members.
19744 (time_read): Read them, initialize them as copies of mon and wmon
19745 respectively if they are missing, initialize alt_mon_defined.
19746 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19747 * locale/programs/locfile-kw.h: Regenerate.
19748 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19749 * localedata/tst-langinfo.c (map): Add tests for the new constants
19750 ALTMON_1 .. ALTMON_12.
19751 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19752 and pl_PL.UTF-8.
19753 * time/strftime_l.c (f_altmonth): New macro.
19754 (__strftime_internal): Handle %OB format.
19755 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19756 (__strptime_internal): Handle %OB format.
19757 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19758 of month names including the new %OB format specifier.
19759
19760 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19761
19762 [BZ #22685]
19763 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19764 from ABORT_TRANSACTION.
19765 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19766 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19767 ABORT_TRANSACTION_IMPL): Likewise.
19768 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19769 Linux code, but remove the code that aborts transactions.
19770
19771 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19772
19773 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19774
19775 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19776
19777 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19778 in date: "2004-14-09" should be "2004-09-14".
19779 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19780 "2003-15-09" should be "2003-09-15".
19781
19782 2018-01-18 Arjun Shankar <arjun@redhat.com>
19783
19784 [BZ #22343]
19785 [BZ #22774]
19786 CVE-2018-6485
19787 CVE-2018-6551
19788 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19789 after padding.
19790 (_int_memalign): check for integer overflow before calling
19791 _int_malloc.
19792 * malloc/tst-malloc-too-large.c: New test.
19793 * malloc/Makefile: Add tst-malloc-too-large.
19794
19795 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19796
19797 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19798 in date: "2017-24-07" should be "2017-07-24".
19799 * localedata/locales/mai_IN: Likewise.
19800 * localedata/locales/mai_NP: Likewise.
19801
19802 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19803
19804 * po/ru.po: Update translations.
19805
19806 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19807
19808 [BZ #22719]
19809 * sysdeps/hppa/backtrace.c: New file.
19810
19811 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19812
19813 [BZ #22715]
19814 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19815 align La_x86_64_retval to VEC_SIZE.
19816
19817 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19818
19819 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19820 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19821
19822 2018-01-16 Florian Weimer <fweimer@redhat.com>
19823
19824 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19825 Move tst-thread-exit-clobber ...
19826 [$(CXX)] (tests-unsupported): ... to here.
19827
19828 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19829
19830 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19831 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19832 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19833 (_dl_aarch64_cap_flags): Update.
19834 (_DL_HWCAP_COUNT): Update.
19835
19836 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19837
19838 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19839 (_DL_HWCAP_LAST): Remove.
19840 (_DL_HWCAP_COUNT): Move to ...
19841 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19842 (_DL_HWCAP_COUNT): ... here.
19843
19844 2018-01-16 Florian Weimer <fweimer@redhat.com>
19845
19846 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19847 mode with GNU extensions.
19848
19849 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19850
19851 * elf/elf.h (NT_ARM_SVE): Define.
19852
19853 2018-01-15 Florian Weimer <fweimer@redhat.com>
19854
19855 [BZ #22636]
19856 * nptl/tst-minstack-throw.cc: New file.
19857 * nptl/Makefile (tests): Add tst-minstack-throw.
19858 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19859 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19860
19861 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19862
19863 * scripts/build-many-glibcs.py (Context.checkout): Default
19864 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19865 version to 1.1.0.
19866
19867 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19868
19869 [BZ #22707]
19870 * elf/elf.h (DF_1_STUB): Define.
19871 (DF_1_PIE): Define.
19872
19873 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19874
19875 [BZ #22697]
19876 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19877 Do not add 0.5 to integer or out-of-range arguments.
19878
19879 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19880
19881 * po/bg.po: Update translations.
19882 * po/cs.po: Likewise.
19883 * po/de.po: Likewise.
19884 * po/ko.po: Likewise.
19885 * po/pl.po: Likewise.
19886 * po/sv.po: Likewise.
19887 * po/uk.po: Likewise.
19888 * po/vi.po: Likewise.
19889
19890 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19891
19892 * aarch64/start.S (_start): Use __wrap_main.
19893 (__wrap_main): New local symbol.
19894
19895 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19896
19897 [BZ #22679]
19898 CVE-2018-1000001
19899 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19900 generic_getcwd if the path returned by getcwd syscall is not absolute.
19901 * io/tst-getcwd-abspath.c: New test.
19902 * io/Makefile (tests): Add tst-getcwd-abspath.
19903
19904 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19905
19906 * malloc/malloc.c (malloc_consolidate): Add size check.
19907
19908 2018-01-12 Florian Weimer <fweimer@redhat.com>
19909
19910 * support/write_message.c (write_message): Preserve errno.
19911 * support/check.c (print_failure): Likewise.
19912 * support/support_test_verify_impl.c (support_test_verify_impl):
19913 Likewise.
19914 * support/support_test_compare_failure.c
19915 (support_test_compare_failure): Likewise.
19916
19917 2018-01-12 Florian Weimer <fweimer@redhat.com>
19918
19919 [BZ #22701]
19920 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19921 Prevent installation of libnsl.so.
19922 (libnsl-inhibit-o): Do not build (or install) static libraries.
19923
19924 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19925
19926 [BZ #22657]
19927 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19928 before the day number which may produce a double space.
19929 (date_fmt): Likewise.
19930
19931 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19932
19933 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19934 instead of fegetenv.
19935
19936 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19937
19938 [BZ #22702]
19939 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19940 comment to say exceptions are discarded.
19941 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19942 __fegetenv.
19943 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19944 be enabled.
19945
19946 2018-01-11 Florian Weimer <fweimer@redhat.com>
19947
19948 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19949 and error message.
19950
19951 2018-01-11 Florian Weimer <fweimer@redhat.com>
19952
19953 [BZ #22636]
19954 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19955 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19956
19957 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19958
19959 [BZ #22693]
19960 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19961 negative arguments in test for NaN or infinity argument.
19962
19963 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19964
19965 * po/libc.pot: Regenerate.
19966
19967 2018-01-10 Florian Weimer <fweimer@redhat.com>
19968
19969 [BZ #22636]
19970 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19971 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19972
19973 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19974
19975 * hurd/hurd/fd.h: Include <fcntl.h>
19976 (__hurd_at_flags): New function.
19977 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19978 with call to __hurd_at_flags.
19979 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19980 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19981 __faccessat
19982 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19983 (__access_noerrno): Use __faccessat_common instead of access_common.
19984 (__access): Likewise.
19985 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19986 with a call to __faccessat.
19987 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19988 (__faccessat_common): ... this. Move implementation of __access into it when
19989 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19990 reauthenticate_cwdir_at helper to implement AT mechanism.
19991 (__faccessat_noerrno): New function, just calls __faccessat_common.
19992 (__faccessat): New function, just calls __faccessat_common.
19993 (faccessat): Define weak alias.
19994
19995 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19996
19997 [BZ #22691]
19998 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19999 (CFLAGS-s_fmaxmagl.c): New variable.
20000 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
20001
20002 [BZ #22690]
20003 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
20004 long int for arguments of possibly overflowing addition or
20005 subtraction.
20006 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
20007
20008 2018-01-09 Joseph Myers <joseph@codesourcery.com>
20009
20010 [BZ #22688]
20011 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20012 (CFLAGS-e_remainderl.c): New variable.
20013
20014 [BZ #22687]
20015 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
20016 variable.
20017 (CFLAGS-s_cacoshl.c): Likewise.
20018 (CFLAGS-s_casinhl.c): Likewise.
20019 (CFLAGS-s_catanl.c): Likewise.
20020 (CFLAGS-s_catanhl.c): Likewise.
20021 (CFLAGS-s_cexpl.c): Likewise.
20022 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
20023 (CFLAGS-s_csinhl.c): Likewise.
20024 (CFLAGS-s_clogl.c): Likewise.
20025 (CFLAGS-s_clog10l.c): Likewise.
20026 (CFLAGS-s_csinl.c): Likewise.
20027 (CFLAGS-s_csqrtl.c): Likewise.
20028
20029 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
20030 2017-01-09 Svante Signell <svante.signell@gmail.com>
20031
20032 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
20033 (_hurd_exec_paths): New function.
20034 * hurd/hurd.h (_hurd_exec): Deprecate function.
20035 (_hurd_exec_paths): Declare function.
20036 * hurd/Versions: Export _hurd_exec_paths.
20037 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
20038 (__execve): Use __getcwd to build absolute path, and use
20039 _hurd_exec_paths instead of _hurd_exec.
20040 * sysdeps/mach/hurd/spawni.c: Likewise.
20041 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
20042 _hurd_exec.
20043
20044 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
20045
20046 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
20047 test instead of failing in case of ENOENT returned by posix_openpt.
20048
20049 2018-01-08 Florian Weimer <fweimer@redhat.com>
20050
20051 resolv: Support binary labels in test framework.
20052 * support/resolv_test.c (struct to_be_freed): Remove.
20053 (struct compressed_name): New.
20054 (allocate_compressed_name, ascii_tolower)
20055 (compare_compressed_name): New functions.
20056 (struct resolv_response_builder): Update type of
20057 compression_offsets for use with tsearch. Rempve to_be_freed.
20058 (response_push_pointer_to_free): Remove function.
20059 (resolv_response_add_name): Rewrite using struct compressed_name
20060 and tsearch instead of hsearch_r.
20061 (response_builder_allocate): Remove initialization of
20062 compression_offsets.
20063 (response_builder_free): Update for removal of to_be_freed. Use
20064 tdestroy instead of hdestroy_r.
20065 * resolv/Makefile (tests): Add tst-resolv-binary.
20066 (tst-resolv-binary): Link with -lresolv -lpthread.
20067
20068 2018-01-08 Florian Weimer <fweimer@redhat.com>
20069
20070 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
20071 time. Pass positive flag instead of negative flag to
20072 support_test_compare_failure.
20073 (support_test_compare_failure): Change negative parameter to
20074 positive.
20075 * support/support_test_compare_failure.c (report)
20076 (support_test_compare_failure): Likewise.
20077 * support/tst-test_compare.c (return_ssize_t, return_int): New.
20078 (do_test): Check int/size_t, ssize_t/size_t comparisons.
20079
20080 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
20081
20082 [BZ #22637]
20083 * nptl/descr.h (stackblock, stackblock_size): Update comments.
20084 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
20085 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
20086 stacksize.
20087 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
20088
20089 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
20090
20091 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20092 Add s_sincosf-sse2 and s_sincosf-fma.
20093 (CFLAGS-s_sincosf-fma.c): New.
20094 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
20095 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
20096 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
20097 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
20098 __sincosf is defined.
20099
20100 2018-01-08 Florian Weimer <fweimer@redhat.com>
20101
20102 * nptl/tst-thread-exit-clobber.cc: New file.
20103 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
20104 C++11 mode.
20105 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
20106 (tests): Add tst-thread-exit-clobber.
20107 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
20108
20109 2018-01-08 Florian Weimer <fweimer@redhat.com>
20110
20111 * support/check.h (support_static_assert): Define.
20112 (TEST_COMPARE): Use it.
20113
20114 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
20115
20116 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
20117 [!__RLIM_T_MATCHES_RLIM64_T]
20118 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
20119 __getrlimit64. Add libc_hidden_weak.
20120
20121 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
20122
20123 * elf/elf.h (R_RISCV_NONE): New define.
20124 (R_RISCV_32): Likewise.
20125 (R_RISCV_64): Likewise.
20126 (R_RISCV_RELATIVE): Likewise.
20127 (R_RISCV_COPY): Likewise.
20128 (R_RISCV_JUMP_SLOT): Likewise.
20129 (R_RISCV_TLS_DTPMOD32): Likewise.
20130 (R_RISCV_TLS_DTPMOD64): Likewise.
20131 (R_RISCV_TLS_DTPREL32): Likewise.
20132 (R_RISCV_TLS_DTPREL64): Likewise.
20133 (R_RISCV_TLS_TPREL32): Likewise.
20134 (R_RISCV_TLS_TPREL64): Likewise.
20135 * Makerules (make-link-multidir): Make directories before linking into
20136 them.
20137 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20138 define.
20139 (VDSO_HASH_LINUX_4_15): Likewise.
20140 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20141 in subdirectories of lib.
20142 * nptl/Makefile (/librt.so): Always depend on
20143 "$(shared-thread-library)".
20144
20145 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20146
20147 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20148 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20149 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20150 (___tls_get_addr).
20151 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20152 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20153 "-O2 -march=i686".
20154 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20155 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20156 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20157 * sysdeps/gnu/glob-lstat-compat.c: New file.
20158 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20159 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20160
20161 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20162
20163 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20164 Reserve 16 chars to reloc_addr before calling _itoa_word.
20165
20166 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20167
20168 [BZ #22678]
20169 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20170 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20171
20172 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20173 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20174
20175 * resource/tst-getrlimit.c: Add copyright header.
20176
20177 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20178 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20179
20180 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20181 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20182 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20183 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20184 instead.
20185 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20186 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20187 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20188 RLIM64_INFINITY): Fix values to match the kernel ones.
20189 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20190 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20191 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20192 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20193 getrlimit64@@GLIBC_2_27.
20194 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20195 and setrlimit64.
20196 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20197 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20198 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20199 setrlimit, getrlimit64 and setrlimit64.
20200
20201 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20202
20203 [BZ #22648]
20204 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20205 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20206
20207 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20208
20209 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20210 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20211 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20212
20213 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20214
20215 [BZ #15479]
20216 [BZ #22666]
20217 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20218 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20219
20220 [BZ #15479]
20221 [BZ #22665]
20222 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20223 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20224 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20225 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20226
20227 2018-01-04 Florian Weimer <fweimer@redhat.com>
20228
20229 [BZ #22667]
20230 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20231 Align the stack before calling exit.
20232 * stdlib/tst-makecontext-align.c: New file.
20233 * stdlib/Makefile (tests): Add tst-makecontext-align.
20234
20235 2018-01-04 Florian Weimer <fweimer@redhat.com>
20236
20237 Add support for calling dlvsym from libc.so.
20238 * include/dlfcn.h (__libc_dlvsym): Declare.
20239 * elf/Makefile (tests-static-internal): Add
20240 tst-libc_dlvsym-static.
20241 (tests-internal): Add tst-libc_dlvsym.
20242 (modules-names): Add tst-libc_dlvsym-dso.
20243 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20244 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20245 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20246 object tst-libc_dlvsym-dso.so needs to be built before running
20247 these tests.
20248 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20249 * elf/Versions: Export __libc_dlvsym.
20250 * elf/dl-libc.c (struct do_dlvsym_args): New.
20251 (do_dlvsym, __libc_dlvsym): New functions.
20252 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20253 (_dl_open_hook2): New variable.
20254 (__libc_register_dl_open_hook): Set it.
20255 * elf/tst-libc_dlvsym-dso.c: New file.
20256 * elf/tst-libc_dlvsym-static.c: Likewise.
20257 * elf/tst-libc_dlvsym.c: Likewise.
20258 * elf/tst-libc_dlvsym.h: Likewise.
20259
20260 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20261
20262 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20263 include <sys/mount.h>.
20264
20265 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20266
20267 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20268 Add __NO_MATH_ERRNO__ check.
20269
20270 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20271
20272 * sysdeps/mips/mips32/libm-test-ulps: Update.
20273 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20274
20275 2018-01-02 Florian Weimer <fweimer@redhat.com>
20276
20277 * misc/tst-pselect.c: Add copyright header.
20278
20279 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20280
20281 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20282 comment.
20283 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20284 comment.
20285 (settrlimit): Rename into setrlimit.
20286 (__sttrlimit): Rename into __setrlimit.
20287
20288 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20289 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20290 never defined in that case.
20291
20292 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20293
20294 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20295
20296 * sysdeps/arm/libm-test-ulps: Update.
20297
20298 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20299 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20300
20301 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20302
20303 * NEWS: Add cosf and sincosf to list of optimized functions.
20304
20305 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20306
20307 [BZ #22660]
20308 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20309 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20310 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20311 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20312
20313 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20314
20315 [BZ #22433]
20316 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20317
20318 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20319 making a copy of it.
20320
20321 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20322
20323 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20324 trailing whitespace removed.
20325 * scripts/config.guess: Update to version 2018-01-01.
20326 * scripts/config.sub: Update to version 2018-01-01.
20327 * scripts/move-if-change: Update from gnulib.
20328
20329 * NEWS: Update copyright dates.
20330 * catgets/gencat.c (print_version): Likewise.
20331 * csu/version.c (banner): Likewise.
20332 * debug/catchsegv.sh: Likewise.
20333 * debug/pcprofiledump.c (print_version): Likewise.
20334 * debug/xtrace.sh (do_version): Likewise.
20335 * elf/ldconfig.c (print_version): Likewise.
20336 * elf/ldd.bash.in: Likewise.
20337 * elf/pldd.c (print_version): Likewise.
20338 * elf/sotruss.sh: Likewise.
20339 * elf/sprof.c (print_version): Likewise.
20340 * iconv/iconv_prog.c (print_version): Likewise.
20341 * iconv/iconvconfig.c (print_version): Likewise.
20342 * locale/programs/locale.c (print_version): Likewise.
20343 * locale/programs/localedef.c (print_version): Likewise.
20344 * login/programs/pt_chown.c (print_version): Likewise.
20345 * malloc/memusage.sh (do_version): Likewise.
20346 * malloc/memusagestat.c (print_version): Likewise.
20347 * malloc/mtrace.pl: Likewise.
20348 * manual/libc.texinfo: Likewise.
20349 * nptl/version.c (banner): Likewise.
20350 * nscd/nscd.c (print_version): Likewise.
20351 * nss/getent.c (print_version): Likewise.
20352 * nss/makedb.c (print_version): Likewise.
20353 * posix/getconf.c (main): Likewise.
20354 * scripts/test-installation.pl: Likewise.
20355 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20356
20357 * All files with FSF copyright notices: Update copyright dates
20358 using scripts/update-copyrights.
20359 * locale/programs/charmap-kw.h: Regenerated.
20360 * locale/programs/locfile-kw.h: Likewise.
20361
20362 2017-12-31 Zack Weinberg <zackw@panix.com>
20363
20364 * libio/bits/libio-ldbl.h: Correct check for improper
20365 inclusion. Add own multiple include guard.
20366
20367 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20368 Dmitry V. Levin <ldv@altlinux.org>
20369
20370 [BZ #22625]
20371 CVE-2017-16997
20372 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20373 string token expansion. Check for NULL pointer or empty string possibly
20374 returned by expand_dynamic_string_token.
20375 (decompose_rpath): Check for empty path after dynamic string
20376 token expansion.
20377
20378 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20379
20380 [BZ #22433]
20381 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20382
20383 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20384 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20385 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20386 and PTRACE_SYSCALL.
20387 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20388 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20389 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20390 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20391 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20392 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20393
20394 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20395 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20396 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20397 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20398 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20399 bits/ptrace-shared.h.
20400 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20401 <bits/ptrace-shared.h>.
20402 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20403 __ptrace_peeksiginfo_flags, ptrace): Remove.
20404 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20405 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20406 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20407 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20408 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20409
20410 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20411
20412 [BZ #17804]
20413 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20414 end of the loop. Improve comments.
20415
20416 2017-12-29 Zack Weinberg <zackw@panix.com>
20417
20418 [BZ #22615]
20419 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20420 might be set on success.
20421
20422 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20423
20424 [BZ #22611]
20425 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20426 is unchanged on success.
20427
20428 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20429
20430 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20431 updated.
20432 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20433 expand_dynamic_string_token): Likewise.
20434 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20435 is_path argument.
20436
20437 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20438 contains ':'.
20439
20440 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20441 is set and name contains ':', and all code depending on these checks.
20442
20443 2017-12-24 Zack Weinberg <zackw@panix.com>
20444
20445 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20446 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20447 respectively.
20448 * libio/libio.h: Rename the original version of this file to
20449 libio/bits/libio.h. Error out if not included by stdio.h or the
20450 stub libio.h.
20451 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20452 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20453 if not included by bits/libio.h or the stub _G_config.h.
20454 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20455 sysdeps/unix/sysv/linux/bits. Error out if not included by
20456 bits/libio.h or the stub _G_config.h.
20457 * libio/stdio.h: Include bits/libio.h, not libio.h.
20458 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20459 well as libio.h and _G_config.h.
20460
20461 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20462 * libio/strfile.h, stdio-common/vfscanf.c
20463 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20464 Include stdio.h, not _G_config.h nor libio.h.
20465 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20466 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20467
20468 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20469
20470 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20471
20472 [BZ #22347]
20473 * stdlib/getrandom.c (getrandom): Fix comment.
20474 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20475
20476 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20477
20478 [BZ #21161]
20479 * manual/arith.texi (strtoul): Fix a typo.
20480
20481 [BZ #22596]
20482 * manual/arith.texi (finite): Fix the description of the return
20483 value.
20484
20485 2017-12-22 Eric Blake <ebb9@byu.net>
20486
20487 Avoid gcc warnings on cygwin
20488 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20489 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20490 Avoid unused variable.
20491
20492 2017-12-22 Florian Weimer <fweimer@redhat.com>
20493
20494 * io/Makefile (routines): Add copy_file_range.
20495 (tests): Add tst-copy_file_range.
20496 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20497 * io/Versions (GLIBC_2.27): Export copy_file_range.
20498 * io/copy_file_range-compat.c: New file.
20499 * io/copy_file_range.c: Likewise.
20500 * io/tst-copy_file_range-compat.c: Likewise.
20501 * io/tst-copy_file_range.c: Likewise.
20502 * manual/llio.texi (Copying File Data): New section.
20503 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20504 * support/Makefile (libsupport-routines): Add support-xfstat,
20505 xftruncate, xlseek.
20506 * support/support-xfstat.c: New file.
20507 * support/xftruncate.c: Likewise.
20508 * support/xlseek.c: Likewise.
20509 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20510 * sysdeps/unix/sysv/linux/**.abilist: Update.
20511 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20512
20513 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20514
20515 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20516 disable-multi-arch variant to aarch64-linux-gnu.
20517
20518 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20519
20520 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20521 trailing whitespace removed.
20522 * scripts/config.guess: Update to version 2017-12-17.
20523 * scripts/config.sub: Update to version 2017-11-23.
20524 * scripts/install-sh: Update to version 2017-09-23.17.
20525 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20526
20527 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20528
20529 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20530 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20531 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20532 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20533 * sysdeps/tile/crtn.S: Likewise.
20534 * sysdeps/tile/dl-start.S (_start): Likewise.
20535 * sysdeps/tile/dl-trampoline.S: Likewise.
20536 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20537 * sysdeps/tile/start.S (_start): Likewise.
20538 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20539 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20540 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20541 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20542 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20543 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20544 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20545
20546 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20547 comment.
20548 * sysdeps/tile/preconfigure: Remove tilegx folder.
20549 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20550 * sysdeps/tile/Implies: ... here.
20551 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20552 * sysdeps/tile/Makefile: ... here.
20553 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20554 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20555 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20556 * sysdeps/tile/bits/wordsize.h: ... here.
20557 * sysdeps/tile/tilegx/*: Move to ...
20558 * sysdeps/tile/*: ... here.
20559 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20560 * sysdeps/tile/tilegx32/Implies: ... here.
20561 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20562 * sysdeps/tile/tilegx64/Implies: ... here.
20563 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20564 to ...
20565 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20566 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20567 * sysdeps/unix/sysv/linux/tile/*: ... here.
20568 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20569 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20570 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20571 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20572
20573 * README: Remove tilepro-*-linux-gnu from supported architecture.
20574 * scripts/build-many-glibcs.py: Likewise.
20575 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20576 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20577 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20578 elf_machine_matches_host, elf_machine_dynamic,
20579 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20580 howto, elf_machine_rela): Likewise.
20581 * sysdeps/tile/dl-start.S (_start): Likewise.
20582 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20583 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20584 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20585 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20586 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20587 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20588 Likewise.
20589 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20590 * sysdeps/tile/preconfigure: Likewise.
20591 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20592 POINTER_CHK_GUARD): Likewise.
20593 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20594 * sysdeps/tile/start.S (_start): Likewise.
20595 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20596 Likewise.
20597 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20598 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20599 CMOVNEZ): Remove.
20600 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20601 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20602 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20603 Likewise.
20604 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20605 * sysdeps/tile/tilepro/Implies: Remove file.
20606 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20607 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20608 * sysdeps/tile/tilepro/memchr.c: Likewise.
20609 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20610 * sysdeps/tile/tilepro/memset.c: Likewise.
20611 * sysdeps/tile/tilepro/memusage.h: Likewise.
20612 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20613 * sysdeps/tile/tilepro/strchr.c: Likewise.
20614 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20615 * sysdeps/tile/tilepro/strlen.c: Likewise.
20616 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20617 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20618 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20619 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20620 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20621 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20622 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20623 Likewise.
20624 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20625 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20626 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20627 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20628 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20629 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20630 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20631 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20632 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20633 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20634 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20635 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20636 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20637 tilepro mention in comment.
20638
20639 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20640 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20641 * nptl/pthread_join_common.c: New file: common function used on
20642 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20643 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20644 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20645 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20646 (cleanup): Move definition to pthread_join_common.c.
20647 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20648 Remove superflous checks.
20649 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20650 Likewise.
20651
20652 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20653
20654 * sysdeps/aarch64/libm-test-ulps: Update.
20655
20656 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20657
20658 * sysdeps/aarch64/memset.S (MEMSET): Define.
20659
20660 2017-12-20 Florian Weimer <fweimer@redhat.com>
20661
20662 [BZ #22635]
20663 nptl: Provide full implementation of pthread_self in libc.so.
20664 * nptl/Makefile (routines): Add pthread_self.
20665 (libpthread-routines): Replace pthread_self with
20666 compat-pthread_self.
20667 * nptl/forward.c (pthread_self): Remove.
20668 * nptl/nptl-init.c (pthread_functions): Do not initialize
20669 ptr_pthread_self.
20670 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20671 * nptl/compat-pthread_self.c: New file.
20672 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20673 Remove ptr_pthread_self.
20674
20675 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20676
20677 * posix/regcomp.c: Fix spelling in comments.
20678 * posix/regex.h: Likewise.
20679 * posix/regex_internal.c: Likewise.
20680 * posix/regexec.c: Likewise.
20681
20682 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20683
20684 [BZ #22377]
20685 * math/Makefile [C++] (tests): Add test for iseqsig.
20686 * math/math.h [C++] (iseqsig): New implementation, which does
20687 not rely on __MATH_TG/__builtin_types_compatible_p.
20688 * math/test-math-iseqsig.cc: New file.
20689 * sysdeps/powerpc/powerpc64le/Makefile
20690 (CFLAGS-test-math-iseqsig.cc): New variable.
20691
20692 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20693
20694 * elf/dl-load.c (is_trusted_path): Remove.
20695 (fillin_rpath): Remove check_trusted argument and its use,
20696 all callers changed.
20697
20698 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20699
20700 [BZ #22630]
20701 * Makeconfig (link-pie-before-libc): Replace -pie with
20702 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20703 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20704 (tst-dlopen-aout-no-pie): New.
20705 (LDFLAGS-tst-prelink): Removed.
20706 (tst-prelink-no-pie): New.
20707 (LDFLAGS-tst-main1): Removed.
20708 (tst-main1-no-pie): New.
20709 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20710 (tst-gmon-no-pie): New.
20711
20712 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20713
20714 * manual/install.texi: Document that --enable-static-pie
20715 implies PIE.
20716 * INSTALL: Regenerated.
20717
20718 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20719
20720 [BZ #21309]
20721 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20722 unsigned.
20723
20724 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20725
20726 Revert:
20727
20728 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20729
20730 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20731
20732 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20733
20734 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20735 <errno.h>. Include "eexp.tbl".
20736 (half): New constant.
20737 (one): Likewise.
20738 (__ieee754_exp): Rewrite.
20739 (__slowexp): Remove prototype.
20740 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20741 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20742 * sysdeps/i386/fpu/slowexp.c: Likewise.
20743 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20744 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20745 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20746 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20747 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20748 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20749 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20750 comment.
20751 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20752 (CPPFLAGS-slowexp.c): Remove variable.
20753 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20754 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20755 (CFLAGS-slowexp-fma.c): Remove variable.
20756 (CFLAGS-slowexp-fma4.c): Likewise.
20757 (CFLAGS-slowexp-avx.c): Likewise.
20758 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20759 define as macro.
20760 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20761 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20762 * math/Makefile (type-double-routines): Remove slowexp.
20763 * manual/probes.texi (slowexp_p6): Remove.
20764 (slowexp_p32): Likewise.
20765
20766 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20767
20768 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20769 arithmetic.
20770
20771 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20772
20773 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20774
20775 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20776
20777 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20778
20779 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20780 <errno.h>. Include "eexp.tbl".
20781 (half): New constant.
20782 (one): Likewise.
20783 (__ieee754_exp): Rewrite.
20784 (__slowexp): Remove prototype.
20785 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20786 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20787 * sysdeps/i386/fpu/slowexp.c: Likewise.
20788 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20789 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20790 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20791 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20792 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20793 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20794 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20795 comment.
20796 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20797 (CPPFLAGS-slowexp.c): Remove variable.
20798 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20799 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20800 (CFLAGS-slowexp-fma.c): Remove variable.
20801 (CFLAGS-slowexp-fma4.c): Likewise.
20802 (CFLAGS-slowexp-avx.c): Likewise.
20803 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20804 define as macro.
20805 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20806 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20807 * math/Makefile (type-double-routines): Remove slowexp.
20808 * manual/probes.texi (slowexp_p6): Remove.
20809 (slowexp_p32): Likewise.
20810
20811 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20812 James Clarke <jrtc27@jrtc27.com>
20813
20814 [BZ #22603]
20815 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20816 addition.
20817
20818 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20819
20820 [BZ #22605]
20821 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20822 code.
20823
20824 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20825
20826 [BZ #22563]
20827 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20828 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20829 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20830 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20831 to feature_1.
20832
20833 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20834
20835 [BZ #22563]
20836 * bits/types/__cancel_jmp_buf_tag.h: New file.
20837 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20838 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20839 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20840 * nptl/Makefile (headers): Add
20841 bits/types/__cancel_jmp_buf_tag.h.
20842 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20843 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20844 * sysdeps/nptl/pthread.h: Include
20845 <bits/types/__cancel_jmp_buf_tag.h>.
20846 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20847 __cancel_jmp_buf.
20848 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20849
20850 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20851
20852 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20853 --enable-static-pie variants to x86_64, x32 and i686.
20854
20855 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20856
20857 [BZ #22631]
20858 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20859 argument for attrubutes. All callers changed.
20860 (__inline_mathop1): Likewise. All callers changed.
20861 (__inline_mathop): Likewise. All callers changed.
20862 [__USE_MISC] (scalbn): Use __inline_forward instead of
20863 __inline_forward_c.
20864 [__USE_ISOC99] (scalbln): Likewise.
20865 [__USE_ISOC99] (nearbyint): Likewise.
20866 [__USE_ISOC99] (lrint): Likewise.
20867 [__USE_MISC] (scalbnf): Likewise.
20868 [__USE_ISOC99] (scalblnf): Likewise.
20869 [__USE_ISOC99] (nearbyintf): Likewise.
20870 [__USE_ISOC99] (lrintf): Likewise.
20871 [__USE_MISC] (scalbnl): Likewise.
20872 [__USE_ISOC99] (scalblnl): Likewise.
20873 [__USE_ISOC99] (nearbyintl): Likewise.
20874 [__USE_ISOC99] (lrintl): Likewise.
20875 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20876 __inline_mathop and __m81_defun changed.
20877
20878 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20879 CPU or FPU for ARM hard-float configurations.
20880
20881 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20882
20883 * nptl/tst-attr3.c: Include <libc-diag.h>.
20884 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20885
20886 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20887
20888 * string/tester.c (test_strncat): Also disable -Warray-bounds
20889 warnings for two tests.
20890
20891 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20892
20893 [BZ #22614]
20894 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20895 $(cc-pie-default) == yes.
20896 * config.make.in (cc-pie-default): New.
20897 * configure.ac (libc_cv_pie_default): Renamed to ...
20898 (libc_cv_cc_pie_default): This.
20899 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20900 * configure: Regenerated.
20901
20902 2017-12-18 Florian Weimer <fweimer@redhat.com>
20903
20904 [BZ #20204]
20905 ld.so: Harden dl-libc/libdl hooks.
20906 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20907 (rtld_active): New function.
20908 * dlfcn/dladdr.c (__dladdr): Call it.
20909 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20910 * dlfcn/dlclose.c (__dlcose): Likewise.
20911 * dlfcn/dlerror.c (__dlerror): Likewise.
20912 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20913 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20914 * dlfcn/dlopen.c (__dlopen): Likewise.
20915 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20916 * dlfcn/dlsym.c (__dlsym): Likewise.
20917 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20918 * libio/vtables.c (_IO_vtable_check): Likewise.
20919 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20920 (__libc_dlclose): Likewise.
20921 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20922 assignment.
20923
20924 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20925
20926 [BZ #22446]
20927 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20928 buffers for readlink input and output.
20929
20930 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20931
20932 [BZ #22624]
20933 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20934 inhibit_stack_protector.
20935
20936 [BZ #22624]
20937 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20938 inhibit_stack_protector.
20939
20940 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20941
20942 [BZ #22627]
20943 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20944 code and invocation.
20945
20946 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20947
20948 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20949
20950 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20951
20952 [BZ #22505]
20953 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20954
20955 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20956
20957 * sysdeps/s390/fpu/libm-test-ulps: Update.
20958
20959 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20960
20961 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20962
20963 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20964
20965 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20966 constants to s_sincosf.h file.
20967 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20968 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20969 implementation.
20970 * sysdeps/ieee754/flt-32/s_sincosf.h:
20971 New file.
20972
20973 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20974
20975 [BZ #14681]
20976 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20977 before mtrace.
20978
20979 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20980
20981 [BZ #19574]
20982 * INSTALL: Regenerated.
20983 * Makeconfig (real-static-start-installed-name): New.
20984 (pic-default): Updated for --enable-static-pie.
20985 (pie-default): New for --enable-static-pie.
20986 (default-pie-ldflag): Likewise.
20987 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20988 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20989 Replace $(static-start-installed-name) with
20990 $(real-static-start-installed-name).
20991 (+prectorT): Updated for --enable-static-pie.
20992 (+postctorT): Likewise.
20993 (CFLAGS-.o): Add $(pie-default).
20994 (CFLAGS-.op): Likewise.
20995 * NEWS: Mention --enable-static-pie.
20996 * config.h.in (ENABLE_STATIC_PIE): New.
20997 * configure.ac (--enable-static-pie): New configure option.
20998 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20999 (have-static-pie): Likewise.
21000 Enable static PIE if linker supports --no-dynamic-linker.
21001 (ENABLE_STATIC_PIE): New AC_DEFINE.
21002 (enable-static-pie): New LIBC_CONFIG_VAR.
21003 * configure: Regenerated.
21004 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
21005 gr$(start-installed-name) for --enable-static-pie.
21006 (extra-objs): Likewise.
21007 (install-lib): Likewise.
21008 (extra-objs): Add static-reloc.o and static-reloc.os
21009 ($(objpfx)$(start-installed-name)): Also depend on
21010 $(objpfx)static-reloc.o.
21011 ($(objpfx)r$(start-installed-name)): New.
21012 ($(objpfx)g$(start-installed-name)): Also depend on
21013 $(objpfx)static-reloc.os.
21014 ($(objpfx)gr$(start-installed-name)): New.
21015 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
21016 in libc.a.
21017 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
21018 initimage.
21019 * csu/static-reloc.c: New file.
21020 * elf/Makefile (routines): Add dl-reloc-static-pie.
21021 (elide-routines.os): Likewise.
21022 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
21023 (tst-tls1-static-non-pie-no-pie): New.
21024 * elf/dl-reloc-static-pie.c: New file.
21025 * elf/dl-support.c (_dl_get_dl_main_map): New function.
21026 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
21027 STATIC_PIE_BOOTSTRAP.
21028 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
21029 * gmon/Makefile (tests): Add tst-gmon-static-pie.
21030 (tests-static): Likewise.
21031 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
21032 (tst-gmon-static-no-pie): New.
21033 (CFLAGS-tst-gmon-static-pie.c): Likewise.
21034 (CRT-tst-gmon-static-pie): Likewise.
21035 (tst-gmon-static-pie-ENV): Likewise.
21036 (tests-special): Likewise.
21037 ($(objpfx)tst-gmon-static-pie.out): Likewise.
21038 (clean-tst-gmon-static-pie-data): Likewise.
21039 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
21040 * gmon/tst-gmon-static-pie.c: New file.
21041 * manual/install.texi: Document --enable-static-pie.
21042 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
21043 (_dl_get_dl_main_map): Likewise.
21044 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
21045 * sysdeps/x86_64/configure.ac: Likewise.
21046 * sysdeps/i386/configure: Regenerated.
21047 * sysdeps/x86_64/configure: Likewise.
21048 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
21049 (ASFLAGS-.op): Likewise.
21050
21051 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21052
21053 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
21054 * posix/tst-mmap-offset.c (fname): Use /tmp.
21055 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
21056
21057 2017-12-15 Steve Ellcey <sellcey@cavium.com>
21058
21059 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
21060
21061 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
21062
21063 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
21064 errno.
21065
21066 2017-12-15 Joseph Myers <joseph@codesourcery.com>
21067
21068 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
21069 --with-float=hard for arm-linux-gnueabihf configurations.
21070
21071 [BZ #14121]
21072 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
21073 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
21074 ($(mo-installed)): Use $(objpfx)%.mo.
21075 (realclean): Remove rule.
21076
21077 * po/Makefile (linguas): Remove rule and dependencies.
21078 (linguas.mo): Likewise.
21079 (.PHONY): Do not depend on linguas and linguas.mo.
21080 (podir): Remove variable.
21081 (pofiles): Likewise.
21082 [$(pofiles)] (%.po): Remove rule.
21083
21084 * sysdeps/sparc/sparc32/Makefile
21085 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
21086 start-of-line whitespace in argument of echo.
21087 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
21088 with whitespace. Generate __wrap_.udiv alias.
21089 * sysdeps/sparc/sparc32/rem.S: Regenerated.
21090 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
21091 * sysdeps/sparc/sparc32/udiv.S: Likewise.
21092 * sysdeps/sparc/sparc32/urem.S: Likewise.
21093
21094 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21095
21096 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
21097 for aligned inputs.
21098
21099 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
21100
21101 * benchtests/bench-strcmp.c: Print output in JSON format.
21102
21103 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
21104
21105 2017-12-14 Florian Weimer <fweimer@redhat.com>
21106
21107 [BZ #22607]
21108 CVE-2017-1000409
21109 * elf/dl-load.c (_dl_init_paths): Compute number of components in
21110 the expanded path string.
21111
21112 2017-12-14 Florian Weimer <fweimer@redhat.com>
21113
21114 [BZ #22606]
21115 CVE-2017-1000408
21116 * elf/dl-load.c (system_dirs): Update comment.
21117 (nsystem_dirs_len): Use array_length.
21118 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
21119
21120 2017-12-14 Florian Weimer <fweimer@redhat.com>
21121
21122 Simplify compiling most of support/ outside of glibc.
21123 * support/check_addrinfo.c: Include <string.h>.
21124 * support/check_dns_packet.c: Likewise.
21125 * support/check_hostent.c: Likewise.
21126 * support/support_can_chroot.c: Include <support/xunistd.h>.
21127 * support/support_format_addrinfo.c: Include <stdlib.h>
21128 * support/support_format_dns_packet.c: Include <stdbool.h>.
21129 * support/support_format_hostent.c: Include <stdlib.h>.
21130 * support/support_format_netent.c: Likewise.
21131 * support/support_write_string.c: Include <support/xunistd.h>.
21132 * support/xdlfcn.c: Include <stddef.h>.
21133
21134 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21135
21136 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21137
21138 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21139 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21140
21141 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21142 (sysdeps_routines): Add memset-niagara7.
21143 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21144 Likewise.
21145 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21146 file.
21147 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21148 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21149 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21150 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21151 Add niagara7 option.
21152 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21153 memset.
21154
21155 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21156 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21157 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21158 Likewise.
21159 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21160 New file.
21161 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21162 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21163 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21164 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21165 and __memmove_niagara7.
21166 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21167 Add niagara7 option.
21168 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21169 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21170 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21171 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21172 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21173
21174 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21175
21176 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21177 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21178 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21179 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21180
21181 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21182 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21183 _dl_sparc_cap_flags array.
21184 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21185
21186 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21187
21188 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21189 time whenever possible.
21190
21191 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21192
21193 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21194 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21195
21196 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21197
21198 * soft-fp/fmadf4.c: Move to ....
21199 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21200 * soft-fp/fmasf4.c: Move to ....
21201 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21202 * soft-fp/fmatf4.c: Move to ....
21203 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21204 * sysdeps/ieee754/soft-fp/Makefile: New file.
21205 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21206 * sysdeps/arm/preconfigure: Regenerated.
21207 * sysdeps/arm/nofpu/Implies: New file.
21208 * sysdeps/arm/s_fma.c: Remove file.
21209 * sysdeps/arm/s_fmaf.c: Likewise.
21210 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21211 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21212 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21213 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21214 * sysdeps/microblaze/s_fma.c: Remove file.
21215 * sysdeps/microblaze/s_fmaf.c: Likewise.
21216 * sysdeps/mips/mips32/nofpu/Implies: New file.
21217 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21218 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21219 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21220 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21221 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21222 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21223 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21224 implementation.
21225 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21226 * sysdeps/nios2/s_fma.c: Remove file.
21227 * sysdeps/nios2/s_fmaf.c: Likewise.
21228 * sysdeps/sh/nofpu/Implies: New file.
21229 * sysdeps/sh/s_fma.c: Remove file.
21230 * sysdeps/sh/s_fmaf.c: Likewise.
21231 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21232 * sysdeps/tile/s_fma.c: Remove file.
21233 * sysdeps/tile/s_fmaf.c: Likewise.
21234
21235 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21236
21237 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21238 Add s_cosf-sse2 and s_cosf-fma.
21239 (CFLAGS-s_cosf-fma.c): New.
21240 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21241 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21242 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21243
21244 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21245
21246 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21247
21248 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21249
21250 * libio/Makefile (tests): Add tst-bz22415.
21251 (tst-bz22415-ENV): New rule.
21252 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21253 (tests-special): Add tst-bz22415-mem.out.
21254 ($(objpfx)tst-bz22415-mem.out): New rule.
21255 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21256 in case of a successful seek operation.
21257 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21258 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21259 buffer is required.
21260 * libio/tst-bz22415.c: New test.
21261
21262 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21263
21264 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21265
21266 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21267 __IPC_64 to 0 to avoid IPC_64 being set.
21268
21269 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21270
21271 [BZ #22593]
21272 * math/bits/mathcalls.h (nextafter): Remove const.
21273 (nexttoward): Likewise.
21274
21275 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21276
21277 * configure.ac (--with-fp): Remove configure option.
21278 (with_fp_cond): New variable.
21279 (libc_cv_with_fp): New configure test. Use this variable instead
21280 of with_fp.
21281 * configure: Regenerated.
21282 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21283 * manual/install.texi (Configuring and compiling): Remove
21284 --without-fp.
21285 * INSTALL: Regenerated.
21286 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21287 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21288 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21289 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21290 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21291 use --without-fp to configure glibc.
21292
21293 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21294
21295 * manual/locale.texi (nl_langinfo): Fix a typo.
21296
21297 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21298
21299 [BZ #22588]
21300 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21301
21302 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21303
21304 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21305 (CFLAGS-argp-parse.c): Likewise.
21306 (CFLAGS-argp-fmtstream.c): Likewise.
21307 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21308 (CPPFLAGS-sha512-crypt.c): Likewise.
21309 (CPPFLAGS-md5-crypt.c): Likewise.
21310 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21311 (CFLAGS-stack_chk_fail_local.c): Likewise.
21312 (CFLAGS-backtrace.c): Likewise.
21313 (CFLAGS-sprintf_chk.c): Likewise.
21314 (CFLAGS-snprintf_chk.c): Likewise.
21315 (CFLAGS-vsprintf_chk.c): Likewise.
21316 (CFLAGS-vsnprintf_chk.c): Likewise.
21317 (CFLAGS-asprintf_chk.c): Likewise.
21318 (CFLAGS-vasprintf_chk.c): Likewise.
21319 (CFLAGS-obprintf_chk.c): Likewise.
21320 (CFLAGS-dprintf_chk.c): Likewise.
21321 (CFLAGS-vdprintf_chk.c): Likewise.
21322 (CFLAGS-printf_chk.c): Likewise.
21323 (CFLAGS-fprintf_chk.c): Likewise.
21324 (CFLAGS-vprintf_chk.c): Likewise.
21325 (CFLAGS-vfprintf_chk.c): Likewise.
21326 (CFLAGS-gets_chk.c): Likewise.
21327 (CFLAGS-fgets_chk.c): Likewise.
21328 (CFLAGS-fgets_u_chk.c): Likewise.
21329 (CFLAGS-fread_chk.c): Likewise.
21330 (CFLAGS-fread_u_chk.c): Likewise.
21331 (CFLAGS-swprintf_chk.c): Likewise.
21332 (CFLAGS-vswprintf_chk.c): Likewise.
21333 (CFLAGS-wprintf_chk.c): Likewise.
21334 (CFLAGS-fwprintf_chk.c): Likewise.
21335 (CFLAGS-vwprintf_chk.c): Likewise.
21336 (CFLAGS-vfwprintf_chk.c): Likewise.
21337 (CFLAGS-fgetws_chk.c): Likewise.
21338 (CFLAGS-fgetws_u_chk.c): Likewise.
21339 (CFLAGS-read_chk.c): Likewise.
21340 (CFLAGS-pread_chk.c): Likewise.
21341 (CFLAGS-pread64_chk.c): Likewise.
21342 (CFLAGS-recv_chk.c): Likewise.
21343 (CFLAGS-recvfrom_chk.c): Likewise.
21344 (CFLAGS-tst-longjmp_chk.c): Likewise.
21345 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21346 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21347 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21348 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21349 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21350 (CFLAGS-tst-chk1.c): Likewise.
21351 (CFLAGS-tst-chk2.c): Likewise.
21352 (CFLAGS-tst-chk3.c): Likewise.
21353 (CFLAGS-tst-chk4.cc): Likewise.
21354 (CFLAGS-tst-chk5.cc): Likewise.
21355 (CFLAGS-tst-chk6.cc): Likewise.
21356 (CFLAGS-tst-lfschk1.c): Likewise.
21357 (CFLAGS-tst-lfschk2.c): Likewise.
21358 (CFLAGS-tst-lfschk3.c): Likewise.
21359 (CFLAGS-tst-lfschk4.cc): Likewise.
21360 (CFLAGS-tst-lfschk5.cc): Likewise.
21361 (CFLAGS-tst-lfschk6.cc): Likewise.
21362 (CFLAGS-tst-ssp-1.c): Likewise.
21363 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21364 (CFLAGS-scandir64.c): Likewise.
21365 (CFLAGS-scandir-tail.c): Likewise.
21366 (CFLAGS-scandir64-tail.c): Likewise.
21367 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21368 (CFLAGS-dl-tunables.c): Likewise.
21369 (CFLAGS-dl-runtime.c): Likewise.
21370 (CFLAGS-dl-lookup.c): Likewise.
21371 (CFLAGS-dl-iterate-phdr.c): Likewise.
21372 (CFLAGS-vismain.c): Likewise.
21373 (CFLAGS-tst-linkall-static.c): Likewise.
21374 (CFLAGS-tst-linkall-static.c): Likewise.
21375 (CPPFLAGS-dl-load.c): Likewise.
21376 (CFLAGS-ldconfig.c): Likewise.
21377 (CFLAGS-dl-cache.c): Likewise.
21378 (CFLAGS-cache.c): Likewise.
21379 (CFLAGS-rtld.c): Likewise.
21380 (CFLAGS-multiload.c): Likewise.
21381 (CFLAGS-filtmod1.c): Likewise.
21382 (CFLAGS-tst-align.c): Likewise.
21383 (CFLAGS-tst-align2.c): Likewise.
21384 (CFLAGS-tst-alignmod.c): Likewise.
21385 (CFLAGS-tst-alignmod2.c): Likewise.
21386 (CPPFLAGS-tst-execstack.c): Likewise.
21387 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21388 (CFLAGS-tst-latepthreadmod.c): Likewise.
21389 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21390 (CFLAGS-getgrnam_r.c): Likewise.
21391 (CFLAGS-getgrent_r.c): Likewise.
21392 (CFLAGS-getgrent.c): Likewise.
21393 (CFLAGS-fgetgrent.c): Likewise.
21394 (CFLAGS-fgetgrent_r.c): Likewise.
21395 (CFLAGS-putgrent.c): Likewise.
21396 (CFLAGS-initgroups.c): Likewise.
21397 (CFLAGS-getgrgid.c): Likewise.
21398 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21399 (CFLAGS-getsgent.c): Likewise.
21400 (CFLAGS-fgetsgent.c): Likewise.
21401 (CFLAGS-fgetsgent_r.c): Likewise.
21402 (CFLAGS-putsgent.c): Likewise.
21403 (CFLAGS-getsgnam.c): Likewise.
21404 (CFLAGS-getsgnam_r.c): Likewise.
21405 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21406 (CFLAGS-iconv_charmap.c): Likewise.
21407 (CFLAGS-dummy-repertoire.c): Likewise.
21408 (CFLAGS-charmap.c): Likewise.
21409 (CFLAGS-linereader.c): Likewise.
21410 (CFLAGS-simple-hash.c): Likewise.
21411 (CFLAGS-gconv_conf.c): Likewise.
21412 (CFLAGS-iconvconfig.c): Likewise.
21413 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21414 (CFLAGS-gethstbyad.c): Likewise.
21415 (CFLAGS-gethstbynm_r.c): Likewise.
21416 (CFLAGS-gethstbynm.c): Likewise.
21417 (CFLAGS-gethstbynm2_r.c): Likewise.
21418 (CFLAGS-gethstbynm2.c): Likewise.
21419 (CFLAGS-gethstent_r.c): Likewise.
21420 (CFLAGS-gethstent.c): Likewise.
21421 (CFLAGS-rcmd.c): Likewise.
21422 (CFLAGS-getnetbynm_r.c): Likewise.
21423 (CFLAGS-getnetbynm.c): Likewise.
21424 (CFLAGS-getnetbyad_r.c): Likewise.
21425 (CFLAGS-getnetbyad.c): Likewise.
21426 (CFLAGS-getnetent_r.c): Likewise.
21427 (CFLAGS-getnetent.c): Likewise.
21428 (CFLAGS-getaliasent_r.c): Likewise.
21429 (CFLAGS-getaliasent.c): Likewise.
21430 (CFLAGS-getrpcent_r.c): Likewise.
21431 (CFLAGS-getrpcent.c): Likewise.
21432 (CFLAGS-getservent_r.c): Likewise.
21433 (CFLAGS-getservent.c): Likewise.
21434 (CFLAGS-getprtent_r.c): Likewise.
21435 (CFLAGS-getprtent.c): Likewise.
21436 (CFLAGS-either_ntoh.c): Likewise.
21437 (CFLAGS-either_hton.c): Likewise.
21438 (CFLAGS-getnetgrent.c): Likewise.
21439 (CFLAGS-getnetgrent_r.c): Likewise.
21440 (CFLAGS-tst-checks-posix.c): Likewise.
21441 (CFLAGS-tst-sockaddr.c): Likewise.
21442 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21443 (CFLAGS-tst-translit.c): Likewise.
21444 (CFLAGS-tst-gettext2.c): Likewise.
21445 (CFLAGS-tst-codeset.c): Likewise.
21446 (CFLAGS-tst-gettext3.c): Likewise.
21447 (CFLAGS-tst-gettext4.c): Likewise.
21448 (CFLAGS-tst-gettext5.c): Likewise.
21449 (CFLAGS-tst-gettext6.c): Likewise.
21450 * io/Makefile (CFLAGS-open.c): Likewise.
21451 (CFLAGS-open64.c): Likewise.
21452 (CFLAGS-creat.c): Likewise.
21453 (CFLAGS-creat64.c): Likewise.
21454 (CFLAGS-fcntl.c): Likewise.
21455 (CFLAGS-poll.c): Likewise.
21456 (CFLAGS-ppoll.c): Likewise.
21457 (CFLAGS-lockf.c): Likewise.
21458 (CFLAGS-statfs.c): Likewise.
21459 (CFLAGS-fstatfs.c): Likewise.
21460 (CFLAGS-statvfs.c): Likewise.
21461 (CFLAGS-fstatvfs.c): Likewise.
21462 (CFLAGS-fts.c): Likewise.
21463 (CFLAGS-fts64.c): Likewise.
21464 (CFLAGS-ftw.c): Likewise.
21465 (CFLAGS-ftw64.c): Likewise.
21466 (CFLAGS-lockf.c): Likewise.
21467 (CFLAGS-posix_fallocate.c): Likewise.
21468 (CFLAGS-posix_fallocate64.c): Likewise.
21469 (CFLAGS-fallocate.c): Likewise.
21470 (CFLAGS-fallocate64.c): Likewise.
21471 (CFLAGS-read.c): Likewise.
21472 (CFLAGS-write.c): Likewise.
21473 (CFLAGS-test-stat.c): Likewise.
21474 (CFLAGS-test-lfs.c): Likewise.
21475 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21476 (CFLAGS-fputc.c): Likewise.
21477 (CFLAGS-fputwc.c): Likewise.
21478 (CFLAGS-freopen64.c): Likewise.
21479 (CFLAGS-freopen.c): Likewise.
21480 (CFLAGS-fseek.c): Likewise.
21481 (CFLAGS-fseeko64.c): Likewise.
21482 (CFLAGS-fseeko.c): Likewise.
21483 (CFLAGS-ftello64.c): Likewise.
21484 (CFLAGS-ftello.c): Likewise.
21485 (CFLAGS-fwide.c): Likewise.
21486 (CFLAGS-genops.c): Likewise.
21487 (CFLAGS-getc.c): Likewise.
21488 (CFLAGS-getchar.c): Likewise.
21489 (CFLAGS-getwc.c): Likewise.
21490 (CFLAGS-getwchar.c): Likewise.
21491 (CFLAGS-iofclose.c): Likewise.
21492 (CFLAGS-iofflush.c): Likewise.
21493 (CFLAGS-iofgetpos64.c): Likewise.
21494 (CFLAGS-iofgetpos.c): Likewise.
21495 (CFLAGS-iofgets.c): Likewise.
21496 (CFLAGS-iofgetws.c): Likewise.
21497 (CFLAGS-iofputs.c): Likewise.
21498 (CFLAGS-iofputws.c): Likewise.
21499 (CFLAGS-iofread.c): Likewise.
21500 (CFLAGS-iofsetpos64.c): Likewise.
21501 (CFLAGS-iofsetpos.c): Likewise.
21502 (CFLAGS-ioftell.c): Likewise.
21503 (CFLAGS-iofwrite.c): Likewise.
21504 (CFLAGS-iogetdelim.c): Likewise.
21505 (CFLAGS-iogetline.c): Likewise.
21506 (CFLAGS-iogets.c): Likewise.
21507 (CFLAGS-iogetwline.c): Likewise.
21508 (CFLAGS-ioputs.c): Likewise.
21509 (CFLAGS-ioseekoff.c): Likewise.
21510 (CFLAGS-ioseekpos.c): Likewise.
21511 (CFLAGS-iosetbuffer.c): Likewise.
21512 (CFLAGS-iosetvbuf.c): Likewise.
21513 (CFLAGS-ioungetc.c): Likewise.
21514 (CFLAGS-ioungetwc.c): Likewise.
21515 (CFLAGS-oldfileops.c): Likewise.
21516 (CFLAGS-oldiofclose.c): Likewise.
21517 (CFLAGS-oldiofgetpos64.c): Likewise.
21518 (CFLAGS-oldiofgetpos.c): Likewise.
21519 (CFLAGS-oldiofsetpos64.c): Likewise.
21520 (CFLAGS-oldiofsetpos.c): Likewise.
21521 (CFLAGS-peekc.c): Likewise.
21522 (CFLAGS-putc.c): Likewise.
21523 (CFLAGS-putchar.c): Likewise.
21524 (CFLAGS-putwc.c): Likewise.
21525 (CFLAGS-putwchar.c): Likewise.
21526 (CFLAGS-rewind.c): Likewise.
21527 (CFLAGS-wfileops.c): Likewise.
21528 (CFLAGS-wgenops.c): Likewise.
21529 (CFLAGS-oldiofopen.c): Likewise.
21530 (CFLAGS-iofopen.c): Likewise.
21531 (CFLAGS-iofopen64.c): Likewise.
21532 (CFLAGS-oldtmpfile.c): Likewise.
21533 (CFLAGS-tst_putwc.c): Likewise.
21534 * locale/Makefile (CFLAGS-md5.c): Likewise.
21535 (CFLAGS-charmap.c): Likewise.
21536 (CFLAGS-locfile.c): Likewise.
21537 (CFLAGS-charmap-dir.c): Likewise.
21538 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21539 (CFLAGS-getpt.c): Likewise.
21540 (CFLAGS-pt_chown.c): Likewise.
21541 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21542 (CFLAGS-obstack.c): Likewise.
21543 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21544 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21545 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21546 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21547 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21548 (CFLAGS-test-tgmath.c): Likewise.
21549 (CFLAGS-test-tgmath2.c): Likewise.
21550 (CFLAGS-test-tgmath-ret.c): Likewise.
21551 (CFLAGS-test-powl.c): Likewise.
21552 (CFLAGS-test-snan.c): Likewise.
21553 (CFLAGS-test-signgam-finite.c): Likewise.
21554 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21555 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21556 (CFLAGS-test-signgam-uchar.c): Likewise.
21557 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21558 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21559 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21560 (CFLAGS-test-signgam-uint.c): Likewise.
21561 (CFLAGS-test-signgam-uint-init.c): Likewise.
21562 (CFLAGS-test-signgam-uint-static.c): Likewise.
21563 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21564 (CFLAGS-test-signgam-ullong.c): Likewise.
21565 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21566 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21567 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21568 (CFLAGS-test-math-cxx11.cc): Likewise.
21569 (CFLAGS-test-math-isinff.cc): Likewise.
21570 (CFLAGS-test-math-iszero.cc): Likewise.
21571 (CFLAGS-test-math-issignaling.cc): Likewise.
21572 (CFLAGS-test-math-iscanonical.cc): Likewise.
21573 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21574 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21575 (CFLAGS-test-flt-eval-method.c): Likewise.
21576 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21577 (CFLAGS-test-finite-macros.c): Likewise.
21578 * misc/Makefile (CFLAGS-select.c): Likewise.
21579 (CFLAGS-tsearch.c): Likewise.
21580 (CFLAGS-lsearch.c): Likewise.
21581 (CFLAGS-pselect.c): Likewise.
21582 (CFLAGS-readv.c): Likewise.
21583 (CFLAGS-writev.c): Likewise.
21584 (CFLAGS-preadv.c): Likewise.
21585 (CFLAGS-preadv64.c): Likewise.
21586 (CFLAGS-pwritev.c): Likewise.
21587 (CFLAGS-pwritev64.c): Likewise.
21588 (CFLAGS-preadv2.c): Likewise.
21589 (CFLAGS-preadv64v2.c): Likewise.
21590 (CFLAGS-pwritev2.c): Likewise.
21591 (CFLAGS-pwritev64v2.c): Likewise.
21592 (CFLAGS-usleep.c): Likewise.
21593 (CFLAGS-syslog.c): Likewise.
21594 (CFLAGS-error.c): Likewise.
21595 (CFLAGS-getpass.c): Likewise.
21596 (CFLAGS-mkstemp.c): Likewise.
21597 (CFLAGS-mkstemp64.c): Likewise.
21598 (CFLAGS-getsysstats.c): Likewise.
21599 (CFLAGS-getusershell.c): Likewise.
21600 (CFLAGS-err.c): Likewise.
21601 (CFLAGS-tst-tsearch.c): Likewise.
21602 (CFLAGS-msync.c): Likewise.
21603 (CFLAGS-fdatasync.c): Likewise.
21604 (CFLAGS-fsync.c): Likewise.
21605 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21606 (CFLAGS-unwind.c): Likewise.
21607 (CFLAGS-unwind-forcedunwind.c): Likewise.
21608 (CFLAGS-pthread_cancel.c): Likewise.
21609 (CFLAGS-pthread_setcancelstate.c): Likewise.
21610 (CFLAGS-pthread_setcanceltype.c): Likewise.
21611 (CFLAGS-cancellation.c): Likewise.
21612 (CFLAGS-libc-cancellation.c): Likewise.
21613 (CFLAGS-pthread_exit.c): Likewise.
21614 (CFLAGS-forward.c): Likewise.
21615 (CFLAGS-pthread_testcancel.c): Likewise.
21616 (CFLAGS-pthread_join.c): Likewise.
21617 (CFLAGS-pthread_timedjoin.c): Likewise.
21618 (CFLAGS-pthread_once.c): Likewise.
21619 (CFLAGS-pthread_cond_wait.c): Likewise.
21620 (CFLAGS-sem_wait.c): Likewise.
21621 (CFLAGS-sem_timedwait.c): Likewise.
21622 (CFLAGS-fcntl.c): Likewise.
21623 (CFLAGS-lockf.c): Likewise.
21624 (CFLAGS-pread.c): Likewise.
21625 (CFLAGS-pread64.c): Likewise.
21626 (CFLAGS-pwrite.c): Likewise.
21627 (CFLAGS-pwrite64.c): Likewise.
21628 (CFLAGS-wait.c): Likewise.
21629 (CFLAGS-waitpid.c): Likewise.
21630 (CFLAGS-sigwait.c): Likewise.
21631 (CFLAGS-msgrcv.c): Likewise.
21632 (CFLAGS-msgsnd.c): Likewise.
21633 (CFLAGS-tcdrain.c): Likewise.
21634 (CFLAGS-open.c): Likewise.
21635 (CFLAGS-open64.c): Likewise.
21636 (CFLAGS-pause.c): Likewise.
21637 (CFLAGS-recv.c): Likewise.
21638 (CFLAGS-send.c): Likewise.
21639 (CFLAGS-accept.c): Likewise.
21640 (CFLAGS-sendto.c): Likewise.
21641 (CFLAGS-connect.c): Likewise.
21642 (CFLAGS-recvfrom.c): Likewise.
21643 (CFLAGS-recvmsg.c): Likewise.
21644 (CFLAGS-sendmsg.c): Likewise.
21645 (CFLAGS-close.c): Likewise.
21646 (CFLAGS-read.c): Likewise.
21647 (CFLAGS-write.c): Likewise.
21648 (CFLAGS-nanosleep.c): Likewise.
21649 (CFLAGS-sigsuspend.c): Likewise.
21650 (CFLAGS-msync.c): Likewise.
21651 (CFLAGS-fdatasync.c): Likewise.
21652 (CFLAGS-fsync.c): Likewise.
21653 (CFLAGS-pt-system.c): Likewise.
21654 (CFLAGS-tst-cleanup2.c): Likewise.
21655 (CFLAGS-tst-cleanupx2.c): Likewise.
21656 (CFLAGS-flockfile.c): Likewise.
21657 (CFLAGS-ftrylockfile.c): Likewise.
21658 (CFLAGS-funlockfile.c): Likewise.
21659 (CFLAGS-tst-initializers1.c): Likewise.
21660 (CFLAGS-tst-initializers1-c89.c): Likewise.
21661 (CFLAGS-tst-initializers1-c99.c): Likewise.
21662 (CFLAGS-tst-initializers1-c11.c): Likewise.
21663 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21664 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21665 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21666 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21667 (CFLAGS-nscd_getgr_r.c): Likewise.
21668 (CFLAGS-nscd_gethst_r.c): Likewise.
21669 (CFLAGS-nscd_getai.c): Likewise.
21670 (CFLAGS-nscd_initgroups.c): Likewise.
21671 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21672 (CFLAGS-pause.c): Likewise.
21673 (CFLAGS-pread.c): Likewise.
21674 (CFLAGS-pread64.c): Likewise.
21675 (CFLAGS-pwrite.c): Likewise.
21676 (CFLAGS-pwrite64.c): Likewise.
21677 (CFLAGS-sleep.c): Likewise.
21678 (CFLAGS-wait.c): Likewise.
21679 (CFLAGS-waitid.c): Likewise.
21680 (CFLAGS-waitpid.c): Likewise.
21681 (CFLAGS-getopt.c): Likewise.
21682 (CFLAGS-wordexp.c): Likewise.
21683 (CFLAGS-sysconf.c): Likewise.
21684 (CFLAGS-pathconf.c): Likewise.
21685 (CFLAGS-fpathconf.c): Likewise.
21686 (CFLAGS-spawn.c): Likewise.
21687 (CFLAGS-spawnp.c): Likewise.
21688 (CFLAGS-spawni.c): Likewise.
21689 (CFLAGS-glob.c): Likewise.
21690 (CFLAGS-glob64.c): Likewise.
21691 (CFLAGS-getconf.c): Likewise.
21692 (CFLAGS-nanosleep.c): Likewise.
21693 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21694 (CFLAGS-getpwent.c): Likewise.
21695 (CFLAGS-getpw.c): Likewise.
21696 (CFLAGS-fgetpwent_r.c): Likewise.
21697 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21698 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21699 (CFLAGS-mq_timedreceive.c): Likewise.
21700 (CFLAGS-mq_timedsend.c): Likewise.
21701 (CFLAGS-clock_nanosleep.c): Likewise.
21702 (CFLAGS-librt-cancellation.c): Likewise.
21703 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21704 (CFLAGS-getspent.c): Likewise.
21705 (CFLAGS-fgetspent.c): Likewise.
21706 (CFLAGS-fgetspent_r.c): Likewise.
21707 (CFLAGS-putspent.c): Likewise.
21708 (CFLAGS-getspnam.c): Likewise.
21709 (CFLAGS-getspnam_r.c): Likewise.
21710 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21711 (CFLAGS-sigsuspend.c): Likewise.
21712 (CFLAGS-sigtimedwait.c): Likewise.
21713 (CFLAGS-sigwait.c): Likewise.
21714 (CFLAGS-sigwaitinfo.c): Likewise.
21715 (CFLAGS-sigreturn.c): Likewise.
21716 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21717 (CFLAGS-vfwprintf.c): Likewise.
21718 (CFLAGS-tmpfile.c): Likewise.
21719 (CFLAGS-tmpfile64.c): Likewise.
21720 (CFLAGS-tempname.c): Likewise.
21721 (CFLAGS-psignal.c): Likewise.
21722 (CFLAGS-vprintf.c): Likewise.
21723 (CFLAGS-cuserid.c): Likewise.
21724 (CFLAGS-errlist.c): Likewise.
21725 (CFLAGS-siglist.c): Likewise.
21726 (CFLAGS-scanf15.c): Likewise.
21727 (CFLAGS-scanf17.c): Likewise.
21728 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21729 (CFLAGS-msort.c): Likewise.
21730 (CFLAGS-qsort.c): Likewise.
21731 (CFLAGS-system.c): Likewise.
21732 (CFLAGS-fmtmsg.c): Likewise.
21733 (CFLAGS-strfmon.c): Likewise.
21734 (CFLAGS-strfmon_l.c): Likewise.
21735 (CFLAGS-strfromd.c): Likewise.
21736 (CFLAGS-strfromf.c): Likewise.
21737 (CFLAGS-strfroml.c): Likewise.
21738 (CFLAGS-tst-bsearch.c): Likewise.
21739 (CFLAGS-tst-qsort.c): Likewise.
21740 (CFLAGS-tst-makecontext2.c): Likewise.
21741 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21742 (CFLAGS-xnlm_prot.c): Likewise.
21743 (CFLAGS-xrstat.c): Likewise.
21744 (CFLAGS-xyppasswd.c): Likewise.
21745 (CFLAGS-xklm_prot.c): Likewise.
21746 (CFLAGS-xrex.c): Likewise.
21747 (CFLAGS-xsm_inter.c): Likewise.
21748 (CFLAGS-xmount.c): Likewise.
21749 (CFLAGS-xrusers.c): Likewise.
21750 (CFLAGS-xspray.c): Likewise.
21751 (CFLAGS-xnfs_prot.c): Likewise.
21752 (CFLAGS-xrquota.c): Likewise.
21753 (CFLAGS-xkey_prot.c): Likewise.
21754 (CFLAGS-auth_unix.c): Likewise.
21755 (CFLAGS-key_call.c): Likewise.
21756 (CFLAGS-pmap_rmt.c): Likewise.
21757 (CFLAGS-clnt_perr.c): Likewise.
21758 (CFLAGS-openchild.c): Likewise.
21759 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21760 (CFLAGS-msgsnd.c): Likewise.
21761 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21762 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21763 (CFLAGS-tzset.c): Likewise.
21764 (CFLAGS-getdate.c): Likewise.
21765 (CFLAGS-test_time.c): Likewise.
21766 (CPPFLAGS-tst-tzname.c): Likewise.
21767 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21768 (CFLAGS-zic.c): Likewise.
21769 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21770 (CFLAGS-wcswidth.c): Likewise.
21771 (CFLAGS-wcstol.c): Likewise.
21772 (CFLAGS-wcstoul.c): Likewise.
21773 (CFLAGS-wcstoll.c): Likewise.
21774 (CFLAGS-wcstoull.c): Likewise.
21775 (CFLAGS-wcstod.c): Likewise.
21776 (CFLAGS-wcstold.c): Likewise.
21777 (CFLAGS-wcstof128.c): Likewise.
21778 (CFLAGS-wcstof.c): Likewise.
21779 (CFLAGS-wcstol_l.c): Likewise.
21780 (CFLAGS-wcstoul_l.c): Likewise.
21781 (CFLAGS-wcstoll_l.c): Likewise.
21782 (CFLAGS-wcstoull_l.c): Likewise.
21783 (CFLAGS-wcstod_l.c): Likewise.
21784 (CFLAGS-wcstold_l.c): Likewise.
21785 (CFLAGS-wcstof128_l.c): Likewise.
21786 (CFLAGS-wcstof_l.c): Likewise.
21787 (CPPFLAGS-tst-wchar-h.c): Likewise.
21788 (CPPFLAGS-wcstold_l.c): Likewise.
21789
21790 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21791
21792 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21793
21794 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21795 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21796
21797 * manual/tunables.texi (Hardware Capability Tunables): Document
21798 glibc.tune.cached_memopt.
21799 * sysdeps/powerpc/cpu-features.c: New file.
21800 * sysdeps/powerpc/cpu-features.h: New file.
21801 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21802 _dl_powerpc_cpu_features.
21803 * sysdeps/powerpc/dl-tunables.list: New file.
21804 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21805 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21806 (INIT_ARCH): Initialize use_aligned_memopt.
21807 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21808 IS_IN(rtld))]: Restrict dl_platform_init availability and
21809 initialize CPU features used by tunables.
21810 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21811 Add memcpy-power8-cached.
21812 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21813 __memcpy_power8_cached.
21814 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21815 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21816 New file.
21817
21818 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21819
21820 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21821 (CFLAGS-noinl-tester.c): Likewise.
21822 (CFLAGS-tst-strlen.c): Likewise.
21823 (CFLAGS-stratcliff.c): Likewise.
21824 (CFLAGS-test-ffs.c): Likewise.
21825 (CFLAGS-tst-inlcall.c): Likewise.
21826 (CFLAGS-tst-xbzero-opt.c): Likewise.
21827 (CFLAGS-memcpy.c): Likewise.
21828 (CFLAGS-wordcopy.c): Likewise.
21829
21830 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21831
21832 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21833 Store r15 on stack and add cfi rule.
21834 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21835 Likewise.
21836
21837 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21838
21839 [BZ #22577]
21840 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21841 call.
21842
21843 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21844
21845 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21846 Add s_sinf-sse2 and s_sinf-fma.
21847 (CFLAGS-s_sinf-fma.c): New.
21848 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21849 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21850 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21851
21852 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21853
21854 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21855
21856 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21857
21858 [BZ #22568]
21859 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21860 part of result to imaginary part of argument if it is zero and the
21861 real part of the argument is not finite.
21862 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21863 of result to real part of argument if it is zero and the imaginary
21864 part of the argument is not finite.
21865
21866 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21867
21868 [BZ #22524]
21869 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21870 and to the list of locales to be built for testing.
21871 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21872 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21873 and build the collation rules upon that.
21874
21875 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21876
21877 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21878 * manual/math.texi (Mathematics): Document support for _Float32.
21879 * math/Makefile (test-types): Add float32.
21880 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21881 * stdlib/Versions (GLIBC_2.27): Likewise.
21882 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21883 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21884 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21885 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21886 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21887 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21888 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21889 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21890 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21891 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21892 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21893 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21894 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21895 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21896 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21897 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21898 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21899 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21900 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21901 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21902 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21903 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21904 Likewise.
21905 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21906 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21907 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21908 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21909 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21910 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21911 Likewise.
21912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21913 Likewise.
21914 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21915 Likewise.
21916 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21917 Likewise.
21918
21919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21920 Likewise.
21921 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21922 Likewise.
21923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21924 Likewise.
21925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21926 Likewise.
21927 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21928 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21929 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21930 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21931 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21932 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21933 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21934 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21935 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21936 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21937 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21938 Likewise.
21939 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21940 Likewise.
21941 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21942 Likewise.
21943 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21944 Likewise.
21945 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21946 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21947 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21948 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21949 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21950 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21951 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21952 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21953
21954 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21955
21956 * stdlib/strtof.c: Include <bits/floatn.h>
21957 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21958 and later undefine as macro. Define as weak alias if
21959 [!USE_WIDE_CHAR].
21960 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21961 and later undefine as macro. Define as weak alias if
21962 [USE_WIDE_CHAR].
21963 * stdlib/strtof_l.c: Include <bits/floatn.h>
21964 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21965 and later undefine as macro. Define as weak alias if
21966 [!USE_WIDE_CHAR].
21967 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21968 and later undefine as macro. Define as weak alias if
21969 [USE_WIDE_CHAR].
21970
21971 * stdlib/strfromf.c: Include <bits/floatn.h>.
21972 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21973 and later undefine as macro and define as weak alias.
21974
21975 * math/test-float32.h: New file.
21976
21977 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21978 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21979 (libm_alias_float_other_r): Create f32 alias.
21980 (libm_alias_float_r): Use semicolon before call to
21981 libm_alias_float_other_r.
21982
21983 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21984 second argument to libm_alias_float_other.
21985 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21986 second argument to libm_alias_float_other.
21987 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21988 argument to libm_alias_float_other.
21989
21990 [BZ #22561]
21991 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21992 real part of result for argument 0 + i * NaN.
21993 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21994 results for tests of 0 + i * NaN.
21995
21996 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21997
21998 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21999
22000 2017-12-06 David S. Miller <davem@davemloft.net>
22001
22002 * sysdeps/sparc/fpu/libm-test-ulps: Update
22003 exp_{downward,towardzero,upward} ulps.
22004
22005 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22006
22007 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
22008 variables static.
22009
22010 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
22011 (Y0_2D): Likewise.
22012 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
22013 (Y0_2D): Likewise.
22014 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
22015 (Y0_2D): Likewise.
22016 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
22017 (Y0_2D): Likewise.
22018
22019 2017-12-06 Mike FABIAN <mfabian@redhat.com>
22020
22021 [BZ #22515]
22022 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
22023 and to the list of locales to be built for testing.
22024 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
22025 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
22026 and build the collation rules upon that.
22027
22028 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22029
22030 * NEWS: Add sinf to list of optimized functions.
22031
22032 2017-12-06 Joseph Myers <joseph@codesourcery.com>
22033
22034 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
22035 (__HAVE_FLOAT32X): Likewise.
22036 * manual/math.texi (Mathematics): Document support for _Float64
22037 and _Float32x.
22038 * math/Makefile (test-types): Add float64 and float32x.
22039 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
22040 functions.
22041 * stdlib/Versions (GLIBC_2.27): Likewise.
22042 * wcsmbs/Versions (GLIBC_2.27): Likewise.
22043 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
22044 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
22045 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
22046 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
22047 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
22048 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
22049 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
22050 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
22051 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
22052 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
22053 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
22054 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
22055 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
22056 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
22057 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
22058 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
22059 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
22060 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
22061 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
22062 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
22063 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
22064 Likewise.
22065 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
22066 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
22067 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
22068 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
22069 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
22070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
22071 Likewise.
22072 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
22073 Likewise.
22074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
22075 Likewise.
22076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
22077 Likewise.
22078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
22079 Likewise.
22080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
22081 Likewise.
22082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
22083 Likewise.
22084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
22085 Likewise.
22086 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
22087 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
22088 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
22089 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
22090 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
22091 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
22092 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
22093 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
22094 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
22095 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
22096 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
22097 Likewise.
22098 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
22099 Likewise.
22100 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
22101 Likewise.
22102 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
22103 Likewise.
22104 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
22105 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
22106 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
22107 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
22108 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
22109 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
22110 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
22111 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
22112
22113 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22114
22115 * bits/floatn-common.h: Include <bits/long-double.h>.
22116 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22117 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
22118 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22119 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
22120 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
22121 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
22122 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22123 (__builtin_huge_valf64): Use __builtin_huge_vall.
22124 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22125 (__builtin_inff64): Use __builtin_infl.
22126 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22127 (__builtin_nanf64): Use __builtin_nanl.
22128 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22129 (__builtin_nansf64): Use __builtin_nansl.
22130
22131 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22132 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22133 Carlos O'Donnell <carlos@redhat.com>
22134
22135 * elf/dl-tunables.list: Add elision parameters.
22136 * manual/tunables.texi: Add entries about elision tunable.
22137 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22138 Add callback functions to dynamically enable/disable elision.
22139 Add multiple callbacks functions to set elision parameters.
22140 Deleted __libc_enable_secure check.
22141 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22142 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22143 * configure: Regenerated.
22144 * configure.ac: Option enable_lock_elision was deleted.
22145 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22146 * config.make.in: Remove references to enable_lock_elision.
22147 * manual/install.texi: Elision configure option was removed.
22148 * INSTALL: Regenerated to remove enable_lock_elision.
22149 * nptl/Makefile:
22150 Disable elision so it can verify error case for destroying a mutex.
22151 * sysdeps/powerpc/nptl/elide.h:
22152 Cleanup ENABLE_LOCK_ELISION check.
22153 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22154 * sysdeps/s390/configure: Regenerated.
22155 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22156 * nptl/tst-mutex8.c:
22157 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22158 * sysdeps/powerpc/powerpc32/sysdep.h:
22159 Deleted all ENABLE_LOCK_ELISION checks.
22160 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22161 * sysdeps/powerpc/sysdep.h: Likewise.
22162 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22163 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22164 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22165 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22166 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22167 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22168 enable-lock-elision.
22169
22170 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22171
22172 * stdlib/strtod.c: Include <bits/floatn.h>.
22173 (BUILD_DOUBLE): New macro.
22174 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22175 (strtof64): Define and later undefine as macro. Define as weak
22176 alias if [!USE_WIDE_CHAR].
22177 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22178 (wcstof64): Define and later undefine as macro. Define as weak
22179 alias if [USE_WIDE_CHAR].
22180 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22181 (strtof32x): Define and later undefine as macro. Define as weak
22182 alias if [!USE_WIDE_CHAR].
22183 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22184 (wcstof32x): Define and later undefine as macro. Define as weak
22185 alias if [USE_WIDE_CHAR].
22186 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22187 (BUILD_DOUBLE): New macro.
22188 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22189 (strtof64_l): Define and later undefine as macro. Define as weak
22190 alias if [!USE_WIDE_CHAR].
22191 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22192 (wcstof64_l): Define and later undefine as macro. Define as weak
22193 alias if [USE_WIDE_CHAR].
22194 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22195 (strtof32x_l): Define and later undefine as macro. Define as weak
22196 alias if [!USE_WIDE_CHAR].
22197 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22198 (wcstof32x_l): Define and later undefine as macro. Define as weak
22199 alias if [USE_WIDE_CHAR].
22200
22201 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22202
22203 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22204 (reduced): Use ones as double instead of integer.
22205
22206 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22207
22208 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22209
22210 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22211
22212 * stdlib/strfromd.c: Include <bits/floatn.h>.
22213 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22214 and later undefine as macro and define as weak alias.
22215 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22216 Likewise.
22217
22218 * math/test-float32x.h: New file.
22219 * math/test-float64.h: Likewise.
22220
22221 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22222 (libm_alias_double_other_r_f64): New macro.
22223 (libm_alias_double_other_r_f32x): Likewise.
22224 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22225 libm_alias_double_other_r_f32x.
22226 (libm_alias_double_r): Use semicolon before call to
22227 libm_alias_double_other_r.
22228 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22229 <bits/floatn.h>.
22230 (libm_alias_double_other_r_f64): New macro.
22231 (libm_alias_double_other_r_f32x): Likewise.
22232 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22233 libm_alias_double_other_r_f32x.
22234
22235 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22236
22237 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22238 int.
22239 (SINF_FUNC): Likewise. Replace floor with simple casts.
22240
22241 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22242
22243 [BZ #22517]
22244 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22245 and to the list of locales to be built for testing.
22246 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22247 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22248 and build the collation rules upon that.
22249
22250 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22251
22252 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22253 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22254 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22255 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22256 instead of __insn__xxx.
22257 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22258 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22259 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22260 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22261 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22262 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22263
22264 2017-12-05 Florian Weimer <fweimer@redhat.com>
22265
22266 Linux: Implement interfaces for memory protection keys
22267 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22268 xsignal, xsysconf.
22269 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22270 * support/xunistd.h (xsysconf): Declare.
22271 * support/xraise.c: New file.
22272 * support/xsigaction.c: Likewise.
22273 * support/xsignal.c: Likewise.
22274 * support/xsysconf.c: Likewise.
22275 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22276 pkey_set, pkey_get, pkey_mprotect.
22277 [misc] (tests): Add tst-pkey.
22278 (tst-pkey): Link with -lpthread.
22279 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22280 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22281 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22282 (PKEY_DISABLE_WRITE): Define.
22283 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22284 Declare.
22285 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22286 (SEGV_PKUERR): Add.
22287 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22288 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22289 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22290 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22291 Add.
22292 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22293 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22294 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22295 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22296 * sysdeps/unix/sysv/linux/**.abilist: Update.
22297
22298 2017-12-05 Florian Weimer <fweimer@redhat.com>
22299
22300 * support/tst-test_compare.c (subprocess): Use long long instead
22301 of long argument for consistent type width across 32-bit and
22302 64-bit architectures.
22303 (do_test): Adjust expected output.
22304
22305 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22306
22307 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22308 (cosf): Define using libm_alias_float.
22309 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22310 (fabsf): Define using libm_alias_float.
22311 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22312 (fmaf): Define using libm_alias_float.
22313 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22314 (rintf): Define using libm_alias_float.
22315 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22316 (sinf): Define using libm_alias_float.
22317 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22318 <libm-alias-float.h>.
22319 (modff): Define using libm_alias_float.
22320 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22321 <libm-alias-float.h>.
22322 (logbf): Define using libm_alias_float.
22323 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22324 <libm-alias-float.h>.
22325 (ceilf): Define using libm_alias_float.
22326 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22327 <libm-alias-float.h>.
22328 (copysignf): Define using libm_alias_float.
22329 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22330 <libm-alias-float.h>.
22331 (floorf): Define using libm_alias_float.
22332 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22333 <libm-alias-float.h>.
22334 (llrintf): Define using libm_alias_float.
22335 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22336 <libm-alias-float.h>.
22337 (llroundf): Define using libm_alias_float.
22338 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22339 <libm-alias-float.h>.
22340 (lrintf): Define using libm_alias_float.
22341 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22342 <libm-alias-float.h>.
22343 (lroundf): Define using libm_alias_float.
22344 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22345 <libm-alias-float.h>.
22346 (nearbyintf): Define using libm_alias_float.
22347 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22348 <libm-alias-float.h>.
22349 (rintf): Define using libm_alias_float.
22350 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22351 <libm-alias-float.h>.
22352 (roundf): Define using libm_alias_float.
22353 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22354 <libm-alias-float.h>.
22355 (truncf): Define using libm_alias_float.
22356 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22357 Include <libm-alias-float.h>.
22358 (ceilf): Define using libm_alias_float.
22359 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22360 Include <libm-alias-float.h>.
22361 (copysignf): Define using libm_alias_float.
22362 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22363 Include <libm-alias-float.h>.
22364 (floorf): Define using libm_alias_float.
22365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22366 Include <libm-alias-float.h>.
22367 (llrintf): Define using libm_alias_float.
22368 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22369 Include <libm-alias-float.h>.
22370 (llroundf): Define using libm_alias_float.
22371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22372 Include <libm-alias-float.h>.
22373 (logbf): Define using libm_alias_float.
22374 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22375 Include <libm-alias-float.h>.
22376 (lrintf): Define using libm_alias_float.
22377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22378 Include <libm-alias-float.h>.
22379 (lroundf): Define using libm_alias_float.
22380 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22381 Include <libm-alias-float.h>.
22382 (modff): Define using libm_alias_float.
22383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22384 Include <libm-alias-float.h>.
22385 (roundf): Define using libm_alias_float.
22386 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22387 Include <libm-alias-float.h>.
22388 (truncf): Define using libm_alias_float.
22389 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22390 <libm-alias-float.h>.
22391 (llrintf): Define using libm_alias_float.
22392 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22393 <libm-alias-float.h>.
22394 (llroundf): Define using libm_alias_float.
22395 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22396 <libm-alias-float.h>.
22397 (ceilf): Define using libm_alias_float.
22398 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22399 <libm-alias-float.h>.
22400 (floorf): Define using libm_alias_float.
22401 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22402 <libm-alias-float.h>.
22403 (llroundf): Define using libm_alias_float.
22404 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22405 <libm-alias-float.h>.
22406 (lroundf): Define using libm_alias_float.
22407 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22408 <libm-alias-float.h>.
22409 (roundf): Define using libm_alias_float.
22410 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22411 <libm-alias-float.h>.
22412 (truncf): Define using libm_alias_float.
22413 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22414 <libm-alias-float.h>.
22415 (copysignf): Define using libm_alias_float.
22416 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22417 <libm-alias-float.h>.
22418 (llrintf): Define using libm_alias_float.
22419 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22420 <libm-alias-float.h>.
22421 (llroundf): Define using libm_alias_float.
22422 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22423 <libm-alias-float.h>.
22424 (lrintf): Define using libm_alias_float.
22425 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22426 <libm-alias-float.h>.
22427 (lroundf): Define using libm_alias_float.
22428 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22429 <libm-alias-float.h>.
22430 (ceilf): Define using libm_alias_float.
22431 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22432 <libm-alias-float.h>.
22433 (copysignf): Define using libm_alias_float.
22434 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22435 <libm-alias-float.h>.
22436 (cosf): Define using libm_alias_float.
22437 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22438 <libm-alias-float.h>.
22439 (floorf): Define using libm_alias_float.
22440 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22441 <libm-alias-float.h>.
22442 (llrintf): Define using libm_alias_float.
22443 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22444 <libm-alias-float.h>.
22445 (llroundf): Define using libm_alias_float.
22446 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22447 <libm-alias-float.h>.
22448 (logbf): Define using libm_alias_float.
22449 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22450 <libm-alias-float.h>.
22451 (modff): Define using libm_alias_float.
22452 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22453 <libm-alias-float.h>.
22454 (roundf): Define using libm_alias_float.
22455 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22456 <libm-alias-float.h>.
22457 (sinf): Define using libm_alias_float.
22458 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22459 <libm-alias-float.h>.
22460 (truncf): Define using libm_alias_float.
22461 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22462 <libm-alias-float.h>.
22463 (ceilf): Define using libm_alias_float.
22464 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22465 <libm-alias-float.h>.
22466 (copysignf): Define using libm_alias_float.
22467 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22468 <libm-alias-float.h>.
22469 (floorf): Define using libm_alias_float.
22470 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22471 <libm-alias-float.h>.
22472 (llrintf): Define using libm_alias_float.
22473 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22474 <libm-alias-float.h>.
22475 (llroundf): Define using libm_alias_float.
22476 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22477 <libm-alias-float.h>.
22478 (nearbyintf): Define using libm_alias_float.
22479 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22480 <libm-alias-float.h>.
22481 (rintf): Define using libm_alias_float.
22482 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22483 <libm-alias-float.h>.
22484 (roundf): Define using libm_alias_float.
22485 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22486 <libm-alias-float.h>.
22487 (truncf): Define using libm_alias_float.
22488 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22489 <libm-alias-float.h>.
22490 (ceilf): Define using libm_alias_float.
22491 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22492 <libm-alias-float.h>.
22493 (floorf): Define using libm_alias_float.
22494 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22495 <libm-alias-float.h>.
22496 (llroundf): Define using libm_alias_float.
22497 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22498 <libm-alias-float.h>.
22499 (roundf): Define using libm_alias_float.
22500 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22501 <libm-alias-float.h>.
22502 (truncf): Define using libm_alias_float.
22503 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22504 <libm-alias-float.h>.
22505 (copysignf): Define using libm_alias_float.
22506 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22507 <libm-alias-float.h>.
22508 (llrintf): Define using libm_alias_float.
22509 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22510 <libm-alias-float.h>.
22511 (llroundf): Define using libm_alias_float.
22512 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22513 <libm-alias-float.h>.
22514 (cosf): Define using libm_alias_float.
22515 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22516 <libm-alias-float.h>.
22517 (llrintf): Define using libm_alias_float.
22518 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22519 <libm-alias-float.h>.
22520 (llroundf): Define using libm_alias_float.
22521 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22522 <libm-alias-float.h>.
22523 (sinf): Define using libm_alias_float.
22524
22525 2017-12-04 Florian Weimer <fweimer@redhat.com>
22526
22527 * support/check.h (TEST_COMPARE): Define.
22528 (support_test_compare_failure): Declare.
22529 * support/Makefile (libsupport-routines): Add
22530 support_test_compare_failure.
22531 (tests): Add tst-test_compare.
22532 * support /support_test_compare_failure.c: New file.
22533 * support/tst-test_compare.c: Likewise.
22534
22535 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22536
22537 [BZ #22527]
22538 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22539 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22540 available, this rewrite of the collation rules does reproduce
22541 the test file in the same order.
22542
22543 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22544
22545 [BZ #10580]
22546 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22547 digraphs in the month and day names. Using single code points for
22548 digraphs is deprecated. While there are dedicated Unicode
22549 codepoints, for the digraphs, these are included for backwards
22550 compatibility and modern texts use a sequence of Basic Latin
22551 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22552 This makes the month and day names agree exactly with CLDR now,
22553 CLDR does not use the single code points for the digraphs either.
22554
22555 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22556
22557 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22558
22559 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22560
22561 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22562 of floor.
22563
22564 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22565
22566 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22567 Define only for libc.so.
22568
22569 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22570
22571 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22572 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22573 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22574 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22575 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22576
22577 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22578
22579 [BZ #5997]
22580 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22581
22582 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22583
22584 [BZ libc/19170]
22585 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22586 PREINIT_FUNCTION_WEAK is nonzero.
22587 (gmon_initializer): New function. Put procedure label for it in
22588 .init_array section.
22589 (_init): Don't call PREINIT_FUNCTION.
22590 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22591 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22592 value when map argument is null.
22593
22594 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22595 depi instruction from PIC pc-relative sequence.
22596 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22597 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22598 (elf_machine_load_address): Likewise.
22599 (elf_machine_runtime_setup): Likewise.
22600
22601 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22602
22603 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22604 <libm-alias-double.h>.
22605 (logb): Define using libm_alias_double.
22606 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22607 <libm-alias-double.h>.
22608 (copysign): Define using libm_alias_double.
22609 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22610 <libm-alias-double.h>.
22611 (llrint): Define using libm_alias_double.
22612 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22613 <libm-alias-double.h>.
22614 (llround): Define using libm_alias_double.
22615 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22616 <libm-alias-double.h>.
22617 (lrint): Define using libm_alias_double.
22618 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22619 <libm-alias-double.h>.
22620 (lround): Define using libm_alias_double.
22621 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22622 Include <libm-alias-double.h>.
22623 (copysign): Define using libm_alias_double.
22624 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22625 Include <libm-alias-double.h>.
22626 (llrint): Define using libm_alias_double.
22627 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22628 Include <libm-alias-double.h>.
22629 (llround): Define using libm_alias_double.
22630 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22631 <libm-alias-double.h>.
22632 (logb): Define using libm_alias_double.
22633 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22634 Include <libm-alias-double.h>.
22635 (lrint): Define using libm_alias_double.
22636 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22637 Include <libm-alias-double.h>.
22638 (lround): Define using libm_alias_double.
22639 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22640 <libm-alias-double.h>.
22641 (llrint): Define using libm_alias_double.
22642 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22643 <libm-alias-double.h>.
22644 (llround): Define using libm_alias_double.
22645 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22646 <libm-alias-double.h>.
22647 (llround): Define using libm_alias_double.
22648 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22649 <libm-alias-double.h>.
22650 (lround): Define using libm_alias_double.
22651 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22652 <libm-alias-double.h>.
22653 (copysign): Define using libm_alias_double.
22654 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22655 <libm-alias-double.h>.
22656 (llrint): Define using libm_alias_double.
22657 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22658 <libm-alias-double.h>.
22659 (llround): Define using libm_alias_double.
22660 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22661 <libm-alias-double.h>.
22662 (lrint): Define using libm_alias_double.
22663 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22664 <libm-alias-double.h>.
22665 (lround): Define using libm_alias_double.
22666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22667 <libm-alias-double.h>.
22668 (copysign): Define using libm_alias_double.
22669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22670 <libm-alias-double.h>.
22671 (llrint): Define using libm_alias_double.
22672 (lrint): Likewise.
22673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22674 <libm-alias-double.h>.
22675 (llround): Define using libm_alias_double.
22676 (lround): Likewise.
22677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22678 <libm-alias-double.h>.
22679 (logb): Define using libm_alias_double.
22680 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22681 <libm-alias-double.h>.
22682 (copysign): Define using libm_alias_double.
22683 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22684 <libm-alias-double.h>.
22685 (llrint): Define using libm_alias_double.
22686 (lrint): Likewise.
22687 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22688 <libm-alias-double.h>.
22689 (llround): Define using libm_alias_double.
22690 (lround): Likewise.
22691 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22692 <libm-alias-double.h>.
22693 (llround): Define using libm_alias_double.
22694 (lround): Likewise.
22695 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22696 <libm-alias-double.h>.
22697 (copysign): Define using libm_alias_double.
22698 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22699 <libm-alias-double.h>.
22700 (llrint): Define using libm_alias_double.
22701 (lrint): Likewise.
22702 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22703 <libm-alias-double.h>.
22704 (llround): Define using libm_alias_double.
22705 (lround): Likewise.
22706 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22707 <libm-alias-double.h>.
22708 (llrint): Define using libm_alias_double.
22709 (lrint): Likewise.
22710 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22711 <libm-alias-double.h>.
22712 (llround): Define using libm_alias_double.
22713 (lround): Likewise.
22714
22715 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22716
22717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22718 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22719 compat symbol based on llround.
22720
22721 * sysdeps/powerpc/power7/fpu/s_logb.c
22722 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22723 symbol based on __logb, not on logb.
22724 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22725 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22726 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22727 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22728
22729 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22730 (rint): Define using libm_alias_double.
22731 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22732 <libm-alias-double.h>.
22733 (modf): Define using libm_alias_double.
22734 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22735 <libm-alias-double.h>.
22736 (ceil): Define using libm_alias_double.
22737 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22738 <libm-alias-double.h>.
22739 (floor): Define using libm_alias_double.
22740 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22741 <libm-alias-double.h>.
22742 (nearbyint): Define using libm_alias_double.
22743 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22744 <libm-alias-double.h>.
22745 (rint): Define using libm_alias_double.
22746 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22747 <libm-alias-double.h>.
22748 (round): Define using libm_alias_double.
22749 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22750 <libm-alias-double.h>.
22751 (trunc): Define using libm_alias_double.
22752 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22753 <libm-alias-double.h>.
22754 (ceil): Define using libm_alias_double.
22755 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22756 Include <libm-alias-double.h>.
22757 (floor): Define using libm_alias_double.
22758 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22759 <libm-alias-double.h>.
22760 (modf): Define using libm_alias_double.
22761 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22762 Include <libm-alias-double.h>.
22763 (round): Define using libm_alias_double.
22764 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22765 Include <libm-alias-double.h>.
22766 (trunc): Define using libm_alias_double.
22767 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22768 <libm-alias-double.h>.
22769 (ceil): Define using libm_alias_double.
22770 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22771 <libm-alias-double.h>.
22772 (floor): Define using libm_alias_double.
22773 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22774 <libm-alias-double.h>.
22775 (round): Define using libm_alias_double.
22776 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22777 <libm-alias-double.h>.
22778 (trunc): Define using libm_alias_double.
22779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22780 <libm-alias-double.h>.
22781 (ceil): Define using libm_alias_double.
22782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22783 <libm-alias-double.h>.
22784 (floor): Define using libm_alias_double.
22785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22786 <libm-alias-double.h>.
22787 (modf): Define using libm_alias_double.
22788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22789 <libm-alias-double.h>.
22790 (round): Define using libm_alias_double.
22791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22792 <libm-alias-double.h>.
22793 (trunc): Define using libm_alias_double.
22794 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22795 <libm-alias-double.h>.
22796 (ceil): Define using libm_alias_double.
22797 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22798 <libm-alias-double.h>.
22799 (floor): Define using libm_alias_double.
22800 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22801 <libm-alias-double.h>.
22802 (nearbyint): Define using libm_alias_double.
22803 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22804 <libm-alias-double.h>.
22805 (rint): Define using libm_alias_double.
22806 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22807 <libm-alias-double.h>.
22808 (round): Define using libm_alias_double.
22809 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22810 <libm-alias-double.h>.
22811 (trunc): Define using libm_alias_double.
22812 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22813 <libm-alias-double.h>.
22814 (ceil): Define using libm_alias_double.
22815 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22816 <libm-alias-double.h>.
22817 (floor): Define using libm_alias_double.
22818 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22819 <libm-alias-double.h>.
22820 (round): Define using libm_alias_double.
22821 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22822 <libm-alias-double.h>.
22823 (trunc): Define using libm_alias_double.
22824
22825 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22826 (fabs): Define using libm_alias_double.
22827 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22828 (fma): Define using libm_alias_double.
22829 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22830 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22831 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22832 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22833
22834 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22835
22836 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22837
22838 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22839 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22840 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22841
22842 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22843 due redirect macro.
22844
22845 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22846
22847 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22848
22849 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22850
22851 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22852 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22853 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22854 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22855
22856 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22857 (libm-sysdep_routines): Add s_nearbyintf-generic and
22858 s_nearbyint-generic.
22859 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22860 New file.
22861 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22862 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22863 Likewise.
22864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22865 Likewise.
22866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22867 file.
22868 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22869 Likewise.
22870
22871 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22872 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22874 file.
22875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22877 Likewise.
22878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22880 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22881
22882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22883 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22884 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22885 file.
22886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22887 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22888 Likewise.
22889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22890 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22892
22893 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22894 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22895 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22896 file.
22897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22898 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22899 Likewise.
22900 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22901 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22903
22904 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22905 (sysdep_calls): New rule.
22906 (sysdep_routines): Use sysdep_calls as base.
22907 (libm-sysdep_routines): Add generic rule for symbols shared with
22908 libc. Add s_copysign-generic and s_copysign-generic objects.
22909 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22910 New file.
22911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22912 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22913 Likewise.
22914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22915 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22916 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22917
22918 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22919
22920 [BZ #22519]
22921 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22922 the list of locales to be built for testing.
22923 * localedata/is_IS.UTF-8.in: New file.
22924 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22925 on iso14651_t1.
22926
22927 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22928
22929 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22930 <libm-alias-float.h>.
22931 (fabsf): Define using libm_alias_float.
22932
22933 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22934
22935 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22936
22937 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22938
22939 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22940 <libm-alias-float.h>.
22941 (fabsf): Define using libm_alias_float.
22942 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22943 <libm-alias-float.h>.
22944 (lrintf): Define using libm_alias_float.
22945 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22946 <libm-alias-float.h>.
22947 (rintf): Define using libm_alias_float.
22948
22949 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22950 <libm-alias-double.h>.
22951 (fabs): Define using libm_alias_double.
22952 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22953 <libm-alias-double.h>.
22954 (lrint): Define using libm_alias_double.
22955 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22956 <libm-alias-double.h>.
22957 (rint): Define using libm_alias_double.
22958
22959 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22960 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22961 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22962 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22963 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22964 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22965 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22966 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22967 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22968 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22969 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22970 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22971 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22972 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22973 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22974 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22975 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22976 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22977 s_atan_template.c.
22978 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22979 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22980 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22981 s_ceil_template.c.
22982 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22983 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22984 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22985 s_cos_template.c.
22986 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22987 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22988 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22989 s_expm1_template.c.
22990 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22991 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22992 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22993 s_fabs_template.c.
22994 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22995 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22996 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22997 s_floor_template.c.
22998 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22999 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
23000 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
23001 s_frexp_template.c.
23002 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
23003 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
23004 s_lrint_template.c.
23005 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
23006 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
23007 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
23008 s_modf_template.c.
23009 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
23010 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
23011 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
23012 s_nearbyint_template.c.
23013 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
23014 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
23015 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
23016 s_remquo_template.c.
23017 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
23018 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
23019 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
23020 s_rint_template.c.
23021 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
23022 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
23023 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
23024 s_sin_template.c.
23025 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
23026 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
23027 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
23028 s_sincos_template.c.
23029 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
23030 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
23031 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
23032 s_tan_template.c.
23033 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
23034 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
23035 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
23036 s_tanh_template.c.
23037 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
23038 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
23039 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
23040 s_trunc_template.c.
23041 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
23042 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
23043 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
23044 s_atan.c instead of including s_atan.c.
23045 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
23046 s_atanf.c instead of including s_atanf.c.
23047 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
23048 s_atanl.c instead of including s_atanl.c.
23049 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
23050 instead of s_atan.c.
23051 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
23052 instead of s_atanf.c.
23053 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
23054 instead of s_atanl.c.
23055
23056 * scripts/update-copyrights: Do not handle intl/plural.c
23057 specially.
23058
23059 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
23060
23061 [BZ #22432]
23062 * configure.ac (BISON): Require to be present.
23063 * configure: Regenerated.
23064 * intl/Makefile (generated): Add plural.c.
23065 [$(BISON) != no]: Make code unconditional.
23066 (plural.c): Change rule to $(objpfx)plural.c.
23067 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
23068 * intl/plural.c: Remove.
23069 * manual/install.texi (Tools for Compilation): Document bison as
23070 required.
23071 * INSTALL: Regenerated.
23072
23073 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23074
23075 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
23076 <libm-alias-double.h>.
23077 (llrint): Define using libm_alias_double.
23078 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
23079 <libm-alias-float.h>.
23080 (llrintf): Define using libm_alias_float.
23081 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
23082 <libm-alias-ldouble.h>.
23083 (llrintl): Define using libm_alias_ldouble.
23084
23085 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
23086 declare_mgen_alias instead of weak_alias.
23087 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
23088 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
23089 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
23090
23091 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23092
23093 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23094 Add add_n-generic.
23095 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
23096 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
23097 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
23098
23099 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23100 Add submul_1-generic.
23101 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
23102 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
23103 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
23104
23105 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23106 Add addmul_1-generic.
23107 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
23108 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
23109 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
23110
23111 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23112 Add sub_n-generic.
23113 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
23114 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
23115 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
23116
23117 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
23118 Add mul_1-generic.
23119 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
23120 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
23121 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
23122
23123 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23124
23125 According to CLDR, collation rules for Serbian and Bosnian
23126 should be the same as for Croatian.
23127
23128 [BZ #22534]
23129 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23130 and to the list of locales to be built for testing.
23131 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23132 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23133 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23134 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23135
23136 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23137
23138 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23139 to make test case pass.
23140 * localedata/hr_HR.UTF-8.in: Add more test strings.
23141
23142 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23143
23144 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23145
23146 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23147
23148 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23149 the list of locales to built for testing.
23150 * localedata/hr_HR.UTF-8.in: New file.
23151
23152 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23153
23154 [BZ #10580]
23155 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23156 iso14651_t1.
23157 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23158 CLDR (except use ligatures for the digraphs, CLDR does not use
23159 the ligatures), add first_workday, some fixes in the date and time
23160 formats.
23161 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23162 for Đ and đ.
23163 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23164 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23165 Add int_p_cs_precedes and int_n_cs_precedes.
23166 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23167 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23168 LC_MONETARY now).
23169 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23170 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23171 name_miss.
23172 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23173 and lang_lib. Change postal_fmt.
23174
23175 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23176
23177 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23178 <setjmp.h>.
23179 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23180 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23181 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23182 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23183 * sysdeps/generic/setjmpP.h: New file.
23184 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23185 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23186 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23187 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23188 Add jmp_buf-ssp.sym.
23189 (tests): Add tst-saved_mask-1.
23190
23191 2017-11-30 Arjun Shankar <arjun@redhat.com>
23192
23193 [BZ #22375]
23194 CVE-2017-17426
23195 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23196 instead of request2size.
23197
23198 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23199
23200 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23201 (__lllrint): Remove alias.
23202 (lllrint): Likewise.
23203 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23204 (__lllrintf): Likewise.
23205 (lllrintf): Likewise.
23206
23207 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23208 <libm-alias-float.h>.
23209 (copysignf): Define using libm_alias_float.
23210 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23211 <libm-alias-float.h>.
23212 (fabsf): Define using libm_alias_float.
23213 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23214 Include <libm-alias-float.h>.
23215 (copysignf): Define using libm_alias_float.
23216 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23217 <libm-alias-float.h>.
23218 (fabsf): Define using libm_alias_float.
23219 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23220 <libm-alias-float.h>.
23221 (fdimf): Define using libm_alias_float.
23222 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23223 <libm-alias-float.h>.
23224 (fmaf): Define using libm_alias_float.
23225 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23226 <libm-alias-float.h>.
23227 (llrintf): Define using libm_alias_float.
23228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23229 Include <libm-alias-float.h>.
23230 (nearbyintf): Define using libm_alias_float.
23231 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23232 <libm-alias-float.h>.
23233 (rintf): Define using libm_alias_float.
23234 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23235 <libm-alias-float.h>.
23236 (llrintf): Define using libm_alias_float.
23237 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23238 <libm-alias-float.h>.
23239 (lrintf): Define using libm_alias_float.
23240 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23241 <libm-alias-float.h>.
23242 (nearbyintf): Define using libm_alias_float.
23243 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23244 <libm-alias-float.h>.
23245 (rintf): Define using libm_alias_float.
23246 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23247 <libm-alias-float.h>.
23248 (ceilf): Define using libm_alias_float.
23249 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23250 <libm-alias-float.h>.
23251 (floorf): Define using libm_alias_float.
23252 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23253 <libm-alias-float.h>.
23254 (fmaf): Define using libm_alias_float.
23255 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23256 <libm-alias-float.h>.
23257 (lrintf): Define using libm_alias_float.
23258 (llrintf): Likewise.
23259 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23260 <libm-alias-float.h>.
23261 (nearbyintf): Define using libm_alias_float.
23262 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23263 <libm-alias-float.h>.
23264 (rintf): Define using libm_alias_float.
23265 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23266 <libm-alias-float.h>.
23267 (truncf): Define using libm_alias_float.
23268 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23269 <libm-alias-float.h>.
23270 (copysignf): Define using libm_alias_float.
23271 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23272 <libm-alias-float.h>.
23273 (fabsf): Define using libm_alias_float.
23274 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23275 <libm-alias-float.h>.
23276 (lrintf): Define using libm_alias_float.
23277 (llrintf): Likewise.
23278 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23279 <libm-alias-float.h>.
23280 (nearbyintf): Define using libm_alias_float.
23281 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23282 <libm-alias-float.h>.
23283 (rintf): Define using libm_alias_float.
23284
23285 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23286
23287 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23288 <libm-alias-double.h>.
23289 (copysign): Define using libm_alias_double.
23290 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23291 <libm-alias-double.h>.
23292 (fabs): Define using libm_alias_double.
23293 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23294 Include <libm-alias-double.h>.
23295 (copysign): Define using libm_alias_double.
23296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23297 <libm-alias-double.h>.
23298 (fabs): Define using libm_alias_double.
23299 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23300 <libm-alias-double.h>.
23301 (fdim): Define using libm_alias_double.
23302 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23303 <libm-alias-double.h>.
23304 (fma): Define using libm_alias_double.
23305 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23306 <libm-alias-double.h>.
23307 (llrint): Define using libm_alias_double.
23308 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23309 Include <libm-alias-double.h>.
23310 (nearbyint): Define using libm_alias_double.
23311 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23312 <libm-alias-double.h>.
23313 (rint): Define using libm_alias_double.
23314 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23315 <libm-alias-double.h>.
23316 (fabs): Define using libm_alias_double.
23317 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23318 <libm-alias-double.h>.
23319 (llrint): Define using libm_alias_double.
23320 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23321 <libm-alias-double.h>.
23322 (nearbyint): Define using libm_alias_double.
23323 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23324 <libm-alias-double.h>.
23325 (rint): Define using libm_alias_double.
23326 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23327 <libm-alias-double.h>.
23328 (ceil): Define using libm_alias_double.
23329 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23330 <libm-alias-double.h>.
23331 (floor): Define using libm_alias_double.
23332 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23333 <libm-alias-double.h>.
23334 (fma): Define using libm_alias_double.
23335 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23336 <libm-alias-double.h>.
23337 (lrint): Define using libm_alias_double.
23338 (llrint): Likewise.
23339 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23340 <libm-alias-double.h>.
23341 (nearbyint): Define using libm_alias_double.
23342 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23343 <libm-alias-double.h>.
23344 (rint): Define using libm_alias_double.
23345 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23346 <libm-alias-double.h>.
23347 (trunc): Define using libm_alias_double.
23348 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23349 <libm-alias-double.h>.
23350 (copysign): Define using libm_alias_double.
23351 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23352 <libm-alias-double.h>.
23353 (fabs): Define using libm_alias_double.
23354 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23355 <libm-alias-double.h>.
23356 (lrint): Define using libm_alias_double.
23357 (llrint): Likewise.
23358 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23359 <libm-alias-double.h>.
23360 (nearbyint): Define using libm_alias_double.
23361 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23362 <libm-alias-double.h>.
23363 (rint): Define using libm_alias_double.
23364
23365 [BZ #22229]
23366 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23367 <math_ldbl_opt.h>.
23368 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23369
23370 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23371 SPARC --disable-multi-arch glibc variants.
23372
23373 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23374 <libm-alias-float.h>.
23375 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23376 if [SHARED].
23377 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23378 <libm-alias-float.h>.
23379 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23380 if [SHARED].
23381 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23382 <libm-alias-float.h>.
23383 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23384 if [SHARED].
23385 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23386 <libm-alias-float.h>.
23387 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23388 if [SHARED].
23389 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23390 <libm-alias-float.h>.
23391 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23392 if [SHARED].
23393 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23394 <libm-alias-float.h>.
23395 (ceilf): Define using libm_alias_float.
23396 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23397 <libm-alias-float.h>.
23398 (floorf): Define using libm_alias_float.
23399 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23400 <libm-alias-float.h>.
23401 (fmaf): Define using libm_alias_float.
23402 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23403 <libm-alias-float.h>.
23404 (nearbyintf): Define using libm_alias_float.
23405 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23406 <libm-alias-float.h>.
23407 (rintf): Define using libm_alias_float.
23408 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23409 <libm-alias-float.h>.
23410 (truncf): Define using libm_alias_float.
23411 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23412 (copysignf): Define using libm_alias_float.
23413 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23414 (cosf): Define using libm_alias_float.
23415 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23416 (fabsf): Define using libm_alias_float.
23417 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23418 (fmaxf): Define using libm_alias_float.
23419 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23420 (fminf): Define using libm_alias_float.
23421 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23422 (llrintf): Define using libm_alias_float.
23423 [!__ILP32__] (lrintf): Likewise.
23424 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23425 (sincosf): Define using libm_alias_float.
23426 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23427 (sinf): Define using libm_alias_float.
23428 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23429 (lrintf): Define using libm_alias_float.
23430
23431 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23432 <libm-alias-double.h>.
23433 (atan): Define using libm_alias_double.
23434 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23435 <libm-alias-double.h>.
23436 (ceil): Define using libm_alias_double.
23437 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23438 <libm-alias-double.h>.
23439 (floor): Define using libm_alias_double.
23440 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23441 <libm-alias-double.h>.
23442 (fma): Define using libm_alias_double.
23443 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23444 <libm-alias-double.h>.
23445 (nearbyint): Define using libm_alias_double.
23446 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23447 <libm-alias-double.h>.
23448 (rint): Define using libm_alias_double.
23449 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23450 <libm-alias-double.h>.
23451 (sin): Define using libm_alias_double.
23452 (cos): Likewise.
23453 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23454 <libm-alias-double.h>.
23455 (tan): Define using libm_alias_double.
23456 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23457 <libm-alias-double.h>.
23458 (trunc): Define using libm_alias_double.
23459 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23460 (copysign): Define using libm_alias_double.
23461 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23462 (fabs): Define using libm_alias_double.
23463 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23464 (fmax): Define using libm_alias_double.
23465 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23466 (fmin): Define using libm_alias_double.
23467 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23468 (llrint): Define using libm_alias_double.
23469 [!__ILP32__] (lrint): Likewise.
23470 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23471 (lrint): Define using libm_alias_double.
23472
23473 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23474
23475 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23476 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23477 objects.
23478 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23479 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23480 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23481 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23482 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23483 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23484
23485 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23486 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23487 objects.
23488 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23489 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23490 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23491 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23492 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23493 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23494
23495 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23496 (libm-sysdep_routines): Add s_nearbyint-generic and
23497 s_nearbyintf-generic objects.
23498 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23499 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23500 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23501 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23502 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23503 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23504
23505 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23506 Add s_finitef-generic and s_finite-generic objects.
23507 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23508 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23509 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23510 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23511 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23512 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23513
23514 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23515 Add s_isinff-generic and s_isinf-generic objects.
23516 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23517 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23518 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23519 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23520 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23521 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23522
23523 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23524 Add s_isnanf-generic and s_isnan-generic objects.
23525 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23526 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23527 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23528 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23529 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23530 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23531
23532 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23533 macro.
23534 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23535 rule.
23536 (sysdep_routines): Use sysdep_calls as base.
23537 (libm-sysdep_routines): Add generic rule for symbols shared with
23538 libc. Add s_signbit-generic and s_signbitf-generic objects.
23539 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23540 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23541 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23542 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23543 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23544 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23545
23546 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23547
23548 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23549 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23550 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23551 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23552 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23553 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23554 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23555 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23556 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23557 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23558 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23559 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23560 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23561 libm_alias_float_r.
23562 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23563 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23564 (logf): Likewise.
23565 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23566 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23567 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23568 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23569 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23570 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23571 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23572 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23573 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23574 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23575 libm_alias_float.
23576 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23577 (cosf): Likewise.
23578 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23579 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23580 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23581 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23582 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23583 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23584 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23585 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23586 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23587 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23588 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23589 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23590 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23591 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23592 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23593 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23594 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23595 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23596 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23597 libm_alias_float.
23598 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23599 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23600 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23601 * sysdeps/ia64/fpu/w_lgammaf_main.c
23602 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23603 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23604
23605 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23606 Alexandre Oliva <aoliva@redhat.com>
23607
23608 [BZ #17750]
23609 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23610 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23611 accents sorting.
23612 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23613 sorting.
23614 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23615 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23616 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23617 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23618 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23619 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23620 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23621 instead of “ifdef DIACRIT_BACKWARD”.
23622
23623 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23624
23625 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23626 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23627 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23628 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23629 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23630 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23631 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23632 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23633 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23634 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23635 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23636 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23637 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23638 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23639 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23640 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23641 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23642 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23643 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23644 ($(have-as-vis3) == yes): Remove conditional.
23645 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23646 Likewise.
23647 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23648 file.
23649 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23650 file.
23651 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23652 file.
23653 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23654 file.
23655 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23656 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23657 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23658 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23659 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23660 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23661 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23662 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23663
23664 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23665
23666 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23667 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23668 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23669 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23670 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23671 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23672 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23673 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23674 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23675 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23676 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23677 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23678 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23679 libm_alias_double_r.
23680 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23681 (log): Likewise.
23682 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23683 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23684 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23685 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23686 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23687 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23688 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23689 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23690 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23691 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23692 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23693 libm_alias_double.
23694 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23695 (cos): Likewise.
23696 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23697 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23698 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23699 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23700 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23701 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23702 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23703 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23704 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23705 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23706 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23707 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23708 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23709 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23710 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23711 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23712 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23713 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23714 libm_alias_double.
23715 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23716 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23717 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23718 * sysdeps/ia64/fpu/w_lgamma_main.c
23719 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23720 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23721
23722 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23723
23724 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23725 address of $global$ into %dp register earlier. Use pc-relative
23726 instruction sequence for PIC case.
23727
23728 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23729
23730 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23731 (asinhf): Define using libm_alias_float.
23732 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23733 (atanf): Define using libm_alias_float.
23734 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23735 (cbrtf): Define using libm_alias_float.
23736 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23737 (ceilf): Define using libm_alias_float.
23738 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23739 (copysignf): Define using libm_alias_float.
23740 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23741 (expm1f): Define using libm_alias_float.
23742 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23743 (fabsf): Define using libm_alias_float.
23744 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23745 (floorf): Define using libm_alias_float.
23746 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23747 (fmaxf): Define using libm_alias_float.
23748 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23749 (fminf): Define using libm_alias_float.
23750 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23751 (frexpf): Define using libm_alias_float.
23752 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23753 (llrintf): Define using libm_alias_float.
23754 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23755 (logbf): Define using libm_alias_float.
23756 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23757 (lrintf): Define using libm_alias_float.
23758 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23759 (nearbyintf): Define using libm_alias_float.
23760 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23761 (remquof): Define using libm_alias_float.
23762 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23763 (rintf): Define using libm_alias_float.
23764 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23765 (truncf): Define using libm_alias_float.
23766 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23767 <libm-alias-float.h>.
23768 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23769 if [SHARED].
23770 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23771 <libm-alias-float.h>.
23772 (expf): Define using libm_alias_float, or libm_alias_float_other
23773 if [SHARED].
23774 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23775 <libm-alias-float.h>.
23776 (log2f): Define using libm_alias_float, or libm_alias_float_other
23777 if [SHARED].
23778 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23779 <libm-alias-float.h>.
23780 (logf): Define using libm_alias_float, or libm_alias_float_other
23781 if [SHARED].
23782 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23783 <libm-alias-float.h>.
23784 (powf): Define using libm_alias_float, or libm_alias_float_other
23785 if [SHARED].
23786 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23787 <libm-alias-float.h>.
23788 (cosf): Define using libm_alias_float.
23789 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23790 <libm-alias-float.h>.
23791 (sincosf): Define using libm_alias_float.
23792 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23793 <libm-alias-float.h>.
23794 (sinf): Define using libm_alias_float.
23795 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23796 (fmaxf): Define using libm_alias_float.
23797 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23798 (fminf): Define using libm_alias_float.
23799 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23800 <libm-alias-float.h>.
23801 (fmaf): Define using libm_alias_float.
23802
23803 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23804 (asinh): Define using libm_alias_double.
23805 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23806 (atan): Define using libm_alias_double.
23807 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23808 (cbrt): Define using libm_alias_double.
23809 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23810 (ceil): Define using libm_alias_double.
23811 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23812 (copysign): Define using libm_alias_double.
23813 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23814 (expm1): Define using libm_alias_double.
23815 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23816 (fabs): Define using libm_alias_double.
23817 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23818 (fdim): Define using libm_alias_double.
23819 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23820 (floor): Define using libm_alias_double.
23821 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23822 (fmax): Define using libm_alias_double.
23823 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23824 (fmin): Define using libm_alias_double.
23825 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23826 (frexp): Define using libm_alias_double.
23827 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23828 (llrint): Define using libm_alias_double.
23829 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23830 (logb): Define using libm_alias_double.
23831 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23832 (lrint): Define using libm_alias_double.
23833 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23834 (nearbyint): Define using libm_alias_double.
23835 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23836 (remquo): Define using libm_alias_double.
23837 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23838 (rint): Define using libm_alias_double.
23839 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23840 (trunc): Define using libm_alias_double.
23841 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23842 (fmax): Define using libm_alias_double.
23843 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23844 (fmin): Define using libm_alias_double.
23845 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23846 (fma): Define using libm_alias_double.
23847
23848 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23849
23850 [BZ #22370]
23851 * elf/dl-hwcaps.c (ROUND): Removed.
23852 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23853 and ELF_NOTE_NEXT_OFFSET.
23854 * elf/dl-load.c (ROUND): Removed.
23855 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23856 * elf/readelflib.c (ROUND): Removed.
23857 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23858 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23859 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23860 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23861
23862 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23863
23864 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23865 [!__fmaf] (fmaf): Define using libm_alias_float.
23866
23867 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23868 [!__fma] (fma): Define using libm_alias_double.
23869 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23870
23871 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23872
23873 [BZ #22336]
23874 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23875 and implement the collation rules for cs from CLDR on top of that.
23876 * Makefile: Add cs_CZ.UTF-8 to test-input.
23877 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23878
23879 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23880
23881 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23882
23883 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23884 Icarus Sparry <icarus.w.sparry@intel.com>
23885
23886 * benchtests/Makefile:Add BENCHSET to allow subsets of
23887 benchmarks to be run.
23888 * benchtests/README: Add documentation for: Running subsets of
23889 benchmarks.
23890
23891 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23892
23893 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23894 range of tests names.
23895
23896 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23897 result from property and remove "max", min" and "mean" from
23898 required properties based on benchtests/bench-skeleton.c.
23899
23900 2017-11-28 Florian Weimer <fweimer@redhat.com>
23901
23902 [BZ #20826]
23903 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23904 due to Internet requirement.
23905 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23906 tst-getaddrinfo5.
23907 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23908
23909 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23910
23911 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23912 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23913 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23914 (sysdep_routines): Add memset-ultra1.
23915 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23916 file.
23917 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23918 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23919 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23920 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23921 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23922 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23923 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23924 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23925
23926 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23927 file.
23928 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23929 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23930 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23931 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23932 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23933 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23934 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23935 macro.
23936 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23937 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23938 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23939 (sysdep_routines): Add memcpy-ultra1.
23940 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23941 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23942
23943 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23944
23945 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23946 (cfloat_versions): Take function argument without trailing 'f'.
23947 Call libm_alias_float_other.
23948 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23949 * sysdeps/alpha/fpu/cargf.c: Likewise.
23950 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23951 * sysdeps/alpha/fpu/conjf.c: Likewise.
23952 * sysdeps/alpha/fpu/crealf.c: Likewise.
23953 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23954 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23955 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23956 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23957 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23958 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23959 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23960 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23961 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23962 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23963 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23964 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23965 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23966 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23967 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23968 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23969 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23970 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23971 (clog10f): Use libm_alias_float_other.
23972 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23973 (ceilf): Define using libm_alias_float.
23974 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23975 (copysignf): Define using libm_alias_float.
23976 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23977 (fabsf): Define using libm_alias_float.
23978 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23979 (floorf): Define using libm_alias_float.
23980 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23981 (fmaxf): Define using libm_alias_float.
23982 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23983 (fminf): Define using libm_alias_float.
23984 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23985 (lrintf): Define using libm_alias_float.
23986 (llrintf): Likewise.
23987 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23988 (lroundf): Define using libm_alias_float.
23989 (llroundf): Likewise.
23990 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23991 (rintf): Define using libm_alias_float.
23992 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23993 (truncf): Define using libm_alias_float.
23994
23995 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23996 (ceilf): Define using libm_alias_float.
23997 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23998 (floorf): Define using libm_alias_float.
23999 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
24000 (fmaf): Define using libm_alias_float.
24001 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
24002 (fmaxf): Define using libm_alias_float.
24003 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
24004 (fminf): Define using libm_alias_float.
24005 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
24006 (llrintf): Define using libm_alias_float.
24007 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
24008 (llroundf): Define using libm_alias_float.
24009 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
24010 (lrintf): Define using libm_alias_float.
24011 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
24012 (lroundf): Define using libm_alias_float.
24013 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
24014 <libm-alias-float.h>.
24015 (nearbyintf): Define using libm_alias_float.
24016 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
24017 (rintf): Define using libm_alias_float.
24018 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
24019 (roundf): Define using libm_alias_float.
24020 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
24021 (truncf): Define using libm_alias_float.
24022
24023 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
24024 (ceil): Define using libm_alias_double.
24025 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
24026 (copysign): Define using libm_alias_double.
24027 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
24028 (fabs): Define using libm_alias_double.
24029 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
24030 (floor): Define using libm_alias_double.
24031 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
24032 (fmax): Define using libm_alias_double.
24033 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
24034 (fmin): Define using libm_alias_double.
24035 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
24036 (lrint): Define using libm_alias_double.
24037 (llrint): Likewise.
24038 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
24039 (lround): Define using libm_alias_double.
24040 (llround): Likewise.
24041 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
24042 (rint): Define using libm_alias_double.
24043 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
24044 (trunc): Define using libm_alias_double.
24045
24046 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
24047 (libm_alias_double_r): Add semicolon after weak_alias call.
24048
24049 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24050
24051 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
24052 (ceil): Define using libm_alias_double.
24053 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
24054 (floor): Define using libm_alias_double.
24055 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
24056 (fma): Define using libm_alias_double.
24057 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
24058 (fmax): Define using libm_alias_double.
24059 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
24060 (fmin): Define using libm_alias_double.
24061 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
24062 (llrint): Define using libm_alias_double.
24063 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
24064 (llround): Define using libm_alias_double.
24065 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
24066 (lrint): Define using libm_alias_double.
24067 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
24068 (lround): Define using libm_alias_double.
24069 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
24070 (nearbyint): Define using libm_alias_double.
24071 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
24072 (rint): Define using libm_alias_double.
24073 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
24074 (round): Define using libm_alias_double.
24075 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
24076 (trunc): Define using libm_alias_double.
24077
24078 2017-11-27 Florian Weimer <fweimer@redhat.com>
24079
24080 * sysdeps/unix/sysv/linux/mlock2.c: New file.
24081 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
24082 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
24083 (tests): Add tst-mlock2.
24084 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
24085 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
24086 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
24087 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
24088 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
24089 for mlock. Document mlock2.
24090
24091 2017-11-27 Joseph Myers <joseph@codesourcery.com>
24092
24093 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
24094 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
24095 Likewise.
24096 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
24097 Likewise.
24098 * sysdeps/x86/Makeconfig: New file.
24099 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
24100 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24101 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
24102 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24103 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24104 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24105 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
24106 Likewise.
24107 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24108 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24109 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24110 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24111 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24112 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
24113 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
24114 * manual/math.texi (Mathematics): Document support for _Float64x.
24115 * math/Versions (GLIBC_2.27): Add _Float64x functions.
24116 * stdlib/Versions (GLIBC_2.27): Likewise.
24117 * wcsmbs/Versions (GLIBC_2.27): Likewise.
24118 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24119 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24120 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24121 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24122 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
24123 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
24124 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
24125 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24126 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24127 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24128 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24129 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24130 Likewise.
24131 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24132 Likewise.
24133 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24134 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24135 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24136 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24137 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24138 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24139 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24140 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24141 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24142 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24143 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24144 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24145 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24146 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24147
24148 2017-11-27 Andreas Schwab <schwab@suse.de>
24149
24150 * elf/Makefile (dl-routines): Add dl-sort-maps.
24151 * elf/dl-sort-maps.c: New file.
24152 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24153 (_dl_sort_maps): Declare.
24154 * elf/dl-fini.c (_dl_sort_fini): Remove.
24155 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24156 * elf/dl-close.c (_dl_close_worker): Likewise.
24157 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24158 open-coding it.
24159 * elf/dl-open.c (dl_open_worker): Likewise.
24160
24161 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24162
24163 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24164 using libm_alias_float128.
24165 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24166 Likewise.
24167 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24168 Likewise.
24169 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24170 (setpayloadsigf128): Likewise.
24171 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24172 Likewise.
24173 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24174 Likewise.
24175
24176 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24177 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24178 -mfloat128 to CFLAGS.
24179 ($(foreach
24180 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24181 Likewise.
24182 (CFLAGS-libm-test-support-float64x.c): New variable.
24183 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24184 $(f128-loader-link) to gnulib-tests.
24185
24186 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24187 (libm_alias_float128_other_r): If
24188 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24189 alias.
24190 (libm_alias_float128_r): Add semicolon after weak_alias call.
24191 * sysdeps/generic/libm-alias-ldouble.h
24192 (libm_alias_ldouble_other_r_f128): New macro.
24193 (libm_alias_ldouble_other_r_f64x): Likewise.
24194 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24195 and libm_alias_ldouble_other_r_f64x.
24196 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24197 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24198 (libm_alias_ldouble_other_r_f128): New macro.
24199 (libm_alias_ldouble_other_r_f64x): Likewise.
24200 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24201 and libm_alias_ldouble_other_r_f64x.
24202
24203 * stdlib/strfroml.c: Always include <stdlib.h>.
24204 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24205 undefine as macro and define as weak alias.
24206 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24207 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24208 <stdlib.h>.
24209 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24210 Define and later undefine as macro and define as weak alias.
24211
24212 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24213 Define and later undefine as macro. Define as weak alias if
24214 [!USE_WIDE_CHAR].
24215 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24216 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24217 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24218 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24219 Define and later undefine as macro. Define as weak alias if
24220 [!USE_WIDE_CHAR].
24221 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24222 Define and later undefine as macro. Define as weak alias if
24223 [USE_WIDE_CHAR].
24224 * sysdeps/ieee754/float128/strtof128_l.c
24225 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24226 Define and later undefine as macro. Define as weak alias if
24227 [!USE_WIDE_CHAR].
24228 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24229 Define and later undefine as macro. Define as weak alias if
24230 [USE_WIDE_CHAR].
24231 * sysdeps/ieee754/ldbl-128/strtold_l.c
24232 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24233 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24234 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24235 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24236 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24237 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24238 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24239 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24240 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24241 * sysdeps/ieee754/ldbl-96/strtold_l.c
24242 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24243 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24244 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24245 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24246
24247 * math/test-float64x.h: New file.
24248 * math/Makefile (type-float64x-yes): New variable.
24249 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24250
24251 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24252 function-like macro.
24253 (min_of_type_): Likewise.
24254 (min_of_type_l): Likewise.
24255 (min_of_type_f128): Likewise.
24256 (min_of_type): Pass () as last argument of __MATH_TG.
24257
24258 * stdlib/tst-strtod-round-skeleton.c
24259 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24260 headers.
24261
24262 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24263 for combinations of long double with _Float64 and _Float64x.
24264
24265 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24266 (__DECL_SIMD_cosf32): Likewise.
24267 (__DECL_SIMD_cosf64): Likewise.
24268 (__DECL_SIMD_cosf32x): Likewise.
24269 (__DECL_SIMD_cosf64x): Likewise.
24270 (__DECL_SIMD_cosf128x): Likewise.
24271 (__DECL_SIMD_sinf16): Likewise.
24272 (__DECL_SIMD_sinf32): Likewise.
24273 (__DECL_SIMD_sinf64): Likewise.
24274 (__DECL_SIMD_sinf32x): Likewise.
24275 (__DECL_SIMD_sinf64x): Likewise.
24276 (__DECL_SIMD_sinf128x): Likewise.
24277 (__DECL_SIMD_sincosf16): Likewise.
24278 (__DECL_SIMD_sincosf32): Likewise.
24279 (__DECL_SIMD_sincosf64): Likewise.
24280 (__DECL_SIMD_sincosf32x): Likewise.
24281 (__DECL_SIMD_sincosf64x): Likewise.
24282 (__DECL_SIMD_sincosf128x): Likewise.
24283 (__DECL_SIMD_logf16): Likewise.
24284 (__DECL_SIMD_logf32): Likewise.
24285 (__DECL_SIMD_logf64): Likewise.
24286 (__DECL_SIMD_logf32x): Likewise.
24287 (__DECL_SIMD_logf64x): Likewise.
24288 (__DECL_SIMD_logf128x): Likewise.
24289 (__DECL_SIMD_expf16): Likewise.
24290 (__DECL_SIMD_expf32): Likewise.
24291 (__DECL_SIMD_expf64): Likewise.
24292 (__DECL_SIMD_expf32x): Likewise.
24293 (__DECL_SIMD_expf64x): Likewise.
24294 (__DECL_SIMD_expf128x): Likewise.
24295 (__DECL_SIMD_powf16): Likewise.
24296 (__DECL_SIMD_powf32): Likewise.
24297 (__DECL_SIMD_powf64): Likewise.
24298 (__DECL_SIMD_powf32x): Likewise.
24299 (__DECL_SIMD_powf64x): Likewise.
24300 (__DECL_SIMD_powf128x): Likewise.
24301
24302 * stdlib/Versions (libc): Move entries for wcstof128 and
24303 wcstof128_l to ....
24304 * wcsmbs/Versions (libc): ... here.
24305 Include <float128-abi.h>.
24306
24307 2017-11-24 Florian Weimer <fweimer@redhat.com>
24308
24309 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24310 bits/mman-shared.h.
24311 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24312 <bits/mman-shared.h>.
24313 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24314 to ...
24315 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24316 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24317 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24318 <bits/mman-shared.h>.
24319
24320 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24321
24322 [BZ #22457]
24323 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24324 posix_memalign/free.
24325 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24326
24327 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24328
24329 [BZ #22469]
24330 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24331 and implement the collation rules for pl from CLDR on top of that.
24332 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24333 of locales to be built for testing.
24334 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24335
24336 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24337
24338 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24339 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24340 libm_alias_ldouble_other.
24341 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24342 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24343 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24344 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24345 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24346 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24347 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24348 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24349 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24350 libm_alias_ldouble_r.
24351 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24352 libm_alias_ldouble_other.
24353 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24354 (log10l): Likewise.
24355 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24356 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24357 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24358 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24359 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24360 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24361 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24362 (atan2l): Likewise.
24363 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24364 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24365 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24366 libm_alias_ldouble.
24367 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24368 (cosl): Likewise.
24369 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24370 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24371 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24372 (expl): Likewise.
24373 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24374 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24375 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24376 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24377 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24378 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24379 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24380 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24381 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24382 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24383 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24384 libm_alias_ldouble.
24385 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24386 libm_alias_ldouble_other.
24387 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24388 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24389 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24390 libm_alias_ldouble.
24391 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24392 libm_alias_ldouble_other.
24393 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24394 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24395 * sysdeps/ia64/fpu/w_lgammal_main.c
24396 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24397 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24398
24399 2017-11-23 Florian Weimer <fweimer@redhat.com>
24400
24401 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24402 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24403 alike. Remove freeres marker.
24404 * malloc/arena.c (arena_thread_freeres): Call
24405 tcache_thread_shutdown.
24406
24407 2017-11-23 Florian Weimer <fweimer@redhat.com>
24408
24409 [BZ #22459]
24410 Export nscd hash function as __nss_hash.
24411 * include/nss.h (__nss_hash): Declare.
24412 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24413 symbol.
24414 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24415 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24416 of __nscd_hash.
24417 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24418 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24419 * nss/Makefiles (routines): Add nss_hash.
24420 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24421 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24422 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24423 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24424
24425 2017-11-23 Florian Weimer <fweimer@redhat.com>
24426
24427 [BZ #22478]
24428 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24429 Return error code, not -1.
24430 * signal/tst-sigwait-eintr.c: New file.
24431 * signal/Makefile (tests): Add tst-sigwait-eintr.
24432
24433 2017-11-23 Florian Weimer <fweimer@redhat.com>
24434
24435 Linux: Add memfd_create system call wrapper
24436 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24437 tst-memfd_create.
24438 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24439 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24440 [__USE_GNU] (memfd_create): Declare.
24441 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24442 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24443 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24444 * sysdeps/unix/sysv/linux/**.abilist: Update.
24445 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24446
24447 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24448
24449 * localedata/gen-locale.sh: Fix typo in variable name.
24450
24451 * resolv/res_debug.c (p_secstodate): Condition definition on
24452 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24453 directly as __p_secstodate, and as a compat symbol. Do not use
24454 libresolv_hidden_def.
24455 * resolv/resolv.h (p_secstodate): Remove macro and function
24456 declaration.
24457 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24458 using p_secstodate.
24459 * include/resolv.h (__p_secstodate): Do not use
24460 libresolv_hidden_proto.
24461 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24462 (tests-internal): ... here.
24463 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24464 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24465 and declare and use __p_secstodate and use compat_symbol_reference
24466 in that case.
24467 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24468 implementation returning 77.
24469
24470 [BZ #22463]
24471 * resolv/res_debug.c: Include <libc-diag.h>.
24472 (p_secstodate): Assert time_t at least as wide as u_long. On
24473 overflow, use integer seconds since the epoch as output, or use
24474 "<overflow>" as output and set errno to EOVERFLOW if integer
24475 seconds since the epoch would be 14 or more characters.
24476 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24477 for sprintf call.
24478 * resolv/tst-p_secstodate.c: New file.
24479 * resolv/Makefile (tests): Add tst-p_secstodate.
24480 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24481
24482 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24483 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24484 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24485
24486 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24487
24488 * posix/regcomp.c (init_word_char): Add comments.
24489
24490 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24491
24492 [BZ #22447]
24493 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24494 strlen to compute length of ut_user and set trailing NUL byte of
24495 result explicitly.
24496
24497 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24498
24499 [BZ #15537]
24500 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24501 using “copy "iso14651_t1"” and then implementing the
24502 collation rules for lv from CLDR on top of that.
24503 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24504 of locales to be built for testing.
24505 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24506 sorting.
24507
24508 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24509
24510 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24511 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24512 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24513 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24514 [__USE_MISC] (MADV_HWPOISON): New macro.
24515 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24516
24517 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24518
24519 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24520 -Wmissing-braces on GCC 4.9.
24521
24522 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24523
24524 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24525 * sysdeps/s390/s390-32/start.S (_start): Likewise
24526 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24527 (thread_start): Likewise.
24528 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24529 (thread_start): Likewise.
24530 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24531 (__makecontext_ret): Likewise.
24532 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24533 (__makecontext_ret): Likewise.
24534
24535 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24536
24537 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24538 __wcschrnul): Remove attribute_hidden.
24539
24540 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24541
24542 regex: don't assume uint64_t or uint32_t
24543 This avoids -Werror=overflow errors for 32-bit systems in
24544 the 64-bit case. Problem reported by Joseph Myers in:
24545 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24546 Also, when this code is used in Gnulib it ports to platforms
24547 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24548 them, and on some 32-bit compilers there is no uint64_t.
24549 Problem reported by Gianluigi Tiesi in:
24550 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24551 * posix/regcomp.c (init_word_char): Don't assume that the types
24552 uint64_t and uint32_t exist. Adapted from Gnulib patch
24553 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24554 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24555
24556 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24557
24558 * sysdeps/aarch64/memset-reg.h: New file.
24559 * sysdeps/aarch64/memset.S: Use it.
24560 (__memset): Rename to MEMSET macro.
24561 [ZVA_MACRO]: Use zva_macro.
24562 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24563 Add memset_generic and memset_falkor.
24564 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24565 (__libc_ifunc_impl_list): Add memset ifuncs.
24566 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24567 local variable zva_size.
24568 * sysdeps/aarch64/multiarch/memset.c: New file.
24569 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24570 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24571 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24572 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24573 (DCZID_DZP_MASK): New macro.
24574 (DCZID_BS_MASK): Likewise.
24575 (init_cpu_features): Read and set zva_size.
24576 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24577 (struct cpu_features): New member zva_size.
24578
24579 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24580 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24581 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24582
24583 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24584 backwards. Fix timing computation.
24585 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24586 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24587 on memset by N at a time. Fix timing computation.
24588
24589 2017-11-20 Florian Weimer <fweimer@redhat.com>
24590
24591 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24592 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24593
24594 2017-11-19 Florian Weimer <fweimer@redhat.com>
24595
24596 manual: Document mprotect
24597 * manual/memory.texi (Memory Protection): New section.
24598 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24599 documentation of PROT_* flags and reference the Memory Protection
24600 section instead.
24601
24602 2017-11-19 Florian Weimer <fweimer@redhat.com>
24603
24604 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24605 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24606 (Scatter-Gather): ... to here. Remove misleading comment.
24607
24608 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24609
24610 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24611 style.
24612
24613 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24614 when /proc/<pid>/setgroups does not exist.
24615
24616 2017-11-18 Florian Weimer <fweimer@redhat.com>
24617
24618 * sysdeps/unix/sysv/linux/tst-ttyname.c
24619 (become_root_in_mount_ns): Remove.
24620 (do_in_chroot_1): Call support_enter_mount_namespace.
24621 (do_in_chroot_2): Likewise.
24622 (do_test): Call support_become_root early.
24623
24624 2017-11-18 Florian Weimer <fweimer@redhat.com>
24625
24626 * support/namespace.h (support_enter_mount_namespace): Declare.
24627 * support/support_enter_mount_namespace.c: New file.
24628 * support/Makefile (libsupport-routines): Add
24629 support_enter_mount_namespace.
24630
24631 2017-11-18 Florian Weimer <fweimer@redhat.com>
24632
24633 * support/temp_file.c (support_create_temp_directory): Use
24634 test_dir and do not rely on the presence of the XXXXXX suffix.
24635 * support/temp_file.h (support_create_temp_directory): Update
24636 comment.
24637 * support/tst-xreadlink.c (do_test): Adjust.
24638 * support/support_chroot.c (support_chroot_create): Likewise.
24639
24640 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24641
24642 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24643 macro.
24644 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24645 htm-no-suspend.
24646
24647 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24648
24649 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24650 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24651 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24652 (ceill): Define using libm_alias_ldouble.
24653 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24654 <libm-alias-ldouble.h>.
24655 (copysignl): Define using libm_alias_ldouble.
24656 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24657 (fabsl): Define using libm_alias_ldouble.
24658 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24659 (floorl): Define using libm_alias_ldouble.
24660 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24661 (fmaxl): Define using libm_alias_ldouble.
24662 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24663 (fminl): Define using libm_alias_ldouble.
24664 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24665 (llrintl): Define using libm_alias_ldouble.
24666 (lrintl): Likewise.
24667 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24668 <libm-alias-ldouble.h>.
24669 (nearbyintl): Define using libm_alias_ldouble.
24670 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24671 (truncl): Define using libm_alias_ldouble.
24672 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24673 <libm-alias-ldouble.h>.
24674 (lrintl): Define using libm_alias_ldouble.
24675
24676 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24677 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24678 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24679 (asinhl): Define using libm_alias_ldouble.
24680 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24681 (atanl): Define using libm_alias_ldouble.
24682 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24683 (cbrtl): Define using libm_alias_ldouble.
24684 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24685 (ceill): Define using libm_alias_ldouble.
24686 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24687 (copysignl): Define using libm_alias_ldouble.
24688 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24689 (fabsl): Define using libm_alias_ldouble.
24690 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24691 (floorl): Define using libm_alias_ldouble.
24692 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24693 (fmaxl): Define using libm_alias_ldouble.
24694 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24695 (fminl): Define using libm_alias_ldouble.
24696 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24697 (frexpl): Define using libm_alias_ldouble.
24698 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24699 (llrintl): Define using libm_alias_ldouble.
24700 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24701 (logbl): Define using libm_alias_ldouble.
24702 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24703 (lrintl): Define using libm_alias_ldouble.
24704 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24705 (nearbyintl): Define using libm_alias_ldouble.
24706 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24707 (nextafterl): Define using libm_alias_ldouble.
24708 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24709 (remquol): Define using libm_alias_ldouble.
24710 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24711 (rintl): Define using libm_alias_ldouble.
24712 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24713 (truncl): Define using libm_alias_ldouble.
24714 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24715 (fmaxl): Define using libm_alias_ldouble.
24716 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24717 (fminl): Define using libm_alias_ldouble.
24718
24719 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24720 to C syntax instead of availability and properties of types.
24721 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24722 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24723 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24724 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24725 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24726 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24727
24728 2017-11-17 Florian Weimer <fweimer@redhat.com>
24729
24730 support_become_root: Enable file creation in namespaces.
24731 * support/support_become_root.c (setup_mapping): New function.
24732 (support_become_root): Call it.
24733
24734 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24735
24736 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24737 macro.
24738
24739 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24740
24741 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24742 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24743
24744 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24745
24746 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24747
24748 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24749 version to 4.14.
24750
24751 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24752
24753 * INSTALL: Fix botched up regeneration.
24754
24755 * NEWS: Update sourceare link to https.
24756 * configure.ac: Likewise.
24757 * crypt/md5test-giant.c: Likewise.
24758 * dlfcn/bug-atexit1.c: Likewise.
24759 * dlfcn/bug-atexit2.c: Likewise.
24760 * localedata/README: Likewise.
24761 * malloc/tst-mallocfork.c: Likewise.
24762 * manual/install.texi: Likewise.
24763 * nptl/tst-pthread-getattr.c: Likewise.
24764 * stdio-common/tst-fgets.c: Likewise.
24765 * stdio-common/tst-fwrite.c: Likewise.
24766 * sunrpc/Makefile: Likewise.
24767 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24768 * wcsmbs/tst-mbrtowc2.c: Likewise.
24769 * configure: Regenerate.
24770 * INSTALL: Regenerate.
24771
24772 2017-11-15 Martin Sebor <msebor@redhat.com>
24773
24774 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24775 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24776 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24777
24778 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24779
24780 [BZ #22145]
24781 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24782 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24783
24784 [BZ #22145]
24785 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24786 Defer is_pty check until end of the function.
24787 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24788
24789 [BZ #22145]
24790 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24791 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24792 (ttyname): Likewise.
24793 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24794 (__ttyname_r): Likewise.
24795
24796 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24797 int to bool.
24798
24799 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24800
24801 * manual/terminal.texi (Is It a Terminal):
24802 Mention ENODEV for ttyname and ttyname_r.
24803
24804 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24805
24806 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24807 constant and macro.
24808
24809 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24810 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24811 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24812 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24813 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24814 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24815
24816 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24817
24818 * signal/sigrelse.c (sigrelse): Optimize implementation.
24819
24820 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24821 (__sigpause): Rely on __sigsuspend to implement single thread
24822 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24823
24824 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24825
24826 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24827 kernel version to 4.14.
24828
24829 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24830
24831 [BZ #22442]
24832 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24833 Check if ifname is too long.
24834
24835 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24836
24837 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24838
24839 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24840
24841 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24842 was accidentally lost.
24843
24844 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24845
24846 * localedata/locales/az_IR: Add standard copyright header.
24847
24848 2017-11-15 Florian Weimer <fweimer@redhat.com>
24849
24850 [BZ #22439]
24851 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24852 not just the top one. Output a new "subheaps" statistic.
24853
24854 2017-11-15 Florian Weimer <fweimer@redhat.com>
24855
24856 [BZ #22408]
24857 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24858 under the per-arena lock.
24859 * malloc/Makefile (tests): Add tst-malloc_info.
24860 (tst-malloc_info): Link with libpthread.
24861 * malloc/tst-malloc_info.c: New file.
24862
24863 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24864
24865 [BZ #21660]
24866 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24867 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24868 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24869 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24870 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24871 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24872 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24873 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24874 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24875 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24876 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24877 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24878 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24879 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24880 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24881 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24882 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24883 (__floating_type): Likewise.
24884 (__real_integer_type): Likewise.
24885 (__complex_integer_type): Likewise.
24886 (__expr_is_real): Likewise.
24887 (__tgmath_real_type_sub): Likewise.
24888 (__tgmath_real_type): Likewise.
24889 (__tgmath_complex_type_sub): Likewise.
24890 (__tgmath_complex_type): Likewise.
24891 (__TGMATH_F128): Likewise.
24892 (__TGMATH_CF128): Likewise.
24893 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24894 new macros.
24895 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24896 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24897 Likewise.
24898 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24899 Likewise.
24900 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24901 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24902 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24903 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24904 Likewise.
24905 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24906 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24907 Likewise.
24908 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24909 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24910 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24911 Likewise.
24912 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24913 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24914 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24915 (cimag): Likewise.
24916 (creal): Likewise.
24917
24918 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24919
24920 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24921 for stpncpy calls for GCC 8.
24922 (test_strncat): Disable -Wstringop-truncation warning for strncat
24923 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24924 strncat call for GCC 7.
24925 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24926 calls for GCC 8.
24927 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24928 trailing NUL.
24929
24930 * string/bug-strncat1.c: Include <libc-diag.h>.
24931 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24932
24933 2017-11-13 Claude Paroz <claude@2xlibre.net>
24934
24935 [BZ #22387]
24936 * localedata/locales/aa_DJ: Improved readibility by replacing
24937 <Uxxxx> sequences in the ASCII printable range by their ASCII
24938 character equivalents.
24939 * localedata/locales/aa_ER: Likewise.
24940 * localedata/locales/aa_ER@saaho: Likewise.
24941 * localedata/locales/aa_ET: Likewise.
24942 * localedata/locales/af_ZA: Likewise.
24943 * localedata/locales/agr_PE: Likewise.
24944 * localedata/locales/ak_GH: Likewise.
24945 * localedata/locales/am_ET: Likewise.
24946 * localedata/locales/anp_IN: Likewise.
24947 * localedata/locales/ar_AE: Likewise.
24948 * localedata/locales/ar_BH: Likewise.
24949 * localedata/locales/ar_DZ: Likewise.
24950 * localedata/locales/ar_EG: Likewise.
24951 * localedata/locales/ar_IN: Likewise.
24952 * localedata/locales/ar_IQ: Likewise.
24953 * localedata/locales/ar_JO: Likewise.
24954 * localedata/locales/ar_KW: Likewise.
24955 * localedata/locales/ar_LB: Likewise.
24956 * localedata/locales/ar_LY: Likewise.
24957 * localedata/locales/ar_MA: Likewise.
24958 * localedata/locales/ar_OM: Likewise.
24959 * localedata/locales/ar_QA: Likewise.
24960 * localedata/locales/ar_SA: Likewise.
24961 * localedata/locales/ar_SD: Likewise.
24962 * localedata/locales/ar_SS: Likewise.
24963 * localedata/locales/ar_SY: Likewise.
24964 * localedata/locales/ar_TN: Likewise.
24965 * localedata/locales/ar_YE: Likewise.
24966 * localedata/locales/as_IN: Likewise.
24967 * localedata/locales/ast_ES: Likewise.
24968 * localedata/locales/ayc_PE: Likewise.
24969 * localedata/locales/az_AZ: Likewise.
24970 * localedata/locales/az_IR: Likewise.
24971 * localedata/locales/be_BY: Likewise.
24972 * localedata/locales/be_BY@latin: Likewise.
24973 * localedata/locales/bem_ZM: Likewise.
24974 * localedata/locales/ber_DZ: Likewise.
24975 * localedata/locales/ber_MA: Likewise.
24976 * localedata/locales/bg_BG: Likewise.
24977 * localedata/locales/bhb_IN: Likewise.
24978 * localedata/locales/bho_IN: Likewise.
24979 * localedata/locales/bi_VU: Likewise.
24980 * localedata/locales/bn_BD: Likewise.
24981 * localedata/locales/bn_IN: Likewise.
24982 * localedata/locales/bo_CN: Likewise.
24983 * localedata/locales/bo_IN: Likewise.
24984 * localedata/locales/br_FR: Likewise.
24985 * localedata/locales/brx_IN: Likewise.
24986 * localedata/locales/bs_BA: Likewise.
24987 * localedata/locales/byn_ER: Likewise.
24988 * localedata/locales/ca_AD: Likewise.
24989 * localedata/locales/ca_ES: Likewise.
24990 * localedata/locales/ca_FR: Likewise.
24991 * localedata/locales/ca_IT: Likewise.
24992 * localedata/locales/ce_RU: Likewise.
24993 * localedata/locales/chr_US: Likewise.
24994 * localedata/locales/cmn_TW: Likewise.
24995 * localedata/locales/crh_UA: Likewise.
24996 * localedata/locales/cs_CZ: Likewise.
24997 * localedata/locales/csb_PL: Likewise.
24998 * localedata/locales/cv_RU: Likewise.
24999 * localedata/locales/cy_GB: Likewise.
25000 * localedata/locales/da_DK: Likewise.
25001 * localedata/locales/de_AT: Likewise.
25002 * localedata/locales/de_BE: Likewise.
25003 * localedata/locales/de_CH: Likewise.
25004 * localedata/locales/de_DE: Likewise.
25005 * localedata/locales/de_IT: Likewise.
25006 * localedata/locales/de_LI: Likewise.
25007 * localedata/locales/de_LU: Likewise.
25008 * localedata/locales/doi_IN: Likewise.
25009 * localedata/locales/dv_MV: Likewise.
25010 * localedata/locales/dz_BT: Likewise.
25011 * localedata/locales/el_CY: Likewise.
25012 * localedata/locales/el_GR: Likewise.
25013 * localedata/locales/en_AG: Likewise.
25014 * localedata/locales/en_AU: Likewise.
25015 * localedata/locales/en_BW: Likewise.
25016 * localedata/locales/en_CA: Likewise.
25017 * localedata/locales/en_DK: Likewise.
25018 * localedata/locales/en_GB: Likewise.
25019 * localedata/locales/en_HK: Likewise.
25020 * localedata/locales/en_IE: Likewise.
25021 * localedata/locales/en_IL: Likewise.
25022 * localedata/locales/en_IN: Likewise.
25023 * localedata/locales/en_NG: Likewise.
25024 * localedata/locales/en_NZ: Likewise.
25025 * localedata/locales/en_PH: Likewise.
25026 * localedata/locales/en_SG: Likewise.
25027 * localedata/locales/en_US: Likewise.
25028 * localedata/locales/en_ZA: Likewise.
25029 * localedata/locales/en_ZM: Likewise.
25030 * localedata/locales/en_ZW: Likewise.
25031 * localedata/locales/eo: Likewise.
25032 * localedata/locales/es_AR: Likewise.
25033 * localedata/locales/es_BO: Likewise.
25034 * localedata/locales/es_CL: Likewise.
25035 * localedata/locales/es_CO: Likewise.
25036 * localedata/locales/es_CR: Likewise.
25037 * localedata/locales/es_CU: Likewise.
25038 * localedata/locales/es_DO: Likewise.
25039 * localedata/locales/es_EC: Likewise.
25040 * localedata/locales/es_ES: Likewise.
25041 * localedata/locales/es_GT: Likewise.
25042 * localedata/locales/es_HN: Likewise.
25043 * localedata/locales/es_MX: Likewise.
25044 * localedata/locales/es_NI: Likewise.
25045 * localedata/locales/es_PA: Likewise.
25046 * localedata/locales/es_PE: Likewise.
25047 * localedata/locales/es_PR: Likewise.
25048 * localedata/locales/es_PY: Likewise.
25049 * localedata/locales/es_SV: Likewise.
25050 * localedata/locales/es_US: Likewise.
25051 * localedata/locales/es_UY: Likewise.
25052 * localedata/locales/es_VE: Likewise.
25053 * localedata/locales/et_EE: Likewise.
25054 * localedata/locales/eu_ES: Likewise.
25055 * localedata/locales/eu_ES@euro: Likewise.
25056 * localedata/locales/fa_IR: Likewise.
25057 * localedata/locales/ff_SN: Likewise.
25058 * localedata/locales/fi_FI: Likewise.
25059 * localedata/locales/fil_PH: Likewise.
25060 * localedata/locales/fo_FO: Likewise.
25061 * localedata/locales/fr_BE: Likewise.
25062 * localedata/locales/fr_CA: Likewise.
25063 * localedata/locales/fr_CH: Likewise.
25064 * localedata/locales/fr_FR: Likewise.
25065 * localedata/locales/fr_LU: Likewise.
25066 * localedata/locales/fur_IT: Likewise.
25067 * localedata/locales/fy_DE: Likewise.
25068 * localedata/locales/fy_NL: Likewise.
25069 * localedata/locales/ga_IE: Likewise.
25070 * localedata/locales/gd_GB: Likewise.
25071 * localedata/locales/gez_ER: Likewise.
25072 * localedata/locales/gez_ET: Likewise.
25073 * localedata/locales/gl_ES: Likewise.
25074 * localedata/locales/gu_IN: Likewise.
25075 * localedata/locales/gv_GB: Likewise.
25076 * localedata/locales/ha_NG: Likewise.
25077 * localedata/locales/hak_TW: Likewise.
25078 * localedata/locales/he_IL: Likewise.
25079 * localedata/locales/hi_IN: Likewise.
25080 * localedata/locales/hif_FJ: Likewise.
25081 * localedata/locales/hne_IN: Likewise.
25082 * localedata/locales/hr_HR: Likewise.
25083 * localedata/locales/hsb_DE: Likewise.
25084 * localedata/locales/ht_HT: Likewise.
25085 * localedata/locales/hu_HU: Likewise.
25086 * localedata/locales/hy_AM: Likewise.
25087 * localedata/locales/i18n: Likewise.
25088 * localedata/locales/ia_FR: Likewise.
25089 * localedata/locales/id_ID: Likewise.
25090 * localedata/locales/ig_NG: Likewise.
25091 * localedata/locales/ik_CA: Likewise.
25092 * localedata/locales/is_IS: Likewise.
25093 * localedata/locales/it_CH: Likewise.
25094 * localedata/locales/it_IT: Likewise.
25095 * localedata/locales/iu_CA: Likewise.
25096 * localedata/locales/ja_JP: Likewise.
25097 * localedata/locales/ka_GE: Likewise.
25098 * localedata/locales/kk_KZ: Likewise.
25099 * localedata/locales/kl_GL: Likewise.
25100 * localedata/locales/kn_IN: Likewise.
25101 * localedata/locales/ko_KR: Likewise.
25102 * localedata/locales/kok_IN: Likewise.
25103 * localedata/locales/ks_IN: Likewise.
25104 * localedata/locales/ks_IN@devanagari: Likewise.
25105 * localedata/locales/ku_TR: Likewise.
25106 * localedata/locales/kw_GB: Likewise.
25107 * localedata/locales/ky_KG: Likewise.
25108 * localedata/locales/lb_LU: Likewise.
25109 * localedata/locales/lg_UG: Likewise.
25110 * localedata/locales/li_BE: Likewise.
25111 * localedata/locales/li_NL: Likewise.
25112 * localedata/locales/lij_IT: Likewise.
25113 * localedata/locales/ln_CD: Likewise.
25114 * localedata/locales/lo_LA: Likewise.
25115 * localedata/locales/lt_LT: Likewise.
25116 * localedata/locales/lv_LV: Likewise.
25117 * localedata/locales/lzh_TW: Likewise.
25118 * localedata/locales/mag_IN: Likewise.
25119 * localedata/locales/mai_IN: Likewise.
25120 * localedata/locales/mg_MG: Likewise.
25121 * localedata/locales/mhr_RU: Likewise.
25122 * localedata/locales/mi_NZ: Likewise.
25123 * localedata/locales/mk_MK: Likewise.
25124 * localedata/locales/ml_IN: Likewise.
25125 * localedata/locales/mn_MN: Likewise.
25126 * localedata/locales/mni_IN: Likewise.
25127 * localedata/locales/mr_IN: Likewise.
25128 * localedata/locales/ms_MY: Likewise.
25129 * localedata/locales/mt_MT: Likewise.
25130 * localedata/locales/my_MM: Likewise.
25131 * localedata/locales/nan_TW: Likewise.
25132 * localedata/locales/nan_TW@latin: Likewise.
25133 * localedata/locales/nb_NO: Likewise.
25134 * localedata/locales/nds_DE: Likewise.
25135 * localedata/locales/nds_NL: Likewise.
25136 * localedata/locales/ne_NP: Likewise.
25137 * localedata/locales/nhn_MX: Likewise.
25138 * localedata/locales/niu_NU: Likewise.
25139 * localedata/locales/niu_NZ: Likewise.
25140 * localedata/locales/nl_AW: Likewise.
25141 * localedata/locales/nl_BE: Likewise.
25142 * localedata/locales/nl_NL: Likewise.
25143 * localedata/locales/nn_NO: Likewise.
25144 * localedata/locales/nr_ZA: Likewise.
25145 * localedata/locales/nso_ZA: Likewise.
25146 * localedata/locales/oc_FR: Likewise.
25147 * localedata/locales/om_ET: Likewise.
25148 * localedata/locales/om_KE: Likewise.
25149 * localedata/locales/or_IN: Likewise.
25150 * localedata/locales/os_RU: Likewise.
25151 * localedata/locales/pa_IN: Likewise.
25152 * localedata/locales/pa_PK: Likewise.
25153 * localedata/locales/pap_AW: Likewise.
25154 * localedata/locales/pap_CW: Likewise.
25155 * localedata/locales/pl_PL: Likewise.
25156 * localedata/locales/ps_AF: Likewise.
25157 * localedata/locales/pt_BR: Likewise.
25158 * localedata/locales/pt_PT: Likewise.
25159 * localedata/locales/quz_PE: Likewise.
25160 * localedata/locales/raj_IN: Likewise.
25161 * localedata/locales/ro_RO: Likewise.
25162 * localedata/locales/ru_RU: Likewise.
25163 * localedata/locales/ru_UA: Likewise.
25164 * localedata/locales/rw_RW: Likewise.
25165 * localedata/locales/sa_IN: Likewise.
25166 * localedata/locales/sat_IN: Likewise.
25167 * localedata/locales/sc_IT: Likewise.
25168 * localedata/locales/sd_IN: Likewise.
25169 * localedata/locales/sd_IN@devanagari: Likewise.
25170 * localedata/locales/se_NO: Likewise.
25171 * localedata/locales/sgs_LT: Likewise.
25172 * localedata/locales/shs_CA: Likewise.
25173 * localedata/locales/si_LK: Likewise.
25174 * localedata/locales/sid_ET: Likewise.
25175 * localedata/locales/sk_SK: Likewise.
25176 * localedata/locales/sl_SI: Likewise.
25177 * localedata/locales/sm_WS: Likewise.
25178 * localedata/locales/so_DJ: Likewise.
25179 * localedata/locales/so_ET: Likewise.
25180 * localedata/locales/so_KE: Likewise.
25181 * localedata/locales/so_SO: Likewise.
25182 * localedata/locales/sq_AL: Likewise.
25183 * localedata/locales/sq_MK: Likewise.
25184 * localedata/locales/sr_ME: Likewise.
25185 * localedata/locales/sr_RS: Likewise.
25186 * localedata/locales/sr_RS@latin: Likewise.
25187 * localedata/locales/ss_ZA: Likewise.
25188 * localedata/locales/st_ZA: Likewise.
25189 * localedata/locales/sv_FI: Likewise.
25190 * localedata/locales/sv_SE: Likewise.
25191 * localedata/locales/sw_KE: Likewise.
25192 * localedata/locales/sw_TZ: Likewise.
25193 * localedata/locales/szl_PL: Likewise.
25194 * localedata/locales/ta_IN: Likewise.
25195 * localedata/locales/ta_LK: Likewise.
25196 * localedata/locales/tcy_IN: Likewise.
25197 * localedata/locales/te_IN: Likewise.
25198 * localedata/locales/tg_TJ: Likewise.
25199 * localedata/locales/th_TH: Likewise.
25200 * localedata/locales/the_NP: Likewise.
25201 * localedata/locales/ti_ER: Likewise.
25202 * localedata/locales/ti_ET: Likewise.
25203 * localedata/locales/tig_ER: Likewise.
25204 * localedata/locales/tk_TM: Likewise.
25205 * localedata/locales/tl_PH: Likewise.
25206 * localedata/locales/tn_ZA: Likewise.
25207 * localedata/locales/to_TO: Likewise.
25208 * localedata/locales/tpi_PG: Likewise.
25209 * localedata/locales/tr_CY: Likewise.
25210 * localedata/locales/tr_TR: Likewise.
25211 * localedata/locales/ts_ZA: Likewise.
25212 * localedata/locales/tt_RU: Likewise.
25213 * localedata/locales/tt_RU@iqtelif: Likewise.
25214 * localedata/locales/ug_CN: Likewise.
25215 * localedata/locales/uk_UA: Likewise.
25216 * localedata/locales/unm_US: Likewise.
25217 * localedata/locales/ur_IN: Likewise.
25218 * localedata/locales/ur_PK: Likewise.
25219 * localedata/locales/uz_UZ: Likewise.
25220 * localedata/locales/uz_UZ@cyrillic: Likewise.
25221 * localedata/locales/ve_ZA: Likewise.
25222 * localedata/locales/vi_VN: Likewise.
25223 * localedata/locales/wa_BE: Likewise.
25224 * localedata/locales/wae_CH: Likewise.
25225 * localedata/locales/wal_ET: Likewise.
25226 * localedata/locales/wo_SN: Likewise.
25227 * localedata/locales/xh_ZA: Likewise.
25228 * localedata/locales/yi_US: Likewise.
25229 * localedata/locales/yo_NG: Likewise.
25230 * localedata/locales/yue_HK: Likewise.
25231 * localedata/locales/yuw_PG: Likewise.
25232 * localedata/locales/zh_CN: Likewise.
25233 * localedata/locales/zh_HK: Likewise.
25234 * localedata/locales/zh_SG: Likewise.
25235 * localedata/locales/zh_TW: Likewise.
25236 * localedata/locales/zu_ZA: Likewise.
25237
25238 2017-11-13 Florian Weimer <fweimer@redhat.com>
25239
25240 * support/next_to_fault.h, support/next_to_fault.c: New files.
25241 * support/Makefile (libsupport-routines): Add next_to_fault.
25242 * resolv/tst-inet_pton.c (struct next_to_fault)
25243 (next_to_fault_allocate, next_to_fault_free): Remove.
25244 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25245
25246 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25247
25248 * elf/dl-support.c: Include <dl-procruntime.c>.
25249 * include/link.h: Include <link_map.h>.
25250 * sysdeps/generic/dl-procruntime.c: New file.
25251 * sysdeps/generic/link_map.h: Likewise.
25252 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25253 the writable ld.so namespace.
25254
25255 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25256
25257 timezone: pacify GCC -Wstringop-truncation
25258 Problem reported by Martin Sebor in:
25259 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25260 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25261
25262 2017-11-12 Florian Weimer <fweimer@redhat.com>
25263
25264 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25265 tst-xreadlink.
25266 (tests): Add tst-xreadlink.
25267 * support/support.h (xstrndup): Declare.
25268 * support/xunistd.h (xunlink, xreadlink): Declare.
25269 * support/temp_file.h (support_create_temp_directory): Declare.
25270 * support/temp_file.c (support_create_temp_directory): New function.
25271 * support/support_chroot.c (support_chroot_create): Use it.
25272 * support/xreadlink.c: New file.
25273 * support/xstrndup.c: Likewise.
25274 * support/xunlink.c: Likewise.
25275 * support/tst-xreadlink.c: Likewise.
25276
25277 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25278
25279 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25280
25281 2017-11-11 Florian Weimer <fweimer@redhat.com>
25282
25283 [BZ #22409]
25284 [BZ #22412]
25285 * resolv/res_comp.c (printable_string, binary_hnok)
25286 (binary_leading_dash): New functions.
25287 (res_hnok): Reimplement using these functions and ns_name_pton.
25288 (res_ownok): Likewise.
25289 (res_mailok): Reimplement using printable_string, ns_name_pton and
25290 binary_hnok.
25291 (res_dnok): Reimplement using printable_string and ns_name_pton.
25292 * resolv/tst-res_hnok.c (tests): Add additional tests.
25293 (LETTERDIGITS, PRINTABLE): Define.
25294 (do_test): Adjust one_char results.
25295
25296 2017-11-11 Florian Weimer <fweimer@redhat.com>
25297
25298 [BZ #22413]
25299 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25300 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25301
25302 2017-11-11 Florian Weimer <fweimer@redhat.com>
25303
25304 * resolv/tst-ns_name_pton.c: New file.
25305 * resolv/Makefile (tests): Add tst-ns_name_pton.
25306 (tst-ns_name_pton): Link against libresolv.
25307
25308 2017-11-11 Florian Weimer <fweimer@redhat.com>
25309
25310 * resolv/tst-res_hnok.c: New file.
25311 * resolv/Makefile (tests): Add tst-res_hnok.
25312 (tst-res_hnok): Link against libresolv.
25313
25314 2017-11-11 Florian Weimer <fweimer@redhat.com>
25315
25316 * resolv/tst-resolv-network.c: Use test framework instead explicit
25317 main function.
25318
25319 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25320
25321 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25322 <jmp_buf-macros.h>.
25323 [!_ISOMAC] (STR_HELPER): New.
25324 [!_ISOMAC] (STR): Likewise.
25325 [!_ISOMAC] (TEST_SIZE): Likewise.
25326 [!_ISOMAC] (TEST_ALIGN): Likewise.
25327 [!_ISOMAC] (TEST_OFFSET): Likewise.
25328 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25329 field offsets of jmp_buf as well as sigjmp_buf.
25330 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25331 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25332 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25333 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25334 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25335 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25336 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25337 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25338 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25339 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25340 Likewise.
25341 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25342 Likewise.
25343 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25344 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25345 Likewise.
25346 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25347 Likewise.
25348 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25349 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25350 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25351 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25352 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25353 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25354 Likewise.
25355 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25356 Likewise.
25357 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25358 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25359 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25360
25361 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25362
25363 * include/float.h
25364 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25365 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25366 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25367 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25368 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25369 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25370 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25371 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25372 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25373 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25374 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25375 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25376 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25377 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25378 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25379 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25380 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25381 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25382 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25383 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25384 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25385 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25386 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25387 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25388 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25389 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25390 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25391 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25392 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25393 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25394 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25395 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25396 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25397 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25398 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25399 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25400 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25401 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25402 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25403 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25404 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25405 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25406 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25407 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25408 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25409 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25410 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25411 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25412 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25413 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25414 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25415 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25416 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25417 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25418 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25419 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25420 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25421 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25422 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25423 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25424 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25425 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25426 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25427 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25428 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25429 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25430 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25431 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25432 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25433 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25434 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25435 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25436 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25437 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25438 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25439 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25440 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25441 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25442 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25443 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25444 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25445 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25446 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25447 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25448 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25449 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25450 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25451 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25452
25453 * stdlib/tst-strtod.h (F16): New macro.
25454 (F32): Likewise.
25455 (F64): Likewise.
25456 (F32X): Likewise.
25457 (F64X): Likewise.
25458 (F128X): Likewise.
25459 (IF_FLOAT16): Likewise.
25460 (IF_FLOAT32): Likewise.
25461 (IF_FLOAT64): Likewise.
25462 (IF_FLOAT32X): Likewise.
25463 (IF_FLOAT64X): Likewise.
25464 (IF_FLOAT128X): Likewise.
25465 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25466 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25467 (STRTOD_TEST_FOREACH): Likewise.
25468 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25469 (CHOOSE_f64): Likewise.
25470 (CHOOSE_f32x): Likewise.
25471 (CHOOSE_f64x): Likewise.
25472
25473 2017-11-07 Andreas Schwab <schwab@suse.de>
25474
25475 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25476
25477 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25478
25479 [BZ #22403]
25480 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25481 to be escaped.
25482 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25483 to be escaped.
25484
25485 2017-11-07 Claude Paroz <claude@2xlibre.net>
25486
25487 [BZ #22403]
25488 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25489 to be escaped.
25490 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25491 to be escaped.
25492 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25493 to be escaped.
25494
25495 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25496
25497 [BZ #22298]
25498 * nptl/allocatestack.c (allocate_stack): Check if
25499 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25500 __PTHREAD_MUTEX_HAVE_PREV is defined.
25501 * nptl/descr.h (pthread): Likewise.
25502 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25503 Likewise.
25504 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25505 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25506 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25507 * sysdeps/nptl/bits/thread-shared-types.h
25508 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25509 defines.
25510 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25511 of __WORDSIZE for internal layout.
25512 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25513 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25514 instead of __WORDSIZE whether to use an union for __spins and __list
25515 fields.
25516 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25517 case.
25518 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25519 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25520 defines.
25521 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25522 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25523 Likewise.
25524 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25525 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25526 Likewise.
25527 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25528 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25529 Likewise.
25530 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25531 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25532 Likewise.
25533 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25534 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25535 Likewise.
25536 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25537 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25538 Likewise.
25539 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25540 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25541 Likewise.
25542 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25543 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25544 Likewise.
25545 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25546 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25547 Likewise.
25548 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25549 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25550 Likewise.
25551 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25552 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25553 Likewise.
25554 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25555 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25556 Likewise.
25557 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25558 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25559 Likewise.
25560 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25561 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25562 Likewise.
25563
25564 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25565 New macros.
25566 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25567 checks for expected input type size.
25568 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25569 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25570 Likewise.
25571 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25572 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25573 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25574 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25575 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25576 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25577 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25578 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25579 superflous runtime assert check.
25580 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25581 Likewise.
25582 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25583 Likewise.
25584 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25585 Likewise.
25586 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25587 Likewise.
25588 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25589 Likewise.
25590 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25591 Likewise.
25592 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25593 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25594 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25595 Likewise.
25596 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25597 Likewise.
25598 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25599 Likewise.
25600 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25601 Likewise.
25602 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25603 Likewise.
25604 * nptl/pthread_attr_setinheritsched.c
25605 (__pthread_attr_setinheritsched): Likewise.
25606 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25607 Likewise.
25608 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25609 Likewise.
25610 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25611 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25612 __old_pthread_attr_setstack): Likewise.
25613 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25614 Likewise.
25615 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25616 Likewise.
25617 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25618 Likewise.
25619 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25620 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25621 Likewise.
25622 * nptl/tst-typesizes.c: Remove file.
25623
25624 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25625 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25626 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25627 checks for internal pthread_mutex_t offsets.
25628 * sysdeps/aarch64/nptl/pthread-offsets.h
25629 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25630 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25631 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25632 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25633 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25634 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25635 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25636 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25637 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25638 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25639 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25640 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25641 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25642 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25643 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25644 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25645 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25646 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25647
25648 2017-11-07 Florian Weimer <fweimer@redhat.com>
25649
25650 * bits/mman-linux.h: Move ...
25651 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25652 comment.
25653 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25654 outdated comment.
25655
25656 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25657
25658 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25659 Redefine STRNLEN as __strnlen_power8.
25660
25661 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25662
25663 * signal/sighold.c (sighold): Optimize implementation.
25664
25665 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25666 __NR_rt_sigqueueinfo.
25667
25668 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25669 __sigtimedwait.
25670 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25671 assume __NR_rt_sigtimedwait.
25672 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25673 and add LIBC_CANCEL_HANDLED for cancellation marking.
25674 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25675
25676 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25677 (sysdeps_routines): Add memchr_noneon.
25678 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25679 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25680 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25681 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25682 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25683 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25684 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25685
25686 * sysdeps/arm/arm-ifunc.h: New file.
25687 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25688 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25689 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25690 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25691 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25692 (__memcpy_neon): Avoid create hidden alias.
25693 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25694 (__memcpy_vfp): Likewise.
25695 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25696 (sysdep_routines): Add memcpy_arm.
25697 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25698
25699 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25700
25701 [BZ #22362]
25702 * Makerules (make-link-multidir): New.
25703 * config.make.in (multidir): New.
25704 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25705 * configure: Regenerated.
25706 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25707 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25708 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25709 New target.
25710
25711 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25712
25713 [BZ #22402]
25714 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25715 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25716
25717 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25718
25719 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25720 to be escaped.
25721
25722 2017-11-04 Florian Weimer <fweimer@redhat.com>
25723
25724 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25725
25726 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25727
25728 * math/math.h [__HAVE_DISTINCT_FLOAT16
25729 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25730 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25731 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25732 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25733 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25734 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25735 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25736 (__MATH_TG_F32): New macro.
25737 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25738 (__MATH_TG_F64X): Likewise.
25739 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25740 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25741
25742 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25743
25744 * po/de.po: Update translations.
25745 * po/ru.po: Likewise.
25746
25747 2017-11-03 Florian Weimer <fweimer@redhat.com>
25748
25749 * manual/filesys.texi (Hard Links): Document linkat.
25750
25751 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25752
25753 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25754 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25755 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25756 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25757 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25758 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25759 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25760 the same as _Float128.
25761 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25762 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25763 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25764
25765 * stdlib/stdlib.h
25766 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25767 Declare.
25768 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25769 Likewise.
25770 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25771 Likewise.
25772 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25773 (strtof32x): Likewise.
25774 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25775 (strtof64x): Likewise.
25776 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25777 (strtof128x): Likewise.
25778 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25779 (strfromf16): Likewise.
25780 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25781 (strfromf32): Likewise.
25782 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25783 (strfromf64): Likewise.
25784 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25785 (strfromf32x): Likewise.
25786 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25787 (strfromf64x): Likewise.
25788 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25789 (strfromf128x): Likewise.
25790 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25791 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25792 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25793 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25794 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25795 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25796
25797 2017-11-03 Richard Henderson <rth@twiddle.net>
25798
25799 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25800
25801 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25802
25803 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25804
25805 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25806
25807 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25808 DT_TLSDESC_GOT initialization.
25809 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25810 (_dl_tlsdesc_resolve_hold): Likewise.
25811 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25812 (_dl_tlsdesc_resolve_hold): Likewise.
25813 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25814 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25815
25816 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25817
25818 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25819
25820 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25821
25822 [BZ #18572]
25823 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25824 non-lazily for R_ARM_TLS_DESC.
25825
25826 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25827
25828 [BZ #17078]
25829 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25830 R_ARM_TLS_DESC case.
25831 (elf_machine_lazy_rel): Remove the prelink check.
25832
25833 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25834
25835 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25836 DT_TLSDESC_GOT initialization.
25837 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25838 (_dl_tlsdesc_resolve_rela): Likewise.
25839 (_dl_tlsdesc_resolve_hold): Likewise.
25840 (_dl_tlsdesc_undefweak): Remove ldar.
25841 (_dl_tlsdesc_dynamic): Likewise.
25842 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25843 (_dl_tlsdesc_resolve_rela): Likewise.
25844 (_dl_tlsdesc_resolve_hold): Likewise.
25845 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25846 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25847 (_dl_tlsdesc_resolve_rela): Likewise.
25848 (_dl_tlsdesc_resolve_hold): Likewise.
25849
25850 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25851
25852 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25853 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25854
25855 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25856
25857 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25858 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25859
25860 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25861
25862 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25863 Declare.
25864 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25865 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25866 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25867 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25868 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25869 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25870 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25871 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25872 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25873 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25874 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25875
25876 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25877
25878 [BZ #22382]
25879 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25880 * localedata/locales/tpi_PG: Add standard header.
25881
25882 2017-11-02 Florian Weimer <fweimer@redhat.com>
25883
25884 test-errno-linux: quotactl can fail with EPERM in containers.
25885 * sysdeps/unix/sysv/linux/test-errno-linux.c
25886 (LIST, LIST_FORWARD): New macros.
25887 (check_error_in_list): New function.
25888 (test_wrp_rv): Accept list of permitted error codes.
25889 (test_wrp_rv2): Remove.
25890 (test_wrp): Call test_wrp_rv with list of error codes.
25891 (test_wrp2): Accept list of error codes.
25892 (do_test): Adjust. Allow EPERM for quotactl.
25893
25894 2017-11-02 Florian Weimer <fweimer@redhat.com>
25895
25896 * stdio-common/bug16.c (do_test): Use array_length.
25897 * stdio-common/errlist.c (_sys_nerr): Likewise.
25898 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25899 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25900 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25901 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25902 (do_test): Use array_length.
25903 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25904 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25905 * stdio-common/tst-printf-round.c (do_test): Likewise.
25906 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25907 (CHECK): Use array_length.
25908 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25909 * stdio-common/tstscanf.c (main): Likewise.
25910 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25911
25912 2017-11-02 Florian Weimer <fweimer@redhat.com>
25913
25914 Add array_length and array_end macros.
25915 * include/array_length.h: New file.
25916
25917 2017-11-02 Florian Weimer <fweimer@redhat.com>
25918
25919 [BZ #22332]
25920 * posix/tst-glob-tilde.c (do_noescape): New variable.
25921 (one_test): Process it.
25922 (do_test): Set do_noescape. Add unescaping test case.
25923
25924 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25925
25926 * math/complex.h
25927 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25928 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25929 with appropriate macros defined and undefined.
25930 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25931 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25932 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25933 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25934 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25935 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25936 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25937 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25938 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25939 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25940
25941 * math/complex.h
25942 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25943 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25944 that for long double. Do not condition define and undefine of
25945 _Mdouble_complex_ on [__CFLOAT128].
25946
25947 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25948
25949 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25950 of <sysdeps/generic/sysdep.h>.
25951 (ALIGNARG): Removed.
25952 (ASM_SIZE_DIRECTIVE): Likewise.
25953 (ENTRY): Likewise.
25954 (END): Likewise.
25955 (ENTRY_CHK): Likewise.
25956 (END_CHK): Likewise.
25957 (syscall_error): Likewise.
25958 (mcount): Likewise.
25959 (PSEUDO_END): Likewise.
25960 (L): Likewise.
25961 (atom_text_section): Likewise.
25962 * sysdeps/x86/sysdep.h: New file.
25963 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25964 of <sysdeps/generic/sysdep.h>.
25965 (ALIGNARG): Removed.
25966 (ASM_SIZE_DIRECTIVE): Likewise.
25967 (ENTRY): Likewise.
25968 (END): Likewise.
25969 (ENTRY_CHK): Likewise.
25970 (END_CHK): Likewise.
25971 (syscall_error): Likewise.
25972 (mcount): Likewise.
25973 (PSEUDO_END): Likewise.
25974 (L): Likewise.
25975 (atom_text_section): Likewise.
25976
25977 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25978
25979 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25980 category of LC_CTYPE set to "i18n:2012".
25981 * localedata/locales/i18n_ctype: Regenerate.
25982
25983 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25984
25985 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25986 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25987 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25988 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25989
25990 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25991 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25992 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25993 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25994
25995 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25996
25997 * math/complex.h
25998 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25999 New macro.
26000 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
26001 Likewise.
26002 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
26003 Likewise.
26004 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26005 (CMPLXF32X): Likewise.
26006 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26007 (CMPLXF64X): Likewise.
26008 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26009 (CMPLXF128X): Likewise.
26010
26011 * math/math.h
26012 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
26013 (__MATH_EVAL_FMT2): Define to add 0.0f.
26014
26015 2017-10-31 Alan Modra <amodra@gmail.com>
26016
26017 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
26018 include sysdep.h.
26019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
26020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
26021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
26022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
26023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
26024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
26025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
26026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
26027 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
26028 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
26029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
26030 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
26031 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
26032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
26033 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
26034 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
26035 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
26036 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
26037 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
26038 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
26039 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
26040 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
26041 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
26042 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
26043 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
26044 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
26045 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
26046 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
26047 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
26048 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
26049 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
26050 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
26051 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
26052 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
26053 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
26054 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
26055 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
26056 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
26057 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
26058 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
26059 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
26060 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
26061 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
26062 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
26063 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
26064 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
26065 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
26066 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
26067 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26068 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
26069 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
26070 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
26071 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
26072 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
26073 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
26074 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
26075 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
26076 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
26077 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26078 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26079 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
26080 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
26081 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
26082 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
26083 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
26084 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
26085 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
26086 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
26087 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
26088
26089 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
26090 include sysdep.h and math_ldbl_opt.h.
26091
26092 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
26093 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
26094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
26095 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
26096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
26097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
26098 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
26099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
26100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
26101 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
26102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
26103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
26104 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
26105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
26106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
26107 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
26108 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
26109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
26110 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
26111 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
26112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
26113 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
26114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
26115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
26116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
26117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
26118
26119 2017-10-31 Alan Modra <amodra@gmail.com>
26120
26121 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
26122 string/strncase_l.c, not string/strncase.c.
26123 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
26124 (libc_hidden_def): Redefine.
26125
26126 2017-10-31 Alan Modra <amodra@gmail.com>
26127
26128 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26129 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26130 (__strcasecmp): Don't define.
26131
26132 2017-10-31 Alan Modra <amodra@gmail.com>
26133
26134 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26135 IS_IN (libc).
26136 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26137 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26138 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26139
26140 2017-10-31 Alan Modra <amodra@gmail.com>
26141
26142 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26143 USE_AS_STPNCPY.
26144
26145 2017-10-31 Alan Modra <amodra@gmail.com>
26146
26147 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26148 Redefine only when SHARED.
26149
26150 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26151
26152 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26153 Include <bits/math-finite.h> with appropriate macros defined and
26154 undefined.
26155 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26156 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26157 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26158 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26159 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26160
26161 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26162 [!_Mlong_double_] (_Mlong_double_): Likewise.
26163 [!_Mfloat16_] (_Mfloat16_): Likewise.
26164 [!_Mfloat32_] (_Mfloat32_): Likewise.
26165 [!_Mfloat64_] (_Mfloat64_): Likewise.
26166 [!_Mfloat128_] (_Mfloat128_): Likewise.
26167 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26168 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26169 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26170 (_Mdouble_): Define without indirection through those macros.
26171 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26172 [!_Mfloat128_] (_Mfloat128_): Likewise.
26173 [_Mlong_double_] (_Mlong_double_): Likewise.
26174 (_Mdouble_): Define without indirection through those macros.
26175 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26176 not add -D_Mlong_double_=double.
26177 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26178 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26179
26180 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26181
26182 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26183
26184 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26185
26186 * sysdeps/x86/libc-start.c: Reformat.
26187
26188 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26189
26190 [BZ #22353]
26191 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26192 (1): Renamed to ...
26193 (L(Src0)): This.
26194 (L(Src1)): New.
26195 (L(Src2)): Likewise.
26196 (L(1)): Renamed to ...
26197 (L(Src3)): This.
26198
26199 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26200
26201 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26202 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26203 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26204 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26205 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26206 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26207 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26208 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26209 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26210 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26211 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26212 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26213 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26214 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26215 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26216 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26217 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26218 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26219 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26220 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26221 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26222 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26223 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26224 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26225 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26226 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26227 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26228 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26229 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26230 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26231 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26232 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26233 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26234 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26235 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26236 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26237 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26238 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26239 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26240 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26241 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26242 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26243 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26244 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26245 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26246 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26247 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26248 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26249 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26250 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26251 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26252 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26253 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26254 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26255 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26256 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26257 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26258 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26259 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26260 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26261 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26262 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26263 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26264 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26265 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26266 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26267
26268 2017-10-30 Florian Weimer <fweimer@redhat.com>
26269
26270 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26271 always defined.
26272 * io/tst-mkdirat.c (do_test): Likewise.
26273 * io/tst-mkfifoat.c (do_test): Likewise.
26274 * io/tst-mknodat.c (do_test): Likewise.
26275 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26276 * locale/programs/locale.c (select_dirs): Likewise.
26277 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26278 * posix/bug-glob2.c (my_readdir): Likewise.
26279 * posix/tst-dir.c (main): Likewise.
26280 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26281 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26282
26283 2017-10-30 Florian Weimer <fweimer@redhat.com>
26284
26285 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26286 just __USE_GNU.
26287
26288 2017-10-30 Florian Weimer <fweimer@redhat.com>
26289
26290 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26291 Convert to support/test-driver.c.
26292 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26293 New macro parameters.
26294 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26295 * posix/tst-gnuglob.c: New file.
26296 * posix/tst-gnuglob64.c: Likewise.
26297 * posix/Makefile (tests): Add tst-gnuglob64.
26298
26299 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26300
26301 [BZ #19485]
26302 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26303 and use a better translation for March in “mon”.
26304 * localedata/locales/csb_PL: Use more ASCII to improve the
26305 readability of the source.
26306
26307 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26308
26309 [BZ #13953]
26310 * localedata/locales/km_KH: Use ASCII as much
26311 as possible for better readability of the source and
26312 remove useless comments.
26313 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26314 was commented out and apparently wrong anyway because it was
26315 using Lao characters. If Buddhist era should be used
26316 for km_KH, a native speaker should write the correct formaat
26317 for Khmer.
26318 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26319 (According to CLDR, the first weekday for Cambodia is Sunday).
26320 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26321 (These were using Lao characters which must be wrong. If we get
26322 the correct data from a native speaker, we could add it back, until
26323 then it is better not to have name_mr and name_mrs at all than
26324 having it wrong).
26325
26326 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26327
26328 * locale/loadlocale.c: Correct size of
26329 _nl_value_type_LC_<category> arrays.
26330
26331 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26332
26333 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26334 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26335 with appropriate macros defined and undefined.
26336 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26337 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26338 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26339 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26340 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26341
26342 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26343
26344 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26345 "-O2 -march=i586".
26346
26347 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26348
26349 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26350 with lowercase letters to make it agree with CLDR.
26351
26352 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26353
26354 [BZ #15260]
26355 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26356 first letters of yesstr and nostr in yesexpr and noexpr,
26357 not for the full words.
26358 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26359 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26360 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26361 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26362 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26363 first letters of yesstr and nostr in yesexpr and noexpr,
26364 until now only English was matched in yesexpr and noexpr.
26365 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26366 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26367 fil but not for tl. As tl and fil are very similar, using fil
26368 is probably better than using English.
26369
26370 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26371
26372 [BZ #21706]
26373 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26374 in yesstr and nostr.
26375
26376 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26377
26378 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26379 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26380 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26381 Likewise.
26382 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26383 Likewise.
26384 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26385 Likewise.
26386 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26387 Likewise.
26388 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26389 (SNANF128X): Likewise.
26390
26391 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26392 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26393 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26394 (HUGE_VAL_F32): Likewise.
26395 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26396 (HUGE_VAL_F64): Likewise.
26397 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26398 (HUGE_VAL_F32X): Likewise.
26399 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26400 (HUGE_VAL_F64X): Likewise.
26401 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26402 (HUGE_VAL_F128X): Likewise.
26403
26404 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26405
26406 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26407 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26408 for the br_FR locale.
26409
26410 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26411
26412 [BZ #21706]
26413 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26414
26415 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26416
26417 * locale/programs/record-status.h: Define globals, and function
26418 prototypes. Move function bodies...
26419 * locale/programs/record-status.c: ... to here. New file.
26420 * iconv/Makefile (iconv_prog-modules): Add record-status.
26421 * locale/Makefile (lib-modules): Likewise.
26422 * iconv/iconv_prog.c: Remove verbose.
26423 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26424 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26425 record a warning about ASCII compatibility.
26426 * locale/programs/ld-monetary.c (monetary_finish): If
26427 warn_int_curr_symbol is true then record a warning about the symbol
26428 not being in our ISO 4217 list.
26429 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26430 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26431 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26432 (OPT_NO_WARN): Define.
26433 (OPT_WARN): Define.
26434 (options): Add entry for --no-warnings, and --warnings.
26435 (set_warnings): New function to enable/disable warnings.
26436 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26437 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26438 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26439 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26440 Pass flags to generate_locale.
26441 (generate_locale): Accept new flag argument and pass it to localedef
26442 invocation.
26443 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26444 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26445
26446 * localedata/Makefile (test-input-data): Use full file name.
26447 * localedata/da_DK.in: Rename to...
26448 * localedata/da_DK.ISO-8859-1.in: ...this.
26449 * localedata/de_DE.in: Rename to...
26450 * localedata/de_DE.ISO-8859-1.in: ...this.
26451 * localedata/en_US.in: Rename to...
26452 * localedata/en_US.ISO-8859-1.in: ...this.
26453 * localedata/fr_FR.in: Rename to...
26454 * localedata/fr_FR.UTF-8.in: ... this.
26455 * localedata/hr_HR.in: Rename to...
26456 * localedata/hr_HR.ISO-8859-2.in: ...this.
26457 * localedata/hu_HU.in: Rename to...
26458 * localedata/hu_HU.UTF-8.in: ...this.
26459 * localedata/si_LK.in: Rename to...
26460 * localedata/si_LK.UTF-8.in: ...this.
26461 * localedata/sv_SE.in: Rename to...
26462 * localedata/sv_SE.ISO-8859-1.in: ...this.
26463 * localedata/tr_TR.in: Rename to...
26464 * localedata/tr_TR.UTF-8.in: ...this.
26465 * localedata/uk_UA.in: Rename to...
26466 * localedata/uk_UA.UTF-8.in: ...this.
26467 * localedata/sort-test.sh: Test file is locale name with the
26468 suffix.
26469
26470 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26471 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26472 file.
26473 * localedata/locales/i18n_ctype: Regenerate.
26474 * localedata/locales/tr_TR: Likewise.
26475 * localedata/locales/translit_circle: Likewise.
26476 * localedata/locales/translit_cjk_compat: Likewise.
26477 * localedata/locales/translit_combining: Likewise.
26478 * localedata/locales/translit_compat: Likewise.
26479 * localedata/locales/translit_font: Likewise.
26480 * localedata/locales/translit_fraction: Likewise.
26481
26482 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26483
26484 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26485 lxvd2x/stxvd2x with lvx/stvx.
26486 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26487
26488 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26489
26490 * include/alloc_buffer.h: Replace "if if " with "if " in
26491 comments.
26492 * sysdeps/mips/memcpy.S: Likkewise.
26493 * sysdeps/mips/memset.S: Likewise.
26494 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26495 Likewise.
26496 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26497 Likewise.
26498 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26499 Likewise.
26500
26501 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26502
26503 [BZ #15261]
26504 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26505 yesexpr and noexpr.
26506 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26507 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26508 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26509 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26510 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26511 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26512 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26513
26514 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26515
26516 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26517 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26518 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26519 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26520 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26521 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26522 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26523 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26524 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26525 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26526 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26527 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26528
26529 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26530
26531 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26532 as possible for better readability of the source.
26533 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26534 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26535 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26536 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26537 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26538 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26539 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26540 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26541 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26542 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26543 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26544 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26545 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26546 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26547 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26548 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26549 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26550 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26551 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26552 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26553 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26554 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26555 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26556 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26557 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26558 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26559 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26560 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26561 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26562 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26563 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26564 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26565 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26566 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26567 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26568 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26569 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26570 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26571 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26572 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26573 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26574 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26575 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26576 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26577 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26578 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26579 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26580 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26581 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26582 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26583 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26584 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26585 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26586 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26587 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26588 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26589 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26590 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26591 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26592 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26593 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26594 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26595 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26596 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26597 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26598 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26599 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26600 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26601 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26602 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26603 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26604 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26605 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26606 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26607 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26608 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26609 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26610 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26611 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26612 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26613 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26614 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26615 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26616 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26617 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26618 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26619 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26620 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26621 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26622 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26623 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26624 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26625 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26626 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26627 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26628 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26629 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26630 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26631 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26632 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26633 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26634 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26635 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26636 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26637 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26638 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26639 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26640 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26641 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26642 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26643 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26644 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26645 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26646 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26647 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26648 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26649 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26650 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26651 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26652 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26653 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26654 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26655 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26656 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26657 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26658 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26659 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26660 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26661 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26662 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26663 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26664 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26665 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26666 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26667 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26668 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26669 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26670 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26671 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26672 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26673 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26674 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26675 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26676 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26677 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26678 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26679 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26680 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26681 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26682 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26683 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26684 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26685 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26686 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26687 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26688 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26689 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26690 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26691 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26692 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26693 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26694 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26695 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26696 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26697 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26698 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26699 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26700 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26701 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26702 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26703 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26704 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26705 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26706 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26707
26708 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26709
26710 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26711 (Use first letters of yesstr and nostr correctly instead of using
26712 full words).
26713
26714 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26715
26716 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26717 (Use first letters of yesstr and nostr correctly).
26718
26719 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26720
26721 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26722 also check for the first characters of yesstr and nostr.
26723 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26724 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26725
26726 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26727
26728 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26729 also check for Chinese characters.
26730
26731 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26732
26733 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26734 match also for the contents of yesstr and nostr. As the first letter
26735 of yesstr and nostr is equal, checking only for the first letter
26736 is not enough.
26737
26738 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26739
26740 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26741 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26742
26743 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26744
26745 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26746 of main contributor.
26747
26748 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26749
26750 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26751 instead of using English.
26752
26753 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26754
26755 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26756 by including the first letters of nostr and yesexpr in the regexp.
26757 Also make it more readable by using ASCII where possible.
26758
26759 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26760
26761 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26762 the first letter of nostr in the regexp. It agrees with CLDR now.
26763 Also make it more readable by using ASCII where possible.
26764
26765 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26766
26767 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26768 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26769 these strings contain a U+17D6 (which somewhat looks like a colon)
26770 instead of a real colon to separate the full words for “yes”
26771 and “no” from the single letter responses.
26772
26773 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26774
26775 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26776 it agree with CLDR (include the first letter of yesstr).
26777 Also make it more readable by using ASCII where possible.
26778
26779 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26780
26781 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26782 and improve yesexpr and noexpr. The yesstr and nostr apparently
26783 came from CLDR. And CLDR has a bug there: these strings contain
26784 a U+0903 (which looks like a colon) instead of a real colon
26785 to separate the full words for “yes” and “no” from the single
26786 letter responses.
26787
26788 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26789
26790 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26791 letters of the full yesstr and nostr in yesexpr and noexpr.
26792
26793 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26794
26795 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26796 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26797 * localedata/locales/an_ES: Make source more readable by using ASCII
26798 where possible.
26799
26800 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26801
26802 [BZ #20952]
26803 * localedata/locales/yuw_PG: New file.
26804 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26805 * locale/iso-639.def: Add Yau (Uruwa).
26806
26807 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26808
26809 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26810
26811 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26812
26813 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26814 (__libc_realloc): Likewise.
26815 (_mid_memalign): Likewise.
26816 (__libc_calloc): Likewise.
26817
26818 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26819
26820 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26821 by adding the generic +1 and -0 as in all other locales.
26822 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26823 day names and make it more readable by using ASCII where possible.
26824
26825 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26826
26827 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26828 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26829
26830 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26831
26832 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26833 WNOHANG in waitpid call.
26834
26835 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26836
26837 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26838 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26839
26840 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26841 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26842 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26843 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26844 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26845 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26846 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26847 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26848 variables.
26849
26850 2017-10-23 Michael Collison <michael.collison@arm.com>
26851
26852 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26853 with __builtin_sqrt.
26854 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26855 with __builtin_sqrtf.
26856 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26857 with __builtin_ceil.
26858 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26859 with __builtin_ceilf.
26860 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26861 with __builtin_floor.
26862 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26863 with __builtin_floorf.
26864 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26865 with __builtin_fma.
26866 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26867 with __builtin_fmaf.
26868 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26869 with __builtin_fmax.
26870 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26871 with __builtin_fmaxf.
26872 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26873 with __builtin_fmin.
26874 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26875 with __builtin_fminf.
26876 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26877 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26878 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26879 with builtin_rint and conversion to int.
26880 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26881 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26882 with builtin_llround.
26883 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26884 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26885 with builtin_rint and conversion to long int.
26886 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26887 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26888 with builtin_lround.
26889 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26890 with builtin_lroundf.
26891 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26892 statements with __builtin_nearbyint.
26893 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26894 statements with __builtin_nearbyintf.
26895 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26896 with __builtin_rint.
26897 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26898 with __builtin_rintf.
26899 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26900 with __builtin_round.
26901 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26902 with __builtin_roundf.
26903 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26904 with __builtin_trunc.
26905 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26906 with __builtin_truncf.
26907 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26908 and s_l[l]round[f].c too.
26909
26910 2017-10-23 Alan Modra <amodra@gmail.com>
26911
26912 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26913 Adjust stack after restoring regs. Add missing LR cfi_restore.
26914
26915 2017-10-23 Alan Modra <amodra@gmail.com>
26916
26917 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26918 Move LR save and frame setup/teardown and LR restore to
26919 immediately around memset call. Provide cfi.
26920
26921 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26922
26923 * sysdeps/i386/fpu/e_powf.S: Removed.
26924 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26925 * sysdeps/i386/fpu/w_powf.c: Likewise.
26926 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26927 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26928 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26929 Add e_powf-sse2.
26930 (CFLAGS-e_powf-sse2.c): New.
26931 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26932 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26933
26934 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26935
26936 * sysdeps/i386/fpu/e_log2f.S: Removed.
26937 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26938 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26939 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26940 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26941 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26942 Add e_log2f-sse2.
26943 (CFLAGS-e_log2f-sse2.c): New.
26944 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26945 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26946
26947 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26948
26949 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26950 Add e_powf-fma.
26951 (CFLAGS-e_powf-fma.c): New.
26952 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26953 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26954
26955 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26956
26957 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26958 Add e_log2f-fma.
26959 (CFLAGS-e_log2f-fma.c): New.
26960 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26961 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26962
26963 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26964
26965 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26966 Add e_logf-fma.
26967 (CFLAGS-e_logf-fma.c): New.
26968 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26969 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26970
26971 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26972
26973 * sysdeps/i386/fpu/e_logf.S: Removed.
26974 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26975 * sysdeps/i386/fpu/w_logf.c: Likewise.
26976 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26977 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26978 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26979 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26980 Add e_logf-sse2.
26981 (CFLAGS-e_logf-sse2.c): New.
26982 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26983 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26984
26985 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26986
26987 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26988 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26989 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26990 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26991 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26992 Add e_exp2f-sse2.
26993 (CFLAGS-e_exp2f-sse2.c): New.
26994 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26995 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26996
26997 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26998
26999 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27000 Add e_exp2f-fma.
27001 (CFLAGS-e_exp2f-fma.c): New.
27002 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
27003 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
27004
27005 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27006
27007 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
27008 * sysdeps/i386/fpu/e_expf.S: Likewise.
27009 * sysdeps/i386/fpu/math_errf.c: Likewise.
27010 * sysdeps/i386/fpu/w_expf.c: Likewise.
27011 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
27012 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
27013 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
27014 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
27015 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
27016 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
27017 Remove e_expf-ia32.
27018 (CFLAGS-e_expf-sse2.c): New.
27019 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
27020 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
27021
27022 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
27023
27024 * sysdeps/x86_64/fpu/e_expf.S: Removed.
27025 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
27026 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
27027 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
27028 e_expf.c.
27029 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
27030 New.
27031 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
27032 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
27033 Renamed to ...
27034 (__redirect_expf): This.
27035 (SYMBOL_NAME): Changed to expf.
27036 (__ieee754_expf): Renamed to ...
27037 (__expf): This.
27038 (__GI___expf): This.
27039 (__ieee754_expf): Add strong_alias.
27040 (__expf_finite): Likewise.
27041 (__expf): New.
27042 Include <sysdeps/ieee754/flt-32/e_expf.c>.
27043
27044 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
27045
27046 [BZ #22332]
27047 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
27048 unescaping.
27049
27050 2017-10-21 Florian Weimer <fweimer@redhat.com>
27051
27052 * posix/Makefile (tests): Add tst-glob-tilde.
27053 (tests-special): Add tst-glob-tilde-mem.out
27054 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
27055 (tst-glob-tilde-mem.out): Add mtrace check.
27056 * posix/tst-glob-tilde.c: New file.
27057
27058 2017-10-20 Joseph Myers <joseph@codesourcery.com>
27059
27060 * bits/floatn-common.h: New file.
27061 * math/Makefile (headers): Add bits/floatn-common.h.
27062 * bits/floatn.h: Include <bits/floatn-common.h>.
27063 * sysdeps/ia64/bits/floatn.h: Likewise.
27064 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27065 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
27066 * sysdeps/powerpc/bits/floatn.h: Likewise.
27067 * sysdeps/x86/bits/floatn.h: Likewise.
27068
27069 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27070
27071 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
27072 indicates whether compiler emits an warning for alias for
27073 functions with incompatible types.
27074
27075 [BZ #22273]
27076 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
27077 the auxiliary process is terminated by a signal before calling _exit
27078 or execve.
27079
27080 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27081
27082 [BZ #21265]
27083 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
27084 New.
27085 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
27086 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
27087 and bit_arch_XSAVEC_Usable if needed.
27088 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
27089 and bit_arch_Use_dl_runtime_resolve_opt.
27090 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
27091 Removed.
27092 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
27093 (bit_arch_Prefer_No_AVX512): Updated.
27094 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
27095 (bit_arch_XSAVEC_Usable): New.
27096 (STATE_SAVE_OFFSET): Likewise.
27097 (STATE_SAVE_MASK): Likewise.
27098 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
27099 (cpu_features): Add xsave_state_size and xsave_state_full_size.
27100 (index_arch_Use_dl_runtime_resolve_opt): Removed.
27101 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
27102 (index_arch_XSAVEC_Usable): New.
27103 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
27104 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
27105 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
27106 is enabled.
27107 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
27108 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
27109 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
27110 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
27111 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
27112 _dl_runtime_resolve_xsavec.
27113 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
27114 Removed.
27115 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
27116 instead of VEC_SIZE.
27117 (REGISTER_SAVE_BND0): Removed.
27118 (REGISTER_SAVE_BND1): Likewise.
27119 (REGISTER_SAVE_BND3): Likewise.
27120 (REGISTER_SAVE_RAX): Always defined to 0.
27121 (VMOV): Removed.
27122 (_dl_runtime_resolve_avx): Likewise.
27123 (_dl_runtime_resolve_avx_slow): Likewise.
27124 (_dl_runtime_resolve_avx_opt): Likewise.
27125 (_dl_runtime_resolve_avx512): Likewise.
27126 (_dl_runtime_resolve_avx512_opt): Likewise.
27127 (_dl_runtime_resolve_sse): Likewise.
27128 (_dl_runtime_resolve_sse_vex): Likewise.
27129 (USE_FXSAVE): New.
27130 (_dl_runtime_resolve_fxsave): Likewise.
27131 (USE_XSAVE): Likewise.
27132 (_dl_runtime_resolve_xsave): Likewise.
27133 (USE_XSAVEC): Likewise.
27134 (_dl_runtime_resolve_xsavec): Likewise.
27135 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27136 Removed.
27137 (_dl_runtime_resolve_avx512_opt): Likewise.
27138 (_dl_runtime_resolve_avx): Likewise.
27139 (_dl_runtime_resolve_avx_opt): Likewise.
27140 (_dl_runtime_resolve_sse): Likewise.
27141 (_dl_runtime_resolve_sse_vex): Likewise.
27142 (_dl_runtime_resolve_fxsave): New.
27143 (_dl_runtime_resolve_xsave): Likewise.
27144 (_dl_runtime_resolve_xsavec): Likewise.
27145
27146 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27147
27148 [BZ #22320]
27149 CVE-2017-15670
27150 * posix/glob.c (__glob): Fix one-byte overflow.
27151
27152 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27153
27154 * malloc/malloc.c (sysdep-cancel.h): Add include.
27155
27156 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27157
27158 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27159
27160 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27161
27162 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27163 (tests): Remove $(objpfx)ga_test depdendency.
27164 * resolv/ga_test.c: Remove file.
27165
27166 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27167
27168 [BZ #18812]
27169 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27170 * localedata/locales/kab_DZ: New file.
27171
27172 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27173
27174 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27175 _dl_relocate_static_pie instead of _dl_start to compute load
27176 address in static PIE.
27177
27178 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27179
27180 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27181
27182 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27183
27184 [BZ #13605]
27185 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27186 * localedata/locales/shn_MM: New file.
27187
27188 2017-10-20 Florian Weimer <fweimer@redhat.com>
27189
27190 [BZ #22321]
27191 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27192 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27193 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27194 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27195 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27196 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27197
27198 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27199
27200 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27201
27202 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27203
27204 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27205
27206 [BZ #22322]
27207 * sysdeps/mips/bits/long-double.h: Move to ....
27208 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27209
27210 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27211
27212 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27213
27214 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27215 H.J. Lu <hongjiu.lu@intel.com>
27216
27217 [BZ #22299]
27218 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27219 GLRO(dl_platform) to NULL.
27220 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27221 (modules-names): Add tst-platformmod-1 and
27222 x86_64/tst-platformmod-2.
27223 (CFLAGS-tst-platform-1.c): New.
27224 (CFLAGS-tst-platformmod-1.c): Likewise.
27225 (CFLAGS-tst-platformmod-2.c): Likewise.
27226 (LDFLAGS-tst-platformmod-2.so): Likewise.
27227 ($(objpfx)tst-platform-1): Likewise.
27228 ($(objpfx)tst-platform-1.out): Likewise.
27229 (tst-platform-1-ENV): Likewise.
27230 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27231 * sysdeps/x86_64/tst-platform-1.c: New file.
27232 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27233 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27234
27235 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27236
27237 [BZ #13994]
27238 * locale/iso-639.def: Add Karbi.
27239 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27240 * localedata/locales/mjw_IN: New file.
27241
27242 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27243
27244 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27245 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27246 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27247 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27248 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27249 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27250 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27251 <bits/floatn.h>.
27252 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27253 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27254 * manual/math.texi (Mathematics): Document additional architecture
27255 support for _Float128.
27256 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27257 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27258 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27259 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27260 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27261 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27262 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27263 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27264 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27265 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27266 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27267 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27268 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27269 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27270 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27271
27272 2017-10-18 Renlin Li <renlin.li@arm.com>
27273
27274 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27275 _DYNAMIC symbol to calculate load address.
27276
27277 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27278
27279 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27280 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27281 summary bits.
27282 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27283 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27284
27285 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27286
27287 [BZ #16777]
27288 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27289 and improve readability by using more ASCII.
27290 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27291 and improve readability by using more ASCII.
27292
27293 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27294
27295 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27296 not all targets support atomics on bool.
27297
27298 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27299
27300 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27301 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27302 __f128.
27303 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27304 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27305 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27306 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27307 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27308 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27309
27310 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27311
27312 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27313 defines.
27314
27315 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27316
27317 [BZ #22159]
27318 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27319 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27320 (do_check_remalloced_chunk): Fix build bug.
27321 (do_check_malloc_state): Add assert that checks arena->top.
27322 (malloc_consolidate): Remove initialization.
27323 (int_mallinfo): Remove call to malloc_consolidate.
27324 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27325
27326 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27327
27328 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27329 (have_fastchunks): Remove.
27330 (clear_fastchunks): Remove.
27331 (set_fastchunks): Remove.
27332 (malloc_state): Add have_fastchunks.
27333 (malloc_init_state): Use have_fastchunks.
27334 (do_check_malloc_state): Remove incorrect invariant checks.
27335 (_int_malloc): Use have_fastchunks.
27336 (_int_free): Likewise.
27337 (malloc_consolidate): Likewise.
27338
27339 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27340
27341 * malloc/malloc.c (tcache_put): Inline.
27342 (tcache_get): Inline.
27343
27344 2017-10-17 Jordi Mallach <jordi@gnu.org>
27345
27346 Aurelien Jarno <aurelien@aurel32.net>
27347 [BZ #2522]
27348 * localedata/locales/ca_ES@valencia: New file.
27349 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27350
27351 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27352
27353 [BZ #22296]
27354 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27355 < 6.x
27356
27357 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27358
27359 * scripts/build-many-glibcs.py (Context.add_all_configs):
27360 Add arm-linux-gnueabihf multiarch extra_glibcs.
27361
27362 * sysdeps/generic/ifunc-init.h: New file.
27363 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27364
27365 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27366
27367 [BZ #22019]
27368 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27369 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27370 * stdlib/tst-strfmon_l.c: adapt test case.
27371
27372 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27373
27374 * sysdeps/generic/float128-abi.h: New file.
27375 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27376 non-__prefixed symbols to ....
27377 * math/Versions: ... here. Include <float128-abi.h>.
27378 * stdlib/Versions ... and here. Include <float128-abi.h>
27379
27380 2017-10-16 Florian Weimer <fweimer@redhat.com>
27381
27382 * version.h (VERSION): Switch to ".9000" as the development
27383 version suffix.
27384
27385 2017-10-16 Florian Weimer <fweimer@redhat.com>
27386
27387 [BZ #22050]
27388 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27389 compat_symbol_reference to access non-default version.
27390
27391 2017-10-16 Florian Weimer <fweimer@redhat.com>
27392
27393 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27394
27395 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27396
27397 * include/shlib-compat.h (compat_symbol_reference): Update
27398 comment.
27399
27400 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27401
27402 * math/Makefile (test-types): Add
27403 $(type-float128-$(float128-alias-fcts)).
27404 * math/test-float128.h (TYPE_STR): Define conditional on
27405 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27406 (ULP_IDX): Likewise.
27407 (ULP_I_IDX): Likewise.
27408
27409 * stdlib/strtold.c: Include <bits/floatn.h>
27410 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27411 and later undefine as macro. Define as weak alias if
27412 [!USE_WIDE_CHAR].
27413 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27414 and later undefine as macro. Define as weak alias if
27415 [USE_WIDE_CHAR].
27416 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27417 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27418 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27419 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27420 Define and later undefine as macro. Define as weak alias if
27421 [USE_WIDE_CHAR].
27422 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27423 <bits/floatn.h>.
27424 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27425 Define and later undefine as macro. Define as weak alias if
27426 [!USE_WIDE_CHAR].
27427 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27428 Define and later undefine as macro. Define as weak alias if
27429 [USE_WIDE_CHAR].
27430
27431 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27432
27433 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27434 record_verbose messages.
27435
27436 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27437
27438 [BZ #22052]
27439 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27440 to silence -O3 -Wall warning with GCC 7.
27441
27442 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27443
27444 * Makeconfig (+link-static-before-libc): Use the first of
27445 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27446 * gmon/Makefile (tests): Add tst-gmon-static.
27447 (tests-static): Likewise.
27448 (CFLAGS-tst-gmon-static.c): New.
27449 (CRT-tst-gmon-static): Likewise.
27450 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27451 (tst-gmon-static-ENV): Likewise.
27452 (tests-special): Likewise.
27453 ($(objpfx)tst-gmon-static.out): Likewise.
27454 (clean-tst-gmon-static-data): Likewise.
27455 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27456 * gmon/tst-gmon-static-gprof.sh: New file.
27457 * gmon/tst-gmon-static.c: Likewise.
27458
27459 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27460
27461 [BZ #22295]
27462 * locale/programs/linereader.c (get_string): Don't warn on
27463 non-symbolic character.
27464
27465 [BZ #22294]
27466 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27467 int_curr_symbol.
27468
27469 [BZ #22292]
27470 * locale/programs/record-status.h: New file
27471 * locale/programs/locale.c: Add comment.
27472 * locale/programs/charmap-dir.c: Don't include error.h.
27473 (charmap_opendir): Use record_error.
27474 * locale/programs/charmap.c: Don't include error.h.
27475 (charmap_read): Use record_error, and record_warning.
27476 (parse_charmap): Likewise.
27477 * locale/programs/ld-address.c: Don't include error.h.
27478 (address_finish): Use record_error, and record_warning.
27479 * locale/programs/ld-collate.c: Don't include error.h.
27480 (collate_finish): Use record_error, and record_error_at_line.
27481 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27482 (ctype_class_new): Likewise.
27483 (ctype_map_new): Likewise.
27484 (set_one_default): Likewise.
27485 (set_class_defaults): Likewise.
27486 (translit_flatten): Likewise.
27487 (allocate_arrays): Use record_error, and record_verbose.
27488 * locale/programs/ld-identification.c: Don't include error.h.
27489 (indentation_finish): Use record_error and record_warning.
27490 * locale/programs/ld-measurement.c: Don't include error.h.
27491 (measurement_finish): Use record_error.
27492 * locale/programs/ld-messages.c
27493 (message_finish): Likewise.
27494 * locale/programs/ld-monetary.c
27495 (monetary_finish): Likewise.
27496 * locale/programs/ld-name.c (name_finish): Use record_error
27497 and record_warning.
27498 * locale/programs/ld-numeric.c
27499 (numeric_finish): Use record_error.
27500 * locale/programs/ld-paper.c: Don't include error.h.
27501 (paper_finish): Use record_error.
27502 * locale/programs/ld-telephone.c: Don't include error.h.
27503 (telephone_finish): Use record_error.
27504 * locale/programs/ld-time.c (time_finish): Likewise.
27505 * locale/programs/linereader.h (lr_error): Make inline func.
27506 * locale/programs/localedef.c: Define recorded_warning_count,
27507 and recorded_error_count.
27508 (main): Use record_error. Use recorded_error_count and
27509 recorded_warning_count to issue correct error returns.
27510 (add_to_readlist): Use record_error.
27511 (find_locale): Likewise.
27512 (load_locale): Likewise.
27513 * locale/programs/localedef.h: Remove be_quiet
27514 and WITH_CUR_LOCALE.
27515 * locale/programs/locarchive.c (compare_from_file): Use
27516 record_error.
27517 * locale/programs/locfile.c (write_locale_data): Use
27518 record_error.
27519 * locale/programs/repertoire.c: Dont include error.h.
27520 (repertoire_complain): Use record_error.
27521 * localedata/tst-fmon.sh: Expect failures from localedef.
27522 * localedata/tst-locale.sh: Likewise.
27523 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27524
27525 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27526 (REPORTS): Likewise.
27527 (check): Likewise.
27528 (i18n): Rename to...
27529 (i18n_ctype): ...this.
27530 (i18n-report): Rename to...
27531 (i18n_ctype-report): ...this.
27532 * localedata/locales/i18n_ctype: Regenerate.
27533 * localedata/locales/i18n: copy i18n_ctype.
27534
27535 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27536
27537 * stdlib/strfroml.c: Include <bits/floatn.h>.
27538 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27539 Define before include of <stdlib.h> and undefine afterwards, then
27540 define as weak alias.
27541
27542 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27543 Undefine and restore default definition. Use
27544 libm_alias_ldouble_other.
27545
27546 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27547
27548 [BZ #22153]
27549 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27550 in coredumps.
27551
27552 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27553
27554 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27555 Assign sym_map to be map for local symbols, as TLS relocations
27556 use sym_map to determine whether the symbol is defined and to
27557 extract the TLS information.
27558 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27559 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27560
27561 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27562
27563 [BZ #22189]
27564 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27565 (math_force_eval): Add powerpc version.
27566
27567 [BZ #22142]
27568 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27569 -DBL_MAX.
27570 (do_test): Likewise.
27571 * stdio-common/tst-printf.sh: Likewise.
27572 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27573 ifdef clause in order to set the carry bit right. Replace r0 by
27574 0 without changing the behavior.
27575
27576 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27577
27578 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27579 <libm-alias-ldouble.h>.
27580 (fabsl): Define using libm_alias_ldouble.
27581 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27582 <libm-alias-ldouble.h>.
27583 (fabsl): Define using libm_alias_ldouble.
27584
27585 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27586 Remove conditional code.
27587
27588 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27589 Rename to __clog10_internal_l.
27590 (__clog10_internal_l): Define aliases using
27591 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27592 with __clog10.
27593
27594 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27595
27596 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27597 * benchtests/sincosf-inputs: New file.
27598 * benchtests/cosf-inputs: New file.
27599 * benchtests/sinf-inputs: New file.
27600
27601 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27602
27603 * posix/tst-spawn.c (do_test): Wait for both children.
27604
27605 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27606
27607 [BZ #22284]
27608 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27609 tests-pie): Add tst-gmon-pie.
27610 (CFLAGS-tst-gmon-pie.c): New.
27611 (CRT-tst-gmon-pie): Likewise.
27612 (tst-gmon-pie-ENV): Likewise.
27613 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27614 ($(objpfx)tst-gmon-pie.out): Likewise.
27615 (clean-tst-gmon-pie-data): Likewise.
27616 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27617 * gmon/gmon.c [PIC]: Include <link.h>.
27618 [PIC] (callback): New function.
27619 (write_hist): Add an argument for load address. Subtract load
27620 address from PCs.
27621 (write_call_graph): Likewise.
27622 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27623 it to write_hist and write_call_graph.
27624 * gmon/tst-gmon-pie.c: New file.
27625
27626 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27627
27628 * math/Makefile (test-types-basic): New variable.
27629 (test-types): Likewise.
27630 (libm-test-support): Use $(test-types) instead of $(types).
27631 (libm-tests-base-normal): Likewise.
27632 (libm-tests-base-finite): Likewise.
27633 (libm-tests-base-inline): Likewise.
27634 (generated): Likewise.
27635 ($(objpfx)libm-test-support-$(t).c): Likewise.
27636 (libm-tests-for-type iterator): Likewise.
27637 (libm-test-support iterator): Likewise.
27638 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27639 (ulp_idx): Use ULP_IDX.
27640 * math/test-ldouble.h: Include <float.h>.
27641 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27642 (ULP_IDX): New macro.
27643 (ULP_I_IDX): Likewise.
27644 * math/test-double.h (ULP_IDX): Likewise.
27645 (ULP_I_IDX): Likewise.
27646 * math/test-float.h (ULP_IDX): Likewise.
27647 (ULP_I_IDX): Likewise.
27648 * math/test-float128.h (ULP_IDX): Likewise.
27649 (ULP_I_IDX): Likewise.
27650
27651 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27652
27653 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27654 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27655 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27656 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27657 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27658 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27659 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27660 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27661 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27662 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27663 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27664 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27665 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27666 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27667 (SINGLE_THREAD_BY_GLOBAL): Define.
27668 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27669 Likewise.
27670 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27671 Likewise.
27672 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27673 Likewise.
27674 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27675 Likewise.
27676 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27677 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27678 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27679 Likewise.
27680
27681 2017-10-11 Andreas Schwab <schwab@suse.de>
27682
27683 * nis/Makefile (aux): Remove.
27684 * nscd/Makefile (aux): Add nscd_hash.
27685 (nscd-modules): Likewise.
27686 ($(objpfx)nscd): Don't depend on libnsl.
27687 * nscd/nscd_hash.c: New file.
27688 * nscd/nscd_hash.h: Likewise.
27689 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27690 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27691 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27692 instead of <nis/rpcsvc/nis.h>.
27693 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27694
27695 2017-10-11 Florian Weimer <fweimer@redhat.com>
27696
27697 [BZ #22078]
27698 Avoid large NSS buffers with many addresses, aliases.
27699 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27700 using dynarrays and struct alloc_buffer.
27701 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27702 (tst-nss-files-hosts-multi): Link with -ldl.
27703 * nss/tst-nss-files-hosts-multi.c: New file.
27704
27705 2017-10-11 Florian Weimer <fweimer@redhat.com>
27706
27707 [BZ #18023]
27708 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27709 scratch_buffer. Eliminate gotos.
27710
27711 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27712
27713 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27714 libm_alias_ldouble_other.
27715 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27716 undefine and redefine.
27717 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27718 (exp10l): Do not define here.
27719 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27720 (weak_alias): Undefine and redefine.
27721 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27722 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27723 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27724 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27725
27726 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27727 [!__fma] (fma): Define using libm_alias_double.
27728 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27729 [!__fmaf] (fmaf): Define using libm_alias_float.
27730 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27731 (fmal): Define using libm_alias_ldouble.
27732
27733 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27734
27735 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27736 New macro.
27737 (libm_alias_double_other): Likewise.
27738 (libm_alias_double_r): Use libm_alias_double_other_r.
27739 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27740 New macro.
27741 (libm_alias_float_other): Likewise.
27742 (libm_alias_float_r): Use libm_alias_float_other_r.
27743 * sysdeps/generic/libm-alias-float128.h
27744 (libm_alias_float128_other_r): New macro.
27745 (libm_alias_float128_other): Likewise.
27746 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27747 * sysdeps/generic/libm-alias-ldouble.h
27748 (libm_alias_ldouble_other_r): New macro.
27749 (libm_alias_ldouble_other): Likewise.
27750 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27751 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27752 (libm_alias_double_other_r): New macro.
27753 (libm_alias_double_other): Likewise.
27754 (libm_alias_double_r): Use libm_alias_double_other_r.
27755 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27756 (libm_alias_ldouble_other_r): New macro.
27757 (libm_alias_ldouble_other): Likewise.
27758 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27759 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27760 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27761 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27762 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27763 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27764 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27765 * math/w_exp2f.c: Use libm_alias_float_other.
27766 * math/w_expf.c: Likewise.
27767 * math/w_log2f.c: Likewise.
27768 * math/w_logf.c: Likewise.
27769 * math/w_powf.c: Likewise.
27770 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27771 [!__exp2f]: Use libm_alias_float_other.
27772 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27773 [!__expf]: Use libm_alias_float_other.
27774 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27775 [!__log2f]: Use libm_alias_float_other.
27776 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27777 [!__logf]: Use libm_alias_float_other.
27778 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27779 [!__powf]: Use libm_alias_float_other.
27780
27781 2017-10-10 Florian Weimer <fweimer@redhat.com>
27782
27783 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27784 function.
27785 (_nss_files_gethostbyname3_r): Call it.
27786
27787 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27788
27789 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27790 error. Remove default definition of declare_mgen_alias.
27791 [!declare_mgen_alias_r]: Likewise.
27792 * sysdeps/generic/math-type-macros-double.h
27793 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27794 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27795 (declare_mgen_alias_r): Likewise.
27796 * sysdeps/generic/math-type-macros-float128.h
27797 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27798 * sysdeps/generic/math-type-macros-ldouble.h
27799 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27800 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27801 macro.
27802 (declare_mgen_alias_r_s): Likewise.
27803 (declare_mgen_alias_r): Likewise.
27804 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27805 (lgamma_r): Define using libm_alias_double_r.
27806 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27807 (lgammaf_r): Define using libm_alias_float_r.
27808 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27809 (lgammal_r): Define using libm_alias_ldouble_r.
27810 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27811 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27812
27813 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27814
27815 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27816 extern declaration.
27817
27818 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27819
27820 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27821
27822 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27823
27824 [BZ #21326]
27825 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27826 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27827 * math/Makefile (test-math-cxx11): New test.
27828 * math/test-math-cxx11.cc: New file.
27829
27830 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27831
27832 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27833
27834 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27835 call to allocate the slave pty file descriptor.
27836
27837 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27838
27839 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27840 [!__fma] (fma): Define using libm_alias_double.
27841 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27842 [!__fma] (fma): Define using libm_alias_double.
27843
27844 * sysdeps/ieee754/float128/float128_private.h: Include
27845 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27846 (libm_alias_ldouble_r): Undefine and redefine.
27847 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27848 <libm-alias-ldouble.h>.
27849 (asinhl): Define using libm_alias_ldouble.
27850 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27851 <libm-alias-ldouble.h>.
27852 (atanl): Define using libm_alias_ldouble.
27853 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27854 <libm-alias-ldouble.h>.
27855 (cbrtl): Define using libm_alias_ldouble.
27856 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27857 <libm-alias-ldouble.h>.
27858 (ceill): Define using libm_alias_ldouble.
27859 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27860 <libm-alias-ldouble.h>.
27861 (copysignl): Define using libm_alias_ldouble.
27862 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27863 <libm-alias-ldouble.h>.
27864 (cosl): Define using libm_alias_ldouble.
27865 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27866 <libm-alias-ldouble.h>.
27867 (erfl): Define using libm_alias_ldouble.
27868 (erfcl): Likewise.
27869 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27870 <libm-alias-ldouble.h>.
27871 (expm1l): Define using libm_alias_ldouble.
27872 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27873 <libm-alias-ldouble.h>.
27874 (fabsl): Define using libm_alias_ldouble.
27875 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27876 <libm-alias-ldouble.h>.
27877 (floorl): Define using libm_alias_ldouble.
27878 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27879 <libm-alias-ldouble.h>.
27880 (fmal): Define using libm_alias_ldouble.
27881 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27882 <libm-alias-ldouble.h>.
27883 (frexpl): Define using libm_alias_ldouble.
27884 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27885 libm_alias_ldouble.
27886 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27887 <libm-alias-ldouble.h>.
27888 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27889 libm_alias_ldouble.
27890 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27891 <libm-alias-ldouble.h>.
27892 (getpayloadl): Define using libm_alias_ldouble.
27893 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27894 <libm-alias-ldouble.h>.
27895 (llrintl): Define using libm_alias_ldouble.
27896 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27897 <libm-alias-ldouble.h>.
27898 (llroundl): Define using libm_alias_ldouble.
27899 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27900 <libm-alias-ldouble.h>.
27901 (logbl): Define using libm_alias_ldouble.
27902 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27903 <libm-alias-ldouble.h>.
27904 (lrintl): Define using libm_alias_ldouble.
27905 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27906 <libm-alias-ldouble.h>.
27907 (lroundl): Define using libm_alias_ldouble.
27908 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27909 <libm-alias-ldouble.h>.
27910 (modfl): Define using libm_alias_ldouble.
27911 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27912 <libm-alias-ldouble.h>.
27913 (nearbyintl): Define using libm_alias_ldouble.
27914 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27915 <libm-alias-ldouble.h>.
27916 (nextafterl): Define using libm_alias_ldouble.
27917 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27918 <libm-alias-ldouble.h>.
27919 (nextupl): Define using libm_alias_ldouble.
27920 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27921 <libm-alias-ldouble.h>.
27922 (remquol): Define using libm_alias_ldouble.
27923 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27924 <libm-alias-ldouble.h>.
27925 (rintl): Define using libm_alias_ldouble.
27926 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27927 <libm-alias-ldouble.h>.
27928 (roundevenl): Define using libm_alias_ldouble.
27929 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27930 <libm-alias-ldouble.h>.
27931 (roundl): Define using libm_alias_ldouble.
27932 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27933 using libm_alias_ldouble.
27934 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27935 <libm-alias-ldouble.h>.
27936 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27937 Define using libm_alias_ldouble.
27938 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27939 <libm-alias-ldouble.h>.
27940 (sincosl): Define using libm_alias_ldouble.
27941 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27942 <libm-alias-ldouble.h>.
27943 (sinl): Define using libm_alias_ldouble.
27944 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27945 <libm-alias-ldouble.h>.
27946 (tanhl): Define using libm_alias_ldouble.
27947 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27948 <libm-alias-ldouble.h>.
27949 (tanl): Define using libm_alias_ldouble.
27950 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27951 <libm-alias-ldouble.h>.
27952 (totalorderl): Define using libm_alias_ldouble.
27953 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27954 <libm-alias-ldouble.h>.
27955 (totalordermagl): Define using libm_alias_ldouble.
27956 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27957 <libm-alias-ldouble.h>.
27958 (truncl): Define using libm_alias_ldouble.
27959 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27960 libm_alias_ldouble.
27961 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27962 libm_alias_ldouble.
27963 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27964 <libm-alias-ldouble.h>.
27965 (weak_alias): Do not undefine and redefine.
27966 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27967 (copysignl): Define with long_double_symbol only if [IS_IN
27968 (libc)].
27969 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27970 <libm-alias-ldouble.h>.
27971 (weak_alias): Do not undefine and redefine.
27972 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27973 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27974 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27975 <libm-alias-ldouble.h>.
27976 (weak_alias): Do not undefine and redefine.
27977 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27978 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27979 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27980 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27981 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27982 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27983 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27984 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27985 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27986 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27987 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27988 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27989 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27990 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27991 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27992 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27993 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27994 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27995 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27996 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27997 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27998 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27999 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
28000 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
28001 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
28002 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
28003
28004 2017-10-06 Carlos O'Donell <carlos@redhat.com>
28005
28006 [BZ #22111]
28007 * malloc/malloc.c (tcache_shutting_down): Use bool type.
28008 (tcache_thread_freeres): Set tcache_shutting_down before
28009 freeing the tcache.
28010 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
28011 * malloc/tst-malloc-tcache-leak.c: New file.
28012
28013 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28014
28015 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
28016 back to powerpc32 file.
28017 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28018 (memrchr): Add __memrchr_power8 to ifunc list.
28019 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
28020 extra bytes for unaligned inputs.
28021
28022 2017-10-06 Joseph Myers <joseph@codesourcery.com>
28023
28024 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
28025 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
28026 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
28027 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
28028 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
28029
28030 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28031
28032 * sysdeps/arm/libm-test-ulps: Update.
28033
28034 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
28035 <libm-alias-ldouble.h>.
28036 (asinhl): Define using libm_alias_ldouble.
28037 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
28038 <libm-alias-ldouble.h>.
28039 (cbrtl): Define using libm_alias_ldouble.
28040 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
28041 <libm-alias-ldouble.h>.
28042 (copysignl): Define using libm_alias_ldouble.
28043 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
28044 <libm-alias-ldouble.h>.
28045 (cosl): Define using libm_alias_ldouble.
28046 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
28047 <libm-alias-ldouble.h>.
28048 (erfl): Define using libm_alias_ldouble.
28049 (erfcl): Likewise.
28050 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
28051 <libm-alias-ldouble.h>.
28052 (fmal): Define using libm_alias_ldouble.
28053 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
28054 <libm-alias-ldouble.h>.
28055 (frexpl): Define using libm_alias_ldouble.
28056 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
28057 libm_alias_ldouble.
28058 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
28059 <libm-alias-ldouble.h>.
28060 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
28061 libm_alias_ldouble.
28062 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
28063 <libm-alias-ldouble.h>.
28064 (getpayloadl): Define using libm_alias_ldouble.
28065 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
28066 <libm-alias-ldouble.h>.
28067 (llrintl): Define using libm_alias_ldouble.
28068 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
28069 <libm-alias-ldouble.h>.
28070 (llroundl): Define using libm_alias_ldouble.
28071 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
28072 <libm-alias-ldouble.h>.
28073 (lrintl): Define using libm_alias_ldouble.
28074 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
28075 <libm-alias-ldouble.h>.
28076 (lroundl): Define using libm_alias_ldouble.
28077 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
28078 <libm-alias-ldouble.h>.
28079 (modfl): Define using libm_alias_ldouble.
28080 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
28081 <libm-alias-ldouble.h>.
28082 (nextupl): Define using libm_alias_ldouble.
28083 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
28084 <libm-alias-ldouble.h>.
28085 (remquol): Define using libm_alias_ldouble.
28086 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
28087 <libm-alias-ldouble.h>.
28088 (roundevenl): Define using libm_alias_ldouble.
28089 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
28090 <libm-alias-ldouble.h>.
28091 (roundl): Define using libm_alias_ldouble.
28092 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
28093 using libm_alias_ldouble.
28094 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
28095 <libm-alias-ldouble.h>.
28096 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
28097 <libm-alias-ldouble.h>.
28098 (setpayloadsigl): Define using libm_alias_ldouble.
28099 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
28100 <libm-alias-ldouble.h>.
28101 (sincosl): Define using libm_alias_ldouble.
28102 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
28103 <libm-alias-ldouble.h>.
28104 (sinl): Define using libm_alias_ldouble.
28105 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
28106 <libm-alias-ldouble.h>.
28107 (tanhl): Define using libm_alias_ldouble.
28108 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
28109 <libm-alias-ldouble.h>.
28110 (tanl): Define using libm_alias_ldouble.
28111 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
28112 <libm-alias-ldouble.h>.
28113 (totalorderl): Define using libm_alias_ldouble.
28114 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
28115 <libm-alias-ldouble.h>.
28116 (totalordermagl): Define using libm_alias_ldouble.
28117 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
28118 libm_alias_ldouble.
28119 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
28120 libm_alias_ldouble.
28121
28122 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
28123
28124 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
28125 memmove_falkor.
28126 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28127 (__libc_ifunc_impl_list): Likewise.
28128 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28129 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28130
28131 * benchtests/bench-memmove-walk.c: New file.
28132 * benchtests/Makefile (string-benchset): Add it.
28133
28134 * benchtests/bench-memset-walk.c: New file.
28135 * benchtests/Makefile (string-benchset): Add it.
28136
28137 * benchtests/bench-memcpy-walk.c: New file.
28138 * benchtests/Makefile (string-benchset): Add it.
28139
28140 2017-10-05 Florian Weimer <fweimer@redhat.com>
28141
28142 nscd: Eliminate compilation time dependency in the build output.
28143 * nscd/nscd_stat.c (STATDATA_VERSION)
28144 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28145 (STATDATA_VERSION_FULL): New macro definitions.
28146 (compilation): Remove.
28147 (struct statdata): Adjust version member.
28148 (send_stats): Set version from STATDATA_VERSION_FULL.
28149 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28150
28151 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28152
28153 * configure.ac (--enable-add-ons): Remove option.
28154 (machine): Do not mention add-ons in comment.
28155 (LIBC_PRECONFIGURE): Likewise.
28156 (add_ons): Remove variable and sanity checks and logic to locate
28157 add-ons.
28158 (add_ons_automatic): Remove variable.
28159 (configured_add_ons): Likewise.
28160 (add_ons_sfx): Likewise.
28161 (add_ons_pfx): Likewise.
28162 (add_on_subdirs): Likewise.
28163 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28164 consideration of add-ons in Implies handling.
28165 (sysdeps_add_ons): Likewise.
28166 * configure: Regenerated.
28167 * libidn/configure.ac: Remove.
28168 * libidn/configure: Likewise.
28169 * sysdeps/unix/inet/configure.ac: New file.
28170 * sysdeps/unix/inet/configure: New generated file.
28171 * sysdeps/unix/inet/Subdirs: Add libidn.
28172 * Makeconfig (sysdeps-srcdirs): Remove variable.
28173 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28174 ($(common-objpfx)config.status): Do not depend on add-on files.
28175 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28176 comment.
28177 (all-subdirs): Do not include $(add-on-subdirs).
28178 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28179 * config.make.in (add-ons): Remove variable.
28180 (add-on-subdirs): Likewise.
28181 (sysdeps-add-ons): Likewise.
28182 * manual/Makefile (add-chapters): Remove.
28183 ($(objpfx)texis): Do not depend on $(add-chapters).
28184 (nonexamples): Do not handle $(add-chapters).
28185 (examples): Do not handle $(add-ons).
28186 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28187 libc-texinfo.sh.
28188 * manual/install.texi (Installation): Do not mention add-ons.
28189 (--enable-add-ons): Do not document configure option.
28190 * INSTALL: Regenerated.
28191 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28192 * manual/maint.texi (Hierarchy Conventions): Do not mention
28193 add-ons.
28194 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28195 --enable-add-ons.
28196 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28197 add-ons.
28198 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28199 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28200
28201 2017-10-05 Andreas Schwab <schwab@suse.de>
28202
28203 [BZ #15142]
28204 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28205 (_IO_flush_all_lockp): Always lock list_all_lock.
28206 (_IO_flush_all_linebuffered): Likewise.
28207 (_IO_unbuffer_all): Likewise.
28208
28209 2017-10-05 Florian Weimer <fweimer@redhat.com>
28210
28211 [BZ #15436]
28212 Do not flush stdio streams on abort.
28213 * stdlib/abort.c (fflush): Remove macro definition.
28214 (abort): Remove stages related to stdio flushing.
28215
28216 2017-10-05 Florian Weimer <fweimer@redhat.com>
28217
28218 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28219
28220 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28221
28222 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28223
28224 2017-10-05 Florian Weimer <fweimer@redhat.com>
28225
28226 * support/support_format_hostent.c (support_format_hostent): Add
28227 more error information for NETDB_INTERNAL.
28228
28229 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28230
28231 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28232 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28233 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28234 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28235 AC_DEFINE if multi-arch is enabled.
28236 * sysdeps/i386/configure: Regenerated.
28237
28238 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28239
28240 * Makeconfig (+link-static-before-libc): Use
28241 $(DEFAULT-LDFLAGS-$(@F)).
28242 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28243 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28244 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28245
28246 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28247
28248 * elf/Makefile (tests): Add tst-main1.
28249 (modules-names): Add tst-main1mod.
28250 ($(objpfx)tst-main1): New.
28251 (CRT-tst-main1): Likewise.
28252 (LDFLAGS-tst-main1): Likewise.
28253 (LDLIBS-tst-main1): Likewise.
28254 (tst-main1mod.so-no-z-defs): Likewise.
28255 * elf/tst-main1.c: New file.
28256 * elf/tst-main1mod.c: Likewise.
28257
28258 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28259
28260 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28261
28262 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28263
28264 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28265 (fma): Define using libm_alias_double.
28266 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28267 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28268 <math_ldbl_opt.h>.
28269 (fmal): Do not define as compat symbol here.
28270 * sysdeps/alpha/fpu/s_fma.c: New file.
28271
28272 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28273
28274 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28275
28276 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28277
28278 [BZ #22229]
28279 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28280 <math_ldbl_opt.h>
28281 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28282 and libc.
28283 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28284 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28285 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28286 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28287 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28288 Include <math_ldbl_opt.h>
28289 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28290 and libc.
28291 (compat_symbol): Undefine and redefine.
28292 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28293 <math_ldbl_opt.h>
28294 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28295 (compat_symbol): Undefine and redefine.
28296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28297 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28298 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28299 GLIBC_2_1 for libm.
28300 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28301 GLIBC_2.0 copysignl symbol.
28302 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28303 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28304
28305 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28306
28307 2017-10-04 Florian Weimer <fweimer@redhat.com>
28308
28309 * scripts/check-local-headers.sh: Ignore nspr4 header file
28310 directory in addition to nspr.
28311
28312 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28313
28314 [BZ #17956]
28315 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28316 * configure: Regenerate.
28317 * crypt/Makefile (nss-cpp-flags): New variable.
28318 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28319 (CPPFLAGS-md5-crypt.c): Use it.
28320 * scripts/check-local-headers.sh: Ignore nspr header file
28321 directory.
28322
28323 2017-10-04 Andreas Schwab <schwab@suse.de>
28324
28325 * nis/Makefile (services): Remove compat.
28326 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28327 ($(objpfx)libnss_compat.so): Remove rule.
28328 * nis/Versions (libnss_compat): Remove.
28329 * nss/Makefile (services): Add compat.
28330 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28331 * nss/Versions (libnss_compat): Define.
28332 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28333 Don't include <rpc/types.h>. Replace bool_t by bool.
28334 * nss/nss_compat/compat-initgroups.c: Likewise.
28335 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28336 instead of <rpcsrv/ypclnt.h>.
28337 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28338 yp_get_default_domain.
28339 * nss/nss_compat/compat-pwd.c: Likewise.
28340 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28341 yp_get_default_domain.
28342 * nss/nss_compat/nisdomain.c: New file.
28343 * nss/nss_compat/nisdomain.h: Likewise.
28344
28345 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28346
28347 [BZ #22244]
28348 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28349 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28350
28351 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28352
28353 [BZ #22243]
28354 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28355 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28356
28357 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28358
28359 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28360 "movl main@GOTOFF(%ebx), %eax".
28361
28362 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28363
28364 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28365 allow undefined _DYNAMIC in PIE libc.a.
28366 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28367 Likewse.
28368
28369 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28370
28371 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28372 check _DYNAMIC.
28373
28374 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28377 check _DYNAMIC.
28378
28379 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28380
28381 * math/test-math-iscanonical.cc (error): Replace bool with int.
28382
28383 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28384
28385 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28386 (modf): Define using libm_alias_double, only if [!__modf].
28387 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28388 <libm-alias-double.h>.
28389 (modf): Define using libm_alias_double, only if [!__modf].
28390 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28391 compat symbol here.
28392 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28393 (weak_alias): Do not undefine and redefine.
28394 (strong_alias): Likewise.
28395 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28396 (weak_alias): Likewise.
28397 (strong_alias): Likewise.
28398
28399 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28400 (logb): Define using libm_alias_double, only if [!__logb].
28401 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28402 <libm-alias-double.h>.
28403 (logb): Define using libm_alias_double, only if [!__logb].
28404 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28406 (weak_alias): Do not undefine and redefine.
28407 (strong_alias): Likewise.
28408 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28409 (weak_alias): Likewise.
28410 (strong_alias): Likewise.
28411
28412 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28413
28414 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28415 Check SHARED instead PIC.
28416
28417 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28418
28419 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28420 [!__fmaf] (fmaf): Define using libm_alias_float.
28421
28422 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28423 (frexp): Define using libm_alias_double.
28424 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28425 <libm-alias-double.h>.
28426 (frexp): Define using libm_alias_double.
28427 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28428 compat symbol here.
28429
28430 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28431
28432 [BZ #22235]
28433 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28434 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28435 (CFLAGS-test-math-iscanonical.cc): New variable.
28436 * math/test-math-iscanonical.cc: New file.
28437 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28438 Provide a C++ implementation based on function overloading,
28439 rather than using __MATH_TG, which uses C-only builtins.
28440 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28441 Likewise.
28442 * sysdeps/powerpc/powerpc64le/Makefile
28443 (CFLAGS-test-math-iscanonical.cc): New variable.
28444
28445 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28446
28447 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28448 (ceil): Define using libm_alias_double.
28449 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28450 (floor): Define using libm_alias_double.
28451 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28452 <libm-alias-double.h>.
28453 (llround): Define using libm_alias_double.
28454 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28455 <libm-alias-double.h>.
28456 (lround): Define using libm_alias_double.
28457 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28458 <libm-alias-double.h>.
28459 (nearbyint): Define using libm_alias_double.
28460 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28461 <libm-alias-double.h>.
28462 (remquo): Define using libm_alias_double.
28463 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28464 (rint): Define using libm_alias_double.
28465 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28466 (round): Define using libm_alias_double.
28467 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28468 (trunc): Define using libm_alias_double.
28469 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28470 <libm-alias-double.h>.
28471 (ceil): Define using libm_alias_double.
28472 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28473 <libm-alias-double.h>.
28474 (floor): Define using libm_alias_double.
28475 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28476 <libm-alias-double.h>.
28477 (llround): Define using libm_alias_double.
28478 [_LP64] (lround): Likewise.
28479 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28480 <libm-alias-double.h>.
28481 [!_LP64] (lround): Define using libm_alias_double.
28482 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28483 <libm-alias-double.h>.
28484 (nearbyint): Define using libm_alias_double.
28485 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28486 <libm-alias-double.h>.
28487 (remquo): Define using libm_alias_double.
28488 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28489 <libm-alias-double.h>.
28490 (rint): Define using libm_alias_double.
28491 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28492 <libm-alias-double.h>.
28493 (round): Define using libm_alias_double.
28494 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28495 <libm-alias-double.h>.
28496 (trunc): Define using libm_alias_double.
28497 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28498 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28499 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28500 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28501 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28502 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28503 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28504 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28505 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28506
28507 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28508
28509 * math/w_remainder.c: New file.
28510 * math/w_remainderf.c: New file.
28511 * math/w_remainderl.c: New file.
28512
28513 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28514
28515 * elf/rtld.c (BOOTSTRAP_MAP): New.
28516 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28517 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28518 Likewise.
28519 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28520 Likewise.
28521 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28522 Likewise.
28523
28524 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28525
28526 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28527 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28528 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28529 rtld_hidden_data_ver): Define to empty.
28530 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28531 __assert_perror_fail): Likewise.
28532 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28533 (__rewinddir): Likewise.
28534 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28535 (__profile_frequency): Likewise.
28536 * include/setjmp.h (__sigsetjmp): Likewise.
28537 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28538 __libc_sigaction): Likewise.
28539 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28540 not set hidden attribute.
28541 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28542 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28543 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28544 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28545 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28546 __fxstatat64): Likewise.
28547 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28548 (__uname): Likewise.
28549 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28550 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28551 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28552 (NO_RTLD_HIDDEN): Set.
28553 * sysdeps/mach/hurd/configure: Refresh.
28554 * config.h.in: Refresh.
28555
28556 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28557
28558 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28559 (atan): Define using libm_alias_double.
28560 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28561 (tan): Define using libm_alias_double.
28562 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28563 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28564
28565 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28566 define as weak alias of __atan. Do not define any aliases if
28567 [__atan].
28568 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28569 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28570 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28571 as weak alias of __tan. Do not define any aliases if [__tan].
28572 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28573 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28574 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28575 __atan.
28576 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28577 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28578 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28579 and define as weak alias of __atan.
28580 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28581 __atan.
28582 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28583 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28584 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28585 define as weak alias of __tan.
28586
28587 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28588
28589 * math/w_lgamma.c: New file.
28590 * math/w_lgammaf.c: New file.
28591 * math/w_lgammal.c: New file.
28592
28593 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28594
28595 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28596 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28597 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28598 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28599 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28600 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28601 * sysdeps/i386/fpu/w_log2f.c: New file.
28602 * sysdeps/i386/fpu/w_logf.c: New file.
28603 * sysdeps/i386/fpu/w_powf.c: New file.
28604 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28605 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28606 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28607
28608 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28609 H.J. Lu <hongjiu.lu@intel.com>
28610
28611 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28612 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28613 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28614 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28615 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28616 the new expf code.
28617 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28618 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28619 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28620 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28621 * sysdeps/i386/fpu/w_exp2f.c: New file.
28622 * sysdeps/i386/fpu/w_expf.c: New file.
28623 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28624 * sysdeps/x86_64/fpu/w_expf.c: New file.
28625
28626 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28627
28628 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28629 (log2f): Likewise.
28630 (powf): Likewise.
28631 * math/w_log2f.c: New file.
28632 * math/w_logf.c: New file.
28633 * math/w_powf.c: New file.
28634 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28635 * math/w_logf_compat.c (__logf_compat): Likewise.
28636 * math/w_powf_compat.c (__powf_compat): Likewise.
28637 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28638 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28639 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28640 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28641 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28642 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28643 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28644 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28645 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28646 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28647 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28648 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28649 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28650 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28651 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28652 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28653 Likewise.
28654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28655 Likewise.
28656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28657 Likewise.
28658 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28659 Likewise.
28660 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28661 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28662 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28663 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28664 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28665 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28666 Likewise.
28667 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28668 Likewise.
28669 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28670 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28671 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28672
28673 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28674
28675 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28676 (sysdep_routines): Add memrchr_power8.
28677 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28678 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28679 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28680 New file.
28681 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28682 (memrchr): Add __memrchr_power8 to ifunc list.
28683 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28684
28685 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28686
28687 [BZ #18822]
28688 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28689 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28690 libc_hidden_def.
28691 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28692 (__posix_fallocate64_l64): Likewise.
28693
28694 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28695
28696 [BZ #18822]
28697 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28698 (__sched_setaffinity_new): Add libc_hidden_proto and
28699 libc_hidden_def.
28700
28701 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28702
28703 [BZ #18822]
28704 * include/glob.h (__glob64): Add libc_hidden_proto.
28705 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28706 libc_hidden_def.
28707
28708 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28709
28710 [BZ #18822]
28711 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28712 attribute_hidden.
28713
28714 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28715
28716 [BZ #18822]
28717 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28718
28719 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28720
28721 [BZ #18822]
28722 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28723 libc_hidden_def.
28724
28725 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28726
28727 [BZ #18822]
28728 * csu/version.c (__libc_print_version): Add attribute_hidden.
28729
28730 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28731
28732 [BZ #18822]
28733 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28734
28735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28736
28737 [BZ #18822]
28738 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28739
28740 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28741
28742 [BZ #18822]
28743 * nscd/nscd_helper.c (__nis_hash): New prototype.
28744
28745 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28746
28747 [BZ #18822]
28748 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28749 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28750 libc_hidden_def.
28751 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28752 * termios/tcgetattr.c (__tcgetattr): Likewise.
28753
28754 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28755
28756 [BZ #18822]
28757 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28758 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28759 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28760 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28761 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28762
28763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28764
28765 [BZ #18822]
28766 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28767
28768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28769
28770 [BZ #18822]
28771 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28772 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28773
28774 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28775
28776 [BZ #18822]
28777 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28778
28779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28780
28781 [BZ #18822]
28782 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28783 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28784
28785 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28786
28787 [BZ #18822]
28788 * include/ifreq.h: New file.
28789 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28790 (__ifreq): Likewise.
28791 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28792 (__ifreq): Likewise.
28793
28794 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28795
28796 [BZ #18822]
28797 * include/idna.h: New file.
28798 * inet/getnameinfo.c: Include <idna.h> instead of
28799 <libidn/idna.h>.
28800 (__idna_to_unicode_lzlz): Removed.
28801 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28802 <libidn/idna.h>.
28803 (__idna_to_ascii_lz): Removed.
28804 (__idna_to_unicode_lzlz): Likewise.
28805
28806 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28807
28808 [BZ #18822]
28809 * include/plural-exp.h: New file.
28810 * intl/plural-exp.c: Include <plural-exp.h> instead of
28811 "plural-exp.h".
28812
28813 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28814
28815 [BZ #18822]
28816 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28817 "getsourcefilter.h".
28818 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28819 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28820 "getsourcefilter.h".
28821 (__get_sol): Removed.
28822
28823 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28824
28825 [BZ #18822]
28826 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28827 to ...
28828 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28829
28830 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28831
28832 [BZ #18822]
28833 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28834 attribute_hidden.
28835
28836 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28837
28838 [BZ #18822]
28839 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28840
28841 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28842
28843 [BZ #18822]
28844 * include/search.h (__tdestroy): Add libc_hidden_proto.
28845 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28846
28847 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28848
28849 [BZ #18822]
28850 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28851
28852 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28853
28854 [BZ #18822]
28855 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28856 attribute_hidden.
28857
28858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28859
28860 [BZ #18822]
28861 * include/signal.h (__kill): Add libc_hidden_proto.
28862 (__sigblock): Likewise.
28863 (__sigprocmask): Likewise.
28864 (__sigaltstack): Likewise.
28865 * signal/kill.c (__kill): Add libc_hidden_def.
28866 * signal/sigblock.c (__sigblock): Likewise.
28867 * signal/sigprocmask.c (__sigprocmask): Likewise.
28868 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28869 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28870 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28871 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28872 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28873 Likewise.
28874 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28875 Likewise.
28876 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28877 (__sigprocmask): Likewise.
28878 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28879 Likewise.
28880 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28881 (__sigprocmask): Likewise.
28882 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28883 Likewise.
28884
28885 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28886
28887 [BZ #18822]
28888 * include/string.h (__strsep): Add libc_hidden_proto.
28889 * string/strsep.c (__strsep): Add libc_hidden_def.
28890
28891 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28892
28893 [BZ #18822]
28894 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28895 attribute_hidden.
28896 (__spawni): Likewise.
28897
28898 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28899
28900 [BZ #18822]
28901 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28902 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28903 libc_hidden_def.
28904
28905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28906
28907 [BZ #18822]
28908 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28909
28910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28911
28912 [BZ #18822]
28913 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28914 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28915 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28916 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28917 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28918 Likewise.
28919 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28920 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28921
28922 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28923
28924 [BZ #18822]
28925 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28926 (__dcigettext): Likewise.
28927
28928 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28929
28930 [BZ #18822]
28931 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28932 libc_hidden_proto.
28933 (__get_nprocs): Likewise.
28934 (__get_phys_pages): Likewise.
28935 (__get_avphys_pages): Likewise.
28936 (__get_child_max): Add attribute_hidden.
28937 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28938 (__get_nprocs): Likewise.
28939 (__get_phys_pages): Likewise.
28940 (__get_avphys_pages): Likewise.
28941 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28942 libc_hidden_def.
28943 (__get_nprocs): Likewise.
28944 (__get_phys_pages): Likewise.
28945 (__get_avphys_pages): Likewise.
28946 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28947 libc_hidden_def.
28948 (__get_nprocs_conf): Likewise.
28949 (__get_phys_pages): Likewise.
28950 (__get_avphys_pages): Likewise.
28951
28952 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28953
28954 [BZ #18822]
28955 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28956 attribute_hidden.
28957 (__netlink_close): Likewise.
28958 (__netlink_free_handle): Likewise.
28959 (__netlink_request): Likewise.
28960
28961 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28962
28963 [BZ #18822]
28964 * include/rpc/rpc.h (__rpc_thread_variables): Add
28965 attribute_hidden.
28966 (__rpc_thread_svc_cleanup): Likewise.
28967 (__rpc_thread_clnt_cleanup): Likewise.
28968 (__rpc_thread_key_cleanup): Likewise.
28969
28970 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28971
28972 [BZ #18822]
28973 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28974 (__writev): Likewise.
28975 * misc/readv.c (__readv): Add libc_hidden_def.
28976 * misc/writev.c (__writev): Likewise.
28977 * sysdeps/posix/readv.c (__readv): Likewise.
28978 * sysdeps/posix/writev.c (__writev): Likewise.
28979 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28980 (__readv): Likewise.
28981 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28982 (__writev): Likewise.
28983
28984 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28985
28986 [BZ #18822]
28987 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28988 (__regcomp): Add libc_hidden_proto.
28989 (__regexec): Likewise.
28990 (__regfree): Likewise.
28991 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28992 (__regfree): Likewise.
28993 * posix/regexec.c (__regexec): Likewise.
28994
28995 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28996
28997 [BZ #18822]
28998 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28999 (__getutent): Likewise.
29000 (__getutid): Likewise.
29001 (__getutline): Likewise.
29002 (__pututline): Likewise.
29003 (__getutent_r): Likewise.
29004 (__getutid_r): Likewise.
29005 (__getutline_r): Likewise.
29006 (__utmpname): Add attribute_hidden.
29007 (__setutent): Likewise.
29008 (__endutent): Likewise.
29009 * login/getutent.c (__getutent): Add libc_hidden_def.
29010 * login/getutent_r.c (__getutent_r): Likewise.
29011 (__pututline): Likewise.
29012 * login/getutid.c (__getutid): Likewise.
29013 * login/getutid_r.c (__getutid_r): Likewise.
29014 * login/getutline.c (__getutline): Likewise.
29015 * login/getutline_r.c (__getutline_r): Likewise.
29016 * login/updwtmp.c (__updwtmp): Likewise.
29017
29018 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29019
29020 [BZ #18822]
29021 * include/dirent.h (__opendir): Always add attribute_hidden.
29022 (__fdopendir): Likewise.
29023 (__closedir): Likewise.
29024 (__readdir): Likewise.
29025 (__readdir64): Add libc_hidden_proto.
29026 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
29027 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
29028 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
29029 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
29030 New alias.
29031
29032 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29033
29034 [BZ #18822]
29035 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
29036 * include/netdb.h (__gethostbyaddr_r): Likewise.
29037 (__gethostbyname_r): Likewise.
29038 (__gethostbyname2_r): Likewise.
29039 (__getnetbyaddr_r): Likewise.
29040 (__getnetbyname_r): Likewise.
29041 (__getservbyname_r): Likewise.
29042 (__getservbyport_r): Likewise.
29043 (__getprotobyname_r): Likewise.
29044 (__getprotobynumber_r): Likewise.
29045 (__getnetgrent_r): Likewise.
29046 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
29047 (__getrpcbynumber_r): Likewise.
29048 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
29049
29050 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29051
29052 [BZ #18822]
29053 * include/stdio.h (__fcloseall): Add attribute_hidden.
29054 (__getline): Likewise.
29055 (__path_search): Likewise.
29056 (__gen_tempname): Likewise.
29057 (__libc_message): Likewise.
29058 (__flockfile): Likewise.
29059 (__funlockfile): Likewise.
29060 (__fxprintf): Likewise.
29061 (__fxprintf_nocancel): Likewise.
29062
29063 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29064
29065 [BZ #18822]
29066 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
29067 (__sgetsgent_r): Likewise.
29068
29069 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29070
29071 [BZ #18822]
29072 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
29073 (__statfs64): Likewise.
29074 (__fstatfs64): Likewise.
29075 * include/sys/statvfs.h (__statvfs64): Likewise.
29076 (__fstatvfs64): Likewise.
29077 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
29078 (__statfs_filesize_max): Likewise.
29079 (__statfs_symlinks): Likewise.
29080 (__statfs_chown_restricted): Likewise.
29081
29082 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29083
29084 [BZ #18822]
29085 * include/time.h (__tzstring): Add attribute_hidden.
29086 (__tzfile_read): Likewise.
29087 (__tzfile_compute): Likewise.
29088 (__tzfile_default): Likewise.
29089 (__tzset_parse_tz): Likewise.
29090 (__offtime): Likewise.
29091 (__asctime_r): Likewise.
29092 (__tzset): Likewise.
29093 (__tz_convert): Likewise.
29094 (__getdate_r): Likewise.
29095 (__getclktck): Likewise.
29096
29097 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29098
29099 [BZ #18822]
29100 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
29101 (__nscd_unmap): Likewise.
29102 (__nscd_cache_search): Likewise.
29103 (__nscd_get_nl_timestamp): Likewise.
29104 (__nscd_getpwnam_r): Likewise.
29105 (__nscd_getpwuid_r): Likewise.
29106 (__nscd_getgrnam_r): Likewise.
29107 (__nscd_getgrgid_r): Likewise.
29108 (__nscd_gethostbyname_r): Likewise.
29109 (__nscd_gethostbyname2_r): Likewise.
29110 (__nscd_gethostbyaddr_r): Likewise.
29111 (__nscd_getai): Likewise.
29112 (__nscd_getgrouplist): Likewise.
29113 (__nscd_getservbyname_r): Likewise.
29114 (__nscd_getservbyport_r): Likewise.
29115 (__nscd_innetgr): Likewise.
29116 (__nscd_setnetgrent): Likewise.
29117
29118 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29119
29120 [BZ #18822]
29121 * include/gmp.h: Declare internal functions only if _ISOMAC is
29122 undefined.
29123 (__mpn_extract_double): Add attribute_hidden.
29124 (__mpn_extract_long_double): Likewise.
29125 (__mpn_extract_float128): Likewise.
29126 (__mpn_construct_float): Likewise.
29127 (__mpn_construct_double): Likewise.
29128 (__mpn_construct_long_double): Likewise.
29129 (__mpn_construct_float128): Likewise.
29130 (mpn_add_1): Likewise.
29131 (mpn_addmul_1): Likewise.
29132 (mpn_add_n): Likewise.
29133 (mpn_cmp): Likewise.
29134 (mpn_divrem): Likewise.
29135 (mpn_lshift): Likewise.
29136 (mpn_mul): Likewise.
29137 (mpn_mul_1): Likewise.
29138 (mpn_rshift): Likewise.
29139 (mpn_sub_1): Likewise.
29140 (mpn_submul_1): Likewise.
29141 (mpn_sub_n): Likewise.
29142
29143 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29144
29145 [BZ #18822]
29146 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29147 (__wcscat): Likewise.
29148 (__btowc): Likewise.
29149 (__wcrtomb): Likewise.
29150 (__mbsrtowcs): Likewise.
29151 (__wcsrtombs): Likewise.
29152 (__mbsnrtowcs): Likewise.
29153 (__wcsnrtombs): Likewise.
29154 (__wcsncpy): Likewise.
29155 (__wcpncpy): Likewise.
29156 (__wmemcpy): Likewise.
29157 (__wmempcpy): Likewise.
29158 (__wmemmove): Likewise.
29159 (__wcschrnul): Likewise.
29160 (__vfwscanf): Likewise.
29161 (__vswprintf): Likewise.
29162 (__fwprintf): Likewise.
29163 (__vfwprintf): Likewise.
29164
29165 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29166
29167 [BZ #18822]
29168 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29169 (__getgrgid_r): Likewise.
29170 (__getgrnam_r): Likewise.
29171 * include/pwd.h (__getpwuid_r): Likewise.
29172 (__getpwnam_r): Likewise.
29173 (__fgetpwent_r): Likewise.
29174 * include/shadow.h (__getspnam_r): Likewise.
29175 (__sgetspent_r): Likewise.
29176 (__fgetspent_r): Likewise.
29177
29178 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29179
29180 [BZ #18822]
29181 * include/unistd.h (__access): Add attribute_hidden.
29182 (__lseek64): Likewise.
29183 (__libc_pread64): Likewise.
29184 (__pipe2): Likewise.
29185 (__sleep): Likewise.
29186 (__chdir): Likewise.
29187 (__fchdir): Likewise.
29188 (__getcwd): Likewise.
29189 (__rmdir): Likewise.
29190 (__execvpe): Likewise.
29191 (__execve): Likewise.
29192 (__setsid): Likewise.
29193 (__getuid): Likewise.
29194 (__geteuid): Likewise.
29195 (__getgid): Likewise.
29196 (__getegid): Likewise.
29197 (__getgroups): Likewise.
29198 (__group_member): Likewise.
29199 (__ttyname_r): Likewise.
29200 (__isatty): Likewise.
29201 (__readlink): Likewise.
29202 (__unlink): Likewise.
29203 (__gethostname): Likewise.
29204 (__profil): Likewise.
29205 (__getdtablesize): Likewise.
29206 (__brk): Likewise.
29207 (__ftruncate): Likewise.
29208 (__ftruncate64): Likewise.
29209
29210 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29211
29212 [BZ #18822]
29213 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29214 * argp/argp-fs-xinl.c: Likewise.
29215 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29216 * argp/argp-parse.c: Include <argp.h>.
29217 * argp/argp-xinl.c: Likewise.
29218 * include/argp-fmtstream.h: New file.
29219 * include/argp.h (__argp_error): Add attribute_hidden.
29220 (__argp_failure): Likewise.
29221 (__argp_input): Likewise.
29222 (__argp_state_help): Likewise.
29223
29224 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29225
29226 [BZ #18822]
29227 * include/wchar.h (____wcstof_l_internal): New prototype.
29228 (____wcstod_l_internal): Likewise.
29229 (____wcstold_l_internal): Likewise.
29230 (____wcstol_l_internal): Likewise.
29231 (____wcstoul_l_internal): Likewise.
29232 (____wcstoll_l_internal): Likewise.
29233 (____wcstoull_l_internal): Likewise.
29234 (____wcstof128_l_internal): Likewise.
29235 * sysdeps/ieee754/float128/wcstof128.c
29236 (____wcstof128_l_internal): Removed.
29237 * sysdeps/ieee754/float128/wcstof128_l.c
29238 (____wcstof128_l_internal): Likewise.
29239 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29240 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29241 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29242 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29243 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29244 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29245 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29246 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29247 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29248 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29249
29250 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29251
29252 [BZ #18822]
29253 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29254 instead of <sys/statvfs.h>.
29255 (__internal_statvfs): Removed.
29256 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29257 instead of <sys/statvfs.h>.
29258 (__internal_statvfs64): Removed.
29259 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29260 "internal_statvfs.h" instead of <sys/statvfs.h>.
29261 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29262 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29263 instead of <sys/statvfs.h>.
29264 (__internal_statvfs): Removed.
29265 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29266 instead of <sys/statvfs.h>.
29267 (__internal_statvfs64): Removed.
29268
29269 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29270
29271 [BZ #18822]
29272 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29273 (__gconv_close): Likewise.
29274 (__gconv): Likewise.
29275 (__gconv_find_transform): Likewise.
29276 (__gconv_lookup_cache): Likewise.
29277 (__gconv_compare_alias_cache): Likewise.
29278 (__gconv_load_cache): Likewise.
29279 (__gconv_get_path): Likewise.
29280 (__gconv_close_transform): Likewise.
29281 (__gconv_release_cache): Likewise.
29282 (__gconv_find_shlib): Likewise.
29283 (__gconv_release_shlib): Likewise.
29284 (__gconv_get_builtin_trans): Likewise.
29285 (__gconv_compare_alias): Likewise.
29286 * include/dlfcn.h (_dlerror_run): Likewise.
29287 * include/stdio.h (__fortify_fail_abort): Likewise.
29288 * include/time.h (__tz_compute): Likewise.
29289 (__strptime_internal): Likewise.
29290 * intl/gettextP.h (_nl_find_domain): Likewise.
29291 (_nl_load_domain): Likewise.
29292 (_nl_find_msg): Likewise.
29293 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29294 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29295 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29296 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29297 (__gai_find_request): Likewise.
29298 (__gai_remove_request): Likewise.
29299 (__gai_notify): Likewise.
29300 (__gai_notify_only): Likewise.
29301 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29302 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29303 (_dl_non_dynamic_init): Likewise.
29304 (_dl_aux_init): Likewise.
29305 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29306 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29307 Likewise.
29308 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29309 (__wcsmbs_clone_conv): Likewise.
29310 (__wcsmbs_named_conv): Likewise.
29311
29312 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29313
29314 [BZ #18822]
29315 * include/stdlib.h (__random): Add attribute_hidden.
29316 (__random_r): Likewise.
29317 (__srandom_r): Likewise.
29318 (__initstate_r): Likewise.
29319 (__setstate_r): Likewise.
29320 (__erand48_r): Likewise.
29321 (__nrand48_r): Likewise.
29322 (__jrand48_r): Likewise.
29323 (__srand48_r): Likewise.
29324 (__seed48_r): Likewise.
29325 (__lcong48_r): Likewise.
29326 (__drand48_iterate): Likewise.
29327 (__setenv): Likewise.
29328 (__unsetenv): Likewise.
29329 (__clearenv): Likewise.
29330 (__ptsname_r): Likewise.
29331 (__posix_openpt): Likewise.
29332 (__add_to_environ): Likewise.
29333 (__realpath): Add libc_hidden_proto.
29334 (__ecvt_r): Likewise.
29335 (__fcvt_r): Likewise.
29336 (__qecvt_r): Likewise.
29337 (__qfcvt_r): Likewise.
29338 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29339 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29340
29341 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29342
29343 [BZ #18822]
29344 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29345 * include/time.h (__mktime_internal): Likewise.
29346 * libio/iolibio.h (__fopen_internal): Likewise.
29347
29348 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29349
29350 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29351 pointer in frame.
29352 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29353 Correct offset used to restore PIC register.
29354
29355 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29356
29357 [BZ libc/22165]
29358 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29359 code to load address of __getcontext_ret when generating PIC code.
29360
29361 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29362
29363 * elf/Makefile (tests-static-internal): Add
29364 tst-tls1-static-non-pie.
29365 (LDFLAGS-tst-tls1-static-non-pie): New.
29366 * elf/tst-tls1-static-non-pie.c: New file.
29367
29368 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29369
29370 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29371 (asinh): Define using libm_alias_double.
29372 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29373 (cbrt): Define using libm_alias_double.
29374 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29375 <libm-alias-double.h>.
29376 (copysign): Define using libm_alias_double.
29377 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29378 (erf): Define using libm_alias_double.
29379 (erfc): Likewise.
29380 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29381 (expm1): Define using libm_alias_double.
29382 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29383 (fabs): Define using libm_alias_double.
29384 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29385 libm_alias_double.
29386 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29387 <libm-alias-double.h>.
29388 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29389 libm_alias_double.
29390 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29391 <libm-alias-double.h>.
29392 (getpayload): Define using libm_alias_double.
29393 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29394 <libm-alias-double.h>.
29395 (llrint): Define using libm_alias_double.
29396 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29397 (lrint): Define using libm_alias_double.
29398 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29399 <libm-alias-double.h>.
29400 (nextup): Define using libm_alias_double.
29401 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29402 <libm-alias-double.h>.
29403 (roundeven): Define using libm_alias_double.
29404 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29405 libm_alias_double.
29406 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29407 <libm-alias-double.h>.
29408 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29409 using libm_alias_double.
29410 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29411 (cos): Define using libm_alias_double.
29412 (sin): Likewise.
29413 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29414 <libm-alias-double.h>.
29415 (sincos): Define using libm_alias_double.
29416 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29417 (tanh): Define using libm_alias_double.
29418 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29419 <libm-alias-double.h>.
29420 (totalorder): Define using libm_alias_double.
29421 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29422 <libm-alias-double.h>.
29423 (totalordermag): Define using libm_alias_double.
29424 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29425 libm_alias_double.
29426 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29427 libm_alias_double.
29428 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29429 <libm-alias-double.h>.
29430 (getpayload): Define using libm_alias_double.
29431 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29432 <libm-alias-double.h>.
29433 (roundeven): Define using libm_alias_double.
29434 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29435 <libm-alias-double.h>.
29436 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29437 <libm-alias-double.h>.
29438 (totalorder): Define using libm_alias_double.
29439 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29440 <libm-alias-double.h>.
29441 (totalordermag): Define using libm_alias_double.
29442 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29443 libc compat symbol here.
29444 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29445 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29446 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29447 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29448 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29449 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29450 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29451 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29452 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29453 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29454
29455 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29456
29457 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29458 _dl_relocate_static_pie instead of _dl_start to compute load
29459 address in static PIE. Return 0 if _DYNAMIC is undefined for
29460 static executable.
29461
29462 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29463
29464 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29465 _DYNAMIC is undefined for static executable.
29466
29467 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29468
29469 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29470
29471 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29472
29473 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29474
29475 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29476
29477 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29478 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29479 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29480 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29481 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29482 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29483 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29484 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29485 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29486 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29487 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29488 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29489 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29490 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29491 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29492 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29493 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29494
29495 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29496
29497 * math/bits/cmathcalls.h (cimag): Remove inline.
29498 (creal): Remove inline.
29499 (conj): Remove inline.
29500
29501 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29502
29503 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29504 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29505 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29506 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29507 (issignalingf_inline): Likewise.
29508 (POWF_LOG2_TABLE_BITS): Likewise.
29509 (POWF_LOG2_POLY_ORDER): Likewise.
29510 (POWF_SCALE_BITS): Likewise.
29511 (POWF_SCALE): Likewise.
29512 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29513 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29514 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29515
29516 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29517
29518 * math/Makefile (type-float-routines): Add e_log2f_data.
29519 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29520 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29521 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29522 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29523 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29524 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29525 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29526
29527 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29528
29529 * math/Makefile (type-float-routines): Add e_logf_data.
29530 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29531 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29532 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29533 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29534 * sysdeps/i386/fpu/e_logf_data.c: New file.
29535 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29536 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29537
29538 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29539
29540 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29541 undefined _DYNAMIC in PIE libc.a.
29542 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29543 Likewse.
29544
29545 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29546
29547 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29548 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29549 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29550 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29551 (__signbit): Remove.
29552 (__signbitl): Remove.
29553 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29554 (__signbit): Remove.
29555 (__signbitl): Remove.
29556 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29557 (__signbit): Remove.
29558 (__signbitl): Remove.
29559 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29560 (__signbit): Remove.
29561 (__signbitl): Remove.
29562 * sysdeps/tile/bits/mathinline.h: Delete file.
29563 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29564 (__signbit): Remove.
29565 (__signbitl): Remove.
29566
29567 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29568
29569 * math/math.h: Improve handling of C99 isgreater macros.
29570 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29571 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29572 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29573 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29574 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29575
29576 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29577
29578 * sysdeps/aarch64/libm-test-ulps: Update.
29579
29580 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29581
29582 [BZ #22225]
29583 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29584 math_opt_barrier on argument when doing arithmetic on it.
29585 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29586 Likewise. Use math_force_eval not math_opt_barrier after
29587 arithmetic.
29588 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29589 math_opt_barrier on argument when doing arithmetic on it.
29590 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29591 Likewise.
29592
29593 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29594
29595 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29596 libc_hidden_def.
29597 (__freeifaddrs): Likewise.
29598
29599 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29600
29601 * include/dirent.h (__dirfd): New declaration.
29602 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29603 alias.
29604 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29605 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29606 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29607 * include/unistd.h (__revoke): New declaration.
29608 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29609 alias.
29610 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29611 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29612 revoke.
29613 * include/dirent.h (__seekdir): New declaration.
29614 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29615 redefine as weak alias.
29616 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29617 of seekdir.
29618 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29619 and use libc_hidden_def on them.
29620 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29621 them.
29622 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29623 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29624 instead of getifaddrs and freeifaddrs.
29625
29626 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29627
29628 [BZ #18822]
29629 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29630 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29631 (__dso_handle): Remove declaration.
29632 * dlfcn/tstatexit.c (__dso_handle): Removed.
29633 (main): Don't check __dso_handle.
29634 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29635 (main): Don't check __dso_handle.
29636 * include/dso_handle.h: New file.
29637 * malloc/mtrace.c: Include <dso_handle.h>.
29638 (mtrace): Pass __dso_handle directly.
29639 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29640 (__dso_handle): Remove declaration.
29641 (__pthread_atfork): Pass __dso_handle directly.
29642 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29643 (__dso_handle): Removed.
29644 * posix/wordexp-test.c: Include <dso_handle.h>.
29645 (__dso_handle): Remove declaration.
29646 (__app_register_atfork): Pass __dso_handle directly.
29647 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29648 (__dso_handle): Remove declaration.
29649 (at_quick_exit): Pass __dso_handle directly.
29650 * stdlib/atexit.c: Include <dso_handle.h>.
29651 (__dso_handle): Remove declaration.
29652 (atexit): Pass __dso_handle directly.
29653 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29654 (__dso_handle): Removed.
29655
29656 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29657
29658 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29659 using VDSO.
29660
29661 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29662
29663 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29664 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29665 values to correct default value for given type.
29666
29667 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29668
29669 [BZ #22101]
29670 * elf/Makefile (tests): Add tst-debug1.
29671 ($(objpfx)tst-debug1): New.
29672 ($(objpfx)tst-debug1.out): Likewise.
29673 ($(objpfx)tst-debug1mod1.so): Likewise.
29674 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29675 with p_filesz == 0.
29676 * elf/tst-debug1.c: New file.
29677
29678 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29679
29680 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29681 Define using __ifunc.
29682
29683 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29684
29685 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29686 exp2f() values.
29687
29688 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29689
29690 [BZ #22156]
29691 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29692
29693 2017-09-26 Florian Weimer <fweimer@redhat.com>
29694
29695 * resolv/Makefile (tests-internal): Fix typo in comment.
29696
29697 2017-09-26 Florian Weimer <fweimer@redhat.com>
29698
29699 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29700
29701 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29702
29703 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29704 Use an union instead of a max_align_t array for __space,
29705 so that __space is the same size on all platforms.
29706 * malloc/scratch_buffer_grow_preserve.c
29707 (__libc_scratch_buffer_grow_preserve): Likewise.
29708
29709 [BZ #22183]
29710 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29711 version to 2.
29712 * posix/Makefile (routines): Add glob-lstat-compat and
29713 glob64-lstat-compat.
29714 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29715 * posix/glob-lstat-compat.c: New file.
29716 * posix/glob64-lstat-compat.c: Likewise.
29717 * posix/tst-glob_lstat_compat.c: Likewise.
29718 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29719 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29720 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29721 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29722 Likewise.
29723 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29724 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29725 * posix/glob.c (glob_lstat): New function.
29726 (glob): Rename to __glob and add versioned symbol to 2.27.
29727 (glob_in_dir): Use glob_lstat.
29728 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29729 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29730 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29731 2.27.
29732 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29733 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29734 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29735 gl_lstat on glob call.
29736 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29737 and glob64 symbols.
29738 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29739 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29740 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29741 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29742 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29743 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29744 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29745 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29746 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29747 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29748 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29749 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29750 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29751 Likewise.
29752 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29754 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29755 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29756 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29757 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29758 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29759 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29760 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29761 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29762 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29763 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29764
29765 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29766
29767 * configure.ac (AS): Require binutils 2.25 or later.
29768 * configure: Regenerated.
29769
29770 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29771
29772 [BZ #22207]
29773 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29774 VM size.
29775
29776 2017-09-25 DJ Delorie <dj@redhat.com>
29777
29778 [BZ #22161]
29779 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29780 resetting timeout.
29781
29782 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29783
29784 * sysdeps/ieee754/dbl-64/sincos32.h
29785 [SINCCOS32_H]: Remove define.
29786 [SINCOS32_H]: Define.
29787
29788 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29789
29790 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29791 (exp2f): Likewise.
29792 * math/w_exp2f.c: New file.
29793 * math/w_expf.c: New file.
29794 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29795 * math/w_expf_compat.c (__expf_compat): Likewise.
29796 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29797 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29798 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29799 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29800 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29801 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29802 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29803 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29804 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29805 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29806 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29807 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29808 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29809 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29810 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29811 Likewise.
29812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29813 Likewise.
29814 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29815 Likewise.
29816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29817 Likewise.
29818 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29819 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29820 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29821 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29822 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29823 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29824 Likewise.
29825 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29826 Likewise.
29827 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29828 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29829 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29830
29831 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29832
29833 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29834 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29835 (roundtoint, converttoint): Likewise.
29836 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29837 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29838 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29839 * sysdeps/ieee754/flt-32/math_config.h: New file.
29840 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29841 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29842 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29843 * sysdeps/i386/fpu/math_errf.c: New file.
29844 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29845 * sysdeps/ia64/fpu/math_errf.c: New file.
29846 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29847 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29848
29849 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29850
29851 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29852 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29853 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29854 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29855 to make sure that these symbols are defined.
29856 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29857 of <limits.h>
29858 (__need_NULL): Do not define.
29859 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29860 alignment.
29861 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29862 CMGROUP_MAX, cmsgcred): Do not define.
29863 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29864 NULL.
29865 * bits/socket.h: Likewise.
29866 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29867 __gettimeofday instead of gettimeofday.
29868 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29869 instead of settimeofday.
29870
29871 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29872
29873 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29874 (asinhf): Define using libm_alias_float.
29875 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29876 (atanf): Define using libm_alias_float.
29877 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29878 (cbrtf): Define using libm_alias_float.
29879 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29880 (ceilf): Define using libm_alias_float.
29881 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29882 <libm-alias-float.h>.
29883 (copysignf): Define using libm_alias_float.
29884 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29885 (cosf): Define using libm_alias_float.
29886 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29887 (erff): Define using libm_alias_float.
29888 (erfcf): Likewise.
29889 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29890 (expm1f): Define using libm_alias_float.
29891 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29892 (fabsf): Define using libm_alias_float.
29893 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29894 (floorf): Define using libm_alias_float.
29895 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29896 (frexpf): Define using libm_alias_float.
29897 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29898 libm_alias_float.
29899 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29900 <libm-alias-float.h>.
29901 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29902 libm_alias_float.
29903 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29904 <libm-alias-float.h>.
29905 (getpayloadf): Define using libm_alias_float.
29906 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29907 <libm-alias-float.h>.
29908 (llrintf): Define using libm_alias_float.
29909 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29910 <libm-alias-float.h>.
29911 (llroundf): Define using libm_alias_float.
29912 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29913 (logbf): Define using libm_alias_float.
29914 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29915 (lrintf): Define using libm_alias_float.
29916 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29917 (lroundf): Define using libm_alias_float.
29918 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29919 (modff): Define using libm_alias_float.
29920 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29921 <libm-alias-float.h>.
29922 (nearbyintf): Define using libm_alias_float.
29923 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29924 <libm-alias-float.h>.
29925 (nextafterf): Define using libm_alias_float.
29926 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29927 <libm-alias-float.h>.
29928 (nextupf): Define using libm_alias_float.
29929 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29930 <libm-alias-float.h>.
29931 (remquof): Define using libm_alias_float.
29932 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29933 (rintf): Define using libm_alias_float.
29934 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29935 <libm-alias-float.h>.
29936 (roundevenf): Define using libm_alias_float.
29937 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29938 (roundf): Define using libm_alias_float.
29939 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29940 using libm_alias_float.
29941 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29942 <libm-alias-float.h>.
29943 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29944 Define using libm_alias_float.
29945 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29946 <libm-alias-float.h>.
29947 (sincosf): Define using libm_alias_float.
29948 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29949 (sinf): Define using libm_alias_float.
29950 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29951 (tanf): Define using libm_alias_float.
29952 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29953 (tanhf): Define using libm_alias_float.
29954 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29955 <libm-alias-float.h>.
29956 (totalorderf): Define using libm_alias_float.
29957 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29958 <libm-alias-float.h>.
29959 (totalordermagf): Define using libm_alias_float.
29960 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29961 (truncf): Define using libm_alias_float.
29962 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29963 libm_alias_float.
29964 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29965 libm_alias_float.
29966
29967 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29968
29969 [BZ #22146]
29970 math/math.h: Let fpclassify use the builtin in C++ mode, even
29971 when optimazing for size.
29972
29973 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29974
29975 * csu/Makefile (generated): Do not add version-info.h.
29976 (before-compile): Likewise.
29977 (all-Banner-files): Remove variable.
29978 ($(objpfx)version-info.h): Remove rule.
29979 * csu/version.c (banner): Do not include "version-info.h".
29980 * libidn/Banner: Remove.
29981 * manual/contrib.texi (Simon Josefsson): New entry.
29982
29983 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29984
29985 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29986 Remove conditionals on LDBL_MANT_DIG.
29987 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29988 (__ieee754_lgammal_r): Likewise.
29989
29990 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29991
29992 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29993 _Float128 and L().
29994 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29995 _Float128 and L(). Replace _Float128 with long double and L(x)
29996 with xL, throughout the file.
29997 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29998 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29999 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30000 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30001
30002 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30003
30004 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
30005 sysdeps/ieee754/ldbl-128ibm.
30006 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
30007 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
30008 of including it. Keep _Float128 and L() intact. These will be
30009 reviewed by a separate patch.
30010 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
30011 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
30012 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
30013 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
30014
30015 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30016
30017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
30018 (__finitef128): Define to __redirect___finitef128.
30019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
30020 (__isinff128): Define to __redirect___isinff128.
30021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
30022 (__isnanf128): Define to __redirect___isnanf128.
30023
30024 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
30025
30026 * sysdeps/powerpc/powerpc64le/Makefile
30027 (CFLAGS-tst-strtod-nan-locale.c): New variable.
30028 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
30029
30030 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
30031 Carlos O'Donell <carlos@redhat.com>
30032
30033 [BZ #22180]
30034 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
30035 * stdlib/test-dlclose-exit-race.c: New file.
30036 * stdlib/test-dlclose-exit-race-helper.c: New file.
30037 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
30038
30039 2017-09-21 Joseph Myers <joseph@codesourcery.com>
30040
30041 * crypt/Banner: Remove file.
30042 * nptl/Banner: Likewise.
30043 * resolv/Banner: Likewise.
30044 * soft-fp/Banner: Likewise.
30045 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
30046 ($(objpfx)version.d): Remove dependency on banner.h.
30047 ($(objpfx)version.os): Likewise.
30048 * nptl/version.c (banner): Do not include banner.h.
30049 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
30050 Jelinek and BIND code.
30051
30052 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30053 Carlos O'Donell <carlos@redhat.com>
30054
30055 * support/xdlfcn.h: New file.
30056 * support/xdlfcn.c: New file.
30057 * support/Makefile (libsupport-routines): Add xdlfcn.
30058 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
30059
30060 2017-09-20 Joseph Myers <joseph@codesourcery.com>
30061
30062 [BZ #20142]
30063 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
30064 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
30065 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
30066 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
30067 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
30068 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
30069 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
30070 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
30071
30072 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
30073 Ricky Zhou <rickyz@google.com>
30074 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
30075
30076 [BZ #14333]
30077 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
30078 Remove atomics.
30079 (__new_exitfn): Fail registration when we finished at_exit processing.
30080 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
30081 * stdlib/on_exit.c (__on_exit): Likewise.
30082 * stdlib/exit.c (__exit_funcs_done): New variable.
30083 (__run_exit_handlers): Use __exit_funcs_lock.
30084 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
30085 declarations.
30086 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
30087 (test-cxa_atexit-race, test-on_exit-race): New tests.
30088 * stdlib/test-atexit-race-common.c: New file.
30089 * stdlib/test-atexit-race.c: New file.
30090 * stdlib/test-at_quick_exit-race.c: New file.
30091 * stdlib/test-cxa_atexit-race.c: New file.
30092 * stdlib/test-on_exit-race.c: New file.
30093
30094 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
30095
30096 * benchtests/Makefile: Add exp2f and log2f benchmarks.
30097 * benchtests/exp2f-inputs: Copy of expf-inputs.
30098 * benchtests/log2f-inputs: Copy of logf-inputs.
30099
30100 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30101
30102 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
30103 Explicitly take address of first element of array arguments in
30104 call to INLINE_SYSCALL.
30105
30106 2017-09-19 Andreas Schwab <schwab@suse.de>
30107
30108 [BZ #22134]
30109 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
30110 execveat first.
30111 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
30112 unimplemented.
30113 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
30114 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
30115 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
30116 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
30117 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
30118 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30119 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
30120 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
30121 * posix/Makefile (tests): Add tst-fexecve.
30122 * posix/tst-fexecve.c: New file.
30123
30124 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30125
30126 * benchtests/Makefile: Add logf benchmark.
30127 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30128
30129 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30130
30131 * benchtests/Makefile: Add expf benchmark.
30132 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30133
30134 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30135
30136 * csu/Makefile: Add -funwind-tables to libc-start.c.
30137 * debug/Makefile: Add -funwind-tables to backtrace.c.
30138 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30139 * sysdeps/arm/Makefile: Likewise.
30140 * sysdeps/i386/Makefile: Likewise.
30141 * sysdeps/m68k/Makefile: Likewise.
30142 * sysdeps/mips/Makefile: Likewise.
30143 * sysdeps/nios2/Makefile: Likewise.
30144 * sysdeps/sh/Makefile: Likewise.
30145 * sysdeps/sparc/Makefile: Likewise.
30146
30147 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30148
30149 * benchtests/Makefile (bench-math): Add trunc and truncf.
30150 (CFLAGS-bench-trunc.c): New variable.
30151 (CFLAGS-bench-truncf.c): Likewise.
30152 * benchtests/trunc-inputs: New file.
30153 * benchtests/truncf-inputs: Likewise.
30154
30155 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30156
30157 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30158
30159 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30160
30161 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30162 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30163 redefine.
30164 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30165 (exp10l): Define as weak alias.
30166 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30167 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30168 and redefine.
30169 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30170 (remainderl): Define as weak alias.
30171
30172 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30173 (fmal): Define using libm_alias_ldouble.
30174 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30175 (acoshl): Define using libm_alias_ldouble.
30176 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30177 (acosl): Define using libm_alias_ldouble.
30178 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30179 (asinl): Define using libm_alias_ldouble.
30180 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30181 (atan2l): Define using libm_alias_ldouble.
30182 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30183 (atanhl): Define using libm_alias_ldouble.
30184 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30185 (coshl): Define using libm_alias_ldouble.
30186 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30187 (exp10l): Define using libm_alias_ldouble.
30188 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30189 (exp2l): Define using libm_alias_ldouble.
30190 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30191 (expl): Define using libm_alias_ldouble.
30192 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30193 (fmodl): Define using libm_alias_ldouble.
30194 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30195 (hypotl): Define using libm_alias_ldouble.
30196 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30197 (j0l): Define using libm_alias_ldouble.
30198 (y0l): Likewise.
30199 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30200 (j1l): Define using libm_alias_ldouble.
30201 (y1l): Likewise.
30202 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30203 (jnl): Define using libm_alias_ldouble.
30204 (ynl): Likewise.
30205 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30206 (log10l): Define using libm_alias_ldouble.
30207 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30208 (log2l): Define using libm_alias_ldouble.
30209 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30210 (logl): Define using libm_alias_ldouble.
30211 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30212 (powl): Define using libm_alias_ldouble.
30213 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30214 (remainderl): Define using libm_alias_ldouble.
30215 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30216 (sinhl): Define using libm_alias_ldouble.
30217 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30218 (sqrtl): Define using libm_alias_ldouble.
30219 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30220 (tgammal): Define using libm_alias_ldouble.
30221 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30222 (exp10l): Do not use long_double_symbol here.
30223 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30224 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30225 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30226 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30227 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30228 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30229 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30230 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30231 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30232 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30233 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30234 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30235 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30236 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30237 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30238 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30239 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30240 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30241 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30242 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30243 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30244 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30245
30246 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30247
30248 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30249 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30250
30251 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30252
30253 * io/read.c (read): Add libc_hidden_weak.
30254 * sysdeps/mach/hurd/read.c (read): Likewise.
30255 * io/write.c (write): Likewise.
30256 * sysdeps/mach/hurd/write.c (write): Likewise.
30257 * io/pread64.c (__pread64): Likewise.
30258 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30259 * posix/pread64.c (__pread64): Add libc_hidden_def.
30260
30261 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30262
30263 * benchtests/scripts/compare_strings.py: New option -g.
30264 (draw_graph): Print a message that a graph is being generated.
30265 (process_results): Generate graph only if -g is passed.
30266 (main): Process option -g.
30267
30268 * benchtests/scripts/compare_strings.py (process_results):
30269 Better spacing for output.
30270
30271 * benchtests/scripts/compare_strings.py: Use argparse.
30272 * benchtests/README: Document existence of compare_strings.py.
30273
30274 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30275
30276 * math/s_fma.c: Include <libm-alias-double.h>.
30277 (fma): Define using libm_alias_double.
30278 * math/s_nextafter.c: Include <libm-alias-double.h>.
30279 (nextafter): Define using libm_alias_double.
30280 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30281 (acos): Define using libm_alias_double.
30282 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30283 (aocsh): Define using libm_alias_double.
30284 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30285 (asin): Define using libm_alias_double.
30286 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30287 (atan2): Define using libm_alias_double.
30288 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30289 (atanh): Define using libm_alias_double.
30290 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30291 (cosh): Define using libm_alias_double.
30292 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30293 (exp10): Define using libm_alias_double.
30294 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30295 (exp2): Define using libm_alias_double.
30296 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30297 (exp): Define using libm_alias_double.
30298 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30299 (fmod): Define using libm_alias_double.
30300 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30301 (hypot): Define using libm_alias_double.
30302 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30303 (j0): Define using libm_alias_double.
30304 (y0): Likewise.
30305 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30306 (j1): Define using libm_alias_double.
30307 (y1): Likewise.
30308 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30309 (jn): Define using libm_alias_double.
30310 (yn): Likewise.
30311 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30312 (log10): Define using libm_alias_double.
30313 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30314 (log2): Define using libm_alias_double.
30315 * math/w_log_compat.c: Include <libm-alias-double.h>.
30316 (log): Define using libm_alias_double.
30317 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30318 (pow): Define using libm_alias_double.
30319 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30320 (remainder): Define using libm_alias_double.
30321 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30322 (sinh): Define using libm_alias_double.
30323 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30324 (sqrt): Define using libm_alias_double.
30325 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30326 (tgamma): Define using libm_alias_double.
30327 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30328 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30329 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30330 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30331 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30332 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30333 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30334 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30335 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30336 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30337 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30338 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30339 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30340 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30341 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30342 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30343 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30344 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30345 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30346 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30347 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30348 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30349 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30350 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30351 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30352
30353 * math/e_acoshl.c: Remove.
30354 * math/e_acosl.c: Likewise.
30355 * math/e_asinl.c: Likewise.
30356 * math/e_atan2l.c: Likewise.
30357 * math/e_atanhl.c: Likewise.
30358 * math/e_coshl.c: Likewise.
30359 * math/e_expl.c: Likewise.
30360 * math/e_fmodl.c: Likewise.
30361 * math/e_gammal_r.c: Likewise.
30362 * math/e_hypotl.c: Likewise.
30363 * math/e_j0l.c: Likewise.
30364 * math/e_j1l.c: Likewise.
30365 * math/e_jnl.c: Likewise.
30366 * math/e_lgammal_r.c: Likewise.
30367 * math/e_log10l.c: Likewise.
30368 * math/e_log2l.c: Likewise.
30369 * math/e_logl.c: Likewise.
30370 * math/e_powl.c: Likewise.
30371 * math/e_rem_pio2l.c: Likewise.
30372 * math/e_sinhl.c: Likewise.
30373 * math/e_sqrtf128.c: Likewise.
30374 * math/e_sqrtl.c: Likewise.
30375 * math/k_cosl.c: Likewise.
30376 * math/k_sinl.c: Likewise.
30377 * math/k_tanl.c: Likewise.
30378 * math/s_asinhl.c: Likewise.
30379 * math/s_atanl.c: Likewise.
30380 * math/s_cbrtl.c: Likewise.
30381 * math/s_erfl.c: Likewise.
30382 * math/s_expm1l.c: Likewise.
30383 * math/s_log1pl.c: Likewise.
30384 * math/s_tanhl.c: Likewise.
30385
30386 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30387
30388 [BZ #21745]
30389 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30390 [$(subdir) = math] (sysdep_calls): New variable. Has the
30391 previous contents of sysdep_routines, but re-sorted..
30392 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30393 sysdep_calls.
30394 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30395 defined in sysdep_calls and replace by the respective m_* names.
30396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30397 (compat_symbol): Undefine to avoid duplicated compat symbols in
30398 libc.
30399
30400 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30401
30402 * math/s_fmaf.c: Include <libm-alias-float.h>.
30403 (fmaf): Define using libm_alias_float.
30404 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30405 (acosf): Define using libm_alias_float.
30406 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30407 (acoshf): Define using libm_alias_float.
30408 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30409 (asinf): Define using libm_alias_float.
30410 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30411 (atan2f): Define using libm_alias_float.
30412 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30413 (atanhf): Define using libm_alias_float.
30414 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30415 (coshf): Define using libm_alias_float.
30416 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30417 (exp10f): Define using libm_alias_float.
30418 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30419 (fmodf): Define using libm_alias_float.
30420 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30421 (hypotf): Define using libm_alias_float.
30422 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30423 (j0f): Define using libm_alias_float.
30424 (y0f): Likewise.
30425 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30426 (j1f): Define using libm_alias_float.
30427 (y1f): Likewise.
30428 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30429 (jnf): Define using libm_alias_float.
30430 (ynf): Likewise.
30431 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30432 (log10f): Define using libm_alias_float.
30433 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30434 (log2f): Define using libm_alias_float.
30435 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30436 (logf): Define using libm_alias_float.
30437 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30438 (powf): Define using libm_alias_float.
30439 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30440 (remainderf): Define using libm_alias_float.
30441 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30442 (sinhf): Define using libm_alias_float.
30443 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30444 (sqrtf): Define using libm_alias_float.
30445 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30446 (tgammaf): Define using libm_alias_float.
30447
30448 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30449
30450 * include/math.h (roundeven): Change hidden_proto call to
30451 __roundeven.
30452 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30453 alias.
30454 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30455 (y0): Rename to __y0 and define as weak alias.
30456 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30457 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30458 alias.
30459 (y0f): Rename to __y0f and define as weak alias.
30460 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30461 alias.
30462 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30463 (y1): Rename to __y1 and define as weak alias.
30464 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30465 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30466 alias.
30467 (y1f): Rename to __y1f and define as weak alias.
30468 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30469 alias.
30470 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30471 (yn): Rename to __yn and define as weak alias.
30472 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30473 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30474 alias.
30475 (ynf): Rename to __ynf and define as weak alias.
30476 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30477 (fromfp): Define as weak alias.
30478 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30479 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30480 (fromfpx): Define as weak alias.
30481 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30482 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30483 __getpayload and define as weak alias.
30484 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30485 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30486 __roundeven and define as weak alias.
30487 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30488 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30489 __setpayload.
30490 (setpayload): Define as weak alias.
30491 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30492 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30493 __setpayloadsig.
30494 (setpayloadsig): Define as weak alias.
30495 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30496 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30497 __totalorder and define as weak alias.
30498 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30499 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30500 to __totalordermag and define as weak alias.
30501 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30502 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30503 (ufromfp): Define as weak alias.
30504 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30505 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30506 __ufromfpx.
30507 (ufromfpx): Define as weak alias.
30508 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30509 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30510 Rename to __getpayload and define as weak alias.
30511 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30512 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30513 Rename to __roundeven and define as weak alias.
30514 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30515 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30516 Rename to __totalorder and define as weak alias.
30517 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30518 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30519 (totalordermag): Rename to __totalordermag and define as weak
30520 alias.
30521 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30522 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30523 macro.
30524 (__roundevenl): Likewise.
30525 (__totalorderl): Likewise.
30526 (__totalordermagl): Likewise
30527 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30528 __fromfpf128.
30529 (fromfpf128): Define as weak alias.
30530 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30531 __fromfpxf128.
30532 (fromfpxf128): Define as weak alias.
30533 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30534 __setpayloadf128.
30535 (setpayloadf128): Define as weak alias.
30536 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30537 __setpayloadsigf128.
30538 (setpayloadsigf128): Define as weak alias.
30539 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30540 __ufromfpf128.
30541 (ufromfpf128): Define as weak alias.
30542 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30543 __ufromfpxf128.
30544 (ufromfpxf128): Define as weak alias.
30545 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30546 (fromfpf): Define as weak alias.
30547 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30548 __fromfpxf.
30549 (fromfpxf): Define as weak alias.
30550 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30551 __getpayloadf and define as weak alias.
30552 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30553 __roundevenf and define as weak alias.
30554 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30555 __setpayloadf.
30556 (setpayloadf): Define as weak alias.
30557 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30558 __setpayloadsigf.
30559 (setpayloadsigf): Define as weak alias.
30560 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30561 __totalorderf and define as weak alias.
30562 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30563 Rename to __totalordermagf and define as weak alias.
30564 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30565 __ufromfpf.
30566 (ufromfpf): Define as weak alias.
30567 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30568 __ufromfpxf.
30569 (ufromfpxf): Define as weak alias.
30570 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30571 __fromfpl.
30572 (fromfpl): Define as weak alias.
30573 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30574 __fromfpxl.
30575 (fromfpxl): Define as weak alias.
30576 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30577 to __getpayloadl and define as weak alias.
30578 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30579 __roundevenl and define as weak alias.
30580 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30581 __setpayloadl.
30582 (setpayloadl): Define as weak alias.
30583 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30584 __setpayloadsigl.
30585 (setpayloadsigl): Define as weak alias.
30586 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30587 to __totalorderl and define as weak alias.
30588 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30589 Rename to __totalordermagl and define as weak alias.
30590 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30591 __ufromfpl.
30592 (ufromfpl): Define as weak alias.
30593 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30594 __ufromfpxl.
30595 (ufromfpxl): Define as weak alias.
30596 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30597 __fromfpl.
30598 (fromfpl): Define as weak alias.
30599 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30600 __fromfpxl.
30601 (fromfpxl): Define as weak alias.
30602 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30603 Rename to __getpayloadl and define as weak alias.
30604 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30605 to __roundevenl and define as weak alias. Call __roundeven
30606 instead of roundeven.
30607 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30608 __setpayloadl.
30609 (setpayloadl): Define as weak alias.
30610 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30611 __setpayloadsigl.
30612 (setpayloadsigl): Define as weak alias.
30613 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30614 Rename to __totalorderl and define as weak alias.
30615 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30616 Rename to __totalordermagl and define as weak alias.
30617 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30618 __ufromfpl.
30619 (ufromfpl): Define as weak alias.
30620 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30621 __ufromfpxl.
30622 (ufromfpxl): Define as weak alias.
30623 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30624 __fromfpl.
30625 (fromfpl): Define as weak alias.
30626 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30627 __fromfpxl.
30628 (fromfpxl): Define as weak alias.
30629 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30630 __getpayloadl and define as weak alias.
30631 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30632 __roundevenl and define as weak alias.
30633 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30634 __setpayloadl.
30635 (setpayloadl): Define as weak alias.
30636 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30637 __setpayloadsigl.
30638 (setpayloadsigl): Define as weak alias.
30639 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30640 __totalorderl and define as weak alias.
30641 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30642 Rename to __totalordermagl and define as weak alias.
30643 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30644 __ufromfpl.
30645 (ufromfpl): Define as weak alias.
30646 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30647 __ufromfpxl.
30648 (ufromfpxl): Define as weak alias.
30649
30650 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30651
30652 * benchtests/bench-string.h (realloc_bufs): New function.
30653 (test_init): Call it.
30654 * benchtests/bench-memset-large.c (do_test): Likewise.
30655 * benchtests/bench-memset.c (do_test): Likewise.
30656
30657 * benchtests/bench-memset-large.c: Print output in JSON
30658 format.
30659 * benchtests/bench-memset.c: Likewise.
30660
30661 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30662
30663 [BZ #21084]
30664 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30665 * iconvdata/Makefile: Add IBM858.
30666 * iconvdata/gconv-modules: Likewise.
30667 * iconvdata/tst-tables.sh: Likewise.
30668 * iconvdata/ibm858.c: New file.
30669 * localedata/charmaps/IBM858: Likewise.
30670
30671 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30672
30673 [BZ #22023]
30674 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30675 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30676
30677 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30678
30679 [BZ #22112]
30680 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30681 and add tel_int_fmt.
30682
30683 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30684
30685 * sysdeps/generic/libm-alias-float128.h: New file.
30686 * sysdeps/generic/math-type-macros-float128.h: Include
30687 <libm-alias-float128.h>.
30688 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30689
30690 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30691
30692 * sysdeps/generic/libm-alias-ldouble.h: New file.
30693 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30694 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30695 * sysdeps/generic/math-type-macros-ldouble.h: Include
30696 <libm-alias-ldouble.h>.
30697 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30698 libm_alias_ldouble.
30699
30700 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30701
30702 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30703 * math/w_exp_compat.c: ... here.
30704 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30705 * math/w_expf_compat.c: ... here.
30706 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30707 * math/w_expl_compat.c: ... here.
30708 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30709 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30710 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30711 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30712
30713 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30714
30715 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30716 redefine.
30717 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30718 macro.
30719 (ldexpl): Only define as compat symbol for libc, not libm.
30720 (scalbnl): Define as compat symbol for libc here.
30721 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30722 define for [IS_IN (libc)].
30723 (__ldexpl_2): Remove alias.
30724 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30725 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30726 name in long_double_symbol call.
30727 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30728 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30729 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30730 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30731 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30732 Remove macro.
30733 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30734 Define as compat symbol.
30735
30736 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30737
30738 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30739 * sysdeps/unix/sysv/linux/alpha/Makefile
30740 [$(subdir) = csu] (sysdep_routines): Remove rule.
30741
30742 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30743
30744 * sysdeps/generic/libm-alias-double.h: New file.
30745 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30746 * sysdeps/generic/math-type-macros-double.h: Include
30747 <libm-alias-double.h>.
30748 [declare_mgen_alias] (declare_mgen_alias): Define to use
30749 libm_alias_double.
30750 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30751 (M_LIBM_NEED_COMPAT): Remove macro.
30752 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30753 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30754 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30755 code.
30756 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30757 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30758 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30759 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30760 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30761 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30762 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30763 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30764 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30765 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30766 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30767 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30768 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30769 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30770 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30771 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30772 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30773 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30774 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30775 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30776 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30777 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30778 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30779 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30780 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30781 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30782 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30783 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30784 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30785 macro.
30786 (declare_mgen_alias): New macro.
30787 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30788 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30790 (M_LIBM_NEED_COMPAT): Remove macro.
30791 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30792 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30793 <first-versions.h>.
30794 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30795 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30796
30797 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30798
30799 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30800 (declare_mgen_alias_2): Remove.
30801 * sysdeps/generic/math-type-macros-double.h
30802 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30803 Likewise.
30804 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30805 alias.
30806 (ldexp): Define with declare_mgen_alias.
30807 (scalbn): Likewise.
30808
30809 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30810
30811 * grp/initgroups.c: Include config.h.
30812 (DEFAULT_CONFIG): New macro.
30813 (internal_getgrouplist): Use DEFAULT_CONFIG.
30814 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30815 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30816 (DEFAULT_DEFCONFIG): New macro.
30817 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30818 * nss/grp-lookup.c: Include config.h
30819 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30820 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30821 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30822 * manual/nss.texi: Update default values section.
30823
30824 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30825
30826 [BZ #21967]
30827 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30828 New.
30829 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30830 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30831 Handle MathVec_Prefer_No_AVX512.
30832 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30833 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30834 is set.
30835
30836 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30837
30838 * posix/sched_primax.c (__sched_get_priority_max): Add
30839 libc_hidden_def.
30840 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30841 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30842 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30843 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30844 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30845 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30846 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30847 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30848 Add aliases.
30849
30850 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30851
30852 * sysdeps/generic/libm-alias-float.h: New file.
30853 * sysdeps/generic/math-type-macros-float.h: Include
30854 <libm-alias-float.h>.
30855 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30856
30857 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30858
30859 [BZ #22093]
30860 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30861 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30862 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30863 (HWCAP_IMPORTANT): Likewise.
30864 (HWCAP_X86_64): New enum.
30865 (HWCAP_X86_AVX512_1): Updated.
30866 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30867 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30868 (modules-names): Add x86_64/tst-x86_64mod-1.
30869 (LDFLAGS-tst-x86_64mod-1.so): New.
30870 ($(objpfx)tst-x86_64-1): Likewise.
30871 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30872 (tst-x86_64-1-clean): Likewise.
30873 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30874 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30875
30876 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30877
30878 * po/sv.po: Update translations.
30879 * po/fr.po: Likewise.
30880
30881 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30882
30883 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30884 seconds.
30885 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30886 seconds.
30887 * elf/rtld-Rules: Fix $(error) use.
30888
30889 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30890
30891 [BZ #14925]
30892 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30893 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30894 * localedata/locales/bn_BD: “Bengali” was still used in some
30895 comments. Change it to “Bangla”.
30896
30897 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30898
30899 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30900
30901 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30902
30903 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30904 thunderx2t99p1 to list of cpu names.
30905 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30906 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30907
30908 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30909
30910 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30911 Use strcmp instead of tunable_is_name.
30912
30913 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30914
30915 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30916 (F_GET_RW_HINT): New macro.
30917 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30918 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30919 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30920 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30921 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30922 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30923 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30924 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30925 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30926
30927 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30928 (F_ADD_SEALS): New macro.
30929 [__USE_GNU] (F_GET_SEALS): Likewise.
30930 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30931 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30932 [__USE_GNU] (F_SEAL_GROW): Likewise.
30933 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30934
30935 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30936
30937 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30938 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30939 * posix/glob_internal.h (__glob_pattern_type):
30940 * posix/glob.c (glob):
30941 * posix/glob_pattern_p.c (__glob_pattern_p):
30942 Use them.
30943
30944 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30945 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30946 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30947 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30948 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30949 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30950 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30951 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30952 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30953 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30954 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30955 * sysdeps/wordsize-64/glob.c: Likewise.
30956 * sysdeps/wordsize-64/glob64.c: Likewise.
30957 * sysdeps/wordsize-64/globfree.c: Likewise.
30958 * sysdeps/wordsize-64/globfree64.c: Likewise.
30959 * sysdeps/unix/sysv/linux/glob.c: New file.
30960 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30961 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30962 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30963 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30964 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30965 adds !GLOB_NO_OLD_VERSION as an extra condition.
30966 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30967 using relative path instead of absolute one.
30968 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30969 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30970 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30971 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30972 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30973 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30974
30975 [BZ #1062]
30976 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30977 (glob): Use the same scratch buffer for both getlogin_r and
30978 getpwnam_r. Don’t require preallocation of the login name. This
30979 simplifies storage allocation, and corrects the handling of
30980 long login names.
30981
30982 [BZ #1062]
30983 * posix/glob.c (glob): Port recent patches to platforms
30984 lacking getpwnam_r.
30985 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30986 returns an error number rather than setting errno.
30987
30988 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30989 instead of GCC extension.
30990 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30991 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30992 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30993
30994 [BZ #866]
30995 [BZ #1062]
30996 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30997 * posix/bug-glob1.c: Remove file.
30998 * posix/tst-glob_symlinks.c: New file.
30999 * posix/glob.c (__lstat64): New macro.
31000 (is_dir): New function.
31001 (glob, glob_in_dir): Match symlinks even if they are dangling.
31002 (link_stat, link_exists_p): Remove. All uses removed.
31003
31004 [BZ #1062]
31005 [BZ #19971]
31006 * posix/glob.c (struct readdir_result): Remove skip_entry member.
31007 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
31008 All uses removed.
31009
31010 [BZ #1062]
31011 CVE-2017-15671
31012 * posix/Makefile (routines): Add globfree, globfree64, and
31013 glob_pattern_p.
31014 * posix/flexmember.h: New file.
31015 * posix/glob_internal.h: Likewise.
31016 * posix/glob_pattern_p.c: Likewise.
31017 * posix/globfree.c: Likewise.
31018 * posix/globfree64.c: Likewise.
31019 * sysdeps/gnu/globfree64.c: Likewise.
31020 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
31021 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
31022 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
31023 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
31024 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
31025 * sysdeps/wordsize-64/globfree.c: Likewise.
31026 * sysdeps/wordsize-64/globfree64.c: Likewise.
31027 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
31028 [NDEBUG): Remove comments.
31029 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
31030 (dirent_type): New type. Use uint_fast8_t not
31031 uint8_t, as C99 does not require uint8_t.
31032 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
31033 (struct readdir_result): Use dirent_type. Do not define skip_entry
31034 unless it is needed; this saves a byte on platforms lacking d_ino.
31035 (readdir_result_type, readdir_result_skip_entry):
31036 New functions, replacing ...
31037 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
31038 these functions, which were removed. This makes the callers
31039 easier to read. All callers changed.
31040 (D_INO_TO_RESULT): Now empty if there is no d_ino.
31041 (size_add_wrapv, glob_use_alloca): New static functions.
31042 (glob, glob_in_dir): Check for size_t overflow in several places,
31043 and fix some size_t checks that were not quite right.
31044 Remove old code using SHELL since Bash no longer
31045 uses this.
31046 (glob, prefix_array): Separate MS code better.
31047 (glob_in_dir): Remove old Amiga and VMS code.
31048 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
31049 separate files.
31050 (glob_in_dir): Do not rely on undefined behavior in accessing
31051 struct members beyond their bounds. Use a flexible array member
31052 instead
31053 (link_stat): Rename from link_exists2_p and return -1/0 instead of
31054 0/1. Caller changed.
31055 (glob): Fix memory leaks.
31056 * posix/glob64 (globfree64): Move to separate file.
31057 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
31058 (globfree64): Remove hidden alias.
31059 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
31060 oldglob.
31061 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
31062 separate file.
31063 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
31064 define.
31065 Move compat code to separate file.
31066 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
31067 separate file.
31068
31069 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
31070
31071 * resolv/tst-resolv-qtypes.c (domain): Changed to
31072 "const char domain[] =".
31073
31074 2017-09-07 Joseph Myers <joseph@codesourcery.com>
31075
31076 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
31077 version to 3.1.6.
31078
31079 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
31080 (TCP_MD5SIG_EXT): Likewise.
31081 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
31082 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
31083 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
31084
31085 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
31086
31087 2017-09-07 Mike FABIAN <mfabian@redhat.com>
31088
31089 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
31090
31091 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
31092
31093 [BZ #22100]
31094 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
31095
31096 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
31097
31098 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
31099 before assuming that the file is empty. Avoid testing buffer content
31100 when nread == 0.
31101
31102 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31103
31104 [BZ #18858]
31105 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31106 Remove define.
31107 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
31108 Likewise.
31109 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
31110 Likewise.
31111 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
31112 Likewise.
31113 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
31114 Likewise.
31115 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
31116 Likewise.
31117 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
31118 Likewise.
31119
31120 2017-09-06 Florian Weimer <fweimer@redhat.com>
31121
31122 * malloc/dynarray_emplace_enlarge.c
31123 (__libc_dynarray_emplace_enlarge): Add missing else.
31124
31125 2017-09-06 Florian Weimer <fweimer@redhat.com>
31126
31127 [BZ #22096]
31128 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31129 case of failure to obtain the global conf object.
31130
31131 2017-09-06 Florian Weimer <fweimer@redhat.com>
31132
31133 [BZ #22095]
31134 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31135 dynarray allocation failure.
31136
31137 2017-09-06 Florian Weimer <fweimer@redhat.com>
31138
31139 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31140 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31141 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31142 New functions.
31143 (response): Call them. Add 'p', '6' flag processing.
31144 (test_reverse): New function.
31145 (test_get2_any): Call it.
31146 (test_no_inet6): Add 'p' test.
31147 (test_inet6): Likewise.
31148
31149 2017-09-06 Florian Weimer <fweimer@redhat.com>
31150
31151 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31152 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31153 the QNAME.
31154 (test_gai): Adjust query names. Add additional tests.
31155 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31156 test_get2. Adjust query names. Add additional tests.
31157 (test_no_inet6): New function, extracted from threadfunc.
31158 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31159 Add additional tests.
31160
31161 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31162
31163 [BZ #22070]
31164 * localedata/unicode-gen/utf8_gen.py: Set the width for
31165 characters with Prepended_Concatenation_Mark property to 1
31166 * localedata/charmaps/UTF-8: Updated using the improved script.
31167
31168 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31169
31170 [BZ #21750]
31171 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31172 use the range notation for all ranges of neighbouring characters
31173 with the same width.
31174
31175 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31176
31177 * sysdeps/generic/math-type-macros-double.h: Include
31178 <math-svid-compat.h>.
31179 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31180 * sysdeps/generic/math-type-macros-float.h: Include
31181 <math-svid-compat.h>.
31182 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31183 * sysdeps/generic/math-type-macros-ldouble.h: Include
31184 <math-svid-compat.h>.
31185 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31186 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31187 condition.
31188 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31189 * math/w_acosf_compat.c: Likewise.
31190 * math/w_acosh_compat.c: Likewise.
31191 * math/w_acoshf_compat.c: Likewise.
31192 * math/w_acoshl_compat.c: Likewise.
31193 * math/w_acosl_compat.c: Likewise.
31194 * math/w_asin_compat.c: Likewise.
31195 * math/w_asinf_compat.c: Likewise.
31196 * math/w_asinl_compat.c: Likewise.
31197 * math/w_atan2_compat.c: Likewise.
31198 * math/w_atan2f_compat.c: Likewise.
31199 * math/w_atan2l_compat.c: Likewise.
31200 * math/w_atanh_compat.c: Likewise.
31201 * math/w_atanhf_compat.c: Likewise.
31202 * math/w_atanhl_compat.c: Likewise.
31203 * math/w_cosh_compat.c: Likewise.
31204 * math/w_coshf_compat.c: Likewise.
31205 * math/w_coshl_compat.c: Likewise.
31206 * math/w_exp10_compat.c: Likewise.
31207 * math/w_exp10f_compat.c: Likewise.
31208 * math/w_exp10l_compat.c: Likewise.
31209 * math/w_exp2_compat.c: Likewise.
31210 * math/w_exp2f_compat.c: Likewise.
31211 * math/w_exp2l_compat.c: Likewise.
31212 * math/w_fmod_compat.c: Likewise.
31213 * math/w_fmodf_compat.c: Likewise.
31214 * math/w_fmodl_compat.c: Likewise.
31215 * math/w_hypot_compat.c: Likewise.
31216 * math/w_hypotf_compat.c: Likewise.
31217 * math/w_hypotl_compat.c: Likewise.
31218 * math/w_j0_compat.c: Likewise.
31219 * math/w_j0f_compat.c: Likewise.
31220 * math/w_j0l_compat.c: Likewise.
31221 * math/w_j1_compat.c: Likewise.
31222 * math/w_j1f_compat.c: Likewise.
31223 * math/w_j1l_compat.c: Likewise.
31224 * math/w_jn_compat.c: Likewise.
31225 * math/w_jnf_compat.c: Likewise.
31226 * math/w_jnl_compat.c: Likewise.
31227 * math/w_lgamma_r_compat.c: Likewise.
31228 * math/w_lgammaf_r_compat.c: Likewise.
31229 * math/w_lgammal_r_compat.c: Likewise.
31230 * math/w_log10_compat.c: Likewise.
31231 * math/w_log10f_compat.c: Likewise.
31232 * math/w_log10l_compat.c: Likewise.
31233 * math/w_log2_compat.c: Likewise.
31234 * math/w_log2f_compat.c: Likewise.
31235 * math/w_log2l_compat.c: Likewise.
31236 * math/w_log_compat.c: Likewise.
31237 * math/w_logf_compat.c: Likewise.
31238 * math/w_logl_compat.c: Likewise.
31239 * math/w_pow_compat.c: Likewise.
31240 * math/w_powf_compat.c: Likewise.
31241 * math/w_powl_compat.c: Likewise.
31242 * math/w_remainder_compat.c: Likewise.
31243 * math/w_remainderf_compat.c: Likewise.
31244 * math/w_remainderl_compat.c: Likewise.
31245 * math/w_sinh_compat.c: Likewise.
31246 * math/w_sinhf_compat.c: Likewise.
31247 * math/w_sinhl_compat.c: Likewise.
31248 * math/w_sqrt_compat.c: Likewise.
31249 * math/w_sqrtf_compat.c: Likewise.
31250 * math/w_sqrtl_compat.c: Likewise.
31251 * math/w_tgamma_compat.c: Likewise.
31252 * math/w_tgammaf_compat.c: Likewise.
31253 * math/w_tgammal_compat.c: Likewise.
31254 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31255 [LIBM_SVID_COMPAT].
31256 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31257 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31258 [LIBM_SVID_COMPAT].
31259 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31260 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31261 [LIBM_SVID_COMPAT].
31262 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31263 * sysdeps/i386/fpu/w_sqrt.c: New file.
31264 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31265 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31266 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31267 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31268 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31269 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31270 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31271 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31272 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31273 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31274 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31275 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31276 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31277 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31278 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31279 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31280 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31281 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31282 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31283 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31284 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31285 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31286 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31287 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31288 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31289 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31290 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31291 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31292 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31293 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31294 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31295 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31296 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31297 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31298 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31299 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31300 * sysdeps/ia64/fpu/w_log.c: Likewise.
31301 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31302 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31303 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31304 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31305 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31306 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31307 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31308 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31309 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31310 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31311 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31312 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31313 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31314 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31315 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31316 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31317 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31318 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31319 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31320 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31321 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31322 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31323 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31324 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31325 [LIBM_SVID_COMPAT].
31326 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31327 * sysdeps/ieee754/k_standard.c: Likewise.
31328 * sysdeps/ieee754/k_standardf.c: Likewise.
31329 * sysdeps/ieee754/k_standardl.c: Likewise.
31330 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31331 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31332 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31333 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31334 long_double_symbol call on [LIBM_SVID_COMPAT].
31335 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31336 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31337 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31338 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31339 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31340 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31341 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31342 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31343 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31344 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31345 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31346 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31347 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31348 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31349 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31350 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31351 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31352 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31353 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31354 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31355 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31356 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31357
31358 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31359
31360 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31361 * malloc/tst-mallocstate.c: Convert from test-skeleton
31362 to test-driver. Ifdef code using TEST_COMPAT macro.
31363 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31364 * math/test-matherr.c: Likewise.
31365
31366 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31367
31368 [BZ #22086]
31369 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31370 comparing word with byte-swapped constant.
31371
31372 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31373
31374 [BZ #20498]
31375 * locale/iso-639.def: add Miskito.
31376 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31377 * localedata/locales/miq_NI: New file.
31378
31379 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31380
31381 [BZ #18822]
31382 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31383 (__mkdir): Likewise.
31384 * io/chmod.c (__chmod): Add libc_hidden_def.
31385 * io/mkdir.c (__mkdir): Likewise.
31386 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31387 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31388 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31389 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31390
31391 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31392
31393 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31394 version to 4.13.
31395
31396 [BZ #22082]
31397 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31398 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31399
31400 2017-09-04 Florian Weimer <fweimer@redhat.com>
31401
31402 * math/math.h: Issue warning if log is defined.
31403
31404 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31405
31406 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31407 kernel version to 4.13.
31408
31409 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31410
31411 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31412 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31413 parameter.
31414 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31415 just <bits/types.h>.
31416 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31417 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31418 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31419 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31420 * misc/preadv2.c: Include <errno.h>.
31421 * misc/preadv64v2.c: Include <errno.h>.
31422 * misc/pwritev2.c: Include <errno.h>.
31423 * misc/pwritev64v2.c: Include <errno.h>.
31424 * sysdeps/posix/preadv2.c: Include <errno.h>.
31425 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31426 Fix <unistd.h> inclusion.
31427 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31428 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31429 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31430 __strtoul_internal): New functions.
31431 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31432 * sysdeps/posix/system.c: Include <sigsetops.h>.
31433 * sysdeps/mach/hurd/i386/Makefile
31434 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31435 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31436 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31437 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31438 __feraiseexcept_renamed to feraiseexcept instead of
31439 __GI_feraiseexcept.
31440 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31441 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31442 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31443 RWF_NOWAIT): Define to 0 if undefined already.
31444 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31445 boils down to 0.
31446 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31447 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31448
31449 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31450
31451 * manual/math.texi (pow10): Do not document.
31452 (pow10f): Likewise.
31453 (pow10l): Likewise.
31454 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31455 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31456 * math/libm-test-exp10.inc (pow10_test): Remove.
31457 (do_test): Do not call pow10.
31458 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31459 [NO_LONG_DOUBLE] (pow10l): Likewise.
31460 * math/w_exp10f_compat.c (pow10f): Likewise.
31461 * math/w_exp10l_compat.c (pow10l): Likewise.
31462 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31463 (pow10): Make into compat symbol.
31464 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31465 (pow10f): Make into compat symbol.
31466 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31467 (pow10l): Make into compat symbol.
31468 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31469 pow10.
31470 (CFLAGS-nldbl-pow10.c): Remove variable..
31471 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31472 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31473 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31474 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31475 Undefine and redefine.
31476 (pow10l): Make into compat symbol.
31477 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31478 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31479 * sysdeps/arm/libm-test-ulps: Likewise.
31480 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31481 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31482 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31483 * sysdeps/microblaze/libm-test-ulps: Likewise.
31484 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31485 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31486 * sysdeps/nios2/libm-test-ulps: Likewise.
31487 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31488 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31489 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31490 * sysdeps/sh/libm-test-ulps: Likewise.
31491 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31492 * sysdeps/tile/libm-test-ulps: Likewise.
31493 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31494
31495 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31496
31497 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31498
31499 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31500
31501 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31502 "../ChangeLog.old/ChangeLog.8".
31503 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31504 "../ChangeLog.old/ChangeLog.14".
31505
31506 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31507
31508 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31509 Threads Library.
31510
31511 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31512
31513 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31514
31515 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31516
31517 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31518 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31519
31520 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31521
31522 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31523 32 atexit handlers.
31524
31525 2017-09-01 Zack Weinberg <zackw@panix.com>
31526
31527 * math/math.h (HUGE_VAL): Improve commentary.
31528
31529 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31530 Andreas Schwab <schwab@suse.de>
31531
31532 [BZ #21530]
31533 * include/stdio.h (__gen_tempfd): New function.
31534 * stdio-common/Makefile (routines): Add gentempfd.
31535 * stdio-common/gentempfd.c: New file.
31536 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31537 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31538 unnamed file first.
31539
31540 2017-09-01 Florian Weimer <fweimer@redhat.com>
31541
31542 [BZ #21915]
31543 [BZ #21922]
31544 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31545 result to determine success or failure, not the errno value.
31546 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31547 (tst-nss-files-hosts-erange): Link with -ldl.
31548 * nss/tst-nss-files-hosts-erange.c: New file.
31549 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31550 (do_test): Add NO_DATA tests.
31551 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31552 (do_test): Call it.
31553
31554 2017-09-01 Florian Weimer <fweimer@redhat.com>
31555
31556 [BZ #21922]
31557 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31558 coming from gethostbyname2_r.
31559
31560 2017-09-01 Florian Weimer <fweimer@redhat.com>
31561
31562 * support/namespace.h (struct support_chroot_configuration): Add
31563 hosts, host_conf.
31564 (struct support_chroot): Add path_hosts, path_host_conf.
31565 * support/support_chroot.c (write_file): New function.
31566 (support_chroot_create): Call it to process /etc/resolv.conf,
31567 /etc/hosts, /etc/host.conf.
31568 (support_chroot_free): Update.
31569
31570 2017-09-01 Florian Weimer <fweimer@redhat.com>
31571
31572 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31573 status indicates it is set.
31574
31575 2017-09-01 Florian Weimer <fweimer@redhat.com>
31576
31577 [BZ #20532]
31578 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31579 function lookup failures more reliable.
31580
31581 2017-09-01 Florian Weimer <fweimer@redhat.com>
31582
31583 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31584 (getcanonname): Likewise.
31585 (gaih_inet): Likewise.
31586
31587 2017-09-01 Florian Weimer <fweimer@redhat.com>
31588
31589 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31590 (getcanonname): Likewise.
31591 (gaih_inet): Likewise.
31592
31593 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31594 Richard Henderson <rth@twiddle.net>
31595
31596 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31597 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31598 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31599 (IREG_SIZE, OREG_SIZE): New macros.
31600 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31601 (IREG_SIZE, OREG_SIZE): New macros.
31602 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31603 (IREG_SIZE): New macro.
31604 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31605 (IREG_SIZE): New macro.
31606 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31607 New includes.
31608 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31609 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31610 (__CONCATX): Handle exceptions correctly on large values that may
31611 set FE_INVALID.
31612 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31613 Initialize if not already set.
31614 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31615
31616 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31617
31618 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31619 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31620 Likewise.
31621 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31622 Likewise.
31623 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31624 Likewise.
31625 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31626 Likewise.
31627 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31628 Likewise.
31629 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31630 Likewise.
31631 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31632 Likewise.
31633 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31634 (NO_CANCELLATION): Likewise.
31635 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31636 Likewise.
31637 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31638 Likewise.
31639 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31640 Likewise.
31641 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31642 (NO_CANCELLATION): Likewise.
31643 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31644 (NO_CANCELLATION): Likewise.
31645 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31646 Likewise
31647 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31648 Likewise.
31649 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31650 Likewise.
31651 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31652 Likewise.
31653 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31654 hidden prototype.
31655 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31656 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31657
31658 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31659
31660 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31661 in resolver call.
31662
31663 2017-08-31 Florian Weimer <fweimer@redhat.com>
31664
31665 * include/libc-symbols.h (internal_function): Remove.
31666
31667 2017-08-31 Florian Weimer <fweimer@redhat.com>
31668
31669 * stdlib/fmtmsg.c (internal_addseverity): Remove
31670 internal_function.
31671
31672 2017-08-31 Florian Weimer <fweimer@redhat.com>
31673
31674 * stdio-common/printf_fp.c (group_number): Remove
31675 internal_function.
31676 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31677
31678 2017-08-31 Florian Weimer <fweimer@redhat.com>
31679
31680 * posix/fnmatch.c (internal_function): Remove definition.
31681 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31682 * posix/regcomp.c (peek_token, init_word_char)
31683 (duplicate_node_closure, fetch_token, peek_token)
31684 (peek_token_bracket, build_range_exp, build_collating_symbol):
31685 Likewise.
31686 * posix/regex_internal.c (re_string_construct_common)
31687 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31688 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31689 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31690 (re_string_translate_buffer, re_string_reconstruct)
31691 (re_string_peek_byte_case, re_string_fetch_byte_case)
31692 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31693 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31694 (re_node_set_add_intersect, re_node_set_init_union)
31695 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31696 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31697 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31698 (re_acquire_state_context): Likewise.
31699 * posix/regex_internal.h (internal_function): Remove definition.
31700 (re_string_realloc_buffers, build_wcs_buffer)
31701 (build_wcs_upper_buffer, build_upper_buffer)
31702 (re_string_translate_buffer, re_string_context_at)
31703 (re_string_char_size_at, re_string_wchar_at)
31704 (re_string_elem_size_at): Likewise.
31705 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31706 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31707 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31708 (re_search_internal, re_search_2_stub, re_search_stub)
31709 (re_copy_regs, prune_impossible_nodes, check_matching)
31710 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31711 (free_fail_stack_return, sift_states_iter_mb)
31712 (sift_states_backward, build_sifted_states)
31713 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31714 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31715 (check_subexp_limits, sift_states_bkref, merge_state_array)
31716 (find_recover_state, transit_state, merge_state_with_log)
31717 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31718 (transit_state_mb, transit_state_bkref, get_subexp)
31719 (get_subexp_sub, find_subexp_node, check_arrival)
31720 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31721 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31722 (check_node_accept_bytes, find_collation_sequence_value)
31723 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31724 (acquire_init_state_context, check_halt_node_context)
31725 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31726 (sub_epsilon_src_nodes): Likewise.
31727 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31728 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31729 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31730 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31731 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31732 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31733 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31734 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31735 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31736 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31737 (PREADV): Likewise.
31738 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31739 (PREADV): Likewise.
31740 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31741 (PWRITEV): Likewise.
31742 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31743 (PWRITEV): Likewise.
31744 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31745 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31746
31747 2017-08-31 Florian Weimer <fweimer@redhat.com>
31748
31749 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31750 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31751 Remove internal_function.
31752 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31753 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31754 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31755 (__deallocate_stack, __libc_pthread_init)
31756 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31757 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31758 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31759 Likewise.
31760 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31761 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31762 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31763 Likewise.
31764 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31765 (__pthread_mutex_unlock_usercnt): Likewise.
31766
31767 2017-08-31 Florian Weimer <fweimer@redhat.com>
31768
31769 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31770 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31771 (fts_safe_changedir): Remove internal_function.
31772 * io/ftw.c (internal_function): Remove definition.
31773 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31774
31775 2017-08-31 Florian Weimer <fweimer@redhat.com>
31776
31777 * inet/deadline.c (__deadline_current_time)
31778 (__deadline_from_timeval, __deadline_to_ms): Remove
31779 internal_function.
31780 * inet/getnameinfo.c (nrl_domainname): Likewise.
31781 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31782 * inet/inet6_option.c (add_pad): Likewise.
31783 * inet/net-internal.h (__deadline_current_time)
31784 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31785 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31786 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31787 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31788
31789 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31790
31791 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31792 include <bits/nan.h>.
31793 * math/Makefile (headers): Remove bits/nan.h.
31794 * bits/nan.h: Remove.
31795 * sysdeps/ieee754/bits/nan.h: Likewise.
31796 * sysdeps/mips/bits/nan.h: Likewise.
31797
31798 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31799 not include <bits/inf.h>.
31800 * math/Makefile (headers): Remove bits/inf.h.
31801 * bits/inf.h: Remove.
31802 * sysdeps/ieee754/bits/inf.h: Likewise.
31803
31804 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31805 bits/huge_vall.h or bits/huge_val_flt128.h.
31806 (HUGE_VAL): Define directly here.
31807 [__USE_ISOC99] (HUGE_VALF): Likewise.
31808 [__USE_ISOC99] (HUGE_VALL): Likewise.
31809 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31810 (HUGE_VAL_F128): Likewise.
31811 * math/Makefile (headers): Remove bits/huge_val.h,
31812 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31813 * bits/huge_val.h: Remove.
31814 * bits/huge_val_flt128.h: Likewise.
31815 * bits/huge_valf.h: Likewise.
31816 * bits/huge_vall.h: Likewise.
31817 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31818 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31819 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31820 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31821 * sysdeps/sh/bits/huge_val.h: Likewise.
31822 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31823 * sysdeps/x86/bits/huge_vall.h: Likewise.
31824
31825 2017-08-31 Florian Weimer <fweimer@redhat.com>
31826
31827 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31828 internal_function.
31829 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31830 Likewise.
31831 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31832 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31833 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31834 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31835 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31836 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31837 * elf/dl-libc.c (dlerror_run): Likewise.
31838 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31839 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31840 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31841 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31842 Likewise.
31843 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31844 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31845 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31846 * elf/dl-profile.c (_dl_start_profile): Likewise.
31847 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31848 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31849 Likewise.
31850 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31851 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31852 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31853 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31854 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31855 (_dl_allocate_tls_storage): Likewise.
31856 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31857 (_dl_check_all_versions): Likewise.
31858 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31859 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31860 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31861 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31862 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31863 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31864 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31865 internal_function from __dl_start.
31866 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31867 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31868 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31869 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31870 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31871 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31872 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31873 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31874 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31875 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31876 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31877 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31878 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31879 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31880 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31881 Likewise.
31882 (struct rtld_global_ro): Remove internal_function from the
31883 _dl_lookup_symbol_x member.
31884 (_dl_symbol_value): Remove. No longer defined anywhere.
31885 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31886 internal_function.
31887 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31888 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31889 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31890 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31891 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31892 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31893 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31894 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31895 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31896 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31897 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31898 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31899
31900 2017-08-31 Florian Weimer <fweimer@redhat.com>
31901
31902 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31903 Remove internal_function.
31904 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31905 Likewise.
31906 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31907 Likewise.
31908
31909 2017-08-31 Florian Weimer <fweimer@redhat.com>
31910
31911 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31912 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31913 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31914
31915 2017-08-31 Florian Weimer <fweimer@redhat.com>
31916
31917 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31918 (__gai_enqueue_request): Remove internal_function.
31919 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31920 (__gai_remove_request, __gai_notify, __gai_notify_only)
31921 (__gai_sigqueue): Likewise.
31922 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31923 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31924 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31925 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31926 Likewise.
31927
31928 2017-08-31 Florian Weimer <fweimer@redhat.com>
31929
31930 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31931 * include/dirent.h (__opendirat, __getdents, __getdents64)
31932 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31933 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31934 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31935 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31936 Likewise.
31937 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31938
31939 2017-08-31 Florian Weimer <fweimer@redhat.com>
31940
31941 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31942 internal_function.
31943 (GETCWD_RETURN_TYPE): Likewise.
31944
31945 2017-08-31 Florian Weimer <fweimer@redhat.com>
31946
31947 * include/time.h (__tz_compute, __strptime_internal): Remove
31948 internal_function.
31949 * time/strptime_l.c (__strptime_internal): Likewise.
31950 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31951
31952 2017-08-31 Florian Weimer <fweimer@redhat.com>
31953
31954 * iconv/gconv.c (__gconv): Remove internal_function.
31955 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31956 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31957 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31958 (__gconv_release_cache): Likewise.
31959 * iconv/gconv_close.c (__gconv_close): Likewise.
31960 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31961 (read_conf_file, __gconv_get_path): Likewise.
31962 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31963 (__gconv_release_step, gen_steps, increment_counter)
31964 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31965 (__gconv_close_transform, free_modules_db): Likewise.
31966 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31967 Likewise.
31968 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31969 (__gconv_find_transform, __gconv_lookup_cache)
31970 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31971 (__gconv_close_transform, __gconv_release_cache)
31972 (__gconv_loaded_object, __gconv_release_shlib)
31973 (__gconv_compare_alias): Likewise.
31974 * iconv/gconv_open.c (__gconv_open): Likewise.
31975 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31976 * iconv/iconvconfig.c (add_module): Likewise.
31977 * intl/dcigettext.c (plural_lookup, guess_category_value)
31978 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31979 * intl/eval-plural.h (plural_eval): Likewise.
31980 * intl/finddomain.c (_nl_find_domain): Likewise.
31981 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31982 (_nl_load_domain, _nl_find_msg): Likewise.
31983 (internal_function): Remove definition.
31984 * intl/loadinfo.h (internal_function): Likewise.
31985 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31986 internal_function.
31987 * intl/localealias.c (internal_function): Remove definition.
31988 (read_alias_file): Remove internal_function.
31989 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31990 * intl/plural-exp.h (internal_function): Remove definition.
31991 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31992 internal_function.
31993 * intl/plural.c: Regenerate.
31994 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31995 * locale/coll-lookup.c (__collidx_table_lookup)
31996 (__collseq_table_lookup): Likewise.
31997 * locale/coll-lookup.h (__collidx_table_lookup)
31998 (__collseq_table_lookup): Likewise.
31999 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
32000 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
32001 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
32002 (_nl_unload_locale): Likewise.
32003 * locale/localeinfo.h (struct __locale_data): Remove
32004 internal_function from cleanup member.
32005 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
32006 (_nl_remove_locale, _nl_load_locale_from_archive)
32007 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
32008 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
32009 (_nl_cleanup_time): Remove internal_function.
32010 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
32011 (_nl_parse_alt_digit): Likewise.
32012 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
32013 (_nl_select_era_entry): Likewise.
32014 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
32015 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32016 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32017 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
32018 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
32019
32020 2017-08-31 Florian Weimer <fweimer@redhat.com>
32021
32022 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
32023 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
32024 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
32025 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
32026 Likewise.
32027 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
32028 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
32029 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
32030 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
32031 Likewise.
32032 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
32033
32034 2017-08-31 Florian Weimer <fweimer@redhat.com>
32035
32036 * misc/getttyent.c (skip, value): Remove internal_function.
32037 * misc/syslog.c (openlog_internal): Likewise.
32038 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
32039
32040 2017-08-31 Florian Weimer <fweimer@redhat.com>
32041
32042 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
32043 (__nss_rewrite_field): Remove internal_function.
32044 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
32045 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
32046 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
32047 * nss/nsswitch.c (nss_parse_file, nss_getline)
32048 (nss_parse_service_list, nss_new_service): Likewise.
32049 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
32050 * nss/valid_field.c (__nss_valid_field): Likewise.
32051 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
32052
32053 2017-08-31 Florian Weimer <fweimer@redhat.com>
32054
32055 * malloc/arena.c (__malloc_fork_lock_parent)
32056 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
32057 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
32058 internal_function from defintions.
32059 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
32060 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
32061 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
32062 internal_function from declarations.
32063 * malloc/malloc.c (internal_function): Do not define.
32064 (mem2mem_check): Remove internal_function from declaration.
32065 (munmap_chunk, mremap_chunk): Remove internal_function.
32066 * malloc/mtrace.c (tr_where): Likewise.
32067
32068 2017-08-31 Florian Weimer <fweimer@redhat.com>
32069
32070 * include/rpc/pmap_clnt.h (__get_socket): Remove
32071 internal_function.
32072 * sunrpc/auth_des.c (synchronize): Likewise.
32073 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
32074 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
32075 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
32076 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
32077 (key_call): Likewise.
32078 * sunrpc/pm_getport.c (__get_socket): Likewise.
32079 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
32080 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
32081 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
32082 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
32083 (invalidate): Likewise.
32084 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
32085 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
32086 (set_input_fragment, get_input_bytes): Likewise.
32087
32088 2017-08-31 Florian Weimer <fweimer@redhat.com>
32089
32090 * malloc/malloc.c (_int_free): Remove locked variable and related
32091 asserts.
32092
32093 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
32094
32095 [BZ #22051]
32096 * Makerules (build-module-helper-objlist): Filter out
32097 $(elf-objpfx)sofini.os.
32098 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
32099 needed.
32100
32101 2017-08-31 Florian Weimer <fweimer@redhat.com>
32102
32103 * libio/fcloseall.c: Assume weak_alias is defined.
32104 * libio/feof.c: Likewise.
32105 * libio/fileno.c: Likewise.
32106 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
32107 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32108 definitions.
32109 (_IO_file_open): Call __open directly.
32110 (_IO_new_file_sync): Assume ESPIPE is defined.
32111 (_IO_file_seekoff_maybe_mmap): Call __read directly.
32112 (_IO_new_file_write): Call __write directly.
32113 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
32114 * libio/ftello64.c (__ftello64): Assume EIO is defined.
32115 * libio/genops.c: Assume _LIBC is defined.
32116 (save_for_backup): Remove internal_function.
32117 * libio/getc.c: Assume weak_alias is defined.
32118 * libio/getwc.c: Likewise.
32119 * libio/iofclose.c: Assume _LIBC is defined.
32120 * libio/iofdopen.c: Likewise.
32121 (_IO_fcntl): Remove macro definition.
32122 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
32123 Call __fcntl directly.
32124 * libio/iofflush.c: Assume weak_alias is defined.
32125 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32126 defined.
32127 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32128 * libio/iofgets.c: Likewise.
32129 * libio/iofopen.c: Assume _LIBC is defined.
32130 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32131 * libio/iofputs.c: Assume weak_alias is defined.
32132 * libio/iofread.c: Likewise.
32133 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32134 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32135 * libio/ioftell.c: Assume weak_alias is defined.
32136 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32137 * libio/iofwide.c: Assume _LIBC is defined.
32138 (_IO_fwide): Drop SHARED conditional because it is implied by
32139 SHLIB_COMPAT.
32140 * libio/iofwrite.c: Assume weak_alias is defined.
32141 * libio/iogetdelim.c: Likewise.
32142 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32143 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32144 (_IO_getwline): Call __wmemcpy directly.
32145 * libio/iopopen.c: Assume _LIBC is defined.
32146 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32147 (_IO_close): Remove macro definitions.
32148 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32149 _exit directly.
32150 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32151 directly.
32152 * libio/ioputs.c: Assume weak_alias is defined.
32153 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32154 * libio/iosetbuffer.c: Assume weak_alias is defined.
32155 * libio/iosetvbuf.c: Likewise.
32156 * libio/ioungetc.c: Likewise.
32157 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32158 libc_hidden_def, libc_hidden_weak, NULL are defined.
32159 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32160 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32161 defined.
32162 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32163 definitions.
32164 (_IO_old_file_init_internal): Drop SHARED conditional because it
32165 is implied by SHLIB_COMPAT.
32166 (_IO_old_file_fopen): Call __open directly.
32167 (_IO_old_file_sync): Assume ESPIPE is defined.
32168 (_IO_old_file_write): Call __write directly.
32169 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32170 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32171 Call __fcntl directly.
32172 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32173 (_IO_old_fgetpos): Assume EIO is defined.
32174 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32175 (_IO_old_fgetpos64): Assume EIO is defined.
32176 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32177 (_IO_old_fsetpos): Assume EIO is defined.
32178 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32179 (_IO_old_fsetpos64): Assume EIO is defined.
32180 * libio/oldiopopen.c: Assume _LIBC is defined.
32181 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32182 (_IO_close): Remove macro definitions.
32183 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32184 directly.
32185 (_IO_old_proc_close): Call __close, __waitpid directly.
32186 * libio/put.c: Assume weak_alias is defined.
32187 * libio/stdfiles.c: Assume _LIBC is defined.
32188 * libio/stdio.c: Likewise.
32189 * libio/wfileops.c: Likewise.
32190 (_IO_wfile_sync): Assume ESPIPE is defined.
32191 * libio/wgenops.c: Assume _LIBC is defined.
32192 (save_for_wbackup): Remove internal_function.
32193
32194 2017-08-31 Florian Weimer <fweimer@redhat.com>
32195
32196 * malloc/malloc.c (top_check): Change return type to void. Remove
32197 internal_function.
32198 * malloc/hooks.c (top_check): Likewise.
32199 (malloc_check, realloc_check, memalign_check): Adjust.
32200
32201 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32202
32203 [BZ #21457]
32204 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32205 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32206 sigcontext and namespace requirements.
32207 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32208 * sysdeps/m68k/sys/ucontext.h: Likewise.
32209 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32210 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32211 <bits/sigcontext.h>.
32212 (__ctx): Define earlier.
32213 (mcontext_t): Define structure contents rather than using struct
32214 sigcontext.
32215 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32216 __glibc_reserved1 instead of __reserved.
32217 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32218 <bits/sigcontext.h>.
32219 (__ctx): Define earlier.
32220 (mcontext_t): Define structure contents rather than using struct
32221 sigcontext.
32222 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32223 mcontext_t instead of struct sigcontext.
32224 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32225 <bits/sigcontext.h>.
32226 (__ctx): Define earlier.
32227 (mcontext_t): Define structure contents rather than using struct
32228 sigcontext.
32229 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32230 <bits/sigcontext.h>.
32231 (__ctx): Define earlier.
32232 (mcontext_t): Define structure contents rather than using struct
32233 sigcontext.
32234 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32235 mcontext_t instead of struct sigcontext.
32236 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32237 mcontext_t instead of struct sigcontext.
32238 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32239 <bits/sigcontext.h>.
32240 (__ctx): New macro.
32241 (struct __ia64_fpreg_mcontext): New type.
32242 (mcontext_t): Define structure contents rather than using struct
32243 sigcontext.
32244 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32245 (uc_sigmask): Define using __ctx.
32246 (uc_stack): Likewise.
32247 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32248 <bits/sigcontext.h>.
32249 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32250 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32251 <bits/sigcontext.h>.
32252 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32253 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32254 <bits/sigcontext.h>.
32255 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32256 <bits/sigcontext.h>.
32257 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32258 <bits/sigcontext.h>.
32259 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32260 <bits/sigcontext.h>.
32261 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32262 <bits/sigcontext.h>.
32263 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32264 <bits/sigcontext.h>.
32265 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32266 <bits/sigcontext.h>.
32267 (__ctx): Define earlier.
32268 (mcontext_t): Define structure contents rather than using struct
32269 sigcontext.
32270 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32271 <bits/sigcontext.h>. Include <bits/types.h>.
32272 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32273 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32274 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32275 (test-xfail-UNIX98/signal.h/conform): Likewise.
32276 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32277 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32278 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32279 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32280 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32281 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32282 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32283 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32284 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32285
32286 2017-08-30 Florian Weimer <fweimer@redhat.com>
32287
32288 * malloc/dynarray_emplace_enlarge.c
32289 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32290 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32291 * malloc/tst-dynarray.c (test_long_overflow): New function.
32292 (do_test): Call it.
32293
32294 2017-08-30 Florian Weimer <fweimer@redhat.com>
32295
32296 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32297 (set_arena_corrupt): Remove definitions.
32298 (mtrim): Do not check for corrupt arena.
32299 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32300 Likewise.
32301
32302 2017-08-30 Florian Weimer <fweimer@redhat.com>
32303
32304 [BZ #21754]
32305 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32306 check_action.
32307 (ptmalloc_init): Do not set or use check_action.
32308 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32309 call to malloc_printerr. Remove return statement.
32310 (free_check): Likewise. Remove arena unlock.
32311 (top_check): Update comment. Adjust call to malloc_printerr.
32312 Remove heap repair code.
32313 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32314 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32315 (sysmalloc): Adjust call to malloc_printerr.
32316 (munmap_chunk, __libc_realloc): Likewise. Remove return
32317 statement.
32318 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32319 Remove errout label and corresponding gotos.
32320 (_int_free): Likewise. Remove arena unlock.
32321 (do_set_mallopt_check): Do not set check_action.
32322 (malloc_printerr): Adjust parameter list. Do not mark arena as
32323 corrupt.
32324 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32325 comment.
32326 * manual/probes.texi (Memory Allocation Probes): Remove
32327 memory_mallopt_check_action.
32328
32329 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32330
32331 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32332 Use pointer to uint64_t instead of long int for sp.
32333
32334 2017-08-30 Florian Weimer <fweimer@redhat.com>
32335
32336 [BZ #21754]
32337 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32338 without printing a backtrace. Do not leak any information in the
32339 error message.
32340 * manual/memory.texi (Heap Consistency Checking): Update.
32341 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32342
32343 2017-08-30 Florian Weimer <fweimer@redhat.com>
32344
32345 Do not scale NPTL tests with available number of CPUs.
32346 * nptl/tst-cond16.c (count): Set to constant value of 8.
32347 * nptl/tst-cond18.c (count): Likewise.
32348
32349 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32350
32351 [BZ #22035]
32352 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32353 Define to take a second argument that is a macro that
32354 concatentates a suffix, not the suffix itself.
32355 (__CONCAT_d): New macro.
32356 (__CONCAT_f): Likewise.
32357 (__CONCAT_l): Likewise.
32358
32359 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32360
32361 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32362 by child.
32363
32364 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32365 Aurelien Jarno <aurelien@aurel32.net>
32366 Maciej W. Rozycki <macro@imgtec.com>
32367
32368 [BZ #21956]
32369 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32370 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32371 `mips16-syscall6' and `mips16-syscall7'.
32372 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32373 (CFLAGS-mips16-syscall7.c): Remove.
32374 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32375 Remove `__mips16_syscall5', `__mips16_syscall6' and
32376 `__mips16_syscall7'.
32377 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32378 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32379 `__mips_syscall_return'.
32380 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32381 (__mips16_syscall1): Likewise.
32382 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32383 (__mips16_syscall2): Likewise.
32384 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32385 (__mips16_syscall3): Likewise.
32386 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32387 (__mips16_syscall4): Likewise.
32388 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32389 Remove.
32390 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32391 Remove.
32392 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32393 Remove.
32394 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32395 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32396 `__mips16_syscall5'. Remove prototype.
32397 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32398 `__mips16_syscall6'. Remove prototype.
32399 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32400 `__mips16_syscall7'. Remove prototype.
32401 (__nomips16, __mips16_syscall_return): Move to...
32402 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32403 (__nomips16, __mips_syscall_return): ... here.
32404 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32405 `__mips16_syscall_return' to `__mips_syscall_return'.
32406 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32407 `internal_syscall##nr'.
32408 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32409 `internal_syscall##nr'.
32410 (FORCE_FRAME_POINTER): Remove.
32411 (__mips_syscall5): New prototype.
32412 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32413 (__mips_syscall6): New prototype.
32414 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32415 (__mips_syscall7): New prototype.
32416 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32417 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32418 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32419 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32420 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32421 (sysdep_routines): Add libc-do-syscall.
32422 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32423 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32424
32425 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32426
32427 [BZ #21672]
32428 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32429 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32430 (advise_stack_range): New function.
32431 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32432 stack non required to advise_stack_range at allocatestack.c
32433
32434 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32435
32436 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32437
32438 2017-08-29 Florian Weimer <fweimer@redhat.com>
32439
32440 [BZ #22026]
32441 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32442 __end_fct. Mangle __end_fct after setting it to NULL.
32443 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32444 (modules-names, modules-names-tests): Add
32445 tst-gconv-init-failure-mod.
32446 (gconv-modules): New target.
32447 (tst-gconv-init-failure-mod.so): Link against libsupport.
32448 (tst-gconv-init-failure): Depend on gconv-modules,
32449 tst-gconv-init-failure-mod.so.
32450 * iconv/tst-gconv-init-failure-mod.c: New file.
32451 * iconv/tst-gconv-init-failure.c: Likewise.
32452 * iconv/test-gconv-modules: Likewise.
32453
32454 2017-08-29 Florian Weimer <fweimer@redhat.com>
32455
32456 [BZ #22025]
32457 * iconv/gconv_db.c (free_derivation): Remove redundant
32458 parentheses.
32459 (gen_steps): Unconditionally mangle __btowc_fct after
32460 initialization.
32461 (increment_counter): Likewise. Do not call init_fct for internal
32462 modules.
32463
32464 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32465
32466 [BZ #22028]
32467 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32468 (_MSUF_): Remove macro.
32469 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32470 Likewise.
32471 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32472 (__REDIRFROM_X): New macro.
32473 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32474 Likewise.
32475 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32476 (__REDIRTO_X): Likewise.
32477 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32478 arguments.
32479 (__MATH_REDIRCALL_2): Likewise.
32480 (__MATH_REDIRCALL_INTERNAL): Likewise.
32481 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32482 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32483 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32484 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32485 * math/test-finite-macros.c: New file.
32486 * math/Makefile (tests): Add test-finite-macros.
32487 (CFLAGS-test-finite-macros.c): New variable.
32488
32489 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32490 Jeff Law <law@redhat.com>
32491
32492 [BZ #22025]
32493 Mangle NULL pointers in iconv/gconv.
32494 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32495 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32496 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32497 is non-NULL before demangling the end_fct. Check for NULL
32498 end_fct after demangling.
32499 (__gconv_release_step): Demangle the end_fct before checking
32500 it for NULL. Remove assert on __shlibc_handle != NULL.
32501 (gen_steps): Don't check btowc_fct for NULL before mangling.
32502 Demangle init_fct before checking for NULL.
32503 (increment_counter): Likewise.
32504 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32505 end_fct for NULL before mangling.
32506 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32507 for NULL.
32508
32509 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32510
32511 [BZ #21971]
32512 * locale/iso-639.def: add Morisyen.
32513
32514 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32515
32516 [BZ #21930]
32517 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32518 (iszero): New C++ implementation that does not use
32519 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32520 signaling nans are enabled, since __builtin_types_compatible_p
32521 is a C-only feature.
32522 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32523 defined, include ieee754_float128.h for access to the union and
32524 member ieee854_float128.ieee.
32525 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32526 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32527 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32528 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32529 options of test-math-zero on powerpc64le.
32530
32531 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32532
32533 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32534 Change double to float.
32535
32536 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32537
32538 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32539 unconditional.
32540 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32541 conditional code; define contents only for [LIBM_SVID_COMPAT].
32542
32543 2017-08-28 Florian Weimer <fweimer@redhat.com>
32544
32545 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32546 (abi-lp64_be-options): Remove.
32547 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32548 (abi-hard-options): Likewise.
32549 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32550 (abi-o32_hard-options, abi-o32_soft_2008-options)
32551 (abi-o32_hard_2008-options, abi-n32_soft-options)
32552 (abi-n32_hard-options, abi-n32_soft_2008-options)
32553 (abi-n32_hard_2008-options, abi-n64_soft-options)
32554 (abi-n64_hard-options, abi-n64_soft_2008-options)
32555 (abi-n64_hard_2008-options): Likewise.
32556 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32557 (abi-64-v1-options, abi-64-v2-options): Likewise.
32558 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32559 (abi-64-options): Likewise.
32560 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32561 (abi-64-options): Likewise.
32562 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32563 (abi-64-options): Likewise.
32564 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32565 (abi-64-options, abi-x32-options): Likewise.
32566
32567 2017-08-28 Florian Weimer <fweimer@redhat.com>
32568
32569 Store supported list of SYS_* system calls in the source tree.
32570 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32571 (bits/syscall.h): Generate from list file.
32572 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32573 [$(subdir) = misc] (tests): Add tst-syscall-list.
32574 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32575 [$(subdir) = misc] (tst-syscall-list-macros.list)
32576 [$(subdir) = misc] (tst-syscall-list-nr.list)
32577 (tst-syscall-list-sys.list): Helper targets for new
32578 tst-syscall-list test.
32579 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32580 tst-syscall-list.sh.
32581 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32582 target. Do not include bits/syscall.d.
32583 [$(subdir) = misc] (generated): Do not update.
32584 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32585 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32586 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32587 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32588
32589 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32590
32591 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32592 (tst-cxa_atexit, tst-on_exit): Likewise.
32593 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32594 tst-cxa_atexit, and tst-on_exit.
32595 * stdlib/tst-atexit-common.c: New file.
32596 * stdlib/tst-atexit.c: New file.
32597 * stdlib/tst-at_quick_exit.c: New file.
32598 * stdlib/tst-cxa_atexit.c: New file.
32599 * stdlib/tst-on_exit.c: New file.
32600
32601 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32602
32603 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32604 * mach/stack_chk_fail_local.c: New file.
32605 * hurd/stack_chk_fail_local.c: New file.
32606 * mach/Machrules ($(interface-library)-routines): Add
32607 stack_chk_fail_local.
32608 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32609 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32610 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32611 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32612 * hurd/Makefile (CFLAGS-hurdstartup.o,
32613 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32614
32615 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32616
32617 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32618 (index_cpu_*, index_arch_*): Removed.
32619
32620 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32621
32622 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32623 Use uint64_t instead of unsigned long.
32624
32625 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32626
32627 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32628 [__HAVE_DISTINCT_FLOAT128].
32629
32630 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32631 of <bits/math-finite.h>.
32632 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32633 inclusion of <bits/math-finite.h>.
32634 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32635 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32636 __NO_LONG_DOUBLE_MATH].
32637 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32638 (__MATH_REDIRCALL_2): Likewise.
32639 (__MATH_REDIRCALL_INTERNAL): Likewise.
32640 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32641 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32642 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32643
32644 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32645 Remove file.
32646 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32647 Likewise.
32648 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32649 Likewise.
32650 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32651 Likewise.
32652 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32653 Likewise.
32654 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32655 Likewise.
32656 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32657 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32658 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32659 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32660 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32661 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32662 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32663 w_sqrtf_compat-ppc32.
32664
32665 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32666
32667 * math/math.h [defined __cplusplus] (issignaling): In the long
32668 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32669 is not defined. Call __issignaling, otherwise.
32670
32671 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32672
32673 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32674 syscall definitions and replace __builtin_expect with __glibc_likely.
32675 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32676 syscall.
32677 (SYSCALL_CANCELLABLE): Removedefinition
32678 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32679 definition.
32680 (PSEUDO_END): Likewise.
32681 [IS_IN (libpthread)] (CENABLE): Likewise.
32682 [IS_IN (libpthread)] (CDISABLE): Likewise.
32683 [IS_IN (libc)] (CENABLE): Likewise.
32684 [IS_IN (libc)] (CENABLE): Likewise.
32685 [IS_IN (librt)] (CDISABLE): Likewise.
32686 [IS_IN (librt)] (CDISABLE): Likewise.
32687 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32688 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32689 definition.
32690 (PSEUDO_END): Likewise.
32691 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32692 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32693 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32694 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32695 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32696 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32697 (CENABLE): Likewise.
32698 (CDISABLE): Likewise.
32699 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32700 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32701 defintion.
32702 (PSEUDO_END): Likewise.
32703 [IS_IN (libpthread)] (CENABLE): Likewise.
32704 [IS_IN (libpthread)] (CDISABLE): Likewise.
32705 [IS_IN (libc)] (CENABLE): Likewise.
32706 [IS_IN (libc)] (CENABLE): Likewise.
32707 [IS_IN (librt)] (CDISABLE): Likewise.
32708 [IS_IN (librt)] (CDISABLE): Likewise.
32709 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32710 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32711 definition.
32712 (PSEUDO_END): Likewise.
32713 [IS_IN (libpthread)] (CENABLE): Likewise.
32714 [IS_IN (libpthread)] (CDISABLE): Likewise.
32715 [IS_IN (libc)] (CENABLE): Likewise.
32716 [IS_IN (libc)] (CENABLE): Likewise.
32717 [IS_IN (librt)] (CDISABLE): Likewise.
32718 [IS_IN (librt)] (CDISABLE): Likewise.
32719 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32720 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32721 definition.
32722 (PSEUDO_END): Likewise.
32723 [IS_IN (libpthread)] (CENABLE): Likewise.
32724 [IS_IN (libpthread)] (CDISABLE): Likewise.
32725 [IS_IN (libc)] (CENABLE): Likewise.
32726 [IS_IN (libc)] (CENABLE): Likewise.
32727 [IS_IN (librt)] (CDISABLE): Likewise.
32728 [IS_IN (librt)] (CDISABLE): Likewise.
32729 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32730 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32731 definition.
32732 (PSEUDO_END): Likewise.
32733 [IS_IN (libpthread)] (CENABLE): Likewise.
32734 [IS_IN (libpthread)] (CDISABLE): Likewise.
32735 [IS_IN (libc)] (CENABLE): Likewise.
32736 [IS_IN (libc)] (CENABLE): Likewise.
32737 [IS_IN (librt)] (CDISABLE): Likewise.
32738 [IS_IN (librt)] (CDISABLE): Likewise.
32739 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32740 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32741 definition.
32742 (PSEUDO_END): Likewise.
32743 [IS_IN (libpthread)] (CENABLE): Likewise.
32744 [IS_IN (libpthread)] (CDISABLE): Likewise.
32745 [IS_IN (libc)] (CENABLE): Likewise.
32746 [IS_IN (libc)] (CENABLE): Likewise.
32747 [IS_IN (librt)] (CDISABLE): Likewise.
32748 [IS_IN (librt)] (CDISABLE): Likewise.
32749 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32750 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32751 definition.
32752 (PSEUDO_END): Likewise.
32753 [IS_IN (libpthread)] (CENABLE): Likewise.
32754 [IS_IN (libpthread)] (CDISABLE): Likewise.
32755 [IS_IN (libc)] (CENABLE): Likewise.
32756 [IS_IN (libc)] (CENABLE): Likewise.
32757 [IS_IN (librt)] (CDISABLE): Likewise.
32758 [IS_IN (librt)] (CDISABLE): Likewise.
32759 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32760 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32761 Remove definition.
32762 (PSEUDO_END): Likewise.
32763 [IS_IN (libpthread)] (CENABLE): Likewise.
32764 [IS_IN (libpthread)] (CDISABLE): Likewise.
32765 [IS_IN (libc)] (CENABLE): Likewise.
32766 [IS_IN (libc)] (CENABLE): Likewise.
32767 [IS_IN (librt)] (CDISABLE): Likewise.
32768 [IS_IN (librt)] (CDISABLE): Likewise.
32769 (SINGLE_THREAD_P): Likewise.
32770 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32771 definition.
32772 (PSEUDO_END): Likewise.
32773 [IS_IN (libpthread)] (CENABLE): Likewise.
32774 [IS_IN (libpthread)] (CDISABLE): Likewise.
32775 [IS_IN (libc)] (CENABLE): Likewise.
32776 [IS_IN (libc)] (CENABLE): Likewise.
32777 [IS_IN (librt)] (CDISABLE): Likewise.
32778 [IS_IN (librt)] (CDISABLE): Likewise.
32779 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32780 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32781 definition.
32782 (PSEUDO_END): Likewise.
32783 [IS_IN (libpthread)] (CENABLE): Likewise.
32784 [IS_IN (libpthread)] (CDISABLE): Likewise.
32785 [IS_IN (libc)] (CENABLE): Likewise.
32786 [IS_IN (libc)] (CENABLE): Likewise.
32787 [IS_IN (librt)] (CDISABLE): Likewise.
32788 [IS_IN (librt)] (CDISABLE): Likewise.
32789 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32790 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32791 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32792 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32793 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32794 definition.
32795 (PSEUDO_END): Likewise.
32796 [IS_IN (libpthread)] (CENABLE): Likewise.
32797 [IS_IN (libpthread)] (CDISABLE): Likewise.
32798 [IS_IN (libc)] (CENABLE): Likewise.
32799 [IS_IN (libc)] (CENABLE): Likewise.
32800 [IS_IN (librt)] (CDISABLE): Likewise.
32801 [IS_IN (librt)] (CDISABLE): Likewise.
32802 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32803 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32804 definition.
32805 (PSEUDO_END): Likewise.
32806 [IS_IN (libpthread)] (CENABLE): Likewise.
32807 [IS_IN (libpthread)] (CDISABLE): Likewise.
32808 [IS_IN (libc)] (CENABLE): Likewise.
32809 [IS_IN (libc)] (CENABLE): Likewise.
32810 [IS_IN (librt)] (CDISABLE): Likewise.
32811 [IS_IN (librt)] (CDISABLE): Likewise.
32812 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32813 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32814 definition.
32815 (PSEUDO_END): Likewise.
32816 [IS_IN (libpthread)] (CENABLE): Likewise.
32817 [IS_IN (libpthread)] (CDISABLE): Likewise.
32818 [IS_IN (libc)] (CENABLE): Likewise.
32819 [IS_IN (libc)] (CENABLE): Likewise.
32820 [IS_IN (librt)] (CDISABLE): Likewise.
32821 [IS_IN (librt)] (CDISABLE): Likewise.
32822 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32823 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32824 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32825 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32826 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32827 definition.
32828 (PSEUDO_END): Likewise.
32829 [IS_IN (libpthread)] (CENABLE): Likewise.
32830 [IS_IN (libpthread)] (CDISABLE): Likewise.
32831 [IS_IN (libc)] (CENABLE): Likewise.
32832 [IS_IN (libc)] (CENABLE): Likewise.
32833 [IS_IN (librt)] (CDISABLE): Likewise.
32834 [IS_IN (librt)] (CDISABLE): Likewise.
32835 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32836 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32837 definition.
32838 (PSEUDO_END): Likewise.
32839 [IS_IN (libpthread)] (CENABLE): Likewise.
32840 [IS_IN (libpthread)] (CDISABLE): Likewise.
32841 [IS_IN (libc)] (CENABLE): Likewise.
32842 [IS_IN (libc)] (CENABLE): Likewise.
32843 [IS_IN (librt)] (CDISABLE): Likewise.
32844 [IS_IN (librt)] (CDISABLE): Likewise.
32845 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32846
32847 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32848
32849 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32850
32851 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32852
32853 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32854
32855 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32856
32857 [BZ #21982]
32858 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32859 middle and outer with size_t instead of int. Repleace %d and
32860 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32861 "MAX (outer, nchars - 64)" to support unsigned outer and
32862 nchars. Also exit loop when outer == 0.
32863
32864 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32865
32866 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32867 * include/signal.h (__sigsuspend_nocancel): Likewise.
32868 * include/time.h (__nanosleep_nocancel): Likewise.
32869 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32870 * login/utmp_file.c: Include non cancellable syscall header.
32871 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32872 prototype.
32873
32874 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32875
32876 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32877 .byte sequences with AVX512F instructions.
32878 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32879 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32880 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32881 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32882 Likewise.
32883 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32884 Likewise.
32885
32886 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32887 Steve Ellcey <sellcey@cavium.com>
32888
32889 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32890 Use PTR_REG macro in cmp instruction.
32891
32892 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32893
32894 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32895 Change the return type of the ifunc resolver to match the return
32896 type of the target function.
32897
32898 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32899
32900 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32901 (preadv64): Likewise.
32902 (pwrite64(: Likewise.
32903 (pwritev64): Likewise.
32904
32905 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32906 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32907 (LOAD_ARGS_0): Likewise.
32908 (LOAD_ARGS_1): Likewise.
32909 (LOAD_ARGS_2): Likewise.
32910 (LOAD_ARGS_3): Likewise.
32911 (LOAD_ARGS_4): Likewise.
32912 (LOAD_ARGS_5): Likewise.
32913 (LOAD_ARGS_6): Likewise.
32914 (LOAD_REGS_0): Likewise.
32915 (LOAD_REGS_1): Likewise.
32916 (LOAD_REGS_2): Likewise.
32917 (LOAD_REGS_3): Likewise.
32918 (LOAD_REGS_4): Likewise.
32919 (LOAD_REGS_5): Likewise.
32920 (LOAD_REGS_6): Likewise.
32921 (ASM_ARGS_0): Likewise.
32922 (ASM_ARGS_1): Likewise.
32923 (ASM_ARGS_2): Likewise.
32924 (ASM_ARGS_3): Likewise.
32925 (ASM_ARGS_4): Likewise.
32926 (ASM_ARGS_5): Likewise.
32927 (ASM_ARGS_6): Likewise.
32928 (LOAD_ARGS_TYPES_1): Likewise.
32929 (LOAD_ARGS_TYPES_2): Likewise.
32930 (LOAD_ARGS_TYPES_3): Likewise.
32931 (LOAD_ARGS_TYPES_4): Likewise.
32932 (LOAD_ARGS_TYPES_5): Likewise.
32933 (LOAD_ARGS_TYPES_6): Likewise.
32934 (LOAD_REGS_TYPES_1): Likewise.
32935 (LOAD_REGS_TYPES_2): Likewise.
32936 (LOAD_REGS_TYPES_3): Likewise.
32937 (LOAD_REGS_TYPES_4): Likewise.
32938 (LOAD_REGS_TYPES_5): Likewise.
32939 (LOAD_REGS_TYPES_6): Likewise.
32940 (TYPEFY): New define.
32941 (ARGIFY): Likewise.
32942 (internal_syscall0): Likewise.
32943 (internal_syscall1): Likewise.
32944 (internal_syscall2): Likewise.
32945 (internal_syscall3): Likewise.
32946 (internal_syscall4): Likewise.
32947 (internal_syscall5): Likewise.
32948 (internal_syscall6): Likewise.
32949 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32950 (INTERNAL_SYSCALL_NCS): Remove define.
32951 (internal_syscall1): Add define.
32952
32953 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32954
32955 * math/w_remainder_compat.c: Remove duplicate inclusion of
32956 math-svid-compat.h.
32957 * math/w_remainderf_compat.c: Likewise.
32958 * math/w_remainderl_compat.c: Likewise.
32959
32960 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32961
32962 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32963
32964 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32965
32966 [BZ #21684]
32967 * math/tgmath.h (__floating_type): Simplify definitions.
32968 (__real_integer_type): New macro.
32969 (__complex_integer_type): Likewise.
32970 (__expr_is_real): Likewise.
32971 (__tgmath_real_type_sub): Update comment to describe handling of
32972 complex types.
32973 (__tgmath_complex_type_sub): New macro.
32974 (__tgmath_complex_type): Likewise.
32975 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32976 (__TGMATH_CF128): Use __expr_is_real.
32977 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32978 __expr_is_real.
32979 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32980 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32981 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32982 integer types.
32983
32984 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32985
32986 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32987 macro.
32988 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32989 alias.
32990 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32991 Likewise.
32992
32993 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32994 nanosleep_not_cancel with __nanosleep_nocancel.
32995 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32996 (__nanosleep_nocancel): New macro.
32997 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32998 function.
32999 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
33000 macro.
33001 (__nanosleep_nocancel): New prototype.
33002
33003 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
33004 pause_not_cancel with __pause_nocancel.
33005 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
33006 (__pause_nocancel): New macro.
33007 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
33008 macro.
33009 (__pause_nocancel): New prototype.
33010 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
33011
33012 2017-08-22 Martin Sebor <msebor@redhat.com>
33013
33014 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
33015 to return a pointer to the same type as the target function.
33016
33017 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33018
33019 [BZ #18822]
33020 [BZ #21986]
33021 * include/printf.h (__printf_fphex): Add attribute_hidden.
33022 (__guess_grouping): New prototype.
33023 * stdio-common/printf_fp.c (__guess_grouping): Removed.
33024 * stdio-common/reg-printf.c (__register_printf_specifier): Add
33025 libc_hidden_proto and libc_hidden_def.
33026 * stdlib/strfmon_l.c (__guess_grouping): Removed.
33027 (__vstrfmon_l): Remove the third argument passed to
33028 __guess_grouping.
33029
33030 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33031
33032 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
33033 definition for issignaling that does not rely on __MATH_TG,
33034 since __MATH_TG uses __builtin_types_compatible_p, which is only
33035 available in C mode.
33036 (CFLAGS-test-math-issignaling.cc): New variable.
33037 * math/Makefile [CXX] (tests): Add test-math-issignaling.
33038 * math/test-math-issignaling.cc: New test for C++ implementation
33039 of type-generic issignaling.
33040 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
33041 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
33042 options of test-math-issignaling on powerpc64le.
33043
33044 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
33045
33046 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33047 building libc.a.
33048 (hidden_proto): Likewise.
33049 (hidden_tls_proto): Likewise.
33050 (__hidden_proto): Likewise.
33051
33052 2017-08-22 Florian Weimer <fweimer@redhat.com>
33053
33054 math: Statically link tests of internal functionality.
33055 * math/Makefile (tests): Remove atest-exp, atest-sincos,
33056 atest-exp2.
33057 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
33058 (gmp-objs): Remove assignment.
33059 (atest-exp, atest-sincos, atest-exp2): Remove targets.
33060
33061 2017-08-22 Joseph Myers <joseph@codesourcery.com>
33062
33063 [BZ #21987]
33064 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
33065 and copy to ...
33066 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
33067 ... here.
33068 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
33069 ... and here.
33070
33071 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
33072 variable definitions above inclusion of ../Rules.
33073
33074 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33075
33076 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
33077 case calling __builtin_unreachable.
33078
33079 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33080
33081 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
33082 __waitpid_nocancel.
33083 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
33084 (__waitpid_nocancel): New macro.
33085 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
33086 macro.
33087 (__waitpid_nocancel): Replace macro with a function.
33088 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
33089 function.
33090
33091 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
33092 __fcntl_nocancel.
33093 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
33094 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
33095
33096 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
33097 __writev_nocancel_nostatus.
33098 (write_call_graph): Likewise.
33099 (write_bb_counts): Likewise.
33100 * resolv/herror.c (herror): Likewise.
33101 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
33102 macro.
33103 (__writev_nocancel_nostatus): New macro.
33104 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
33105 Remove macro.
33106 (__writev_nocancel_nostatus): New function.
33107
33108 2017-08-21 Joseph Myers <joseph@codesourcery.com>
33109
33110 Revert:
33111 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33112
33113 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33114 building libc.a.
33115 (hidden_proto): Likewise.
33116 (hidden_tls_proto): Likewise.
33117 (__hidden_proto): Likewise.
33118
33119 [BZ #21973]
33120 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
33121 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33122 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33123 Likewise.
33124 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
33125 Likewise.
33126 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33127 Likewise.
33128 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33129 Likewise.
33130 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33131 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33132 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33133 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33134 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33135 GLIBC_2.0 sqrtl symbol.
33136
33137 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33138 [__USE_MISC] (_LIB_VERSION): Likewise.
33139 [__USE_MISC] (struct exception): Likewise.
33140 [__USE_MISC] (matherr): Likewise.
33141 [__USE_MISC] (DOMAIN): Likewise.
33142 [__USE_MISC] (SING): Likewise.
33143 [__USE_MISC] (OVERFLOW): Likewise.
33144 [__USE_MISC] (UNDERFLOW): Likewise.
33145 [__USE_MISC] (TLOSS): Likewise.
33146 [__USE_MISC] (PLOSS): Likewise.
33147 [__USE_MISC] (HUGE): Likewise.
33148 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33149 * math/math-svid-compat.h: New file.
33150 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33151 and matherrl.
33152 * include/math.h [!_ISOMAC] (__matherr): Remove.
33153 * manual/arith.texi (FP Exceptions): Do not document matherr.
33154 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33155 (tests-internal): New variable.
33156 (install-lib): Do not add libieee.a.
33157 (non-lib.a): Likewise.
33158 (extra-objs): Do not add libieee.a and ieee-math.o.
33159 (CPPFLAGS-s_lib_version.c): Remove variable.
33160 ($(objpfx)libieee.a): Remove rule.
33161 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33162 * math/ieee-math.c: Remove.
33163 * math/libm-test-support.c (matherr): Remove.
33164 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33165 and license notices. Include <math-svid-compat.h> and
33166 <shlib-compat.h>.
33167 (matherr): Undefine as macro. Use compat_symbol_reference.
33168 (_LIB_VERSION): Likewise.
33169 * math/test-matherr-2.c: New file.
33170 * math/test-matherr-3.c: Likewise.
33171 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33172 declaration.
33173 (__kernel_standard_f): Likewise.
33174 (__kernel_standard_l): Likewise.
33175 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33176 <math_private.h>. Include <math-svid-compat.h>.
33177 (_LIB_VERSION): Undefine as macro.
33178 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33179 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33180 [LIBM_SVID_COMPAT], use compat_symbol.
33181 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33182 <math_private.h>. Include <math-svid-compat.h>.
33183 (matherr): Undefine as macro.
33184 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33185 compat_symbol.
33186 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33187 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33188 compat_symbol_reference.
33189 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33190 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33191 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33192 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33193 (MATHERR_D): Remove declaration.
33194 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33195 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33196 [LIBM_BUILD] (pmatherrf): Likewise.
33197 [LIBM_BUILD] (pmatherr): Likewise.
33198 [LIBM_BUILD] (pmatherrl): Likewise.
33199 (DOMAIN): Likewise.
33200 (SING): Likewise.
33201 (OVERFLOW): Likewise.
33202 (UNDERFLOW): Likewise.
33203 (TLOSS): Likewise.
33204 (PLOSS): Likewise.
33205 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33206 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33207 compat_symbol.
33208 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33209 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33210 compat_symbol.
33211 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33212 * math/w_acos_compat.c: Likewise.
33213 * math/w_acosf_compat.c: Likewise.
33214 * math/w_acosh_compat.c: Likewise.
33215 * math/w_acoshf_compat.c: Likewise.
33216 * math/w_acoshl_compat.c: Likewise.
33217 * math/w_acosl_compat.c: Likewise.
33218 * math/w_asin_compat.c: Likewise.
33219 * math/w_asinf_compat.c: Likewise.
33220 * math/w_asinl_compat.c: Likewise.
33221 * math/w_atan2_compat.c: Likewise.
33222 * math/w_atan2f_compat.c: Likewise.
33223 * math/w_atan2l_compat.c: Likewise.
33224 * math/w_atanh_compat.c: Likewise.
33225 * math/w_atanhf_compat.c: Likewise.
33226 * math/w_atanhl_compat.c: Likewise.
33227 * math/w_cosh_compat.c: Likewise.
33228 * math/w_coshf_compat.c: Likewise.
33229 * math/w_coshl_compat.c: Likewise.
33230 * math/w_exp10_compat.c: Likewise.
33231 * math/w_exp10f_compat.c: Likewise.
33232 * math/w_exp10l_compat.c: Likewise.
33233 * math/w_exp2_compat.c: Likewise.
33234 * math/w_exp2f_compat.c: Likewise.
33235 * math/w_exp2l_compat.c: Likewise.
33236 * math/w_fmod_compat.c: Likewise.
33237 * math/w_fmodf_compat.c: Likewise.
33238 * math/w_fmodl_compat.c: Likewise.
33239 * math/w_hypot_compat.c: Likewise.
33240 * math/w_hypotf_compat.c: Likewise.
33241 * math/w_hypotl_compat.c: Likewise.
33242 * math/w_j0_compat.c: Likewise.
33243 * math/w_j0f_compat.c: Likewise.
33244 * math/w_j0l_compat.c: Likewise.
33245 * math/w_j1_compat.c: Likewise.
33246 * math/w_j1f_compat.c: Likewise.
33247 * math/w_j1l_compat.c: Likewise.
33248 * math/w_jn_compat.c: Likewise.
33249 * math/w_jnf_compat.c: Likewise.
33250 * math/w_jnl_compat.c: Likewise.
33251 * math/w_lgamma_main.c: Likewise.
33252 * math/w_lgamma_r_compat.c: Likewise.
33253 * math/w_lgammaf_main.c: Likewise.
33254 * math/w_lgammaf_r_compat.c: Likewise.
33255 * math/w_lgammal_main.c: Likewise.
33256 * math/w_lgammal_r_compat.c: Likewise.
33257 * math/w_log10_compat.c: Likewise.
33258 * math/w_log10f_compat.c: Likewise.
33259 * math/w_log10l_compat.c: Likewise.
33260 * math/w_log2_compat.c: Likewise.
33261 * math/w_log2f_compat.c: Likewise.
33262 * math/w_log2l_compat.c: Likewise.
33263 * math/w_log_compat.c: Likewise.
33264 * math/w_logf_compat.c: Likewise.
33265 * math/w_logl_compat.c: Likewise.
33266 * math/w_pow_compat.c: Likewise.
33267 * math/w_powf_compat.c: Likewise.
33268 * math/w_powl_compat.c: Likewise.
33269 * math/w_remainder_compat.c: Likewise.
33270 * math/w_remainderf_compat.c: Likewise.
33271 * math/w_remainderl_compat.c: Likewise.
33272 * math/w_scalb_compat.c: Likewise.
33273 * math/w_scalbf_compat.c: Likewise.
33274 * math/w_scalbl_compat.c: Likewise.
33275 * math/w_sinh_compat.c: Likewise.
33276 * math/w_sinhf_compat.c: Likewise.
33277 * math/w_sinhl_compat.c: Likewise.
33278 * math/w_sqrt_compat.c: Likewise.
33279 * math/w_sqrtf_compat.c: Likewise.
33280 * math/w_sqrtl_compat.c: Likewise.
33281 * math/w_tgamma_compat.c: Likewise.
33282 * math/w_tgammaf_compat.c: Likewise.
33283 * math/w_tgammal_compat.c: Likewise.
33284 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33285 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33286 * sysdeps/ieee754/k_standard.c: Likewise.
33287 * sysdeps/ieee754/k_standardf.c: Likewise.
33288 * sysdeps/ieee754/k_standardl.c: Likewise.
33289 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33290 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33291 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33292 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33293 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33294 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33295 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33296 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33297 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33299 Likewise.
33300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33301 Likewise.
33302 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33303 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33304 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33305 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33306
33307 2017-08-21 Florian Weimer <fweimer@redhat.com>
33308
33309 [BZ #21864]
33310 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33311 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33312 Move before inclusion of ../Rules.
33313
33314 2017-08-21 Florian Weimer <fweimer@redhat.com>
33315
33316 [BZ #21972]
33317 * assert/assert.h (assert): Use static_cast (bool) for C++.
33318 Use the ternary operator in the warning branch for GNU C.
33319 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33320 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33321 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33322 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33323 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33324
33325 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33326
33327 [BZ #18822]
33328 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33329 (__syscall_clock_gettime): Add attribute_hidden.
33330 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33331 (__start_context): Likewise.
33332
33333 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33334
33335 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33336 building libc.a.
33337 (hidden_proto): Likewise.
33338 (hidden_tls_proto): Likewise.
33339 (__hidden_proto): Likewise.
33340
33341 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33342
33343 * include/libc-symbols.h (attribute_hidden): Enable hidden
33344 visibility in libc.a compiled with PIE.
33345
33346 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33347
33348 [BZ #18822]
33349 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33350 Add attribute_hidden.
33351
33352 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33353
33354 [BZ #21864]
33355 * Makerules (all-nonlib): Add $(others-extras).
33356 * catgets/Makefile (others-extras): New.
33357 * elf/Makefile (others-extras): Likewise.
33358 * nss/Makefile (others-extras): Likewise.
33359
33360 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33361
33362 [BZ #18822]
33363 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33364 * elf/dl-open.c: Include <libc-internal.h>.
33365 (__libc_multiple_libcs): Removed.
33366 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33367 <hp-timing.h>.
33368 * include/libc-internal.h (__libc_multiple_libcs): New.
33369 * misc/sbrk.c: Include <libc-internal.h>.
33370 (__libc_multiple_libcs): Removed.
33371
33372 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33373
33374 [BZ #18822]
33375 * grp/initgroups.c (__nss_group_database): Removed.
33376 (__nss_initgroups_database): Likewise.
33377 * nscd/gai.c (__nss_hosts_database): Likewise.
33378 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33379 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33380 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33381 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33382 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33383 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33384 attribute_hidden.
33385 * nss/nsswitch.c (__nss_database_custom): Define only if
33386 USE_NSCD is defined.
33387 (__nss_configure_lookup): Use __nss_database_custom only if
33388 USE_NSCD is defined.
33389 * nss/nsswitch.h (__nss_database_custom): Declare only if
33390 USE_NSCD is defined. Add attribute_hidden.
33391 (__nss_setent): Add attribute_hidden.
33392 (__nss_endent): Likewise.
33393 (__nss_getent_r): Likewise.
33394 (__nss_getent): Likewise.
33395 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33396
33397 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33398
33399 [BZ #18822]
33400 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33401 libc_hidden_proto and libc_hidden_def.
33402
33403 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33404
33405 [BZ #18822]
33406 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33407 Add libc_hidden_proto.
33408 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33409 Add libc_hidden_def.
33410
33411 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33412
33413 [BZ #21974]
33414 * gmon/Makefile (routines): Remove bb_init_func and
33415 bb_exit_func.
33416 (elide-routines.os): Removed.
33417 * gmon/bb_exit_func.c: Likewise.
33418 * gmon/bb_init_func.c: Likewise.
33419 * include/sys/gmon.h (__bb): Likewise.
33420 (__bb_init_func): Likewise.
33421 (__bb_exit_func): Likewise.
33422 * sysdeps/alpha/bb_init_func.S: Likewise.
33423
33424 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33425
33426 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33427 * include/setjmp.h (____longjmp_chk): Here. Add
33428 attribute_hidden.
33429
33430 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33431
33432 [BZ #18822]
33433 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33434 attribute_hidden.
33435 (__strspn_sse2): Likewise.
33436
33437 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33438
33439 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33440 (close_not_cancel_no_status): Likewise.
33441 (__close_nocancel): New macro.
33442 (__close_nocancel_nostatus): Likewise.
33443 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33444 macro.
33445 (close_not_cancel): Likewise.
33446 (close_not_cancel_no_status): Likewise.
33447 (__close_nocancel): New prototype.
33448 (__close_nocancel_nostatus): New function.
33449 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33450 * catgets/open_catalog.c (__open_catalog): Replace
33451 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33452 * gmon/gmon.c (write_gmon): Likewise.
33453 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33454 * intl/loadmsgcat.c (close): Likewise.
33455 * io/ftw.c (open_dir_stream): Likewise.
33456 (ftw_startup): Likewise.
33457 * libio/fileops.c (_IO_file_open): Likewise.
33458 (_IO_file_close_mmap): Likewise.
33459 (_IO_file_close): Likewise.
33460 * libio/iopopen.c (_IO_dup2): Likewise.
33461 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33462 * locale/loadlocale.c (_nl_load_locale): Likewise.
33463 * login/utmp_file.c (pututline_file): Likewise.
33464 (endutent_file): Likewise.
33465 * misc/daemon.c (daemon): Likewise.
33466 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33467 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33468 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33469 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33470 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33471 * nscd/nscd_helper.c (open_socket): Likewise.
33472 (__nscd_open_socket): Likewise.
33473 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33474 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33475 (__nscd_innetgr): Likewise.
33476 * nss/nss_db/db-open.c (internal_setent): Likewise.
33477 * resolv/res-close.c (__res_iclose): Likewise.
33478 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33479 * sysdeps/posix/closedir.c (__closedir): Likewise.
33480 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33481 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33482 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33483 (opendir_tail): Likewise.
33484 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33485 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33486 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33487 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33488 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33489 (gethostid): Likewise.
33490 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33491 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33492 Likewise.
33493 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33494 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33495 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33496 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33497 Likewise.
33498 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33499 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33500 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33501 Likewise.
33502 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33503 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33504 Likewise.
33505 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33506 Likewise.
33507 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33508 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33509 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33510 __close_nocancel.
33511
33512 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33513 (openat_not_cancel_3): Likewise.
33514 (openat64_not_cancel_3): Likewise).
33515 (openat_not_cancel_3): Likewise).
33516 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33517 macro.
33518 (openat_not_cancel_3): Likewise.
33519 (openat64_not_cancel): Likewise.
33520 (openat64_not_cancel_3): Likewise.
33521 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33522 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33523 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33524 __open{64}_nocancel.
33525 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33526 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33527 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33528
33529 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33530
33531 [BZ #18822]
33532 * include/argz.h (__argz_create_sep): New function prototype.
33533 (__argz_append): Likewise.
33534 (__argz_add): Likewise.
33535 (__argz_add_sep): Likewise.
33536 (__argz_delete): Likewise.
33537 (__argz_insert): Likewise.
33538 (__argz_replace): Likewise.
33539 * string/argz.h (__argz_create_sep): Removed.
33540 (__argz_append): Likewise.
33541 (__argz_add): Likewise.
33542 (__argz_add_sep): Likewise.
33543 (__argz_delete): Likewise.
33544 (__argz_insert): Likewise.
33545 (__argz_replace): Likewise.
33546
33547 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33548
33549 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33550 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33551 (GNU_PROPERTY_STACK_SIZE): Likewie.
33552 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33553 (GNU_PROPERTY_LOPROC): Likewise.
33554 (GNU_PROPERTY_HIPROC): Likewise.
33555 (GNU_PROPERTY_LOUSER): Likewise.
33556 (GNU_PROPERTY_HIUSER): Likewise.
33557 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33558 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33559 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33560 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33561 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33562 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33563 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33564 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33565 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33566 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33567 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33568 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33569 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33570 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33571 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33572 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33573 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33574 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33575 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33576 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33577 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33578 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33579 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33580
33581 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33582
33583 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33584 in C++ mode.
33585
33586 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33587
33588 [BZ #21930]
33589 * math/math.h (isinf): Check if in C or C++ mode before using
33590 __builtin_types_compatible_p, since this is a C mode feature.
33591
33592 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33593
33594 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33595 (__write_nocancel): New macro.
33596 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33597 Rewrite as a function prototype.
33598 (write_not_cancel): Remove macro.
33599 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33600 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33601 (write_gmon): Likewise.
33602 * libio/fileops.c (_IO_new_file_write): Likewise.
33603 * login/utmp_file.c (pututline_file): Likewise.
33604 (updwtmp_file): Likewise.
33605 * stdio-common/psiginfo.c (psiginfo): Likewise.
33606 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33607 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33608 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33609 Likewise.
33610 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33611 Likewise.
33612
33613 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33614 (__read_nocancel): New macro.
33615 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33616 __read_nocancel.
33617 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33618 macro.
33619 (__read_nocancel): New prototype.
33620 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33621 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33622 with __read_nocancel.
33623 * intl/loadmsgcat.c (read): Likewise.
33624 * libio/fileops.c (_IO_file_read): Likewise.
33625 * locale/loadlocale.c (_nl_load_locale): Likewise.
33626 * login/utmp_file.c (getutent_r_file): Likewise.
33627 (internal_getut_r): Likewise.
33628 (getutline_r_file): Likewise.
33629 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33630 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33631 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33632 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33633 Likewise.
33634 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33635 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33636 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33637 Likewise.
33638 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33639 Likewise.
33640 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33641 Likewise.
33642 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33643 Likewise.
33644 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33645
33646 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33647
33648 [BZ #21966]
33649 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33650 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33651 usable.
33652
33653 2017-08-17 DJ Delorie <dj@redhat.com>
33654
33655 * bug17079.c: Update to new test harness.
33656 * test-digits-dots.c: Likewise.
33657 * test-netdb.c: Likewise.
33658 * tst-field.c: Likewise.
33659 * tst-nss-getpwent.c: Likewise.
33660 * tst-nss-static.c: Likewise.
33661 * tst-nss-test1.c: Likewise.
33662 * tst-nss-test2.c: Likewise.
33663 * tst-nss-test3.c: Likewise.
33664 * tst-nss-test4.c: Likewise.
33665 * tst-nss-test5.c: Likewise.
33666
33667 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33668
33669 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33670 (open_not_cancel_2): Likewise.
33671 (open_nocancel): New macro.
33672 (open64_nocancel): Likewise.
33673 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33674 (open_not_cancel_2): Likewise.
33675 (__open_nocancel): New prototype.
33676 (__open64_nocancel): Likewise.
33677 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33678 __open_nocancel.
33679 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33680 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33681 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33682 with __open_nocancel.
33683 * csu/check_fds.c (check_one_fd): Likewise.
33684 * gmon/gmon.c (write_gmon): Likewise.
33685 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33686 * intl/loadmsgcat.c (open): Likewise.
33687 * libio/fileops.c (_IO_file_open): Likewise.
33688 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33689 * locale/loadlocale.c (_nl_load_locale): Likewise.
33690 * login/utmp_file.c (setutent_file): Likewise.
33691 * misc/daemon.c (daemon): Likewise.
33692 * nss/nss_db/db-open.c (internal_setent): Likewise.
33693 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33694 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33695 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33696 (__opendir): Likewise.
33697 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33698 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33699 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33700 (gethostid): Likewise.
33701 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33702 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33703 Likewise.
33704 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33705 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33706 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33707 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33708 Likewise.
33709 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33710 Likewise.
33711 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33712 Likewise.
33713 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33714 Likewise.
33715 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33716 Likewise.
33717 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33718 Likewise.
33719 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33720 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33721
33722 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33723
33724 * benchtests/bench-skeleton.c (main): Add support for
33725 latency benchmarking.
33726 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33727
33728 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33729
33730 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33731 the startup object.
33732
33733 2017-08-17 Florian Weimer <fweimer@redhat.com>
33734
33735 * include/sys/socket.h (__opensock): Remove internal_function.
33736 * socket/opensock.c (__opensock): Likewise.
33737 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33738
33739 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33740
33741 [BZ #21944]
33742 * signal/bits/types/__sigval_t.h: New file.
33743 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33744 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33745 and define sigval_t using __sigval_t.
33746 * include/bits/types/__sigval_t.h: New file.
33747 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33748 instead of <bits/types/__sigval_t.h>.
33749 (struct sigevent): Use __sigval_t instead of sigval_t.
33750 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33751 instead of <bits/types/__sigval_t.h>.
33752 (siginfo_t): Use __sigval_t instead of sigval_t.
33753 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33754 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33755 (struct sigevent): Use __sigval_t instead of sigval_t.
33756 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33757 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33758 (siginfo_t): Use __sigval_t instead of sigval_t.
33759 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33760
33761 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33762
33763 * NEWS: Remove "[Add new features here]" for 2.27.
33764
33765 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33766
33767 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33768 libc.so.
33769
33770 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33771
33772 * NEWS: Mention x86-64 FMA optimization.
33773
33774 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33775
33776 [BZ #21912]
33777 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33778 Add e_expf-fma.
33779 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33780 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33781 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33782
33783 2017-08-16 Andreas Schwab <schwab@suse.de>
33784
33785 [BZ #16750]
33786 CVE-2009-5064
33787 * elf/ldd.bash.in: Never run file directly.
33788
33789 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33790
33791 [BZ #21955]
33792 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33793 (L(SP_INF_0)): Likewise.
33794
33795 2017-08-15 Florian Weimer <fweimer@redhat.com>
33796
33797 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33798 run-built-tests.
33799
33800 2017-08-15 Florian Weimer <fweimer@redhat.com>
33801
33802 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33803 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33804 BROKEN_THREAD_SIGNALS code.
33805 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33806 request_list): Remove caller_pid member used for
33807 BROKEN_THREAD_SIGNALS.
33808 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33809 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33810 Remove BROKEN_THREAD_SIGNALS support.
33811 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33812 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33813
33814 2017-08-15 Florian Weimer <fweimer@redhat.com>
33815
33816 * gmon/Makefile (tests): Add tst-gmon.
33817 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33818 Set.
33819 (tests-special): Add tst-gmon-prof.out.
33820 (tst-gmon.out): Depend on clean-tst-gmon-data.
33821 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33822 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33823 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33824 startup object.
33825 * aclocal.m4 (GPROF): Set and substitute.
33826 * config.amke.in (GPROF): Set.
33827 * configure: Regenerate.
33828
33829 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33830
33831 * elf/elf.h A (NT_PPC_TAR): New macro.
33832 (NT_PPC_PPR): Likewise.
33833 (NT_PPC_DSCR): Likewise.
33834 (NT_PPC_EBB): Likewise.
33835 (NT_PPC_PMU): Likewise.
33836 (NT_PPC_TM_CGPR): Likewise.
33837 (NT_PPC_TM_CFPR): Likewise.
33838 (NT_PPC_TM_CVMX): Likewise.
33839 (NT_PPC_TM_CVSX): Likewise.
33840 (NT_PPC_TM_SPR): Likewise.
33841 (NT_PPC_TM_CTAR): Likewise.
33842 (NT_PPC_TM_CPPR): Likewise.
33843 (NT_PPC_TM_CDSCR): Likewise.
33844
33845 2017-08-15 Florian Weimer <fweimer@redhat.com>
33846
33847 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33848 regparm (2) instead of internal_function.
33849 (_MCOUNT_DECL): Adjust.
33850
33851 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33852
33853 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33854 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33855
33856 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33857
33858 * conform/data/sys/wait.h-data (si_value): Do not expect for
33859 XPG42.
33860
33861 2017-08-14 Florian Weimer <fweimer@redhat.com>
33862
33863 [BZ #21962]
33864 NSS: Create stubs for accidentally exported lookup functions.
33865 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33866 Remove declaration.
33867 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33868 (ether_hostton): Call __nss_ethers_lookup2 instead.
33869 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33870 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33871 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33872 (setup): Call __nss_netgroup_lookup2 instead.
33873 * nss/Makefile (routines): Add compat-lookup.
33874 * nss/Versions (GLIBC_2.27): Add symbol version.
33875 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33876 (DB_COMPAT_FCT): Remove.
33877 * nss/compat-lookup.c: New file.
33878 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33879 from databases.def.
33880 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33881 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33882 (netname2user): Call __nss_publickey_lookup2 instead.
33883 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33884 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33885 instead.
33886
33887 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33888 Sergei Trofimovich <slyfox@inbox.ru>
33889
33890 [BZ #21908]
33891 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33892 Rename to MMAP2_PAGE_UNIT.
33893 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33894 __OFF_T_MATCHES_OFF64_T is not defined.
33895 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33896 uint64_t.
33897 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33898 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33899
33900 2017-08-14 Florian Weimer <fweimer@redhat.com>
33901
33902 i386: Do not set internal_function.
33903 * config.h.in (USE_REGPARMS, internal_function): Remove.
33904 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33905 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33906
33907 2017-08-14 Florian Weimer <fweimer@redhat.com>
33908
33909 * elf/dl-init.c (_dl_init): Remove internal_function.
33910 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33911 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33912
33913 2017-08-14 Florian Weimer <fweimer@redhat.com>
33914
33915 * elf/rtld.c (_dl_start): Remove internal_function.
33916 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33917 _dl_start.
33918
33919 2017-08-14 Florian Weimer <fweimer@redhat.com>
33920
33921 * elf/dl-fini.c (_dl_fini): Remove internal_function
33922 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33923
33924 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33925
33926 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33927 (bit_cpu_SHSTK): Likewise.
33928 (index_cpu_IBT): Likewise.
33929 (index_cpu_SHSTK): Likewise.
33930 (reg_IBT): Likewise.
33931 (reg_SHSTK): Likewise.
33932 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33933 Handle index_cpu_IBT and index_cpu_SHSTK.
33934
33935 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33936
33937 [BZ #19982]
33938 * po/fr.po: Fix spelling mistake.
33939
33940 2017-08-13 Florian Weimer <fweimer@redhat.com>
33941
33942 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33943 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33944 (_dl_catch_error, _dl_receive_error): Likewise.
33945 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33946 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33947 (_dl_deallocate_tls): Likewise.
33948 * include/dlfcn.h (_dl_addr): Likewise.
33949 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33950 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33951 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33952 Likewise.
33953
33954 2017-08-13 Florian Weimer <fweimer@redhat.com>
33955
33956 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33957 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33958 internal_function.
33959 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33960
33961 2017-08-13 Florian Weimer <fweimer@redhat.com>
33962
33963 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33964 internal_function.
33965 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33966 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33967 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33968 internal_function from _dl_make_stack_executable_hook member.
33969 (_dl_make_stack_executable): Remove internal_function.
33970 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33971 Likewise.
33972 * sysdeps/unix/sysv/linux/dl-execstack.c
33973 (_dl_make_stack_executable): Likewise.
33974
33975 2017-08-13 Florian Weimer <fweimer@redhat.com>
33976
33977 * sysdeps/unix/sysv/linux/netlinkaccess.h
33978 (__netlink_assert_response): Remove internal_function.
33979 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33980 (__netlink_assert_response): Likewise.
33981
33982 2017-08-13 Florian Weimer <fweimer@redhat.com>
33983
33984 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33985 internal_function.
33986 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33987
33988 2017-08-13 Florian Weimer <fweimer@redhat.com>
33989
33990 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33991 internal_function.
33992 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33993 * inet/netgroup.h (__internal_setnetgrent)
33994 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33995 * inet/getnetgrent_r.c (__internal_setnetgrent)
33996 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33997 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33998 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33999 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
34000 * nss/nsswitch.h (db_lookup_function): Likewise.
34001
34002 2017-08-13 Florian Weimer <fweimer@redhat.com>
34003
34004 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
34005 Remove internal_function.
34006 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
34007 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
34008 message argument on the stack.
34009 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
34010 Likeweise.
34011
34012 2017-08-12 Mike FABIAN <mfabian@redhat.com>
34013
34014 Adapt test case data to the changes in the thousands
34015 separators.
34016
34017 [BZ #20756]
34018 * localedata/tst-langinfo.sh: Adapt test case data.
34019 * stdlib/tst-strfmon_l.c: Likewise.
34020 * stdlib/tst-strtod4.c: Likewise.
34021 * stdlib/tst-strtod5i.c: Likewise.
34022
34023 2017-08-11 Florian Weimer <fweimer@redhat.com>
34024
34025 [BZ #21242]
34026 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
34027 Suppress pedantic warning resulting from statement expression.
34028 (__ASSERT_FUNCTION): Add missing __extension__.
34029
34030 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
34031
34032 * benchtests/bench-memmove-large.c: Print output in JSON
34033 format.
34034 * benchtests/bench-memmove.c: Likewise.
34035
34036 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
34037 * benchtests/bench-memchr.c (do_one_test): Likewise.
34038 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
34039 * benchtests/bench-memcpy.c (do_one_test): Likewise.
34040 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
34041 * benchtests/bench-memmove.c (do_one_test): Likewise.
34042 * benchtests/bench-memset-large.c (do_one_test): Likewise.
34043 * benchtests/bench-memset.c (do_one_test): Likewise.
34044 * benchtests/bench-string.h (test_init): Remove memsets.
34045
34046 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34047
34048 * manual/lang.texi
34049 (Computing the Width of an Integer Data Type): Rename section to
34050 "Width of an Integer Type". Remove inaccurate statement regarding
34051 lack of C language facilities for determining width of integer
34052 types, and reorder content to improve flow and context of
34053 discussion.
34054
34055 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
34056
34057 * lang.texi (va_copy): Change standard from ISO to C99.
34058 (__va_copy): Add standard and header annotation.
34059 Update description for clarity of origins and current use.
34060
34061 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
34062
34063 [BZ #21941]
34064 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
34065 xssqrtqp requires operands to be in Vector Registers
34066 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
34067 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
34068 (__ieee754_sqrtf128): Likewise.
34069
34070 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
34071
34072 * sysdeps/aarch64/memcmp.S (memcmp):
34073 Rewrite of optimized memcmp.
34074
34075 2017-08-10 Florian Weimer <fweimer@redhat.com>
34076
34077 Introduce ld.so exceptions.
34078 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
34079 (_dl_exception_create, _dl_exception_create_format)
34080 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
34081 (_dl_catch_exception): Declare.
34082 (_dl_catch_error): Update comment.
34083 * elf/dl-error-skeleton.c (struct catch): Replace objname,
34084 errstring, malloced members with exception member.
34085 (_dl_out_of_memory): Remove.
34086 (fatal_error): New function, extracted from _dl_signal_error.
34087 (_dl_signal_exception, _dl_signal_cexception): New functions.
34088 (_dl_signal_error): Call _dl_exception_create to allocate an
34089 exception object.
34090 (_dl_catch_exception): New function, based on _dl_catch_error.
34091 (_dl_catch_error): Implement using _dl_catch_exception.
34092 * elf/dl-exception.c: New file.
34093 * elf/Makefile (dl-routines): Add dl-exception.
34094 (elide-routines.os): Likewise.
34095 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
34096 _dl_exception_create_format, _dl_exception_free.
34097 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
34098 _dl_signal_exception.
34099 * elf/dl-lookup.c (make_string): Remove.
34100 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
34101 _dl_signal_cexception, _dl_exception_free.
34102 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
34103 _dl_signal_exception.
34104 * elf/dl-sym.c (do_sym): Likewise.
34105 * elf/dl-version.c (make_string): Remove.
34106 (match_symbol): Use _dl_exception_create_format,
34107 _dl_signal_cexception, _dl_exception_free.
34108 (_dl_check_map_versions): Likewise.
34109 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
34110 _dl_catch_exception.
34111 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
34112 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
34113 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
34114 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
34115 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
34116 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
34117 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
34118 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
34119 Likewise.
34120 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
34121 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
34122 (ld.so): Likewise.
34123 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
34124 (ld.so): Likewise.
34125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34126 Likewise.
34127 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34128 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34129 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34130 Likewise.
34131 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34132 Likewise.
34133 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34134
34135 2017-08-10 Florian Weimer <fweimer@redhat.com>
34136
34137 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34138 attribute_hidden, internal_function.
34139 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34140 internal_function.
34141
34142 2017-08-10 Florian Weimer <fweimer@redhat.com>
34143
34144 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34145 function which calls __builtin_unreachable.
34146
34147 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34148
34149 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34150 Indian monetary formatting
34151 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34152 test cases.
34153
34154 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34155
34156 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34157 Fix typo in comment.
34158
34159 [BZ #21928]
34160 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34161 PTRACE_SEIZE_DEVEL): Remove.
34162 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34163 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34164 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34165 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34166 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34167
34168 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34169
34170 * posix/bits/types.h (__qaddr_t): Remove.
34171
34172 [BZ #21457]
34173 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34174 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34175 __glibc_reserved1.
34176 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34177 (ucontext_t): Use __ctx with uc_flags.
34178 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34179 (__ctxt): Likewise.
34180 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34181 __glibc_reserved1.
34182 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34183 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34184 __glibc_reserved1.
34185 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34186 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34187 __glibc_reserved1.
34188 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34189 macro.
34190 (ucontext_t): Use __ctx with uc_flags.
34191 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34192 (ucontext_t): Use __ctx with uc_flags.
34193 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34194 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34195 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34196 (ucontext_t): Use __ctx with uc_flags.
34197 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34198 undefine further down.
34199 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34200 __glibc_reserved1.
34201 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34202 undefine further down.
34203 (ucontext_t): Use __ctx with uc_flags.
34204 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34205 undefine further down.
34206 (ucontext_t): Use __ctx with uc_flags.
34207 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34208 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34209 Rename uc_pad to __glibc_reserved1.
34210 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34211 undefine further down.
34212 (ucontext_t): Use __ctx with uc_flags.
34213 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34214 further down.
34215 (ucontext_t): Use __ctx with uc_flags.
34216 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34217 __ctx with uc_flags.
34218 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34219 (ucontext_t): Use __ctx with uc_flags.
34220 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34221 __ctx with uc_flags.
34222
34223 2017-08-09 Florian Weimer <fweimer@redhat.com>
34224
34225 [BZ #21932]
34226 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34227 before early return.
34228
34229 2017-08-09 Andreas Schwab <schwab@suse.de>
34230
34231 [BZ #21041]
34232 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34233 renamed alias.
34234
34235 [BZ #21041]
34236 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34237 tst-compat-forwarder.
34238 (modules-names): Add tst-compat-forwarder-mod.
34239 ($(objpfx)tst-compat-forwarder): Depend on
34240 $(objpfx)tst-compat-forwarder-mod.so.
34241 * nptl/tst-compat-forwarder.c: New file.
34242 * nptl/tst-compat-forwarder-mod.c: New file.
34243
34244 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34245
34246 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34247 comments.
34248
34249 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34250 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34251 memcpy_falkor.
34252 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34253 Bump.
34254 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34255 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34256 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34257 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34258 Add falkor.
34259 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34260 New macro.
34261
34262 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34263
34264 [BZ #759]
34265 * manual/setjmp.texi (getcontex): Document uc_stack value
34266 compatibility differences.
34267
34268 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34269
34270 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34271 (old_malloc_hook): Likewise.
34272 (old_memalign_hook): Likewise.
34273 (old_realloc_hook): Likewise.
34274 (struct hdr): Likewise.
34275 (flood): Likewise.
34276 (freehook): Likewise.
34277 (mallochook): Likewise.
34278 (memalignhook): Likewise.
34279 (reallochook): Likewise.
34280 (mprobe): Likewise.
34281 * malloc/mtrace.c (mallwatch): Likewise.
34282 (tr_old_free_hook): Likewise.
34283 (tr_old_malloc_hook): Likewise.
34284 (tr_old_realloc_hook): Likewise.
34285 (tr_old_memalign_hook): Likewise.
34286 (tr_where): Likewise.
34287 (lock_and_info): Likewise.
34288 (tr_freehook): Likewise.
34289 (tr_mallochook): Likewise.
34290 (tr_reallochook): Likewise.
34291 (tr_memalignhook): Likewise.
34292 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34293 * misc/mmap.c (__mmap): Likewise.
34294 * misc/mmap64.c (__mmap64): Likewise.
34295 * misc/mprotect.c (__mprotect): Likewise.
34296 * misc/msync.c (msync): Likewise.
34297 * misc/munmap.c (__munmap): Likewise.
34298 * posix/posix_madvise.c (posix_madvise): Likewise.
34299 * socket/send.c (__send): Likewise.
34300 * socket/sendto.c (__sendto): Likewise.
34301 * socket/setsockopt.c (__setsockopt): Likewise.
34302 * string/memcmp.c (__ptr_t): Remove macro.
34303 (MEMCMP): Use void * instead of ptr_t.
34304 * string/memrchr.c (__ptr_t): Remove macro.
34305 (__memrchr): Use void * instead of ptr_t.
34306 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34307 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34308 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34309 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34310 * sysdeps/mach/msync.c (msync): Likewise.
34311 * sysdeps/mach/munmap.c (__munmap): Likewise.
34312 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34313 Likewise.
34314 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34315 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34316 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34317 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34318 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34319 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34320 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34321 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34322 Likewise.
34323 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34324 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34325 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34326 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34327 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34328 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34329 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34330 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34331 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34332 Likewise.
34333 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34334 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34335 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34336 (MEMCMP): Use void * instead of ptr_t.
34337 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34338 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34339
34340 2017-08-08 Florian Weimer <fweimer@redhat.com>
34341
34342 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34343 return statement.
34344
34345 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34346
34347 [BZ #21913]
34348 * csu/libc-tls.c: Include <startup.h> first.
34349 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34350 * elf/dl-tunables.c: Include <startup.h> first.
34351 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34352 * sysdeps/generic/startup.h: New file.
34353 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34354 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34355 (I386_USE_SYSENTER): New. Defined to 0.
34356
34357 2017-08-08 Andreas Schwab <schwab@suse.de>
34358
34359 [BZ #21041]
34360 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34361 * nptl/pt-system.c (system): Likewise.
34362
34363 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34364
34365 [BZ #21780]
34366 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34367 EOPNOTSUPP.
34368 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34369 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34370 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34371 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34372 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34373 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34374 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34375
34376 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34377
34378 [BZ #21899]
34379 * bits/sigaction.h (struct sigaction): Define sa_handler and
34380 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34381 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34382 [__USE_XOPEN_EXTENDED].
34383 (SA_RESTART): Likewise.
34384 (SA_NODEFER): Likewise.
34385 (SA_RESETHAND): Likewise.
34386 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34387 (struct sigaction): Define sa_handler and sa_sigaction using union
34388 also for [__USE_XOPEN_EXTENDED].
34389 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34390 [__USE_XOPEN_EXTENDED].
34391 (SA_RESTART): Likewise.
34392 (SA_NODEFER): Likewise.
34393 (SA_RESETHAND): Likewise.
34394 * sysdeps/unix/sysv/linux/bits/sigaction.h
34395 (struct sigaction): Define sa_handler and sa_sigaction using union
34396 also for [__USE_XOPEN_EXTENDED].
34397 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34398 [__USE_XOPEN_EXTENDED].
34399 (SA_RESTART): Likewise.
34400 (SA_NODEFER): Likewise.
34401 (SA_RESETHAND): Likewise.
34402 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34403 (struct sigaction): Define sa_handler and sa_sigaction using union
34404 also for [__USE_XOPEN_EXTENDED].
34405 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34406 [__USE_XOPEN_EXTENDED].
34407 (SA_RESTART): Likewise.
34408 (SA_NODEFER): Likewise.
34409 (SA_RESETHAND): Likewise.
34410 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34411 (struct sigaction): Define sa_handler and sa_sigaction using union
34412 also for [__USE_XOPEN_EXTENDED].
34413 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34414 [__USE_XOPEN_EXTENDED].
34415 (SA_RESTART): Likewise.
34416 (SA_NODEFER): Likewise.
34417 (SA_RESETHAND): Likewise.
34418 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34419 (struct sigaction): Define sa_handler and sa_sigaction using union
34420 also for [__USE_XOPEN_EXTENDED].
34421 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34422 [__USE_XOPEN_EXTENDED].
34423 (SA_RESTART): Likewise.
34424 (SA_NODEFER): Likewise.
34425 (SA_RESETHAND): Likewise.
34426 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34427 (struct sigaction): Define sa_handler and sa_sigaction using union
34428 also for [__USE_XOPEN_EXTENDED].
34429 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34430 [__USE_XOPEN_EXTENDED].
34431 (SA_RESTART): Likewise.
34432 (SA_NODEFER): Likewise.
34433 (SA_RESETHAND): Likewise.
34434 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34435 (struct sigaction): Define sa_handler and sa_sigaction using union
34436 also for [__USE_XOPEN_EXTENDED].
34437 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34438 [__USE_XOPEN_EXTENDED].
34439 (SA_RESTART): Likewise.
34440 (SA_NODEFER): Likewise. Define directly rather than as alias.
34441 (SA_RESETHAND): Likewise.
34442 (SA_INTERRUPT): Define only for [__USE_MISC].
34443 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34444 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34445 [__USE_MISC].
34446 (SA_STACK): Define only for [__USE_MISC].
34447 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34448 (struct sigaction): Define sa_handler and sa_sigaction using union
34449 also for [__USE_XOPEN_EXTENDED].
34450 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34451 [__USE_XOPEN_EXTENDED].
34452 (SA_RESTART): Likewise.
34453 (SA_NODEFER): Likewise.
34454 (SA_RESETHAND): Likewise.
34455 (SA_NOPTRACE): Define only for [__USE_MISC].
34456
34457 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34458 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34459 (struct catalog_info): Likewise.
34460 * inet/htontest.c (lo): Likewise.
34461 (foo): Likewise.
34462 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34463 * inet/inet_net.c (inet_network): Likewise.
34464 * inet/inet_netof.c (inet_netof): Likewise.
34465 * inet/rcmd.c (__ivaliduser): Likewise.
34466 (iruserok): Likewise.
34467 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34468 * locale/programs/locale-spec.c (locale_special): Likewise.
34469 * nis/nis_findserv.c (struct findserv_req): Likewise.
34470 (__nis_findfastest_with_timeout): Likewise.
34471 * nss/test-netdb.c (test_network): Likewise.
34472 * resolv/inet_neta.c (inet_neta): Likewise.
34473 * resolv/ns_date.c (ns_datetosecs): Likewise.
34474 (SECS_PER_DAY): Likewise.
34475 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34476 Likewise.
34477 * resolv/res_comp.c (__putlong): Likewise.
34478 (__putshort): Likewise.
34479 (_getlong): Likewise.
34480 (_getshort): Likewise.
34481 * resolv/res_debug.c (p_time): Likewise.
34482 (precsize_ntoa): Likewise.
34483 (precsize_aton): Likewise.
34484 (latlon2ul): Likewise.
34485 (loc_aton): Likewise.
34486 (loc_ntoa): Likewise.
34487 * resolv/res_hconf.c (struct netaddr): Likewise.
34488 (_res_hconf_reorder_addrs): Likewise.
34489 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34490 (clnttcp_control): Likewise.
34491 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34492 (clntudp_control): Likewise.
34493 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34494 (clntunix_control): Likewise.
34495 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34496 * sunrpc/rpc/auth.h (union des_block): Likewise.
34497 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34498 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34499 (xdrrec_create): Likewise.
34500 (xdrrec_endofrecord): Likewise.
34501 (flush_out): Likewise.
34502 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34503 (xdrstdio_putlong): Likewise.
34504 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34505 Likewise.
34506
34507 * misc/sys/cdefs.h (__long_double_t): Remove.
34508 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34509 instead of __long_double_t,
34510 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34511
34512 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34513
34514 * benchtests/scripts/compare_strings.py: Avoid display error when
34515 running on a text terminal.
34516
34517 * benchtests/scripts/compare_strings.py (main): Add an
34518 optional -base option.
34519 (process_results): New argument base_func.
34520
34521 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34522 hardcoding memcpy.
34523 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34524 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34525
34526 2017-08-07 Andreas Schwab <schwab@suse.de>
34527
34528 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34529 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34530 * intl/Makefile ($(objpfx)tst-gettext.out)
34531 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34532 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34533 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34534 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34535 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34536 * posix/Makefile ($(objpfx)globtest.out)
34537 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34538 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34539 ($(objpfx)tst-printf.out): Likewise.
34540 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34541 ($(objpfx)tst-setcontext3.out): Likewise.
34542
34543 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34544
34545 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34546 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34547 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34548 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34549 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34550 and mptan-fma.
34551 (CFLAGS-doasin-fma.c): New.
34552 (CFLAGS-dosincos-fma.c): Likewise.
34553 (CFLAGS-e_asin-fma.c): Likewise.
34554 (CFLAGS-e_atan2-fma.c): Likewise.
34555 (CFLAGS-e_exp-fma.c): Likewise.
34556 (CFLAGS-e_log-fma.c): Likewise.
34557 (CFLAGS-e_pow-fma.c): Likewise.
34558 (CFLAGS-halfulp-fma.c): Likewise.
34559 (CFLAGS-mpa-fma.c): Likewise.
34560 (CFLAGS-mpatan-fma.c): Likewise.
34561 (CFLAGS-mpatan2-fma.c): Likewise.
34562 (CFLAGS-mpexp-fma.c): Likewise.
34563 (CFLAGS-mplog-fma.c): Likewise.
34564 (CFLAGS-mpsqrt-fma.c): Likewise.
34565 (CFLAGS-mptan-fma.c): Likewise.
34566 (CFLAGS-s_atan-fma.c): Likewise.
34567 (CFLAGS-sincos32-fma.c): Likewise.
34568 (CFLAGS-slowexp-fma.c): Likewise.
34569 (CFLAGS-slowpow-fma.c): Likewise.
34570 (CFLAGS-s_sin-fma.c): Likewise.
34571 (CFLAGS-s_tan-fma.c): Likewise.
34572 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34573 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34574 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34575 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34576 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34577 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34578 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34579 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34580 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34581 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34582 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34583 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34584 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34585 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34586 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34587 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34588 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34589 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34590 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34591 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34592 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34593 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34594 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34595 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34596 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34597 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34598 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34599 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34600 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34601 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34602 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34603
34604 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34605
34606 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34607 (min_of_type_f): New macro.
34608 (min_of_type_): Likewise.
34609 (min_of_type_l): Likewise.
34610 (min_of_type_f128): Likewise.
34611 (min_of_type): Define using __MATH_TG and taking an expression
34612 argument.
34613 (math_check_force_underflow): Pass expression instead of type to
34614 min_of_type.
34615 (math_check_force_underflow_nonneg): Likewise.
34616
34617 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34618
34619 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34620 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34621 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34622
34623 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34624
34625 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34626 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34627 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34628 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34629 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34630 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34631 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34632 memmove_chk-nonshared and memset_chk-nonshared
34633 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34634 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34635 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34636 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34637 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34638 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34639 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34640 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34641 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34642 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34643 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34644 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34645 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34646 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34647 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34648 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34649 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34650 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34651 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34652 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34653 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34654 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34655 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34656 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34657 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34658 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34659 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34660 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34661 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34662 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34663 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34664 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34665 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34666 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34667 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34668 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34669 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34670 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34671 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34672 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34673 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34674 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34675 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34676 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34677 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34678 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34679 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34680 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34681 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34682 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34683 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34684 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34685 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34686 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34687 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34688 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34689 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34690 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34691 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34692 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34693 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34694 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34695 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34696 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34697 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34698 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34699 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34700 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34701 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34702 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34703 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34704 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34705 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34706 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34707 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34708 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34709 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34710 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34711 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34712 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34713 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34714 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34715 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34716 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34717 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34718 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34719 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34720 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34721 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34722 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34723 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34724 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34725 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34726 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34727 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34728 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34729 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34730 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34731 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34732 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34733 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34734 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34735 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34736 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34737 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34738 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34739 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34740 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34741
34742 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34743
34744 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34745 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34746 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34747 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34748 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34749 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34750 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34751 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34752 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34753 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34754 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34755 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34756 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34757 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34758 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34759 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34760 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34761 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34762 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34763 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34764 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34765 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34766 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34767 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34768 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34769 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34770 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34771 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34772 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34773 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34774 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34775 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34776 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34777 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34778 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34779 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34780 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34781 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34782 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34783 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34784 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34785 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34786 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34787 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34788 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34789 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34790 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34791 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34792 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34793 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34794 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34795 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34796 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34797 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34798 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34799 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34800 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34801 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34802 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34803 ...
34804 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34805 Don't include <sysdep.h> nor <init-arch.h>.
34806 (_ZGVbN2v_cos): Removed.
34807 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34808 ...
34809 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34810 Don't include <sysdep.h> nor <init-arch.h>.
34811 (_ZGVdN4v_cos): Removed.
34812 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34813 ...
34814 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34815 Don't include <sysdep.h> nor <init-arch.h>.
34816 (_ZGVeN8v_cos): Removed.
34817 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34818 ...
34819 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34820 Don't include <sysdep.h> nor <init-arch.h>.
34821 (_ZGVbN2v_exp): Removed.
34822 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34823 ...
34824 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34825 Don't include <sysdep.h> nor <init-arch.h>.
34826 (_ZGVdN4v_exp): Removed.
34827 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34828 ...
34829 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34830 Don't include <sysdep.h> nor <init-arch.h>.
34831 (_ZGVeN8v_exp): Removed.
34832 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34833 ...
34834 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34835 Don't include <sysdep.h> nor <init-arch.h>.
34836 (_ZGVbN2v_log): Removed.
34837 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34838 ...
34839 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34840 Don't include <sysdep.h> nor <init-arch.h>.
34841 (_ZGVdN4v_log): Removed.
34842 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34843 ...
34844 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34845 Don't include <sysdep.h> nor <init-arch.h>.
34846 (_ZGVeN8v_log): Removed.
34847 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34848 ...
34849 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34850 Don't include <sysdep.h> nor <init-arch.h>.
34851 (_ZGVbN2vv_pow): Removed.
34852 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34853 ...
34854 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34855 Don't include <sysdep.h> nor <init-arch.h>.
34856 (_ZGVdN4vv_pow): Removed.
34857 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34858 ...
34859 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34860 Don't include <sysdep.h> nor <init-arch.h>.
34861 (_ZGVeN8vv_pow): Removed.
34862 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34863 ...
34864 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34865 Don't include <sysdep.h> nor <init-arch.h>.
34866 (_ZGVbN2v_sin): Removed.
34867 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34868 ...
34869 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34870 Don't include <sysdep.h> nor <init-arch.h>.
34871 (_ZGVbN4v_sin): Removed.
34872 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34873 ...
34874 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34875 Don't include <sysdep.h> nor <init-arch.h>.
34876 (_ZGVbN8v_sin): Removed.
34877 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34878 ...
34879 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34880 Don't include <sysdep.h> nor <init-arch.h>.
34881 (_ZGVbN2vvv_sincos): Removed.
34882 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34883 ...
34884 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34885 Don't include <sysdep.h> nor <init-arch.h>.
34886 (_ZGVdN4vvv_sincos): Removed.
34887 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34888 ...
34889 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34890 Don't include <sysdep.h> nor <init-arch.h>.
34891 (_ZGVeN8vvv_sincos): Removed.
34892 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34893 ...
34894 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34895 Don't include <sysdep.h> nor <init-arch.h>.
34896 (_ZGVeN16v_cosf): Removed.
34897 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34898 ...
34899 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34900 Don't include <sysdep.h> nor <init-arch.h>.
34901 (_ZGVbN4v_cosf): Removed.
34902 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34903 ...
34904 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34905 Don't include <sysdep.h> nor <init-arch.h>.
34906 (_ZGVdN8v_cosf): Removed.
34907 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34908 ...
34909 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34910 Don't include <sysdep.h> nor <init-arch.h>.
34911 (_ZGVeN16v_expf): Removed.
34912 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34913 ...
34914 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34915 Don't include <sysdep.h> nor <init-arch.h>.
34916 (_ZGVbN4v_expf): Removed.
34917 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34918 ...
34919 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34920 Don't include <sysdep.h> nor <init-arch.h>.
34921 (_ZGVdN8v_expf): Removed.
34922 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34923 ...
34924 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34925 Don't include <sysdep.h> nor <init-arch.h>.
34926 (_ZGVeN16v_logf): Removed.
34927 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34928 ...
34929 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34930 Don't include <sysdep.h> nor <init-arch.h>.
34931 (_ZGVbN4v_logf): Removed.
34932 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34933 ...
34934 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34935 Don't include <sysdep.h> nor <init-arch.h>.
34936 (_ZGVdN8v_logf): Removed.
34937 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34938 ...
34939 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34940 Don't include <sysdep.h> nor <init-arch.h>.
34941 (_ZGVeN16vv_powf): Removed.
34942 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34943 ...
34944 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34945 Don't include <sysdep.h> nor <init-arch.h>.
34946 (_ZGVbN4vv_powf): Removed.
34947 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34948 ...
34949 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34950 Don't include <sysdep.h> nor <init-arch.h>.
34951 (_ZGVdN8vv_powf): Removed.
34952 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34953 ...
34954 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34955 Don't include <sysdep.h> nor <init-arch.h>.
34956 (_ZGVeN16vvv_sincosf): Removed.
34957 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34958 ...
34959 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34960 Don't include <sysdep.h> nor <init-arch.h>.
34961 (_ZGVbN4vvv_sincosf): Removed.
34962 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34963 ...
34964 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34965 Don't include <sysdep.h> nor <init-arch.h>.
34966 (_ZGVdN8vvv_sincosf): Removed.
34967 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34968 ...
34969 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34970 Don't include <sysdep.h> nor <init-arch.h>.
34971 (_ZGVeN16v_sinf): Removed.
34972 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34973 ...
34974 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34975 Don't include <sysdep.h> nor <init-arch.h>.
34976 (_ZGVbN4v_sinf): Removed.
34977 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34978 ...
34979 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34980 Don't include <sysdep.h> nor <init-arch.h>.
34981 (_ZGVdN8v_sinf): Removed.
34982
34983 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34984
34985 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34986 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34987 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34988 s_rint-sse4_1 and s_rintf-sse4_1.
34989 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34990 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34991 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34992 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34993 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34994 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34995 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34996 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34997 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34998 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34999 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
35000 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35001 (__ceil): Removed.
35002 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
35003 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
35004 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35005 (__ceilf): Removed.
35006 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
35007 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
35008 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35009 (__floor): Removed.
35010 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
35011 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
35012 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35013 (__floorf): Removed.
35014 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
35015 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
35016 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35017 (__nearbyint): Removed.
35018 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
35019 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
35020 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35021 (__nearbyintf): Removed.
35022 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
35023 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
35024 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35025 (__rint): Removed.
35026 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
35027 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
35028 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
35029 (__rintf): Removed.
35030
35031 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35032
35033 * sysdeps/i386/start.S (_start): Check Check PIC instead of
35034 SHARED. Avoid dynamic relocation against main in static PIE.
35035
35036 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35037
35038 [BZ #21815]
35039 * elf/Makefile (CFLAGS-tst-prelink.c): New.
35040 (LDFLAGS-tst-prelink): Likewise.
35041
35042 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35043
35044 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
35045 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
35046 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
35047 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
35048 (INTERNAL_SYSCALL_NCS): Likewise.
35049 (LOADARGS_1): Likewise.
35050 (LOADARGS_5): Likewise.
35051 (RESTOREARGS_1): Likewise.
35052 (RESTOREARGS_5): Likewise.
35053
35054 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35055
35056 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
35057 (MEMPCPY_SYMBOL): Likewise.
35058 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
35059 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
35060 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
35061 in libc.a.
35062 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
35063 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
35064 Likewise.
35065 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
35066 (__hidden_ver1): Don't use in libc.a.
35067 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
35068 (__mempcpy): Don't create a weak alias in libc.a.
35069 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
35070 libc.a.
35071 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
35072 (__hidden_ver1): Don't use in libc.a.
35073
35074 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35075
35076 * config.make.in (have-insert): New.
35077 * configure.ac (libc_cv_insert): New. Set to yes if linker
35078 supports INSERT in linker script.
35079 (AC_SUBST(libc_cv_insert): New.
35080 * configure: Regenerated.
35081 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
35082 if $(have-insert) == yes.
35083
35084 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35085
35086 * elf/Makefile (tests): Add vismain only if
35087 $(have-protected-data) == yes.
35088 (tests-pie): Likewise.
35089
35090 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35091
35092 [BZ #21871]
35093 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
35094 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
35095
35096 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
35097
35098 [BZ #21790]
35099 * sysdeps/i386/i586/memset.S
35100 (__memset_zero_constant_len_parameter): Removed.
35101 * sysdeps/i386/i686/memset.S
35102 (__memset_zero_constant_len_parameter): Likewise.
35103 * sysdeps/i386/i686/multiarch/memset_chk.S
35104 (__memset_zero_constant_len_parameter): Likewise.
35105 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
35106 Likewise.
35107
35108 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35109
35110 * stdlib/getentropy.c (getentropy): Change return type to int.
35111
35112 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
35113
35114 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
35115
35116 2017-08-03 Joseph Myers <joseph@codesourcery.com>
35117
35118 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
35119 u_intN_t.
35120 * math/s_nexttowardf.c (__nexttowardf): Likewise.
35121 * sysdeps/generic/math_private.h (ieee_double_shape_type):
35122 Likewise.
35123 (ieee_float_shape_type): Likewise.
35124 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
35125 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35126 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35127 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35128 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35129 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35130 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35131 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35132 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35133 Likewise.
35134 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35135 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35136 (__ieee754_yn): Likewise.
35137 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35138 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35139 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35140 Likewise.
35141 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35142 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35143 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35144 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35145 (__erfc): Likewise.
35146 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35147 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35148 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35149 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35150 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35151 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35152 Likewise.
35153 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35154 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35155 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35156 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35157 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35158 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35159 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35160 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35161 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35162 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35163 (__issignaling): Likewise.
35164 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35165 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35166 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35167 Likewise.
35168 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35169 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35170 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35171 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35172 Likewise.
35173 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35174 Likewise.
35175 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35176 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35177 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35178 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35179 (__erfcf): Likewise.
35180 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35181 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35182 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35183 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35184 Likewise.
35185 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35186 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35187 Likewise.
35188 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35189 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35190 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35191 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35192 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35193 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35194 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35195 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35196 Likewise.
35197 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35198 Likewise.
35199 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35200 Likewise.
35201 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35202 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35203 Likewise.
35204 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35205 Likewise.
35206 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35207 (__ieee754_ynl): Likewise.
35208 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35209 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35210 Likewise.
35211 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35212 Likewise.
35213 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35214 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35215 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35216 Likewise.
35217 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35218 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35219 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35220 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35221 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35222 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35223 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35224 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35225 Likewise.
35226 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35227 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35228 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35229 Likewise.
35230 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35231 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35232 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35233 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35234 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35235 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35236 Likewise.
35237 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35238 Likewise.
35239 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35240 Likewise.
35241 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35242 Likewise.
35243 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35244 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35245 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35246 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35247 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35248 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35249 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35250 Likewise.
35251 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35252 Likewise.
35253 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35254 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35255 Likewise.
35256 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35257 (__ieee754_remainderl): Likewise.
35258 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35259 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35260 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35261 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35262 Likewise.
35263 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35264 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35265 Likewise.
35266 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35267 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35268 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35269 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35270 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35271 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35272 Likewise.
35273 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35274 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35275 (__ieee754_y0l): Likewise.
35276 (pzero): Likewise.
35277 (qzero): Likewise.
35278 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35279 (__ieee754_y1l): Likewise.
35280 (pone): Likewise.
35281 (qone): Likewise.
35282 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35283 (__ieee754_ynl): Likewise.
35284 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35285 (__ieee754_lgammal_r): Likewise.
35286 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35287 Likewise.
35288 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35289 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35290 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35291 (__erfcl): Likewise.
35292 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35293 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35294 Likewise.
35295 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35296 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35297 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35298 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35299 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35300 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35301 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35302 Likewise.
35303 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35304 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35305 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35306 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35307 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35308 Likewise.
35309 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35310 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35311 Likewise.
35312 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35313 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35314 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35315 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35316 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35317
35318 2017-08-03 Florian Weimer <fweimer@redhat.com>
35319
35320 [BZ #21885]
35321 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35322 on memory allocation failure.
35323
35324 2017-08-03 Alan Modra <amodra@gmail.com>
35325
35326 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35327 tst-tlsopt-powerpc.c with function name change and no test harness.
35328 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35329 Call tls_get_addr_opt_test.
35330 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35331 (modules-names): Add mod-tlsopt-powerpc.
35332 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35333 (tst-tlsopt-powerpc): Depend on .so.
35334 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35335 define. Expand use in TLS_GD and TLS_LD.
35336
35337 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35338
35339 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35340 function.
35341 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35342
35343 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35344
35345 [BZ #21686]
35346 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35347 comparing size with that of double.
35348 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35349 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35350 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35351 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35352 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35353 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35354 unsigned __int128 types.
35355
35356 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35357
35358 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35359 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35360 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35361 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35362 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35363
35364 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35365
35366 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35367
35368 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35369
35370 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35371 of SHARED.
35372 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35373 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35374 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35375 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35376 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35377 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35378 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35379
35380 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35381
35382 [BZ #21685]
35383 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35384 bit-field expressions passed to sizeof or typeof.
35385 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35386 (__TGMATH_F128): Likewise.
35387 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35388 (__TGMATH_CF128): Likewise.
35389 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35390 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35391 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35392 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35393 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35394 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35395 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35396 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35397 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35398 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35399 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35400 (__TGMATH_UNARY_IMAG): Likewise.
35401 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35402 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35403 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35404 type.
35405 (define_vars_for_type): Handle bit_field type specially.
35406 (Tests.__init__): Declare structure with bit-field element.
35407
35408 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35409
35410 [BZ #21791]
35411 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35412 (MEMCPY_CHK): Define only if SHARED is defined.
35413 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35414 Likewise.
35415 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35416 Likewise.
35417
35418 See ChangeLog.18 for earlier changes.