]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Linux: Fix __glibc_has_include use for <sys/stat.h> and statx
[thirdparty/glibc.git] / ChangeLog
1 2019-06-14 Florian Weimer <fweimer@redhat.com>
2
3 * sysdeps/unix/sysv/linux/bits/statx.h: Use string literal in
4 argument to __glibc_has_include to inhibit macro expansion.
5
6 2019-06-14 Florian Weimer <fweimer@redhat.com>
7
8 * misc/sys/cdefs.h (__glibc_has_include): Do not use a
9 function-like macro, so that __has_include can inhibit expansion
10 of its argument.
11
12 2019-06-13 Joseph Myers <joseph@codesourcery.com>
13
14 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_ROUTER_ALERT_ISOLATE):
15 New macro.
16
17 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
18 Allow memset in libc.so.
19
20 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
21
22 * sysdeps/aarch64/dl-dtprocnum.h: New file.
23 * sysdeps/aarch64/dl-machine.h (DT_AARCH64): Define.
24 (elf_machine_runtime_setup): Handle DT_AARCH64_VARIANT_PCS.
25 (elf_machine_lazy_rel): Check STO_AARCH64_VARIANT_PCS and bind such
26 symbols at load time.
27 * sysdeps/aarch64/linkmap.h (struct link_map_machine): Add variant_pcs.
28
29 2019-06-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30
31 * elf/elf.h (STO_AARCH64_VARIANT_PCS): Define.
32 (DT_AARCH64_VARIANT_PCS): Define.
33
34 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
35
36 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
37 (sysdeps_routines, libm-sysdep_routines): Remove s_finite*
38 objects.
39 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
40 Remove file.
41 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c:
42 Likewise.
43 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: Likewise.
44 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
45 Likewise.
46 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: Likewise.
47 * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
48 * sysdeps/powerpc/powerpc32/power7/fpu/s_finitef.S: Likewise.
49 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
50 Remove s_finite* objects.
51 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Remove file.
52 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
53 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.c: Likewise.
54 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
55 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: Likewise.
56 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: Likewise.
57 * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
58 * sysdeps/powerpc/powerpc64/power7/fpu/s_finitef.S: Likewise.
59 * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
60 * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: Likewise.
61
62 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Move to ...
63 * sysdeps/ieee754/dbl-64/s_finite.c: ... here and format code.
64
65 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
66 (sysdeps_routines, libm-sysdep_routines): Remove s_isinf* and s_isinf*
67 objects.
68 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S:
69 Remove file.
70 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c:
71 Likewise.
72 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: Likewise.
73 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
74 Likewise.
75 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: Likewise.
76 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
77 * sysdeps/powerpc/powerpc32/power7/fpu/s_isinff.S: Likewise.
78 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_call):
79 Remove s_isinf* and s_isinf* objects.
80 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
81 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
82 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.c: Likewise.
83 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
84 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: Likewise.
85 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: Likewise.
86 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
87 * sysdeps/powerpc/powerpc64/power7/fpu/s_isinff.S: Likewise.
88 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
89 * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: Likewise.
90
91 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Move to ...
92 * sysdeps/ieee754/dbl-64/s_isinf.c: ... here and format code.
93
94 * sysdeps/powerpc/fpu/s_isnan.c: Remove file.
95 * sysdeps/powerpc/fpu/s_isnanf.S: Likewise.
96 * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
97 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
98 (sysdeps_routines, libm-sysdep_routines): Remove s_isnan-* and
99 s_isnanf-* objects.
100 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S:
101 Remove file
102 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S:
103 Likewise.
104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S:
105 Likewise.
106 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S:
107 Likewise.
108 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: Likewise.
109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power5.S:
110 Likewise.
111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
112 Likewise.
113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: Likewise.
114 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
115 * sysdeps/powerpc/powerpc32/power5/fpu/s_isnanf.S: Likewise.
116 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
117 * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S: Likewise.
118 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
119 * sysdeps/powerpc/powerpc32/power7/fpu/s_isnanf.S: Likewise.
120 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdep_calls):
121 Remove s_isnan-* and s_isnanf-* objects.
122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S:
125 Likewise.
126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
127 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: Likewise.
131 * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
132 * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
133 * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
134 * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
135 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
136 * sysdeps/powerpc/powerpc64/power7/fpu/s_isnanf.S: Likewise.
137 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
138 * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: Likewise.
139
140 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Move to ...
141 * sysdeps/ieee754/dbl-64/s_isnan.c: ... here and format code.
142
143 * benchtests/Makefile (bench-math): Add isnan, isinf, and isfinite.
144 (CFLAGS-bench-isnan.c, CFLAGS-bench-isinf.c,
145 CFLAGS-bench-isfinite.c): New rule.
146 * benchtests/isnan-input: New file.
147 * benchtests/isinf-input: New file.
148 * benchtests/isfinite-input: New file.
149
150 * sysdeps/powerpc/fpu/s_copysign.c: New file.
151 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
152 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
153 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
154 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
155 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
156 s_copysign-ppc32.
157 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
158 Remove file.
159 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
160 Likewise.
161 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
162 Likewise.
163 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
164 Likewise.
165 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
166 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
167 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
168 Remove s_copysign-power6 s_copysign-ppc64.
169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
170 Remove file.
171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
172 Likewise.
173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
175 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
176 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
177 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
178 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
179
180 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
181 round_to_integer_float, round_mode): Add RINT handling.
182 (reset_fenv_mode): New symbol.
183 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
184 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
185 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
186 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
187 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
188 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
189
190 2019-06-12 Florian Weimer <fweimer@redhat.com>
191
192 [BZ #24632]
193 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
194 * libio/freopen.c (freopen): Use it.
195
196 2019-06-12 Florian Weimer <fweimer@redhat.com>
197
198 Linux: Deprecate sysctl.
199 * include/sysctl.h (__sysctl): Remove declaration.
200 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
201 check.
202 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
203 (sysctl): Add deprecation attribute.
204 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
205 directly, to avoid the deprecation warning. Do not include
206 <string.h>.
207 (__sysctl): Remove hidden alias.
208
209 2019-06-12 Florian Weimer <fweimer@redhat.com>
210
211 Linux: Use kernel headers for statx definitions if available.
212 * include/bits/statx-generic.h: New file.
213 * include/bits/types/struct_statx.h: Likewise.
214 * include/bits/types/struct_statx_timestamp.h: Likewise.
215 * io/Makefile (headers): Add bits/statx-generic.h.
216 * io/bits/statx-generic.h: New file. Partly copied from
217 io/bits/statx.h.
218 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
219 define original_statx.
220 * io/bits/types/struct_statx.h: Likewise.
221 * io/bits/types/struct_statx_timestamp.h: Likewise.
222 (statx_generic): Use original_statx.
223 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
224 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
225
226 2019-06-12 Florian Weimer <fweimer@redhat.com>
227
228 * misc/sys/cdefs.h (__glibc_has_include): Define.
229
230 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
231
232 * string/memmem.c (__memmem): Rewrite to improve performance.
233
234 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
235
236 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
237 warning.
238 (two_way_long_needle): Block inlining.
239 * string/strstr.c (strstr2): Add new function.
240 (strstr3): Likewise.
241 (STRSTR): Completely rewrite strstr to improve performance.
242
243 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
244
245 * benchtests/bench-strstr.c (test_hard_needle): New function.
246
247 2019-06-10 Joseph Myers <joseph@codesourcery.com>
248
249 * malloc/tst-calloc.c: Include <libc-diag.h>.
250 (null_test): Ignore -Wunused-result around calls to calloc.
251 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
252 (do_test): Ignore -Wunused-result around call to malloc.
253
254 2019-06-07 Florian Weimer <fweimer@redhat.com>
255
256 Linux: Add getdents64 system call.
257 * include/dirnent.h (getdents): Add comment and change buffer
258 argument type to void *.
259 (getdents64): Likewise. Add hidden prototype.
260 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
261 getdents64.
262 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
263 Add tst-getdents64.
264 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
265 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
266 argument type to void *.
267 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
268 Add hidden definition and getdents64 alias.
269 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
270 Likewise.
271 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
272 * manual/filesys.texi (Accessing Directories): Add Low-level
273 Directory Access node reference.
274 (Opening a Directory): Cross-reference it.
275 (Low-level Directory Access): New node.
276 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
277 getdents64.
278 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
279 Likewise.
280 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
281 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
282 Likewise.
283 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
284 Likewise.
285 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
286 Likewise.
287 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
288 Likewise.
289 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
290 Likewise.
291 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
292 Likewise.
293 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
294 Likewise.
295 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
296 (GLIBC_2.30): Likewise.
297 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
298 (GLIBC_2.30): Likewise.
299 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
300 (GLIBC_2.30): Likewise.
301 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
302 (GLIBC_2.30): Likewise.
303 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
304 Likewise.
305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
306 (GLIBC_2.30): Likewise.
307 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
308 (GLIBC_2.30): Likewise.
309 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
310 (GLIBC_2.30): Likewise.
311 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
312 (GLIBC_2.30): Likewise.
313 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
314 Likewise.
315 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
316 Likewise.
317 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
318 Likewise.
319 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
320 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
321 Likewise.
322 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
323 Likewise.
324 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
325 Likewise.
326 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
327 Likewise.
328
329 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
330
331 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
332 (__FPU_MFFS): New.
333 (__FPU_MFFSL): New.
334 (_FPU_GET_RC): New.
335 (_FPU_GETCW): Use __FPU_MFFS().
336 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
337
338 2019-06-06 Florian Weimer <fweimer@redhat.com>
339
340 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
341 internal GCC preprocessor identifier __has_include__.
342
343 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
344
345 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
346 with call to equivalent function.
347
348 2019-06-04 Florian Weimer <fweimer@redhat.com>
349
350 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
351 (do_release_shlib): Adjust for __twalk_r.
352 (__gconv_release_shlib): Call __twalk_r.
353
354 2019-06-04 Andreas Schwab <schwab@suse.de>
355
356 [BZ #18830]
357 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
358 no irreversible characters occurred.
359 * iconv/gconv_simple.c (internal_ucs4_loop)
360 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
361 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
362 (ucs4_internal_loop_single, internal_ucs4le_loop)
363 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
364 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
365 (ucs4le_internal_loop_single): Add const to outend.
366 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
367 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
368 * iconv/Makefile (tests): Add tst-iconv7.
369 * iconv/tst-iconv7.c: New file.
370
371 2019-06-03 Joseph Myers <joseph@codesourcery.com>
372
373 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
374
375 2019-06-01 Florian Weimer <fweimer@redhat.com>
376
377 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
378 * sysdeps/unix/sysv/linux/arm/Makefile
379 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
380 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
381 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
382 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
383 compatibility symbols.
384
385 2019-05-31 Florian Weimer <fweimer@redhat.com>
386
387 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
388 system calls for the arm architecture: breakpoint, get_tls,
389 set_tls, usr26, usr32.
390
391 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
392
393 * sysdeps/powerpc/Makefile
394 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
395 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
396 Declare '.machine power7' to get support for ldbrx.
397 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
398 directive based on the directory of the file.
399 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
400 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
401 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
402 '.machine' directive.
403 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
404 (VADDUQM_V7_V8): Remove.
405 (__STRCASECMP): Replace macros with actual instructions.
406 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
407 '.machine' directive.
408 (VCLZD_V8_v7): Remove.
409 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
410
411 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
412
413 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
414 Remove file.
415 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
416
417 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
418
419 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
420 NEARBYINT handling.
421 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
422 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
423 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
424 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
425 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
426 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
427
428 2019-05-28 mansayk <6688000@gmail.com>
429
430 [BZ #24370]
431 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
432
433 2019-05-28 mansayk <6688000@gmail.com>
434
435 [BZ #24369]
436 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
437 (abmon): Likewise, but remove the trailing dots.
438
439 2019-05-28 Joseph Myers <joseph@codesourcery.com>
440
441 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
442
443 2019-05-27 Florian Weimer <fweimer@redhat.com>
444
445 * nptl/nptl-init.c: Add comment.
446
447 2019-05-24 Florian Weimer <fweimer@redhat.com>
448
449 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
450 struct in_addr/struct in6_addr alignment.
451
452 2019-05-23 Joseph Myers <joseph@codesourcery.com>
453
454 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
455 (F_SEAL_FUTURE_WRITE): New macro.
456
457 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
458
459 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
460 * elf/tst-ldconfig-bad-aux-cache.c: New file.
461 * elf/tst-ldconfig_aux-cache.root: New directory.
462 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
463 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
464 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
465
466 2019-05-22 Zack Weinberg <zackw@panix.com>
467
468 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
469 host type.
470 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
471 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
472
473 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
474 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
475 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
476 Delete.
477
478 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
479 Issue an #error if used with a compiler in SPE-float mode.
480 * sysdeps/powerpc/powerpc32/__longjmp_common.S
481 * sysdeps/powerpc/powerpc32/setjmp_common.S
482 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
484 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
486 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
488 Remove code to preserve SPE register state.
489
490 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
491 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
492 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
493 Remove __SPE__ ifndefs.
494
495 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
496
497 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
498 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
499 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
500 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
501 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
502 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
503 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
504 (INNER_LOOP_ITERS_MEDIUM): New define.
505 (INNER_LOOP_ITERS_SMALL): New define.
506 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
507 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
508 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
509 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
510 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
511
512 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
513
514 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
515 New define.
516 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
517 (SEMTIMEDOP_IPC_ARGS): Likewise.
518
519 2019-05-21 Florian Weimer <fweimer@redhat.com>
520
521 [BZ #24584]
522 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
523 before updating __counter field and release it afterwards. Add
524 overflow check.
525 * iconv/gconv.h (struct __gconv_step): Mention synchronization
526 requirement for __counter member.
527
528 2019-05-21 Florian Weimer <fweimer@redhat.com>
529
530 [BZ #24583]
531 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
532 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
533 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
534 instead of __gconv_release_step.
535 * libio/Makefile (tests): Add tst-wfile-gconv.
536 (tests-container): Add tst-wfile-ascii.
537 (tst-wfile-gconv-ENV): Enable mtrace.
538 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
539 (tests-special): Add tst-wfile-gconv-mem.out.
540 (tst-wfile-gconv.out): Depend on locales.
541 (tst-wfile-gconv-mem.out): Add mtrace rule.
542 * libio/tst-wfile-ascii.c: New file.
543 * libio/tst-wfile-gconv.c: Likewise.
544
545 2019-05-20 Florian Weimer <fweimer@redhat.com>
546
547 [BZ #24588]
548 libio: Remove codecvt vtable.
549 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
550 __libio_codecvt.
551 * libio/iofgetpos.c (_IO_new_fgetpos): Call
552 __libio_codecvt_encoding.
553 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
554 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
555 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
556 * libio/iofwide.c (__libio_codecvt): Remove variable.
557 (_IO_fwide): Do not copy __libio_codecvt.
558 (__libio_codecvt_out): Rename from do_out and export.
559 (do_unshift): Remove function.
560 (__libio_codecvt_in): Rename from do_in and export.
561 (__libio_codecvt_encoding): Rename from do_encoding and export.
562 (do_always_noconv): Remove function.
563 (__libio_codecvt_length): Rename from do_length and export.
564 (do_max_length): Remove function.
565 * libio/libio.h (enum __codecvt_result): Remove definition; moved
566 to libioP.h.
567 (struct _IO_codecvt): Remove fields __codecvt_destr,
568 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
569 __codecvt_do_encoding, __codecvt_do_always_noconv,
570 __codecvt_do_length, __codecvt_do_max_length.
571 * libio/libioP.h (enum __codecvt_result): Define; moved from
572 libio.h.
573 (__libio_codecvt_out, __libio_codecvt_in)
574 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
575 functions.
576 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
577 (_IO_wfile_underflow): Call __libio_codecvt_in.
578 (_IO_wfile_underflow): Likewise.
579 (_IO_wfile_underflow_mmap): Likewise.
580 (_IO_wfile_sync): Call __libio_codecvt_encoding,
581 __libio_codecvt_length.
582 (adjust_wide_data): Call __libio_codecvt_encoding,
583 __libio_codecvt_in.
584 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
585 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
586 __libio_codecvt_length.
587
588 2019-05-20 Florian Weimer <fweimer@redhat.com>
589
590 * support/support.h (support_sbindir_prefix): Declare.
591 (support_install_rootsbindir): Update comment.
592 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
593 * support/support_paths.c (support_sbindir_prefix): Define.
594
595 2019-05-20 Mike Crowe <mac@mcrowe.com>
596
597 * support/timespec.c: Add backslash to correct newline in failure
598 message.
599
600 * support/timespec.h: Correct confusing comment.
601
602 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
603
604 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
605 define.
606 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
607 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
608 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
609 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
610
611 [BZ #24570]
612 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
613 usage.
614
615 2019-05-20 Joseph Myers <joseph@codesourcery.com>
616
617 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
618 (NT_ARM_PACG_KEYS): Likewise.
619
620 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
621
622 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
623 (tcache_put): Remove redundant assert.
624 (tcache_get): Remove redundant asserts.
625 (__libc_malloc): Check tcache count is not zero.
626 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
627
628 2019-05-17 Florian Weimer <fweimer@redhat.com>
629
630 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
631
632 2019-05-16 Joseph Myers <joseph@codesourcery.com>
633
634 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
635 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
636 0x050100].
637 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
638 Likewise.
639 * sysdeps/unix/sysv/linux/sh/kernel-features.h
640 (__ASSUME_STATX): Likewise.
641
642 2019-05-16 Florian Weimer <fweimer@redhat.com>
643
644 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
645 flags argument.
646 (LINE_PARSER): Do not map IPv4 addresses.
647 (internal_nis_gethostent_r): Remove flags argument. Adjust call
648 to parse_line.
649 (_nss_nis_gethostent_r): Always pass AF_INET to
650 internal_nis_gethostent_r.
651 (internal_gethostbyname2_r): Remove flags argument. Adjust call
652 to parse_line.
653 (_nss_nis_gethostbyname2_r): Adjust call to
654 internal_nis_gethostent_r.
655 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
656 call to internal_nis_gethostent_r.
657 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
658 from parse_line.
659 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
660 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
661 Remove flags argument. Do not map IPv4 addresses.
662 (internal_nisplus_gethostent_r): Adjust call to
663 _nss_nisplus_parse_hostent.
664 (internal_gethostbyname2_r): Remove flags argument. Adjust call
665 to _nss_nisplus_parse_hostent.
666 (_nss_nisplus_gethostbyname2_r): Adjust call to
667 internal_gethostbyname2_r.
668 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
669 Adjust call to internal_gethostbyname2_r.
670 (_nss_nisplus_gethostbyaddr_r): Adjust call to
671 _nss_nisplus_parse_hostent.
672 (_nss_nisplus_gethostbyname4_r): Adjust call to
673 internal_gethostbyname2_r.
674
675 2019-05-16 Florian Weimer <fweimer@redhat.com>
676
677 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
678 Remove flags.
679 (LINE_PARSER): Remove address mapping.
680 (EXTRA_ARGS_VALUE): Remove flags argument.
681 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
682 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
683 gethostbyname3_multi.
684 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
685 _nss_files_gethostbyname3_r.
686 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
687
688 2019-05-16 Florian Weimer <fweimer@redhat.com>
689
690 * support/support_test_compare_blob.c (report_blob): Report
691 incorrect NULL blobs.
692
693 2019-05-15 Mark Wielaard <mark@klomp.org>
694
695 [BZ# 24476]
696 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
697 __libc_once_get (once) and static_buf == NULL.
698 (__dlerror): Check we have a valid key, set result to static_buf
699 otherwise.
700
701 2019-05-15 Andreas Schwab <schwab@suse.de>
702
703 [BZ #20568]
704 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
705 __codecvt_do_length.
706 * libio/Makefile (tests): Add tst-wfile-sync.
707 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
708 * libio/tst-wfile-sync.c: New file.
709 * libio/tst-wfile-sync.input: New file.
710
711 2019-05-15 Florian Weimer <fweimer@redhat.com>
712
713 nss: Turn __nss_database_lookup into a compatibility symbol.
714 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
715 __nss_database_lookup.
716 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
717 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
718 __nss_database_lookup.
719 (__nss_next): Move to …
720 * nss/compat-lookup.c (nss_next): … here. Change it to fail
721 unconditionally.
722 (__nss_database_lookup): New function.
723 * nss/Versions (GLIBC_2.0): Update comment.
724 (GLIBC_PRIVATE): Export __nss_database_lookup2.
725 * grp/initgroups.c (internal_getgrouplist): Call
726 __nss_database_lookup2 instead of __nss_database_lookup.
727 * nscd/aicache.c (addhstaiX): Likewise.
728 * nscd/initgrcache.c (addinitgroupsX): Likewise.
729 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
730 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
731 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
732 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
733 Likewise.
734 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
735 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
736 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
737
738 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
739
740 * support/support.h (support_install_rootsbindir): New variable.
741 * support/support_paths.c: Likewise.
742 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
743
744 2019-05-15 Florian Weimer <fweimer@redhat.com>
745
746 * iconv/gconv.h (__gconv_transliterate): Move declaration …
747 * iconv/gconv_int.h (__gconv_transliterate): … here.
748 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
749 * iconv/skeleton.c: Likewise.
750
751 2019-05-14 Florian Weimer <fweimer@redhat.com>
752
753 Linux: Add the tgkill function.
754 * bits/signal_ext.h: New file.
755 * manual/signal.texi (Signaling Another Process): Document tgkill.
756 * signal/Makefile (headers): Add bits/signal_ext.h.
757 * signal/signal.h: Include <bits/signal_ext.h>.
758 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
759 (tst-tgkill): Link with libpthread.
760 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
761 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
762 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
763 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
764 tgkill.
765 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
766 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
767 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
768 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
769 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
770 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
771 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
772 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
773 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
774 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
775 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
776 Likewise.
777 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
778 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
779 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
780 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
781 Likewise.
782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
783 Likewise.
784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
785 Likewise.
786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
787 Likewise.
788 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
789 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
790 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
791 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
792 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
793 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
794 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
795 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
796
797 2019-05-14 Carlos O'Donell <carlos@redhat.com>
798
799 * manual/search.texi (Tree Search Function): Adjust twalk_r
800 documentation.
801
802 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
803
804 [BZ #24544]
805 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
806 pre-defined value.
807
808 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
809 * support/support.h (support_bindir_prefix): New variable.
810 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
811
812 * config.make.in (bindir): New variable.
813
814 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
815 (lll_trylock): Call __lll_trylock.
816 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
817 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
818 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
819 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
820 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
821 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
822 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
823 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
824 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
825 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
826 lowlevellock-futex.h.
827
828 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
829 initialization for LLL_LOCK_INITIALIZER different than 0.
830 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
831 Assume LLL_LOCK_INITIALIZER being 0.
832 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
833 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
834 Likewise.
835 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
836 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
837
838 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
839 Optimize futex call and add systemtap probe.
840
841 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
842 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
843 __libc_disable_asynccancel, __librt_enable_asynccancel,
844 __libc_disable_asynccancel, __librt_enable_asynccancel,
845 __librt_disable_asynccancel): Move to ...
846 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
847 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
848 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
849 * sysdeps/generic/single-thread.h: New file.
850 * sysdeps/unix/sysdep.h: Include single-thread.h.
851 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
852 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
853
854 2019-05-08 Mike FABIAN <mfabian@redhat.com>
855
856 [BZ #24535]
857 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
858 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
859 Unicode 12.1.0.
860 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
861 * localedata/unicode-gen/PropList.txt: Likewise.
862 * localedata/unicode-gen/UnicodeData.txt: Likewise.
863 * localedata/charmaps/UTF-8: Regenerate.
864 * localedata/locales/i18n_ctype: Likewise.
865 * localedata/locales/tr_TR: Likewise.
866 * localedata/locales/translit_circle: Likewise.
867 * localedata/locales/translit_cjk_compat: Likewise.
868 * localedata/locales/translit_combining: Likewise.
869 * localedata/locales/translit_compat: Likewise.
870 * localedata/locales/translit_font: Likewise.
871 * localedata/locales/translit_fraction: Likewise.
872
873 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
874
875 [BZ #24531]
876 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
877 (do_set_tcache_count): Only update if count is small enough.
878 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
879
880 2019-05-10 Florian Weimer <fweimer@redhat.com>
881
882 * nptl/sem_close.c (struct walk_closure): Define.
883 (walker): Adjust for __twalk_r.
884 (sem_close): Call __twalk_r.
885
886 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
887
888 * support/timespec.c (test_timespec_before_impl,
889 test_timespec_equal_or_after_impl): print timespec member as intmax_t
890 insted of long int.
891
892 2019-05-09 Mike Crowe <mac@mcrowe.com>
893
894 * nptl/tst-abstime.c: Use libsupport.
895
896 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
897 small bug where only tv.tv_usec was checked which could cause an
898 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
899 than a second.
900
901 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
902 libsupport.
903
904 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
905 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
906
907 * nptl/tst-cond11.c: Use libsupport.
908
909 * support/timespec.h: New file. Provide timespec helper functions
910 along with macros in the style of those in check.h.
911 * support/timespec.c: New file. Implement check functions declared
912 in support/timespec.h.
913 * support/timespec-add.c: New file from gnulib containing
914 timespec_add implementation that handles overflow.
915 * support/timespec-sub.c: New file from gnulib containing
916 timespec_sub implementation that handles overflow.
917 * support/README: Mention timespec.h.
918
919 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
920
921 [BZ #24537]
922 * nptl/Makefile: Move tst-eintr1 to xtests.
923
924 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
925
926 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
927 TRUNC handling.
928 (round_mode): Add definition for TRUNC.
929 * sysdeps/powerpc/fpu/s_trunc.c: New file.
930 * sysdeps/powerpc/fpu/s_truncf.c: New file.
931 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
932 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
933 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
934 Likewise.
935 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
936 Likewise.
937 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
938 Likewise.
939 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
940 Likewise.
941 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
942 file.
943 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
944 Likewise.
945 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
946 Likewise.
947 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
948 Likewise.
949 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
950 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
951 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
952 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
953 s_truncf-power5+, and s_truncf-ppc64.
954 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
955 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
956 file.
957 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
958 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
959 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
960 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
961 file.
962 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
963 Likewise.
964 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
965 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
966 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
967 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
968 s_truncf-power5+, and s_truncf-ppc64.
969 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
970 file.
971 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
972 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
973 Likewise.
974 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
975 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
976 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
977 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
978 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
979
980 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
981 ROUND handling.
982 (round_mode): Add definition for ROUND.
983 (round_to_integer_float): Likewise.
984 * sysdeps/powerpc/fpu/s_round.c: New file.
985 * sysdeps/powerpc/fpu/s_roundf.c: New file.
986 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
987 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
988 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
989 Likewise.
990 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
991 Likewise.
992 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
993 Likewise.
994 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
995 Likewise.
996 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
997 file.
998 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
999 Likewise.
1000 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
1001 Likewise.
1002 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
1003 Likewise.
1004 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
1005 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
1006 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
1007 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
1008 s_roundf-power5+, and s_roundf-ppc64.
1009 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
1010 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
1011 file.
1012 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
1013 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
1014 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
1015 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
1016 file.
1017 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
1018 Likewise.
1019 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
1020 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
1021 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1022 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
1023 s_roundf-power5+, and s_roundf-ppc64.
1024 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
1025 file.
1026 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
1027 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
1028 Likewise.
1029 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
1030 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1031 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1032 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
1033 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
1034
1035 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
1036 Add FLOOR option.
1037 (round_mode): Add definition for FLOOR.
1038 * sysdeps/powerpc/fpu/s_floor.c: New file.
1039 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
1040 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
1041 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
1043 Remove file.
1044 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
1045 Likewise
1046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
1047 Likewise.
1048 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
1049 Likewise.
1050 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
1051 New file.
1052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
1053 Likewise.
1054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
1055 Likewise.
1056 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
1057 Likewise.
1058 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
1059 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
1060 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
1061 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
1062 s_floorf-power5+, and s_floorf-ppc64.
1063 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
1064 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
1065 file.
1066 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
1067 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
1068 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
1069 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
1070 file.
1071 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
1072 Likewise.
1073 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
1074 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
1075 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1076 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
1077 s_floorf-power5+, and s_floorf-ppc64.
1078 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
1079 file.
1080 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
1081 file.
1082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
1083 Likewise.
1084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
1085 Likewise.
1086 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1087 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1088 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
1089 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
1090
1091 2019-05-08 Mike Crowe <mac@mcrowe.com>
1092
1093 * support/xclock_gettime.c (xclock_gettime): New file. Provide
1094 clock_gettime wrapper for use in tests that fails the test rather
1095 than returning failure.
1096
1097 * support/xtime.h: New file to declare xclock_gettime.
1098
1099 * support/Makefile: Add xclock_gettime.c.
1100
1101 * support/README: Mention xtime.h.
1102
1103 2019-05-08 Florian Weimer <fweimer@redhat.com>
1104
1105 malloc/tst-mallocfork2: Use process-shared barriers.
1106 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
1107 (signal_count, sigusr1_sender_pid): Remove.
1108 (iterations): Define constant.
1109 (shared): New variable.
1110 (sigusr1_received): Update comment.
1111 (sigusr1_handler): Do not send SIGSTOP to the sender process.
1112 (signal_sender): Optional use barriers to avoid sending signals
1113 during irrelevant times.
1114 (do_it): Initialize variable shared. Use xfork for error
1115 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
1116 the iteration count, independent of signal delivery. Check for
1117 deadlocks in fork. Introduce barriers for reducing signal
1118 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
1119 replaced by the barriers. Count signals during fork/free/malloc
1120 and report them.
1121 * malloc/Makefile (tst-mallocfork): Link with libpthread.
1122
1123 2019-05-07 Joseph Myers <joseph@codesourcery.com>
1124
1125 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1126 version to 5.1.
1127 (clock_adjtime64) New syscall.
1128 (clock_getres_time64) Likewise.
1129 (clock_gettime64) Likewise.
1130 (clock_nanosleep_time64) Likewise.
1131 (clock_settime64) Likewise.
1132 (futex_time64) Likewise.
1133 (io_pgetevents_time64) Likewise.
1134 (io_uring_enter) Likewise.
1135 (io_uring_register) Likewise.
1136 (io_uring_setup) Likewise.
1137 (mq_timedreceive_time64) Likewise.
1138 (mq_timedsend_time64) Likewise.
1139 (pidfd_send_signal) Likewise.
1140 (ppoll_time64) Likewise.
1141 (pselect6_time64) Likewise.
1142 (recvmmsg_time64) Likewise.
1143 (rt_sigtimedwait_time64) Likewise.
1144 (sched_rr_get_interval_time64) Likewise.
1145 (semtimedop_time64) Likewise.
1146 (timer_gettime64) Likewise.
1147 (timer_settime64) Likewise.
1148 (timerfd_gettime64) Likewise.
1149 (timerfd_settime64) Likewise.
1150 (utimensat_time64) Likewise.
1151
1152 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1153 version to 9 branch.
1154
1155 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1156
1157 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1158 __memmove_thunderx2 to the list of implementations
1159 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1160 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1161 (__memmove_thunderx2): Rewritten using SIMD ld/st
1162 (__memcpy_thunderx2): Fixed handling overlapping cases.
1163 Used ldp/stp instead of ldr/str if possible. Made loops
1164 tails branchless.
1165
1166 2019-05-03 Florian Weimer <fweimer@redhat.com>
1167
1168 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1169
1170 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1171
1172 [BZ #24506]
1173 * elf/tst-pldd.c (in_str_list): New function.
1174 (do_test): Add default names for ld and libc as one option.
1175
1176 2019-05-02 Florian Weimer <fweimer@redhat.com>
1177
1178 misc: Add twalk_r function.
1179 * include/search.h (__twalk_r): Declare.
1180 * manual/examples/twalk.c: New file.
1181 * manual/search.texi (Tree Search Function): Document twalk_r.
1182 * misc/Versions (2.30): Export twalk_r.
1183 (GLIBC_PRIVATE): Export __twalk_r.
1184 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1185 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1186 (twalk_r): Add weak alias.
1187 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1188 (walk_trace): New variable.
1189 (struct twalk_with_twalk_r_closure): Define.
1190 (twalk_with_twalk_r_action): New function.
1191 (twalk_with_twalk_r): Likewise.
1192 (walk_action): Call walk_trace_add.
1193 (walk_tree_with): Rename from walk_tree. Add walk argument.
1194 (walk_tree): New function.
1195 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1196 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1197 Likewise.
1198 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1199 Likewise.
1200 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1201 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1202 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1203 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1204 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1205 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1206 Likewise.
1207 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1208 Likewise.
1209 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1210 Likewise.
1211 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1212 (GLIBC_2.30): Likewise.
1213 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1214 (GLIBC_2.30): Likewise.
1215 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1216 (GLIBC_2.30): Likewise.
1217 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1218 (GLIBC_2.30): Likewise.
1219 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1220 Likewise.
1221 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1222 (GLIBC_2.30): Likewise.
1223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1224 (GLIBC_2.30): Likewise.
1225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1226 (GLIBC_2.30): Likewise.
1227 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1228 (GLIBC_2.30): Likewise.
1229 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1230 Likewise.
1231 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1232 Likewise.
1233 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1234 Likewise.
1235 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1236 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1237 Likewise.
1238 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1239 Likewise.
1240 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1241 Likewise.
1242 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1243 Likewise.
1244
1245 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1246
1247 Make mktime etc. compatible with __time64_t
1248 Keep these functions compatible with Gnulib while adding
1249 __time64_t support. The basic idea is to move private API
1250 declarations from include/time.h to time/mktime-internal.h, since
1251 the former file cannot easily be shared with Gnulib whereas the
1252 latter can.
1253 Also, do some other minor cleanup while in the neighborhood.
1254 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1255 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1256 since Gnulib needs it.
1257 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1258 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1259 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1260 (in_time_t_range): New static function.
1261 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1262 so that glibc users are not tempted to use __time64_t.
1263 * time/mktime-internal.h: Rewrite so that it does both glibc
1264 and Gnulib work. Include time.h if not _LIBC.
1265 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1266 (__time64_t): New type or macro, moved here from
1267 posix/bits/types.h.
1268 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1269 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1270 from include/time.h.
1271 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1272 New macros, taken from GNulib.
1273 (__mktime_internal): New prototype, moved here from include/time.h.
1274 * time/mktime.c (mktime_min, mktime_max, convert_time)
1275 (ranged_convert, __mktime_internal, __mktime64):
1276 * time/timegm.c (__timegm64):
1277 Use __time64_t, not time_t.
1278 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1279 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1280 Rename from mktime.
1281 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1282 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1283 for libc_hidden_def.
1284 Include errno.h.
1285 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1286 Rename from timegm.
1287 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1288
1289 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1290
1291 [BZ #19444]
1292 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1293 from `-Wmaybe-uninitialized'.
1294 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1295
1296 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1297
1298 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1299 function.
1300 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1301 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1302 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1303 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1304 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1305 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1306 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1308 Remove file.
1309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1310 Likewise.
1311 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1312 Likewise.
1313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1314 Likewise.
1315 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1316 New file.
1317 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1318 Likewise.
1319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1320 Likewise.
1321 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1322 Likewise.
1323 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1324 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1325 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1326 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1327 Likewise.
1328 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1329 Likewise.
1330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1331 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1332 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1333 file.
1334 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1335 Likewise.
1336 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1337 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1338 * here.
1339 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1340 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1341 s_ceilf-power5+, and s_ceilf-ppc64.
1342 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1343 file.
1344 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1345 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1346 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1347 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1348 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1349 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1350 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1351
1352 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1353 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1354 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1355
1356 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1357
1358 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1359 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1360 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1361 (sem_getvalue): Likewise.
1362
1363 2019-04-26 Florian Weimer <fweimer@redhat.com>
1364
1365 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1366 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1367
1368 2019-04-26 Florian Weimer <fweimer@redhat.com>
1369
1370 Makeconfig: Move -Wl,-rpath-link options before library references.
1371 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1372 (link-libc): Remove $(link-libc-rpath-link).
1373
1374 2019-04-25 Florian Weimer <fweimer@redhat.com>
1375
1376 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1377 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1378 (+link-static-before-libc): Remove $(CC).
1379 (+link-static, +link-static-tests): Add $(CC).
1380 (+link-before-libc): Remove $(CC).
1381 (+link, +link-pie, +link-pie-printers): Add $(CC).
1382
1383 2019-04-26 Florian Weimer <fweimer@redhat.com>
1384
1385 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1386 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1387 (+link-static-before-libc): Remove $(CC).
1388 (+link-static, +link-static-tests): Add $(CC).
1389 (+link-before-libc): Remove $(CC).
1390 (+link, +link-pie, +link-pie-printers): Add $(CC).
1391
1392 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1393
1394 [BZ#24484]
1395 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1396
1397 2019-04-25 Florian Weimer <fweimer@redhat.com>
1398
1399 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1400 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1401 (bench-link-targets): New variable.
1402 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1403
1404 2019-04-25 Florian Weimer <fweimer@redhat.com>
1405
1406 Also enable BIND_NOW for programs if --enable-bind-now.
1407 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1408 (+link-pie): Use $(link-extra-flags).
1409 (+link-static): Likewise.
1410 [! $(build-pie-default)] (+link): Likewise.
1411 * manual/install.texi (Configuring and compiling): Update
1412 --enable-bind-now description.
1413 * INSTALL: Regenerated.
1414
1415 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1416
1417 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1418 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1419
1420 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1421
1422 [BZ #18465]
1423 * malloc/Makefile (others): Add memusagestat.
1424 ($(objpfx)memusagestat): Delete rule.
1425 (LDLIBS-memusagestat): New variable.
1426
1427 2019-04-24 Florian Weimer <fweimer@redhat.com>
1428
1429 * locale/Makefile (tests-special): Guard setting by
1430 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1431 to run while cross-compiling.
1432
1433 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1434
1435 [BZ #18035]
1436 * elf/Makefile (tests-container): Add tst-pldd.
1437 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1438 (E(find_maps)): Avoid use alloca, use default read file operations
1439 instead of explicit LFS names, and fix infinite loop.
1440 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1441 (get_process_info): Use _Static_assert instead of assert, use default
1442 directory operations instead of explicit LFS names, and free some
1443 leadek pointers.
1444 * elf/tst-pldd.c: New file.
1445
1446 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1447
1448 * malloc/arena.c (do_set_mallopt_check): Removed.
1449
1450 2019-04-23 Florian Weimer <fweimer@redhat.com>
1451
1452 locale: Add LOCPATH diagnostics to the locale program.
1453 * locale/programs/locale.c (setlocale_failed): New variable.
1454 (try_setlocale): New function.
1455 (quote_string): Likewise.
1456 (setlocale_diagnostics): Likewise.
1457 (main): Call try_setlocale instead of setlocale. Call
1458 setlocale_diagnostics.
1459 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1460 (tst-locale-locpath.out): New target.
1461 * locale/tst-locale-locpath.sh: New file.
1462
1463 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1464
1465 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1466 to 2.30 notes.
1467
1468 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1469
1470 [BZ #23741]
1471 * malloc/hooks.c (malloc_check, realloc_check): Use
1472 __builtin_add_overflow on overflow check and adapt to
1473 checked_request2size change.
1474 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1475 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1476 allocation size to PTRDIFF_MAX.
1477 (REQUEST_OUT_OF_RANGE): Remove macro.
1478 (checked_request2size): Change to inline function and limit maximum
1479 requested size to PTRDIFF_MAX.
1480 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1481 maximum allocation size to PTRDIFF_MAX.
1482 (_mid_memalign): Use _int_memalign call for overflow check.
1483 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1484 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1485 limit maximum requested size to PTRDIFF_MAX.
1486 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1487 valloc, pvalloc): Add __attribute_alloc_size__.
1488 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1489 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1490 larger than PTRDIFF_MAX.
1491 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1492 around tests of malloc with negative sizes.
1493 * malloc/tst-posix_memalign.c (do_test): Likewise.
1494 * malloc/tst-pvalloc.c (do_test): Likewise.
1495 * malloc/tst-valloc.c (do_test): Likewise.
1496 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1497 with resulting size allocation larger than PTRDIFF_MAX with
1498 reallocarray_nowarn.
1499 (reallocarray_nowarn): New function.
1500 * NEWS: Mention the malloc function semantic change.
1501
1502 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1503
1504 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1505 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1506
1507 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1508 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1509 * sysdeps/powerpc/fpu/s_fma.c: New file.
1510 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1511
1512 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1513 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1514
1515 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1516 the magic flag store.
1517 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1518 Likewise.
1519 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1520 Likewise.
1521 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1522 Remove rt_sigreturn call.
1523
1524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1525 Remove rt_sigreturn call.
1526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1527 Likewise.
1528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1530
1531 * support/Makefile (libsupport-routines): Add support_subprocess,
1532 xposix_spawn, xposix_spawn_file_actions_addclose, and
1533 xposix_spawn_file_actions_adddup2.
1534 (tst-support_capture_subprocess-ARGS): New rule.
1535 * support/capture_subprocess.h (support_capture_subprogram): New
1536 prototype.
1537 * support/support_capture_subprocess.c (support_capture_subprocess):
1538 Refactor to use support_subprocess and support_capture_poll.
1539 (support_capture_subprogram): New function.
1540 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1541 str_to_write_mode, test_common, parse_int, handle_restart,
1542 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1543 (do_test): Add support_capture_subprogram tests.
1544 * support/subprocess.h: New file.
1545 * support/support_subprocess.c: Likewise.
1546 * support/xposix_spawn.c: Likewise.
1547 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1548 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1549 * support/xspawn.h: Likewise.
1550
1551 2019-04-17 Mike Gerow <gerow@google.com>
1552
1553 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1554 groups limit.
1555
1556 2019-04-11 Florian Weimer <fweimer@redhat.com>
1557
1558 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1559 domain with empty string.
1560 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1561
1562 2019-04-11 Florian Weimer <fweimer@redhat.com>
1563
1564 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1565 comment.
1566 (alloc_buffer_next): Change return type to non-const. Update
1567 comment.
1568
1569 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1570
1571 * manual/time.texi (Formatting Calendar Time): Add missing percent
1572 sign to conversion specifier.
1573
1574 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1575 Kwok Cheung Yeung <kcy@codesourcery.com>
1576
1577 [BZ #16573]
1578 * malloc/mtrace.c: Define prototypes for all hooks.
1579 (set_default_hooks): New function.
1580 (set_trace_hooks): Likewise.
1581 (save_default_hooks): Likewise.
1582 (tr_freehook): Use new s*_hooks functions.
1583 (tr_mallochook): Likewise.
1584 (tr_reallochook): Likewise.
1585 (tr_memalignhook): Likewise.
1586 (mtrace): Likewise.
1587 (muntrace): Likewise.
1588
1589 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1590
1591 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1592 (generic_stpcpy): New function.
1593 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1594 (generic_stpncpy): New function.
1595 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1596 (generic_strcat): New function.
1597 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1598 (generic_strcpy): New function.
1599 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1600 (STUPID_STRNCAT): Remove function.
1601 (generic_strncat): New function.
1602 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1603 (STUPID_STRNCPY): Remove function.
1604 (generic_strncpy): New function.
1605 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1606 (generic_strnlen): New function.
1607 (memchr_strnlen): New function.
1608 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1609 (memchr_strlen): Likewise.
1610
1611 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1612
1613 * benchtests/bench-strstr.c (input): Add realistic input text.
1614 (stupid_strstr): Remove function.
1615 (basic_strstr): Add function.
1616 (twoway_strstr): Add function.
1617 (do_one_test): Add result checking.
1618 (do_test): Use new input text. Remove accidental early matches.
1619 (test_main): Improve range of tests, reduce unaligned cases.
1620
1621 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1622
1623 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1624 (basic_memmem): Add function.
1625 (twoway_memmem): Add function.
1626
1627 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1628
1629 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1630 * benchtests/bench-malloc-thread.c: Likewise.
1631 * benchtests/bench-skeleton.c: Likewise.
1632 * benchtests/bench-strtod.c: Likewise.
1633 * benchtests/bench-timing.h: Likewise.
1634
1635 2019-04-08 Florian Weimer <fweimer@redhat.com>
1636
1637 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1638 definitions.
1639 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1640 RES_INSECURE2 security checks.
1641 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1642 RES_INSECURE2 handling.
1643
1644 2019-04-08 Florian Weimer <fweimer@redhat.com>
1645
1646 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1647 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1648 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1649 GETHOSTBYNAME.
1650 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1651 (tests-internal): Update justification for tst-resolv-res_init,
1652 tst-resolv-res_init-thread.
1653 (tst-res_use_inet6): Remove target.
1654 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1655 * resolv/res_debug.c (p_option): Remove "inet6" support.
1656 * resolv/res_init.c (res_setoptions): Likewise.
1657 * resolv/res_use_inet6.h: Remove file.
1658 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1659 definition.
1660 (res_use_inet6): Always return false.
1661 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1662 * resolv/resolv_context.h: Adjust file comment.
1663 (struct resolv_context): Update comment on __next field.
1664 (__resolv_context_put): Update comment.
1665 * resolv/tst-res_use_inet6.c: Remove file.
1666 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1667 "inet6" support.
1668 (test_cases): Adjust test case.
1669 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1670 (thread_byname2_af_inet6): Use old byname_inet6 code.
1671 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1672 (gai): Remove do_inet6 argument.
1673 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1674 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1675 (thread_gai_unspec_inet6): Remove functions.
1676 (do_test): Adjust thread_funcs.
1677 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1678 RES_USE_INET6 flag.
1679 (gaih_inet): Do not disable RES_USE_INET6 flag.
1680
1681 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1682
1683 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1684 and remove redundant code.
1685
1686 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1687
1688 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1689 New rule.
1690 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1691 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1692 Likewise.
1693 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1694 Likewise.
1695 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1696 Likewise.
1697 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1698 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1699 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1700 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1701 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1702 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1703 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1704 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1705 wcsrchr-power7.
1706 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1707 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1708 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1709 Remove wcsrchr optimizations.
1710 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1711
1712 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1713 the loop unroll.
1714
1715 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1716 New rule.
1717 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1718 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1719 Likewise.
1720 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1721 Likewise.
1722 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1723 Likewise.
1724 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1725 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1726 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1727 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1728 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1729 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1730 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1731 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1732 wcschr-power7.
1733 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1734 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1735 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1736 Remove wcschr optimizations.
1737 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1738
1739 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1740 the loop unroll.
1741
1742 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1743 New rule.
1744 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1745 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1746 Likewise.
1747 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1748 Likewise.
1749 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1750 Likewise.
1751 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1752 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1753 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1754 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1755 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1756 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1757 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1758 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1759 wcscpy-power7.
1760 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1761 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1762 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1763 Remove wcscpy optimizations.
1764 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1765
1766 * include/loop_unroll.h: New file.
1767 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1768 besides generic implementation.
1769
1770 2019-04-03 DJ Delorie <dj@redhat.com>
1771
1772 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1773 snprintf truncating output.
1774
1775 2019-04-02 DJ Delorie <dj@redhat.com>
1776
1777 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1778 warning.
1779
1780 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1781
1782 [BZ #22964]
1783 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1784 era.
1785 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1786 (mkreftable): Add rules for the new Japanese era and the new dates.
1787
1788 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1789 Rafal Luzynski <digitalfreak@lingonborough.com>
1790
1791 * time/tst-strftime2.c (date_t): Explicitly define the type.
1792 (dates): Use natural month and year numbers to express a date.
1793 (is_before): New function to compare dates.
1794 (mkreftable): Minor improvements to simplify maintenance.
1795 (do_test): Reflect the changes in dates array.
1796
1797 [BZ #24293]
1798 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1799 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1800 * time/tst-strftime2.c (locales): Likewise.
1801 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1802 2010-04-01, and 2011-04-01.
1803 (mkreftable): Add rules for the new locales and the new dates.
1804
1805 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1806
1807 * localedata/locales/ja_JP: Add comments to era entries.
1808
1809 2019-04-01 DJ Delorie <dj@redhat.com>
1810
1811 [BZ #24394]
1812 * time/strptime_l.c (%Ey): Fix fencepost error.
1813 * time/tst-strftime3.c: New.
1814 * time/Makefile (tests): Add tst-strftime3.
1815
1816 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1817
1818 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1819 conditional branch to DIVBYZERO. Fix unwind info.
1820 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1821 excb after conditional branch to $powerof2. Add missing unop
1822 instructions and .align directives and reorder instructions to
1823 match __divqu.
1824
1825 2019-04-01 Richard Henderson <rth@twiddle.net>
1826
1827 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1828 Do not redefine.
1829 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1830 Do not redefine.
1831
1832 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1833
1834 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1835 $libc_cv_riscv_float_abi in `test' invocation.
1836 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1837
1838 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1839
1840 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1841 asm with builtin.
1842 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1843 Likewise.
1844 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1845 (_GET_SI_FPSCR): Likewise.
1846 (_SET_SI_FPSCR): Likewise.
1847
1848 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1849
1850 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1851 clang 2.8.
1852 (signbit): Use builtin for clang 3.3.
1853 (isinf): Use builtin for clang 3.7.
1854
1855 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1856
1857 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1858
1859 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1860
1861 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1862 quote in printf.
1863
1864 2019-03-25 Mike Crowe <mac@mcrowe.com>
1865
1866 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1867 pthread_rwlock_timedrdlock with calls to
1868 pthread_rwlock_timedwrlock to ensure that the latter is tested
1869 too. Use new function name in diagnostic messages too.
1870
1871 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1872 (do_test) Use libsupport test macros rather than hand-coded
1873 conditionals and error messages. Ensure that sem_init returns zero
1874 rather than not -1. Use <support/test-driver.c> rather than
1875 test-skeleton.c.
1876
1877 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1878 test macros rather than hand-coded conditionals and error messages.
1879 Use <support/test-driver.c> rather than test-skeleton.c.
1880
1881 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1882
1883 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1884
1885 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1886 (NT_MIPS_MSA): Likewise.
1887
1888 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1889
1890 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1891 * benchtests/README: Update description.
1892 * benchtests/bench-timing.h: Default to hp-timing.
1893 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1894 HP_TIMING_PRINT): Remove.
1895 (HP_TIMING_NOW): Add generic implementation.
1896 (hp_timing_t): Change to uint64_t.
1897
1898 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1899 HP_TIMING_INLINE.
1900 * nptl/descr.h: Likewise.
1901 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1902 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1903 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1904 Abstract hp-timing usage with RTLD_* macros.
1905 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1906 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1907 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1908 HP_TIMING_NONAVAIL): Likewise.
1909 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1910 Likewise.
1911 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1912 HP_SMALL_TIMING_AVAIL): Likewise.
1913 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1914 HP_SMALL_TIMING_AVAIL): Likewise.
1915 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1916 HP_SMALL_TIMING_AVAIL): Likewise.
1917 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1918 HP_SMALL_TIMING_AVAIL): Likewise.
1919 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1920 Likewise.
1921 * sysdeps/generic/hp-timing-common.h: Update comment with
1922 HP_TIMING_AVAIL removal.
1923
1924 * include/random-bits.h: New file.
1925 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1926 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1927 random_bits.
1928 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1929 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1930 Likewise.
1931
1932 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1933 * rt/Makefile (clock-routines): Remove get_clockfreq.
1934 * rt/get_clockfreq.c: Remove file.
1935 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1936 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1937 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1938 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1939 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1940
1941 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1942 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1943 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1944 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1945 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1946
1947 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1948 pthread_clock_settime.
1949 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1950 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1951 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1952 * elf/rtld.c (_dl_start_final): Likewise.
1953 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1954 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1955 Remove.
1956 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1957 (_dl_cpuclock_offset): Remove.
1958 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1959 cpuclock_offset_ununsed.
1960 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1961 cpuclock_offset set.
1962 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1963 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1964 * nptl/pthread_clock_gettime.c: Remove file.
1965 * nptl/pthread_clock_settime.c: Likewise.
1966 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1967 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1968 and CLOCK_PROCESS_CPUTIME_ID support.
1969 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1970 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1971 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1972 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1973 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1974 Likewise.
1975 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1976
1977 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1978
1979 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1980 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1981 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1982 New defines.
1983 * sysdeps/s390/memmem-arch13.S: New file.
1984 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1985 if it is only used as fallback.
1986 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1987 * sysdeps/s390/multiarch/ifunc-impl-list.c
1988 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1989
1990 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1991
1992 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1993 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1994 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1995 New defines.
1996 * sysdeps/s390/multiarch/ifunc-impl-list.c
1997 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1998 * sysdeps/s390/strstr-arch13.S: New file.
1999 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
2000 if it is only used as fallback.
2001 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
2002
2003 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2004
2005 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
2006 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
2007 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
2008 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
2009 ifunc selector.
2010 * sysdeps/s390/multiarch/ifunc-impl-list.c
2011 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
2012 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
2013 S390_IS_ARCH13_MIE3): New defines.
2014
2015 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2016
2017 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
2018 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
2019 * sysdeps/s390/configure.ac: Add checks for arch13 support.
2020 * sysdeps/s390/configure: Regenerated.
2021
2022 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
2023
2024 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
2025 Add vxe2, vxp, dflt, sort flags.
2026 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
2027 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
2028 capabilities.
2029 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
2030 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
2031 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
2032 HWCAP_S390_DFLT): Define.
2033
2034 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2035
2036 [BZ #24372]
2037 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
2038 of compiler warning.
2039 * locale/programs/ld-collate.c (collate_output): Likewise.
2040
2041 2019-03-21 DJ Delorie <dj@redhat.com>
2042
2043 [BZ #24372]
2044 * iconv/iconvconfig.c (write_output): Replace floating point math
2045 with integer math to avoid imprecise results.
2046 * locale/programs/ld-collate.c (collate_output): Likewise.
2047
2048 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
2049
2050 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
2051 Add HWCAP_S390_VX and HWCAP_S390_VXE.
2052
2053 2019-03-20 mansayk <6688000@gmail.com>
2054
2055 [BZ #24296]
2056 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
2057 (abday): Likewise, but remove the trailing dots.
2058
2059 2019-03-19 Joseph Myers <joseph@codesourcery.com>
2060
2061 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
2062 macro.
2063 (HWCAP_PACA): Likewise.
2064 (HWCAP_PACG): Likewise.
2065 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2066 Increase to 32.
2067 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
2068
2069 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2070
2071 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
2072 should be handled.
2073
2074 2019-03-15 Joseph Myers <joseph@codesourcery.com>
2075
2076 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2077 version to 5.0.
2078 (old_getpagesize): New syscall.
2079
2080 2019-03-15 Felix Yan <felixonmars@archlinux.org>
2081
2082 [BZ #24293]
2083 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
2084 * localedata/locales/cmn_TW (era): Likewise.
2085 * localedata/locales/hak_TW (era): Likewise.
2086 * localedata/locales/lzh_TW (era): Likewise.
2087 * localedata/locales/nan_TW (era): Likewise.
2088
2089 2019-03-14 Adam Maris <amaris@redhat.com>
2090
2091 * malloc/malloc.c (_int_malloc): Check for large bin list
2092 corruption when inserting unsorted chunk.
2093
2094 2019-03-14 Florian Weimer <fweimer@redhat.com>
2095
2096 Remove obsolete, never-implemented XSI STREAMS declarations.
2097 * manual/terminal.texi (Allocation): Remove portability note and
2098 adjust example.
2099 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
2100 _SC_STREAMS.
2101 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
2102 * sysdeps/unix/inet/Subdirs (streams): Remove.
2103 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
2104 (conformtest-headers-UNIX98): Likewise.
2105 (conformtest-headers-XOPEN2K): Likewise.
2106 (conformtest-headers-POSIX2008): Likewise.
2107 * posix/compat-streams.c: New file.
2108 * posix/Makefile (routines): Add it.
2109 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
2110 getpmsg, isastream, putmsg, putpmsg.
2111 (GLIBC_2.30): New section.
2112 * bits/stropts.h: Remove file.
2113 * bits/xtitypes.h: Likewise.
2114 * conform/data/stropts.h-data: Likewise.
2115 * include/stropts.h: Likewise.
2116 * include/sys/stropts.h: Likewise.
2117 * include/xtitypes.h: Likewise.
2118 * streams/Makefile: Likewise.
2119 * streams/fattach.c: Likewise.
2120 * streams/fdetach.c: Likewise.
2121 * streams/getmsg.c: Likewise.
2122 * streams/getpmsg.c: Likewise.
2123 * streams/isastream.c: Likewise.
2124 * streams/putmsg.c: Likewise.
2125 * streams/putpmsg.c: Likewise.
2126 * streams/stropts.h: Likewise.
2127 * streams/sys/stropts.h: Likewise.
2128 * sysdeps/ia64/bits/xtitypes.h: Likewise.
2129 * sysdeps/s390/bits/xtitypes.h: Likewise.
2130 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
2131 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
2132 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
2133 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
2134 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
2135 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
2136 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
2137 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
2138 * sysdeps/x86/bits/xtitypes.h: Likewise.
2139
2140 2019-03-14 Florian Weimer <fweimer@redhat.com>
2141
2142 * nss/tst-nss-files-alias-truncated.c (do_test): Load
2143 libnss_files.
2144 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
2145 but not with libnss_files.
2146 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2147
2148 2019-03-14 Zack Weinberg <zackw@panix.com>
2149
2150 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2151 Specify encoding="utf-8" when opening headers to check.
2152
2153 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2154
2155 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2156 version to 5.0.
2157 (Context.checkout_tar): Handle variable major version for Linux
2158 kernel.
2159
2160 2019-03-13 Florian Weimer <fweimer@redhat.com>
2161
2162 [BZ #24047]
2163 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2164
2165 2019-03-13 Zack Weinberg <zackw@panix.com>
2166
2167 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2168 Move to stdlib.
2169 * include/inttypes.h: Adjust to match.
2170 * include/stdint.h: New wrapper.
2171
2172 2019-03-13 Zack Weinberg <zackw@panix.com>
2173
2174 * scripts/check-obsolete-constructs.py: New test script.
2175 * scripts/check-installed-headers.sh: Remove tests for
2176 obsolete typedefs, superseded by check-obsolete-constructs.py.
2177 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2178 as a special test. Update commentary.
2179 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2180 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2181 Update commentary.
2182 * posix/sys/types.h (__u_intN_t): Remove.
2183 (u_int8_t): Typedef using __uint8_t.
2184 (u_int16_t): Typedef using __uint16_t.
2185 (u_int32_t): Typedef using __uint32_t.
2186 (u_int64_t): Typedef using __uint64_t.
2187
2188 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2189
2190 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2191 call _dl_procinfo.
2192 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2193 Ignore types other than AT_HWCAP.
2194 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2195 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2196 Likewise.
2197 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2198 in the case of falling back to generic output mechanism.
2199 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2200 Likewise.
2201
2202 2019-03-12 Florian Weimer <fweimer@redhat.com>
2203
2204 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2205
2206 2019-03-12 Florian Weimer <fweimer@redhat.com>
2207
2208 [BZ #24047]
2209 resolv: Enable full ICMP errors for UDP DNS sockets
2210 * resolv/res_enable_icmp.c: New file.
2211 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2212 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2213 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2214 socket.
2215
2216 2019-03-11 Mao Han <han_mao@c-sky.com>
2217
2218 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2219 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2220
2221 2019-03-11 Mao Han <han_mao@c-sky.com>
2222
2223 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2224 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2225 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2226
2227 2019-03-11 Mao Han <han_mao@c-sky.com>
2228
2229 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2230 directly.
2231 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2232 definition.
2233
2234 2019-03-11 Mao Han <han_mao@c-sky.com>
2235
2236 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2237 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2238 in mcontext_t
2239
2240 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2241
2242 [BZ #24307]
2243 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2244 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2245 Unicode 12.0.0.
2246 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2247 * localedata/unicode-gen/PropList.txt: Likewise.
2248 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2249 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2250 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2251 * localedata/charmaps/UTF-8: Regenerate.
2252 * localedata/locales/i18n_ctype: Likewise.
2253 * localedata/locales/tr_TR: Likewise.
2254 * localedata/locales/translit_circle: Likewise.
2255 * localedata/locales/translit_cjk_compat: Likewise.
2256 * localedata/locales/translit_combining: Likewise.
2257 * localedata/locales/translit_compat: Likewise.
2258 * localedata/locales/translit_font: Likewise.
2259 * localedata/locales/translit_fraction: Likewise.
2260
2261 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2262
2263 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2264 than after operators.
2265 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2266 (setitimer_locked): Likewise.
2267 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2268 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2269 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2270 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2271 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2272 (PPC_CPU_SUPPORTED): Likewise.
2273 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2274 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2275 (stat_overflow): Likewise.
2276 (statfs_overflow): Likewise.
2277 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2278 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2279 (eq_ttyname_r): Likewise.
2280 (run_chroot_tests): Likewise.
2281
2282 2019-03-07 Florian Weimer <fweimer@redhat.com>
2283
2284 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2285 header check.
2286
2287 2019-03-07 Martin Liska <mliska@suse.cz>
2288
2289 * math/Makefile: Change location where math-vector-fortran.h is
2290 installed.
2291 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2292 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2293 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2294 * scripts/check-installed-headers.sh: Skip Fortran header files.
2295 * scripts/check-wrapper-headers.py: Likewise.
2296
2297 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2298
2299 * nptl/nptl-init.c (__have_futex_clock_realtime,
2300 __have_futex_clock_realtime): Remove definition.
2301 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2302 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2303 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2304 __ASSUME_FUTEX_CLOCK_REALTIME support.
2305 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2306 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2307 * sysdeps/unix/sysv/linux/kernel-features.h
2308 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2309 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2310 Adjust comment.
2311
2312 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2313
2314 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2315 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2316 __GI___wcscpy and wcscpy.
2317
2318 2019-03-04 Florian Weimer <fweimer@redhat.com>
2319
2320 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2321 declaration.
2322 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2323 defined.
2324
2325 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2326
2327 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2328 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2329
2330 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2331
2332 [BZ #24162]
2333 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2334 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2335
2336 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2337
2338 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2339 tests.
2340 (do_test): Likewise.
2341 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2342 (do_test_call_varg): Likewise.
2343 (do_test_call_rarg): Likewise.
2344 * sysdeps/ieee754/ldbl-opt/Makefile
2345 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2346 tst-nldbl-error.
2347 ($(objpfx)tst-nldbl-warn.c): New rule.
2348 ($(objpfx)tst-nldbl-error.c): Likewise.
2349 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2350 New variables.
2351
2352 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2353
2354 [BZ #23984]
2355 * include/bits/error-ldbl.h: New file.
2356 * include/error.h: Include stdarg.h. Declare internal functions
2357 __error_internal and __error_at_line_internal.
2358 * misc/Makefile (headers): Add bits/error-ldbl.h.
2359 * misc/bits/error-ldbl.h: New file.
2360 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2361 avoid the inclusion of bits/error.h.
2362 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2363 and __nldbl_error_at_line.
2364 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2365 (__nldbl_error, __ndlbl_error_at_line): New functions.
2366 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2367 Redirect error and error_at_line.
2368 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2369 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2370 Likewise.
2371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2372 Likewise.
2373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2374 Likewise.
2375 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2376 Likewise.
2377 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2378 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2379 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2380
2381 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2382
2383 [BZ #23984]
2384 * include/bits/err-ldbl.h: New file.
2385 * include/err.h: Add prototypes for the internal functions:
2386 __vwarnx_internal and __vwarn_internal.
2387 * misc/Makefile (headers): Add bits/err-ldbl.h.
2388 * misc/bits/err-ldbl.h: New file.
2389 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2390 defined, i.e.: when -mlong-double-64 is in use.
2391 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2392 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2393 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2394 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2395 (VA_CALL): New macro.
2396 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2397 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2398 functions.
2399 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2400 declare prototypes for the new functions.
2401 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2403 Likewise.
2404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2405 Likewise.
2406 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2407 Likewise.
2408 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2409 Likewise.
2410 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2411 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2412 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2413
2414 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2415
2416 * sysdeps/ieee754/ldbl-opt/Makefile
2417 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2418 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2419 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2420
2421 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2422
2423 [BZ #23983]
2424 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2425 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2426 * argp/bits/argp-ldbl.h: New file.
2427 * include/argp.h: Include stdarg.h. Add prototypes for internal
2428 functions: __argp_error_internal and __argp_failure_internal.
2429 * include/bits/argp-ldbl.h: New file.
2430 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2431 __nldbl_argp_error and __nldbl_argp_failure.
2432 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2433 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2434 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2435 Redirect argp_error and argp_failure calls.
2436 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2437 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2438 Likewise.
2439 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2440 Likewise.
2441 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2442 Likewise.
2443 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2444 Likewise.
2445 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2446 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2447 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2448
2449 2019-03-01 Florian Weimer <fweimer@redhat.com>
2450
2451 [BZ #20419]
2452 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2453 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2454 code, to avoid creating an ABI tag note.
2455 (modules-names-nobuild): Add tst-big-note-lib.
2456
2457 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2458
2459 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2460 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2461
2462 2019-03-01 Florian Weimer <fweimer@redhat.com>
2463
2464 [BZ #20271]
2465 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2466 (__netlink_assert_response): Add additional missing newlines.
2467
2468 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2469
2470 * sysdeps/powerpc/powerpc32/dl-machine.c
2471 (__elf_machine_fixup_plt): Use space before '('.
2472 (__process_machine_rela): Likewise.
2473 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2474 Likewise.
2475 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2476 Likewise.
2477 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2478 Likewise.
2479 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2480 (pattern): Likewise.
2481 (delta): Likewise.
2482 (check_result): Likewise.
2483 (check_excepts): Likewise.
2484 (check_op): Likewise.
2485 (fail_xr): Likewise.
2486 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2487 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2488 (SCNHSZ): Likewise.
2489 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2490 Likewise.
2491 (ARGS): Likewise.
2492 (__makecontext): Likewise.
2493 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2494 Likewise.
2495
2496 2019-02-28 Florian Weimer <fweimer@redhat.com>
2497
2498 [BZ #23937]
2499 elf: Add test with a local IFUNC resolver.
2500 * elf/ifuncmain9.c: New file.
2501 * elf/ifuncmain9pic.c: Likewise.
2502 * elf/ifuncmain9picstatic.c: Likewise.
2503 * elf/ifuncmain9pie.c: Likewise.
2504 * elf/ifuncmain9static.c: Likewise.
2505 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2506 ifuncmain9static, ifuncmain9picstatic.
2507 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2508 Add ifuncmain9, ifuncmain9pic.
2509 * elf/Makefile [multi-arch && build-shared && have-fpie]
2510 (ifunc-pie-tests): Add ifuncmain9pie.
2511 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2512 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2513 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2514
2515 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2516
2517 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2518 * configure: Regenerated.
2519 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2520
2521 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2522
2523 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2524 symbol as __wcspcy instead of wcscpy.
2525
2526 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2527
2528 * include/stdio.h (__renameat2): New hidden prototype.
2529 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2530 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2531 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2532 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2533
2534 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2535
2536 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2537 if statement.
2538
2539 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2540 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2541 * benchtests/bench-strlen.c (do_test): Likewise.
2542 (test_main): Likewise.
2543 * catgets/gencat.c (read_old): Likewise.
2544 * elf/cache.c (load_aux_cache): Likewise.
2545 * iconvdata/bug-iconv8.c (do_test): Likewise.
2546 * math/test-tgmath-ret.c (do_test): Likewise.
2547 * nis/nis_call.c (rec_dirsearch): Likewise.
2548 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2549 * nptl/tst-audit-threads.c (do_test): Likewise.
2550 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2551 * nss/nss_test1.c (init): Likewise.
2552 * nss/test-netdb.c (test_hosts): Likewise.
2553 * posix/execvpe.c (maybe_script_execute): Likewise.
2554 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2555 * stdio-common/tst-printf.c (do_test): Likewise.
2556 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2557 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2558 * stdlib/qsort.c (STACK_SIZE): Likewise.
2559 * stdlib/test-canon.c (do_test): Likewise.
2560 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2561 * string/memcmp.c (OPSIZ): Likewise.
2562 * string/test-strcpy.c (do_test): Likewise.
2563 (do_random_tests): Likewise.
2564 * string/test-strlen.c (do_test): Likewise.
2565 (test_main): Likewise.
2566 * string/test-strrchr.c (do_test): Likewise.
2567 (do_random_tests): Likewise.
2568 * string/tester.c (test_memrchr): Likewise.
2569 (test_memchr): Likewise.
2570 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2571 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2572 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2573 (read_encoded_value_with_base): Likewise.
2574 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2575 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2576 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2577 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2578 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2579 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2580 Likewise.
2581 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2582 Likewise.
2583 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2584 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2585 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2586 Likewise.
2587 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2588 Likewise.
2589 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2590 Likewise.
2591 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2592 Likewise.
2593 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2594 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2595 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2596 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2597 * time/test_time.c (main): Likewise.
2598
2599 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2600
2601 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2602
2603 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2604 wmemcpy.
2605
2606 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2607 wmemcpy.
2608
2609 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2610
2611 * include/wchar.h (__wcscpy): New prototype.
2612 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2613 (__wcscpy): Route internal symbol to generic implementation.
2614 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2615 Add internal __wcscpy alias.
2616 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2617 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2618 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2619 * wcsmbs/wcscpy.c (wcscpy): Add
2620 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2621 use generic implementation.
2622 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2623
2624 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2625 wmemset.
2626
2627 * sysdeps/m68k/wcpcpy.c: Remove file.
2628 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2629
2630 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2631
2632 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2633 than after operators.
2634 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2635 * sysdeps/mach/hurd/getcwd.c
2636 (__hurd_canonicalize_directory_name_internal): Likewise.
2637 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2638 (pthread_mutex_consistent): Likewise.
2639 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2640 Likewise.
2641 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2642 (__pthread_mutex_transfer_np): Likewise.
2643 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2644 (__pthread_mutex_unlock): Likewise.
2645 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2646 (mtx_owned_p): Likewise.
2647 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2648 (pthread_mutexattr_getrobust): Likewise.
2649 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2650 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2651 Likewise.
2652 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2653 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2654 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2655 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2656 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2657 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2658 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2659 Likewise.
2660 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2661 Likewise.
2662 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2663 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2664 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2665 (____longjmp_chk): Likewise.
2666 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2667 Likewise.
2668 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2669 (INTERNAL_SYSCALL): Likewise.
2670 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2671 (INTERNAL_SYSCALL): Likewise.
2672 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2673 (__get_clockfreq_via_cpuinfo): Likewise.
2674
2675 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2676 comments.
2677 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2678 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2679 (WORD_COPY_BWD): Likewise.
2680 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2681 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2682 Likewise.
2683 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2684 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2685 comment.
2686 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2687
2688 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2689
2690 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2691 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2692 rather than after operators.
2693 * elf/cache.c (print_cache): Likewise.
2694 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2695 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2696 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2697 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2698 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2699 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2700 (reauth_proc): Likewise.
2701 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2702 (__file_name_split_at): Likewise.
2703 (__directory_name_split_at): Likewise.
2704 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2705 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2706 * iconv/gconv_dl.c (do_print): Likewise.
2707 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2708 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2709 * locale/setlocale.c (new_composite_name): Likewise.
2710 * malloc/memusagestat.c (main): Likewise.
2711 * misc/fstab.c (fstab_convert): Likewise.
2712 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2713 Likewise.
2714 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2715 (getgrent_next_file): Likewise.
2716 (internal_getgrnam_r): Likewise.
2717 (internal_getgrgid_r): Likewise.
2718 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2719 Likewise.
2720 (internal_getgrent_r): Likewise.
2721 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2722 (getpwent_next_nss): Likewise.
2723 (getpwent_next_file): Likewise.
2724 (internal_getpwnam_r): Likewise.
2725 (internal_getpwuid_r): Likewise.
2726 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2727 Likewise.
2728 (getspent_next_nss): Likewise.
2729 (internal_getspnam_r): Likewise.
2730 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2731 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2732 * string/strchr.c (STRCHR): Likewise.
2733 * string/strchrnul.c (STRCHRNUL): Likewise.
2734 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2735 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2736 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2737 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2738 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2739 Likewise.
2740 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2741 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2742 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2743 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2744 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2745 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2746 (open_file): Likewise.
2747 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2748 (pthread_mutexattr_setprotocol): Likewise.
2749 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2750 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2751 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2752 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2753 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2754 Likewise.
2755 (elf_machine_rela): Likewise.
2756 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2757 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2758 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2759 * sysdeps/posix/rename.c (rename): Likewise.
2760 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2761 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2762 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2763 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2764 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2765 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2766 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2767 Likewise.
2768 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2769 Likewise.
2770 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2771 * time/tzfile.c (__tzfile_compute): Likewise.
2772
2773 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2774
2775 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2776 rather than after operators.
2777 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2778 * crypt/md5.c (md5_finish_ctx): Likewise.
2779 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2780 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2781 * elf/cache.c (load_aux_cache): Likewise.
2782 * elf/dl-load.c (open_verify): Likewise.
2783 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2784 * elf/readelflib.c (process_elf_file): Likewise.
2785 * elf/rtld.c (dl_main): Likewise.
2786 * elf/sprof.c (generate_call_graph): Likewise.
2787 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2788 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2789 * hurd/dtable.c (reauth_dtable): Likewise.
2790 * hurd/getdport.c (__getdport): Likewise.
2791 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2792 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2793 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2794 Likewise.
2795 * hurd/hurdioctl.c (fioctl): Likewise.
2796 * hurd/hurdselect.c (_hurd_select): Likewise.
2797 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2798 (STOPSIGS): Likewise.
2799 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2800 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2801 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2802 * hurd/msgportdemux.c (msgport_server): Likewise.
2803 * hurd/setauth.c (_hurd_setauth): Likewise.
2804 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2805 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2806 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2807 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2808 * login/tst-utmp.c (do_check): Likewise.
2809 (simulate_login): Likewise.
2810 * mach/lowlevellock.h (lll_lock): Likewise.
2811 (lll_trylock): Likewise.
2812 * math/test-fenv.c (ALL_EXC): Likewise.
2813 * math/test-fenvinline.c (ALL_EXC): Likewise.
2814 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2815 * nis/nis_call.c (__do_niscall3): Likewise.
2816 * nis/nis_callback.c (cb_prog_1): Likewise.
2817 * nis/nis_defaults.c (searchaccess): Likewise.
2818 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2819 * nis/nis_ismember.c (internal_ismember): Likewise.
2820 * nis/nis_local_names.c (nis_local_principal): Likewise.
2821 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2822 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2823 Likewise.
2824 * nis/ypclnt.c (yp_match): Likewise.
2825 (yp_first): Likewise.
2826 (yp_next): Likewise.
2827 (yp_master): Likewise.
2828 (yp_order): Likewise.
2829 * nscd/hstcache.c (cache_addhst): Likewise.
2830 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2831 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2832 (internal_getpwuid_r): Likewise.
2833 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2834 * posix/glob.h (__GLOB_FLAGS): Likewise.
2835 * posix/regcomp.c (peek_token): Likewise.
2836 (peek_token_bracket): Likewise.
2837 (parse_expression): Likewise.
2838 * posix/regexec.c (sift_states_iter_mb): Likewise.
2839 (check_node_accept_bytes): Likewise.
2840 * posix/tst-spawn3.c (do_test): Likewise.
2841 * posix/wordexp-test.c (testit): Likewise.
2842 * posix/wordexp.c (parse_tilde): Likewise.
2843 (exec_comm): Likewise.
2844 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2845 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2846 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2847 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2848 * stdio-common/tst-fileno.c (do_test): Likewise.
2849 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2850 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2851 * stdlib/strtod_l.c (round_and_return): Likewise.
2852 (____STRTOF_INTERNAL): Likewise.
2853 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2854 * string/strcspn.c (STRCSPN): Likewise.
2855 * string/test-memmem.c (simple_memmem): Likewise.
2856 * termios/tcsetattr.c (tcsetattr): Likewise.
2857 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2858 * time/asctime.c (asctime_internal): Likewise.
2859 * time/strptime_l.c (__strptime_internal): Likewise.
2860 * time/sys/time.h (timercmp): Likewise.
2861 * time/tzfile.c (__tzfile_compute): Likewise.
2862
2863 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2864
2865 [BZ #21915]
2866 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2867
2868 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2869
2870 * argp/argp-help.c (__argp_error_internal): New function,
2871 renamed from __argp_error, but that takes a 'mode_flags'
2872 parameter to control the format of long double parameters.
2873 (__argp_error): Converted into a call __argp_error_internal.
2874 (__argp_failure_internal): New function, renamed from
2875 __argp_failure, but that takes a 'mode_flags' parameter.
2876 (__argp_failure): Converted into a call __argp_failure_internal.
2877 * misc/err.c (__vwarnx_internal): New function, renamed from
2878 vwarnx, but that takes a 'mode_flags' parameter.
2879 (vwarnx): Converted into a call to __vwarnx_internal.
2880 (__vwarn_internal): New function, renamed from vwarn, but that
2881 takes a 'mode_flags' parameter.
2882 (vwarn): Converted into a call to __vwarn_internal.
2883 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2884 call to __vfxprintf with 'mode_flags'.
2885 (__error_internal): New function, renamed from error, but that
2886 takes a 'mode_flags' parameter.
2887 (error): Converted into a call to __error_internal.
2888 (__error_at_line_internal): New function, renamed from
2889 error_at_line, but that takes a 'mode_flags' parameter.
2890 (error_at_line): Converted into a call to
2891 __error_at_line_internal.
2892 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2893 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2894 Likewise.
2895
2896 2019-02-20 Martin Liska <mliska@suse.cz>
2897
2898 * math/Makefile: Install math-vector-fortran.h.
2899 * bits/math-vector-fortran.h: New file.
2900 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2901
2902 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2903
2904 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2905 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2906
2907 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2908
2909 * nptl/pthread_mutex_trylock.c: Fix comment.
2910
2911 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2912
2913 * nptl/pthread_tryjoin.c: Fix comment.
2914
2915 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2916
2917 [BZ #24231]
2918 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2919 after R_SPARC_H34 case.
2920
2921 2019-02-18 Florian Weimer <fweimer@redhat.com>
2922
2923 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2924 (getanswer): Do not call Dprintf.
2925 (res_gethostbyname2_context): Likewise.
2926 (res_gethostbyaddr_context): Likewise.
2927
2928 2019-02-18 Florian Weimer <fweimer@redhat.com>
2929
2930 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2931 declaration.
2932 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2933 Remove definitions.
2934 * libio/stdfiles.c: Update comment.
2935 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2936 set _IO_stdin, _IO_stdout, _IO_stderr.
2937 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2938 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2939 inline function.
2940 (_IO_deallocate_file): New inline function.
2941 * libio/iolibio.h (_IO_vprintf): Remove definition.
2942 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2943 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2944 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2945 _IO_legacy_file.
2946 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2947 __builtin_expect. Use _IO_legacy_file.
2948
2949 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2950
2951 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2952 Initialize ctid with a known value and remove update of ctid
2953 after clone.
2954 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2955 as assumed current value of ctid_ptr.
2956
2957 2019-02-16 Florian Weimer <fweimer@redhat.com>
2958
2959 Check that non-sysdeps headers have wrapper headers.
2960 * scripts/check-wrapper-headers.py: New file.
2961 * Makefile (tests-special): Add check-wrapper-headers.out.
2962 (check-wrapper-headers.out): New target.
2963 * Rules (tests-special): Add check-wrapper-headers.out.
2964 (check-wrapper-headers.out): New target.
2965
2966 2019-02-16 Florian Weimer <fweimer@redhat.com>
2967
2968 Add missing header wrappers under include/.
2969 * include/ar.h: New file.
2970 * include/bits/mqueue2.h: Likewise.
2971 * include/bits/stdio.h: Likewise.
2972 * include/bits/stdio2.h: Likewise.
2973 * include/fstab.h: Likewise.
2974 * include/fts.h: Likewise.
2975 * include/lastlog.h: Likewise.
2976 * include/netinet/icmp6.h: Likewise.
2977 * include/netinet/igmp.h: Likewise.
2978 * include/netinet/ip6.h: Likewise.
2979 * include/re_comp.h: Likewise.
2980 * include/regexp.h: Likewise.
2981 * include/rpcsvc/bootparam.h: Likewise.
2982 * include/rpcsvc/yp_prot.h: Likewise.
2983 * include/sys/random.h: Likewise.
2984 * include/sys/stropts.h: Likewise.
2985 * include/sys/ttychars.h: Likewise.
2986 * include/sys/vfs.h: Likewise.
2987 * include/wait.h: Likewise.
2988
2989 2019-02-16 Florian Weimer <fweimer@redhat.com>
2990
2991 * nptl_db/proc_service.h: Move to ...
2992 * sysdeps/nptl/proc_service.h: ... here.
2993 * nptl_db/thread_db.h: Move to ...
2994 * sysdeps/nptl/thread_db.h: ... here.
2995 * nptl/descr.h: Include <thread_db.h>.
2996
2997 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2998
2999 * io/Makefile (tests): Add tst-lockf.
3000 * io/lockf.c (lockf): Use __fcntl and only define for
3001 !__OFF_T_MATCHES_OFF64_T.
3002 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
3003 __OFF_T_MATCHES_OFF64_T case.
3004 * io/tst-lockf.c: New file.
3005 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
3006 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
3007 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
3008 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
3009 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
3010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
3011 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
3012 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
3013 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
3014
3015 2019-02-15 Florian Weimer <fweimer@redhat.com>
3016
3017 [BZ #24211]
3018 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
3019 pd->result after the thread descriptor has been freed.
3020
3021 2019-02-15 Joseph Myers <joseph@codesourcery.com>
3022
3023 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
3024 from function return type.
3025
3026 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
3027
3028 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * scripts/test_printers_common.py: Set TERM to a known harmless
3031 value.
3032
3033 2019-02-14 Joseph Myers <joseph@codesourcery.com>
3034
3035 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
3036 (xdr_u_int): Likewise.
3037 (xdr_enum): Likewise.
3038 (xdr_bytes): Reword fall-through comment.
3039 (xdr_string): Likewise.
3040
3041 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3042
3043 [BZ #2421]
3044 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
3045 (tests): Add tst-join8 tst-join9.
3046 * nptl/lll_timedwait_tid.c: Remove file.
3047 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
3048 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
3049 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
3050 * nptl/pthread_join_common.c (timedwait_tid): New function.
3051 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
3052 is set.
3053 * nptl/tst-join5.c (thread_join): New function.
3054 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
3055 check.
3056 * nptl/tst-join8.c: New file.
3057 * nptl/tst-join9.c: Likewise.
3058 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
3059 lll_futex_timed_wait_cancel): Add generic macros.
3060 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
3061 Remove definitions.
3062 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
3063 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
3064 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3065 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
3066 Remove function.
3067 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
3068 Likewise.
3069 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
3070 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3071 (lll_futex_timed_wait_cancel): New macro.
3072
3073 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
3074
3075 * benchtests/Makefile: Add malloc-simple benchmark.
3076 * benchtests/bench-malloc-simple.c: New benchmark.
3077
3078 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
3079
3080 * benchtests/bench-memmove.c (do_one_test): Remove unused
3081 ORIG_SRC.
3082 (do_test): Adjust.
3083 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
3084 ORIG_SRC.
3085 (do_test): Adjust.
3086
3087 2019-01-13 Jim Wilson <jimw@sifive.com>
3088
3089 [BZ #24040]
3090 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
3091 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
3092 (func): New.
3093 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
3094 call func directly.
3095 * nptl/Makefile (tests): Add tst-unwind-thread.
3096 (CFLAGS-tst-unwind-thread.c): Define.
3097 * nptl/tst-unwind-thread.c: New file.
3098 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
3099 as undefined.
3100
3101 2019-02-13 Joseph Myers <joseph@codesourcery.com>
3102
3103 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
3104 comment wording.
3105 * nis/nis_call.c (__do_niscall3): Likewise.
3106
3107 * catgets/gencat.c (normalize_line): Use braces around empty
3108 'else' body.
3109 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
3110 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
3111 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
3112 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
3113 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
3114 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
3115 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
3116 definition.
3117
3118 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
3119 execlp returns.
3120
3121 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
3122
3123 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
3124 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
3125 * benchtests/bench-strchr.c (stupid_strchr): Remove.
3126 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
3127 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
3128 * benchtests/bench-strlen.c (builtin_strlen): Remove.
3129 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
3130 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
3131 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
3132 * benchtests/bench-strspn.c (stupid_strspn): Remove.
3133 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
3134 * benchtests/bench-bcopy.c: Delete file.
3135 * benchtests/bench-bzero.c: Likewise.
3136 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
3137 (simple_memccpy): Remove.
3138 (generic_memccpy): Add function.
3139 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
3140 * benchtests/bench-memmove.c (simple_bcopy): Remove.
3141 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
3142 (generic_mempcpy): Add new function.
3143 * benchtests/bench-memset.c (simple_bzero): Remove.
3144 (builtin_bzero): Remove.
3145 (builtin_memset): Remove.
3146 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3147 (generic_rawmemchr): Add new function.
3148
3149 2019-02-12 Florian Weimer <fweimer@redhat.com>
3150
3151 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3152
3153 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3154
3155 [BZ #24122]
3156 * elf/Makefile (tests): Add tst-audit13.
3157 (modules-names): Add tst-audit13mod1.
3158 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3159 rule.
3160 * elf/tst-audit13.c: New file.
3161 * elf/tst-audit13mod1.c: Likewise.
3162
3163 2019-02-12 Florian Weimer <fweimer@redhat.com>
3164
3165 [BZ #24122]
3166 * elf/rtld.c (unload_audit_module): New function.
3167 (report_audit_module_load_error): Likewise.
3168 (load_audit_module): Likewise. Extracted from dl_main. Call
3169 _dl_close if the laversion symbol cannot be found. Use early
3170 returns for error handling. Add malloc error check. Check for a
3171 zero return value from la_version. Remove spurious comment about
3172 static TLS initialization. Remove useless casts.
3173 (notify_audit_modules_of_loaded_object): New function. Extracted
3174 from dl_main.
3175 (load_audit_module): Likewise.
3176 (dl_main): Call load_audit_modules.
3177
3178 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3179
3180 * elf/dl-exception.c (_dl_exception_create_format): Add
3181 fall-through comments.
3182 * elf/ldconfig.c (parse_conf_include): Likewise.
3183 * elf/rtld.c (print_statistics): Likewise.
3184 * locale/programs/charmap.c (parse_charmap): Likewise.
3185 * misc/mntent_r.c (__getmntent_r): Likewise.
3186 * posix/wordexp.c (parse_arith): Likewise.
3187 (parse_backtick): Likewise.
3188 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3189 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3190 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3191
3192 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3193
3194 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3195 Use float instead of double.
3196
3197 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3198
3199 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3200
3201 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3202
3203 * sysdeps/powerpc/bits/mathinline.h: Remove.
3204
3205 2019-02-08 Florian Weimer <fweimer@redhat.com>
3206
3207 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3208 * math/bits/math-finite.h: Move to ...
3209 * bits/math-finite.h: ... here.
3210
3211 2019-02-08 Florian Weimer <fweimer@redhat.com>
3212
3213 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3214 * bits/unistd_ext.h: here.
3215
3216 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3217
3218 [BZ #21915]
3219 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3220 * nss/tst-nss-files-hosts-long.c: New file.
3221 * nss/tst-nss-files-hosts-long.root: New directory.
3222 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3223 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3224
3225 2019-02-08 Florian Weimer <fweimer@redhat.com>
3226
3227 * include/bits/unistd_ext.h: Remove file.
3228 * posix/bits/unistd_ext.h: Move to ...
3229 * sysdeps/generic/bits/unistd_ext.h: ... here.
3230
3231 2019-02-08 Florian Weimer <fweimer@redhat.com>
3232
3233 * include/bits/unistd_ext.h: New file.
3234
3235 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3236
3237 * time/tst-strftime2.c: Use array_length macros instead of magic
3238 numbers.
3239
3240 2019-02-08 Florian Weimer <fweimer@redhat.com>
3241
3242 [BZ #24161]
3243 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3244 argument.
3245 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3246 locking if the new do_locking argument is true.
3247 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3248 __run_fork_handlers.
3249
3250 2019-02-08 Florian Weimer <fweimer@redhat.com>
3251
3252 [BZ #6399]
3253 Linux: Add gettid system call wrapper.
3254 * posix/Makefile (headers): Add bits/unistd_ext.h.
3255 * posix/bits/unistd_ext.h: New file.
3256 * posix/unistd.h: Include it.
3257 * manual/process.texi (Process Identification): Document gettid.
3258 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3259 tst-gettid, tst-gettid-kill.
3260 (tst-gettid): Link with $(shared-thread-library).
3261 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3262 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3263 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3264 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3265 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3266 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3267 Add gettid.
3268 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3269 Likewise.
3270 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3271 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3272 Likewise.
3273 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3274 Likewise.
3275 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3276 Likewise.
3277 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3278 Likewise.
3279 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3280 Likewise.
3281 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3282 Likewise.
3283 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3284 Likewise.
3285 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3286 (GLIBC_2.30): Likewise.
3287 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3288 (GLIBC_2.30): Likewise.
3289 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3290 (GLIBC_2.30): Likewise.
3291 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3292 (GLIBC_2.30): Likewise.
3293 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3294 Likewise.
3295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3296 (GLIBC_2.30): Likewise.
3297 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3298 (GLIBC_2.30): Likewise.
3299 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3300 (GLIBC_2.30): Likewise.
3301 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3302 (GLIBC_2.30): Likewise.
3303 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3304 Likewise.
3305 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3306 Likewise.
3307 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3308 Likewise.
3309 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3310 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3311 Likewise.
3312 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3313 Likewise.
3314 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3315 Likewise.
3316 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3317 Likewise.
3318 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3319
3320 2019-02-08 Florian Weimer <fweimer@redhat.com>
3321
3322 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3323 compatibility symbols.
3324
3325 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3326
3327 [BZ #24180]
3328 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3329 Add compiler barriers and comments.
3330
3331 2019-02-07 Florian Weimer <fweimer@redhat.com>
3332
3333 * include/array_length.h (array_length): Do not use a statement
3334 expression and _Static_assert, so that array_length can be used at
3335 file scope and as a constant expression.
3336
3337 2019-02-07 Florian Weimer <fweimer@redhat.com>
3338
3339 * support/xdlfcn.h (xdlmopen): Declare.
3340 * support/xdlmopen.c: New file.
3341 * support/Makefile (libsupport-routines): Add xdlmopen.
3342
3343 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3344
3345 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3346 before return type, without separate inline.
3347 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3348 * elf/dl-tunables.h (tunable_is_name): Likewise.
3349 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3350 (do_set_top_pad): Likewise.
3351 (do_set_mmap_threshold): Likewise.
3352 (do_set_mmaps_max): Likewise.
3353 (do_set_mallopt_check): Likewise.
3354 (do_set_perturb_byte): Likewise.
3355 (do_set_arena_test): Likewise.
3356 (do_set_arena_max): Likewise.
3357 (do_set_tcache_max): Likewise.
3358 (do_set_tcache_count): Likewise.
3359 (do_set_tcache_unsorted_limit): Likewise.
3360 * nis/nis_subr.c (count_dots): Likewise.
3361 * nptl/allocatestack.c (advise_stack_range): Likewise.
3362 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3363 (do_sin): Likewise.
3364 (reduce_sincos): Likewise.
3365 (do_sincos): Likewise.
3366 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3367 (do_set_elision_enable): Likewise.
3368 (TUNABLE_CALLBACK_FNDECL): Likewise.
3369
3370 2019-02-06 Florian Weimer <fweimer@redhat.com>
3371
3372 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3373 (xdlsym): Use dlerror to detect a NULL symbol.
3374
3375 2019-02-06 Florian Weimer <fweimer@redhat.com>
3376
3377 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3378 <stap-probe.h>.
3379 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3380
3381 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3382
3383 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3384
3385 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3386
3387 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3388 __wmemcmp and weak alias to wmemcmp.
3389
3390 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3391
3392 [BZ #23403]
3393 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3394 TLS_TCB_AT_TP tls variant.
3395 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3396 Add alignment checks.
3397 * support/Makefile (libsupport-routines): Add xposix_memalign and
3398 xpthread_setstack.
3399 * support/support.h: Add xposix_memalign.
3400 * support/xthread.h: Add xpthread_attr_setstack.
3401 * support/xposix_memalign.c: New File.
3402 * support/xpthread_attr_setstack.c: Likewise.
3403
3404 2019-02-05 Florian Weimer <fweimer@redhat.com>
3405
3406 [BZ #24164]
3407 arm: Use "nr" constraint for Systemtap probes, to avoid the
3408 compiler using memory operands for constants, due to the "o"
3409 alternative in the default "nor" constraint.
3410 * include/stap-probe.h [USE_STAP_PROBE]: Include
3411 <stap-probe-machine.h>
3412 * sysdeps/generic/stap-probe-machine.h: New file.
3413 * sysdeps/arm/stap-probe-machine.h: Likewise.
3414
3415 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3416
3417 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3418 with 0, not tcache->entries[tc_idx].
3419
3420 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3421 once.
3422
3423 2019-02-04 Andreas Schwab <schwab@suse.de>
3424
3425 [BZ #16976]
3426 [BZ #17396]
3427 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3428 looking up collating elements match against (wide) character
3429 sequence instead of name. Correct alignment adjustment.
3430 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3431 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3432 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3433 (LOCALES): Add cs_CZ.ISO-8859-2.
3434 * posix/tst-fnmatch4.c: New file.
3435 * posix/tst-fnmatch5.c: New file.
3436 * include/wchar.h (__wmemcmp): Declare.
3437 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3438 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3439 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3440 * sysdeps/s390/wmemcmp.c: Likewise.
3441
3442 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3443
3444 [BZ #24155]
3445 CVE-2019-7309
3446 * NEWS: Updated for CVE-2019-7309.
3447 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3448 upper 32 bits of RDX register for x32. Use unsigned Jcc
3449 instructions, instead of signed.
3450 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3451 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3452
3453 2019-02-04 Florian Weimer <fweimer@redhat.com>
3454
3455 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3456 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3457 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3458 Likewise.
3459 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3460 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3461 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3462 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3463 Likewise.
3464 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3465 Likewise.
3466 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3467 Likewise.
3468 (posix_spawn_file_actions_addopen): Likewise.
3469 (posix_spawn_file_actions_addclose): Likewise.
3470 (posix_spawn_file_actions_adddup2): Likewise.
3471 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3472 qualifiers.
3473 (posix_spawn_file_actions_addfchdir_np): Likewise.
3474
3475 2019-02-04 David Newall <glibc@davidnewall.com>
3476
3477 elf: Implement --preload option for the dynamic linker.
3478 * elf/rtld.c (preloadarg): New variable.
3479 (handle_preload_list): Pass through “where” argument to
3480 do_preload.
3481 (dl_main): Handle "--preload" and add second call to
3482 handle_preload_list.
3483 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3484 (tst-rtld-preload-OBJS): Set variable.
3485 (tst-rtld-preload.out): New target.
3486 * elf/tst-rtld-preload.sh: New file.
3487
3488 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3489
3490 * Makefile (testrun.sh): Exit in case of incorrect argument.
3491
3492 2019-02-04 Florian Weimer <fweimer@redhat.com>
3493
3494 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3495 alignment gaps.
3496
3497 2019-02-03 Florian Weimer <fweimer@redhat.com>
3498
3499 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3500 implicit overflow checks.
3501
3502 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3503
3504 * stdlib/isomac.c: Include <unistd.h>.
3505
3506 2019-02-03 Florian Weimer <fweimer@redhat.com>
3507
3508 * include/time.h (__tzfile_default): Use int, not long int, for
3509 the GMT offsets.
3510 * time/tzfile.c (struct ttinfo): Change type of the offset member
3511 to int.
3512 (__tzfile_read): Remove useless cast.
3513 (__tzfile_default): Adjust prototype.
3514 * time/tzset.c (tz_rule): Change type of the offset member to int.
3515 (parse_offset): Change the type of the sign variable to int.
3516
3517 2019-02-03 Florian Weimer <fweimer@redhat.com>
3518
3519 [BZ #24153]
3520 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3521 * libio/getchar.c (getchar): Likewise.
3522 * libio/getchar_u.c (getchar_unlocked): Likewise.
3523 * libio/getwchar.c (getwchar): Likewise.
3524 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3525 * libio/iogets.c (_IO_gets): Likewise.
3526 * libio/vscanf.c (_IO_vscanf): Likewise.
3527 * libio/vwscanf.c (__vwscanf): Likewise.
3528 * libio/tst-bz24153.c: New file.
3529 * libio/Makefile (tests): Add it.
3530
3531 2019-02-02 Florian Weimer <fweimer@redhat.com>
3532
3533 [BZ #14829]
3534 * manual/resource.texi (Basic Scheduling Functions): Add
3535 portability note. Change process to task throughout the section.
3536 Remove incorrect comment about sched_yield as it affects
3537 tasks/threads, not entire processes.
3538 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3539 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3540
3541 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3542
3543 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3544 * configure: Regenerated.
3545 * manual/install.texi (Tools for Compilation): Update minimum GCC
3546 version.
3547 * INSTALL: Regenerated.
3548
3549 2019-02-01 Florian Weimer <fweimer@redhat.com>
3550
3551 * support/support_test_compare_string.c
3552 (support_test_compare_string): Use "string" in error message.
3553 * support/tst-test_compare_string.c (do_test): Adjust.
3554
3555 2019-02-01 Florian Weimer <fweimer@redhat.com>
3556
3557 * support/support_format_address_family.c
3558 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3559
3560 2019-02-01 Florian Weimer <fweimer@redhat.com>
3561
3562 * manual/socket.texi (Internet Address Formats): Clarify the byte
3563 order of struct sockaddr_in, struct sockaddr_in6. Document
3564 sin6_flowinfo and sin6_scope_id.
3565
3566 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3567
3568 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3569 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3570 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3571 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3572 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3573 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3574
3575 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3576
3577 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3578 [!MEMCHR](MEMCHR): Set to __memchr.
3579 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3580 Add memchr_generic and memchr_nosimd.
3581 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3582 (__libc_ifunc_impl_list): Add memchr ifuncs.
3583 * sysdeps/aarch64/multiarch/memchr.c: New file.
3584 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3585 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3586
3587 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3588
3589 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3590 Add memset_emag.
3591 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3592 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3593 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3594 Add IS_EMAG check for ifunc dispatch.
3595 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3596 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3597
3598 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3599
3600 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3601 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3602 Add emag.
3603 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3604 New macro.
3605
3606 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3607
3608 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3609
3610 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3611
3612 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3613 syscall-template file.
3614
3615 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3616 Torvald Riegel <triegel@redhat.com>
3617 Rik Prohaska <prohaska7@gmail.com>
3618
3619 [BZ# 23844]
3620 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3621 tst-rwlock-trywrlock-stall.
3622 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3623 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3624 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3625 Set __wrphase_fute to 1 only if we started the write phase.
3626 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3627 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3628 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3629 * support/xpthread_rwlock_destroy.c: New file.
3630 * support/xthread.h: Declare xpthread_rwlock_destroy.
3631
3632 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3633
3634 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3635 version to 4.0.2.
3636
3637 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3638
3639 [BZ #24051]
3640 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3641 * libio/fileops.c (_IO_new_file_underflow): Likewise
3642 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3643 * libio/putchar.c (putchar): Likewise.
3644 * libio/putchar_u.c (putchar_unlocked): Likewise.
3645 * libio/putwchar.c (putchar): Likewise.
3646 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3647 * libio/tst-bz24051.c: New test.
3648 * libio/Makefile (tests): Add tst-bz24051
3649
3650 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3651
3652 CVE-2019-9169
3653 regex: fix read overrun [BZ #24114]
3654 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3655 https://debbugs.gnu.org/34140
3656 * posix/regexec.c (proceed_next_node):
3657 Do not read past end of input buffer.
3658
3659 2019-01-31 Florian Weimer <fweimer@redhat.com>
3660
3661 [BZ #24059]
3662 * nss/nss_files/files-alias.c (get_next_alias): Handle
3663 continuation line without newline at the end.
3664 * nss/tst-nss-files-alias-truncated.c: New file.
3665 * nss/Makefile [$(build-shared)] (tests): Add
3666 tst-nss-files-alias-truncated.
3667 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3668 * support/namespace.h (struct support_chroot_configuration): Add
3669 aliases member.
3670 (struct support_chroot): Add path_aliases member.
3671 * support/support_chroot.c (support_chroot_create): Handle
3672 aliases.
3673 (support_chroot_free): Free path_aliases.
3674
3675 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3676
3677 * version.h (RELEASE): Set to "development".
3678 (VERSION): Set to "2.29.9000".
3679 * NEWS: Add section for 2.30.
3680
3681 * version.h (RELEASE): Set to "stable".
3682 (VERSION): Set to "2.29".
3683 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3684
3685 * NEWS: Add the list of bugs fixed in 2.29.
3686 * manual/contrib.texi: Update contributors list with some more
3687 names.
3688 * manual/install.texi: Update latest versions of packages
3689 tested.
3690 * INSTALL: Regenerated.
3691
3692 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3693
3694 * po/be.po: Update translations.
3695 * po/bg.po: Likewise.
3696 * po/ca.po: Likewise.
3697 * po/cs.po: Likewise.
3698 * po/da.po: Likewise.
3699 * po/de.po: Likewise.
3700 * po/el.po: Likewise.
3701 * po/eo.po: Likewise.
3702 * po/es.po: Likewise.
3703 * po/fi.po: Likewise.
3704 * po/fr.po: Likewise.
3705 * po/gl.po: Likewise.
3706 * po/hr.po: Likewise.
3707 * po/hu.po: Likewise.
3708 * po/ia.po: Likewise.
3709 * po/id.po: Likewise.
3710 * po/it.po: Likewise.
3711 * po/ja.po: Likewise.
3712 * po/ko.po: Likewise.
3713 * po/lt.po: Likewise.
3714 * po/nb.po: Likewise.
3715 * po/nl.po: Likewise.
3716 * po/pl.po: Likewise.
3717 * po/pt_BR.po: Likewise.
3718 * po/ru.po: Likewise.
3719 * po/rw.po: Likewise.
3720 * po/sk.po: Likewise.
3721 * po/sl.po: Likewise.
3722 * po/sv.po: Likewise.
3723 * po/tr.po: Likewise.
3724 * po/uk.po: Likewise.
3725 * po/vi.po: Likewise.
3726 * po/zh_CN.po: Likewise.
3727 * po/zh_TW.po: Likewise.
3728
3729 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3730
3731 [BZ #24130]
3732 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3733 of $f3 register on $y_is_neg path.
3734
3735 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3736
3737 [BZ #24110]
3738 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3739 sigaltstack.ss_flags.
3740
3741 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3742
3743 [BZ #23758]
3744 * manual/time.texi (strftime): Document "%Ey".
3745 * time/strftime_l.c (__strftime_internal): Set the default width
3746 padding with zero of "%Ey" to 2.
3747
3748 [BZ #24096]
3749 * manual/time.texi (strftime): Document "%EC" and "%EY".
3750 * time/Makefile (tests): Add tst-strftime2.
3751 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3752 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3753 override padding for "%Ey".
3754 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3755 "%Ey" in the subformat as if decorated with that flag.
3756 * time/tst-strftime2.c: New file.
3757
3758 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3759
3760 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3761 are not defined.
3762
3763 [BZ #24122]
3764 * elf/Makefile (tests): Add tst-audit13.
3765 (modules-names): Add tst-audit13mod1.
3766 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3767 rule.
3768 * elf/rtld.c (dl_main): Handle invalid audit module version.
3769 * elf/tst-audit13.c: New file.
3770 * elf/tst-audit13mod1.c: Likewise.
3771
3772 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3773
3774 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3775 returned by __hurd_at_flags.
3776 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3777 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3778 directly instead of __hurd_file_name_lookup.
3779
3780 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3781
3782 * scripts/build-many-glibcs.py (Context.checkout): Default
3783 binutils version to 2.32 branch.
3784
3785 2019-01-21 Florian Weimer <fweimer@redhat.com>
3786
3787 [BZ #20018]
3788 CVE-2016-10739
3789 resolv: Reject trailing characters in host names
3790 * include/arpa/inet.h (__inet_aton_exact): Declare.
3791 (inet_aton): Remove hidden prototype. No longer used internally.
3792 * nscd/gai.c (__inet_aton): Do not define.
3793 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3794 * nss/digits_dots.c (__inet_aton): Likewise.
3795 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3796 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3797 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3798 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3799 (tst-resolv-trailing): Likewise.
3800 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3801 libc.
3802 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3803 Make static. Add endp parameter.
3804 (__inet_aton_exact): New function.
3805 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3806 (__inet_addr): Call inet_aton_end.
3807 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3808 not just IPv6. Call __inet_aton_exact.
3809 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3810 (tests): Make const. Add additional test cases with trailing
3811 characters.
3812 (do_test): Use array_length.
3813 * resolv/tst-inet_aton_exact.c: New file.
3814 * resolv/tst-resolv-trailing.c: Likewise.
3815 * resolv/tst-resolv-nondecimal.c: Likewise.
3816 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3817
3818 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3819
3820 [BZ# 24097]
3821 CVE-2019-6488
3822 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3823 Clear the upper 32 bits of RSI register.
3824 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3825 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3826 and tst-size_t-wcsnlen.
3827 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3828 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3829
3830 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3831
3832 [BZ# 24097]
3833 CVE-2019-6488
3834 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3835 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3836 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3837 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3838 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3839
3840 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3841
3842 [BZ# 24097]
3843 CVE-2019-6488
3844 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3845 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3846 * sysdeps/x86_64/strcmp.S: Likewise.
3847 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3848 tst-size_t-strncmp and tst-size_t-wcsncmp.
3849 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3850 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3851 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3852
3853 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3854
3855 [BZ# 24097]
3856 CVE-2019-6488
3857 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3858 RDX_LP for length. Clear the upper 32 bits of RDX register.
3859 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3860 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3861 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3862 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3863
3864 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3865
3866 [BZ# 24097]
3867 CVE-2019-6488
3868 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3869 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3870 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3871 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3872
3873 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3874
3875 [BZ# 24097]
3876 CVE-2019-6488
3877 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3878 length. Clear the upper 32 bits of RDX register.
3879 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3880 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3881 Likewise.
3882 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3883 Likewise.
3884 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3885 tst-size_t-wmemchr.
3886 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3887
3888 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3889
3890 [BZ# 24097]
3891 CVE-2019-6488
3892 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3893 length. Clear the upper 32 bits of RDX register.
3894 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3895 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3896 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3897 tst-size_t-wmemcmp.
3898 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3899 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3900
3901 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3902
3903 [BZ# 24097]
3904 CVE-2019-6488
3905 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3906 upper 32 bits of RDX register.
3907 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3908 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3909 tst-size_t-wmemchr.
3910 * sysdeps/x86_64/x32/test-size_t.h: New file.
3911 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3912 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3913
3914 2019-01-18 Florian Weimer <fweimer@redhat.com>
3915
3916 [BZ #24112]
3917 resolv: Do not send queries for non-host-names in nss_dns.
3918 * resolv/nss_dns/dns-host.c (check_name): New function.
3919 (_nss_dns_gethostbyname2_r): Use it.
3920 (_nss_dns_gethostbyname_r): Likewise.
3921 (_nss_dns_gethostbyname4_r): Likewise.
3922
3923 2019-01-21 Florian Weimer <fweimer@redhat.com>
3924
3925 * resolv/inet_addr.c: Reformat to GNU style.
3926 (__inet_addr, __inet_aton): Update comment.
3927
3928 2019-01-18 Florian Weimer <fweimer@redhat.com>
3929
3930 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3931 ("malloc: Use current (C11-style) atomics for fastbin access").
3932 This commit introduces a substantial performance regression on
3933 POWER and Aarch64.
3934 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3935 (REMOVE_FB): Define.
3936 (_int_malloc): Use it and reindent.
3937 (_int_free): Use CAS loop with
3938 catomic_compare_and_exchange_val_rel.
3939 (malloc_consolidate): Use atomic_exchange_acq.
3940
3941
3942 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3943
3944 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3945 -Wl,-z,now.
3946 (LDFLAGS-tst-minsigstksz-2): Likewise.
3947 (LDFLAGS-tst-minsigstksz-3): Likewise.
3948 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3949 (LDFLAGS-tst-minsigstksz-4): Likewise.
3950
3951 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3952
3953 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3954 than "alternate".
3955
3956 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3957
3958 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3959
3960 2019-01-16 Zack Weinberg <zackw@panix.com>
3961
3962 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3963 (xget_sigstack_location): New test support functions.
3964 * support/xsigstack.c: New file, implementing them.
3965 * support/tst-xsigstack.c: New test for them.
3966 * support/Makefile: Update.
3967
3968 * signal/tst-minsigstksz-1.c
3969 * signal/tst-minsigstksz-2.c
3970 * signal/tst-minsigstksz-3.c
3971 * signal/tst-minsigstksz-3a.c
3972 * signal/tst-minsigstksz-4.c: New tests.
3973 * signal/Makefile: Run them.
3974
3975 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3976
3977 * po/libc.pot: Regenerate.
3978
3979 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3980
3981 * math/libm-test-fma.inc (fma_test_data): Set
3982 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3983
3984 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3985
3986 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3987 (do_test): Changed __vector __int128_t to __vector unsigned int.
3988
3989 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3990
3991 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3992 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3993 stpcpy-avx2 and stpncpy-avx2.
3994 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3995 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3996 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3997 and __stpncpy_avx2.
3998 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3999 ifunc-strcpy.h}: rename header for a more generic name.
4000 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
4001 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
4002 AVX unaligned load is fast and vzeroupper is preferred.
4003 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
4004 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
4005 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
4006 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
4007 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
4008 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
4009
4010 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
4011
4012 * argp/argp-help.c: Fix typo in comment.
4013 * misc/sys/cdefs.h: Likewise.
4014 * posix/regexec.c (sift_states_iter_mb): Likewise.
4015 * socket/sockatmark.c: Likewise.
4016 * socket/sys/socket.h: Likewise.
4017 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
4018 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
4019 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
4020 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4021 * sysdeps/unix/sockatmark.c: Likewise.
4022 * time/strptime_l.c: Likewise.
4023
4024 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
4025
4026 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
4027 missing space after the cast of "_NL_CURRENT".
4028
4029 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
4030
4031 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
4032 ifdef to fix read of VSCR.
4033 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
4034 tst-ucontext-ppc64-vscr.c to test list.
4035 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
4036
4037 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
4038
4039 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
4040 fall-through.
4041
4042 2019-01-09 Jim Wilson <jimw@sifive.com>
4043
4044 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
4045
4046 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
4047
4048 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
4049 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
4050 __memcpy_falkor for ares.
4051 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
4052 Add new define.
4053 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
4054 Add ares cpu.
4055
4056 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
4057
4058 [BZ #24066]
4059 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
4060 4_FP_W_TYPEs are used for IEEE quad precision.
4061 * soft-fp/extendhftf2.c: Likewise.
4062 * soft-fp/extendsftf2.c: Likewise.
4063 * soft-fp/extendxftf2.c: Likewise.
4064 * soft-fp/trunctfdf2.c: Likewise.
4065 * soft-fp/trunctfhf2.c: Likewise.
4066 * soft-fp/trunctfsf2.c: Likewise.
4067 * soft-fp/trunctfxf2.c: Likewise.
4068 * sysdeps/alpha/ots_cvttx.c: Likewise.
4069 * sysdeps/alpha/ots_cvtxt.c: Likewise.
4070 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
4071 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
4072 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
4073 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
4074 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
4075 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
4076 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
4077 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
4078 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
4079 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
4080 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
4081 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
4082 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
4083 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
4084 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
4085 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
4086
4087 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4088
4089 [BZ #24024]
4090 * Makeconfig: Build libm with -fno-math-errno but build the remaining
4091 code with -fmath-errno.
4092 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
4093 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
4094 * string/test-strerror-errno.c: New file.
4095
4096 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
4097
4098 [BZ #24046]
4099 * localedata/locales/en_US (date_fmt): Add, set to
4100 "%a %d %b %Y %r %Z".
4101
4102 2019-01-07 Florian Weimer <fweimer@redhat.com>
4103
4104 [BZ #24063]
4105 * manual/arith.texi (Math Error Reporting): Use @code{errno}
4106 instead of @var{errno}.
4107 (Parsing of Integers): Likewise.
4108 (Parsing of Floats): Likewise.
4109 * manual/filesys.texi (Working with Directory Trees): Likewise.
4110 (Temporary Files): Likewise.
4111 * manual/job.texi (Terminal Access Functions): Likewise.
4112 * manual/llio.texi (Synchronizing I/O): Likewise.
4113 * manual/math.texi (SVID Random): Likewise.
4114 * manual/message.texi (The catgets Functions): Likewise.
4115 (Translation with gettext): Likewise.
4116 (Locating gettext catalog): Likewise.
4117 (Charset conversion in gettext): Likewise.
4118 * manual/nss.texi (NSS Module Function Internals): Likewise.
4119 * manual/search.texi (Hash Search Function): Likewise.
4120 * manual/setjmp.texi (System V contexts): Likewise.
4121 * manual/time.texi (Sleeping): Likewise.
4122 * manual/users.texi (Lookup User): Likewise.
4123 (Lookup Group): Likewise.
4124
4125 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4126
4127 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
4128 fix typo.
4129
4130 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
4131
4132 [BZ #19444]
4133 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
4134 __builtin_unreachable for default case in switch.
4135 (__ieee754_yn): Likewise.
4136 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
4137 (__ieee754_ynl): Likewise.
4138 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
4139 (__ieee754_ynl): Likewise.
4140 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
4141 (__ieee754_ynl): Likewise.
4142
4143 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
4144
4145 * manual/maint.texi: Use @{ and @}.
4146
4147 2019-01-04 Florian Weimer <fweimer@redhat.com>
4148
4149 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4150 function.
4151 (do_in_chroot_1): Call it.
4152 (run_chroot_tests):
4153 Improve error reporting in case it is not possible to create a
4154 collision for the PTY name required by the test.
4155
4156 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4157
4158 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4159 lll_wait_tid with timeout.
4160 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4161 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4162 futex_reltimed_wait_cancelable for cancelabla mode.
4163 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4164 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4165 macros.
4166 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4167 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4168 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4169 SYSCALL_CANCEL_NCS): New macro.
4170 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4171 (lll_timedwait_tid): Remove macro.
4172 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4173 Likewise.
4174 (lll_timedwait_tid): Likewise.
4175 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4176 Likewise.
4177 (lll_timedwait_tid): Likewise.
4178 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4179 Likewise.
4180 (lll_timedwait_tid): Likewise.
4181 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4182 Use INTERNAL_SYSCALL_CANCEL.
4183 * sysdeps/unix/sysv/linux/futex-internal.h
4184 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4185 instead of __pthread_{enable,disable}_asynccancel.
4186 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4187 (lll_futex_wait_cancel): New macro.
4188
4189 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4190 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4191
4192 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4193 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4194
4195 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4196 in backtrace analysis.
4197 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4198 side-effects.
4199 (tf_send): Likewise.
4200
4201 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4202 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4203 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4204 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4205 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4206 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4207 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4208 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4209 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4210 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4211 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4212 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4213 Likewise.
4214 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4215 tst-cancel-wrappers.sh.
4216 (generated): Remove tst-cancel-wrappers.out.
4217 (tst-cancel-wrappers.out): Remove rule.
4218 * nptl/tst-cancel-wrappers.sh: Remove file.
4219
4220 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4221
4222 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4223 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4224 Update.
4225
4226 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4227
4228 [BZ #23640]
4229 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4230 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4231 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4232 close-on-exec reset for adddup2 file action.
4233 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4234
4235 2019-01-03 Zack Weinberg <zackw@panix.com>
4236
4237 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4238 parameter. Only use deprecated scanf when __USE_GNU is defined
4239 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4240 than 201103L, whichever is relevant for the language being compiled.
4241
4242 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4243 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4244 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4245 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4246 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4247
4248 * libio/iovsscanf.c
4249 * libio/fwscanf.c
4250 * libio/iovswscanf.c
4251 * libio/swscanf.c
4252 * libio/vscanf.c
4253 * libio/vwscanf.c
4254 * libio/wscanf.c
4255 * stdio-common/fscanf.c
4256 * stdio-common/scanf.c
4257 * stdio-common/vfscanf.c
4258 * stdio-common/vfwscanf.c
4259 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4260 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4261 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4262 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4263 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4264 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4265 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4266 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4267 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4268 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4269 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4270 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4271 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4272 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4273 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4274
4275 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4276 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4277 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4278 not sscanf.
4279 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4280 with a preprocessor macro.
4281
4282 * stdio-common/bug21.c, stdio-common/scanf14.c:
4283 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4284 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4285 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4286 to xscanf, xfscanf, xsscanf.
4287
4288 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4289 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4290 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4291 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4292 xfscanf, xsscanf.
4293 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4294 override feature selection macros or provide definitions of u_char etc.
4295 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4296 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4297 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4298 with -std=gnu89.
4299
4300 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4301
4302 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4303 bits/termios-misc.h.
4304 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4305 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4306 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4307 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4308 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4309 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4310
4311 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4312 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4313 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4314 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4315 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4316 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4317 termios-misc.h.
4318 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4319 (sysdep_headers): Add termios-misc.h.
4320
4321 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4322 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4323 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4324
4325 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4326 termios-tcflow.h.
4327 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4328 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4329 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4330 TCSAFLUSH): Move to termios-tcflow.h.
4331 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4332 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4333 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4334 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4335
4336 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4337 termios-c_lflag.h.
4338 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4339 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4340 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4341 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4342 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4343 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4344 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4345 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4346 Likewise.
4347 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4348 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4349 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4350 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4351
4352 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4353 termios-c_cflag.h.
4354 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4355 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4356 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4357 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4358 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4359 termios-c_cflag.h.
4360 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4361 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4362 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4363 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4364
4365 [BZ #23783]
4366 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4367 termios-baud.h.
4368 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4369 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4370 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4371 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4372 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4373 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4374 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4375 __MAX_BAUD): Move to termios-baud.h.
4376 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4377 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4378 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4379 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4380 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4381
4382 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4383 termios-c_oflag.h.
4384 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4385 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4386 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4387 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4388 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4389 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4390 termios-c_oflag.h.
4391 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4392 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4393 FFR1): Likewise.
4394 [USE_MISC] (XTABS): Likewise.
4395 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4396 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4397 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4398 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4399
4400 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4401 termios-c_iflag.h.
4402 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4403 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4404 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4405 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4406 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4407 IUTF8): Move to termios-c_iflag.h.
4408 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4409 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4410 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4411 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4412
4413 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4414 termios-cc.h.
4415 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4416 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4417 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4418 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4419 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4420 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4421 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4422 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4423 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4424 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4425 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4426 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4427
4428 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4429 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4430 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4431 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4432 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4433 termios-struct.h.
4434 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4435 termios-struct.h.
4436 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4437 Likewise.
4438 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4439 Likewise.
4440 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4441 Likewise.
4442 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4443 Likewise.
4444 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4445 _HAVE_C_OSPEED): Define.
4446 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4447 _HAVE_C_OSPEED): Likewise.
4448 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4449 _HAVE_C_OSPEED): Likewise.
4450 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4451 (cfsetospeed): Check for define value instead of existence.
4452 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4453 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4454 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4455 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4456 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4457
4458 [BZ #17783]
4459 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4460 Define.
4461 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4462 (TIOCSER_TEMT): Likewise.
4463 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4464 (TEOCSER_TEMT): Likewise.
4465
4466 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4467
4468 [BZ #24011]
4469 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4470
4471 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4472
4473 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4474
4475 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4476
4477 * sysdeps/htl/pt-barrierattr-setpshared.c
4478 (pthread_barrierattr_setpshared): Add stub warning.
4479 * sysdeps/htl/pt-condattr-setpshared.c
4480 (pthread_condattr_setpshared): Likewise.
4481 * sysdeps/htl/pt-mutexattr-setpshared.c
4482 (pthread_mutexattr_setpshared): Likewise.
4483 * sysdeps/htl/pt-rwlockattr-setpshared.c
4484 (pthread_rwlockattr_setpshared): Likewise.
4485 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4486 (pthread_mutexattr_setpshared): Likewise.
4487
4488 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4489
4490 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4491 constants to match with Linux 4.20.
4492
4493 * sysdeps/mips/mips32/libm-test-ulps: Update.
4494 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4495
4496 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4497
4498 [BZ #24034]
4499 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4500 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4501 than __typeof (...) for the a_ptr variable.
4502
4503 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4504
4505 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4506 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4507 * libio/Makefile (tests): Add tst-sprintf-ub and
4508 tst-sprintf-chk-ub.
4509 (CFLAGS-tst-sprintf-ub.c): New variable.
4510 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4511 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4512 destination buffer and check for overflows in fortified mode.
4513 * libio/libioP.h (PRINTF_CHK): New macro.
4514 * libio/tst-sprintf-chk-ub.c: New file.
4515 * libio/tst-sprintf-ub.c: Likewise.
4516
4517 2019-01-02 Florian Weimer <fweimer@redhat.com>
4518
4519 [BZ #24018]
4520 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4521 failure.
4522
4523 2019-01-02 Florian Weimer <fweimer@redhat.com>
4524
4525 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4526
4527 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4528
4529 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4530 macro.
4531
4532 * sysdeps/unix/sysv/linux/netpacket/packet.h
4533 (PACKET_IGNORE_OUTGOING): New macro.
4534
4535 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4536 macro.
4537
4538 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4539 version to 4.20.
4540 (riscv_flush_icache): New syscall.
4541
4542 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4543 trailing whitespace removed.
4544 * scripts/config.guess: Update to version 2019-01-01.
4545 * scripts/config.sub: Update to version 2019-01-01.
4546 * scripts/move-if-change: Update from gnulib.
4547
4548 * NEWS: Update copyright dates.
4549 * catgets/gencat.c (print_version): Likewise.
4550 * csu/version.c (banner): Likewise.
4551 * debug/catchsegv.sh: Likewise.
4552 * debug/pcprofiledump.c (print_version): Likewise.
4553 * debug/xtrace.sh (do_version): Likewise.
4554 * elf/ldconfig.c (print_version): Likewise.
4555 * elf/ldd.bash.in: Likewise.
4556 * elf/pldd.c (print_version): Likewise.
4557 * elf/sotruss.sh: Likewise.
4558 * elf/sprof.c (print_version): Likewise.
4559 * iconv/iconv_prog.c (print_version): Likewise.
4560 * iconv/iconvconfig.c (print_version): Likewise.
4561 * locale/programs/locale.c (print_version): Likewise.
4562 * locale/programs/localedef.c (print_version): Likewise.
4563 * login/programs/pt_chown.c (print_version): Likewise.
4564 * malloc/memusage.sh (do_version): Likewise.
4565 * malloc/memusagestat.c (print_version): Likewise.
4566 * malloc/mtrace.pl: Likewise.
4567 * manual/libc.texinfo: Likewise.
4568 * nptl/version.c (banner): Likewise.
4569 * nscd/nscd.c (print_version): Likewise.
4570 * nss/getent.c (print_version): Likewise.
4571 * nss/makedb.c (print_version): Likewise.
4572 * posix/getconf.c (main): Likewise.
4573 * scripts/test-installation.pl: Likewise.
4574 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4575
4576 * All files with FSF copyright notices: Update copyright dates
4577 using scripts/update-copyrights.
4578 * locale/programs/charmap-kw.h: Regenerated.
4579 * locale/programs/locfile-kw.h: Likewise.
4580
4581 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4582
4583 * timezone/zdump.c: Update from tzcode 2018i.
4584 * timezone/zic.c: Likewise.
4585
4586 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4587
4588 regex: improve Gnulib port to AIX
4589 From the glibc point of view, this removes duplicate macro
4590 definitions and is obviously safe.
4591 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4592 * posix/regex_internal.h:
4593 (__attribute__, __attribute_warn_unused_result__):
4594 Remove; already defined elsewhere.
4595
4596 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4597
4598 [BZ #24027]
4599 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4600 copying operation. (ncopies had the wrong type, resulting in an
4601 integer wraparound and too few elements being copied.)
4602
4603 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4604
4605 [BZ #24022]
4606 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4607 <asm/syscalls.h> exists with __has_include__ before including it.
4608
4609 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4610
4611 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4612 version to 4.20.
4613
4614 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4615
4616 * hurd/lookup-retry: Include <unistd.h>.
4617 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4618 Release it on return. Handle "pid" magical lookup retry.
4619
4620 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4621
4622 [BZ #10496]
4623 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4624 (t_fmt_ampm): Likewise.
4625 * localedata/locales/aa_ER (t_fmt): Likewise.
4626 (t_fmt_ampm): Likewise.
4627 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4628 (t_fmt_ampm): Likewise.
4629 * localedata/locales/aa_ET (t_fmt): Likewise.
4630 (t_fmt_ampm): Likewise.
4631 * localedata/locales/am_ET (t_fmt): Likewise.
4632 (t_fmt_ampm): Likewise.
4633 * localedata/locales/byn_ER (t_fmt): Likewise.
4634 (t_fmt_ampm): Likewise.
4635 * localedata/locales/om_ET (t_fmt): Likewise.
4636 (t_fmt_ampm): Likewise.
4637 * localedata/locales/sid_ET (t_fmt): Likewise.
4638 (t_fmt_ampm): Likewise.
4639 * localedata/locales/so_DJ (t_fmt): Likewise.
4640 (t_fmt_ampm): Likewise.
4641 * localedata/locales/so_ET (t_fmt): Likewise.
4642 (t_fmt_ampm): Likewise.
4643 * localedata/locales/so_SO (t_fmt): Likewise.
4644 (t_fmt_ampm): Likewise.
4645 * localedata/locales/ti_ER (t_fmt): Likewise.
4646 (t_fmt_ampm): Likewise.
4647 * localedata/locales/ti_ET (t_fmt): Likewise.
4648 (t_fmt_ampm): Likewise.
4649 * localedata/locales/tig_ER (t_fmt): Likewise.
4650 (t_fmt_ampm): Likewise.
4651 * localedata/locales/wal_ET (t_fmt): Likewise.
4652 (t_fmt_ampm): Likewise.
4653
4654 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4655 * localedata/locales/ar_IN (t_fmt): Likewise.
4656 * localedata/locales/bhb_IN (t_fmt): Likewise.
4657 * localedata/locales/bho_IN (t_fmt): Likewise.
4658 * localedata/locales/bi_VU (t_fmt): Likewise.
4659 * localedata/locales/bn_BD (t_fmt): Likewise.
4660 * localedata/locales/bn_IN (t_fmt): Likewise.
4661 * localedata/locales/brx_IN (t_fmt): Likewise.
4662 * localedata/locales/doi_IN (t_fmt): Likewise.
4663 * localedata/locales/en_HK (t_fmt): Likewise.
4664 (t_fmt_ampm): Likewise.
4665 * localedata/locales/en_IN (t_fmt): Likewise.
4666 * localedata/locales/en_PH (t_fmt): Likewise.
4667 * localedata/locales/gu_IN (t_fmt): Likewise.
4668 * localedata/locales/hi_IN (t_fmt): Likewise.
4669 * localedata/locales/hif_FJ (t_fmt): Likewise.
4670 * localedata/locales/hne_IN (t_fmt): Likewise.
4671 * localedata/locales/kn_IN (t_fmt): Likewise.
4672 * localedata/locales/kok_IN (t_fmt): Likewise.
4673 * localedata/locales/ks_IN (t_fmt): Likewise.
4674 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4675 * localedata/locales/mag_IN (t_fmt): Likewise.
4676 * localedata/locales/mai_IN (t_fmt): Likewise.
4677 * localedata/locales/mjw_IN (t_fmt): Likewise.
4678 * localedata/locales/ml_IN (t_fmt): Likewise.
4679 * localedata/locales/mni_IN (t_fmt): Likewise.
4680 * localedata/locales/mr_IN (t_fmt): Likewise.
4681 * localedata/locales/ms_MY (t_fmt): Likewise.
4682 * localedata/locales/pa_IN (t_fmt): Likewise.
4683 * localedata/locales/raj_IN (t_fmt): Likewise.
4684 * localedata/locales/sa_IN (t_fmt): Likewise.
4685 * localedata/locales/sat_IN (t_fmt): Likewise.
4686 * localedata/locales/sd_IN (t_fmt): Likewise.
4687 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4688 * localedata/locales/tcy_IN (t_fmt): Likewise.
4689 * localedata/locales/the_NP (t_fmt): Likewise.
4690 * localedata/locales/to_TO (t_fmt): Likewise.
4691 * localedata/locales/ur_IN (t_fmt): Likewise.
4692
4693 * localedata/locales/hif_FJ (d_t_fmt): Set to
4694 "%A %d %b %Y %I:%M:%S %p".
4695 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4696
4697 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4698 * localedata/locales/ar_BH (t_fmt): Likewise.
4699 * localedata/locales/ar_DZ (t_fmt): Likewise.
4700 * localedata/locales/ar_EG (t_fmt): Likewise.
4701 * localedata/locales/ar_IQ (t_fmt): Likewise.
4702 * localedata/locales/ar_JO (t_fmt): Likewise.
4703 * localedata/locales/ar_KW (t_fmt): Likewise.
4704 * localedata/locales/ar_LB (t_fmt): Likewise.
4705 * localedata/locales/ar_LY (t_fmt): Likewise.
4706 * localedata/locales/ar_OM (t_fmt): Likewise.
4707 * localedata/locales/ar_QA (t_fmt): Likewise.
4708 * localedata/locales/ar_SD (t_fmt): Likewise.
4709 * localedata/locales/ar_SS (t_fmt): Likewise.
4710 * localedata/locales/ar_SY (t_fmt): Likewise.
4711 * localedata/locales/ar_TN (t_fmt): Likewise.
4712 * localedata/locales/ar_YE (t_fmt): Likewise.
4713
4714 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4715 (t_fmt_ampm): Likewise.
4716 * localedata/locales/gez_ET (t_fmt): Likewise.
4717 (t_fmt_ampm): Likewise.
4718
4719 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4720 (t_fmt_ampm): Likewise.
4721 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4722
4723 * localedata/locales/zh_HK (t_fmt):
4724 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4725
4726 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4727 because this locale does not use the 12-hour clock.
4728 (t_fmt): Set to "%Z %H:%M:%S".
4729 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4730
4731 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4732 because this locale does not use the 12-hour clock.
4733 (t_fmt): Set to "%H:%M:%S %Z".
4734 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4735
4736 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4737 because this locale does not use the 12-hour clock.
4738 (t_fmt): Set to "%T".
4739 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4740 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4741
4742 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4743 because this locale does not use the 12-hour clock.
4744 (t_fmt): Set to "%H:%M:%S %Z".
4745 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4746
4747 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4748 because this locale does not use the 12-hour clock.
4749 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4750 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4751
4752 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4753
4754 [BZ #10496]
4755 [BZ #23724]
4756 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4757 (t_fmt_ampm): Likewise.
4758 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4759 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4760 (d_fmt): Set to "%-d.%-m.%y".
4761
4762 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4763
4764 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4765 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4766 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4767 Likewise.
4768 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4769 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4770 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4771 function.
4772 * support/blob_repeat.c (check_mul_overflow_size_t,
4773 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4774
4775 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4776
4777 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4778
4779 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4780
4781 regex: simplify Gnulib port
4782 This simplifies the code, by removing stuff intended for porting
4783 to Gnulib but no longer needed there.
4784 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4785 uses of libc_hidden_def, weak_alias.
4786 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4787 _Restrict_ except for public-facing headers.
4788 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4789 Remove; already defined elsewhere.
4790 * posix/regex.c, posix/regex_internal.h:
4791 Use __GNUC_PREREQ instead of rolling our own.
4792 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4793
4794 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4795
4796 * benchtests/bench-strlen.c (generic_strlen): New function.
4797 (memchr_strlen): New function.
4798
4799 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4800
4801 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4802 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4803 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4804
4805 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4806
4807 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4808
4809 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4810
4811 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4812 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4813 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4814 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4815 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4816 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4817 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4818
4819 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4820
4821 [BZ #24023]
4822 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4823 PLT reference in libc.so.
4824 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4825 _Q_lltoq and _Q_qtod PLT references in libc.so.
4826
4827 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4828
4829 * benchtests/bench-memchr.c: Cleanup defines.
4830 * benchtests/bench-memcmp.c: Likewise.
4831 * benchtests/bench-memset.c: Likewise.
4832 * benchtests/bench-memset-large.c: Likewise.
4833 * benchtests/bench-memset-walk.c: Likewise.
4834 * benchtests/bench-stpcpy.c: Likewise.
4835 * benchtests/bench-stpncpy.c: Likewise.
4836 * benchtests/bench-strcat.c: Likewise.
4837 * benchtests/bench-strchr.c: Likewise.
4838 * benchtests/bench-strcmp.c: Likewise.
4839 * benchtests/bench-strcpy.c: Likewise.
4840 * benchtests/bench-strcspn.c: Likewise.
4841 * benchtests/bench-string.h: Likewise.
4842 * benchtests/bench-strlen.c: Likewise.
4843 * benchtests/bench-strncat.c: Likewise.
4844 * benchtests/bench-strncmp.c: Likewise.
4845 * benchtests/bench-strncpy.c: Likewise.
4846 * benchtests/bench-strnlen.c: Likewise.
4847 * benchtests/bench-strpbrk.c: Likewise.
4848 * benchtests/bench-strrchr.c: Likewise.
4849 * benchtests/bench-strspn.c: Likewise.
4850
4851 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4852
4853 * stdlib/longlong.h: Update from GCC.
4854
4855 [BZ #23993]
4856 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4857 * configure: Regenerated.
4858 * manual/install.texi (Tools for Compilation): Update minimum GCC
4859 version.
4860 * INSTALL: Regenerated.
4861
4862 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4863
4864 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4865
4866 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4867
4868 * malloc/malloc.c (mremap_chunk): Additional checks.
4869
4870 2018-12-21 Mao Han <han_mao@c-sky.com>
4871
4872 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4873 * scripts/build-many-glibcs.py: Add C-SKY targets.
4874 * sysdeps/csky/Implies: New file.
4875 * sysdeps/csky/Makefile: Likewise.
4876 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4877 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4878 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4879 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4880 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4881 * sysdeps/csky/abiv2/memmove.S: Likewise.
4882 * sysdeps/csky/abiv2/memset.S: Likewise.
4883 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4884 * sysdeps/csky/abiv2/start.S: Likewise.
4885 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4886 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4887 * sysdeps/csky/abiv2/strlen.S: Likewise.
4888 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4889 * sysdeps/csky/abort-instr.h: Likewise.
4890 * sysdeps/csky/atomic-machine.h: Likewise.
4891 * sysdeps/csky/bits/endian.h: Likewise.
4892 * sysdeps/csky/bits/fenv.h: Likewise.
4893 * sysdeps/csky/bits/link.h: Likewise.
4894 * sysdeps/csky/bits/setjmp.h: Likewise.
4895 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4896 * sysdeps/csky/bsd-setjmp.S: Likewise.
4897 * sysdeps/csky/configure: Likewise.
4898 * sysdeps/csky/configure.ac: Likewise.
4899 * sysdeps/csky/dl-machine.h: Likewise.
4900 * sysdeps/csky/dl-procinfo.c: Likewise.
4901 * sysdeps/csky/dl-procinfo.h: Likewise.
4902 * sysdeps/csky/dl-sysdep.h: Likewise.
4903 * sysdeps/csky/dl-tls.h: Likewise.
4904 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4905 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4906 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4907 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4908 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4909 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4910 * sysdeps/csky/fpu/fegetround.c: Likewise.
4911 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4912 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4913 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4914 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4915 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4916 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4917 * sysdeps/csky/fpu/fesetround.c: Likewise.
4918 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4919 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4920 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4921 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4922 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4923 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4924 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4925 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4926 * sysdeps/csky/fpu_control.h: Likewise.
4927 * sysdeps/csky/gccframe.h: Likewise.
4928 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4929 * sysdeps/csky/ldsodefs.h: Likewise.
4930 * sysdeps/csky/libc-tls.c: Likewise.
4931 * sysdeps/csky/linkmap.h: Likewise.
4932 * sysdeps/csky/machine-gmon.h: Likewise.
4933 * sysdeps/csky/memusage.h: Likewise.
4934 * sysdeps/csky/nofpu/Implies: Likewise.
4935 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4936 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4937 * sysdeps/csky/nptl/Makefile: Likewise.
4938 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4939 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4940 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4941 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4942 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4943 * sysdeps/csky/nptl/tls.h: Likewise.
4944 * sysdeps/csky/preconfigure: Likewise.
4945 * sysdeps/csky/sfp-machine.h: Likewise.
4946 * sysdeps/csky/sotruss-lib.c: Likewise.
4947 * sysdeps/csky/stackinfo.h: Likewise.
4948 * sysdeps/csky/sysdep.h: Likewise.
4949 * sysdeps/csky/tininess.h: Likewise.
4950 * sysdeps/csky/tst-audit.h: Likewise.
4951 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4952 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4953 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4954 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4955 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4956 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4957 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4958 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4959 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4960 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4961 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4962 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4963 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4964 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4965 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4966 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4967 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4968 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4969 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4970 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4971 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4972 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4973 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4974 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4975 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4976 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4977 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4978 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4979 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4980 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4981 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4982 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4983 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4984 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4985 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4986 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4987 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4988 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4989 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4990 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4991 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4992 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4993 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4994 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4995
4996 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4997
4998 * include/time.h (__difftime64): Add.
4999 * time/difftime.c (subtract): convert to 64-bit time.
5000 * time/difftime.c (__difftime64): Add.
5001 * time/difftime.c (__difftime): Wrap around __difftime64.
5002
5003 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 * manual/examples/add.c: Remove redundant "if not".
5006 * manual/examples/argp-ex1.c: Likewise.
5007 * manual/examples/argp-ex2.c: Likewise.
5008 * manual/examples/argp-ex3.c: Likewise.
5009 * manual/examples/argp-ex4.c: Likewise.
5010 * manual/examples/atexit.c: Likewise.
5011 * manual/examples/db.c: Likewise.
5012 * manual/examples/dir.c: Likewise.
5013 * manual/examples/dir2.c: Likewise.
5014 * manual/examples/execinfo.c: Likewise.
5015 * manual/examples/filecli.c: Likewise.
5016 * manual/examples/filesrv.c: Likewise.
5017 * manual/examples/fmtmsgexpl.c: Likewise.
5018 * manual/examples/genpass.c: Likewise.
5019 * manual/examples/inetcli.c: Likewise.
5020 * manual/examples/inetsrv.c: Likewise.
5021 * manual/examples/isockad.c: Likewise.
5022 * manual/examples/longopt.c: Likewise.
5023 * manual/examples/memopen.c: Likewise.
5024 * manual/examples/memstrm.c: Likewise.
5025 * manual/examples/mkdirent.c: Likewise.
5026 * manual/examples/mkfsock.c: Likewise.
5027 * manual/examples/mkisock.c: Likewise.
5028 * manual/examples/mygetpass.c: Likewise.
5029 * manual/examples/pipe.c: Likewise.
5030 * manual/examples/popen.c: Likewise.
5031 * manual/examples/rprintf.c: Likewise.
5032 * manual/examples/search.c: Likewise.
5033 * manual/examples/select.c: Likewise.
5034 * manual/examples/setjmp.c: Likewise.
5035 * manual/examples/sigh1.c: Likewise.
5036 * manual/examples/sigusr.c: Likewise.
5037 * manual/examples/stpcpy.c: Likewise.
5038 * manual/examples/strdupa.c: Likewise.
5039 * manual/examples/strftim.c: Likewise.
5040 * manual/examples/subopt.c: Likewise.
5041 * manual/examples/swapcontext.c: Likewise.
5042 * manual/examples/termios.c: Likewise.
5043 * manual/examples/testopt.c: Likewise.
5044 * manual/examples/testpass.c: Likewise.
5045 * manual/examples/timeval_subtract.c: Likewise.
5046
5047 2018-12-19 Joseph Myers <joseph@codesourcery.com>
5048
5049 * sysdeps/x86/fpu/math_private.h: New file.
5050 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
5051
5052 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
5053 definition.
5054 (cosh): Likewise.
5055 (tanh): Likewise.
5056
5057 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5058
5059 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
5060 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
5061 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
5062 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
5063 fields.
5064 (_dl_show_auxv): Give a special treatment to
5065 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
5066 and AT_L3_CACHEGEOMETRY.
5067 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
5068 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
5069 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
5070 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
5071
5072 2018-12-19 Andreas Schwab <schwab@suse.de>
5073
5074 * nscd/connections.c (check_use): Don't abort on invalid len.
5075
5076 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
5077
5078 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
5079 values in the 64bit value cases.
5080
5081 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
5082
5083 * include/time.h
5084 (__ctime64_r): Add.
5085 * time/ctime_r.c
5086 (__ctime64_r): Add.
5087 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
5088
5089 * include/time.h
5090 (__ctime64): Add.
5091 * time/gmtime.c
5092 (__ctime64): Add.
5093 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
5094
5095 * include/time.h
5096 (__gmtime64_r): Add.
5097 * time/gmtime.c
5098 (__gmtime64_r): Add.
5099 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5100
5101 * include/time.h
5102 (__gmtime64): Add.
5103 * time/gmtime.c
5104 (__gmtime64): Add.
5105 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
5106
5107 * include/time.h
5108 (__localtime64_r): Add.
5109 * time/localtime.c
5110 (__localtime64_r): Add.
5111 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
5112
5113 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5114
5115 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
5116 kernel_sigction definition.
5117
5118 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
5119
5120 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
5121
5122 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
5123 __syscall_rt_sigaction.
5124 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
5125 (kernel_sigaction): Use Linux generic defintion.
5126 (STUB): Define.
5127 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
5128 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
5129 (__syscall_rt_sigaction): Remove implementation.
5130 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
5131 hidden.
5132 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
5133 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
5134 INTERNAL_SYSCALL): Remove definitions.
5135 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
5136 action and signal set size.
5137 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
5138 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
5139
5140 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5141 James Clarke <jrtc27@jrtc27.com>
5142
5143 [BZ #23967]
5144 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
5145 Define if SA_RESTORER is defined.
5146 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5147 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5148 already defined.
5149 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5150 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5151 definitions.
5152 (HAS_SA_RESTORER): Define.
5153 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5154 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5155 (HAS_SA_RESTORER): Define.
5156 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5157 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5158 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5159 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5160 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5161
5162 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5163
5164 * sysdeps/unix/sysv/linux/kernel-features.h
5165 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5166 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5167 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5168 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5169 (__ASSUME_ST_INO_64_BIT): Likewise.
5170 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5171 <kernel-features.h>.
5172 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5173 Remove conditional code.
5174 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5175 <kernel-features.h>.
5176 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5177 Remove conditional code.
5178 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5179 <kernel-features.h>.
5180 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5181 Remove conditional code.
5182 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5183 <kernel-features.h>.
5184 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5185 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5186
5187 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5188
5189 * sysdeps/s390/multiarch/ifunc-resolve.h
5190 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5191 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5192 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5193 Delete macro definition.
5194 (s390_libc_ifunc_init): Rename to
5195 s390_libc_ifunc_expr_stfle_init.
5196 * sysdeps/s390/bzero: Use
5197 s390_libc_ifunc_expr_stfle_init instead of
5198 s390_libc_ifunc_init.
5199 * sysdeps/s390/memcmp.c: Likewise.
5200 * sysdeps/s390/memcpy.c: Likewise.
5201 * sysdeps/s390/mempcpy.c: Likewise.
5202 * sysdeps/s390/memset.c: Likewise.
5203
5204 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5205
5206 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5207 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5208
5209 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5210
5211 * sysdeps/s390/multiarch/Makefile
5212 (sysdep_routines): Remove wmemcmp variants.
5213 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5214 * sysdeps/s390/multiarch/ifunc-impl-list.c
5215 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5216 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5217 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5218 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5219 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5220 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5221 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5222 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5223
5224 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5225
5226 * sysdeps/s390/multiarch/Makefile
5227 (sysdep_routines): Remove wmemset variants.
5228 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5229 * sysdeps/s390/multiarch/ifunc-impl-list.c
5230 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5231 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5232 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5233 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5234 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5235 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5236 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5237 * sysdeps/s390/ifunc-wmemset.h: New file.
5238
5239 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5240
5241 * sysdeps/s390/multiarch/Makefile
5242 (sysdep_routines): Remove wmemchr variants.
5243 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5244 * sysdeps/s390/multiarch/ifunc-impl-list.c
5245 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5246 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5247 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5248 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5249 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5250 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5251 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5252 * sysdeps/s390/ifunc-wmemchr.h: New file.
5253
5254 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5255
5256 * sysdeps/s390/multiarch/Makefile
5257 (sysdep_routines): Remove wcscspn variants.
5258 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5259 * sysdeps/s390/multiarch/ifunc-impl-list.c
5260 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5261 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5262 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5263 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5264 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5265 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5266 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5267 * sysdeps/s390/ifunc-wcscspn.h: New file.
5268
5269 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5270
5271 * sysdeps/s390/multiarch/Makefile
5272 (sysdep_routines): Remove wcspbrk variants.
5273 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5274 * sysdeps/s390/multiarch/ifunc-impl-list.c
5275 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5276 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5277 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5278 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5279 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5280 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5281 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5282 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5283
5284 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5285
5286 * sysdeps/s390/multiarch/Makefile
5287 (sysdep_routines): Remove wcsspn variants.
5288 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5289 * sysdeps/s390/multiarch/ifunc-impl-list.c
5290 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5291 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5292 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5293 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5294 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5295 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5296 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5297 * sysdeps/s390/ifunc-wcsspn.h: New file.
5298
5299 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5300
5301 * sysdeps/s390/multiarch/Makefile
5302 (sysdep_routines): Remove wcsrchr variants.
5303 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5304 * sysdeps/s390/multiarch/ifunc-impl-list.c
5305 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5306 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5307 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5308 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5309 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5310 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5311 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5312 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5313
5314 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5315
5316 * sysdeps/s390/multiarch/Makefile
5317 (sysdep_routines): Remove wcschrnul variants.
5318 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5319 * sysdeps/s390/multiarch/ifunc-impl-list.c
5320 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5321 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5322 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5323 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5324 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5325 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5326 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5327 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5328
5329 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5330
5331 * sysdeps/s390/multiarch/Makefile
5332 (sysdep_routines): Remove wcschr variants.
5333 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5334 * sysdeps/s390/multiarch/ifunc-impl-list.c
5335 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5336 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5337 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5338 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5339 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5340 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5341 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5342 * sysdeps/s390/ifunc-wcschr.h: New file.
5343
5344 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5345
5346 * sysdeps/s390/multiarch/Makefile
5347 (sysdep_routines): Remove wcsncmp variants.
5348 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5349 * sysdeps/s390/multiarch/ifunc-impl-list.c
5350 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5351 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5352 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5353 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5354 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5355 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5356 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5357 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5358
5359 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5360
5361 * sysdeps/s390/multiarch/Makefile
5362 (sysdep_routines): Remove wcscmp variants.
5363 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5364 * sysdeps/s390/multiarch/ifunc-impl-list.c
5365 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5366 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5367 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5368 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5369 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5370 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5371 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5372 * sysdeps/s390/ifunc-wcscmp.h: New file.
5373
5374 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5375
5376 * sysdeps/s390/multiarch/Makefile
5377 (sysdep_routines): Remove wcsncat variants.
5378 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5379 * sysdeps/s390/multiarch/ifunc-impl-list.c
5380 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5381 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5382 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5383 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5384 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5385 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5386 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5387 * sysdeps/s390/ifunc-wcsncat.h: New file.
5388
5389 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5390
5391 * sysdeps/s390/multiarch/Makefile
5392 (sysdep_routines): Remove wcscat variants.
5393 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5394 * sysdeps/s390/multiarch/ifunc-impl-list.c
5395 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5396 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5397 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5398 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5399 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5400 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5401 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5402 * sysdeps/s390/ifunc-wcscat.h: New file.
5403
5404 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5405
5406 * sysdeps/s390/multiarch/Makefile
5407 (sysdep_routines): Remove wcpncpy variants.
5408 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5409 * sysdeps/s390/multiarch/ifunc-impl-list.c
5410 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5411 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5412 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5413 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5414 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5415 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5416 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5417 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5418
5419 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5420
5421 * sysdeps/s390/multiarch/Makefile
5422 (sysdep_routines): Remove wcsncpy variants.
5423 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5424 * sysdeps/s390/multiarch/ifunc-impl-list.c
5425 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5426 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5427 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5428 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5429 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5430 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5431 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5432 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5433
5434 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5435
5436 * sysdeps/s390/multiarch/Makefile
5437 (sysdep_routines): Remove wcpcpy variants.
5438 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5439 * sysdeps/s390/multiarch/ifunc-impl-list.c
5440 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5441 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5442 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5443 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5444 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5445 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5446 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5447 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5448
5449 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5450
5451 * sysdeps/s390/multiarch/Makefile
5452 (sysdep_routines): Remove wcscpy variants.
5453 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5454 * sysdeps/s390/multiarch/ifunc-impl-list.c
5455 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5456 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5457 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5458 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5459 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5460 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5461 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5462 * sysdeps/s390/ifunc-wcscpy.h: New file.
5463
5464 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5465
5466 * sysdeps/s390/multiarch/Makefile
5467 (sysdep_routines): Remove wcsnlen variants.
5468 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5469 * sysdeps/s390/multiarch/ifunc-impl-list.c
5470 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5471 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5472 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5473 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5474 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5475 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5476 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5477 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5478
5479 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5480
5481 * sysdeps/s390/multiarch/Makefile
5482 (sysdep_routines): Remove wcslen variants.
5483 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5484 * sysdeps/s390/multiarch/ifunc-impl-list.c
5485 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5486 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5487 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5488 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5489 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5490 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5491 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5492 * sysdeps/s390/ifunc-wcslen.h: New file.
5493
5494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5495
5496 * sysdeps/s390/multiarch/Makefile
5497 (sysdep_routines): Remove memrchr variants.
5498 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5499 * sysdeps/s390/multiarch/ifunc-impl-list.c
5500 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5501 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5502 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5503 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5504 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5505 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5506 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5507 * sysdeps/s390/ifunc-memrchr.h: New file.
5508
5509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5510
5511 * sysdeps/s390/multiarch/Makefile
5512 (sysdep_routines): Remove memccpy variants.
5513 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5514 * sysdeps/s390/multiarch/ifunc-impl-list.c
5515 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5516 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5517 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5518 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5519 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5520 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5521 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5522 * sysdeps/s390/ifunc-memccpy.h: New file.
5523
5524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5525
5526 * sysdeps/s390/multiarch/Makefile
5527 (sysdep_routines): Remove rawmemchr variants.
5528 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5529 * sysdeps/s390/multiarch/ifunc-impl-list.c
5530 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5531 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5532 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5533 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5534 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5535 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5536 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5537 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5538
5539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5540
5541 * sysdeps/s390/multiarch/Makefile
5542 (sysdep_routines): Remove memchr variants.
5543 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5544 * sysdeps/s390/multiarch/ifunc-impl-list.c
5545 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5546 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5547 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5548 * sysdeps/s390/multiarch/memchr.c: Move to ...
5549 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5550 * sysdeps/s390/ifunc-memchr.h: New file.
5551 * sysdeps/s390/s390-64/memchr.S: Move to ...
5552 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5553 for 31/64bit and ifunc handling.
5554 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5555 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5556 * sysdeps/s390/s390-32/memchr.S: Likewise.
5557
5558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5559
5560 * sysdeps/s390/multiarch/Makefile
5561 (sysdep_routines): Remove strcspn variants.
5562 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5563 * sysdeps/s390/multiarch/ifunc-impl-list.c
5564 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5565 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5566 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5567 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5568 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5569 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5570 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5571 * sysdeps/s390/ifunc-strcspn.h: New file.
5572
5573 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5574
5575 * sysdeps/s390/multiarch/Makefile
5576 (sysdep_routines): Remove strpbrk variants.
5577 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5578 * sysdeps/s390/multiarch/ifunc-impl-list.c
5579 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5580 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5581 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5582 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5583 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5584 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5585 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5586 * sysdeps/s390/ifunc-strpbrk.h: New file.
5587
5588 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5589
5590 * sysdeps/s390/multiarch/Makefile
5591 (sysdep_routines): Remove strspn variants.
5592 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5593 * sysdeps/s390/multiarch/ifunc-impl-list.c
5594 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5595 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5596 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5597 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5598 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5599 * sysdeps/s390/multiarch/strspn.c: Move to ...
5600 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5601 * sysdeps/s390/ifunc-strspn.h: New file.
5602
5603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5604
5605 * sysdeps/s390/multiarch/Makefile
5606 (sysdep_routines): Remove strrchr variants.
5607 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5608 * sysdeps/s390/multiarch/ifunc-impl-list.c
5609 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5610 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5611 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5612 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5613 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5614 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5615 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5616 * sysdeps/s390/ifunc-strrchr.h: New file.
5617
5618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5619
5620 * sysdeps/s390/multiarch/Makefile
5621 (sysdep_routines): Remove strchrnul variants.
5622 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5623 * sysdeps/s390/multiarch/ifunc-impl-list.c
5624 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5625 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5626 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5627 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5628 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5629 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5630 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5631 * sysdeps/s390/ifunc-strchrnul.h: New file.
5632
5633 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5634
5635 * sysdeps/s390/multiarch/Makefile
5636 (sysdep_routines): Remove strchr variants.
5637 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5638 * sysdeps/s390/multiarch/ifunc-impl-list.c
5639 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5640 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5641 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5642 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5643 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5644 * sysdeps/s390/multiarch/strchr.c: Move to ...
5645 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5646 * sysdeps/s390/ifunc-strchr.h: New file.
5647
5648 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5649
5650 * sysdeps/s390/multiarch/Makefile
5651 (sysdep_routines): Remove strncmp variants.
5652 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5653 * sysdeps/s390/multiarch/ifunc-impl-list.c
5654 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5655 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5656 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5657 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5658 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5659 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5660 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5661 * sysdeps/s390/ifunc-strncmp.h: New file.
5662
5663 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5664
5665 * sysdeps/s390/multiarch/Makefile
5666 (sysdep_routines): Remove strcmp variants.
5667 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5668 * sysdeps/s390/multiarch/ifunc-impl-list.c
5669 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5670 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5671 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5672 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5673 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5674 * sysdeps/s390/ifunc-strcmp.h: New file.
5675 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5676 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5677 for 31/64bit and ifunc handling.
5678 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5679 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5680 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5681
5682 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5683
5684 * sysdeps/s390/multiarch/Makefile
5685 (sysdep_routines): Remove strncat variants.
5686 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5687 * sysdeps/s390/multiarch/ifunc-impl-list.c
5688 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5689 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5690 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5691 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5692 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5693 * sysdeps/s390/multiarch/strncat.c: Move to ...
5694 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5695 * sysdeps/s390/ifunc-strncat.h: New file.
5696
5697 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5698
5699 * sysdeps/s390/multiarch/Makefile
5700 (sysdep_routines): Remove strcat variants.
5701 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5702 * sysdeps/s390/multiarch/ifunc-impl-list.c
5703 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5704 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5705 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5706 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5707 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5708 * sysdeps/s390/multiarch/strcat.c: Move to ...
5709 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5710 * sysdeps/s390/ifunc-strcat.h: New file.
5711
5712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5713
5714 * sysdeps/s390/multiarch/Makefile
5715 (sysdep_routines): Remove stpncpy variants.
5716 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5717 * sysdeps/s390/multiarch/ifunc-impl-list.c
5718 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5719 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5720 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5721 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5722 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5723 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5724 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5725 * sysdeps/s390/ifunc-stpncpy.h: New file.
5726
5727 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5728
5729 * sysdeps/s390/multiarch/Makefile
5730 (sysdep_routines): Remove strncpy variants.
5731 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5732 * sysdeps/s390/multiarch/ifunc-impl-list.c
5733 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5734 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5735 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5736 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5737 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5738 * sysdeps/s390/ifunc-strncpy.h: New file.
5739 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5740 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5741 and adjust ifunc handling.
5742 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5743 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5744 and adjust ifunc handling.
5745 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5746 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5747
5748 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5749
5750 * sysdeps/s390/multiarch/Makefile
5751 (sysdep_routines): Remove stpcpy variants.
5752 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5753 * sysdeps/s390/multiarch/ifunc-impl-list.c
5754 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5755 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5756 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5757 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5758 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5759 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5760 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5761 * sysdeps/s390/ifunc-stpcpy.h: New file.
5762
5763 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5764
5765 * sysdeps/s390/multiarch/Makefile
5766 (sysdep_routines): Remove strcpy variants.
5767 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5768 * sysdeps/s390/multiarch/ifunc-impl-list.c
5769 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5770 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5771 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5772 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5773 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5774 * sysdeps/s390/ifunc-strcpy.h: New file.
5775 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5776 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5777 for 31/64bit and ifunc handling.
5778 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5779 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5780 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5781
5782 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5783
5784 * sysdeps/s390/multiarch/Makefile
5785 (sysdep_routines): Remove strnlen variants.
5786 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5787 * sysdeps/s390/multiarch/ifunc-impl-list.c
5788 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5789 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5790 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5791 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5792 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5793 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5794 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5795 * sysdeps/s390/ifunc-strnlen.h: New file.
5796
5797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5798
5799 * sysdeps/s390/multiarch/Makefile
5800 (sysdep_routines): Remove strlen variants.
5801 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5802 * sysdeps/s390/multiarch/ifunc-impl-list.c
5803 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5804 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5805 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5806 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5807 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5808 * sysdeps/s390/multiarch/strlen.c: Move to ...
5809 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5810 * sysdeps/s390/ifunc-strlen.h: New file.
5811
5812 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5813
5814 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5815 * sysdeps/s390/multiarch/ifunc-impl-list.c
5816 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5817 * sysdeps/s390/ifunc-memmem.h: New file.
5818 * sysdeps/s390/memmem.c: Likewise.
5819 * sysdeps/s390/memmem-c.c: Likewise.
5820 * sysdeps/s390/memmem-vx.c: Likewise.
5821
5822 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5823
5824 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5825 * sysdeps/s390/multiarch/ifunc-impl-list.c
5826 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5827 * sysdeps/s390/ifunc-strstr.h: New file.
5828 * sysdeps/s390/strstr.c: Likewise.
5829 * sysdeps/s390/strstr-c.c: Likewise.
5830 * sysdeps/s390/strstr-vx.c: Likewise.
5831
5832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5833
5834 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5835 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5836 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5837 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5838 New defines.
5839 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5840 * sysdeps/s390/memmove-c.c: New file.
5841 * sysdeps/s390/memmove.c: Likewise.
5842 * sysdeps/s390/multiarch/ifunc-impl-list.c
5843 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5844
5845 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5846
5847 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5848 * sysdeps/s390/configure.ac: Add check for z13 support.
5849 * sysdeps/s390/configure: Regenerated.
5850
5851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5852
5853 * sysdeps/s390/memcopy.h: New file.
5854
5855 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5856
5857 * sysdeps/s390/s390-32/bcopy.S: Remove.
5858 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5859
5860 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5861
5862 * sysdeps/s390/ifunc-memcpy.h: New File.
5863 * sysdeps/s390/memcpy.S: Move to ...
5864 * sysdeps/s390/memcpy-z900.S ... here.
5865 Move implementations from memcpy-s390x.s to here.
5866 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5867 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5868 Remove memcpy/mempcpy variants.
5869 * sysdeps/s390/Makefile (sysdep_routines):
5870 Add memcpy/mempcpy variants.
5871 * sysdeps/s390/multiarch/ifunc-impl-list.c
5872 (__libc_ifunc_impl_list): Adjust ifunc variants for
5873 memcpy and mempcpy.
5874 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5875 to ...
5876 * sysdeps/s390/memcpy.c: ... here.
5877 Adjust ifunc variants for memcpy.
5878 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5879 * sysdeps/s390/mempcpy.c: ... here.
5880 Adjust ifunc variants for mempcpy.
5881 * sysdeps/s390/mempcpy.S: Delete file.
5882
5883 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5884
5885 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5886 * sysdeps/s390/memcpy.S: ... here.
5887 Adjust to be usable for 31/64bit.
5888 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5889 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5890 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5891 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5892 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5893 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5894 Adjust to be usable for 31/64bit.
5895 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5896 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5897 * sysdeps/s390/multiarch/memcpy.c: ... here.
5898 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5899
5900 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5901
5902 * sysdeps/s390/ifunc-memcmp.h: New File.
5903 * sysdeps/s390/memcmp.S: Move to ...
5904 * sysdeps/s390/memcmp-z900.S ... here.
5905 Move implementations from memcmp-s390x.s to here.
5906 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5907 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5908 Remove memcmp variants.
5909 * sysdeps/s390/Makefile (sysdep_routines):
5910 Add memcmp variants.
5911 * sysdeps/s390/multiarch/ifunc-impl-list.c
5912 (__libc_ifunc_impl_list): Adjust ifunc variants for
5913 memcmp.
5914 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5915 to ...
5916 * sysdeps/s390/memcmp.c: ... here.
5917 Adjust ifunc variants for memcmp.
5918
5919 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5920
5921 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5922 * sysdeps/s390/memcmp.S: ... here.
5923 Adjust to be usable for 31/64bit.
5924 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5925 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5926 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5927 Remove memcmp.
5928 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5929 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5930 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5931 Adjust to be usable for 31/64bit.
5932 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5933 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5934 * sysdeps/s390/multiarch/memcmp.c: ... here.
5935 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5936
5937 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5938
5939 * sysdeps/s390/s390-32/bzero.S: Delete file.
5940 * sysdeps/s390/s390-64/bzero.S: Likewise.
5941 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5942 * sysdeps/s390/bzero.c: New file.
5943 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5944 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5945 * sysdeps/s390/multiarch/ifunc-impl-list.c
5946 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5947
5948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5949
5950 * sysdeps/s390/ifunc-memset.h: New File.
5951 * sysdeps/s390/memset.S: Move to ...
5952 * sysdeps/s390/memset-z900.S ... here.
5953 Move implementations from memset-s390x.s to here.
5954 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5955 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5956 Remove memset variants.
5957 * sysdeps/s390/Makefile (sysdep_routines):
5958 Add memset variants.
5959 * sysdeps/s390/multiarch/ifunc-impl-list.c
5960 (__libc_ifunc_impl_list): Adjust ifunc variants for
5961 memset.
5962 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5963 to ...
5964 * sysdeps/s390/memset.c: ... here.
5965 Adjust ifunc variants for memset.
5966
5967 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5968
5969 * sysdeps/s390/s390-64/memset.S: Move to ...
5970 * sysdeps/s390/memset.S: ... here.
5971 Adjust to be usable for 31/64bit.
5972 * sysdeps/s390/s390-32/memset.S: Delete File.
5973 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5974 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5975 Remove memset.
5976 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5977 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5978 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5979 Adjust to be usable for 31/64bit.
5980 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5981 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5982 * sysdeps/s390/multiarch/memset.c: ... here.
5983 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5984
5985 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5986
5987 * sysdeps/s390/multiarch/ifunc-resolve.h
5988 (s390_libc_ifunc_init, s390_libc_ifunc,
5989 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5990
5991 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5992
5993 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5994 * sysdeps/s390/configure.ac: Add check for z10 support.
5995 * sysdeps/s390/configure: Regenerated.
5996
5997 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5998
5999 * sysdeps/i386/atomic-machine.h: Merged with ...
6000 * sysdeps/x86_64/atomic-machine.h: To ...
6001 * sysdeps/x86/atomic-machine.h: This. New file.
6002
6003 2018-12-18 Florian Weimer <fweimer@redhat.com>
6004
6005 Rewrite locale/gen-translit.pl in Python.
6006 * locale/Makefile (generated): Add C-translit.h.
6007 (before-compile): Add $(objpfx)C-translit.h.
6008 (C-translit.h): Move to $(objpfx). Create target directory.
6009 Build using Python script.
6010 * locale/gen-translit.py: New file.
6011 * locale/gen-translit.pl: Remove file.
6012 * locale/C-translit.h.in: Change comment character to '#' for
6013 easier parsing without a C preprocessor.
6014 * locale/C-translit.h: Remove generated file.
6015 * manual/install.texi (Tools for Compilation): Do not mention
6016 C-translit.h.
6017 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6018 Remove locale/C-translit.h.
6019 * scripts/update-copyrights: Likewise.
6020 * INSTALL: Regenerate.
6021
6022 2018-12-18 Florian Weimer <fweimer@redhat.com>
6023
6024 [BZ #23995]
6025 * localedata/locales/bi_VU: Remove executable bit from file.
6026
6027 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
6028
6029 * include/time.h
6030 (__localtime64): Add.
6031 * manual/maint.texi: Document Y2038 symbol handling.
6032 * time/localtime.c
6033 (__localtime64): Add.
6034 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
6035
6036 2018-12-17 Joseph Myers <joseph@codesourcery.com>
6037
6038 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
6039 Do not clobber r12.
6040
6041 * scripts/glibcextract.py (compare_macro_consts): Take parameters
6042 to allow extra macros from first or second sources.
6043 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
6044 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6045 (tests-special): Add $(objpfx)tst-mman-consts.out.
6046 ($(objpfx)tst-mman-consts.out): New makefile target.
6047
6048 2018-12-17 Mao Han <han_mao@c-sky.com>
6049
6050 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
6051 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
6052 without stat64 system call support.
6053 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
6054 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
6055 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6056 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
6057 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
6058 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
6059 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
6060 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
6061 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
6062 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
6063 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
6064
6065 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
6066
6067 regex: fix storage-exhaustion error
6068 [BZ #18040]
6069 * posix/regexec.c (get_subexp):
6070 Do not continue if storage is exhausted.
6071
6072 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
6073
6074 regex: fix heap-use-after-free error
6075 [BZ #18040]
6076 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
6077 https://debbugs.gnu.org/32592
6078 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
6079 call extend_buffers which reallocates the re_string_t internal buffer.
6080 Local variable 'buf' was not updated in such case, resulting in
6081 use-after-free.
6082 * posix/regexec.c (get_subexp): Update 'buf' after call to
6083 get_subexp_sub.
6084
6085 2018-12-15 Florian Weimer <fweimer@redhat.com>
6086
6087 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
6088 (minimum_stride_size): Use it.
6089 (support_blob_repeat_allocate): Likewise.
6090
6091 2018-12-14 Joseph Myers <joseph@codesourcery.com>
6092
6093 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
6094 definition.
6095 (acosh): Likewise.
6096 (atanh): Likewise.
6097
6098 2018-12-14 Florian Weimer <fweimer@redhat.com>
6099
6100 * manual/process.texi (Process Creation Concepts): Remove
6101 documentation of process (ID) lifetime. List more process
6102 creation functions. Reference Process Identification section.
6103 (Process Identification): Add information about process ID
6104 lifetime. Describe Linux thread/task IDs.
6105 * manual/signal.texi (Signaling Another Process): Mention that the
6106 signal is always sent to the process.
6107
6108 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6109
6110 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
6111 and tst-ldbl-efgcvt.
6112 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
6113 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
6114 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
6115 (fcvt_tests, output_error, output_r_error, do_test): Use the
6116 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
6117 select the type of floating-point variables and arguments; to
6118 produce extra tests for double and conversion specifiers for
6119 printf; and to set the names of called functions.
6120 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
6121 in tst-efgcvt-template.c.
6122 * misc/tst-ldbl-efgcvt.c: Likewise.
6123
6124 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
6125
6126 * nss/Makefile (tst-nss-test3.out): New rule.
6127
6128 2018-12-13 Joseph Myers <joseph@codesourcery.com>
6129
6130 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
6131 clobber sp.
6132
6133 2018-12-13 fanjinke <fanjinke@hygon.cn>
6134
6135 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
6136 "HygonGenuine".
6137
6138 2018-12-13 Andreas Schwab <schwab@suse.de>
6139
6140 [BZ #23861]
6141 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
6142 (__pthread_rwlock_rdlock_full): Update expected value for
6143 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
6144 * nptl/tst-rwlock-pwn.c: New file.
6145 * nptl/Makefile (tests): Add tst-rwlock-pwn.
6146
6147 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6148
6149 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6150 definition.
6151
6152 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6153
6154 * benchtests/scripts/compare_bench.py (do_compare): write to
6155 stderr in casestat is not present.
6156 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6157 stderr in case timings field is not present. Also string showing
6158 the output filename goes into the stderr.
6159
6160 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6161
6162 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6163 and ZeroDivisorError exceptions.
6164 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6165 argument to loop through user provided statistics.
6166 * benchtests/scripts/compare_bench.py (main): Include the --stats
6167 argument.
6168
6169 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6170
6171 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6172 instead of return.
6173
6174 2018-12-12 Florian Weimer <fweimer@redhat.com>
6175
6176 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6177 clause to copyright header.
6178
6179 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6180
6181 [BZ #23614]
6182 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6183 registers saved in the stack frame.
6184 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6185 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6186
6187 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6188
6189 * include/bits/monetary-ldbl.h: New file.
6190 * include/bits/printf-ldbl.h: Likewise.
6191 * include/bits/stdio-ldbl.h: Likewise.
6192 * include/bits/stdlib-ldbl.h: Likewise.
6193 * include/bits/syslog-ldbl.h: Likewise.
6194 * include/bits/wchar-ldbl.h: Likewise.
6195
6196 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6197
6198 * libio/libio.h: Remove redirection for _IO_vfprintf.
6199
6200 2018-12-11 Andreas Schwab <schwab@suse.de>
6201
6202 * Makerules: Remove all references to abilist-pattern.
6203 (update-all-abi): Simplify find expression.
6204
6205 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6206
6207 [BZ #23961]
6208 * math/auto-libm-test-in: Add new test case.
6209 * math/auto-libm-test-out-pow: Regenerated.
6210 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6211
6212 2018-12-10 DJ Delorie <dj@redhat.com>
6213
6214 [BZ #23948]
6215 * support/test-container.c: Move postclean step to before we
6216 change namespaces.
6217
6218 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6219
6220 * scripts/gen-as-const.py (main): Handle --python option.
6221 * scripts/gen-py-const.awk: Remove.
6222 * Makerules (py-const-script): Use gen-as-const.py.
6223 ($(py-const)): Likewise.
6224 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6225 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6226 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6227 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6228 ~PTHREAD_MUTEX_NO_ELISION_NP.
6229 * manual/README.pretty-printers: Update reference to
6230 gen-py-const.awk.
6231
6232 * scripts/glibcextract.py: New file.
6233 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6234 or tempfile. Import glibcexctract.
6235 (compute_c_consts): Remove. Moved to glibcextract.py.
6236 (gen_test): Update reference to compute_c_consts.
6237 (main): Likewise.
6238 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6239 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6240 * sysdeps/unix/sysv/linux/Makefile
6241 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6242 Redirect stderr as well as stdout.
6243
6244 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6245
6246 [BZ #19767]
6247 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6248 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6249 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6250 ALWAYS_USE_VSYSCALL.
6251 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6252 ALWAYS_USE_VSYSCALL.
6253 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6254 ALWAYS_USE_VSYSCALL.
6255
6256 2018-12-10 Florian Weimer <fweimer@redhat.com>
6257
6258 [BZ #23972]
6259 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6260 offset instead of count for clarity. Fix typo in comment.
6261 (__old_getdents64): Keep track of previous offset. Use it to call
6262 handle_overflow.
6263 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6264 that d_off is never zero.
6265
6266 2018-12-10 Andreas Schwab <schwab@suse.de>
6267
6268 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6269 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6270 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6271 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6272 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6273
6274 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6275
6276 * timezone/private.h: Update from tzcode 2018g.
6277 * timezone/tzfile.h: Likewise.
6278 * timezone/tzselect.ksh: Likewise.
6279 * timezone/zdump.c: Likewise.
6280 * timezone/zic.c: Likewise.
6281
6282 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6283
6284 [BZ #23490]
6285 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6286 (do_test): Adjust buffer size and fix format.
6287
6288 2018-12-07 DJ Delorie <dj@redhat.com>
6289
6290 [BZ #23907]
6291 * malloc/tst-tcfree3.c: New.
6292 * malloc/Makefile: Add it.
6293
6294 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6295
6296 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6297
6298 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6299
6300 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6301 used as a mask for the mode argument of __vfscanf_internal and
6302 __vfwscanf_internal.
6303 * stdio-common/vfscanf-internal.c
6304 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6305 (__strtof128_internal): Define to __wcstof128_internal.
6306 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6307 __strtof128_internal or __wcstof128_internal when the format of
6308 long double is the same as _Float128.
6309
6310 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6311
6312 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6313 * posix/confstr.c (confstr): Rename to __confstr.
6314 (__confstr): Add hidden def.
6315 (confstr): Add weak alias for __confstr.
6316 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6317 confstr.
6318
6319 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6320
6321 * NEWS: Mention getcpu.
6322 * include/sched.h (__getcpu): New libc_hidden_proto.
6323 * manual/resource.texi: Document getcpu.
6324 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6325 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6326 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6327 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6328 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6329 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6330 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6331 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6332 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6333 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6334 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6335 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6336 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6337 Likewise.
6338 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6339 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6340 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6341 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6342 Likewise.
6343 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6344 Likewise.
6345 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6346 Likewise.
6347 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6348 Likewise.
6349 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6350 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6351 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6352 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6353 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6354 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6355 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6356 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6357 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6358 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6359 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6360 Also check getcpu.
6361
6362 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6363
6364 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6365 functions.
6366 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6367
6368 2018-12-07 Florian Weimer <fweimer@redhat.com>
6369
6370 [BZ #17405]
6371 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6372 * posix/Versions (GLIBC_2.29): Export
6373 posix_spawn_file_actions_addfchdir_np.
6374 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6375 * posix/spawn_faction_destroy.c
6376 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6377 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6378 and the field action.fchdir_action.
6379 * posix/tst-spawn-chdir.c (add_chdir): New function.
6380 (do_test): Add do_fchdir loop. Call add_chdir.
6381 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6382 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6383 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6384 posix_spawn_file_actions_addfchdir_np.
6385 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6386 Likewise.
6387 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6388 Likewise.
6389 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6390 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6391 Likewise.
6392 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6393 Likewise.
6394 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6395 Likewise.
6396 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6397 Likewise.
6398 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6399 Likewise.
6400 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6401 Likewise.
6402 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6403 (GLIBC_2.29): Likewise.
6404 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6405 (GLIBC_2.29): Likewise.
6406 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6407 (GLIBC_2.29): Likewise.
6408 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6409 (GLIBC_2.29): Likewise.
6410 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6411 Likewise.
6412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6413 (GLIBC_2.29): Likewise.
6414 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6415 (GLIBC_2.29): Likewise.
6416 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6417 (GLIBC_2.29): Likewise.
6418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6419 (GLIBC_2.29): Likewise.
6420 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6421 Likewise.
6422 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6423 Likewise.
6424 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6425 Likewise.
6426 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6427 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6428 Likewise.
6429 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6430 Likewise.
6431 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6432 Likewise.
6433 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6434 Likewise.
6435
6436 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6437
6438 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6439 trailing whitespace removed.
6440 * scripts/config.guess: Update to version 2018-11-28.
6441 * scripts/config.sub: Update to version 2018-11-28.
6442 * scripts/install-sh: Update to version 2018-03-11.20.
6443 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6444 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6445
6446 2018-12-07 Florian Weimer <fweimer@redhat.com>
6447
6448 [BZ #23927]
6449 CVE-2018-19591
6450 * inet/tst-if_index-long.c: New file.
6451 * inet/Makefile (tests): Add tst-if_index-long.
6452
6453 2018-12-07 Florian Weimer <fweimer@redhat.com>
6454
6455 * support/check.h (support_record_failure_is_failed): Declare.
6456 * support/descriptors.h: New file.
6457 * support/support_descriptors.c: Likewise.
6458 * support/tst-support_descriptors.c: Likewise.
6459 * support/support_record_failure.c
6460 (support_record_failure_is_failed): New function.
6461 * support/Makefile (libsupport-routines): Add support_descriptors.
6462 (tests): Add tst-support_descriptors.
6463
6464 2018-12-05 Zack Weinberg <zackw@panix.com>
6465 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6466
6467 * stdio-common/vfprintf-internal.c
6468 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6469 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6470 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6471 and __no_long_double.
6472 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6473 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6474 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6475 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6476 and __nldbl_*syslog* functions.
6477 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6478 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6479 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6480 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6481 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6482 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6483 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6484 (__nldbl_vwprintf, __nldbl_wprintf):
6485 Directly call the appropriate __v*printf_internal routine, passing
6486 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6487 variable names.
6488 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6489 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6490 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6491 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6492 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6493 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6494 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6495 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6496 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6497 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6498 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6499 (__nldbl_syslog, __nldbl_vsyslog):
6500 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6501 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6502 appropriate.
6503 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6504 appropriate.
6505
6506 2018-12-05 Zack Weinberg <zackw@panix.com>
6507 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6508
6509 [BZ #11319]
6510 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6511 Moved here from debug/vsprintf_chk.c.
6512 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6513 and completion logic for the strfile to match exactly what
6514 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6515 _IO_str_init_static_internal instead of maxlen-1.
6516 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6517 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6518 __vsprintf_internal.
6519
6520 * debug/vsprintf_chk.c (__vsprintf_chk)
6521 * debug/sprintf_chk.c (__sprintf_chk):
6522 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6523 'flags' argument is positive, and slen as maxlen. No need to lock
6524 the FILE and/or construct a temporary FILE. Minimize and normalize
6525 header inclusions and variable names. Do not libc_hidden_def anything.
6526
6527 * debug/asprintf_chk.c (__asprintf_chk)
6528 * debug/dprintf_chk.c (__dprintf_chk)
6529 * debug/fprintf_chk.c (__fprintf_chk)
6530 * debug/fwprintf_chk.c (__fwprintf_chk)
6531 * debug/printf_chk.c (__printf_chk)
6532 * debug/snprintf_chk.c (__snprintf_chk)
6533 * debug/swprintf_chk.c (__swprintf_chk)
6534 * debug/vasprintf_chk.c (__vasprintf_chk)
6535 * debug/vdprintf_chk.c (__vdprintf_chk)
6536 * debug/vfprintf_chk.c (__vfprintf_chk)
6537 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6538 * debug/vprintf_chk.c (__vprintf_chk)
6539 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6540 * debug/vswprintf_chk.c (__vswprintf_chk)
6541 * debug/vwprintf_chk.c (__vwprintf_chk)
6542 * debug/wprintf_chk.c (__wprintf_chk):
6543 Directly call the corresponding vxxprintf_internal function, passing
6544 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6545 the FILE and/or construct a temporary FILE. Minimize and normalize
6546 header inclusions and variable names. Do not libc_hidden_def anything.
6547
6548 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6549 __obstack_vprintf_internal.
6550 (__obstack_vprintf_chk): Convert into a wrapper that calls
6551 __obstack_vprintf_internal (these two functions already had the
6552 same code) and move to new file...
6553 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6554 file.
6555 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6556 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6557 * debug/Makefile (routines): Add vobprintf_chk.
6558
6559 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6560 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6561 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6562 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6563 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6564 (__nldbl___obstack_vfprintf_chk):
6565 Directly call the corresponding vxxprintf_internal function,
6566 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6567 duplicate comparison of slen with 0 or maxlen from the corresponding
6568 non-__nldbl function.
6569
6570 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6571 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6572 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6573 Remove libc_hidden_proto.
6574
6575 * stdio-common/vfprintf-internal.c
6576 (__vfprintf_internal, __vfwprintf_internal):
6577 Do not check _IO_FLAGS2_FORTIFY.
6578 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6579 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6580 a comment explaining why it has the maxlen argument.
6581 (_IO_acquire_lock_clear_flags2_fct): Remove.
6582 (_IO_acquire_lock_clear_flags2): Remove.
6583 (_IO_release_lock): Remove conditional statement which will
6584 now never execute.
6585 (_IO_acquire_lock): Remove variable which is now unused.
6586 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6587 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6588
6589 * stdio-common/Makefile (tests): Add tst-bz11319 and
6590 tst-bz11319-fortify2.
6591 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6592 * stdio-common/tst-bz11319-fortify2.c: New file.
6593 * stdio-common/tst-bz11319.c: Likewise.
6594
6595 2018-12-05 Zack Weinberg <zackw@panix.com>
6596 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6597
6598 * misc/syslog.c: Include libioP.h, not iolibio.h.
6599 (__vsyslog_internal): New function with the former body of
6600 __vsyslog_chk; takes mode_flags argument same as
6601 __v*printf_internal. Call __vfprintf_internal directly.
6602
6603 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6604 Remove libc_hidden_def.
6605 (__syslog, __syslog_chk): Use __vsyslog_internal.
6606 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6607
6608 * include/sys/syslog.h: Add multiple inclusion guard.
6609 Add prototype for __vsyslog_internal.
6610 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6611
6612 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6613 Use __vsyslog_internal.
6614
6615 2018-12-05 Zack Weinberg <zackw@panix.com>
6616 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6617
6618 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6619 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6620 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6621 New functions.
6622 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6623 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6624
6625 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6626 Include wctype.h here if COMPILE_WPRINTF is defined.
6627 Define __vfprintf_internal or __vfwprintf_internal, depending
6628 on COMPILE_WPRINTF.
6629 Temporarily, on entry to this function, update mode_flags
6630 according to the environmental settings corresponding to
6631 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6632 Throughout, check mode_flags instead of __ldbl_is_dbl and
6633 _IO_FLAGS2_FORTIFY on the destination FILE.
6634 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6635 Include vfprintf-internal.c. Don't include wctype.h.
6636 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6637 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6638 and vfprintf.
6639 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6640 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6641 and vfwprintf.
6642 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6643
6644 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6645 and add mode_flags argument; use __vfprintf_internal.
6646 (__vdprintf): New function. Alias vdprintf to this.
6647 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6648 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6649 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6650 (__obstack_printf): Use __obstack_printf_internal.
6651 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6652 public aliases __vsnprintf and vsnprintf.
6653 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6654 called internally.
6655 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6656 public aliases _IO_vsprintf and vsprintf.
6657 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6658 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6659 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6660 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6661 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6662
6663 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6664 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6665 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6666 * stdio-common/printf.c: Use __vfprintf_internal.
6667
6668 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6669 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6670 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6671
6672 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6673 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6674 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6675 __vfwprintf_internal.
6676
6677 * libio/libio.h: Remove libc_hidden_proto and declaration for
6678 _IO_vfprintf.
6679 Remove declaration of _IO_vfwprintf.
6680 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6681 _IO_vsprintf.
6682 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6683 _IO_obstack_printf.
6684 * include/stdio.h: Add prototype for __vasprintf.
6685 (__vsnprintf): Remove declaration, because there are no more
6686 internal calls.
6687 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6688 declaration, because there are no more internal calls.
6689
6690 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6691 __vsnprintf_internal, instead of _IO_vsnprintf.
6692 * argp/argp-help.c (__argp_error, __argp_failure): Use
6693 __vasprintf_internal, instead of _IO_vasprintf.
6694 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6695 redefine, because there are no more internal calls.
6696
6697 2018-12-05 Zack Weinberg <zackw@panix.com>
6698 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6699
6700 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6701 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6702 Include libio/strfile.h instead of libioP.h.
6703 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6704 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6705 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6706 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6707 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6708 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6709 necessary. Do not set __no_long_double. Normalize variable names.
6710 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6711 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6712 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6713 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6714 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6715 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6716 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6717 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6718 Do not set __no_long_double. Normalize variable names.
6719
6720 2018-12-05 Zack Weinberg <zackw@panix.com>
6721 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6722
6723 * stdio-common/isoc99_scanf.c
6724 * stdio-common/isoc99_fscanf.c
6725 * stdio-common/isoc99_sscanf.c
6726 * stdio-common/isoc99_vscanf.c
6727 * stdio-common/isoc99_vfscanf.c
6728 * stdio-common/isoc99_vsscanf.c
6729 * wcsmbs/isoc99_wscanf.c
6730 * wcsmbs/isoc99_fwscanf.c
6731 * wcsmbs/isoc99_swscanf.c
6732 * wcsmbs/isoc99_vwscanf.c
6733 * wcsmbs/isoc99_vfwscanf.c
6734 * wcsmbs/isoc99_vswscanf.c:
6735 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6736 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6737 No need to lock and unlock the FILE passed to that function.
6738
6739 * stdio-common/vfscanf-internal.c
6740 (__vfscanf_internal, __vfwscanf_internal):
6741 Don't look at _IO_FLAGS2_SCANF_STD.
6742 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6743 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6744 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6745
6746 2018-12-05 Zack Weinberg <zackw@panix.com>
6747 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6748
6749 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6750 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6751 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6752 * libio/strfile.h: Add multiple inclusion guard.
6753 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6754
6755 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6756 consistency with the other version of this file.
6757 (ldbl_compat_symbol): New macro.
6758 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6759 New macro.
6760
6761 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6762 Define __vfscanf_internal or __vfwscanf_internal, depending on
6763 COMPILE_WSCANF; don't define any other public symbols.
6764 Remove errval and code to set errp.
6765 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6766 as the mode_flags argument.
6767 (encode_error, conv_error, input_error): Don't set errval.
6768 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6769 Include vfscanf-internal.c.
6770 * stdio-common/vfscanf.c: New file defining the public entry
6771 point vfscanf, which calls __vfscanf_internal.
6772 * stdio-common/vfwscanf.c: New file defining the public entry
6773 point vfwscanf, which calls __vfwscanf_internal.
6774
6775 * stdio-common/iovfscanf.c: New file.
6776 * stdio-common/iovfwscanf.c: Likewise.
6777
6778 * stdio-common/Makefile (routines): Add vfscanf-internal,
6779 vfwscanf-internal, iovfscanf, iovfwscanf.
6780 * stdio-common/Versions: Mention GLIBC_2.29, so that
6781 it can be used in SHLIB_COMPAT expressions.
6782 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6783 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6784 Call __vfscanf_internal, instead of _IO_vfscanf.
6785 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6786 _IO_vfscanf.
6787 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6788 _IO_vfwscanf.
6789
6790 * libio/iovsscanf.c: Clean up includes, when possible. Use
6791 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6792 __vfscanf_internal or __vfwscanf_internal directly.
6793 * libio/iovswscanf.c: Likewise.
6794 * libio/swscanf.c: Likewise.
6795 * libio/vscanf.c: Likewise.
6796 * libio/vwscanf.c: Likewise.
6797 * libio/wscanf.c: Likewise.
6798 * stdio-common/isoc99_fscanf.c: Likewise.
6799 * stdio-common/isoc99_scanf.c: Likewise.
6800 * stdio-common/isoc99_sscanf.c: Likewise.
6801 * stdio-common/isoc99_vfscanf.c: Likewise.
6802 * stdio-common/isoc99_vscanf.c: Likewise.
6803 * stdio-common/isoc99_vsscanf.c: Likewise.
6804 * stdio-common/scanf.c: Likewise.
6805 * stdio-common/sscanf.c: Likewise.
6806 * wcsmbs/isoc99_fwscanf.c: Likewise.
6807 * wcsmbs/isoc99_swscanf.c: Likewise.
6808 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6809 * wcsmbs/isoc99_vswscanf.c: Likewise.
6810 * wcsmbs/isoc99_vwscanf.c: Likewise.
6811 * wcsmbs/isoc99_wscanf.c: Likewise.
6812
6813 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6814
6815 * include/time.h
6816 (__tz_compute): Replace time_t with __time64_t.
6817 (__tz_convert): Replace time_t* with __time64_t.
6818 (__offtime): Replace time_t* with __time64_t.
6819 * time/gmtime.c
6820 (__gmtime_r): Adjust call to __tz_convert.
6821 (gmtime): Likewise.
6822 * time/localtime.c
6823 (__localtime_r): Likewise.
6824 (localtime): Likewise.
6825 * time/offtime.c: Replace time_t with __time64_t.
6826 * time/tzset.c: Likewise.
6827
6828 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6829
6830 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6831 dynamic linker unless [$(run-built-tests) = yes].
6832
6833 2018-12-03 DJ Delorie <dj@delorie.com>
6834
6835 * support/test-container.c (check_for_unshare_hints): New.
6836 (main): Call it if unshare fails. Add support for "su" scriptlet
6837 command.
6838
6839 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6840
6841 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6842 'START' to indicate that start text should be output.
6843 (gen_test): Likewise.
6844 (main): Generate 'START' for first symbol or '--' line, or at end
6845 of input if not previously generated.
6846
6847 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6848
6849 [BZ #19767]
6850 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6851 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6852 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6853 ALWAYS_USE_VSYSCALL.
6854
6855 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6856
6857 [BZ #23913]
6858 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6859 new_argv by one.
6860
6861 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6862
6863 [BZ #23923]
6864 * locale/programs/localedef.c: Declare boolean hard_links default true.
6865 (options): Add --no-hard-links option.
6866 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6867 * locale/programs/localedef.h: Declare prototype for hard_links.
6868 * locale/programs/locfile.c (write_locale_data): Don't use hard
6869 links if hard_links is false.
6870
6871 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6872
6873 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6874 cpu_features_basic.
6875 (__cache_sysconf): Likewise.
6876 (init_cacheinfo): Likewise.
6877 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6878 populate COMMON_CPUID_INDEX_80000007 and
6879 COMMON_CPUID_INDEX_80000008.
6880 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6881 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6882 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6883 (init_cpu_features): Use _Static_assert on
6884 index_arch_Fast_Unaligned_Load.
6885 __get_cpuid_registers and __get_arch_feature. Updated for
6886 cpu_features_basic. Set stepping in cpu_features.
6887 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6888 (FEATURE_INDEX_2): New.
6889 (FEATURE_INDEX_MAX): Changed to enum.
6890 (COMMON_CPUID_INDEX_D_ECX_1): New.
6891 (COMMON_CPUID_INDEX_80000007): Likewise.
6892 (COMMON_CPUID_INDEX_80000008): Likewise.
6893 (cpuid_registers): Likewise.
6894 (cpu_features_basic): Likewise.
6895 (CPU_FEATURE_USABLE): Likewise.
6896 (bit_arch_XXX_Usable): Likewise.
6897 (cpu_features): Use cpuid_registers and cpu_features_basic.
6898 (bit_arch_XXX): Reweritten.
6899 (bit_cpu_XXX): Likewise.
6900 (index_cpu_XXX): Likewise.
6901 (reg_XXX): Likewise.
6902 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6903 <support/check.h>.
6904 (CHECK_CPU_FEATURE): New.
6905 (CHECK_CPU_FEATURE_USABLE): Likewise.
6906 (cpu_kinds): Likewise.
6907 (do_test): Print vendor, family, model and stepping. Check
6908 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6909 (TEST_FUNCTION): Removed.
6910 Include <support/test-driver.c> instead of
6911 "../../test-skeleton.c".
6912 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6913 Check POPCNT instead of POPCOUNT.
6914 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6915
6916 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6917
6918 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6919 there is no element in `consts'.
6920
6921 2018-12-01 Florian Weimer <fweimer@redhat.com>
6922
6923 * support/support_capture_subprocess.c
6924 (support_capture_subprocess): Check that pipe descriptors have
6925 expected values. Close original pipe descriptors in subprocess.
6926
6927 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6928
6929 [BZ #23032]
6930 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6931 attr with __pthread_default_barrierattr.
6932 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6933 attr with __pthread_default_condattr.
6934 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6935 attr with __pthread_default_mutexattr.
6936 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6937 attr with __pthread_default_rwlockattr.
6938
6939 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6940
6941 * manual/tunables.texi (POSIX Thread Tunables): New node.
6942 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6943 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6944 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6945 __pthread_tunables_init.
6946 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6947 (max_adaptive_count): Define.
6948 * nptl/pthread_mutex_conf.c: New file.
6949 * nptl/pthread_mutex_conf.h: New file.
6950 * sysdeps/generic/adaptive_spin_count.h: New file.
6951 * sysdeps/nptl/dl-tunables.list: New file.
6952 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6953 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6954 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6955 Likewise.
6956
6957 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6958
6959 [BZ #20544]
6960 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6961 * stdlib/on_exit.c (__on_exit): Likewise.
6962 * stdlib/Makefile (tests): Add tst-bz20544.
6963 * stdlib/tst-bz20544.c: New test.
6964
6965 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6966
6967 [BZ #19767]
6968 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6969 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6970 New.
6971
6972 2018-11-30 Florian Weimer <fweimer@redhat.com>
6973
6974 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6975 Extend error logging.
6976 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6977 symbol.
6978
6979 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6980
6981 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6982 __sigismember instead of sigismember.
6983 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6984 cancel_handler): New definitions.
6985 (do_system): Use posix_spawn instead of fork and execl and remove
6986 reentracy code.
6987 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6988 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6989 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6990 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6991 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6992 * sysdeps/unix/sysv/linux/system.c: Likewise.
6993
6994 [BZ #22834]
6995 [BZ #17490]
6996 * NEWS: Add new semantic for atfork with popen and system.
6997 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6998 fork and execl.
6999
7000 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7001
7002 [BZ #23690]
7003 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
7004 modification order when accessing reloc_result->addr.
7005 * include/link.h (reloc_result): Add field init.
7006 * nptl/Makefile (tests): Add tst-audit-threads.
7007 (modules-names): Add tst-audit-threads-mod1 and
7008 tst-audit-threads-mod2.
7009 Add rules to build tst-audit-threads.
7010 * nptl/tst-audit-threads-mod1.c: New file.
7011 * nptl/tst-audit-threads-mod2.c: Likewise.
7012 * nptl/tst-audit-threads.c: Likewise.
7013 * nptl/tst-audit-threads.h: Likewise.
7014
7015 2018-11-30 Joseph Myers <joseph@codesourcery.com>
7016
7017 * scripts/gen-as-const.py: New file.
7018 * scripts/gen-as-const.awk: Remove.
7019 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
7020 gen-as-const.py.
7021 ($(objpfx)test-as-const-%.c): Likewise.
7022
7023 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7024
7025 * elf/dl-exception.c: Include <_itoa.h>.
7026
7027 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7028
7029 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
7030 returned by __f_setlk.
7031
7032 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
7033 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7034
7035 * elf/Makefile (tests-internal): Add tst-create_format1.
7036 * elf/dl-exception.c (_dl_exception_create_format): Support
7037 %x, %lx and %zx.
7038 * elf/tst-create_format1.c: New file.
7039
7040 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
7041
7042 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
7043 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
7044 gnulib.)
7045 * argp/argp-help.c (__argp_failure): Likewise.
7046
7047 2018-11-29 Mao Han <han_mao@c-sky.com>
7048
7049 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
7050 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
7051 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
7052 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
7053 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
7054 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
7055 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
7056 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
7057 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
7058 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
7059 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
7060 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
7061 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
7062 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
7063 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
7064 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
7065 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
7066 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
7067 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
7068 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
7069 (R_CKCORE_TLS_TPOFF32): New defines.
7070
7071 2018-11-29 Florian Weimer <fweimer@redhat.com>
7072
7073 * posix/Makefile (before-compile): Remove testcases.h and
7074 ptestcases.h.
7075 (generated): Add testcases.h and ptestcases.h.
7076 (testcases.h, ptestcases.h): Move to $(objpfx).
7077 (runtests.o): Add dependency on testcases.h.
7078 (runptests.o): Add dependency on ptestcases.h.
7079 * posix/testcases.h, posix/ptestcases.h: Remove files.
7080 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
7081 not touch posix/testcases.h and posix/ptestcases.h.
7082
7083 2018-11-28 Florian Weimer <fweimer@redhat.com>
7084
7085 support: Add signal support to support_capture_subprocess_check.
7086 * support/capture_subprocess.h (support_capture_subprocess_check):
7087 Adjust comment and rename parameter.
7088 * support/support_capture_subprocess_check.c
7089 (print_actual_status): New function.
7090 (support_capture_subprocess_check): Support negative
7091 status_or_signal. Call print_actual_status.
7092 * support/tst-support_capture_subprocess.c (do_test): Call
7093 support_capture_subprocess_check.
7094 * libio/tst-vtables-common.c (termination_status)
7095 (init_termination_status): Remove.
7096 (check_for_termination): Adjust support_capture_subprocess_check
7097 call.
7098 (do_test): Remove call to init_termination_status.
7099
7100 2018-11-28 Joseph Myers <joseph@codesourcery.com>
7101
7102 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
7103 source directory instead of a copy.
7104 (CommandList.create_copy_dir): Remove.
7105
7106 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
7107
7108 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7109
7110 2018-11-28 Florian Weimer <fweimer@redhat.com>
7111
7112 * support/support.h (support_quote_string): Do not use str
7113 parameter name.
7114
7115 2018-11-27 Joseph Myers <joseph@codesourcery.com>
7116
7117 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
7118 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
7119
7120 2018-11-27 Florian Weimer <fweimer@redhat.com>
7121
7122 * support/support.h (support_quote_string): Declare.
7123 * support/support_quote_string.c: New file.
7124 * support/tst-support_quote_string.c: Likewise.
7125 * support/Makefile (libsupport-routines): Add
7126 support_quote_string.
7127 (tests): Add tst-support_quote_string.
7128
7129 2018-11-27 Florian Weimer <fweimer@redhat.com>
7130
7131 [BZ #23927]
7132 CVE-2018-19591
7133 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
7134 descriptor leak in case of ENODEV error.
7135
7136 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
7137
7138 [BZ #19767]
7139 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
7140 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
7141 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
7142
7143 2018-11-26 Carlos O'Donell <carlos@redhat.com>
7144
7145 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
7146 Error for unknown lines.
7147
7148 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7149
7150 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7151 Touch additional files.
7152
7153 2018-11-26 Florian Weimer <fweimer@redhat.com>
7154
7155 [BZ #23907]
7156 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7157 double-frees.
7158
7159 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7160
7161 [BZ #19767]
7162 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7163 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7164 SHARED. Include sysdep.h.
7165 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7166 ALWAYS_USE_VSYSCALL.
7167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7168 ALWAYS_USE_VSYSCALL.
7169
7170 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7171
7172 [BZ #19767]
7173 * nptl/Makefile (tests-static): Add tst-cond11-static.
7174 (tests): Likewise.
7175 * nptl/tst-cond11-static.c: New File.
7176 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7177 tst-affinity-static.
7178 (tests): Likewise.
7179 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7180 instead of SHARED.
7181 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7182 (USE_VSYSCALL): Likewise.
7183 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7184 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7185 instead of SHARED.
7186 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7187 SHARED.
7188 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7189 New.
7190
7191 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7192
7193 [BZ #23915]
7194 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7195 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7196 Undefine.
7197
7198 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7199
7200 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7201 (tst-cet-legacy-1a-ARGS): New.
7202 ($(objpfx)tst-cet-legacy-1a): New target.
7203 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7204
7205 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7206
7207 * conform/conformtest.py (CompileSubTest.__init__): Set
7208 self.run_early to False.
7209 (ExecuteSubTest.__init__): Likewise.
7210 (HeaderTests.run): Try running all non-optional, non-XFAILed
7211 compilation tests in a single execution of the compiler.
7212
7213 * conform/conformtest.py (CompileSubTest): New class.
7214 (ExecuteSubTest): Likewise.
7215 (ElementTest.run): Rename to gen_subtests. Append tests to
7216 self.subtests instead of running them.
7217 (ConstantTest.run): Likewise.
7218 (SymbolTest.run): Likewise.
7219 (TypeTest.run): Likewise.
7220 (TagTest.run): Likewise.
7221 (FunctionTest.run): Likewise.
7222 (VariableTest.run): Likewise.
7223 (MacroFunctionTest.run): Likewise.
7224 (MacroStrTest.run): Likewise.
7225 (HeaderTests.handle_test_line): Generate subtests for tests.
7226 (HeaderTests.run): Run subtests for tests.
7227
7228 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7229
7230 * math/Versions (GLIBC_2.29): Add pow.
7231 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7232 symbol.
7233 * math/w_pow.c: New file.
7234 * sysdeps/i386/fpu/w_pow.c: New file.
7235 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7236 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7237 and add necessary aliases.
7238 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7239 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7240 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7241 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7242 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7243 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7244 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7245 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7246 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7247 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7248 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7249 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7250 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7251 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7252 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7253 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7254 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7255 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7257 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7258 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7259 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7260 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7261 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7262 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7263 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7264 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7265 __pow.
7266 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7267 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7268 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7269
7270 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7271
7272 * math/Versions (GLIBC_2.29): Add log2.
7273 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7274 symbol.
7275 * math/w_log2.c: New file.
7276 * sysdeps/i386/fpu/w_log2.c: New file.
7277 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7278 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7279 and add necessary aliases.
7280 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7281 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7282 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7283 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7284 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7285 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7286 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7287 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7288 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7289 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7290 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7291 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7292 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7293 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7294 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7295 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7297 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7298 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7299 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7300 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7301 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7302 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7303 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7304 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7305 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7306
7307 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7308
7309 * math/Versions (GLIBC_2.29): Add log.
7310 * math/w_log_compat.c (__log_compat): Change to versioned compat
7311 symbol.
7312 * math/w_log.c: New file.
7313 * sysdeps/i386/fpu/w_log.c: New file.
7314 * sysdeps/ia64/fpu/e_log.S: Update.
7315 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7316 and add necessary aliases.
7317 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7318 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7319 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7320 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7321 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7322 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7323 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7324 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7325 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7326 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7327 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7328 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7329 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7330 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7331 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7334 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7336 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7337 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7338 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7339 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7340 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7341 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7342 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7343 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7344 __log.
7345 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7346 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7347 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7348 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7349
7350 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7351
7352 * math/Versions (GLIBC_2.29): Add exp and exp2.
7353 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7354 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7355 * math/w_exp_compat.c (__exp_compat): Likewise.
7356 * math/w_exp.c: New file.
7357 * math/w_exp2.c: New file.
7358 * sysdeps/i386/fpu/w_exp.c: New file.
7359 * sysdeps/i386/fpu/w_exp2.c: New file.
7360 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7361 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7362 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7363 and add necessary aliases.
7364 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7365 and add necessary aliases.
7366 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7367 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7368 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7369 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7370 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7371 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7372 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7373 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7374 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7375 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7376 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7377 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7378 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7379 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7380 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7381 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7382 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7383 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7384 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7386 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7387 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7388 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7389 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7390 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7391 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7392 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7393 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7394 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7395 (__ieee754_exp): Rename to __exp.
7396 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7397 (__ieee754_exp): Rename to __exp.
7398 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7399 (__ieee754_exp): Rename to __exp.
7400 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7401 __exp.
7402 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7403
7404 2018-11-20 DJ Delorie <dj@redhat.com>
7405
7406 * malloc/malloc.c (tcache_entry): Add key field.
7407 (tcache_put): Set it.
7408 (tcache_get): Likewise.
7409 (_int_free): Check for double free in tcache.
7410 * malloc/tst-tcfree1.c: New.
7411 * malloc/tst-tcfree2.c: New.
7412 * malloc/Makefile: Run the new tests.
7413 * manual/probes.texi: Document memory_tcache_double_free probe.
7414
7415 * dlfcn/dlerror.c (check_free): Prevent double frees.
7416
7417 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7418
7419 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7420
7421 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7422
7423 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7424 in tests. Use names for format arguments.
7425 (ConstantTest.run): Likewise.
7426 (SymbolTest.run): Likewise.
7427 (TypeTest.run): Likewise.
7428 (TagTest.run): Likewise.
7429 (FunctionTest.run): Likewise.
7430 (VariableTest.run): Likewise.
7431 (MacroFunctionTest.run): Likewise.
7432 (MacroStrTest.run): Likewise.
7433 (HeaderTests.__init__): Set self.num_tests.
7434 (HeaderTests.handle_test_line): Set test.num. Increment
7435 self.num_tests.
7436
7437 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7438
7439 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7440 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7441 SEEK_SET.
7442
7443 2018-11-19 Mao Han <han_mao@c-sky.com>
7444
7445 * scripts/config.guess: Update to version 2018-08-29.
7446 * scripts/config.sub: Update to version 2018-08-29.
7447
7448 2018-11-19 Florian Weimer <fweimer@redhat.com>
7449
7450 support: Print timestamps in timeout handler.
7451 * support/support_test_main.c (print_timestamp): New function.
7452 (signal_handler): Use it to print the termination time and the
7453 time of the last write to standard output.
7454
7455 2018-11-16 Zack Weinberg <zackw@panix.com>
7456 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7457
7458 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7459 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7460 argument.
7461 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7462 and add flags argument. Check flags instead of __ldbl_is_dbl when
7463 deciding whether to set is_long_double.
7464 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7465 passing zero for flags argument.
7466 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7467
7468 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7469 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7470 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7471 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7472 variable names. Remove libc_hidden_def/libc_hidden_proto from
7473 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7474 longer called from within the library.
7475 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7476 for __nldbl___vstrfmon_l, declare it explicitly.
7477
7478 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7479
7480 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7481
7482 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7483 macros
7484 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7485 F_SETLK64, F_SETLKW64, respectively.
7486 * sysdeps/mach/hurd/f_setlk.c: New file.
7487 * sysdeps/mach/hurd/f_setlk.h: New file.
7488 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7489 f_setlk.
7490 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7491 (__libc_fcntl): Move non-flock operations to...
7492 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7493 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7494
7495 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7496
7497 mktime: DEBUG_MKTIME cleanup
7498 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7499 And it’s no longer needed now that glibc and Gnulib both have
7500 their own testing mechanisms for mktime.
7501 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7502
7503 mktime: fix non-EOVERFLOW errno handling
7504 [BZ#23789]
7505 mktime was not properly reporting failures when the underlying
7506 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7507 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7508 The problem could happen on non-glibc platforms, with Gnulib.
7509 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7510 (tm_diff): ... this simpler function, which does not change errno.
7511 All callers changed to deal with errno themselves.
7512 (ranged_convert, __mktime_internal): Return failure immediately if
7513 the underlying function reports any failure other than EOVERFLOW.
7514 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7515 gap code fails.
7516
7517 mktime: fix bug with Y2038 DST transition
7518 [BZ#23789]
7519 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7520 mishandle a DST transition that jumps over the Y2038 boundary.
7521 No such DST transitions are known so this is only a theoretical
7522 bug, but we might as well do things right.
7523
7524 mktime: make more room for overflow
7525 [BZ#23789]
7526 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7527 This is so that we can add tm_diff results to a previous guess,
7528 which will be useful in a later patch.
7529
7530 mktime: simplify offset guess
7531 [BZ#23789]
7532 * time/mktime.c (__mktime_internal): Omit excess precision.
7533
7534 mktime: new test for mktime failure
7535 [BZ#23789]
7536 Based on a test suggested by Albert Aribaud in:
7537 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7538 * time/Makefile (tests): Add bug-mktime4.
7539 * time/bug-mktime4.c: New file.
7540
7541 mktime: fix EOVERFLOW bug
7542 [BZ#23789]
7543 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7544 Include libc-config.h, not config.h, for __set_errno.
7545 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7546
7547 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7548
7549 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7550 __attribute_copy__ to copy attributes from name. Drop static qualifier
7551 to avoid warnings about leaf attribute not having effect on static
7552 functions.
7553
7554 2018-11-13 Florian Weimer <fweimer@redhat.com>
7555
7556 * malloc/malloc.c (fastbin_push_entry): New function.
7557 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7558 (REMOVE_FB): Remove macro.
7559 (_int_malloc): Use fastbin_pop_entry and reindent.
7560 (_int_free): Use fastbin_push_entry.
7561 (malloc_consolidate): Use atomic_exchange_acquire.
7562
7563 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7564
7565 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7566 alias attribute, not with strong_alias.
7567
7568 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7569 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7570 with additional parameter thread.
7571 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7572 in terms of __hidden_ver2.
7573 (hidden_tls_def): New macro.
7574 (libc_hidden_tls_def): Likewise.
7575 (rtld_hidden_tls_def): Likewise.
7576 (libm_hidden_tls_def): Likewise.
7577 (libmvec_hidden_tls_def): Likewise.
7578 (libresolv_hidden_tls_def): Likewise.
7579 (librt_hidden_tls_def): Likewise.
7580 (libdl_hidden_tls_def): Likewise.
7581 (libnss_files_hidden_tls_def): Likewise.
7582 (libnsl_hidden_tls_def): Likewise.
7583 (libnss_nisplus_hidden_tls_def): Likewise.
7584 (libutil_hidden_tls_def): Likewise.
7585 (libutil_hidden_tls_def): Likweise.
7586 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7587 libc_hidden_tls_def.
7588 (__sim_disabled_exceptions_thread): Likewise.
7589 (__sim_round_mode_thread): Likewise.
7590
7591 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7592 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7593 copy attributes from name.
7594
7595 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7596
7597 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7598 Use __attribute_copy__ to copy attributes from name.
7599
7600 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7601 with __hidden_ver1 call.
7602 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7603 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7604 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7605 (__cosf): Do not declare here.
7606 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7607 (__sincosf): Do not declare here.
7608 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7609 (__sinf): Do not declare here.
7610
7611 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7612 (__BIG_ENDIAN): Likewise.
7613 (__BYTE_ORDER): Likewise.
7614 (strong_alias): Likewise.
7615 (_strong_alias): Likewise.
7616
7617 2018-11-12 Florian Weimer <fweimer@redhat.com>
7618
7619 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7620 function. Move after the definition of in_smallbin_range. Do not
7621 use __builtin_expect for paths that lead to a noreturn function.
7622 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7623 because it is unclear whether this is in fact an unlikely
7624 condition.
7625 (_int_malloc, _int_free): Adjust.
7626 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7627 variables.
7628 * malloc/arena.c (heap_trim): Likewise.
7629
7630 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7631
7632 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7633 it, free it if needed.
7634 (reauthenticate): Test and use ccwdir.
7635 (child_init_port): In non-resetids case, test and use ccwdir.
7636 (child_chdir): New nested function to set ccwdir.
7637 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7638 * hurd/hurd/port.h (_hurd_port_move): New function.
7639 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7640 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7641 * hurd/Versions (_hurd_port_move): Export function.
7642 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7643 symbol.
7644 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7645 of dtablesize for allocating dtable_cloexec.
7646
7647 2018-11-09 Martin Sebor <msebor@redhat.com>
7648
7649 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7650 it's already defined.
7651 (_strong_alias): Use __attribute_copy__.
7652 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7653 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7654 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7655 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7656 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7657 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7658 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7659 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7660 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7661 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7662 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7663 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7664 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7665 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7666 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7667 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7668 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7669 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7670 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7671
7672 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7673
7674 * misc/tst-efgcvt.c: Include support/check.h and
7675 support/test-driver.c. Do not include test-skeleton.c.
7676 (error_count): Remove.
7677 (output_error): Replace increments to error_count with calls to
7678 support_record_failure.
7679 (output_r_error): Likewise.
7680 (special): Likewise.
7681 (do_test): Unconditionally return zero.
7682 (TEST_FUNCTION): Remove.
7683
7684 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7685
7686 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7687 not $(@D)/scratch.
7688 ($(linknamespace-header-tests)): Likewise.
7689
7690 * conform/conformtest.py: New file.
7691 * conform/conformtest.pl: Remove.
7692 * conform/GlibcConform.pm: Likewise.
7693 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7694 (KEYWORDS_C99): Likewise.
7695 (KEYWORDS): Likewise.
7696 * conform/Makefile ($(conformtest-header-tests)): Use
7697 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7698 option. Use --header instead of --headers.
7699 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7700 function entries.
7701 * conform/data/spawn.h-data: Likewise.
7702 * conform/data/fcntl.h-data (openat): Add space after function
7703 name.
7704 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7705 (wcscasecmp_l): Likewise.
7706 * conform/data/termios.h-data (c_cc): Add space after element
7707 name.
7708
7709 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7710
7711 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7712 instead of manually comparing and reporting mismatching strings.
7713 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7714 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7715
7716 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7717
7718 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7719 __ASSUME_SOCKETCALL.
7720 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7721 (__ASSUME_SOCKETCALL): Remove.
7722 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7723 (__ASSUME_SOCKETCALL): Likewise.
7724 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7725 (__ASSUME_SOCKETCALL): Likewise.
7726 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7727 (__ASSUME_SOCKETCALL): Likewise.
7728 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7729 (__ASSUME_SOCKETCALL): Likewise.
7730 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7731 (__ASSUME_SOCKETCALL): Likewise.
7732 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7733 (__ASSUME_SOCKETCALL): Likewise.
7734
7735 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7736
7737 [BZ #23509]
7738 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7739 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7740 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7741 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7742 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7743 lc_unknown.
7744
7745 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7746
7747 [BZ #17630]
7748 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7749
7750 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7751
7752 [BZ #23867]
7753 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7754 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7755 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7756 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7757
7758 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7759
7760 * support/support_test_compare_string.c
7761 (support_test_compare_string): Fix printf format.
7762
7763 2018-11-07 Florian Weimer <fweimer@redhat.com>
7764
7765 Implement TEST_COMPARE_STRING.
7766 * support/check.h (TEST_COMPARE_STRING): Define.
7767 (support_test_compare_string): Declare.
7768 * support/Makefile (libsupport-routines): Add
7769 support_test_compare_string.
7770 (tests): Add tst-test_compare_string.
7771 * support/support_test_compare_string.c: New file.
7772 * support/tst-test_compare_string.c: Likewise.
7773
7774 2018-11-07 Andreas Schwab <schwab@suse.de>
7775
7776 [BZ #23864]
7777 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7778 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7779 Undef.
7780
7781 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7782
7783 [BZ #23862]
7784 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7785 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7786 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7787 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7788 Likewise.
7789
7790 2018-11-06 Florian Weimer <fweimer@redhat.com>
7791
7792 [BZ #17405]
7793 * posix/Makefile (routines): Add spawn_faction_addchdir.
7794 (tests): Add tst-spawn-chdir.
7795 * posix/Versions (GLIBC_2.29): Add
7796 posix_spawn_file_actions_addchdir_np.
7797 * posix/spawn_faction_addchdir.c: New file.
7798 * posix/spawn_faction_destroy.c
7799 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7800 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7801 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7802 chdir_action.
7803 * posix/tst-spawn-chdir.c: New file.
7804 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7805 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7806 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7807 posix_spawn_file_actions_addchdir_np.
7808 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7809 Likewise.
7810 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7811 Likewise.
7812 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7813 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7814 Likewise.
7815 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7816 Likewise.
7817 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7818 Likewise.
7819 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7820 Likewise.
7821 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7822 Likewise.
7823 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7824 Likewise.
7825 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7826 (GLIBC_2.29): Likewise.
7827 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7828 (GLIBC_2.29): Likewise.
7829 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7830 (GLIBC_2.29): Likewise.
7831 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7832 (GLIBC_2.29): Likewise.
7833 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7834 Likewise.
7835 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7836 (GLIBC_2.29): Likewise.
7837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7838 (GLIBC_2.29): Likewise.
7839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7840 (GLIBC_2.29): Likewise.
7841 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7842 (GLIBC_2.29): Likewise.
7843 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7844 Likewise.
7845 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7846 Likewise.
7847 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7848 Likewise.
7849 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7850 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7851 Likewise.
7852 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7853 Likewise.
7854 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7855 Likewise.
7856 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7857 Likewise.
7858
7859 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7860
7861 * misc/Makefile (tests): Add tst-ldbl-error.
7862 * misc/tst-ldbl-error.c: New file.
7863
7864 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7865
7866 * misc/Makefile (tests): Add tst-ldbl-warn.
7867 * misc/tst-ldbl-warn.c: New file.
7868
7869 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7870
7871 * argp/Makefile (tests): Add tst-ldbl-argp.
7872 * argp/tst-ldbl-argp.c: New file.
7873
7874 2018-11-05 Arjun Shankar <arjun@redhat.com>
7875
7876 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7877 __gconv_path_elem and call __gconv_get_path unconditionally.
7878
7879 2018-11-05 Andreas Schwab <schwab@suse.de>
7880
7881 [BZ #22927]
7882 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7883 creating the first helper thread failed.
7884
7885 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7886
7887 * sysdeps/mach/hurd/msync.c: New file.
7888
7889 2018-11-02 Florian Weimer <fweimer@redhat.com>
7890
7891 * support/shell-container.c (copy_func): Call
7892 support_copy_file_range instead of copy_file_range to support
7893 cross-device copies.
7894
7895 2018-11-02 Florian Weimer <fweimer@redhat.com>
7896
7897 * support/test-container.c: Include <libc-pointer-arith.h> for
7898 ALIGN_UP.
7899
7900 2018-11-01 Zong Li <zong@andestech.com>
7901
7902 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7903 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7904 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7905 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7906
7907 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7908 variable to avoid overlap arguments.
7909
7910 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7911
7912 * posix/bug-regex22.c (main): Use puts with distinct error
7913 messages for unexpected success of re_compile_pattern, not printf
7914 with NULL argument to %s.
7915
7916 * stdio-common/bug22.c: Include <libc-diag.h>.
7917 (do_test): Disable -Wformat-overflow= warnings around fprintf
7918 calls outputting more than INT_MAX characters.
7919 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7920 around printf call with NULL %s argument.
7921
7922 [BZ #23848]
7923 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7924 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7925 Undefine.
7926 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7927 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7928 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7929 (__ASSUME_SENDTO_SYSCALL): Likewise.
7930 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7931 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7932 [!__arch64__].
7933 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7934 (__ASSUME_CONNECT_SYSCALL): Likewise.
7935 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7936 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7937 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7938 Define.
7939 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7940 Likewise.
7941 [__LINUX_KERNEL_VERSION >= 0x040400]
7942 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7943 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7944 Remove.
7945 (listen): Likewise.
7946 (setsockopt): Likewise.
7947
7948 2018-11-01 Fredrik Noring <noring@nocrew.org>
7949
7950 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7951 with the ISA override.
7952
7953 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7954
7955 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7956 #endif.
7957
7958 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7959
7960 * manual/errno.texi (EIEIO): Document how translators should
7961 translate the error message.
7962 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7963 printing trailing whitespaces refused by git.
7964 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7965 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7966 * hurd/Makefile (user-interfaces): Add pci.
7967
7968 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7969
7970 * conform/linknamespace.py: New file.
7971 * conform/linknamespace.pl: Remove file.
7972 * conform/Makefile ($(linknamespace-header-tests)): Use
7973 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7974 option.
7975
7976 2018-10-30 Florian Weimer <fweimer@redhat.com>
7977
7978 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7979 memory leaks.
7980
7981 2018-10-30 Florian Weimer <fweimer@redhat.com>
7982
7983 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7984
7985 2018-10-30 Florian Weimer <fweimer@redhat.com>
7986
7987 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7988 support_blob_repeat.
7989
7990 2018-10-30 Florian Weimer <fweimer@redhat.com>
7991
7992 Avoid spurious test failures in stdlib/test-bz22786.
7993 * support/Makefile (libsupport-routines): Add blob_repeat.
7994 (tests): Add tst-support_blob_repeat.
7995 * support/blob_repeat.h: New file.
7996 * support/blob_repeat.c: Likewise.
7997 * support/tst-support_blob_repeat.c: Likewise.
7998 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7999 support_blob_repeat_allocate.
8000
8001 2018-10-30 Andreas Schwab <schwab@suse.de>
8002
8003 [BZ #23125]
8004 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
8005 Don't use tail call.
8006 * elf/tst-unwind-main.c: New file.
8007 * elf/Makefile (tests): Add tst-unwind-main.
8008 (CFLAGS-tst-unwind-main.c): Define.
8009
8010 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
8011
8012 [BZ #23791]
8013 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
8014 n_cs_precedes to 0.
8015 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
8016
8017 2018-10-29 Joseph Myers <joseph@codesourcery.com>
8018
8019 * conform/glibcconform.py: Do not import shutil.
8020 (list_exported_functions): Use tempfile.TemporaryDirectory instead
8021 of mkdtemp.
8022
8023 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
8024 critic_missing for versions before 3.4.
8025 * configure: Regenerated.
8026 * manual/install.texi (Tools for Compilation): Document
8027 requirement for Python to build glibc.
8028 * INSTALL: Regenerated.
8029 * Rules [PYTHON]: Make code unconditional.
8030 * benchtests/Makefile [PYTHON]: Likewise.
8031 * conform/Makefile [PYTHON]: Likewise.
8032 * manual/Makefile [PYTHON]: Likewise.
8033 * math/Makefile [PYTHON]: Likewise.
8034
8035 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8036
8037 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
8038 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
8039 answer to interrupt_operation, return EIEIO instead of EINTR.
8040 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
8041 _hurd_intr_rpc_msg_about_to global point to start of controlled
8042 assembly snippet. Make it check canceled flag.
8043 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
8044 the _hurd_intr_rpc_msg_about_to point.
8045 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
8046 issue, remove cancel flag check.
8047
8048 2018-10-26 Joseph Myers <joseph@codesourcery.com>
8049
8050 * scripts/build-many-glibcs.py: Remove compatibility for missing
8051 os.cpu_count and re.fullmatch.
8052
8053 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
8054
8055 [BZ #23822]
8056 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
8057 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
8058 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
8059
8060 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8061
8062 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
8063 macro.
8064
8065 2018-10-25 Florian Weimer <fweimer@redhat.com>
8066
8067 [BZ #23562]
8068 [BZ #23821]
8069 XFAIL siginfo_t si_band conform test on sparc64.
8070 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
8071 (__SI_BAND_TYPE): Only override long int default type on sparc64.
8072 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
8073 (conformtest-xfail-conds): Add sparc64-linux.
8074 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
8075 sparc64.
8076 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
8077
8078 2018-10-25 Joseph Myers <joseph@codesourcery.com>
8079
8080 * elf/elf.h (NT_MIPS_DSP): New macro.
8081 (NT_MIPS_FP_MODE): Likewise.
8082
8083 2018-10-25 Zong Li <zong@andestech.com>
8084
8085 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
8086 name by adding the file extension (.so).
8087
8088 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
8089
8090 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
8091 (test-xfail-ISO11/threads.h/linknamespace,
8092 test-xfail-ISO11/threads.h/conform): Add.
8093
8094 2018-10-24 Joseph Myers <joseph@codesourcery.com>
8095
8096 * math/gen-libm-test.py: Import os.
8097 (ALL_FLOATS_MANUAL): New constant.
8098 (ALL_FLOATS_SUFFIX): Likewise.
8099 (Ulps.all_functions): New function.
8100 (real_all_ulps): Likewise.
8101 (generate_err_table_sub): Likewise.
8102 (generate_err_table): Likewise.
8103 (main): Handle -s and -m options.
8104 * manual/libm-err-tab.pl: Remove.
8105 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
8106 instead of libm-err-tab.pl.
8107 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
8108 != no].
8109 * manual/install.texi (Tools for Compilation): Document
8110 requirement for Python to build manual.
8111 * INSTALL: Regenerated.
8112
8113 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8114
8115 * bits/time64.h: New file.
8116 * include/time.h: Replace internal_time_t with __time64_t.
8117 * posix/bits/types (__time64_t): Add.
8118 * stdlib/Makefile: Add bits/time64.h to includes.
8119 * time/tzfile.c: Replace internal_time_t with __time64_t.
8120
8121 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8122
8123 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
8124 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
8125 __posix_spawn_file_actions_init, __posix_spawnattr_init,
8126 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
8127 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
8128 prototype.
8129 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
8130 * posix/spawn_faction_addclose.c
8131 (__posix_spawn_file_actions_addclose): Add hidden definition.
8132 * posix/spawn_faction_adddup2.c
8133 (__posix_spawn_file_actions_adddup2): Likewise.
8134 * posix/spawn_faction_destroy.c
8135 (__posix_spawn_file_actions_destroy): Likewise.
8136 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
8137 Likewise.
8138 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
8139 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
8140 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
8141 Likewise.
8142 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
8143 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
8144 Likewise.
8145
8146 2018-10-24 Andreas Schwab <schwab@suse.de>
8147
8148 [BZ #18093]
8149 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8150 format cache.
8151 * elf/cache.c (print_cache): Likewise.
8152
8153 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8154
8155 * bits/timesize.h: New file.
8156 * stdlib/Makefile (headers): Add bits/timesize.h.
8157 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8158 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8159 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8160 (__SEM_PAD_AFTER_TIME): Likewise.
8161 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8162 (__SHM_PAD_AFTER_TIME): Likewise.
8163 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8164 (__MSQ_PAD_BEFORE_TIME): Likewise.
8165 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8166 (__SEM_PAD_BEFORE_TIME): Likewise.
8167 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8168 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8169 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8170 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8171 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8172 (__MSQ_PAD_BEFORE_TIME): Likewise.
8173 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8174 (__SEM_PAD_BEFORE_TIME): Likewise.
8175 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8176 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8177 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8178 (__MSQ_PAD_BEFORE_TIME): Likewise.
8179 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8180 (__SEM_PAD_BEFORE_TIME): Likewise.
8181 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8182 (__SHM_PAD_BEFORE_TIME): Likewise.
8183 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8184 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8185 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8186
8187 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8188
8189 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8190 USE_RDTSCP is defined.
8191 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8192 USE_RDTSCP is defined.
8193
8194 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8195
8196 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8197 defined.
8198
8199 [BZ #23709]
8200 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8201 independently of other flags.
8202
8203 2018-10-23 Florian Weimer <fweimer@redhat.com>
8204
8205 * time/tst-mktime2.c (N_STRINGS): Remove.
8206 (set_timezone): New function.
8207 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8208 (mktime_test1): Report localtime failure and check errno value.
8209 Use TEST_COMPARE.
8210 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8211 (do_test): Remove alarm call. Use set_timezone and array_length.
8212
8213 2018-10-23 Andreas Schwab <schwab@suse.de>
8214
8215 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8216 (__start_context): Use END instead of PSEUDO_END.
8217
8218 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8219
8220 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8221 version to 4.19.
8222
8223 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8224 version to 4.19.
8225
8226 [BZ #23793]
8227 * wcsmbs/c32rtomb.c: New file.
8228 * wcsmbs/mbrtoc32.c: Likewise.
8229 * wcsmbs/tst-c32-state.c: Likewise.
8230 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8231 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8232 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8233 (tests): Add tst-c32-state.
8234 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8235 $(gen-locales).
8236
8237 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8238
8239 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8240 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8241
8242 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8243
8244 [BZ #23794]
8245 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8246 pair and return 0 in that case, and use saved character to
8247 interpret following character.
8248 * wcsmbs/tst-c16-surrogate.c: New file.
8249 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8250 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8251 Depend on $(gen-locales)
8252
8253 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8254
8255 [BZ #23562]
8256 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8257 (struct siginfo_t): Use correct type for si_band.
8258
8259 2018-10-19 Florian Weimer <fweimer@redhat.com>
8260
8261 [BZ #23689]
8262 * resource/bits/types/struct_rusage.h (struct rusage): Update
8263 comment on struct. Remove extraneous field comment.
8264
8265 2018-10-18 David S. Miller <davem@davemloft.net>
8266
8267 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8268 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8269 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8270 sysdep_routines in subdir elf.
8271 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8272 version for __vdso_clock_gettime.
8273 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8274 Define.
8275 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8276 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8277
8278 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8279
8280 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8281
8282 * sysdeps/i386/init-arch.h: Removed.
8283 * sysdeps/i386/i586/init-arch.h: Likewise.
8284 * sysdeps/i386/i686/init-arch.h: Likewise.
8285 * sysdeps/i386/i686/hp-timing.h: Likewise.
8286 * sysdeps/x86_64/hp-timing.h: Likewise.
8287 * sysdeps/i386/isa.h: New file.
8288 * sysdeps/i386/i586/isa.h: Likewise.
8289 * sysdeps/i386/i686/isa.h: Likewise.
8290 * sysdeps/x86_64/isa.h: Likewise.
8291 * sysdeps/x86/hp-timing.h: New file.
8292 * sysdeps/x86/init-arch.h: Include <isa.h>.
8293
8294 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8295
8296 * math/libm-test-pow.inc (pow_test_data): Do not allow
8297 divide-by-zero exception for pow(+/- 0, -Inf).
8298
8299 2018-10-17 Zack Weinberg <zackw@panix.com>
8300
8301 * manual/job.texi (Job Control is Optional): Remove node, as
8302 job control has not been optional in quite some time.
8303 (Job Control): Mention briefly that systems older than
8304 POSIX.1-2001 might not support job control.
8305 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8306 defined on systems conforming to POSIX.1-2001.
8307
8308 2018-10-17 Arjun Shankar <arjun@redhat.com>
8309
8310 [BZ #22062]
8311 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8312 indentation.
8313 * (__gconv_read_conf): Mark function static.
8314 * (once): New static variable.
8315 * (__gconv_load_conf): New function.
8316 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8317 * iconv/gconv_db.c (once): Remove static variable.
8318 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8319 __gconv_read_conf.
8320 * (__gconv_find_transform): Likewise.
8321 * iconv/tst-iconv-mt.c: New test.
8322 * iconv/Makefile: Add tst-iconv_mt.
8323
8324 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8325
8326 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8327 bits/shm-pad.h.
8328 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8329 (shmatt_t): Define as __syscall_ulong_t.
8330 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8331 and [__SHM_PAD_AFTER_TIME].
8332 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8333 Define shm_segsz and associated padding based on
8334 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8335 Use __syscall_ulong_t instead of unsigned long int.
8336 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8337 unsigned long int.
8338 [__USE_MISC] (struct shm_info): Likewise.
8339 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8340 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8341 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8342 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8343 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8344 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8345 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8346 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8347 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8348 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8349 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8350
8351 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8352 bits/shmlba.h.
8353 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8354 (SHMLBA): Remove macro.
8355 (__getpagesize): Remove function declaration.
8356 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8357 <bits/shmlba.h>.
8358 (SHMLBA): Remove macro.
8359 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8360 <bits/shmlba.h>.
8361 (SHMLBA): Remove macro.
8362 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8363 <bits/shmlba.h>.
8364 (SHMLBA): Remove macro.
8365 (__getpagesize): Remove function declaration.
8366 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8367 <bits/shmlba.h>.
8368 (SHMLBA): Remove macro.
8369 (__getshmlba): Remove function declaration.
8370 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8371 (SHMLBA): Remove macro.
8372 (__getpagesize): Remove function declaration.
8373 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8374 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8375 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8376 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8377 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8378 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8379 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8380 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8381 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8382 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8383
8384 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8385
8386 [BZ #23275]
8387 * nptl/tst-mutex10.c: New File.
8388 * nptl/Makefile (tests): Add tst-mutex10.
8389 (tst-mutex10-ENV): New variable.
8390 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8391 Ensure that elision path is used if elision is available.
8392 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8393 Likewise.
8394 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8395 Likewise.
8396 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8397 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8398 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8399 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8400 Likewise.
8401 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8402 (__pthread_mutex_cond_lock_adjust): Likewise.
8403 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8404 Likewise.
8405 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8406 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8407 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8408 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8409 Add comments.
8410 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8411 Use atomic_load_relaxed and atomic_store_relaxed.
8412 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8413 Use atomic_store_relaxed.
8414
8415 2018-10-17 Andreas Schwab <schwab@suse.de>
8416
8417 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8418 * crypt/badsalttest.c (TIMEOUT): Likewise.
8419 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8420 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8421 * io/test-lfs.c (TIMEOUT): Likewise.
8422 * libio/tst-atime.c (TIMEOUT): Likewise.
8423 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8424 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8425 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8426 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8427 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8428 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8429 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8430 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8431 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8432 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8433 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8434 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8435 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8436 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8437 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8438 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8439 * nptl/tst-once2.c (TIMEOUT): Likewise.
8440 * nptl/tst-once3.c (TIMEOUT): Likewise.
8441 * nptl/tst-once4.c (TIMEOUT): Likewise.
8442 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8443 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8444 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8445 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8446 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8447 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8448 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8449 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8450 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8451 * posix/tst-chmod.c (TIMEOUT): Likewise.
8452 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8453 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8454 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8455 * posix/tst-regex2.c (TIMEOUT): Likewise.
8456 * posix/tst-waitid.c (TIMEOUT): Likewise.
8457 * rt/tst-aio.c (TIMEOUT): Likewise.
8458 * rt/tst-aio10.c (TIMEOUT): Likewise.
8459 * rt/tst-aio4.c (TIMEOUT): Likewise.
8460 * rt/tst-aio5.c (TIMEOUT): Likewise.
8461 * rt/tst-aio6.c (TIMEOUT): Likewise.
8462 * rt/tst-aio64.c (TIMEOUT): Likewise.
8463 * rt/tst-aio7.c (TIMEOUT): Likewise.
8464 * rt/tst-aio9.c (TIMEOUT): Likewise.
8465 * rt/tst-clock.c (TIMEOUT): Likewise.
8466 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8467 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8468 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8469 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8470 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8471 * rt/tst-timer4.c (TIMEOUT): Likewise.
8472 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8473 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8474 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8475 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8476 * time/tst-ftime.c (TIMEOUT): Likewise.
8477 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8478
8479 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8480
8481 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8482 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8483 for thunderX2.
8484
8485 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8486
8487 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8488 bits/sem-pad.h.
8489 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8490 instead of <bits/wordsize.h>.
8491 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8492 and [__SEM_PAD_AFTER_TIME].
8493 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8494 __syscall_ulong_t instead of unsigned long int.
8495 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8496 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8497 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8498 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8499 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8500 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8501 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8502 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8503 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8504 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8505 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8506
8507 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8508
8509 regex: simplify by using intprops.h
8510 [BZ#23744]
8511 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8512 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8513 intprops.h defines them.
8514
8515 regex: __builtin_expect → __glibc_unlikely
8516 [BZ#23744]
8517 This refactoring was prompted by a problem when the regex code is
8518 used as part of Gnulib and when the builder’s compiler does not grok
8519 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8520 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8521 Although this refactoring does not fix the problem directly,
8522 we might as well have Gawk use the now-preferred glibc style for when
8523 __builtin_expect is unavailable.
8524 * posix/regex_internal.h (BE): Remove.
8525 All uses replaced by __glibc_unlikely or __glibc_likely.
8526
8527 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8528
8529 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8530 bits/msq-pad.h.
8531 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8532 instead of <bits/wordsize.h>.
8533 (msgqnum_t): Define as __syscall_ulong_t.
8534 (msglen_t): Likewise.
8535 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8536 and [__MSQ_PAD_AFTER_TIME].
8537 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8538 __syscall_ulong_t instead of unsigned long int.
8539 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8540 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8541 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8542 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8543 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8544 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8545 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8546 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8547 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8548 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8549 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8550
8551 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8552
8553 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8554 (struct shmid_ds): Condition padding after time fields on
8555 [__WORDSIZE == 32].
8556 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8557 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8558 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8559
8560 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8561 (struct semid_ds): Condition padding after time fields on
8562 [__WORDSIZE == 32].
8563 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8564 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8565 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8566 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8567
8568 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8569 (struct msqid_ds): Condition padding after time fields on
8570 [__WORDSIZE == 32].
8571 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8572 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8573 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8574 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8575
8576 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8577
8578 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8579
8580 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8581
8582 * libio/tst-readline.c (TIMEOUT): Define.
8583
8584 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8585
8586 mktime fix for Gnulib + coreutils
8587 [BZ#23745]
8588 This fix affects only Gnulib. Problem discovered when
8589 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8590 * time/mktime.c:
8591 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8592 Do not define since it is not used. Defining an unused static
8593 function prompts a warning from GCC when Coreutils is configured
8594 with --enable-gcc-warnings.
8595
8596 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8597
8598 * benchtests/scripts/compare_bench.py (main): set float type on
8599 threshold argument.
8600
8601 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8602
8603 [BZ #23740]
8604 * localedata/locales/kl_GL (mon): Update, the relative case.
8605 (alt_mon): Add, fill with month names in the nominative case.
8606 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8607 (d_fmt): Set to "%b %d %Y".
8608
8609 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8610
8611 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8612 <bits/mman-linux.h>.
8613 (PROT_READ): Don't define here.
8614 (PROT_WRITE): Likewise.
8615 (PROT_EXEC): Likewise.
8616 (PROT_NONE): Likewise.
8617 (PROT_GROWSDOWN): Likewise.
8618 (PROT_GROWSUP): Likewise.
8619 (MAP_SHARED): Likewise.
8620 (MAP_PRIVATE): Likewise.
8621 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8622 [__USE_MISC] (MAP_FILE): Likewise.
8623 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8624 [__USE_MISC] (MAP_ANON): Likewise.
8625 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8626 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8627 (MCL_CURRENT): Likewise.
8628 (MCL_FUTURE): Likewise.
8629 (MCL_ONFAULT): Likewise.
8630 [__USE_MISC] (MADV_NORMAL): Likewise.
8631 [__USE_MISC] (MADV_RANDOM): Likewise.
8632 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8633 [__USE_MISC] (MADV_WILLNEED): Likewise.
8634 [__USE_MISC] (MADV_DONTNEED): Likewise.
8635 [__USE_MISC] (MADV_FREE): Likewise.
8636 [__USE_MISC] (MADV_REMOVE): Likewise.
8637 [__USE_MISC] (MADV_DONTFORK): Likewise.
8638 [__USE_MISC] (MADV_DOFORK): Likewise.
8639 [__USE_MISC] (MADV_HWPOISON): Likewise.
8640 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8641 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8642 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8643 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8644 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8645 (__MAP_ANONYMOUS): New macro.
8646 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8647 <bits/mman-linux.h> inclusion.
8648 (MAP_FIXED): Likewise.
8649 (MS_SYNC): Likewise.
8650 (MS_ASYNC): Likewise.
8651 (MS_INVALIDATE): Likewise.
8652 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8653 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8654 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8655 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8656 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8657 [__USE_MISC] (MADV_DODUMP): Likewise.
8658 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8659 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8660
8661 [BZ #23735]
8662 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8663 Define.
8664 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8665 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8666 Add test-nldbl-redirect.
8667 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8668 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8669 $(objpfx)libnldbl_nonshared.a.
8670
8671 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8672
8673 * support/support.h (support_objdir_elf_ldso): New variable.
8674 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8675 * support/Makefile (CFLAGS-support_paths.c): Add definition
8676 for OBJDIR_ELF_LDSO_PATH.
8677 * support/test-container.c (main): Search for the ld.so
8678 which is also used by the testsuite.
8679
8680 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8681
8682 [BZ #20209]
8683 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8684 should be "sap" rather than "sab".
8685 (day): Fix spelling of Sunday, should be "sapaat" rather than
8686 "sabaat".
8687
8688 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8689
8690 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8691
8692 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8693
8694 [BZ #19444]
8695 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8696 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8697 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8698
8699 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8700
8701 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8702
8703 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8704
8705 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8706 Add -mrtm.
8707 (CFLAGS-elision-unlock.c): Likewise.
8708 (CFLAGS-elision-timed.c): Likewise.
8709 (CFLAGS-elision-trylock.c): Likewise.
8710 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8711
8712 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8713
8714 [BZ #21037]
8715 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8716 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8717 new fd_to_filename interface.
8718 * libio/freopen64.c (freopen64): Likewise.
8719 * libio/tst-memstream.h: New file.
8720 * libio/tst-memstream4.c: Likewise.
8721 * libio/tst-wmemstream4.c: Likewise.
8722 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8723 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8724 and remove internal dynamic allocation.
8725
8726 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8727
8728 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8729 (MREMAP_MAYMOVE): Do not define here.
8730 [__USE_GNU] (MREMAP_FIXED): Likewise.
8731 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8732 (MREMAP_MAYMOVE): Define here instead.
8733 [__USE_GNU] (MREMAP_FIXED): Likewise.
8734 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8735 (MREMAP_MAYMOVE): Remove.
8736 [__USE_GNU] (MREMAP_FIXED): Likewise.
8737
8738 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8739
8740 * math/fromfp.h: Do not include <math_private.h>.
8741 * math/s_cacosh_template.c: Likewise.
8742 * math/s_casin_template.c: Likewise.
8743 * math/s_casinh_template.c: Likewise.
8744 * math/s_ccos_template.c: Likewise.
8745 * math/s_cproj_template.c: Likewise.
8746 * math/s_fdim_template.c: Likewise.
8747 * math/s_fmaxmag_template.c: Likewise.
8748 * math/s_fminmag_template.c: Likewise.
8749 * math/s_iseqsig_template.c: Likewise.
8750 * math/s_ldexp_template.c: Likewise.
8751 * math/s_nextdown_template.c: Likewise.
8752 * math/w_log1p_template.c: Likewise.
8753 * math/w_scalbln_template.c: Likewise.
8754 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8755 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8756 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8757 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8758 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8759 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8760 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8761 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8762 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8763 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8764 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8765 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8766 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8767 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8768 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8769 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8770 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8771 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8772 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8773 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8774 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8775 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8776 * sysdeps/ieee754/k_standardf.c: Likewise.
8777 * sysdeps/ieee754/k_standardl.c: Likewise.
8778 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8779 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8780 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8781 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8782 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8783 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8784 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8785 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8786 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8787 * sysdeps/ieee754/s_signgam.c: Likewise.
8788 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8789 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8790 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8791 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8792 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8793 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8794 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8795 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8796 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8797 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8798 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8799 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8800 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8801 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8802 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8803 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8804 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8805 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8806 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8807 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8808 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8809 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8810 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8811 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8812 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8813 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8814 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8815 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8816 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8817 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8818 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8819 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8820 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8821 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8822 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8823 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8824 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8825 <math_private.h>.
8826 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8827
8828 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8829
8830 [BZ #23716]
8831 * sysdeps/i386/dl-cet.c: Removed.
8832 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8833 prototype.
8834 (_dl_runtime_profile_shstk): Likewise.
8835 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8836 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8837
8838 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8839
8840 [BZ #23579]
8841 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8842 do_test_with_invalid_iov): New tests.
8843 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8844 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8845 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8846 errno is ENOSYS.
8847 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8848 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8849 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8850
8851 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8852
8853 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8854 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8855 (MATH_REDIRECT_BINARY_ARGS): New macro.
8856 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8857 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8858 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8859 header inclusion.
8860 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8861 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8862 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8863 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8864 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8865 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8866 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8867 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8868 Likewise.
8869 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8870 Likewise.
8871 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8873 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8874 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8876 Likewise.
8877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8878 Likewise.
8879 * sysdeps/generic/math_private_calls.h
8880 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8881 Do not declare and define as an inline function.
8882 * math/divtc3.c (__divtc3): Use copysign functions instead of
8883 __copysign variants.
8884 * math/multc3.c (__multc3): Likewise.
8885 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8886 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8887 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8888 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8889 Likewise.
8890 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8891 (__ieee754_yn): Likewise.
8892 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8893 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8894 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8895 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8896 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8897 (__sin): Likewise.
8898 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8899 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8900 Likewise.
8901 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8902 Likewise.
8903 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8904 Likewise.
8905 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8906 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8907 Likewise.
8908 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8909 (__ieee754_ynf): Likewise.
8910 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8911 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8912 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8913 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8914 Likewise.
8915 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8916 (__ieee754_ynl): Likewise.
8917 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8918 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8919 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8920 Likewise.
8921 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8922 (__ieee754_ynl): Likewise.
8923 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8924 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8925 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8926 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8927 Likewise.
8928 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8929 (__ieee754_ynl)
8930 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8931 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8932 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8933 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8934 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8935
8936 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8937 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8938 using MATH_REDIRECT.
8939 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8940 header inclusion.
8941 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8942 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8943 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8944 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8945 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8946 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8947 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8949 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8950 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8951 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8952 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8953 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8954 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8955 (round): Redirect to __round.
8956 (__roundl): Call round instead of __round.
8957 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8958 Remove macro.
8959 [_ARCH_PWR5X] (__roundf): Likewise.
8960 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8961 functions instead of __round variants.
8962 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8963 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8964 Likewise.
8965 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8966 Likewise.
8967 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8968 Likewise.
8969 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8970 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8971 __lroundl.
8972 (__ieee754_expl): Call roundl instead of __roundl.
8973
8974 2018-09-27 Andreas Schwab <schwab@suse.de>
8975
8976 [BZ #23717]
8977 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8978 (do_test): Make st1 static.
8979
8980 2018-09-26 Andreas Schwab <schwab@suse.de>
8981
8982 [BZ #23707]
8983 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8984 * elf/Makefile (tests): Add tst-unwind-ctor.
8985 (modules-names): Add tst-unwind-ctor-lib.
8986 ($(objpfx)tst-unwind-ctor): Depend on
8987 $(objpfx)tst-unwind-ctor-lib.so.
8988
8989 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8990
8991 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8992 file. Most contents moved from ....
8993 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8994 and include <bits/mman-map-flags-generic.h>.
8995 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8996 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8997 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8998 <bits/mman-map-flags-generic.h>.
8999 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
9000 macros defined in <bits/mman-map-flags-generic.h>.
9001 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
9002 <bits/mman-map-flags-generic.h>.
9003 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
9004 defined in <bits/mman-map-flags-generic.h>.
9005
9006 2018-09-26 Andreas Schwab <schwab@suse.de>
9007
9008 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
9009 output.
9010
9011 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
9012 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9013 Fangrui Song <maskray@google.com>
9014
9015 [BZ #20480]
9016 * config.make.in (have-textrel_ifunc): New define.
9017 * configure.ac: Add check if linker supports textrel relocation with
9018 ifunc.
9019 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
9020 tst-ifunc-textrel.
9021 (CFLAGS-tst-ifunc-textrel.c): New rule.
9022 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
9023 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
9024 * elf/tst-ifunc-textrel.c: New file.
9025
9026 2018-09-25 Joseph Myers <joseph@codesourcery.com>
9027
9028 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9029 <bits/procfs-prregset.h>.
9030 (prgregset_t): Define using __prgregset_t.
9031 (prfpregset_t): Define using __prfpregset_t.
9032 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9033 (sysdep_headers): Add bits/procfs-prregset.h.
9034 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
9035 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
9036 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
9037 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
9038
9039 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
9040 <bits/procfs-id.h> and <bits/procfs-extra.h>.
9041 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
9042 pr_uid and pr_gid.
9043 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9044 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
9045 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
9046 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
9047 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
9048 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
9049 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
9050 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
9051 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
9052 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
9053 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
9054 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
9055 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
9056 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
9057 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
9058 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
9059 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
9060 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
9061 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
9062 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
9063 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
9064 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
9065 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
9066 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
9067
9068 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
9069 AArch64 version. Include <bits/procfs.h>.
9070 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
9071 (sysdep_headers): Add bits/procfs.h.
9072 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
9073 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
9074 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
9075 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
9076 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
9077 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
9078 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
9079 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
9080 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
9081 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
9082 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
9083 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
9084 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
9085 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
9086 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
9087 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
9088 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
9089
9090 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9091
9092 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
9093 Use libsupport.
9094
9095 2018-09-25 Arjun Shankar <arjun@redhat.com>
9096
9097 * iconv/gconv_int.h (__gconv_path_elem): Remove.
9098 (__gconv_max_path_elem_len): Likewise.
9099 (__gconv_nmodules): Likewise.
9100 (__gconv_get_path): Likewise.
9101 (path_elem): Move to ...
9102 * iconv/gconv_conf.c: ... here.
9103 (__gconv_get_path): Mark function static.
9104 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
9105 * iconv/gconv_open.c: ... here.
9106
9107 2018-09-24 Andreas Schwab <schwab@suse.de>
9108
9109 * scripts/haveversions.awk: New file.
9110 * Makerules ($(common-objpfx)Versions.def)
9111 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9112 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9113 Move rules ...
9114 * Makeconfig ($(common-objpfx)Versions.def)
9115 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
9116 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
9117 ... here.
9118 ($(common-objpfx)Versions.mk): New rule. Include it.
9119 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
9120 Emit error if build-obsolete-nsl = yes.
9121 * manual/install.texi (Configuring and compiling): Describe
9122 --enable-obsolete-nsl as unavaiable after version 2.28.
9123 * INSTALL: Regenerate.
9124
9125 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9126
9127 * NEWS: Add note about new TLE support on powerpc64le.
9128 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
9129 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
9130 __ununsed1.
9131 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
9132 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
9133 * sysdeps/powerpc/powerpc32/sysdep.h,
9134 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
9135 ABORT_TRANSACTION): Remove macros.
9136 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
9137 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
9138 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
9139 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
9140 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9141 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
9142 usage.
9143 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
9144
9145 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
9146
9147 [BZ #10425]
9148 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9149 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9150 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9151 which is the same as in it_IT.
9152 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9153 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9154
9155 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9156
9157 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9158 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9159 using MATH_REDIRECT.
9160 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9161 header inclusion.
9162 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9163 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9164 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9165 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9166 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9167 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9169 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9172 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9173 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9174 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9175 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9176 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9177 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9178 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9179 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9180 (ceil): Redirect to __ceil.
9181 (floor): Redirect to __floor.
9182 (trunc): Redirect to __trunc.
9183 (__truncl): Call trunc instead of __trunc.
9184 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9185 Remove macro.
9186 [_ARCH_PWR5X] (__truncf): Likewise.
9187 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9188 trunc functions instead of __trunc variants.
9189 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9190 Likewise.
9191 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9192 Likewise.
9193 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9194 Likewise.
9195 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9196 Likewise.
9197
9198 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9199 [__i586__ || __pentium__].
9200 [__i486__]: Handle explicitly.
9201 (HAS_CPUID): Define to 1 if above macros are undefined.
9202 (HAS_I586): Likewise.
9203 (HAS_I686): Likewise.
9204
9205 2018-09-20 Florian Weimer <fweimer@redhat.com>
9206
9207 * misc/tst-gethostid.c: New file.
9208 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9209 (tst-gethostid): Link with -ldl.
9210
9211 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9212
9213 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9214 value from gethostbyname_r.
9215
9216 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9217
9218 * stdlib/tst-setcontext9.c (f1): Rename to...
9219 (f1a): ... this.
9220 (f1b): New function implementing lower half of f1 in alternate stack.
9221
9222 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9223
9224 Fix mktime localtime offset confusion
9225 [BZ #23603]
9226 * include/time.h (__mktime_internal): The localtime offset is now
9227 of type long int instead of time_t. This is the longstanding type
9228 in glibc, and it is more than enough to represent difference
9229 between localtime and gmtime even if it is 32 bits and time_t is
9230 64. Changing it now will let us avoid an unnecessary change when
9231 time_t is widened to 64 bits on 32-bit platforms.
9232 * time/mktime-internal.h (mktime_offset_t): Now long int.
9233
9234 Merge mktime, timegm from upstream Gnulib
9235 [BZ #23603][BZ #16346]
9236 This fixes some obscure problems with integer overflow.
9237 Although it looks scary, it is almost all a byte-for-byte copy
9238 from Gnulib, and the Gnulib code has been tested reasonably well.
9239 * include/intprops.h: New file, copied from Gnulib.
9240 * include/verify.h, time/mktime-internal.h:
9241 New tiny files, simplified from Gnulib.
9242 * time/mktime.c: Copy from Gnulib. This has the following changes:
9243 Do not include config.h if DEBUG_MKTIME is nonzero.
9244 Include stdbool.h, intprops.h, verify.h.
9245 Include string.h only if needed.
9246 Include stdlib.h on MS-Windows.
9247 Include mktime-internal.h.
9248 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9249 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9250 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9251 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9252 simplify later conditionals; default the others to zero. Use
9253 these conditionals to express only the code needed on the current
9254 platform. In uses of these conditionals, explicitly spell out how
9255 _LIBC affects things, so it’s easier to review from a glibc
9256 viewpoint.
9257 (WRAPV): Remove; no longer needed now that we have
9258 systematic overflow checking.
9259 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9260 compartmentalize tzset issues. Move system-dependent tzsettish
9261 code here from mktime.
9262 (verify): Remove; now done by verify.h. All uses changed.
9263 (long_int): Use a more-conservative definition, to avoid
9264 integer overflow.
9265 (SHR): Remove, replacing with ...
9266 (shr): New function, which means we needn’t worry about side
9267 effects in args, and conversion analysis is simpler.
9268 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9269 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9270 (time_t_avg, time_t_add_ok): Remove.
9271 (mktime_min, mktime_max): New constants.
9272 (leapyear, isdst_differ): Use bool for booleans.
9273 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9274 Use long_int, not time_t, for mktime differences.
9275 (long_int_avg): New function, replacing time_t_avg.
9276 INT_ADD_WRAPV replaces time_t_add_ok.
9277 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9278 All uses changed.
9279 (convert_time): New function.
9280 (ranged_convert): Use it.
9281 (__mktime_internal): Last arg now points to mktime_offset_t, not
9282 time_t. All uses changed. This is a no-op on glibc, where
9283 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9284 offset guess. Directly check for integer overflow instead of
9285 using a heuristic that works only 99.9...% of the time.
9286 Access *OFFSET only once, to avoid an unlikely race if the
9287 compiler delays a load and if this cascades into a signed integer
9288 overflow.
9289 (mktime): Move tzsettish code to my_tzset, and move
9290 localtime_offset to within mktime so that it doesn’t
9291 need a separate ifdef.
9292 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9293 instead of localtime.
9294 * time/timegm.c: Copy from Gnulib. This has the following changes:
9295 Include mktime-internal.h.
9296 [!_LIBC]: Include config.h and time.h. Do not include
9297 timegm.h or time_r.h. Make __mktime_internal a macro,
9298 and include mktime-internal.h to get its declaration.
9299 (timegm): Temporary is now mktime_offset_t, not time_t.
9300 This affects only Gnulib.
9301
9302 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9303
9304 [BZ #23637]
9305 * string/test-strstr.c (pr23637): New function.
9306 (test_main): Add tests with longer needles.
9307 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9308 * string/strstr.c (AVAILABLE): Likewise.
9309
9310 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9311
9312 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9313
9314 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9315
9316 * NEWS: Mention pow improvements.
9317 * math/Makefile (type-double-routines): Add e_pow_log_data.
9318 * sysdeps/generic/math_private.h (__exp1): Remove.
9319 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9320 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9321 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9322 contraction.
9323 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9324 (exp_inline): Remove.
9325 (__ieee754_exp): Only single double input is handled.
9326 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9327 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9328 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9329 (__pow_log_data): Define.
9330 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9331 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9332 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9333 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9334 contraction.
9335 (CFLAGS-e_pow-fma4.c): Likewise.
9336
9337 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9338
9339 Simplify tzfile fstat failure code
9340 [BZ #21716]
9341 * time/tzfile.c (__tzfile_read): Simplify slightly.
9342
9343 Fix tzfile low-memory assertion failure
9344 [BZ #21716]
9345 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9346 when registering time zone abbreviations.
9347
9348 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9349
9350 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9351 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9352 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9353 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9354 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9355 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9356 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9357 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9358 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9359
9360 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9361 __ceil.
9362 (__ceill): Call ceil instead of __ceil.
9363 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9364 __floor.
9365 (__floorl): Call floor instead of __floor.
9366
9367 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9368
9369 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9370 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9371 using MATH_REDIRECT.
9372 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9373 header inclusion.
9374 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9375 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9376 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9377 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9378 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9379 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9380 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9381 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9382 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9383 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9384 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9385 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9386 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9387 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9388 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9389 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9390 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9391 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9392 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9393 Remove macro.
9394 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9395 functions instead of __ceil variants.
9396 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9397 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9398 Likewise.
9399 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9400 Likewise.
9401 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9402 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9403 Likewise.
9404 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9405 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9406
9407 [BZ #21286]
9408 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9409 constant.
9410 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9411 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9412 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9413 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9414 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9415 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9416 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9417 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9418 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9419 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9420 (ILL_BADIADDR): Remove constant.
9421 (TRAP_BRANCH): Likewise.
9422 (TRAP_HWBKPT): Likewise.
9423
9424 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9425
9426 [BZ #23656]
9427 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9428 Remove [_MIPS_SIM = _ABIN32] conditional case.
9429 (struct elf_prpsinfo): Likewise.
9430
9431 [BZ #23649]
9432 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9433 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9434 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9435 Likewise.
9436 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9437 elf_prpsinfo): Likewise.
9438 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9439 elf_prpsinfo): Likewise.
9440 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9441 Likewise.
9442
9443 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9444 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9445 using MATH_REDIRECT.
9446 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9447 header inclusion.
9448 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9449 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9450 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9451 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9452 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9453 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9454 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9455 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9456 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9457 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9458 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9459 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9460 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9461 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9462 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9463 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9464 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9465 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9466 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9469 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9470 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9471 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9472 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9473 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9474 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9475 __rint variants.
9476 * math/e_scalbf.c (invalid_fn): Likewise.
9477 * math/e_scalbl.c (invalid_fn): Likewise.
9478 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9479 Likewise.
9480 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9481 Likewise.
9482 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9483 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9484 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9485 Likewise.
9486 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9487 Likewise.
9488 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9489 Likewise.
9490 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9491 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9492
9493 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9494 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9495 New macro.
9496 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9497 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9498 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9499 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9500 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9501 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9502 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9503 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9504 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9505 && !NO_MATH_REDIRECT] (floor): Likewise.
9506 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9507 header inclusion.
9508 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9509 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9510 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9511 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9512 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9513 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9514 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9515 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9516 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9517 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9519 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9520 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9521 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9522 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9523 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9524 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9525 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9526 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9527 Remove macro.
9528 [_ARCH_PWR5X] (__floorf): Likewise.
9529 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9530 inline function.
9531 [__SSE4_1__] (__floorf): Likewise.
9532 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9533 instead of __floor variants.
9534 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9535 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9536 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9537 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9538 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9539 * math/w_tgamma_compat.c (__tgamma): Likewise.
9540 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9541 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9542 * math/w_tgammal_compat.c (__tgammal): Likewise.
9543 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9544 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9545 Likewise.
9546 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9547 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9548 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9549 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9550 Likewise.
9551 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9552 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9553 Likewise.
9554 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9555 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9556 Likewise.
9557 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9558 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9559 Likewise.
9560 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9561 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9562 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9563 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9564 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9565 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9566
9567 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9568
9569 * elf/Makefile (modules-names-tests): New variable.
9570
9571 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9572
9573 * NEWS: Mention log2 improvements.
9574 * math/Makefile (type-double-routines): Add e_log2_data.
9575 * sysdeps/i386/fpu/e_log2_data.c: New file.
9576 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9577 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9578 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9579 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9580 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9581 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9582
9583 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9584
9585 * NEWS: Mention log improvement.
9586 * math/Makefile (type-double-routines): Add e_log_data.
9587 * sysdeps/i386/fpu/e_log_data.c: New file.
9588 * sysdeps/ia64/fpu/e_log_data.c: New file.
9589 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9590 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9591 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9592 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9593 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9594 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9595
9596 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9597 Xuepeng Guo <xuepeng.guo@intel.com>
9598
9599 [BZ #23606]
9600 * sysdeps/i386/start.S: Include <sysdep.h>
9601 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9602 enabled. Add cfi_undefined (eip).
9603
9604 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9605
9606 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9607 (MOVQ): Likewise.
9608 (EXTRACT_WORDS64): Likewise.
9609 (INSERT_WORDS64): Likewise.
9610 (GET_FLOAT_WORD): Likewise.
9611 (SET_FLOAT_WORD): Likewise.
9612
9613 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9614 argument.
9615 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9616 build, but not for second build if --full-gcc. Use
9617 --enable-languages=all for second build if --full-gcc.
9618 (get_parser): Add --full-gcc option.
9619 (main): Update call to Context.
9620
9621 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9622
9623 [BZ #10797]
9624 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9625 Single Quotation Mark).
9626 (thousands_sep): Likewise.
9627 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9628 * localedata/locales/it_IT (thousands_sep): Use ".".
9629 (grouping): Use "3;3".
9630
9631 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9632
9633 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9634 x86_64 and i686 configs using --enable-obsolete-rpc
9635 --enable-obsolete-nsl.
9636
9637 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9638
9639 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9640
9641 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9642
9643 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9644 Increment size of new_argv by one.
9645
9646 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9647
9648 [BZ #17426]
9649 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9650 * localedata/locales/ar_IN (d_fmt): Likewise.
9651 * localedata/locales/bhb_IN (d_fmt): Likewise.
9652 * localedata/locales/bho_IN (d_fmt): Likewise.
9653 * localedata/locales/bn_BD (d_fmt): Likewise.
9654 * localedata/locales/bn_IN (d_fmt): Likewise.
9655 * localedata/locales/doi_IN (d_fmt): Likewise.
9656 * localedata/locales/gu_IN (d_fmt): Likewise.
9657 * localedata/locales/hi_IN (d_fmt): Likewise.
9658 * localedata/locales/hne_IN (d_fmt): Likewise.
9659 * localedata/locales/kn_IN (d_fmt): Likewise.
9660 * localedata/locales/mag_IN (d_fmt): Likewise.
9661 * localedata/locales/mai_IN (d_fmt): Likewise.
9662 * localedata/locales/mjw_IN (d_fmt): Likewise.
9663 * localedata/locales/ml_IN (d_fmt): Likewise.
9664 * localedata/locales/mni_IN (d_fmt): Likewise.
9665 * localedata/locales/mr_IN (d_fmt): Likewise.
9666 * localedata/locales/pa_IN (d_fmt): Likewise.
9667 * localedata/locales/raj_IN (d_fmt): Likewise.
9668 * localedata/locales/sat_IN (d_fmt): Likewise.
9669 * localedata/locales/sd_IN (d_fmt): Likewise.
9670 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9671 * localedata/locales/ta_IN (d_fmt): Likewise.
9672 * localedata/locales/ta_LK (d_fmt): Likewise.
9673 * localedata/locales/tcy_IN (d_fmt): Likewise.
9674 * localedata/locales/ur_IN (d_fmt): Likewise.
9675
9676 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9677 * localedata/locales/ks_IN (d_fmt): Likewise.
9678 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9679
9680 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9681 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9682 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9683 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9684
9685 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9686
9687 * NEWS: Mention exp and exp2 improvements.
9688 * math/Makefile (libm-support): Remove t_exp.
9689 (type-double-routines): Add math_err and e_exp_data.
9690 * sysdeps/aarch64/libm-test-ulps: Update.
9691 * sysdeps/arm/libm-test-ulps: Update.
9692 * sysdeps/i386/fpu/e_exp_data.c: New file.
9693 * sysdeps/i386/fpu/math_err.c: New file.
9694 * sysdeps/i386/fpu/t_exp.c: Remove.
9695 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9696 * sysdeps/ia64/fpu/math_err.c: New file.
9697 * sysdeps/ia64/fpu/t_exp.c: Remove.
9698 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9699 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9700 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9701 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9702 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9703 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9704 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9705 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9706 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9707 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9708 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9709 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9710 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9711 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9712 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9713 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9714
9715 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9716
9717 * sysdeps/alpha/fpu/math_private.h: Remove.
9718
9719 * sysdeps/generic/math_private.h
9720 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9721 Move this inline function ....
9722 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9723 * include/math.h [!_ISOMAC]: To here....
9724
9725 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9726
9727 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9728 code ....
9729 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9730 * include/fenv.h [!_ISOMAC]: ... to here.
9731 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9732 (feraiseexcept): Likewise.
9733 * math/fromfp.h: Do not include <fenv_private.h>.
9734 * math/s_cexp_template.c: Likewise.
9735 * math/s_csin_template.c: Likewise.
9736 * math/s_csinh_template.c: Likewise.
9737 * math/s_ctan_template.c: Likewise.
9738 * math/s_ctanh_template.c: Likewise.
9739 * math/s_iseqsig_template.c: Likewise.
9740 * math/w_acos_compat.c: Likewise.
9741 * math/w_acosf_compat.c: Likewise.
9742 * math/w_acosl_compat.c: Likewise.
9743 * math/w_asin_compat.c: Likewise.
9744 * math/w_asinf_compat.c: Likewise.
9745 * math/w_asinl_compat.c: Likewise.
9746 * math/w_j0_compat.c: Likewise.
9747 * math/w_j0f_compat.c: Likewise.
9748 * math/w_j0l_compat.c: Likewise.
9749 * math/w_j1_compat.c: Likewise.
9750 * math/w_j1f_compat.c: Likewise.
9751 * math/w_j1l_compat.c: Likewise.
9752 * math/w_jn_compat.c: Likewise.
9753 * math/w_jnf_compat.c: Likewise.
9754 * math/w_log10_compat.c: Likewise.
9755 * math/w_log10f_compat.c: Likewise.
9756 * math/w_log10l_compat.c: Likewise.
9757 * math/w_log2_compat.c: Likewise.
9758 * math/w_log2f_compat.c: Likewise.
9759 * math/w_log2l_compat.c: Likewise.
9760 * math/w_log_compat.c: Likewise.
9761 * math/w_logf_compat.c: Likewise.
9762 * math/w_logl_compat.c: Likewise.
9763 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9764 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9765 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9766 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9767 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9768 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9769 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9770 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9771 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9772 * sysdeps/ieee754/k_standardl.c: Likewise.
9773 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9774 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9775 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9776 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9777 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9778 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9779 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9780 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9781 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9782 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9783 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9784 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9785 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9786 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9787 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9788 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9789 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9790 * math/w_ilogb_template.c: Include <fenv.h> instead of
9791 <fenv_private.h>.
9792 * math/w_llogb_template.c: Likewise.
9793 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9794 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9795
9796 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9797
9798 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9799 * math/fromfp.h: Include <fenv_private.h>.
9800 * math/math-narrow.h: Likewise.
9801 * math/s_cexp_template.c: Likewise.
9802 * math/s_csin_template.c: Likewise.
9803 * math/s_csinh_template.c: Likewise.
9804 * math/s_ctan_template.c: Likewise.
9805 * math/s_ctanh_template.c: Likewise.
9806 * math/s_iseqsig_template.c: Likewise.
9807 * math/w_acos_compat.c: Likewise.
9808 * math/w_acosf_compat.c: Likewise.
9809 * math/w_acosl_compat.c: Likewise.
9810 * math/w_asin_compat.c: Likewise.
9811 * math/w_asinf_compat.c: Likewise.
9812 * math/w_asinl_compat.c: Likewise.
9813 * math/w_ilogb_template.c: Likewise.
9814 * math/w_j0_compat.c: Likewise.
9815 * math/w_j0f_compat.c: Likewise.
9816 * math/w_j0l_compat.c: Likewise.
9817 * math/w_j1_compat.c: Likewise.
9818 * math/w_j1f_compat.c: Likewise.
9819 * math/w_j1l_compat.c: Likewise.
9820 * math/w_jn_compat.c: Likewise.
9821 * math/w_jnf_compat.c: Likewise.
9822 * math/w_llogb_template.c: Likewise.
9823 * math/w_log10_compat.c: Likewise.
9824 * math/w_log10f_compat.c: Likewise.
9825 * math/w_log10l_compat.c: Likewise.
9826 * math/w_log2_compat.c: Likewise.
9827 * math/w_log2f_compat.c: Likewise.
9828 * math/w_log2l_compat.c: Likewise.
9829 * math/w_log_compat.c: Likewise.
9830 * math/w_logf_compat.c: Likewise.
9831 * math/w_logl_compat.c: Likewise.
9832 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9833 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9834 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9835 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9836 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9837 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9838 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9839 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9840 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9841 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9842 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9843 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9844 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9845 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9846 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9847 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9848 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9849 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9850 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9851 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9852 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9853 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9854 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9855 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9856 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9857 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9858 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9859 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9860 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9861 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9862 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9863 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9864 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9865 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9866 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9867 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9868 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9869 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9870 * sysdeps/ieee754/k_standardl.c: Likewise.
9871 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9872 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9873 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9874 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9875 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9876 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9877 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9878 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9879 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9880 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9881 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9882 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9883 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9884 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9885 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9886 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9887 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9888 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9889 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9890 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9891 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9892 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9893 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9894 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9895 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9896 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9897 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9898 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9899 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9900 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9901 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9902 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9903 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9904 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9905 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9906 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9907 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9908 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9909 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9910 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9911 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9912 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9913 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9914 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9915 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9916 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9917 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9918 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9919 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9920 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9921 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9922 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9923 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9924 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9925 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9926 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9927 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9928 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9929 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9930 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9931 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9932 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9933 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9934 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9935 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9936 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9937 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9938 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9939 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9940 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9941 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9942
9943 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9944
9945 [BZ #20271]
9946 * include/stdio.h (__libc_fatal): Mention newline in comment.
9947 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9948 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9949 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9950 * nss/nsswitch.c (__nss_next2): Likewise.
9951 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9952 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9953 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9954 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9955 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9956 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9957 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9958 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9959 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9960 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9961 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9962 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9963 (__netlink_assert_response): Likewise.
9964
9965 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9966
9967 * conform/glibcconform.py: New file.
9968 * conform/list-header-symbols.py: Likewise.
9969 * conform/list-header-symbols.pl: Remove.
9970 * conform/Makefile (tests-special): Only add linknamespace tests
9971 if [PYTHON].
9972 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9973
9974 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9975
9976 [BZ #23597]
9977 * support/Makefile (libsupport-routines): Add
9978 support_copy_file_range and xcopy_file_range.
9979 * support/support.h: Include <sys/types.h>.
9980 (support_copy_file_range): New prototype.
9981 * support/support_copy_file_range.c: New file. Copied and
9982 modified from io/copy_file_range-compat.c.
9983 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9984 instead of copy_file_range.
9985 * support/xcopy_file_range.c: New file.
9986 * support/xunistd.h (xcopy_file_range): New prototype.
9987
9988 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9989
9990 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9991 xpthread_create and xpthread_join.
9992
9993 2018-08-30 Florian Weimer <fweimer@redhat.com>
9994
9995 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9996
9997 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9998
9999 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
10000 if malloc fails.
10001
10002 2018-08-29 Joseph Myers <joseph@codesourcery.com>
10003
10004 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
10005 and minus_oflow as non-finite.
10006
10007 2018-08-28 Joseph Myers <joseph@codesourcery.com>
10008
10009 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
10010 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
10011 moved to fenv_private.h except for ...
10012 (TOINT_INTRINSICS): Kept in math_private.h.
10013 (roundtoint): Likewise.
10014 (converttoint): Likewise.
10015 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
10016 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10017 * sysdeps/arm/math_private.h: Remove.
10018 * sysdeps/generic/fenv_private.h: New file. Contents moved from
10019 ....
10020 * sysdeps/generic/math_private.h: ... this file. Include
10021 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
10022 Include <fenv_private.h>. Remove functions and macros moved to
10023 fenv_private.h.
10024 * sysdeps/i386/fpu/math_private.h: Remove.
10025 * sysdeps/mips/math_private.h: Move to ....
10026 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
10027 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
10028 [__mips_hard_float] conditional. Include next <fenv_private.h>.
10029 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
10030 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10031 * sysdeps/powerpc/fpu/math_private.h: Do not include
10032 <fenv_private.h>.
10033 * sysdeps/riscv/rvf/math_private.h: Move to ....
10034 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
10035 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
10036 <fenv_private.h>.
10037 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
10038 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
10039 * sysdeps/sparc/fpu/math_private.h: Remove.
10040 * sysdeps/i386/fpu/fenv_private.h: Move to ....
10041 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
10042 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
10043 <fenv_private.h>.
10044 * sysdeps/x86_64/fpu/math_private.h: Do not include
10045 <sysdeps/i386/fpu/fenv_private.h>.
10046
10047 2018-08-28 Florian Weimer <fweimer@redhat.com>
10048
10049 [BZ #23578]
10050 * posix/tst-regcomp-truncated.c: New file.
10051 * posix/Makefile (tests): Add it.
10052 (tst-regcomp-truncated.out): Depend on generated locales.
10053
10054 2018-08-28 Florian Weimer <fweimer@redhat.com>
10055
10056 * support/test-container.c (main): Treat unshare failure with
10057 EPERM as an unsupported test.
10058
10059 2018-08-28 Florian Weimer <fweimer@redhat.com>
10060
10061 [BZ #23520]
10062 nscd: Fix use-after-free in addgetnetgrentX and its callers.
10063 * nscd/netgroupcache.c
10064 (addgetnetgrentX): Add tofreep parameter. Do not free
10065 heap-allocated buffer.
10066 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
10067 (addgetnetgrentX_ignore): New function.
10068 (addgetnetgrent): Call it.
10069 (readdgetnetgrent): Likewise.
10070
10071 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10072
10073 * string/memmem.c: Use memcmp for first match.
10074
10075 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
10076
10077 [BZ #17426]
10078 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
10079
10080 2018-08-27 DJ Delorie <dj@redhat.com>
10081
10082 * support/Makefile (others): Don't list programs explicitly as a
10083 dependency of "others".
10084
10085 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10086
10087 * sysdeps/generic/math-tests-trap-force.h: New file.
10088 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
10089 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
10090 * sysdeps/powerpc/math-tests.h: Remove file.
10091 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
10092
10093 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
10094 Torvald Riegel <triegel@redhat.com>
10095
10096 [BZ #23538]
10097 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
10098 Update r to include the set wake-request flag if waiters are
10099 remaining after spinning.
10100
10101 2018-08-27 Joseph Myers <joseph@codesourcery.com>
10102
10103 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
10104
10105 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
10106
10107 [BZ #23578]
10108 regex: fix uninitialized memory access
10109 I introduced this bug into gnulib in commit
10110 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
10111 eventually it was merged into glibc. The bug was found by
10112 project-repo <bugs@feusi.co> and reported here:
10113 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
10114 Diagnosis and draft fix reported by Assaf Gordon here:
10115 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
10116 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
10117 * posix/regex_internal.c (build_wcs_upper_buffer):
10118 Fix bug when mbrtowc returns 0.
10119
10120 2018-08-24 Carlos O'Donell <carlos@redhat.com>
10121
10122 * po/be.po: Update translation.
10123
10124 2018-08-24 DJ Delorie <dj@delorie.com>
10125
10126 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
10127 $(libunwind).
10128
10129 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
10130
10131 [BZ #23400]
10132 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
10133 create temporary files in source tree.
10134
10135 2018-08-24 Joseph Myers <joseph@codesourcery.com>
10136
10137 * sysdeps/generic/math-tests-trap.h: New file.
10138 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
10139 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
10140 * sysdeps/aarch64/math-tests.h: Remove file.
10141 * sysdeps/arm/math-tests.h: Likewise.
10142 * sysdeps/riscv/math-tests.h: Likewise.
10143 * sysdeps/aarch64/math-tests-trap.h: New file.
10144 * sysdeps/arm/math-tests-trap.h: Likewise.
10145 * sysdeps/riscv/math-tests-trap.h: Likewise.
10146
10147 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10148
10149 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10150 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10151 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10152 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10153 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10154 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10155 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10156 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10157 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10158 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10159 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10160 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10161 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10162 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10163 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10164 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10165 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10166 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10167
10168 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10169
10170 * sysdeps/generic/math-tests-exceptions.h: New file.
10171 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10172 (EXCEPTION_TESTS_float): Do not define here.
10173 (EXCEPTION_TESTS_double): Likewise.
10174 (EXCEPTION_TESTS_long_double): Likewise.
10175 (EXCEPTION_TESTS_float128): Likewise.
10176 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10177 Likewise.
10178 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10179 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10180 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10181 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10182 * sysdeps/mips/math-tests.h: Likewise.
10183 * sysdeps/nios2/math-tests.h: Likewise.
10184 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10185 (EXCEPTION_TESTS_float): Do not define here.
10186 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10187 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10188 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10189
10190 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10191
10192 * NEWS: Move optimized sinf entry to 2.29.
10193
10194 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10195
10196 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10197
10198 2018-08-22 DJ Delorie <dj@redhat.com>
10199
10200 * Makefile (testroot.pristine): New rules to initialize the
10201 test-in-container "testroot".
10202 * Makerules (all-testsuite): Add tests-container.
10203 * Rules (tests-expected): Add tests-container.
10204 (binaries-all-tests): Likewise.
10205 (tests-container): New, run these tests in the testroot container.
10206 * support/Makefile (others): Add *-container, support_paths.c,
10207 xmkdirp, and links-dso-program.
10208 * support/links-dso-program-c.c: New.
10209 * support/links-dso-program.cc: New.
10210 * support/test-container.c: New.
10211 * support/shell-container.c: New.
10212 * support/echo-container.c: New.
10213 * support/true-container.c: New.
10214 * support/xmkdirp.c: New.
10215 * support/xsymlink.c: New.
10216 * support/support_paths.c: New.
10217 * support/support.h: Add support paths prototypes.
10218 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10219
10220 * nss/tst-nss-test3.c: Convert to test-in-container.
10221 * nss/tst-nss-test3.root/: New.
10222
10223 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10224
10225 regex: port Gnulib code to z/OS POSIX environment
10226 Problem reported by Arnold Robbins in:
10227 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10228 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10229 Undef.
10230
10231 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10232
10233 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10234 (ROUNDING_TESTS_double): Remove.
10235 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10236 (ROUNDING_TESTS_double): Remove.
10237 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10238 (ROUNDING_TESTS_double): Remove.
10239 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10240 (ROUNDING_TESTS_float): Remove.
10241 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10242 (ROUNDING_TESTS_float): Remove.
10243 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10244 (ROUNDING_TESTS_float): Remove.
10245 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10246 !TEST_MATHVEC here.
10247 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10248 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10249
10250 * sysdeps/generic/math-tests-rounding.h: New file.
10251 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10252 (ROUNDING_TESTS_float): Do not define here.
10253 (ROUNDING_TESTS_double): Likewise.
10254 (ROUNDING_TESTS_long_double): Likewise.
10255 (ROUNDING_TESTS_float128): Likewise.
10256 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10257 (ROUNDING_TESTS_double): Undefine before defining.
10258 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10259 (ROUNDING_TESTS_double): Undefine before defining.
10260 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10261 (ROUNDING_TESTS_double): Undefine before defining.
10262 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10263 (ROUNDING_TESTS_float): Undefine before defining.
10264 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10265 (ROUNDING_TESTS_float): Undefine before defining.
10266 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10267 (ROUNDING_TESTS_float): Undefine before defining.
10268 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10269 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10270 not define here.
10271 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10272 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10273 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10274 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10275 (ROUNDING_TESTS_float): Do not define here.
10276 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10277 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10278 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10279 (ROUNDING_TESTS_float): Likewise.
10280 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10281 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10282 * sysdeps/mips/math-tests.h [__mips_soft_float]
10283 (ROUNDING_TESTS_float): Likewise.
10284 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10285 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10286 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10287 (ROUNDING_TESTS_double): Likewise.
10288 (ROUNDING_TESTS_long_double): Likewise.
10289
10290 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10291
10292 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10293 (PF_XDP): New macro.
10294 (AF_XDP): New macro.
10295 (SOL_XDP): New macro.
10296
10297 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10298
10299 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10300 (TCP_INQ): Likewise.
10301 (TCP_CM_INQ): Likewise.
10302 (TCP_REPAIR_ON): Likewise.
10303 (TCP_REPAIR_OFF): Likewise.
10304 (TCP_REPAIR_OFF_NO_WP): Likewise.
10305 (struct tcp_zerocopy_receive): New type.
10306
10307 2018-08-21 Florian Weimer <fweimer@redhat.com>
10308
10309 * support/support.h (support_descriptor_supports_holes): Declare.
10310 * support/Makefile (libsupport-routines): Add
10311 support_descriptor_supports_holes.
10312 * support/support_descriptor_supports_holes.c: New file.
10313 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10314 and stop testing if holes are not supported.
10315 * io/test-lfs.c (do_prepare): Likewise.
10316 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10317 Likewise.
10318 * timezone/tst-tzset.c (create_tz_file): Likewise.
10319 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10320 variable.
10321 (do_prepare): Set it.
10322 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10323
10324 2018-08-21 Florian Weimer <fweimer@redhat.com>
10325
10326 [BZ #17248]
10327 * Makeconfig (+cflags): Do not sort (and deduplicate).
10328
10329 2018-08-21 Florian Weimer <fweimer@redhat.com>
10330
10331 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10332 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10333
10334 2018-08-20 Florian Weimer <fweimer@redhat.com>
10335
10336 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10337 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10338
10339 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10340
10341 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10342 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10343 and ssi_arch members.
10344
10345 * elf/elf.c (NT_VMCOREDD): New macro.
10346 (AT_MINSIGSTKSZ): Likewise.
10347
10348 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10349
10350 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10351 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10352 s_cosf-ppc64 and s_cosf-power8.
10353 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10354 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10355 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10356 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10357 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10358 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10360 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10361 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10363 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10364 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10365
10366 2018-08-17 Florian Weimer <fweimer@redhat.com>
10367
10368 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10369
10370 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10371
10372 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10373
10374 2018-08-16 Florian Weimer <fweimer@redhat.com>
10375
10376 * configure.ac: Add --with-nonshared-cflags option.
10377 * config.make.in (extra-nonshared-cflags): Set variable.
10378 * Makeconfig (CFLAGS-.oS): Use it.
10379 * manual/install.texi (Configuring and compiling): Document
10380 --with-nonshared-cflags.
10381 * configure: Regenerate.
10382 * INSTALL: Likewise.
10383
10384 2018-08-16 Florian Weimer <fweimer@redhat.com>
10385
10386 * Makeconfig (ASFLAGS): Always append required assembler flags.
10387
10388 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10389
10390 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10391 (malloc_consolidate): Likewise.
10392
10393 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10394
10395 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10396
10397 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10398
10399 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10400 every strlen call.
10401
10402 * benchtests/bench-strlen.c: Print performance numbers in json.
10403
10404 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10405
10406 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10407 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10408 only for little endian.
10409 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10410 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10411 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10412 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10413 Add check for little endian.
10414 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10415 (__strcmp_power9): Add check for little endian.
10416 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10417 Add check for little endian.
10418 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10419 (__strncmp_power9): Add check for little endian.
10420 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10421 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10422 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10423 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10424 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10425
10426 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10427
10428 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10429 [!STRLEN](STRLEN): Set to __strlen.
10430 * sysdeps/aarch64/multiarch/strlen.c: New file.
10431 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10432 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10433 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10434 (__libc_ifunc_impl_list): Add strlen.
10435 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10436 strlen_generic and strlen_asimd.
10437
10438 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10439
10440 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10441 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10442 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10443
10444 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10445
10446 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10447
10448 2018-08-14 Florian Weimer <fweimer@redhat.com>
10449
10450 [BZ #23519]
10451 * include/stdio.h (__vfxprintf): Declare.
10452 * stdio-common/fxprintf.c (__vfxprintf): New function.
10453 (__fxprintf): Call it.
10454 * misc/err.c (convert_and_print): Remove function.
10455 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10456 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10457 * misc/Makefile (tests): Add tst-warn-wide.
10458 * misc/tst-warn-wide.c: New file.
10459
10460 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10461 Szabolcs Nagy <szabolcs.nagy@arm.com>
10462
10463 * NEWS: Mention sinf, cosf, sincosf.
10464 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10465 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10466 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10467 constants rather than including generic sincosf.h.
10468 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10469 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10470 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10471 (reduced_cos): Remove.
10472 (sinf_poly): New function.
10473 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10474
10475 2018-08-14 Florian Weimer <fweimer@redhat.com>
10476
10477 [BZ #23521]
10478 [BZ #23522]
10479 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10480 processing, bail out if no room, and close the stream before
10481 returning ERANGE.
10482 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10483 (tst-nss-files-alias-leak): Link with libdl.
10484 (tst-nss-files-alias-leak.out): Depend on nss_files.
10485
10486 * nss/tst-nss-files-alias-leak.c: New file.
10487
10488 2018-08-14 Florian Weimer <fweimer@redhat.com>
10489
10490 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10491 server_user, stat_user.
10492
10493 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10494
10495 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10496 version to 4.18.
10497 (io_pgetevents): New syscall.
10498 (rseq): Likewise.
10499
10500 * manual/install.texi (Configuring and compiling): Do not list
10501 tools used for testing pretty printers here.
10502 (Tools for Compilation): List Python, PExpect and GDB here.
10503 Update descriptions of uses of Perl and Python.
10504 * INSTALL: Regenerate.
10505
10506 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10507 version to 4.18.
10508
10509 2018-08-13 Florian Weimer <fweimer@redhat.com>
10510
10511 * misc/error.c (error): Add missing va_end call.
10512 (error_at_line): Likewise.
10513
10514 2018-08-13 Florian Weimer <fweimer@redhat.com>
10515
10516 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10517
10518 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10519
10520 * benchtests/scripts/benchout.schema.json (properties): Add
10521 new properties.
10522
10523 * benchtests/bench-skeleton.c (main): Add duration and
10524 iterations attributes.
10525
10526 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10527
10528 regex: Gnulib unibyte RRI uses bytes not chars
10529 Adjust the non-glibc code to agree with what Gawk needs for
10530 rational range interpretation (RRI) for regular expression ranges.
10531 In unibyte locales, Gawk wants ranges to use the underlying byte
10532 rather than the character code point. This change does not affect
10533 glibc proper.
10534 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10535 In unibyte locales, use the byte value rather than
10536 running it through btowc.
10537
10538 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10539
10540 * sysdeps/generic/math-tests-snan.h: New file.
10541 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10542 (SNAN_TESTS_float): Do not define here.
10543 (SNAN_TESTS_double): Likewise.
10544 (SNAN_TESTS_long_double): Likewise.
10545 (SNAN_TESTS_float128): Likewise.
10546 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10547 * sysdeps/i386/fpu/math-tests.h: Remove file.
10548 * sysdeps/ia64/math-tests-snan.h: New file.
10549 * sysdeps/ia64/math-tests.h: Remove file.
10550 * sysdeps/x86/math-tests.h: Likewise.
10551 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10552
10553 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10554 Szabolcs Nagy <szabolcs.nagy@arm.com>
10555
10556 * math/Makefile: Add s_sincosf_data.c.
10557 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10558 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10559 (sincosf_poly): Likewise.
10560 (reduce_small): Likewise.
10561 (reduce_large): Likewise.
10562 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10563 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10564 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10565 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10566
10567 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10568 Szabolcs Nagy <szabolcs.nagy@arm.com>
10569
10570 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10571 (converttoint): Use lround.
10572 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10573 document the semantics when TOINT_INTRINSICS is set.
10574 (converttoint): Likewise.
10575 (TOINT_RINT): Remove.
10576 (TOINT_SHIFT): Remove.
10577 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10578 path.
10579
10580 2018-08-10 Florian Weimer <fweimer@redhat.com>
10581
10582 [BZ #23497]
10583 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10584 function.
10585 (__old_getdents64): Use getdents64. Convert entries without
10586 moving them.
10587 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10588 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10589 tst-readdir64-compat.
10590
10591 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10592
10593 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10594 Fix unwind.
10595
10596 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10597
10598 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10599 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10600 code to s390x-mcount.h and #include it.
10601 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10602 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10603 (__fentry__): Add.
10604
10605 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10606
10607 * stdlib/Versions: Remove __fentry__.
10608 * sysdeps/i386/Versions: Add __fentry__.
10609 * sysdeps/x86_64/Versions: Add __fentry__.
10610
10611 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10612
10613 * sysdeps/s390/Makefile: Register the new tests.
10614 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10615 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10616 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10617 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10618 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10619 * sysdeps/s390/tst-dl-runtime.c: New file.
10620
10621 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10622
10623 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10624 Do not clobber R0.
10625
10626 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10627
10628 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10629 Do not clobber R0.
10630
10631 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10632
10633 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10634 Do not clobber R0.
10635
10636 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10637
10638 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10639 Do not clobber R0.
10640
10641 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10642
10643 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10644 Use symbolic offsets for stack variables.
10645
10646 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10647
10648 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10649 Use symbolic offsets for stack variables.
10650
10651 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10652
10653 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10654 Use symbolic offsets for stack variables.
10655
10656 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10657
10658 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10659 Use symbolic offsets for stack variables.
10660
10661 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10662
10663 * math/gen-libm-test.py: New file.
10664 * math/gen-libm-test.pl: Remove.
10665 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10666 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10667 gen-libm-test.pl.
10668 ($(libm-test-c-noauto-obj)): Likewise.
10669 ($(libm-test-c-auto-obj)): Likewise.
10670 ($(libm-test-c-narrow-obj)): Likewise.
10671 (regen-ulps): Likewise.
10672 * math/README.libm-test: Update references to gen-libm-test.pl.
10673 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10674 referencing gen-libm-test.pl.
10675 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10676 * math/libm-test-support.c: Likewise.
10677 * math/libm-test-support.h: Likewise.
10678 * sysdeps/generic/libm-test-ulps: Likewise.
10679
10680 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10681
10682 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10683 Fix value.
10684
10685 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10686
10687 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10688 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10689
10690 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10691
10692 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10693 symbols.
10694 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10695 __pthread_setspecific): Add hidden proto.
10696 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10697 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10698
10699 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10700
10701 * benchtests/bench-string.h (buf1_size, buf2_size): New
10702 variables.
10703 (init_sizes): New function.
10704 (test_init): Use it.
10705 (alloc_buf, exit_error): New functions.
10706 (alloc_bufs): Use ALLOC_BUF.
10707 (realloc_bufs): Remove.
10708 * benchtests/bench-memcmp.c (do_test): Adjust.
10709 * benchtests/bench-memset-large.c (do_test): Likewise.
10710 * benchtests/bench-memset-walk.c (do_test): Likewise.
10711 * benchtests/bench-memset.c (do_test): Likewise.
10712 * benchtests/bench-strncmp.c (do_test): Likewise.
10713
10714 2018-08-06 Andreas Schwab <schwab@suse.de>
10715
10716 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10717 of CONST_THREAD_AREA.
10718
10719 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10720
10721 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10722 (STATE_SAVE_MASK): Likewise.
10723 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10724 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10725 (STATE_SAVE_MASK): Likewise.
10726 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10727 instead of <cpu-features.h>.
10728
10729 2018-08-03 DJ Delorie <dj@redhat.com>
10730
10731 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10732 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10733
10734 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10735
10736 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10737
10738 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10739 after TEST_* calls.
10740 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10741 * math/libm-test-logb.inc (logb_test_data): Likewise.
10742
10743 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10744
10745 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10746 * string/strstr.c (AVAILABLE): Likewise.
10747
10748 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10749
10750 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10751 <init-arch.h>.
10752 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10753 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10754 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10755
10756 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10757
10758 * po/be.po: Update translation.
10759
10760 * po/be.po: Update translation.
10761
10762 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10763
10764 * sysdeps/x86/cpu-features-offsets.sym
10765 (rtld_global_ro_offsetof): Removed.
10766 (CPU_FEATURES_SIZE): Likewise.
10767 (CPUID_OFFSET): Likewise.
10768 (CPUID_SIZE): Likewise.
10769 (CPUID_EAX_OFFSET): Likewise.
10770 (CPUID_EBX_OFFSET): Likewise.
10771 (CPUID_ECX_OFFSET): Likewise.
10772 (CPUID_EDX_OFFSET): Likewise.
10773 (FAMILY_OFFSET): Likewise.
10774 (MODEL_OFFSET): Likewise.
10775 (FEATURE_OFFSET): Likewise.
10776 (FEATURE_SIZ): Likewise.
10777 (COMMON_CPUID_INDEX_1): Likewise.
10778 (COMMON_CPUID_INDEX_7): Likewise.
10779 (FEATURE_INDEX_1): Likewise.
10780 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10781
10782 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10783
10784 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10785 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10786 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10787 (install-locales): Depend on install-locale-archive.
10788 (install-locale-archive): Define.
10789 (install-locale-files): Define.
10790 (build-one-locale): Define macro.
10791 * manual/install.texi (Running make install): Document.
10792 * manual/INSTALL: Regenerate.
10793
10794 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10795
10796 * benchtests/scripts/compare_strings.py: Import traceback.
10797 (parse_file): Pretty-print error.
10798
10799 * NEWS: Mention the change.
10800 * elf/dl-tunables.list: Rename tune namespace to cpu.
10801 * sysdeps/powerpc/dl-tunables.list: Likewise.
10802 * sysdeps/x86/dl-tunables.list: Likewise.
10803 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10804 cpu.name.
10805 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10806 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10807 * manual/README.tunables: Likewise.
10808 * manual/tunables.texi: Likewise.
10809 * sysdeps/powerpc/cpu-features.c: Likewise.
10810 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10811 (init_cpu_features): Likewise.
10812 * sysdeps/x86/cpu-features.c: Likewise.
10813 * sysdeps/x86/cpu-features.h: Likewise.
10814 * sysdeps/x86/cpu-tunables.c: Likewise.
10815 * sysdeps/x86_64/Makefile: Likewise.
10816 * sysdeps/x86/dl-cet.c: Likewise.
10817
10818 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10819
10820 [BZ #23479]
10821 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10822 [__mips_hard_float].
10823 (FE_UNDERFLOW): Likewise.
10824 (FE_OVERFLOW): Likewise.
10825 (FE_DIVBYZERO): Likewise.
10826 (FE_INVALID): Likewise.
10827 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10828 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10829 (FE_UPWARD): Likewise.
10830 (FE_DOWNWARD): Likewise.
10831 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10832 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10833 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10834 [__mips_hard_float].
10835 (FP_ROUNDMODE): Likewise.
10836 (FP_RND_NEAREST): Likewise.
10837 (FP_RND_ZERO): Likewise.
10838 (FP_RND_PINF): Likewise.
10839 (FP_RND_MINF): Likewise.
10840 (FP_EX_INVALID): Likewise.
10841 (FP_EX_OVERFLOW): Likewise.
10842 (FP_EX_UNDERFLOW): Likewise.
10843 (FP_EX_DIVZERO): Likewise.
10844 (FP_EX_INEXACT): Likewise.
10845 (FP_INIT_ROUNDMODE): Likewise.
10846 * sysdeps/mips/nofpu/fesetenv.c: New file.
10847 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10848
10849 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10850
10851 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10852 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10853 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10854 conditional on [FE_UPWARD].
10855
10856 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10857
10858 regex: fix memory leak in Gnulib
10859 Problem and fix reported by Assaf Gordon in:
10860 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10861 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10862 range_ends members too, as they are defined in 'struct
10863 re_charset_t' even if not _LIBC. This affects only Gnulib.
10864
10865 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10866
10867 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10868 ...
10869 (get_common_indices): This.
10870 (init_cpu_features): Updated.
10871
10872 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10873
10874 * sysdeps/generic/math-tests-snan-payload.h: New file.
10875 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10876 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10877 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10878 * sysdeps/generic/math-tests.h: Include
10879 <math-tests-snan-payload.h>.
10880 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10881 * sysdeps/hppa/math-tests.h: Remove file.
10882 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10883 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10884 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10885 Likewise.
10886
10887 * sysdeps/generic/math-tests-snan-cast.h: New file.
10888 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10889 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10890 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10891 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10892
10893 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10894
10895 * version.h (RELEASE): Set to "development".
10896 (VERSION): Set to "2.28.9000".
10897 * NEWS (2.29): New section.
10898
10899 * version.h (RELEASE): Set to "stable".
10900 (VERSION): Set to "2.28".
10901 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10902 * NEWS: Add the list of bugs fixed in 2.28.
10903
10904 * po/ca.po: Update to latest version.
10905 * po/cs.po: Likewise
10906 * po/da.po: Likewise
10907 * po/el.po: Likewise
10908 * po/eo.po: Likewise
10909 * po/es.po: Likewise
10910 * po/fi.po: Likewise
10911 * po/fr.po: Likewise
10912 * po/gl.po: Likewise
10913 * po/hu.po: Likewise
10914 * po/ia.po: Likewise
10915 * po/id.po: Likewise
10916 * po/it.po: Likewise
10917 * po/ja.po: Likewise
10918 * po/ko.po: Likewise
10919 * po/lt.po: Likewise
10920 * po/nb.po: Likewise
10921 * po/nl.po: Likewise
10922 * po/pt_BR.po: Likewise
10923 * po/ru.po: Likewise
10924 * po/rw.po: Likewise
10925 * po/sk.po: Likewise
10926 * po/sl.po: Likewise
10927 * po/tr.po: Likewise
10928 * po/zh_CN.po: Likewise
10929 * po/zh_TW.po: Likewise
10930
10931 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10932
10933 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10934 initialization...
10935 (init): ... before initializing libpthread.
10936
10937 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10938 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10939 (__mach_setup_tls): ... new function.
10940 (mach_setup_tls): New alias.
10941 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10942 __mach_setup_thread.
10943 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10944 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10945 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10946 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10947
10948 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10949
10950 * manual/install.texi: Update versions.
10951 * INSTALL: Regenerate.
10952
10953 * manual/contrib.texi (Contributors): Update contributions.
10954
10955 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10956
10957 * po/be.po: Update translations.
10958
10959 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10960
10961 * sysdeps/sh/libm-test-ulps: Update.
10962
10963 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10964
10965 * po/bg.po: Update translations.
10966 * po/de.po: Likewise.
10967 * po/hr.po: Likewise.
10968 * po/pt_BR.po: Likewise.
10969 * po/sv.po: Likewise.
10970 * po/vi.po: Likewise.
10971
10972 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10973
10974 [BZ #23467]
10975 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10976 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10977 (CFLAGS-tst-cet-property-1.o): New.
10978 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10979 ($(objpfx)tst-cet-property-2): Likewise.
10980 ($(objpfx)tst-cet-property-2.out): Likewise.
10981 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10982 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10983 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10984 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10985 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10986
10987 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10988
10989 [BZ #23458]
10990 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10991
10992 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10993
10994 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10995 __sbrk): Do not set attribute_hidden.
10996 * sysdeps/mach/hurd/not-errno.h: New file.
10997 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10998 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10999
11000 2018-07-27 Carlos O'Donell <carlos@redhat.com>
11001
11002 * po/uk.po: Update translations.
11003 * po/cs.po: Likewise.
11004 * po/pl.po: Likewise.
11005
11006 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
11007
11008 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
11009 parse beyond the note end.
11010
11011 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11012
11013 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
11014 kernel does not support OFD locks.
11015 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
11016
11017 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
11018
11019 * sysdeps/mach/hurd/Versions (libc): Make __access and
11020 __access_noerrno external so they can override the ld symbols.
11021 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
11022 __writev, __open64, __access_noerrno extern so they can be overrided.
11023 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
11024 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
11025
11026 2018-07-26 Carlos O'Donell <carlos@redhat.com>
11027
11028 * po/libc.pot: Regenerate.
11029
11030 2018-07-26 Joseph Myers <joseph@codesourcery.com>
11031
11032 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
11033
11034 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11035
11036 [BZ #23459]
11037 * sysdeps/x86/cpu-features.c (get_extended_indices): New
11038 function.
11039 (init_cpu_features): Call get_extended_indices for both Intel
11040 and AMD CPUs.
11041 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
11042 Remove "for AMD" comment.
11043
11044 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
11045
11046 [BZ # 23456]
11047 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
11048 COMMON_CPUID_INDEX_80000001.
11049
11050 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
11051
11052 * string/tst-xbzero-opt.c (use_test_buffer): New function.
11053 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
11054
11055 2018-07-26 Florian Weimer <fweimer@redhat.com>
11056
11057 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
11058 aliases for symbols not in the implementation namespace.
11059
11060 2018-07-25 Carlos O'Donell <carlos@redhat.com>
11061
11062 [BZ #23393]
11063 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
11064 lowercase in LATIN script.
11065 * localedata/Makefile (test-input): Add en_US.UTF-8.
11066 * localedata/en_US.UTF-8.in: New file.
11067 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
11068 and restore old tests.
11069 * posix/tst-regexloc.c (do_test): Add back range expression test.
11070
11071 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11072
11073 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
11074
11075 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11076
11077 * nptl/threads.h: Move to ...
11078 * sysdeps/nptl/threads.h: ... here.
11079 * sysdeps/hurd/stdc-predef.h: New file.
11080
11081 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11082
11083 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
11084 tst-cet-setcontext-1 if CET is enabled.
11085 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
11086 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
11087
11088 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11089
11090 * include/threads.h: Move to ...
11091 * sysdeps/nptl/threads.h: ... here.
11092 * sysdeps/htl/threads.h: New file.
11093 * conform/Makefile (linknamespace-libs-ISO11): Use
11094 static-thread-library instead of linking libpthread.
11095 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
11096
11097 2018-07-25 Florian Weimer <fweimer@redhat.com>
11098
11099 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
11100 nanoseconds into seconds.
11101 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
11102 (do_test): Likewise.
11103 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
11104 (do_test): Likewise. Avoid nanosecond overflow and spurious
11105 timeouts due to system load.
11106 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
11107 (child_wait): Increment it.
11108 (do_test): Wait as long as necessary until all expected threads
11109 have arrived.
11110
11111 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
11112 H.J. Lu <hongjiu.lu@intel.com>
11113
11114 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
11115 __ssp.
11116 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
11117 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
11118 (__push___start_context): New.
11119 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
11120 <asm/prctl.h>.
11121 (__getcontext): Record the current shadow stack base. Save the
11122 caller's shadow stack pointer and base.
11123 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
11124 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
11125 (__push___start_context): New prototype.
11126 (__makecontext): Call __push___start_context to allocate a new
11127 shadow stack, push __start_context onto the new stack as well
11128 as the new shadow stack.
11129 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
11130 <asm/prctl.h>.
11131 (__setcontext): Restore the target shadow stack.
11132 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
11133 <asm/prctl.h>.
11134 (__swapcontext): Record the current shadow stack base. Save
11135 the caller's shadow stack pointer and base. Restore the target
11136 shadow stack.
11137 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
11138 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
11139 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
11140
11141 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11142
11143 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
11144 tst-setcontext8 and tst-setcontext9.
11145 * stdlib/tst-setcontext6.c: New file.
11146 * stdlib/tst-setcontext7.c: Likewise.
11147 * stdlib/tst-setcontext8.c: Likewise.
11148 * stdlib/tst-setcontext9.c: Likewise.
11149
11150 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11151
11152 * stdlib/Makefile ((tests): Add tst-setcontext5.
11153 * stdlib/tst-setcontext5.c: New file.
11154
11155 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11156
11157 * stdlib/Makefile (tests): Add tst-setcontext4.
11158 * stdlib/tst-setcontext4.c: New file.
11159
11160 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11161
11162 * stdlib/Makefile (tests): Add tst-swapcontext1.
11163 * stdlib/tst-swapcontext1.c: New test.
11164
11165 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11166
11167 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11168 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11169 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11170 and tst-cet-legacy-4c.
11171 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11172 and tst-cet-legacy-mod-4.
11173 (CFLAGS-tst-cet-legacy-2.c): New.
11174 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11175 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11176 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11177 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11178 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11179 ($(objpfx)tst-cet-legacy-1): Likewise.
11180 ($(objpfx)tst-cet-legacy-2): Likewise.
11181 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11182 ($(objpfx)tst-cet-legacy-2a): Likewise.
11183 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11184 ($(objpfx)tst-cet-legacy-4): Likewise.
11185 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11186 ($(objpfx)tst-cet-legacy-4a): Likewise.
11187 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11188 (tst-cet-legacy-4a-ENV): Likewise.
11189 ($(objpfx)tst-cet-legacy-4b): Likewise.
11190 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11191 (tst-cet-legacy-4b-ENV): Likewise.
11192 ($(objpfx)tst-cet-legacy-4c): Likewise.
11193 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11194 (tst-cet-legacy-4c-ENV): Likewise.
11195 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11196 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11197 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11198 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11199 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11200 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11201 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11202 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11203 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11204 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11205 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11206
11207 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11208
11209 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11210 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11211 with ssp_base.
11212 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11213 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11214 with ssp_base.
11215
11216 2018-07-25 Andreas Schwab <schwab@suse.de>
11217
11218 [BZ #23442]
11219 * locale/weightwc.h (findidx): Handle the case where usrc is a
11220 prefix of cp but one character too short.
11221
11222 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11223
11224 * NEWS: Add ISO C threads addition.
11225
11226 2018-07-24 Florian Weimer <fweimer@redhat.com>
11227
11228 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11229 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11230 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11231 4.13.
11232
11233 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11234
11235 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11236 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11237 <sys/prctl.h> and <asm/prctl.h>.
11238 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11239 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11240 and <asm/prctl.h>.
11241 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11242 ARCH_CET_LEGACY_BITMAP.
11243 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11244 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11245 * sysdeps/x86/libc-start.c: Include <startup.h>.
11246
11247 2018-07-24 Florian Weimer <fweimer@redhat.com>
11248
11249 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11250 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11251
11252 2018-07-24 Rical Jasan <rj@2c3t.io>
11253 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11254 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11255
11256 [BZ #14092]
11257 * manual/debug.texi: Update adjacent chapter name.
11258 * manual/probes.texi: Likewise.
11259 * manual/threads.texi (ISO C Threads): New section.
11260 (POSIX Threads): Convert to a section.
11261
11262 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11263 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11264
11265 [BZ# 14092]
11266 * nptl/Makefile (tests): Add new test files.
11267 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11268 * nptl/tst-cnd-basic.c: Likewise.
11269 * nptl/tst-cnd-broadcast.c: Likewise.
11270 * nptl/tst-cnd-timedwait.c: Likewise.
11271 * nptl/tst-mtx-basic.c: Likewise.
11272 * nptl/tst-mtx-recursive.c: Likewise.
11273 * nptl/tst-mtx-timedlock.c: Likewise.
11274 * nptl/tst-mtx-trylock.c: Likewise.
11275 * nptl/tst-thrd-basic.c: Likewise.
11276 * nptl/tst-thrd-detach.c: Likewise.
11277 * nptl/tst-thrd-sleep.c: Likewise.
11278 * nptl/tst-tss-basic.c: Likewise.
11279
11280 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11281
11282 [BZ #14092]
11283 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11284 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11285 symbols.
11286 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11287 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11288 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11289 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11290 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11291 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11292 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11293 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11294 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11295 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11296 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11297 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11298 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11299 Likewise.
11300 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11301 Likewise.
11302 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11303 Likewise.
11304 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11305 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11306 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11307 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11308 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11309 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11310 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11311 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11312 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11313 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11314 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11315 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11316 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11317 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11318 Likewise.
11319 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11320 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11321 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11322 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11323 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11324 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11325 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11326 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11327 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11328 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11329 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11330 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11331 ikewise.
11332 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11333 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11334 Likewise.
11335 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11336 Likewise.
11337 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11338 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11339 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11340 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11341 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11342 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11343 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11344 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11345
11346 [BZ #14092]
11347 * conform/data/threads.h-data (thread_local): New macro.
11348 (TSS_DTOR_ITERATIONS): Likewise.
11349 (tss_t): New type.
11350 (tss_dtor_t): Likewise.
11351 (tss_create): New function.
11352 (tss_get): Likewise.
11353 (tss_set): Likewise.
11354 (tss_delete): Likewise.
11355 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11356 tss_get, and tss_set objects.
11357 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11358 * nptl/tss_create.c: New file.
11359 * nptl/tss_delete.c: Likewise.
11360 * nptl/tss_get.c: Likewise.
11361 * nptl/tss_set.c: Likewise.
11362 * sysdeps/nptl/threads.h (thread_local): New define.
11363 (TSS_DTOR_ITERATIONS): Likewise.
11364 (tss_t): New typedef.
11365 (tss_dtor_t): Likewise.
11366 (tss_create): New prototype.
11367 (tss_get): Likewise.
11368 (tss_set): Likewise.
11369 (tss_delete): Likewise.
11370
11371 [BZ #14092]
11372 * conform/data/threads.h-data (cnd_t): New type.
11373 (cnd_init): New function.
11374 (cnd_signal): Likewise.
11375 (cnd_broadcast): Likewise.
11376 (cnd_wait): Likewise.
11377 (cnd_timedwait): Likewise.
11378 (cnd_destroy): Likewise.
11379 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11380 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11381 object.
11382 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11383 * nptl/cnd_broadcast.c: New file.
11384 * nptl/cnd_destroy.c: Likewise.
11385 * nptl/cnd_init.c: Likewise.
11386 * nptl/cnd_signal.c: Likewise.
11387 * nptl/cnd_timedwait.c: Likewise.
11388 * nptl/cnd_wait.c: Likewise.
11389 * sysdeps/nptl/threads.h (cnd_t): New type.
11390 (cnd_init): New prototype.
11391 (cnd_signa): Likewise.
11392 (cnd_broadcast): Likewise.
11393 (cnd_wait): Likewise.
11394 (cnd_timedwait): Likewise.
11395 (cnd_destroy): Likewise.
11396
11397 [BZ #14092]
11398 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11399 (once_flag): New type.
11400 (call_once): New function.
11401 * nptl/Makefile (libpthread-routines): Add call_once object.
11402 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11403 * nptl/call_once.c: New file.
11404 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11405 (once_flag): New type.
11406 (call_once): New prototype.
11407
11408 [BZ #14092]
11409 * conform/data/threads.h-data (mtx_plain): New constant.
11410 (mtx_recursive): Likewise.
11411 (mtx_timed): Likewise.
11412 (mtx_t): New type.
11413 (mtx_init): New function.
11414 (mtx_lock): Likewise.
11415 (mtx_timedlock): Likewise.
11416 (mtx_trylock): Likewise.
11417 (mtx_unlock): Likewise.
11418 (mtx_destroy): Likewise.
11419 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11420 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11421 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11422 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11423 * nptl/mtx_destroy.c: New file.
11424 * nptl/mtx_init.c: Likewise.
11425 * nptl/mtx_lock.c: Likewise.
11426 * nptl/mtx_timedlock.c: Likewise.
11427 * nptl/mtx_trylock.c: Likewise.
11428 * nptl/mtx_unlock.c: Likewise.
11429 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11430 (mtx_recursive): Likewise.
11431 (mtx_timed): Likewise.
11432 (mtx_t): New type.
11433 (mtx_init): New prototype.
11434 (mtx_lock): Likewise.
11435 (mtx_timedlock): Likewise.
11436 (mtx_trylock): Likewise.
11437 (mtx_unlock): Likewise.
11438 (mtx_destroy): Likewise.
11439
11440 [BZ #14092]
11441 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11442 (linknamespace-libs-ISO11): Add libpthread.a.
11443 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11444 functions.
11445 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11446 * nptl/Makefile (headers): Add threads.h.
11447 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11448 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11449 thrd_yield.
11450 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11451 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11452 thrd_join, thrd_sleep, and thrd_yield symbols.
11453 * nptl/descr.h (struct pthread): Add c11 field.
11454 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11455 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11456 routine with expected function prototype.
11457 (__pthread_create_2_1): Add C11 threads check based on attribute
11458 value.
11459 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11460 * nptl/thrd_create.c: New file.
11461 * nptl/thrd_current.c: Likewise.
11462 * nptl/thrd_detach.c: Likewise.
11463 * nptl/thrd_equal.c: Likewise.
11464 * nptl/thrd_exit.c: Likewise.
11465 * nptl/thrd_join.c: Likewise.
11466 * nptl/thrd_priv.h: Likewise.
11467 * nptl/thrd_sleep.c: Likewise.
11468 * nptl/thrd_yield.c: Likewise.
11469 * include/threads.h: Likewise.
11470
11471 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11472
11473 * bits/indirect-return.h: New file.
11474 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11475 * sysdeps/x86/bits/indirect-return.h: Likewise.
11476 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11477 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11478 (swapcontext): Add __INDIRECT_RETURN.
11479 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11480 (prepare_test_buffer): Use it.
11481
11482 2018-07-24 Andreas Schwab <schwab@suse.de>
11483
11484 [BZ #23448]
11485 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11486 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11487
11488 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11491 Redefine if shadow stack is enabled.
11492 (SYSCALL_ERROR_LABEL): Likewise.
11493 (__vfork): Pop shadow stack and jump back to to caller directly
11494 when shadow stack is in use.
11495 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11496 Redefine if shadow stack is enabled.
11497 (SYSCALL_ERROR_LABEL): Likewise.
11498 (__vfork): Pop shadow stack and jump back to to caller directly
11499 when shadow stack is in use.
11500
11501 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11502
11503 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11504 enabled.
11505 (foo): Likewise.
11506 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11507 (foo): Likewise.
11508
11509 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11510
11511 * scripts/build-many-glibcs.py (Context.checkout): Default
11512 binutils version to 2.31 branch.
11513
11514 2018-07-20 Zong Li <zong@andestech.com>
11515
11516 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11517 URL of gcc's tarball.
11518
11519 2018-07-20 Florian Weimer <fweimer@redhat.com>
11520
11521 [BZ #23396]
11522 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11523 not compare an extra byte after the end of the weights.
11524
11525 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11526
11527 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11528 to 1.
11529 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11530 hidden prototypes.
11531 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11532 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11533 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11534 list of libraries whose stack executability is expected.
11535 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11536 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11537 variable.
11538 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11539 libc.so libpthread.so.
11540
11541 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11542
11543 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11544 SOCK_NONBLOCK.
11545 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11546 and SOCK_NONBLOCK.
11547 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11548 implement __pipe2.
11549 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11550
11551 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11552
11553 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11554 library to improve command line parsing.
11555 (__main__): make schema file as optional parameter (--schema),
11556 defaulting to benchtests/scripts/benchout.schema.json.
11557 (main): move out of the parsing stuff to __main_  and leave it
11558 only as caller of main comparison functions.
11559
11560 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11561
11562 * NEWS: Add a note for Intel CET status.
11563 * manual/install.texi: Likewise.
11564 * INSTALL: Regenerated.
11565
11566 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11567
11568 [BZ #23140]
11569 * localedata/locales/oc_FR (mon): Rename to...
11570 (alt_mon): This, then update October (typo fix).
11571 (mon): New content (genitive case, month names preceded by
11572 "de" or "d’").
11573
11574 [BZ #23422]
11575 * localedata/locales/oc_FR (abday): Update all items.
11576 (day): Update Wednesday and Saturday (typo fixes).
11577 (abmon): Update all items, except May.
11578 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11579 (LC_IDENTIFICATION): Bump the revision number and date.
11580 Keep the "category" entries in alphabetic order.
11581 (LC_ADDRESS): Remove no longer needed comment.
11582 (LC_COLLATE): Use “copy "ca_ES"”.
11583 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11584 "name_mrs".
11585
11586 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11587
11588 * grp/tst_fgetgrent.c: Include <unistd.h>.
11589 (main): Use mkstemp instead of tmpnam.
11590 * io/test-utime.c (main): Likewise.
11591 * posix/annexc.c (macrofile): Change to modifiable array.
11592 (main): Remove macrofile here.
11593 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11594 macrofile here.
11595 (check_header): Do not remove macrofile here.
11596 * posix/bug-getopt1.c: Include <stdlib.h>.
11597 (do_test): Use mkstemp instead of tmpnam.
11598 * posix/bug-getopt2.c: Include <stdlib.h>.
11599 (do_test): Use mkstemp instead of tmpnam.
11600 * posix/bug-getopt3.c: Include <stdlib.h>.
11601 (do_test): Use mkstemp instead of tmpnam.
11602 * posix/bug-getopt4.c: Include <stdlib.h>.
11603 (do_test): Use mkstemp instead of tmpnam.
11604 * posix/bug-getopt5.c: Include <stdlib.h>.
11605 (do_test): Use mkstemp instead of tmpnam.
11606 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11607 (main): Use mkstemp instead of tmpnam.
11608 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11609 (main): Use mkstemp instead of tmpnam.
11610 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11611 (main): use mkstemp instead of tmpnam.
11612 * stdlib/isomac.c (macrofile): Change to modifiable array.
11613 (main): Remove macrofile here.
11614 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11615 macrofile here.
11616 (check_header): Do not remove macrofile here.
11617
11618 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11619
11620 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11621 glibc.tune.x86_shstk.
11622
11623 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11624
11625 * NEWS: Mention --enable-cet.
11626 * manual/install.texi: Document --enable-cet.
11627 * INSTALL: Regenerated.
11628
11629 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11630
11631 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11632 Add _CET_NOTRACK before indirect jump to jump table.
11633
11634 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11635
11636 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11637 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11638 to jump table.
11639
11640 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11641
11642 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11643 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11644 to jump table.
11645
11646 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11647
11648 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11649 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11650 to jump table.
11651
11652 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11653
11654 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11655 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11656 to jump table.
11657
11658 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11659
11660 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11661 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11662 to jump table.
11663 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11664
11665 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11666
11667 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11668 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11669 to jump table.
11670
11671 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11672
11673 * sysdeps/i386/i686/multiarch/memset-sse2.S
11674 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11675 to jump table.
11676
11677 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11678
11679 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11680 indirect jump to jump table.
11681
11682 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11683
11684 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11685 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11686 to jump table.
11687 (MEMCPY): Likewise.
11688
11689 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11690
11691 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11692 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11693 to jump table.
11694 (MEMCPY): Likewise.
11695
11696 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11697
11698 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11699 _CET_NOTRACK before indirect jump to jump table.
11700
11701 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11702
11703 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11704 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11705 to jump table.
11706
11707 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11708
11709 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11710 indirect jump to jump table.
11711
11712 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11713
11714 [BZ #22241]
11715 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11716 (LOCALES): Likewise.
11717 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11718 * localedata/locales/sah_RU: New file.
11719 * localedata/sah_RU.UTF-8.in: New file.
11720
11721 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11722
11723 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11724 "sysdep.h".
11725 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11726 _CET_ENDBR to indirect jump targets and adjust jump destination
11727 for _CET_ENDBR.
11728 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11729 "sysdep.h".
11730 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11731 _CET_ENDBR to indirect jump targets and adjust jump destination
11732 for _CET_ENDBR.
11733 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11734 "sysdep.h".
11735 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11736 _CET_ENDBR to indirect jump targets and adjust jump destination
11737 for _CET_ENDBR.
11738
11739 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11740
11741 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11742 _CET_ENDBR.
11743
11744 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11745
11746 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11747 _CET_ENDBR.
11748 (_dl_tlsdesc_undefweak): Likewise.
11749 (_dl_tlsdesc_dynamic): Likewise.
11750 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11751 (_dl_tlsdesc_resolve_rel): Likewise.
11752 (_dl_tlsdesc_resolve_rela): Likewise.
11753 (_dl_tlsdesc_resolve_hold): Likewise.
11754 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11755 (_dl_tlsdesc_undefweak): Likewise.
11756 (_dl_tlsdesc_dynamic): Likewise.
11757 (_dl_tlsdesc_resolve_rela): Likewise.
11758 (_dl_tlsdesc_resolve_hold): Likewise.
11759
11760 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11761
11762 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11763 (_fini): Likewise.
11764 * sysdeps/x86_64/crti.S (_init): Likewise.
11765 (_fini): Likewise.
11766
11767 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11768
11769 [BZ #23140]
11770 * localedata/locales/os_RU (mon): Rename to...
11771 (alt_mon): This.
11772 (mon): Import from CLDR (genitive case).
11773
11774 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11775
11776 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11777 cet-tunables.h> when CET is enabled.
11778
11779 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11780
11781 [BZ #21598]
11782 * configure.ac: Add --enable-cet.
11783 * configure: Regenerated.
11784 * elf/Makefille (all-built-dso): Add a comment.
11785 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11786 Include <dl-prop.h>.
11787 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11788 segment.
11789 * elf/dl-open.c: Include <dl-prop.h>.
11790 (dl_open_worker): Call _dl_open_check.
11791 * elf/rtld.c: Include <dl-prop.h>.
11792 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11793 _rtld_main_check.
11794 * sysdeps/generic/dl-prop.h: New file.
11795 * sysdeps/i386/dl-cet.c: Likewise.
11796 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11797 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11798 * sysdeps/x86/cet-tunables.h: Likewise.
11799 * sysdeps/x86/check-cet.awk: Likewise.
11800 * sysdeps/x86/configure: Likewise.
11801 * sysdeps/x86/configure.ac: Likewise.
11802 * sysdeps/x86/dl-cet.c: Likewise.
11803 * sysdeps/x86/dl-procruntime.c: Likewise.
11804 * sysdeps/x86/dl-prop.h: Likewise.
11805 * sysdeps/x86/libc-start.h: Likewise.
11806 * sysdeps/x86/link_map.h: Likewise.
11807 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11808 _CET_ENDBR.
11809 (_dl_runtime_profile): Likewise.
11810 (_dl_runtime_resolve_shstk): New.
11811 (_dl_runtime_profile_shstk): Likewise.
11812 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11813 if CET is enabled.
11814 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11815 (CFLAGS-.os): Likewise.
11816 (CFLAGS-.op): Likewise.
11817 (CFLAGS-.oS): Likewise.
11818 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11819 is enabled.
11820 (tests-special): Add $(objpfx)check-cet.out.
11821 (cet-built-dso): New.
11822 (+$(cet-built-dso:=.note)): Likewise.
11823 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11824 ($(objpfx)check-cet.out): New.
11825 (generated): Add check-cet.out.
11826 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11827 <cet-tunables.h>.
11828 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11829 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11830 (init_cpu_features): Call get_cet_status to check CET status
11831 and update dl_x86_feature_1 with CET status. Call
11832 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11833 (set_x86_shstk). Disable and lock CET in libc.a.
11834 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11835 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11836 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11837 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11838 (_CET_ENDBR): Define if not defined.
11839 (ENTRY): Add _CET_ENDBR.
11840 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11841 x86_shstk.
11842 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11843 _CET_ENDBR.
11844 (_dl_runtime_profile): Likewise.
11845
11846 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11847
11848 [BZ #21895]
11849 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11850 restore r2 on longjmp.
11851 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11852 test list.
11853 Added rules to build test tst-setjmp-bug21895-static.
11854 Added module setjmp-bug21895 and rules to build a shared object from it.
11855 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11856 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11857
11858 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11859
11860 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11861 * benchtests/bench-strstr.c: Likewise.
11862 * string/memmem.c (FASTSEARCH): Define.
11863 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11864 Add support for FASTSEARCH.
11865 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11866 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11867 (FASTSEARCH): Define.
11868 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11869 * string/test-strstr.c: Likewise.
11870
11871 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11872
11873 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11874 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11875
11876 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11877 H.J. Lu <hongjiu.lu@intel.com>
11878
11879 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11880 (__longjmp): Restore shadow stack pointer if shadow stack is
11881 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11882 isn't defined for __longjmp_cancel.
11883 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11884 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11885 and SHADOW_STACK_POINTER_OFFSET is defined.
11886 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11887 (setjmp): Save shadow stack pointer if shadow stack is enabled
11888 and SHADOW_STACK_POINTER_OFFSET is defined.
11889 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11890 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11891 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11892 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11893 <jmp_buf-ssp.h>.
11894 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11895 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11896 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11897 Remove jmp_buf-ssp.sym.
11898 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11899 <jmp_buf-ssp.h>.
11900 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11901 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11902 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11903 jmp_buf-ssp.sym.
11904 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11905 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11906 (__longjmp): Restore shadow stack pointer if shadow stack is
11907 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11908 isn't defined for __longjmp_cancel.
11909 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11910 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11911 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11912
11913 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11914
11915 [BZ #22563]
11916 * nptl/pthread_create.c: Include <tls-setup.h>.
11917 (__pthread_create_2_1): Call tls_setup_tcbhead.
11918 * sysdeps/generic/tls-setup.h: New file.
11919 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11920 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11921 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11922 Likewise.
11923 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11924 to feature_1.
11925 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11926 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11927 (X86_FEATURE_1_SHSTK): Likewise.
11928 (CET_ENABLED): Likewise.
11929 (IBT_ENABLED): Likewise.
11930 (SHSTK_ENABLED): Likewise.
11931
11932 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11933
11934 [BZ #23208]
11935 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11936 (LOCALES): Likewise.
11937 * localedata/dsb_DE.UTF-8.in: New file.
11938 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11939
11940 2018-07-12 Florian Weimer <fweimer@redhat.com>
11941
11942 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11943 __mprotect, not mprotect.
11944
11945 2018-07-11 Florian Weimer <fweimer@redhat.com>
11946
11947 * io/Makefile (headers): Add bits/statx.h.
11948
11949 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11950
11951 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11952 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11953 and headers.
11954 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11955 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11956 for utf8_gen.py
11957
11958 2018-07-10 Florian Weimer <fweimer@redhat.com>
11959
11960 * io/Makefile (routines): Add statx.
11961 (tests-internal): Add tst-statx.
11962 * io/Versions (GLIBC_2.28): Export statx.
11963 * io/bits/statx.h: New file.
11964 * io/sys/stat.h [__USE_GNU]: Include it.
11965 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11966 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11967 Define.
11968 * io/statx.c: New file.
11969 * io/statx_generic.: Likewise.
11970 * io/tst-statx.: Likewise.
11971 * include/bits/statx.h: Likewise.
11972 * sysdeps/unix/sysv/linux/kernel-features.h
11973 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11974 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11975 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11976 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11977 Undefine.
11978 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11979 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11980 * sysdeps/unix/sysv/linux/statx.c: New file.
11981 * manual/filesys.texi: Note that statx is undocumented.
11982 * sysdeps/**/libc*.abilist: Update.
11983
11984 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11985
11986 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11987 a kernel issue which lead to test failure in some cases.
11988
11989 2018-07-10 Florian Weimer <fweimer@redhat.com>
11990
11991 [BZ #23036]
11992 * posix/regexec.c (check_node_accept_bytes): When comparing
11993 weights, do not compare an extra byte after the end of the
11994 weights.
11995
11996 2018-07-10 Florian Weimer <fweimer@redhat.com>
11997
11998 * libio/readline.c: Fix copyright year.
11999 * libio/tst-readline.c Likewise.
12000 * nss/tst-nss-files-hosts-getent.c: Likewise.
12001
12002 2018-07-06 Florian Weimer <fweimer@redhat.com>
12003
12004 [BZ #18991]
12005 * nss/nss_files/files-XXX.c (internal_getent): Use
12006 __libc_readline_unlocked. Seek back to the start of the line if
12007 parsing failes with ERANGE.
12008 (get_contents_ret, get_contents): Remove.
12009 * nss/tst-nss-files-hosts-getent.c: New file.
12010 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
12011 (tst-nss-files-hosts-getent): Link with -ldl.
12012
12013 2018-07-06 Florian Weimer <fweimer@redhat.com>
12014
12015 * include/stdio.h (__libc_readline_unlocked): Declare.
12016 (__ftello64, __fseeko64): Declare aliases.
12017 * libio/readline.c: New file.
12018 * libio/tst-readline.c: Likewise.
12019 (routines): Add readline.
12020 (tests-internal): Add tst-readlime.
12021 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
12022 __libc_readline_unlocked.
12023 * libio/fseeko.c (__fseeko): Rename from fseeko.
12024 (fseeko): Add alias.
12025 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
12026 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
12027 (fseeko64): Add alias.
12028 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
12029 * libio/ftello64.c (__ftello64): Rename from ftello64.
12030 (ftello64): Add alias.
12031
12032 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12033
12034 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
12035 HWCAP_ATOMICS.
12036
12037 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
12038
12039 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
12040 Use dl_hwcap without masking.
12041 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
12042 Remove HWCAP_CPUID.
12043
12044 2018-07-06 Florian Weimer <fweimer@redhat.com>
12045
12046 * conform/conformtest.pl (checknamespace): Escape literal braces
12047 in regular expressions.
12048
12049 2018-07-06 Amit Pawar <amit.pawar@amd.com>
12050
12051 * sysdeps/x86/cpu-features.c (get_common_indeces):
12052 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
12053 * sysdeps/x86/cpu-features.c (init_cpu_features):
12054 AVX_Fast_Unaligned_Load is disabled for Excavator core.
12055
12056 2018-07-05 Florian Weimer <fweimer@redhat.com>
12057
12058 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
12059 protector.
12060 (CFLAGS-elf-init.oS): Likewise.
12061
12062 2018-07-05 Florian Weimer <fweimer@redhat.com>
12063 Carlos O'Donell <carlos@redhat.com>
12064
12065 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
12066 $(no-stack-protector). stack_chk_fail_local.c can be compiled
12067 with stack protector enabled because there is no risk of infinite
12068 recursion.
12069
12070 2018-07-05 Maciej W. Rozycki <macro@mips.com>
12071
12072 [BZ #19818]
12073 [BZ #23307]
12074 * libc-abis (ABSOLUTE): New ABI.
12075 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
12076 * NEWS: Mention the new ABI.
12077
12078 2018-07-05 Florian Weimer <fweimer@redhat.com>
12079
12080 [BZ # 17662]
12081 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
12082 (RENAME_WHITEOUT): Define.
12083 [__USE_GNU] (renameat2): Declare.
12084 * stdio-common/Makefile (routines): Add renameat2.
12085 (tests): Add tst-renameat2.
12086 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
12087 * stdio-common/renameat2.c: New file.
12088 * stdio-common/tst-renameat2.c: Likewise.
12089 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
12090 * manual/filesys.texi (Temporary Files): Note that renameat2 is
12091 undocumented.
12092 * sysdeps/unix/sysv/linux/kernel-features.h
12093 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
12094 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12095 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12096 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12097 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
12098 * sysdeps/unix/sysv/linux/sh/kernel-features.h
12099 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
12100 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
12101 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
12102 * include/stdio.h (__renameat): Add alias for renameat.
12103 * stdio-common/renameat.c (__renameat): Rename from renameat.
12104 Add hidden definition and alias.
12105 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
12106 * sysdeps/mach/hurd/renameat.c: Likewise.
12107 * sysdeps/**/libc*.abilist: Add renameat2.
12108
12109 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12110
12111 * posix/bug-regex33.c: Fix build after regex sync.
12112
12113 2018-07-04 Carlos O'Donell <carlos@redhat.com>
12114
12115 [BZ #23164]
12116 * localedata/tst-langinfo-setlocale.c: New file.
12117 * localedata/tst-langinfo-setlocale-static.c: New file.
12118 * localedata/tst-langinfo-newlocale.c: New file.
12119 * localedata/tst-langinfo-newlocale-static.c: New file.
12120 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
12121 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
12122 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
12123 (tests-static): Remove tst-langinfo-static. Add
12124 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
12125 (tests-special): Remove $(objpfx)tst-langinfo.out,
12126 $(objpfx)tst-langinfo-static.out. Add
12127 $(objpfx)tst-langinfo-setlocale.out,
12128 $(objpfx)tst-langinfo-newlocale.out,
12129 $(objpfx)tst-langinfo-setlocale-static.out,
12130 $(objpfx)tst-langinfo-newlocale-static.out.
12131 ($(objpfx)tst-langinfo.out): Remove.
12132 ($(objpfx)tst-langinfo-static.out): Remove.
12133 ($(objpfx)tst-langinfo-newlocale.out): New target.
12134 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
12135 (test-xfail-tst-langinfo-newlocale-static): Add.
12136 ($(objpfx)tst-langinfo-setlocale.out): New target.
12137 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
12138 * localedata/tst-langinfo.c: Call test_locale.
12139 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
12140 data.
12141
12142 2018-07-04 Florian Weimer <fweimer@redhat.com>
12143
12144 testrun.sh: Implement --tool=strace, --tool=valgrind
12145 * Makefile (testrun-script): Define variable.
12146 (testrun.sh): Use variable.
12147 * manual/install.texi (Tools for Compilation): make 4.0 or later
12148 is required.
12149 * configure.ac: Check for make 4.0 or later.
12150 * INSTALL: Regenerate.
12151 * configure: Likewise.
12152
12153 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12154
12155 [BZ #23233]
12156 [BZ #21163]
12157 [BZ #18986]
12158 [BZ #13762]
12159 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12160 * posix/PCRE.tests: Remove invalid test.
12161 * posix/bug-regex28.c: Fix expected values for used syntax.
12162 * posix/bug-regex37.c: New file.
12163 * posix/bug-regex38.c: Likewise.
12164 * posix/regcomp.c: Sync with gnulib.
12165 * posix/regex.c: Likewise.
12166 * posix/regex.h: Likewise.
12167 * posix/regex_internal.c: Likewise.
12168 * posix/regex_internal.h: Likewise.
12169 * posix/regexec.c: Likewise.
12170
12171 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12172
12173 [BZ #23308]
12174 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12175 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12176 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12177 * localedata/unicode-gen/PropList.txt: likewise.
12178 * localedata/unicode-gen/UnicodeData.txt: likewise.
12179 * localedata/charmaps/UTF-8: Regenerate.
12180 * localedata/locales/i18n_ctype: likewise.
12181 * localedata/locales/tr_TR: likewise.
12182 * localedata/locales/translit_circle: likewise.
12183 * localedata/locales/translit_cjk_compat: likewise.
12184 * localedata/locales/translit_combining: likewise.
12185 * localedata/locales/translit_compat: likewise.
12186 * localedata/locales/translit_font: likewise.
12187 * localedata/locales/translit_fraction: likewise.
12188
12189 2018-07-03 Florian Weimer <fweimer@redhat.com>
12190
12191 [BZ #23363]
12192 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12193 * stdio-common/tst-printf.sh: Adjust expected output.
12194 * LICENSES: Update.
12195
12196 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12197
12198 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12199 symbol.
12200
12201 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12202
12203 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12204 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12205 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12206 * stdio-common/tst-printfsz-islongdouble.c: New file.
12207 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12208 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12209 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12210 [subdir == stdio-common] (tests-internal): Add
12211 test-printf-size-ieee128, and test-printf-size-ibm128.
12212 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12213 (CFLAGS-test-printf-size-ibm128.c): New variables.
12214 [subdir == stdio-common] (tests-special): Add
12215 $(objpfx)test-printf-size-ieee128.out and
12216 $(objpfx)test-printf-size-ibm128.out.
12217 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12218 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12219 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12220 __printf_sizeieee128.
12221 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12222 New file.
12223 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12224 Likewise.
12225 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12226 Likewise.
12227
12228 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12229
12230 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12231 (exp2f_inline): Likewise.
12232 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12233 (__math_uflowf): Likewise.
12234 (__math_may_uflowf): Likewise.
12235 (__math_divzerof): Likewise.
12236 (__math_invalidf): Likewise.
12237 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12238 (__math_oflowf): Likewise.
12239 (__math_uflowf): Likewise.
12240 (__math_may_uflowf): Likewise.
12241 (__math_divzerof): Likewise.
12242 (__math_invalidf): Likewise.
12243
12244 2018-06-29 DJ Delorie <dj@redhat.com>
12245 Carlos O'Donell <carlos@redhat.com>
12246
12247 [BZ #23329]
12248 * include/libc-symbols.h: Comment the freeres framework.
12249 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12250 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12251 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12252 * dlfcn/dlerror.c: Include libc-symbols.h
12253 (__dlerror_main_freeres): New function.
12254 * dlfcn/dlfreeres.c: New file.
12255 * dlfcn/sdlfreeres.c: New file.
12256 * include/dlfcn.h: Declare __dlerror_main_freeres.
12257 * malloc/set-freeres.c: Declare __libdl_freeres, and
12258 __libpthread_freeres.
12259 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12260 the releavant libraries are loaded.
12261 * malloc/thread-freeres.c: Add comments.
12262 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12263 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12264 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12265 (__free_stacks): Rename to...
12266 (free_stacks): ...this. Mark static.
12267 (queue_stack): Call free_stacks.
12268 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12269 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12270 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12271 ptr_freeres element from struct.
12272 (pthread_functions): Remove .ptr_freeres from struct initializer.
12273 [SHARED] (nptl_freeres): Remove.
12274 * nptl/nptlfreeres.c: New file.
12275 * nptl/pthreadP.h
12276 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12277 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12278 attribute_hidden.
12279 (__free_stacks): Rename to...
12280 (__nptl_stacks_freeres): ...this.
12281 (__shm_directory_freeres): Declare.
12282 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12283 (__nptl_unwind_freeres): ...this.
12284 * resolv/res-close.c: Add comment.
12285 * resolv/resolv_conf.c: Include libc-symbols.h.
12286 * string/strerror_l.c: Include libc-symbols.h.
12287 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12288 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12289 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12290 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12291
12292 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12293
12294 * stdlib/tst-strfmon_l.c: Add tests for long double.
12295
12296 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12297
12298 [BZ #23208]
12299 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12300 * localedata/locales/dsb_DE: New file.
12301
12302 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12303
12304 [BZ #23140]
12305 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12306 genitive case).
12307 (alt_mon): New entry, import from CLDR (nominative case).
12308
12309 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12310
12311 [BZ #22996]
12312 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12313
12314 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12315
12316 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12317 Use vector registers.
12318
12319 * sysdeps/aarch64/multiarch/memmove_falkor.S
12320 (__memcpy_falkor): Use vector registers.
12321
12322 2018-06-29 Martin Sebor <msebor@redhat.com>
12323
12324 * manual/stdio.texi (Customizing Printf): Mention interaction
12325 with GCC built-ins.
12326
12327 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12328
12329 [BZ #23307]
12330 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12331 `st_value' is 0 if `st_shndx' is SHN_ABS.
12332 * elf/tst-absolute-zero.c: New file.
12333 * elf/tst-absolute-zero-lib.c: New file.
12334 * elf/tst-absolute-zero-lib.lds: New file.
12335 * elf/Makefile (tests): Add `tst-absolute-zero'.
12336 (modules-names): Add `tst-absolute-zero-lib'.
12337 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12338 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12339 ($(objpfx)tst-absolute-zero: New dependency.
12340
12341 2018-06-29 Zack Weinberg <zackw@panix.com>
12342
12343 * configure.ac: New command-line option --disable-crypt.
12344 Force --disable-nss-crypt when --disable-crypt is given, with a
12345 warning if it was explicitly enabled.
12346 * configure: Regenerate.
12347 * config.make.in: New boolean substitution variable $(build-crypt).
12348 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12349 when $(build-crypt).
12350 * manual/install.texi: Document --disable-crypt.
12351 * INSTALL: Regenerate.
12352
12353 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12354 which is never set.
12355 * conform/Makefile: Only include libcrypt.a in
12356 linknamespace-libs-xsi and linknamespace-libs-XPG4
12357 when $(build-crypt).
12358 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12359 USE_CRYPT to 1 when $(build-crypt).
12360 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12361 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12362 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12363
12364 2018-06-29 Zack Weinberg <zackw@panix.com>
12365
12366 * crypt/crypt.h, posix/unistd.h: Update comments and
12367 prototypes for crypt and crypt_r.
12368
12369 * manual/crypt.texi (Cryptographic Functions): New initial
12370 exposition.
12371 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12372 (Unpredictable Bytes): Improve initial exposition. Clarify error
12373 behavior of getentropy and getrandom.
12374 * manual/examples/genpass.c: Generate a salt using getentropy
12375 instead of the current time. Use hash $5$ (SHA-2-256).
12376 * manual/examples/testpass.c: Demonstrate validation against
12377 hashes generated with three different one-way functions.
12378
12379 * manual/intro.texi: crypt.texi does not need an overview
12380 anymore.
12381
12382 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12383 * manual/terminal.texi: Consistently refer to "passphrases"
12384 * instead of "passwords", and to the "user database" instead
12385 * of the "password database".
12386 * manual/users.texi: Similarly. Add notes about how actual
12387 passphrase hashes are now stored in the shadow database.
12388 Remove 20-year-old junk todo note.
12389
12390 2018-06-29 Zack Weinberg <zackw@panix.com>
12391
12392 * manual/crypt.texi: Use a normal top-level @node declaration.
12393 Move most of the introductory text to the 'crypt' section.
12394 Move the example programs below the @deftypefun for 'crypt_r'.
12395 Move the 'getpass' section...
12396 * manual/terminal.texi: ...here.
12397
12398 2018-06-29 Zack Weinberg <zackw@panix.com>
12399 Florian Weimer <fweimer@redhat.com>
12400
12401 * posix/unistd.h: Do not declare encrypt.
12402 (_XOPEN_CRYPT): Remove macro definition.
12403 (crypt): Declare only for _USE_MISC.
12404 * stdlib/stdlib.h: Do not declare setkey.
12405 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12406 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12407
12408 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12409 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12410 into compat symbols. Don't define initial_perm if it's not
12411 going to be used.
12412 * crypt/cert.c: Link explicitly with the expected versions for
12413 setkey and encrypt. If they are not available at all, mark
12414 the test as unsupported.
12415
12416 * sunrpc/des_crypt.c: Unconditionally block linkage with
12417 cbc_crypt and ecb_crypt for new binaries.
12418 * sunrpc/des_soft.c: Unconditionally block linkage with
12419 des_setparity for new binaries.
12420
12421 * manual/crypt.texi: Remove the entire "DES Encryption"
12422 section. Also remove the paragraph talking about FIPS 140-2
12423 from the introduction.
12424 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12425 of libgcrypt for "real" encryption, not DES.
12426 * manual/conf.texi (Constants for Sysconf): Mention that
12427 _XOPEN_CRYPT is no longer impelemented.
12428
12429 * conform/data/unistd.h-data: Remove crypt function declaration.
12430
12431 2018-06-29 Florian Weimer <fweimer@redhat.com>
12432
12433 [BZ #23351]
12434 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12435 (disallow_malloc_check): Remove variable.
12436 (__malloc_check_init): Adjust.
12437 (malloc_set_state): Update comment.
12438 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12439 declarations.
12440
12441 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12442
12443 [BZ #23140]
12444 * localedata/locales/ast_ES (mon): Rename to...
12445 (alt_mon): This.
12446 (mon): Import from CLDR (genitive case).
12447
12448 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12449 Jakub Sitnicki <jkbs@redhat.com>
12450
12451 [BZ #21812]
12452 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12453 on NLM_F_DUMP_INTR.
12454
12455 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12456
12457 * manual/llio.texi: Remove spurious space.
12458
12459 2018-06-28 Florian Weimer <fweimer@redhat.com>
12460
12461 [BZ #23349]
12462 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12463 _STRUCT_TIMESPEC.
12464
12465 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12466
12467 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12468 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12469 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12470 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12471 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12472 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12473 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12474
12475 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12476
12477 [BZ #23266]
12478 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12479 Copy and null-terminate entries that are not terminated, in
12480 addition to empty ones.
12481
12482 2018-06-27 Florian Weimer <fweimer@redhat.com>
12483
12484 [BZ #18023]
12485 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12486 (extend_alloca_account): Remove.
12487 * manual/stdio.texi (Variable Arguments Output): Update comment.
12488
12489 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12490
12491 * nptl/sockperf.c: Remove file.
12492
12493 2018-06-27 Florian Weimer <fweimer@redhat.com>
12494
12495 [BZ #18023]
12496 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12497 scratch_buffer instead of extend_alloca.
12498
12499 2018-06-27 Florian Weimer <fweimer@redhat.com>
12500
12501 [BZ #18023]
12502 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12503 scratch_buffer instead of extend_alloca. Update comments.
12504
12505 2018-06-27 Florian Weimer <fweimer@redhat.com>
12506
12507 [BZ #18023]
12508 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12509 instead of extend_alloca.
12510
12511 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12512
12513 [BZ #13888]
12514 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12515 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12516 /tmp.
12517 * scripts/test-installation.pl: Put temporary files in build
12518 directory, not /tmp.
12519 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12520 (CFLAGS-bug4.c): Likewise.
12521 (CFLAGS-bug5.c): Likewise.
12522 (CFLAGS-test-fseek.c): Likewise.
12523 (CFLAGS-test-popen.c): Likewise.
12524 (CFLAGS-test_rdwr.c): Likewise.
12525 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12526 /tmp.
12527 * stdio-common/bug4.c (main): Likewise.
12528 * stdio-common/bug5.c (main): Likewise.
12529 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12530 * stdio-common/test-popen.c (do_test): Likewise.
12531 * stdio-common/test_rdwr.c (main): Likewise.
12532
12533 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12534
12535 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12536 (sem_open): Set sem.newsem.pad to zero for valgrind.
12537
12538 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12539
12540 [BZ #20251]
12541 * NEWS: Mention fcntl64 addition.
12542 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12543 * login/utmp_file.c: Likewise.
12544 * sysdeps/posix/fdopendir.c: Likewise.
12545 * sysdeps/posix/opendir.c: Likewise.
12546 * sysdeps/unix/pt-fcntl.c: Likewise.
12547 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12548 __fcntl64_nocancel_adjusted): New prototype.
12549 (__fcntl_nocancel_adjusted): Remove prototype.
12550 * io/Makefile (routines): Add fcntl64.
12551 (CFLAGS-fcntl64.c): New rule.
12552 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12553 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12554 * io/fcntl.h (fcntl64): Add prototype and redirect if
12555 __USE_FILE_OFFSET64 is defined.
12556 * io/fcntl64.c: New file.
12557 * manual/llio.text: Add a note for which commands fcntl acts a
12558 cancellation point.
12559 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12560 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12561 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12562 New symbols.
12563 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12564 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12565 non-LFS case.
12566 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12567 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12568 to __fcntl64_nocancel.
12569 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12570 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12571 to __fcntl64_nocancel.
12572 * sysdeps/generic/not-cancel.h: Likewise.
12573 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12574 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12575 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12576 (fcntl64): New symbol.
12577 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12586 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12587 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12588 fcntl64): Likewise.
12589 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12591 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12595 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12597 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12599 Likewise.
12600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12601 Likewise.
12602 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12605
12606 2018-06-26 Florian Weimer <fweimer@redhat.com>
12607
12608 Run thread shutdown functions in an explicit order.
12609 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12610 definition.
12611 (__libc_thread_freeres): Call thread shutdown functions
12612 explicitly.
12613 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12614 * include/string.h (__strerror_thread_freeres): Declare.
12615 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12616 arena_thread_freeres. No longer static. Remove thread shutdown
12617 hook registration.
12618 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12619 Declare.
12620 * resolv/res-close.c (__res_thread_freeres): Renamed from
12621 res_thread_freeres. No longer static. Remove thread shutdown
12622 hook registration.
12623 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12624 * resolv/resolv_conf.c (freeres): Remove incorrect section
12625 attribute and use libc_freeres_fn.
12626 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12627 strerror_thread_freeres. No longer static. Remove thread
12628 shutdown hook registration.
12629 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12630 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12631 shutdown hook registration.
12632 * Makerules (shlib.lds): Do not provide section boundary symbols
12633 for __libc_thread_subfreeres.
12634 * manual/memory.texi (Basic Allocation): Update comment.
12635
12636 2018-06-26 Florian Weimer <fweimer@redhat.com>
12637
12638 Remove always-defined _RPC_THREAD_SAFE_ macro.
12639 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12640 Do not define _RPC_THREAD_SAFE_.
12641 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12642 conditional.
12643 * sunrpc/clnt_perr.c: Likewise.
12644 * sunrpc/clnt_raw.c: Likewise.
12645 * sunrpc/clnt_simp.c: Likewise.
12646 * sunrpc/key_call.c: Likewise.
12647 * sunrpc/rpc_common.c: Likewise.
12648 * sunrpc/rpc_main.c: Likewise.
12649 * sunrpc/rpc_thread.c: Likewise.
12650 * sunrpc/svc.c: Likewise.
12651 * sunrpc/svc_raw.c: Likewise.
12652 * sunrpc/svc_simple.c: Likewise.
12653 * sumrpc/svcauth_des.c: Likewise.
12654
12655 2018-06-26 Florian Weimer <fweimer@redhat.com>
12656
12657 * libio/Makefile (tests-internal): Add tst-vtables,
12658 tst-vtables-interposed.
12659 * libio/tst-vtables.c: New file.
12660 * libio/tst-vtables-common.c: Likewise.
12661 * libio/tst-vtables-interposed.c: Likewise.
12662
12663 2018-06-26 Florian Weimer <fweimer@redhat.com>
12664
12665 * support/support_test_main.c (support_test_main): Only call
12666 setvbuf if not disables.
12667 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12668 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12669
12670 2018-06-26 Florian Weimer <fweimer@redhat.com>
12671
12672 [BZ #23313]
12673 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12674
12675 2018-06-25 Florian Weimer <fweimer@redhat.com>
12676
12677 [BZ #18023]
12678 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12679 Use struct scratch_buffer instead of extend_alloca.
12680
12681 2018-06-25 Florian Weimer <fweimer@redhat.com>
12682
12683 [BZ #18023]
12684 * nss/getent.c (initgroups_keys): Use dynarray instead of
12685 extend_alloca.
12686
12687 2018-06-25 Florian Weimer <fweimer@redhat.com>
12688
12689 [BZ #18023]
12690 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12691 Use struct scratch_buffer instead of extend_alloca.
12692
12693 2018-06-25 Florian Weimer <fweimer@redhat.com>
12694
12695 [BZ #18023]
12696 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12697 back to malloc directly, without stack allocations.
12698
12699 2018-06-25 Florian Weimer <fweimer@redhat.com>
12700
12701 [BZ #18023]
12702 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12703 of extend_alloca.
12704
12705 2018-06-25 Florian Weimer <fweimer@redhat.com>
12706
12707 [BZ #18023]
12708 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12709 of extend_alloca.
12710 * nscd/hstcache.c (addhstbyX): Likewise.
12711 * nscd/pwdcache.c (addpwbyX): Likewise.
12712 * nscd/servicescache.c (addservbyX): Likewise.
12713
12714 2018-06-25 Florian Weimer <fweimer@redhat.com>
12715
12716 [BZ #18023]
12717 * nscd/connections.c (read_cmdline): New function.
12718 (restart): Use it. Update comment.
12719
12720 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12721
12722 [BZ #23140]
12723 * localedata/locales/csb_PL (mon): Rename to...
12724 (alt_mon): This.
12725 (abmon): Rename to...
12726 (ab_alt_mon): This.
12727 (mon): Add with proper genitive forms, copy from Wikipedia.
12728 (abmon): Likewise.
12729
12730 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12731
12732 [BZ #19485]
12733 * localedata/locales/csb_PL (mon): Fix typos:
12734 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12735 (yesstr): Add, value is "jo".
12736 (nostr): Add, value is "nié".
12737
12738 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12739
12740 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12741 all log1p and significand functions on m680x0.
12742 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12743 of s_significand.c..
12744 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12745 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12746 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12747 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12748 s_log1p.c and include it..
12749
12750 2018-06-21 Vincent Chen <vincentc@andestech.com>
12751
12752 * elf/elf.h (R_NDS32_NONE): New define.
12753 (R_NDS32_32_RELA): Likewise.
12754 (R_NDS32_COPY): Likewise.
12755 (R_NDS32_GLOB_DAT): Likewise.
12756 (R_NDS32_JUMP_SLOT): Likewise.
12757 (R_NDS32_RELATIVE): Likewise.
12758 (R_NDS32_TLS_TPOFF): Likewise.
12759 (R_NDS32_TLS_DESC): Likewise.
12760
12761 2018-06-21 Mark Wielaard <mark@klomp.org>
12762
12763 * elf/elf.h (R_BPF_MAP_FD): Removed.
12764 (R_BPF_64_64, R_BPF_64_32): New.
12765
12766 2018-06-21 Florian Weimer <fweimer@redhat.com>
12767
12768 [BZ #23253]
12769 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12770 Renamed from libc_feholdsetround_ctx.
12771 (default_libc_feresetround_ctx): Renamed from
12772 libc_feresetround_ctx.
12773 (default_libc_feholdsetround_noex_ctx): Renamed from
12774 libc_feholdsetround_noex_ctx.
12775 (default_libc_feresetround_noex_ctx): Renamed from
12776 libc_feresetround_noex_ctx.
12777 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12778 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12779 forwardning to the old implementations under the new names.
12780 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12781 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12782 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12783 (libc_feresetround_ctx): Forward to default implements for i386
12784 and MATH_SET_BOTH_ROUNDING_MODES.
12785 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12786 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12787
12788 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12789
12790 * string/tst-cmp.c: Include <libc-diag.h>.
12791 (strncmp_max): Disable -Wstringop-overflow= around call to
12792 strncmp.
12793 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12794 strncasecmp.
12795
12796 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12797 (main): Disable -Wunused-value around call to strpbrk.
12798 * string/bug-strspn1.c: Include <libc-diag.h>.
12799 (main): Disable -Wunused-value around call to strspn.
12800
12801 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12802 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12803
12804 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12805 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12806
12807 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12808
12809 * math/Makefile (libm-calls): Move s_significandF to...
12810 (gen-libm-calls): ... here.
12811 * math/s_significand_template.c: New file.
12812 * math/s_significand.c: Removed.
12813 * math/s_significandf.c: Removed.
12814 * math/s_significandl.c: Removed.
12815 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12816 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12817
12818 * math/e_exp2_template.c (declare_mgen_finite_alias,
12819 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12820 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12821 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12822
12823 2018-06-20 Florian Weimer <fweimer@redhat.com>
12824
12825 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12826
12827 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12828
12829 [BZ #23280]
12830 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12831 floating-point number to strtod functions rather than possibly
12832 negating result of those functions.
12833 * stdio-common/tst-scanf-round.c: New file.
12834 * stdio-common/Makefile (tests): Add tst-scanf-round.
12835 ($(objpfx)tst-scanf-round): Depend on $(libm).
12836
12837 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12838
12839 * sysdeps/mach/hurd/localplt.data: Move to...
12840 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12841 R_386_GLOB_DAT like on Linux i386.
12842
12843 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12844
12845 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12846 (SHM_STAT_ANY): New macro.
12847 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12848 (SHM_STAT_ANY): Likewise.
12849 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12850 (SHM_STAT_ANY): Likewise.
12851 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12852 (SHM_STAT_ANY): Likewise.
12853 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12854 (SHM_STAT_ANY): Likewise.
12855 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12856 (SHM_STAT_ANY): Likewise.
12857 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12858 (SHM_STAT_ANY): Likewise.
12859 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12860 (SHM_STAT_ANY): Likewise.
12861 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12862 (SHM_STAT_ANY): Likewise.
12863 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12864 (SHM_STAT_ANY): Likewise.
12865 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12866 (SHM_STAT_ANY): Likewise.
12867 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12868 (SHM_STAT_ANY): Likewise.
12869
12870 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12871 (SEM_STAT_ANY): New macro.
12872 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12873 (SEM_STAT_ANY): Likewise.
12874 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12875 (SEM_STAT_ANY): Likewise.
12876 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12877 (SEM_STAT_ANY): Likewise.
12878 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12879 (SEM_STAT_ANY): Likewise.
12880 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12881 (SEM_STAT_ANY): Likewise.
12882 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12883 (SEM_STAT_ANY): Likewise.
12884 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12885 (SEM_STAT_ANY): Likewise.
12886 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12887 (SEM_STAT_ANY): Likewise.
12888 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12889 (SEM_STAT_ANY): Likewise.
12890
12891 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12892 (MSG_STAT_ANY): New macro.
12893 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12894 (MSG_STAT_ANY): Likewise.
12895 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12896 (MSG_STAT_ANY): Likewise.
12897 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12898 (MSG_STAT_ANY): Likewise.
12899 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12900 (MSG_STAT_ANY): Likewise.
12901 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12902 (MSG_STAT_ANY): Likewise.
12903 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12904 (MSG_STAT_ANY): Likewise.
12905 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12906 (MSG_STAT_ANY): Likewise.
12907 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12908 (MSG_STAT_ANY): Likewise.
12909 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12910 (MSG_STAT_ANY): Likewise.
12911
12912 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12913 (MAP_TYPE): Change value to 0x2b.
12914
12915 2018-06-18 Florian Weimer <fweimer@redhat.com>
12916
12917 [BZ #15722]
12918 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12919 socket with SOCK_CLOEXEC.
12920
12921 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12922
12923 [BZ #23303]
12924 * sysdeps/powerpc/powerpc64/le/Makefile
12925 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12926 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12927 (gnulib-tests): Also add $(f128-loader-link) for
12928 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12929
12930 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12931
12932 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12933 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12934 of sendfile.
12935 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12936 (sendfile64): New strong alias.
12937 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12938 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12939 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12940 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12941 attribute.
12942 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12943 ___pthread_get_cleanup_stack.
12944 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12945 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12946 * mach/shortcut.awk: Make syscall stubs include
12947 <mach-shortcuts-hidden.h> and add hidden definition.
12948 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12949 (__mach_msg): Add hidden prototype.
12950 * mach/msg.c: Include <mach.h>.
12951 (__mach_msg): Add hidden definition.
12952 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12953 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12954 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12955 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12956 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12957 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12958 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12959 prototype and definition.
12960 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12961 hidden target for _hurd_self_sigstate.
12962
12963 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12964
12965 [BZ #23007]
12966 * stdlib/tst-strtod-nan-sign-main.c: New file.
12967 * stdlib/tst-strtod-nan-sign.c: Likewise.
12968 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12969 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12970 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12971 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12972 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12973
12974 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12975
12976 [BZ #23007]
12977 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12978 appropriate sign.
12979
12980 2018-06-14 Florian Weimer <fweimer@redhat.com>
12981
12982 [BZ #23290]
12983 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12984 that the result stays within the ISO-8859-1 range.
12985 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12986 characters are defined in IBM273.
12987
12988 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12989
12990 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12991 __mach_task_self): Remove attribute_hidden.
12992
12993 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12994
12995 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12996 ignore -Wrestrict for one test.
12997
12998 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12999 Szabolcs Nagy <szabolcs.nagy@arm.com>
13000
13001 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
13002
13003 2018-06-14 Florian Weimer <fweimer@redhat.com>
13004
13005 * scripts/update-abilist.sh: Accept empty list of files to patch.
13006
13007 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
13008
13009 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
13010 test-xfail-check-abi-libmachuser): Add.
13011 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
13012 __libc_read and __libc_write to __read and __write.
13013 * sysdeps/hurd/include/hurd/port.h: New file.
13014 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
13015 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
13016 __thread_switch, __evc_wait): Move declarations to...
13017 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
13018 attribute_hidden.
13019 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
13020 use PLT to call _hurd_self_sigstate.
13021
13022 2018-06-13 Joseph Myers <joseph@codesourcery.com>
13023
13024 [BZ #23279]
13025 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
13026 MAX_EXP as overflowing.
13027 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
13028 overflow flag.
13029 (round_str): Output also whether result overflows in each rounding
13030 mode.
13031 * stdlib/tst-strtod-round-data: Add more tests.
13032 * stdlib/tst-strtod-round-data.h: Regenerated.
13033 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
13034 (TEST): Handle extra arguments for overflow flags.
13035 (struct test_overflow): New type.
13036 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
13037 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
13038 (test_in_one_mode): Take argument with overflow information.
13039 (do_test): Update calls to test_in_one_mode.
13040
13041 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13042
13043 * elf/dl-load (_dl_dst_substitute): Correct comment.
13044 (_dl_dst_count): Likewise.
13045
13046 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
13047 lll_futex_timed_wait.
13048
13049 2018-06-12 Joseph Myers <joseph@codesourcery.com>
13050
13051 [BZ #23277]
13052 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
13053 attribute.
13054 * math/test-nan-const.c: New file.
13055 * math/Makefile (tests): Add test-nan-const.
13056 (CFLAGS-test-nan-const.c): New variable.
13057
13058 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13059
13060 * benchtests/scripts/compare_strings.py (process_results): Add
13061 funcs argument. Compare only functions which are selected.
13062 (main): Check if base function is among selected functions.
13063 Pass selected functions to process_results.
13064 (__main__): Add -f/--functions argument.
13065
13066 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
13067 Hongbo Zhang <hongbo.zhang@linaro.org>
13068
13069 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
13070 __memcpy_falkor for phecda core.
13071 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
13072 __memmove_falkor for phecda core.
13073 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
13074 __memset_falkor for phecda core.
13075 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
13076 for phecda core.
13077 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
13078 macro to identify phecda core.
13079
13080 2018-06-12 Carlos O'Donell <carlos@redhat.com>
13081 Andreas Schwab <schwab@suse.de>
13082 Dmitry V. Levin <ldv@altlinux.org>
13083 Florian Weimer <fweimer@redhat.com>
13084
13085 [BZ #23102]
13086 [BZ #21942]
13087 [BZ #18018]
13088 [BZ #23259]
13089 CVE-2011-0536
13090 * elf/dl-dst.h: Remove DL_DST_COUNT.
13091 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
13092 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
13093 (is_dst): Comment. Support ELF gABI.
13094 (_dl_dst_count): Comment. Simplify and count DSTs.
13095 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
13096 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
13097 locals.
13098
13099 2018-06-12 Zack Weinberg <zackw@panix.com>
13100
13101 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
13102 * sysdeps/unix/sysv/linux/dl-sysdep.c
13103 Include not-cancel.h. Use __close_nocancel instead of __close,
13104 __open64_nocancel instead of __open, __read_nocancel instead of
13105 __libc_read, and __write_nocancel instead of __libc_write.
13106
13107 * csu/check_fds.c (check_one_fd)
13108 * sysdeps/posix/fdopendir.c (__fdopendir)
13109 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
13110 instead of __fcntl and/or __libc_fcntl.
13111
13112 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
13113 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
13114 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
13115 Use __open64_nocancel instead of __open_nocancel.
13116
13117 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
13118 hidden_proto declarations to the end and issue them if either
13119 IS_IN(libc) or IS_IN(rtld).
13120 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
13121 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
13122 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
13123 read_nocancel, waitpid_nocancel, write_nocancel.
13124
13125 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
13126 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
13127 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
13128
13129 * nptl/pt-fcntl.c: New file.
13130 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
13131 (libpthread-routines): Add pt-fcntl.
13132 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
13133 (__libc_fcntl): Remove attribute_hidden.
13134 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
13135 __fcntl_nocancel_adjusted, not fcntl_common.
13136 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
13137 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
13138 to fcntl_nocancel.c.
13139 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
13140 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
13141 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13142 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
13143
13144 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
13145 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
13146 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13147 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13148 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13149 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13150 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13151 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13152 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13153 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13154 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13155 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13156 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13157 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13158 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13159 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13160 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13161 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13162 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13163 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13164
13165 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13166 libpthread-routines.
13167 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13168 defines nothing.
13169
13170 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13171 __libc_read, and __write instead of __libc_write. Define
13172 __open64 in addition to __open.
13173
13174 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13175
13176 [BZ #23250]
13177 [BZ #10686]
13178 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13179 to _private_tm[3] and add __glibc_reserved2.
13180 Add _Static_assert of offset of __private_ss == 0x30.
13181 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13182 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13183
13184 2018-06-12 Florian Weimer <fweimer@redhat.com>
13185
13186 x86: Make strncmp usable from rtld.
13187 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13188 __strncmp_ia32 if in libc (and not in rtld).
13189 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13190 strncmp if not in libc (and not to __strncmp_sse2).
13191
13192 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13193
13194 [BZ #23140]
13195 * localedata/locales/gd_GB (mon): Rename to...
13196 (alt_mon): This.
13197 (mon): Import from CLDR (genitive case).
13198 * localedata/locales/hsb_DE (mon): Rename to...
13199 (alt_mon): This.
13200 (mon): Import from CLDR (genitive case).
13201 * localedata/locales/wa_BE (mon): Rename to...
13202 (alt_mon): This.
13203 (mon): Add, fill with the proper genitive forms, but CLDR data
13204 is incomplete; completed according to the comments in this file.
13205 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13206
13207 * localedata/locales/wa_BE (country_name): Reword
13208 "Beljike" -> "Beldjike".
13209
13210 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13211
13212 [BZ #23272]
13213 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13214 cases of non-finite arguments.
13215 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13216
13217 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13218
13219 [BZ #23174]
13220 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13221
13222 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13223
13224 [BZ #23264]
13225 * include/unistd.h (__execvpex): New prototype.
13226 * posix/Makefile (tests): Add tst-spawn4.
13227 (tests-internal): Add tst-spawn4-compat.
13228 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13229 * posix/tst-spawn4-compat.c: New file.
13230 * posix/tst-spawn4.c: Likewise.
13231 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13232 binaries as shell scripts.
13233 * sysdeps/posix/spawni.c (__spawni): Likewise.
13234
13235 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13236
13237 [BZ #23145]
13238 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13239 ($(all-built-dso:=.dynsym): New target.
13240 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13241 ($(objpfx)check-initfini.out): New target.
13242 (generated): Add check-initfini.out.
13243 * scripts/check-initfini.awk: New file.
13244 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13245 (_fini): Likewise.
13246 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13247 (_fini): Likewise.
13248 * sysdeps/arm/crti.S (_init): Mark as hidden.
13249 (_fini): Likewise.
13250 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13251 (_fini): Likewise.
13252 * sysdeps/i386/crti.S (_init): Mark as hidden.
13253 (_fini): Likewise.
13254 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13255 (_fini): Likewise.
13256 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13257 (_fini): Likewise.
13258 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13259 (_fini): Likewise.
13260 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13261 (_fini): Likewise.
13262 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13263 (_fini): Likewise.
13264 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13265 (_fini): Likewise.
13266 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13267 (_fini): Likewise.
13268 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13269 (_fini): Likewise.
13270 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13271 (_fini): Likewise.
13272 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13273 (_fini): Likewise.
13274 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13275 (_fini): Likewise.
13276 * sysdeps/sh/crti.S (_init): Mark as hidden.
13277 (_fini): Likewise.
13278 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13279 (_fini): Likewise.
13280 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13281 (_fini): Likewise.
13282
13283 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13284
13285 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13286 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13287 and TF redirection to KFtype and KF only when the default
13288 long double type is not the IEEE 128-bit floating point type.
13289
13290 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13291
13292 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13293 macro.
13294 (HWCAP_USCAT): Likewise.
13295 (HWCAP_ILRCPC): Likewise.
13296 (HWCAP_FLAGM): Likewise.
13297 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13298 Increase to 28.
13299 (_dl_aarch64_cap_flags): Add new flag names.
13300
13301 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13302 (MAP_FIXED_NOREPLACE): New macro.
13303 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13304 (MAP_FIXED_NOREPLACE): Likewise.
13305 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13306 (MAP_FIXED_NOREPLACE): Likewise.
13307 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13308 (MAP_FIXED_NOREPLACE): Likewise.
13309 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13310 (MAP_FIXED_NOREPLACE): Likewise.
13311 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13312 (MAP_FIXED_NOREPLACE): Likewise.
13313 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13314 (MAP_FIXED_NOREPLACE): Likewise.
13315 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13316 (MAP_FIXED_NOREPLACE): Likewise.
13317 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13318 (MAP_FIXED_NOREPLACE): Likewise.
13319 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13320 (MAP_FIXED_NOREPLACE): Likewise.
13321 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13322 (MAP_FIXED_NOREPLACE): Likewise.
13323 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13324 (MAP_FIXED_NOREPLACE): Likewise.
13325 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13326 (MAP_FIXED_NOREPLACE): Likewise.
13327 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13328 (MAP_FIXED_NOREPLACE): Likewise.
13329 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13330 (MAP_FIXED_NOREPLACE): Likewise.
13331
13332 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13333 version to 4.17.
13334
13335 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13336
13337 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13338 version to 4.17
13339
13340 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13341
13342 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13343 int.
13344 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13345
13346 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13347
13348 * benchtests/scripts/compare_string.py: (process_results) Catch
13349 exception in non-existent base_func and catch exception in
13350 non-existent attribute.
13351 (parse_file) Catch exception if input file does not exist.
13352
13353 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13354
13355 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13356 options to avoid diff calculation and omit header, respectively.
13357 (main): process --no-diff and --no-header
13358
13359 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13360 H.J. Lu <hongjiu.lu@intel.com>
13361
13362 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13363 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13364 wcsncmp-sse2.
13365 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13366 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13367 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13368 and __wcsncmp_sse2.
13369 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13370 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13371 AVX unaligned load is fast and vzeroupper is preferred.
13372 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13373 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13374 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13375 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13376 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13377 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13378 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13379 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13380 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13381 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13382 is undefined.
13383
13384 2018-06-01 Florian Weimer <fweimer@redhat.com>
13385
13386 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13387 configuring with --disable-multi-arch, building with
13388 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13389 Haswell-era CPU.
13390
13391 2018-06-01 Florian Weimer <fweimer@redhat.com>
13392
13393 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13394 results from building with “-march=x86-64 -mtune=generic
13395 -mfpmath=sse” and running on a Haswell-era CPU.
13396
13397 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13398
13399 [BZ #18473]
13400 * soft-fp/sqrttf2.c: Remove file.
13401 * soft-fp/sqrtdf2.c: Move to ....
13402 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13403 <shlib-compat.h>.
13404 (__sqrtdf2): Make conditional on
13405 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13406 symbol.
13407 * soft-fp/sqrtsf2.c: Move to ....
13408 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13409 <shlib-compat.h>.
13410 (__sqrtsf2): Make conditional on
13411 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13412 symbol.
13413 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13414 (gcc-double-routines): Remove sqrtdf2.
13415 (gcc-quad-routines): Remove sqrttf2.
13416 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13417 Do not filter out sqrtsf2 and sqrtdf2.
13418 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13419 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13420
13421 2018-06-01 Florian Weimer <fweimer@redhat.com>
13422
13423 * sysdeps/generic/libcidn.abilist: Remove file.
13424
13425 2018-06-01 Florian Weimer <fweimer@redhat.com>
13426
13427 [BZ #23236]
13428 * libio/strfile.h (struct _IO_str_fields): Rename members to
13429 discourage their use and add comment.
13430 (_IO_STR_DYNAMIC): Remove unused macro.
13431 * libio/strops.c (_IO_str_init_static_internal): Do not use
13432 callback pointers. Call malloc and free.
13433 (_IO_str_overflow): Do not use callback pointers. Call malloc
13434 and free.
13435 (enlarge_userbuf): Likewise.
13436 (_IO_str_finish): Call free.
13437 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13438 _allocate_buffer_unused.
13439 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13440 and free.
13441 (enlarge_userbuf): Likewise.
13442 (_IO_wstr_finish): Call free.
13443 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13444 _allocate_buffer_unused, _free_buffer_unused.
13445 * libio/memstream.c (__open_memstream): Likewise.
13446 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13447 * libio/wmemstream.c (open_wmemstream): Likewise.
13448
13449 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13450
13451 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13452 AMD Ryzen 7 1800X.
13453
13454 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13455
13456 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13457 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13458 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13459 New file.
13460 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13461 Likewise.
13462 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13463
13464 2018-05-29 Florian Weimer <fweimer@redhat.com>
13465
13466 * support/Makefile (libsupport-routines): Add
13467 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13468 xpthread_barrierattr_setpshared.
13469 * support/xpthread_barrierattr_destroy.c: New file.
13470 * support/xpthread_barrierattr_init.c: Likewise.
13471 * support/xpthread_barrierattr_setpshared.c: Likewise.
13472
13473 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13474
13475 [BZ #23206]
13476 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13477 _r_debug and update DT_DEBUG for debugger.
13478
13479 2018-05-29 Florian Weimer <fweimer@redhat.com>
13480
13481 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13482 (tst-strtod5i.out): Likewise.
13483
13484 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13485
13486 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13487 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13488 (sparc64-quad-routines): New variable. Moved from ....
13489 [$(subdir) = soft-fp] (sysdep_routines): Add
13490 $(sparc64-quad-routines). Moved from ....
13491 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13492 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13493 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13494 moved from ....
13495 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13496 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13497 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13498 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13499 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13500 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13501 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13502 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13503 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13504 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13505 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13506 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13507 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13508 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13509 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13510 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13511 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13512 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13513 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13514 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13515 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13516 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13517 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13518 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13519 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13520 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13521 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13522 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13523 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13524 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13525 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13526 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13527 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13528 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13529 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13530 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13531 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13532 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13533 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13534 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13535 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13536 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13537 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13538 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13539 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13540 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13541 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13542 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13543 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13544 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13545 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13546 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13547 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13548 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13549 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13550 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13551 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13552 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13553
13554 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13555 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13556 (sparc32-quad-routines): New variable. Moved from ....
13557 [$(subdir) = soft-fp] (sysdep_routines): Add
13558 $(sparc32-quad-routines). Moved from ....
13559 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13560 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13561 moved from ....
13562 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13563 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13564 * sysdeps/sparc/sparc32/q_add.c: ... here.
13565 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13566 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13567 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13568 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13569 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13570 * sysdeps/sparc/sparc32/q_div.c: ... here.
13571 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13572 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13573 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13574 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13575 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13576 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13577 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13578 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13579 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13580 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13581 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13582 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13583 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13584 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13585 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13586 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13587 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13588 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13589 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13590 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13591 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13592 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13593 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13594 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13595 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13596 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13597 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13598 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13599 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13600 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13601 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13602 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13603 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13604 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13605 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13606 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13607 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13608 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13609 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13610 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13611 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13612 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13613 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13614 * sysdeps/sparc/sparc32/q_util.c: ... here.
13615 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13616 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13617 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13618 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13619
13620 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13621 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13622
13623 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13624 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13625 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13626 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13627
13628 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13629
13630 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13631 powerpc/soft-fp.
13632 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13633 Likewise.
13634 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13635 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13636
13637 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13638
13639 [BZ #23171]
13640 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13641 double version.
13642
13643 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13644
13645 * sysdeps/sh/Implies: Remove sh/soft-fp.
13646 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13647 * sysdeps/sh/sfp-machine.h: ... here.
13648
13649 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13650
13651 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13652 (__mempcpy_erms): Skip zero length.
13653 (__memmove_erms): Likewise.
13654 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13655 (__memset_erms): Likewise.
13656
13657 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13658
13659 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13660 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13661 Add functions moved from ....
13662 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13663 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13664 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13665 from ....
13666 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13667 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13668 * sysdeps/alpha/e_sqrtl.c: ... here.
13669 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13670 * sysdeps/alpha/local-soft-fp.h: ... here.
13671 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13672 * sysdeps/alpha/ots_add.c: ... here.
13673 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13674 * sysdeps/alpha/ots_cmp.c: ... here.
13675 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13676 * sysdeps/alpha/ots_cmpe.c: ... here.
13677 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13678 * sysdeps/alpha/ots_cvtqux.c: ... here.
13679 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13680 * sysdeps/alpha/ots_cvtqx.c: ... here.
13681 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13682 * sysdeps/alpha/ots_cvttx.c: ... here.
13683 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13684 * sysdeps/alpha/ots_cvtxq.c: ... here.
13685 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13686 * sysdeps/alpha/ots_cvtxt.c: ... here.
13687 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13688 * sysdeps/alpha/ots_div.c: ... here.
13689 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13690 * sysdeps/alpha/ots_mul.c: ... here.
13691 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13692 * sysdeps/alpha/ots_nintxq.c: ... here.
13693 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13694 * sysdeps/alpha/ots_sub.c: ... here.
13695 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13696 * sysdeps/alpha/sfp-machine.h: ... here.
13697
13698 2018-05-23 Florian Weimer <fweimer@redhat.com>
13699
13700 [BZ #19728]
13701 [BZ #19729]
13702 [BZ #22247]
13703 CVE-2016-6261
13704 CVE-2016-6263
13705 CVE-2017-14062
13706 Switch to extern IDNA implementation (libidn2).
13707 * libidn: Remove subdirectory.
13708 * LICENSES: Do not mention licensing conditions for the removed
13709 libidn code.
13710 * config.h.in (HAVE_LIBIDN): Remove.
13711 * include/dlfcn.h (__libc_dlopen): Update comment.
13712 * include/idna.h: Remove file.
13713 * inet/Makefile (routines): Add idna.
13714 (tests-static, tests-internal): Add tst-idna_name_classify.
13715 (LOCALES): Generate locales for tests.
13716 (tst-idna_name_classify.out): Depend on generated locales.
13717 * inet/idna_name_classify.c: New file.
13718 * inet/tst-idna_name_classify.c: Likewise.
13719 * inet/net-internal.h (__idna_to_dns_encoding)
13720 (__idna_from_dns_encoding): Declare.
13721 * inet/net-internal.h (enum idna_name_classification): Define.
13722 (__idna_name_classify): Declare.
13723 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13724 __idna_from_dns_encoding.
13725 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13726 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13727 name as a fallback in case of encoding errors.
13728 (getnameinfo): Use DEPRECATED_NI_IDN.
13729 * inet/idna.c: New file.
13730 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13731 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13732 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13733 (modules-names): Add tst-no-libidn2.
13734 (extra-test-objs): Add tst-no-libidn2.os.
13735 (LDFLAGS-tst-no-libidn2.so): Set soname.
13736 (LOCALES): Set, and generate locales.
13737 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13738 (tst-resolv-ai_idn-latin1): Likewise.
13739 (tst-resolv-ai_idn-nolibidn2): Likewise.
13740 (tst-resolv-ai_idn.out): Depend on locales.
13741 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13742 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13743 tst-no-libidn2.so.
13744 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13745 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13746 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13747 * resolv/tst-resolv-ai_idn.c: New file.
13748 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13749 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13750 * resolv/tst-no-libidn2.c: Likewise.
13751 * support/support_format_addrinfo.c (format_ai_flags): Do not
13752 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13753 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13754 (gaih_inet): Call __idna_to_dns_encoding and
13755 __idna_from_dns_encoding, and use the original (punycode) name if
13756 __idna_from_dns_encoding fails due to an encoding error.
13757 (getaddrinfo): Use DEPRECATED_AI_IDN.
13758 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13759 * sysdeps/unix/inet/configure: Remove file.
13760 * sysdeps/unix/inet/configure.ac: Likewise.
13761
13762 2018-05-23 Florian Weimer <fweimer@redhat.com>
13763
13764 Implement allocate_once.
13765 * include/allocate_once.h: New file.
13766 * misc/allocate_once.c: Likewise.
13767 * misc/tst-allocate_once.c: Likewise.
13768 * misc/Makefile (routines): Add allocate_once.
13769 (tests-internal): Add tst-allocate_once.
13770 (generated): Add tst-allocate_once.mtrace,
13771 tst-allocate_once-mem.out.
13772 (tests-special): Add tst-allocate_once-mem.out.
13773 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13774 (tst-allocate_once-mem.out): Call mtrace.
13775 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13776
13777 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13778
13779 [BZ #23196]
13780 * string/test-memcpy.c (do_test1): New function.
13781 (test_main): Call it.
13782
13783 2018-05-23 Andreas Schwab <schwab@suse.de>
13784
13785 [BZ #23196]
13786 CVE-2018-11237
13787 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13788 (L(preloop_large)): Save initial destination pointer in %r11 and
13789 use it instead of %rax after the loop.
13790 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13791
13792 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13793
13794 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13795 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13796 -I../soft-fp. Moved from ....
13797 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13798 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13799 * sysdeps/aarch64/e_sqrtl.c: ... here.
13800 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13801 * sysdeps/aarch64/sfp-machine.h: ... here.
13802
13803 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13804 -Wmaybe-uninitialized around access to fq[0].
13805 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13806 Likewise.
13807
13808 [BZ #18471]
13809 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13810 aliases for non-libc case of versioned symbols.
13811 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13812 (llseek): Define as compat symbol if
13813 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13814 with link warning.
13815 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13816 Make into a compat symbol, disabled for minimum symbol version
13817 GLIBC_2.28 and later.
13818 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13819
13820 2018-05-22 Florian Weimer <fweimer@redhat.com>
13821
13822 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13823 not add -mpreferred-stack-boundary=4.
13824 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13825 (stack-align-test-flags): Likewise.
13826 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13827 Likewise.
13828 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13829 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13830 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13831 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13832 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13833 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13834 (CFLAGS-tst-align2.c): Likewise.
13835
13836 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13837
13838 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13839 (index_arch_Prefer_FSRM): Likewise.
13840 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13841 Also check Prefer_FSRM.
13842 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13843 Also return OPTIMIZE (erms) for Prefer_FSRM.
13844
13845 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13846
13847 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13848 (index_cpu_FSRM): Likewise.
13849 (reg_FSRM): Likewise.
13850
13851 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13852
13853 * math/gen-tgmath-tests.py: Import sys.
13854 (Tests.__init__): Initialize macros_seen.
13855 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13856 if requested to do so for this macro.
13857 (Tests.add_all_tests): Take argument for macro for which to
13858 generate tests.
13859 (Tests.check_macro_list): New function.
13860 (main): Handle check-list argument and argument specifying macro
13861 for which to generate tests.
13862 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13863 [PYTHON] (tgmath3-macro-tests): Likewise.
13864 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13865 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13866 not test-tgmath3.c.
13867 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13868 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13869 to CFLAGS.
13870 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13871 [PYTHON] ($(foreach
13872 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13873 rule.
13874 [PYTHON] (tests-special): Add
13875 $(objpfx)test-tgmath3-macro-list.out.
13876 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13877
13878 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13879 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13880 later.
13881
13882 [BZ #22639]
13883 * time/tzset.c (SECSPERDAY): Cast to time_t.
13884 * time/tst-y2039.c: New file.
13885 * time/Makefile (tests): Add tst-y2039.
13886
13887 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13888
13889 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13890 (PREFETCH_ONE_SET): Remove duplicate line.
13891
13892 2018-05-17 Florian Weimer <fweimer@redhat.com>
13893
13894 * sysdeps/generic/math-type-macros-double.h: Include
13895 <math-nan-payload-double.h> after <libm-alias-double.h>.
13896 * sysdeps/generic/math-type-macros-float.h: Include
13897 <math-nan-payload-float.h> after <libm-alias-float.h>.
13898 * sysdeps/generic/math-type-macros-float128.h: Include
13899 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13900 * sysdeps/generic/math-type-macros-ldouble.h: Include
13901 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13902
13903 2018-05-17 Andreas Schwab <schwab@suse.de>
13904
13905 * resolv/res_send.c (__res_context_send): Don't set errno when
13906 returing error after malloc failure.
13907
13908 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13909
13910 * nptl/allocatestack.c (allocate_stack): Remove the
13911 !__ASSUME_PRIVATE_FUTEX paths.
13912 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13913 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13914 Likewise.
13915 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13916 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13917 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13918 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13919 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13920 !__ASSUME_PRIVATE_FUTEX path.
13921 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13922 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13923 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13924 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13925 !__ASSUME_PRIVATE_FUTEX macros.
13926 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13927 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13928 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13929 * sysdeps/unix/sysv/linux/kernel-features.h
13930 (__ASSUME_PRIVATE_FUTEX): Removed.
13931
13932 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13933
13934 * math/Makefile (libm-narrow-fns): Add div.
13935 (libm-test-funcs-narrow): Likewise.
13936 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13937 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13938 * math/gen-auto-libm-tests.c (test_functions): Add div.
13939 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13940 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13941 (NARROW_DIV_TRIVIAL): Likewise.
13942 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13943 macro.
13944 (__ddivl): Likewise.
13945 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13946 ddiv.
13947 (CFLAGS-nldbl-ddiv.c): New variable.
13948 (CFLAGS-nldbl-fdiv.c): Likewise.
13949 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13950 __nldbl_ddivl.
13951 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13952 prototype.
13953 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13954 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13955 * math/auto-libm-test-in: Add tests of div.
13956 * math/auto-libm-test-out-narrow-div: New generated file.
13957 * math/libm-test-narrow-div.inc: New file.
13958 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13959 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13960 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13961 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13962 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13963 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13964 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13965 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13966 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13967 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13968 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13969 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13970 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13971 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13972 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13973 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13974 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13975 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13976 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13977 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13978 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13979 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13980 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13981 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13982 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13983 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13984 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13985 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13986 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13987 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13988 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13989 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13990 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13992 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13994 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13995 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13996 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13997 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13998 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13999 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14000 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14001 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14002
14003 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14004
14005 [BZ #23178]
14006 * nscd/nscd-client.h (sendfileall): Remove prototype.
14007 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
14008 (handle_request): Use writeall instead of sendfileall.
14009 * nscd/aicache.c (addhstaiX): Likewise.
14010 * nscd/grpcache.c (cache_addgr): Likewise.
14011 * nscd/hstcache.c (cache_addhst): Likewise.
14012 * nscd/initgrcache.c (addinitgroupsX): Likewise.
14013 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
14014 * nscd/pwdcache.c (cache_addpw): Likewise.
14015 * nscd/servicescache.c (cache_addserv): Likewise.
14016 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
14017 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
14018 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
14019 Remove define.
14020
14021 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
14022
14023 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
14024 Include <string/strncat.c>.
14025 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
14026 alias.
14027 (__GI___strncat): New hidden alias.
14028
14029 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14030
14031 * sysdeps/mips/mips32/libm-test-ulps: Update.
14032 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
14033
14034 2018-05-16 Florian Weimer <fweimer@redhat.com>
14035
14036 * support/Makefile (libsupport-routines): Add support_quote_blob,
14037 support_test_compare_blob.
14038 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
14039 * support/check.h (TEST_COMPARE_BLOB): Define.
14040 (support_test_compare_blob): Declare.
14041 * support/support.h (support_quote_blob): Declare.
14042 * support/support_quote_blob.c: New file.
14043 * support/support_test_compare_blob.c: Likewise.
14044 * support/tst-support_quote_blob.c: Likewise.
14045 * support/tst-test_compare_blob.c: Likewise.
14046
14047 2018-05-16 Florian Weimer <fweimer@redhat.com>
14048
14049 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
14050 of <strtod_nan_double.h>.
14051 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
14052 instead of SET_MANTISSA.
14053 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
14054 of include <strtod_nan_float.h>.
14055 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
14056 instead of <strtod_nan_ldouble.h>.
14057 * stdlib/strtod_nan_double.h: Move to ...
14058 * sysdeps/generic/math-nan-payload-double.h: ... here.
14059 (FLOAT): Remove definition.
14060 (SET_MANTISSA): Rename to ...
14061 (SET_NAN_PAYLOAD): ... this.
14062 * stdlib/strtod_nan_float.h: Move to ...
14063 * sysdeps/generic/math-nan-payload-float.h: ... here.
14064 (FLOAT): Remove definition.
14065 (SET_MANTISSA): Rename to ...
14066 (SET_NAN_PAYLOAD): ... this.
14067 * sysdeps/generic/math-type-macros-double.h: Include
14068 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
14069 instead of <math-svid-compat.h>.
14070 * sysdeps/generic/math-type-macros-float.h: Include
14071 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
14072 instead of <math-svid-compat.h>.
14073 * sysdeps/generic/math-type-macros-float128.h: Include
14074 <math-nan-payload-float128.h>.
14075 * sysdeps/generic/math-type-macros-ldouble.h: Include
14076 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
14077 instead of <math-svid-compat.h>.
14078 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
14079 check for definition.
14080 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
14081 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
14082 Include <ieee754_float128.h>.
14083 (FLOAT): Remove definition.
14084 (SET_MANTISSA): Rename to ...
14085 (SET_NAN_PAYLOAD): ... this.
14086 * sysdeps/ieee754/float128/strtof128_nan.c: Include
14087 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
14088 Do not include <float128_private.h>.
14089 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
14090 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
14091 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
14092 (FLOAT): Remove definition.
14093 (SET_MANTISSA): Rename to ...
14094 (SET_NAN_PAYLOAD): ... this.
14095 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
14096 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
14097 (FLOAT): Remove definition.
14098 (SET_MANTISSA): Rename to ...
14099 (SET_NAN_PAYLOAD): ... this.
14100 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
14101 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
14102 (FLOAT): Remove definition.
14103 (SET_MANTISSA): Rename to ...
14104 (SET_NAN_PAYLOAD): ... this.
14105 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
14106 of "../stdlib/strtod_nan_double.h".
14107 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
14108 of "../stdlib/strtod_nan_float.h".
14109 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
14110 instead of "../stdlib/strtod_nan_ldouble.h".
14111 * manual/arith.texi (Parsing of Floats): Adjust comment.
14112
14113 2018-05-16 Joseph Myers <joseph@codesourcery.com>
14114
14115 * math/Makefile (libm-narrow-fns): Add mul.
14116 (libm-test-funcs-narrow): Likewise.
14117 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
14118 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
14119 * math/gen-auto-libm-tests.c (test_functions): Add mul.
14120 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
14121 (NARROW_MUL_ROUND_TO_ODD): Likewise.
14122 (NARROW_MUL_TRIVIAL): Likewise.
14123 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
14124 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
14125 macro.
14126 (__dmull): Likewise.
14127 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
14128 dmul.
14129 (CFLAGS-nldbl-dmul.c): New variable.
14130 (CFLAGS-nldbl-fmul.c): Likewise.
14131 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14132 __nldbl_dmull.
14133 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
14134 prototype.
14135 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
14136 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
14137 * math/auto-libm-test-in: Add tests of mul.
14138 * math/auto-libm-test-out-narrow-mul: New generated file.
14139 * math/libm-test-narrow-mul.inc: New file.
14140 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
14141 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
14142 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
14143 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
14144 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
14145 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
14146 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14147 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14148 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14149 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14150 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14151 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14152 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14153 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14154 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14155 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14156 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14157 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14158 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14159 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14160 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14161 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14162 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14163 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14184
14185 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14186
14187 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14188 with *%eax in call.
14189
14190 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14191
14192 * sysdeps/i386/ldsodefs.h: Removed.
14193 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14194 * sysdeps/x86/ldsodefs.h: This.
14195 (La_i86_regs): New.
14196 (La_i86_retval): Likewise.
14197 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14198 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14199
14200 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14201
14202 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14203 unnecessary testl.
14204
14205 2018-05-13 Alan Modra <amodra@gmail.com>
14206
14207 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14208 R_PARISC_TLS_DTPOFF32 reloc addend.
14209
14210 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14211
14212 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14213 * math/math.h: Restrict the prototype definition for the functions
14214 issignaling(_Float128) and iszero(_Float128); and template
14215 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14216 __HAVE_FLOAT128_UNLIKE_LDBL.
14217 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14218 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14219 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14220 __f128() constants; define the type _Float128 as long double;
14221 and reuse long double in __CFLOAT128.
14222
14223 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14224
14225 * sysdeps/generic/math_private.h: Do not include
14226 <math-barriers.h>.
14227 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14228 <math_private.h>.
14229 * math/fromfp.h: Include <math-barriers.h>.
14230 * math/math-narrow.h: Likewise.
14231 * math/s_nextafter.c: Likewise.
14232 * math/s_nexttowardf.c: Likewise.
14233 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14234 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14235 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14236 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14237 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14238 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14239 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14240 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14241 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14242 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14243 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14244 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14245 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14246 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14247 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14248 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14249 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14250 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14251 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14252 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14253 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14254 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14255 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14256 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14257 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14258 * sysdeps/ieee754/k_standardl.c: Likewise.
14259 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14260 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14261 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14262 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14263 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14264 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14265 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14266 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14267 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14268 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14269 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14270 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14271 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14272 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14273 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14274 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14275 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14276 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14277 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14278 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14279 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14280 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14281
14282 2018-05-11 Florian Weimer <fweimer@redhat.com>
14283
14284 Use 64-bit epoch values in the time zone file parser.
14285 * include/time.h (internal_time_t): Define.
14286 (__tzfile_compute): Use it.
14287 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14288 member.
14289 (transitions): Switch to internal_time_t.
14290 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14291 types.
14292 (__tzfile_compute): Use internal_time_t for timer argument. Check
14293 for truncation before calling __offtime.
14294
14295 2018-05-11 Florian Weimer <fweimer@redhat.com>
14296
14297 [BZ #23166]
14298 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14299 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14300 Likewise.
14301 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14302 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14303 export without --enable-obsolete-rpc.
14304 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14305 symbol. This should not have been exported, ever.
14306
14307 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14308
14309 [BZ #23152]
14310 * localedata/locales/gd_GB (abmon): Fix typo in May:
14311 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14312
14313 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14314
14315 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14316 Use multiple registers to copy data in loop tail.
14317
14318 * sysdeps/aarch64/multiarch/memmove_falkor.S
14319 (__memmove_falkor): Use multiple registers to move data in
14320 loop tail.
14321
14322 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14323
14324 * math/math-underflow.h: New file.
14325 * sysdeps/generic/math_private.h: Do not include <float.h>.
14326 (fabs_tg): Remove macro. Moved to math-underflow.h.
14327 (min_of_type_f): Likewise.
14328 (min_of_type_): Likewise.
14329 (min_of_type_l): Likewise.
14330 (min_of_type_f128): Likewise.
14331 (min_of_type): Likewise.
14332 (math_check_force_underflow): Likewise.
14333 (math_check_force_underflow_nonneg): Likewise.
14334 (math_check_force_underflow_complex): Likewise.
14335 * math/e_exp2_template.c: Include <math-underflow.h>.
14336 * math/k_casinh_template.c: Likewise.
14337 * math/s_catan_template.c: Likewise.
14338 * math/s_catanh_template.c: Likewise.
14339 * math/s_ccosh_template.c: Likewise.
14340 * math/s_cexp_template.c: Likewise.
14341 * math/s_clog10_template.c: Likewise.
14342 * math/s_clog_template.c: Likewise.
14343 * math/s_csin_template.c: Likewise.
14344 * math/s_csinh_template.c: Likewise.
14345 * math/s_csqrt_template.c: Likewise.
14346 * math/s_ctan_template.c: Likewise.
14347 * math/s_ctanh_template.c: Likewise.
14348 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14349 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14350 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14351 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14352 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14353 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14354 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14355 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14356 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14357 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14358 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14359 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14360 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14361 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14362 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14363 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14364 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14365 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14366 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14367 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14368 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14369 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14370 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14371 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14372 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14373 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14374 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14375 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14376 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14377 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14378 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14379 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14380 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14381 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14382 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14383 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14384 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14385 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14386 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14387 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14388 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14389 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14390 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14391 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14392 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14393 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14394 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14395 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14396 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14397 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14398 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14399 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14400 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14401 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14402 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14403 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14404 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14405 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14406 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14407 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14408 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14409 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14410 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14411 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14412 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14413 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14414 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14415 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14416 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14417 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14418 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14419 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14420 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14421 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14422 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14423 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14424 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14425 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14426 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14427 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14428 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14429 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14430 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14431 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14432
14433 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14434
14435 * sysdeps/generic/math-barriers.h: New file.
14436 * sysdeps/generic/math_private.h [!math_opt_barrier]
14437 (math_opt_barrier): Move to math-barriers.h.
14438 [!math_opt_barrier] (math_force_eval): Likewise.
14439 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14440 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14441 math-barriers.h.
14442 (math_force_eval): Likewise.
14443 * sysdeps/alpha/fpu/math-barriers.h: New file.
14444 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14445 math-barriers.h.
14446 (math_force_eval): Likewise.
14447 * sysdeps/x86/fpu/math-barriers.h: New file.
14448 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14449 math-barriers.h.
14450 (math_force_eval): Likewise.
14451 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14452 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14453 multiple-include guard for rename.
14454 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14455 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14456 math-barriers.h.
14457 (math_force_eval): Likewise.
14458
14459 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14460
14461 [BZ #22786]
14462 CVE-2018-11236
14463 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14464 computation.
14465 * stdlib/Makefile (test-bz22786): New test.
14466 * stdlib/test-bz22786.c: New test.
14467
14468 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14469
14470 * include/math-narrow-eval.h: New file. Contents moved from ....
14471 * sysdeps/generic/math_private.h: ... here.
14472 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14473 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14474 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14475 * stdlib/strtod_l.c: Likewise.
14476 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14477 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14478 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14479 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14480 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14481 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14482 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14483 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14484 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14485 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14486 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14487 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14488 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14489 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14490 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14491 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14492 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14493 * sysdeps/ieee754/flt-32/e_expf.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_lgammaf_r.c: Likewise.
14498 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14499 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14500 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14501 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14502 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14503 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14504 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14505
14506 2018-05-08 Andreas Schwab <schwab@suse.de>
14507
14508 * sysdeps/nptl/internaltypes.h: Fix comment.
14509
14510 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14511
14512 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14513 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14514 hidden.
14515
14516 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14517
14518 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14519 of I into loop header.
14520 * benchtests/bench-memmove-walk.c
14521 (test_main): Likewise.
14522
14523 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14524
14525 Revert:
14526 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14527 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14528
14529 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14530
14531 [BZ #20419]
14532 * elf/dl-load.c (open_verify): Fix stack overflow.
14533 * elf/Makefile (tst-big-note): New test.
14534 * elf/tst-big-note-lib.S: New.
14535 * elf/tst-big-note.c: New.
14536
14537 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14538
14539 * scripts/abilist.awk: Ignore absolute symbols.
14540 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14541 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14542 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14543 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14544 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14545 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14546 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14547 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14548 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14549 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14550 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14551 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14556 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14584 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14585 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14588 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14592 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14593 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14605 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14606 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14631 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14632 Likewise.
14633 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14646 Likewise.
14647 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14667 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14670 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14671 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14672 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14673 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14674 Likewise.
14675 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14687 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14688 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14689 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14690 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14691 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14692 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14693 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14695 Likewise.
14696 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14701 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14702 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14703 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14704 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14705 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14706 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14707 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14708 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14709 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14710 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14711 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14712 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14713 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14714 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14715 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14716 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14717 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14718 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14719 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14720 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14721 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14722 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14723 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14724 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14725 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14726 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14727 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14728 Likewise.
14729 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14730 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14731 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14733 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14734 Likewise.
14735 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14736 Likewise.
14737 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14739 Likewise.
14740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14741 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14742 Likewise.
14743 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14744 Likewise.
14745 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14747 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14748 Likewise.
14749 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14750 Likewise.
14751 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14752 Likewise.
14753 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14754 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14755 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14756 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14757 Likewise.
14758 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14759 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14760 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14761 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14762 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14763 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14764 Likewise.
14765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14767 Likewise.
14768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14769 Likewise.
14770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14771 Likewise.
14772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14773 Likewise.
14774 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14775 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14777 Likewise.
14778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14779 Likewise.
14780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14781 Likewise.
14782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14783 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14784 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14785 Likewise.
14786 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14787 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14788 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14789 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14790 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14791 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14792 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14793 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14794 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14795 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14796 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14797 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14798 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14799 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14800 Likewise.
14801 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14802 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14803 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14804 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14805 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14806 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14807 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14808 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14809 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14810 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14811 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14812 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14813 Likewise.
14814 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14815 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14816 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14817 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14818 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14819 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14820 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14821 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14822 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14823 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14824 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14825 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14826 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14827 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14828 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14829 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14830 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14831 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14832 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14833 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14834 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14835 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14836 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14837 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14838 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14839 Likewise.
14840 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14841 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14842 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14843 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14844 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14845 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14846 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14847 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14848 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14849 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14850 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14851 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14852 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14853 Likewise.
14854 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14855 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14856 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14857 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14858 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14859 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14860 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14861 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14862 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14863 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14864 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14865 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14866 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14867 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14868 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14869 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14870 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14871 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14872 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14873 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14874 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14875 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14876 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14877 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14878 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14879 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14880 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14881 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14882 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14883 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14884 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14885 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14886 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14887 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14888 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14889 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14890 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14891 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14892
14893 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14894
14895 [BZ #23137]
14896 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14897 Use atomic_load_acquire to load __tid.
14898
14899 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14900
14901 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14902 Restore the pointer into %rdx, after syscall and use %rdx,
14903 instead of %rsi, to restore context.
14904
14905 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14906
14907 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14908 Pop the pointer into %rdx after syscall and use %rdx, instead
14909 of %rsi, to restore context.
14910
14911 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14912
14913 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14914 handlers after setjmp.
14915 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14916 defined.
14917 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14918 <libc-pointer-arith.h>.
14919 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14920 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14921 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14922 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14923 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14924 * sysdeps/x86/__longjmp_cancel.S: New file.
14925 * sysdeps/x86/longjmp.c: Likewise.
14926 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14927
14928 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14929
14930 * NEWS: Add ustat.h deprecation entry.
14931 * bits/ustat.h: Remove file.
14932 * misc/sys/ustat.h: Likewise.
14933 * misc/ustat.h: Likewise.
14934 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14935 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14936 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14937 compatibility mode.
14938 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14939 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14940 generic Linux implementation.
14941
14942 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14943
14944 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14945 * math/w_expl_compat.c: Likewise.
14946 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14947
14948 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14949
14950 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14951
14952 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14953
14954 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14955 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14956 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14957 Remove.
14958 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14960 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14961 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14962 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14963 and SYSCALL_LL64.
14964
14965 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14966
14967 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14968
14969 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14970 * math/w_asin_template.c: Likewise.
14971 * math/w_atanh_template.c: Likewise.
14972
14973 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14974
14975 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14976 to powerpc/powerpc64/be for big-endian.
14977 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14978 little-endian.
14979
14980 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14981 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14982 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14983 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14984 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14985 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14986 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14987 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14988 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14989 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14990 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14991 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14992 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14993 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14994 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14995 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14996 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14997 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14998 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14999 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
15000 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
15001 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
15002 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
15003 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
15004 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
15005 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
15006 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
15007 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
15008 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
15009 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
15010 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
15011 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
15012
15013 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
15014 adjusted to imply powerpc64 and older processors on powerpc64/be.
15015 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
15016 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
15017 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
15018 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
15019 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
15020 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
15021 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
15022 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
15023 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
15024 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
15025 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
15026 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
15027 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
15028 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
15029 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
15030 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
15031 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
15032 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
15033 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
15034 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
15035 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
15036 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
15037 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
15038 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
15039 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
15040 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
15041 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
15042 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
15043 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
15044 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
15045 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
15046
15047 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
15048 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
15049 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
15050 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
15051
15052 * sysdeps/powerpc/powerpc64/be/Implies: New file.
15053 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
15054 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
15055 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
15056
15057 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
15058 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
15059 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
15060 * sysdeps/powerpc/powerpc64le/configure: Likewise.
15061 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
15062 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
15063 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
15064 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
15065 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
15066 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
15067 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
15068
15069 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
15070 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
15071 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
15072 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
15073 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
15074 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
15075 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
15076 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
15077 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
15078 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
15079 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
15080
15081 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
15082 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
15083 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
15084 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
15085 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
15086 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
15087 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
15088 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
15089 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
15090 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
15091 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
15092 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
15093
15094 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
15095 and adjusted to imply olders processors.
15096 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
15097 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
15098 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
15099 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
15100 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
15101 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
15102 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
15103 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
15104 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
15105 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
15106 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
15107
15108 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
15109 powerpc64/le.
15110 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
15111 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
15112
15113 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
15114 powerpc64le.
15115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
15116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
15117
15118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
15119 powerpc64/be.
15120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
15122 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
15123
15124 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
15125 powerpc64 and adjusted.
15126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
15127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
15128 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
15129 Likewise.
15130
15131 2018-04-27 Joseph Myers <joseph@codesourcery.com>
15132
15133 * sysdeps/tile: Remove.
15134 * sysdeps/unix/sysv/linux/tile: Likewise.
15135 * README (tilegx-*-linux-gnu): Remove from list of supported
15136 configurations.
15137 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
15138 contribution of support for generic Linux kernel syscall
15139 interface.
15140 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
15141 tilegx configurations.
15142 (Config.install_linux_headers): Do not handle tile.
15143 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
15144 in comment.
15145 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
15146 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15147 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15148 conditional undefine and redefine.
15149 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15150 in comment.
15151 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15152 conditional undefine and redefine.
15153
15154 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15155
15156 * signal/tst-sigaction.c: New file to test BZ #23069.
15157 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15158
15159 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15160
15161 [BZ #22766]
15162 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15163 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15164 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15165 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15166
15167 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15168
15169 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15170 _DIRENT_MATCHES_DIRENT64 is not defined.
15171 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15172 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15173 is defined.
15174 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15175 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15176
15177 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15178
15179 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15180 version to GCC 8 branch.
15181
15182 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15183
15184 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15185 (check_no_hidden): Use type of original function when declaring
15186 alias.
15187
15188 * sysdeps/unix/sysv/linux/sys/ptrace.h
15189 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15190 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15191 (struct __ptrace_seccomp_metadata): New type.
15192 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15193 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15194 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15195 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15196 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15197 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15198 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15199 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15200 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15201 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15202 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15203 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15204 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15205 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15206 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15207 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15208
15209 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15210
15211 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15212 defined.
15213 * dirent/versionsort.c (versionsort): Likewise.
15214 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15215 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15216 * dirent/versionsort64.c (versionsort64): Likewise.
15217 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15218 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15219 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15220 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15221 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15222 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15223 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15224 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15225 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15226 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15227 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15228 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15229 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15230 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15231
15232 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15233
15234 * elf/elf.h (NT_PPC_PKEY): New macro.
15235
15236 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15237
15238 [BZ #23094]
15239 * localedata/locales/hr_HR: fix thousands_sep and
15240 mon_thousands_sep
15241
15242 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15243
15244 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15245 (XTABS): Define to TAB3.
15246
15247 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15248
15249 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15250
15251 * dirent/scandir-tail-common.c: New file.
15252 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15253 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15254 * dirent/scandir.c: Use scandir-tail-common.c.
15255 * dirent/scandirat.c: Likewise.
15256 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15257 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15258 if _DIRENT_MATCHES_DIRENT64 is defined.
15259 * dirent/scandirat64.c (scandirat64): Likewise.
15260 * include/dirent.h (__scandir_tail): Only define iff
15261 _DIRENT_MATCHES_DIRENT64 is not defined.
15262 (__scandir64_tail): Define regardless.
15263 (__scandirat, scandirat64): Remove libc_hidden_proto.
15264 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15265 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15267 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15268 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15269 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15270 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15271
15272 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15273
15274 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15275 New macro.
15276 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15277 Increase to 24.
15278 (_dl_aarch64_cap_flags): Add asimdfhm.
15279
15280 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15281
15282 * sysdeps/nios2/libm-test-ulps: Update.
15283
15284 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15285
15286 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15287 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15288
15289 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15290 requirements.
15291 (_DIRENT_MATCHES_DIRENT64): Undef
15292 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15293 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15294 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15295 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15296 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15297 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15298 use getdents64 syscalls as base.
15299 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15300 symbol if required.
15301 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15302 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15303 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15304 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15305 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15306 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15307 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15308 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15309 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15310 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15311 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15312
15313 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15314
15315 * scripts/test_printers_common.py (init_test): Disable lock elision.
15316
15317 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15318
15319 * math/test-tgmath.c (count_double, count_float,
15320 count_ldouble, count_cdouble, count_cfloat,
15321 count_cldouble): Use volatile int.
15322
15323 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15324
15325 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15326 (conformtest-xfail-conds): Add i386-gnu.
15327 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15328 i386-gnu.
15329 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15330 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15331 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15332 msqid_ds.msg_lrpid): Likewise.
15333 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15334 Likewise.
15335 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15336 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15337 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15338 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15339 unsigned int.
15340 (struct statvfs64): Likewise.
15341 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15342 Likewise.
15343 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15344 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15345 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15346 instead of wait_queue.
15347 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15348 instead of vm_area_struct.
15349 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15350 struct sched_param definition to it.
15351 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15352 * bits/types/struct_sched_param.h: New file.
15353 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15354 <bits/types/struct_sched_param.h> instead of <sched.h>.
15355 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15356 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15357 generic version but include <bits/pthreadtypes.h> to make struct
15358 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15359 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15360 non-compliant.
15361 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15362 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15363 [__USE_XOPEN] (OFDEL): New macro.
15364 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15365 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15366 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15367 prototypes.
15368 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15369 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15370 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15371 non-compliant.
15372 * sysdeps/i386/sys/ucontext.h: Likewise.
15373 * sysdeps/m68k/sys/ucontext.h: Likewise.
15374 * sysdeps/mips/sys/ucontext.h: Likewise.
15375 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15376 * sysdeps/mach/hurd/i386/Makefile
15377 (test-xfail-POSIX/fcntl.h/conform): Add.
15378 (test-xfail-POSIX/signal.h/conform): Add.
15379 (test-xfail-POSIX/semaphore.h/conform): Add.
15380 (test-xfail-POSIX/regex.h/conform): Add.
15381 (test-xfail-POSIX/aio.h/conform): Add.
15382 (test-xfail-POSIX/mqueue.h/conform): Add.
15383 (test-xfail-POSIX/sys/types.h/conform): Add.
15384 (test-xfail-UNIX98/fcntl.h/conform): Add.
15385 (test-xfail-UNIX98/netdb.h/conform): Add.
15386 (test-xfail-UNIX98/signal.h/conform): Add.
15387 (test-xfail-UNIX98/semaphore.h/conform): Add.
15388 (test-xfail-UNIX98/regex.h/conform): Add.
15389 (test-xfail-UNIX98/aio.h/conform): Add.
15390 (test-xfail-UNIX98/ftw.h/conform): Add.
15391 (test-xfail-UNIX98/mqueue.h/conform): Add.
15392 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15393 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15394 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15395 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15396 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15397 (test-xfail-UNIX98/sys/types.h/conform): Add.
15398 (test-xfail-UNIX98/stdlib.h/conform): Add.
15399 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15400 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15401 (test-xfail-POSIX2008/netdb.h/conform): Add.
15402 (test-xfail-POSIX2008/signal.h/conform): Add.
15403 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15404 (test-xfail-POSIX2008/regex.h/conform): Add.
15405 (test-xfail-POSIX2008/aio.h/conform): Add.
15406 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15407 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15408 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15409 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15410 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15411 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15412 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15413 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15414 (test-xfail-XOPEN2K/signal.h/conform): Add.
15415 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15416 (test-xfail-XOPEN2K/regex.h/conform): Add.
15417 (test-xfail-XOPEN2K/aio.h/conform): Add.
15418 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15419 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15420 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15421 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15422 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15423 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15424 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15425 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15426 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15427 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15428 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15429 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15430 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15431 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15432 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15433 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15434 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15435 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15436 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15437 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15438 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15439 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15440 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15441 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15442 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15443 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15444 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15445 i386-gnu.
15446 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15447 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15448
15449 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15450
15451 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15452 --enable-obsolete for powerpc-linux-gnuspe.
15453
15454 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15455
15456 * conform/data/sys/un.h-data: Allow sun_ prefix.
15457 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15458 prototypes.
15459 * sysdeps/mach/include/mach.h: Likewise.
15460 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15461 * sysdeps/mach/include/mach_error.h: Likewise.
15462
15463 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15464
15465 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15466 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15467 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15468 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15469
15470 2018-04-16 Andreas Schwab <schwab@suse.de>
15471
15472 [BZ #19527]
15473 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15474
15475 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15476
15477 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15478 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15479
15480 2018-04-12 DJ Delorie <dj@redhat.com>
15481
15482 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15483 version to 4.16.
15484
15485 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15486
15487 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15488 (struct kernel_sigaction): Use the same definition on 31bit as is used
15489 on 64bit.
15490
15491 2018-04-09 Florian Weimer <fweimer@redhat.com>
15492
15493 [BZ #23037]
15494 * resolv/res_send.c (send_dg): Use designated initializers instead
15495 of assignment to zero-initialize other fields of struct mmsghdr.
15496
15497 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15498
15499 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15500 __READDIR_ALIAS): Undefine after usage.
15501 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15502 __READDIR_R_ALIAS): Likewise.
15503 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15504 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15505 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15506 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15507 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15508 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15509 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15510 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15511 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15512 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15513 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15514 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15515 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15516 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15517 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15518 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15519 * sysdeps/unix/sysv/linux/readdir.c: New file.
15520 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15521 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15522 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15523
15524 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15525
15526 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15527
15528 * manual/charset.texi (Converting a Character): Fix typo.
15529
15530 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15531
15532 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15533
15534 * sysdeps/arm/libm-test-ulps: Update.
15535
15536 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15537 as base implementation.
15538 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15539 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15540 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15541 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15542 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15543 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15544 remove unrequired definitions and update comments.
15545 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15546 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15547 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15548 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15549 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15550 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15551 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15552 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15553 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15554 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15555 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15556 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15557 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15558 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15559 and RESET_SA_RESTORER hooks.
15560
15561 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15562
15563 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15564
15565 2018-04-05 Florian Weimer <fweimer@redhat.com>
15566
15567 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15568 integer overflow, memory leak on error, and indeterminate errno
15569 value. Add a null wide character to terminate the result string.
15570 * manual/charset.texi (Converting a Character): Mention embedded
15571 null bytes in the mbrtowc input string. Explain what happens in
15572 the -2 result case. Do not claim that mbrtowc is simple or
15573 obvious to use. Adjust the description of the code example. Use
15574 @code, not @var, for concrete variables.
15575
15576 2018-04-05 Florian Weimer <fweimer@redhat.com>
15577
15578 * manual/examples/mbstouwcs.c: New file.
15579 * manual/charset.texi (Converting a Character): Include it.
15580
15581 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15582
15583 * include/dirent.h (dirfd): Add hidden proto.
15584 * dirent/dirfd.c (dirfd): Add hidden def.
15585 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15586 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15587
15588 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15589
15590 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15591 sin, cos and sincos to 1 ULP.
15592
15593 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15594
15595 [BZ #19818]
15596 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15597 symbols.
15598 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15599 * elf/tst-absolute-sym.c: New file.
15600 * elf/tst-absolute-sym-lib.c: New file.
15601 * elf/tst-absolute-sym-lib.lds: New file.
15602 * elf/Makefile (tests): Add `tst-absolute-sym'.
15603 (modules-names): Add `tst-absolute-sym-lib'.
15604 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15605 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15606 ($(objpfx)tst-absolute-sym): New dependency.
15607
15608 [BZ #19818]
15609 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15610 parameter.
15611 (SYMBOL_ADDRESS): New macro.
15612 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15613 SYMBOL_ADDRESS for symbol address calculation.
15614 * elf/dl-runtime.c (_dl_fixup): Likewise.
15615 (_dl_profile_fixup): Likewise.
15616 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15617 * elf/rtld.c (dl_main): Likewise.
15618 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15619 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15620 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15621 (elf_machine_rela): Likewise.
15622 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15623 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15624 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15625 (elf_machine_rela): Likewise.
15626 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15627 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15628 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15629 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15630 Likewise.
15631 (elf_machine_reloc): Likewise.
15632 (elf_machine_got_rel): Likewise.
15633 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15634 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15635 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15636 Likewise.
15637 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15638 Likewise.
15639 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15640 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15641 Likewise.
15642 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15643 Likewise.
15644 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15645 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15646 Likewise.
15647 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15648 Likewise.
15649 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15650 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15651
15652 2018-04-04 Zack Weinberg <zackw@panix.com>
15653
15654 * sysdeps/generic/internal-signals.h: Include signal.h,
15655 sigsetops.h, and stdbool.h.
15656 (__libc_signal_block_all): Actually block all signals.
15657 (__libc_signal_block_app): Likewise.
15658 (__libc_signal_restore_set): Actually restore the signal mask.
15659
15660 2018-04-04 Florian Weimer <fweimer@redhat.com>
15661
15662 inet: Actually build and run tst-deadline.
15663 * inet/Makefile (tests-internal): Add tst-deadline and do not
15664 overwrite the variable.
15665 (tests-static-internal): Remove variable.
15666
15667 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15668
15669 [BZ #22947]
15670 * bits/uio-ext.h (RWF_APPEND): New.
15671 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15672 * manual/llio.texi: Document RWF_APPEND.
15673 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15674 (RWF_SUPPORTED): Add RWF_APPEND.
15675
15676 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15677
15678 [BZ #22391]
15679 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15680 check for internal nptl signals.
15681 * nptl/sigaction.c (__sigaction): Likewise.
15682 * signal/sigaddset.c (sigaddset): Likewise.
15683 * signal/sigdelset.c (sigdelset): Likewise.
15684 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15685 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15686 value.
15687 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15688 to filter out internal nptl signals.
15689 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15690 also check realtime signals using standard macros.
15691 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15692 __is_internal_signal, __libc_signal_block_all,
15693 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15694 * sysdeps/nptl/sigfillset.c: Remove file.
15695 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15696 Change return to bool.
15697 (__clear_internal_signals): Remove SIGTIMER clean since it is
15698 equal to SIGCANEL on Linux.
15699 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15700 signal set was constructed using standard functions.
15701
15702 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15703
15704 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15705 ifname is too long.
15706 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15707 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15708 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15709 hidden def.
15710 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15711 * signal/sigaddset.c: Include <sigsetopts.h>.
15712 * signal/sigdelset.c: Likewise.
15713
15714 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15715
15716 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15717 (__cos): Likewise.
15718 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15719 logic as sin and cos.
15720
15721 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15722
15723 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15724 inputs. Return correct sign.
15725 (do_sincos): Remove small input check before do_sin, let do_sin set
15726 the sign.
15727 (__sin): Likewise.
15728 (__cos): Likewise.
15729
15730 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15731
15732 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15733 (do_cos_slow): Likewise.
15734 (do_sin_slow): Likewise.
15735 (reduce_and_compute): Likewise.
15736 (slow): Likewise.
15737 (slow1): Likewise.
15738 (slow2): Likewise.
15739 (sloww): Likewise.
15740 (sloww1): Likewise.
15741 (sloww2): Likewise.
15742 (bslow): Likewise.
15743 (bslow1): Likewise.
15744 (bslow2): Likewise.
15745 (cslow2): Likewise.
15746
15747 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15748
15749 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15750 (do_cos): Remove corp parameter and calculations.
15751 (do_sin): Likewise.
15752 (do_sincos): Remove cor variable.
15753 (__sin): Use do_sincos for huge inputs.
15754 (__cos): Likewise.
15755 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15756 (reduce_and_compute_sincos): Remove unused function.
15757
15758 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15759
15760 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15761 reduce_sincos, improve accuracy to 136 bits.
15762 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15763 (__sin): Use improved reduction and simplified do_sincos calculation.
15764 (__cos): Likewise.
15765 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15766
15767 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15768
15769 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15770 (do_sincos_2): Likewise.
15771 (__sin): Remove middle range reduction case.
15772 (__cos): Likewise.
15773 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15774 reduction case.
15775
15776 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15777
15778 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15779 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15780 inputs.
15781 (__cos): Likewise.
15782 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15783
15784 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15785
15786 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15787 version to 4.16
15788
15789 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15790
15791 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15792 Remove definitions.
15793 (opendir_oflags): Use O_DIRECTORY regardless.
15794 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15795 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15796
15797 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15798
15799 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15800 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15801 macros.
15802 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15803 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15804 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15805 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15806 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15807 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15808
15809 * htl/Makefile: Bump licence to LGPL 2.1+.
15810 * htl/alloca_cutoff.c: Likewise.
15811 * htl/cthreads-compat.c: Likewise.
15812 * htl/lockfile.c: Likewise.
15813 * htl/pt-alloc.c: Likewise.
15814 * htl/pt-cancel.c: Likewise.
15815 * htl/pt-cleanup.c: Likewise.
15816 * htl/pt-create.c: Likewise.
15817 * htl/pt-dealloc.c: Likewise.
15818 * htl/pt-detach.c: Likewise.
15819 * htl/pt-exit.c: Likewise.
15820 * htl/pt-getattr.c: Likewise.
15821 * htl/pt-initialize.c: Likewise.
15822 * htl/pt-internal.h: Likewise.
15823 * htl/pt-join.c: Likewise.
15824 * htl/pt-self.c: Likewise.
15825 * htl/pt-setcancelstate.c: Likewise.
15826 * htl/pt-setcanceltype.c: Likewise.
15827 * htl/pt-sigmask.c: Likewise.
15828 * htl/pt-spin-inlines.c: Likewise.
15829 * htl/pt-testcancel.c: Likewise.
15830 * htl/pt-yield.c: Likewise.
15831 * htl/tests/test-1.c: Likewise.
15832 * htl/tests/test-10.c: Likewise.
15833 * htl/tests/test-11.c: Likewise.
15834 * htl/tests/test-12.c: Likewise.
15835 * htl/tests/test-13.c: Likewise.
15836 * htl/tests/test-14.c: Likewise.
15837 * htl/tests/test-15.c: Likewise.
15838 * htl/tests/test-16.c: Likewise.
15839 * htl/tests/test-17.c: Likewise.
15840 * htl/tests/test-2.c: Likewise.
15841 * htl/tests/test-3.c: Likewise.
15842 * htl/tests/test-4.c: Likewise.
15843 * htl/tests/test-5.c: Likewise.
15844 * htl/tests/test-6.c: Likewise.
15845 * htl/tests/test-7.c: Likewise.
15846 * htl/tests/test-8.c: Likewise.
15847 * htl/tests/test-9.c: Likewise.
15848 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15849 * sysdeps/htl/bits/cancelation.h: Likewise.
15850 * sysdeps/htl/bits/pthread-np.h: Likewise.
15851 * sysdeps/htl/bits/pthread.h: Likewise.
15852 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15853 * sysdeps/htl/bits/semaphore.h: Likewise.
15854 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15855 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15856 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15857 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15858 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15859 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15860 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15861 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15862 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15863 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15864 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15865 * sysdeps/htl/old_pt-atfork.c: Likewise.
15866 * sysdeps/htl/pt-atfork.c: Likewise.
15867 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15868 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15869 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15870 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15871 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15872 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15873 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15874 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15875 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15876 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15877 * sysdeps/htl/pt-attr-init.c: Likewise.
15878 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15879 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15880 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15881 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15882 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15883 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15884 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15885 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15886 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15887 * sysdeps/htl/pt-attr.c: Likewise.
15888 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15889 * sysdeps/htl/pt-barrier-init.c: Likewise.
15890 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15891 * sysdeps/htl/pt-barrier.c: Likewise.
15892 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15893 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15894 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15895 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15896 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15897 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15898 * sysdeps/htl/pt-cond-init.c: Likewise.
15899 * sysdeps/htl/pt-cond-signal.c: Likewise.
15900 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15901 * sysdeps/htl/pt-cond-wait.c: Likewise.
15902 * sysdeps/htl/pt-cond.c: Likewise.
15903 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15904 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15905 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15906 * sysdeps/htl/pt-condattr-init.c: Likewise.
15907 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15908 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15909 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15910 * sysdeps/htl/pt-equal.c: Likewise.
15911 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15912 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15913 * sysdeps/htl/pt-getschedparam.c: Likewise.
15914 * sysdeps/htl/pt-getspecific.c: Likewise.
15915 * sysdeps/htl/pt-init-specific.c: Likewise.
15916 * sysdeps/htl/pt-key-create.c: Likewise.
15917 * sysdeps/htl/pt-key-delete.c: Likewise.
15918 * sysdeps/htl/pt-key.h: Likewise.
15919 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15920 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15921 * sysdeps/htl/pt-mutex-init.c: Likewise.
15922 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15923 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15924 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15925 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15926 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15927 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15928 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15929 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15930 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15931 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15932 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15933 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15934 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15935 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15936 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15937 * sysdeps/htl/pt-mutexattr.c: Likewise.
15938 * sysdeps/htl/pt-once.c: Likewise.
15939 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15940 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15941 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15942 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15943 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15944 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15945 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15946 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15947 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15948 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15949 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15950 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15951 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15952 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15953 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15954 * sysdeps/htl/pt-setschedparam.c: Likewise.
15955 * sysdeps/htl/pt-setschedprio.c: Likewise.
15956 * sysdeps/htl/pt-setspecific.c: Likewise.
15957 * sysdeps/htl/pt-spin.c: Likewise.
15958 * sysdeps/htl/pt-startup.c: Likewise.
15959 * sysdeps/htl/pthread.h: Likewise.
15960 * sysdeps/htl/sem-close.c: Likewise.
15961 * sysdeps/htl/sem-destroy.c: Likewise.
15962 * sysdeps/htl/sem-getvalue.c: Likewise.
15963 * sysdeps/htl/sem-init.c: Likewise.
15964 * sysdeps/htl/sem-open.c: Likewise.
15965 * sysdeps/htl/sem-post.c: Likewise.
15966 * sysdeps/htl/sem-timedwait.c: Likewise.
15967 * sysdeps/htl/sem-trywait.c: Likewise.
15968 * sysdeps/htl/sem-unlink.c: Likewise.
15969 * sysdeps/htl/sem-wait.c: Likewise.
15970 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15971 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15972 * sysdeps/mach/htl/pt-block.c: Likewise.
15973 * sysdeps/mach/htl/pt-spin.c: Likewise.
15974 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15975 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15976 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15977 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15978 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15979 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15980 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15981 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15982 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15983 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15984 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15985 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15986 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15987 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15988 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15989 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15990 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15991 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15992 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15993 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15994 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15995 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15996 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15997 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15998 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15999 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
16000 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
16001 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
16002 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
16003 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
16004 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
16005 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
16006 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
16007 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
16008 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
16009 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
16010 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
16011 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
16012 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
16013 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
16014 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
16015 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
16016 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
16017
16018 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
16019 * README: Remove the mention of out-of-tree patches needed for
16020 GNU/Hurd.
16021
16022 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
16023 (UTIME_NOW, UTIME_OMIT): Define macros.
16024
16025 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
16026 instead of pthread_detach.
16027 (__cthread_fork): Call __pthread_create instead of pthread_create.
16028 (__cthread_keycreate): Call __pthread_key_create instead of
16029 pthread_key_create.
16030 (__cthread_getspecific): Call __pthread_getspecific instead of
16031 pthread_getspecific.
16032 (__cthread_setspecific): Call __pthread_setspecific instead of
16033 pthread_setspecific.
16034 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
16035 __pthread_mutex_unlock instead of pthread_mutex_lock and
16036 pthread_mutex_unlock.
16037 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
16038 ___pthread_get_cleanup_stack.
16039 (__pthread_get_cleanup_stack): New strong alias.
16040 * htl/pt-create.c: Include <pthreadP.h>.
16041 (entry_point): Call __pthread_exit instead of pthread_exit.
16042 (pthread_create): Rename to __pthread_create.
16043 (pthread_create): New strong alias.
16044 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
16045 (pthread_detach): New strong alias.
16046 (__pthread_detach): Call __pthread_cond_broadcast instead of
16047 pthread_cond_broadcast.
16048 * htl/pt-exit.c: Include <pthreadP.h>.
16049 (__pthread_exit): Call __pthread_setcancelstate and
16050 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
16051 __pthread_get_cleanup_stack.
16052 * htl/pt-testcancel.c: Include <pthreadP.h>.
16053 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
16054 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
16055 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
16056 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
16057 pthread_attr_getstacksize.
16058 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
16059 Rename to __pthread_attr_getstackaddr.
16060 (pthread_attr_getstackaddr): New strong alias.
16061 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
16062 Rename to __pthread_attr_getstacksize.
16063 (pthread_attr_getstacksize): New strong alias.
16064 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
16065 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
16066 (pthread_attr_setstack): New strong alias.
16067 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
16068 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
16069 pthread_attr_getstacksize, pthread_attr_setstacksize and
16070 pthread_attr_setstackaddr.
16071 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
16072 Rename to __pthread_attr_setstackaddr.
16073 (pthread_attr_setstackaddr): New strong alias.
16074 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
16075 Rename to __pthread_attr_setstacksize.
16076 (pthread_attr_setstacksize): New strong alias.
16077 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
16078 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
16079 pthread_exit.
16080 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
16081 (__pthread_key_create): New hidden def.
16082 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
16083 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
16084 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
16085 __pthread_exit, __pthread_key_create, __pthread_getspecific,
16086 __pthread_setspecific, __pthread_setcancelstate,
16087 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
16088 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
16089 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
16090 declarations.
16091 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
16092 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
16093 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
16094 (pthread_attr_setstackaddr): New strong alias.
16095 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
16096 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
16097 (pthread_attr_setstacksize): New strong alias.
16098 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
16099 (call_exit): Call __pthread_exit instead of pthread_exit.
16100 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
16101 (_pthread_mutex_init): New hidden definition.
16102 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
16103 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
16104 instead of pthread_attr_init and pthread_attr_setstack.
16105
16106 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
16107 __vm_deallocate instead of vm_allocate and vm_deallocate.
16108 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
16109 setenv.
16110 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
16111 of geteuid.
16112 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
16113 strdup.
16114 * hurd/siginfo.c: Include <libioP.h>.
16115 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
16116 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
16117 munmap.
16118 * mach/devstream.c: Include <libioP.h>.
16119 (dealloc_ref): Call __mach_port_deallocate instead of
16120 mach_port_deallocate.
16121 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
16122 Call __mach_port_deallocate instead of mach_port_deallocate.
16123 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
16124 pathconf.
16125 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
16126 munmap.
16127 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
16128 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
16129 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
16130 of munmap.
16131 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
16132 of close.
16133 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
16134 instead of sysconf.
16135 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
16136 __clock_gettime instead of clock_gettime.
16137 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
16138 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
16139 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
16140 * sysdeps/unix/bsd/stty.c (stty): Likewise.
16141 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
16142 tcgetattr.
16143 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
16144 __clock_gettime and __nanosleep instead of clock_gettime and
16145 nanosleep.
16146 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16147 __hurd_catch_signal.
16148 (hurd_catch_signal): New strong alias.
16149 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16150 __hurd_catch_signal instead of hurd_catch_signal.
16151 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16152 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16153 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16154 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16155 (_hurd_thread_sigstate): Add hidden def.
16156 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16157 mutex_unlock.
16158 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16159 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16160 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16161 __hurd_file_name_path_lookup.
16162 (hurd_file_name_path_lookup): New strong alias.
16163 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16164 hurd_file_name_path_lookup.
16165 * mach/errstring.c (mach_error_type): Add hidden def.
16166 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16167 * mach/mutex-init.c (__mutex_init): Add hidden def.
16168 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16169 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16170 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16171 * sysdeps/mach/hurd/getcwd.c
16172 (_hurd_canonicalize_directory_name_internal): Rename to
16173 __hurd_canonicalize_directory_name_internal.
16174 (_hurd_canonicalize_directory_name_internal): New strong alias.
16175 (__canonicalize_directory_name_internal, __getcwd): Call
16176 __hurd_canonicalize_directory_name_internal instead of
16177 _hurd_canonicalize_directory_name_internal.
16178 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16179 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16180 hidden defs.
16181 * sysdeps/hurd/include/hurd.h: New file.
16182 * sysdeps/hurd/include/hurd/fd.h: New file.
16183 * sysdeps/hurd/include/hurd/signal.h: New file.
16184 * sysdeps/mach/include/lock-intern.h: New file.
16185 * sysdeps/mach/include/mach.h: New file.
16186 * sysdeps/mach/include/mach/mig_support.h: New file.
16187 * sysdeps/mach/include/mach_error.h: New file.
16188 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16189 prototype.
16190 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16191 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16192 _HEADER_H_HIDDEN_DEF macro.
16193 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16194 _hurd_fd_error_signal): Add hidden prototype.
16195 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16196 hidden def.
16197 * libio/iolibio.h (_IO_puts): New hidden prototype.
16198 * libio/ioputs.c (_IO_puts): New hidden def.
16199 * sysdeps/mach/hurd/localplt.data: New file.
16200
16201 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16202 Amos Jeffries <squid3@treenet.co.nz>
16203 David Michael <fedora.dm0@gmail.com>
16204 Marco Gerards <marco@gnu.org>
16205 Marcus Brinkmann <marcus@gnu.org>
16206 Neal H. Walfield <neal@gnu.org>
16207 Pino Toscano <toscano.pino@tiscali.it>
16208 Richard Braun <rbraun@sceen.net>
16209 Roland McGrath <roland@gnu.org>
16210 Samuel Thibault <samuel.thibault@ens-lyon.org>
16211 Thomas DiModica <ricinwich@yahoo.com>
16212 Thomas Schwinge <tschwinge@gnu.org>
16213
16214 * htl: New directory.
16215 * sysdeps/htl: New directory.
16216 * sysdeps/hurd/htl: New directory.
16217 * sysdeps/i386/htl: New directory.
16218 * sysdeps/mach/htl: New directory.
16219 * sysdeps/mach/hurd/htl: New directory.
16220 * sysdeps/mach/hurd/i386/htl: New directory.
16221 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16222 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16223 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16224
16225 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16226
16227 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16228 signals in thread created for runing timers.
16229
16230 2018-04-01 Florian Weimer <fweimer@redhat.com>
16231
16232 * support/support_format_addrinfo.c (support_format_addrinfo):
16233 Include unknown error number in formatted result.
16234
16235 2018-03-29 Florian Weimer <fweimer@redhat.com>
16236
16237 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16238 capture SIGBUS.
16239
16240 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16241
16242 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16243 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16244 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16245 (__ASSUME_CLONE_BACKWARDS): Define.
16246
16247 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16248
16249 [BZ #23024]
16250 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16251 early when linux sentinel value is set.
16252
16253 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16254
16255 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16256
16257 2018-03-27 Andreas Schwab <schwab@suse.de>
16258
16259 [BZ #23005]
16260 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16261 allocation of private copy of nsaddr_list fails.
16262
16263 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16264
16265 [BZ #16552]
16266 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16267 * sysdeps/unix/sysv/linux/umount.c: ... here.
16268 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16269 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16270 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16271 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16272 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16273 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16274 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16275
16276 2018-03-26 Andreas Schwab <schwab@suse.de>
16277
16278 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16279 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16280 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16281 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16282 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16283 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16284 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16285 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16286 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16287 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16288 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16289 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16290 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16291 (R_RISCV_NUM): Define.
16292
16293 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16294
16295 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16296 TLS declaration of errno.
16297 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16298 __libc_setup_tls.
16299 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16300 (ARCH_SETUP_TLS): Likewise.
16301 * sysdeps/mach/hurd/libc-start.h: New file copied from
16302 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16303 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16304 instead of __libc_setup_tls.
16305 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16306 __libc_setup_tls before initializing libpthread and running _hurd_init
16307 which starts the signal thread.
16308 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16309 Declare function.
16310 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16311
16312 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16313
16314 [BZ #22998]
16315 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16316 after it is defined.
16317
16318 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16319 Max Horn <max@quendi.de>
16320
16321 [BZ #22644]
16322 CVE-2017-18269
16323 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16324 branch conditions.
16325 * string/test-memmove.c (do_test2): New testcase.
16326
16327 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16328
16329 * sysdeps/generic/frame.h: Remove file.
16330 * sysdeps/arm/frame.h: Likewise.
16331 * sysdeps/hppa/frame.h: Likewise.
16332 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16333 macro.
16334 (GET_FRAME): Likewise.
16335 (GET_STACK): Likewise.
16336 (CALL_SIGHANDLER): Likewise.
16337 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16338 Likewise.
16339 (GET_FRAME): Likewise.
16340 (GET_STACK): Likewise.
16341 (CALL_SIGHANDLER): Likewise.
16342 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16343 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16344 (GET_FRAME): Likewise.
16345 (GET_STACK): Likewise.
16346 (CALL_SIGHANDLER): Likewise.
16347 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16348 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16349 (GET_FRAME): Likewise.
16350 (GET_STACK): Likewise.
16351 (ADVANCE_STACK_FRAME): Likewise.
16352 (CALL_SIGHANDLER): Likewise.
16353 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16354 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16355 (GET_FRAME): Likewise.
16356 (GET_STACK): Likewise.
16357 (CALL_SIGHANDLER): Likewise.
16358 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16359 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16360 (GET_FRAME): Likewise.
16361 (GET_STACK): Likewise.
16362 (CALL_SIGHANDLER): Likewise.
16363 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16364 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16365 (GET_FRAME): Likewise.
16366 (GET_STACK): Likewise.
16367 (CALL_SIGHANDLER): Likewise.
16368 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16369 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16370 (GET_FRAME): Likewise.
16371 (GET_STACK): Likewise.
16372 (CALL_SIGHANDLER): Likewise.
16373 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16374 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16375 (GET_FRAME): Likewise.
16376 (GET_STACK): Likewise.
16377 (CALL_SIGHANDLER): Likewise.
16378 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16379 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16380 (GET_FRAME): Likewise.
16381 (GET_STACK): Likewise.
16382 (CALL_SIGHANDLER): Likewise.
16383 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16384 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16385 (GET_FRAME): Likewise.
16386 (GET_STACK): Likewise.
16387 (CALL_SIGHANDLER): Likewise.
16388 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16389 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16390 (GET_FRAME): Likewise.
16391 (GET_STACK): Likewise.
16392 (CALL_SIGHANDLER): Likewise.
16393 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16394 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16395 (GET_FRAME): Likewise.
16396 (GET_STACK): Likewise.
16397 (CALL_SIGHANDLER): Likewise.
16398 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16399 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16400 (FIRST_FRAME_POINTER): Likewise.
16401 (ADVANCE_STACK_FRAME): Likewise.
16402 (GET_STACK): Likewise.
16403 (GET_FRAME): Likewise.
16404 (CALL_SIGHANDLER): Likewise.
16405 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16406 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16407 (ADVANCE_STACK_FRAME): Likewise.
16408 (GET_STACK): Likewise.
16409 (GET_FRAME): Likewise.
16410 (CALL_SIGHANDLER): Likewise.
16411 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16412 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16413 (GET_FRAME): Likewise.
16414 (GET_STACK): Likewise.
16415 (CALL_SIGHANDLER): Likewise.
16416 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16417 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16418 (GET_FRAME): Likewise.
16419 (GET_STACK): Likewise.
16420 (CALL_SIGHANDLER): Likewise.
16421
16422 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16423
16424 * sysdeps/x86_64/backtrace.c: Move to ....
16425 * debug/backtrace.c: ... here.
16426 * sysdeps/aarch64/backtrace.c: Remove file.
16427 * sysdeps/alpha/backtrace.c: Likewise.
16428 * sysdeps/hppa/backtrace.c: Likewise.
16429 * sysdeps/ia64/backtrace.c: Likewise.
16430 * sysdeps/mips/backtrace.c: Likewise.
16431 * sysdeps/nios2/backtrace.c: Likewise.
16432 * sysdeps/riscv/backtrace.c: Likewise.
16433 * sysdeps/sh/backtrace.c: Likewise.
16434 * sysdeps/tile/backtrace.c: Likewise.
16435
16436 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16437
16438 [BZ #22987]
16439 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16440 function.
16441 (fdimf): Likewise.
16442 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16443
16444 [BZ #17343]
16445 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16446 possibly overflowing computations.
16447
16448 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16449
16450 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16451 values from Linux-specific section now that it is in the GNU section.
16452 * sysdeps/gnu/errlist.c: Regenerate.
16453
16454 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16455
16456 * math/Makefile (libm-narrow-fns): Add sub.
16457 (libm-test-funcs-narrow): Likewise.
16458 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16459 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16460 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16461 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16462 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16463 (NARROW_SUB_TRIVIAL): Likewise.
16464 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16465 macro.
16466 (__dsubl): Likewise.
16467 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16468 dsub.
16469 (CFLAGS-nldbl-dsub.c): New variable.
16470 (CFLAGS-nldbl-fsub.c): Likewise.
16471 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16472 __nldbl_dsubl.
16473 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16474 prototype.
16475 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16476 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16477 * math/auto-libm-test-in: Add tests of sub.
16478 * math/auto-libm-test-out-narrow-sub: New generated file.
16479 * math/libm-test-narrow-sub.inc: New file.
16480 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16481 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16482 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16483 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16484 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16485 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16486 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16487 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16488 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16489 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16490 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16491 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16492 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16493 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16494 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16495 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16496 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16497 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16498 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16499 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16500 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16501 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16502 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16503 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16504 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16505 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16506 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16507 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16508 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16509 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16510 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16511 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16512 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16514 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16515 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16516 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16517 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16518 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16519 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16520 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16521 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16522 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16523 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16524 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16525 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16526
16527 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16528
16529 [BZ #20079]
16530 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16531
16532 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16533
16534 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16535
16536 2018-03-18 Richard Braun <rbraun@sceen.net>
16537
16538 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16539 thread reference.
16540
16541 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16542
16543 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16544 (__libc_cleanup_fct): Define function.
16545 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16546 __libc_cleanup_end): Rewrite implementation using
16547 __attribute__ ((__cleanup__)).
16548 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16549 * hurd/Makefile (routines): Add hurdlock.
16550 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16551 interface.
16552 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16553 * hurd/hurdpid.c: Include <lowlevellock.h>
16554 (_S_msg_proc_newids): Use lll_wait to synchronize.
16555 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16556 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16557 * mach/Makefile (lock-headers): Remove machine-lock.h.
16558 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16559 <machine-lock.h>.
16560 (__spin_lock_t): New type.
16561 (__SPIN_LOCK_INITIALIZER): New macro.
16562 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16563 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16564 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16565 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16566 (__mutex_init): Initialize with lll.
16567 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16568 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16569 needing lll.
16570 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16571 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16572 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16573 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16574 (__setpgid): Use lll for synchronization.
16575 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16576 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16577 instead of <cthreads.h>.
16578 (_IO_lock_inexpensive): New macro
16579 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16580 (__libc_lock_self0): New declaration.
16581 (__libc_lock_owner_self): New macro.
16582 (__libc_key_t): Remove type.
16583 (_LIBC_LOCK_INITIALIZER): New macro.
16584 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16585 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16586 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16587 __libc_lock_define_initialized_recursive,
16588 __rtld_lock_define_initialized_recursive,
16589 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16590 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16591 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16592 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16593 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16594 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16595 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16596 New macros.
16597 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16598 * hurd/hurdlock.c: New file.
16599 * hurd/hurdlock.h: New file.
16600 * mach/lowlevellock.h: New file
16601
16602 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16603
16604 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16605 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16606 when opening a symlink with O_NOFOLLOW.
16607 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16608 path when flags contains O_NOFOLLOW.
16609 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16610 if flags contains O_DIRECTORY and the result is a directory.
16611 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16612 oneself when the pointer given in D is nul (as set by ext2fs).
16613 * sysdeps/mach/hurd/mlockall.c: New file.
16614 * sysdeps/mach/hurd/munlockall.c: New file.
16615
16616 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16617
16618 * hurd/hurdsig.c: Include <pthread.h>.
16619 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16620 get the signal thread stack layout.
16621 * hurd/Makefile (headers): Remove threadvar.h.
16622 (inline-headers): Remove threadvar.h.
16623 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16624 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16625 __hurd_threadvar_max, __hurd_errno_location.
16626 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16627 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16628 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16629 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16630 unless TLS is not initialized yet, in which case we do not need a
16631 critical section yet anyway.
16632 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16633 <machine-sp.h>.
16634 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16635 declarations.
16636 (__hurd_threadvar_index): Remove enum.
16637 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16638 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16639 inlines.
16640 (__hurd_reply_port0): New variable declaration.
16641 (__hurd_local_reply_port): New macro.
16642 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16643 (interrupted_reply_port_location): Add thread_t parameter. Use it
16644 with THREAD_TCB to access thread-local variables.
16645 (_hurdsig_abort_rpcs): Pass ss->thread to
16646 interrupted_reply_port_location.
16647 (_hurd_internal_post_signal): Likewise.
16648 (_hurdsig_init): Use presence of cthread_fork instead of
16649 __hurd_threadvar_stack_mask to start signal thread by hand.
16650 Remove signal thread threadvar initialization.
16651 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16652 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16653 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16654 of threadvar.
16655 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16656 __libc_lock_self0.
16657 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16658 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16659 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16660 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16661 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16662 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16663 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16664 define variables.
16665 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16666 <hurd/threadvar.h>.
16667 [IS_IN(rtld)] (rtld_errno): New variable.
16668 [IS_IN(rtld)] (__errno_location): New weak function.
16669 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16670 * sysdeps/mach/hurd/errno.c: Remove file.
16671 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16672 (__fork): Remove THREADVAR_SPACE macro and its use.
16673 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16674 variable.
16675 (init): Do not initialize threadvar.
16676 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16677 symbol.
16678 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16679 __hurd_local_reply_port instead of threadvar.
16680 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16681 _hurd_sigstate fields.
16682 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16683 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16684 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16685 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16686 instead of threadvar.
16687 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16688 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16689 (use_threadvar, global_reply_port): Remove variables.
16690 (__hurd_reply_port0): New variable.
16691 (__mig_get_reply_port): Use __hurd_local_reply_port and
16692 __hurd_reply_port0 instead of threadvar.
16693 (__mig_dealloc_reply_port): Likewise.
16694 (__mig_init): Do not initialize threadvar.
16695 * sysdeps/mach/hurd/profil.c: Fix comment.
16696 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16697 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16698 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16699 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16700 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16701 __cthread_setspecific.
16702 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16703 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16704 __cthread_t instead of cthread_fork, cthread_detach,
16705 pthread_getattr_np, pthread_attr_getstack.
16706 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16707 __cthread_keycreate.
16708 (cthread_getspecific): Rename to __cthread_getspecific.
16709 (cthread_setspecific): Rename to __cthread_setspecific.
16710 (__libc_getspecific): Use __cthread_getspecific instead of
16711 cthread_getspecific.
16712 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16713 __cthread_keycreate instead of cthread_keycreate.
16714 (__libc_setspecific): Use __cthread_setspecific instead of
16715 cthread_setspecific.
16716 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16717 Likewise.
16718 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16719 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16720 testing whether it is defined.
16721
16722 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16723
16724 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16725 Define macro.
16726 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16727 * sysdeps/mach/i386/thread_state.h
16728 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16729 i386_THREAD_STATE.
16730 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16731 i386_THREAD_STATE.
16732 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16733
16734 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16735 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16736
16737 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16738 macros.
16739 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16740 descriptor instead of creating a new one.
16741 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16742
16743 * mach/setup-thread.c: Include <ldsodefs.h>.
16744 (__mach_setup_thread): Call _dl_allocate_tls, pass
16745 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16746 MACHINE_THREAD_STATE_FLAVOR, before getting
16747 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16748 MACHINE_THREAD_STATE_FLAVOR with the result.
16749 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16750 MACHINE_THREAD_STATE_FIX_NEW.
16751 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16752 too. Add original thread parameter.
16753
16754 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16755
16756 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16757 Remove inline function.
16758
16759 * sysdeps/i386/fpu/libm-test-ulps: Update.
16760 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16761
16762 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16763
16764 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16765 commit.
16766
16767 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16768
16769 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16770 (__sincos_code): Remove define and undefine.
16771 [__FAST_MATH__] (__sincos): Remove inline function.
16772 [__FAST_MATH__] (__sincosf): Remove inline function.
16773 [__FAST_MATH__] (__sincosl): Remove inline function.
16774 (__atan2l): Remove inline functions.
16775 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16776 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16777 function.
16778 (floor): Remove inline function.
16779 (ceil): Likewise.
16780 [__FAST_MATH__] (__ldexp_code): Remove macro.
16781 [__FAST_MATH__] (ldexp): Remove inline function.
16782 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16783 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16784 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16785 [__USE_ISOC99] (__lrint_code): Remove macro.
16786 [__USE_ISOC99] (__llrint_code): Likewise.
16787 [__USE_ISOC99] (lrintf): Remove inline function.
16788 [__USE_ISOC99] (lrint): Likewise.
16789 [__USE_ISOC99] (lrintl): Likewise.
16790 [__USE_ISOC99] (llrint): Likewise.
16791 [__USE_ISOC99] (llrintf): Likewise.
16792 [__USE_ISOC99] (llrintl): Likewise.
16793
16794 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16795
16796 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16797 (__ieee754_sqrtf): Remove.
16798 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16799 (__ieee754_sqrtf): Remove.
16800 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16801 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16802 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16803 (__ieee754_sqrtf): Remove.
16804 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16805 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16806 (sqrtf): Remove.
16807 (sqrtl): Remove.
16808 (__ieee754_sqrt): Remove.
16809 (__ieee754_sqrtf): Remove.
16810 (__ieee754_sqrtl): Remove.
16811 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16812 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16813 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16814 (__ieee754_sqrtf): Remove.
16815 (__ieee754_sqrtl): Remove.
16816
16817 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16818
16819 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16820 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16821 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16822 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16823 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16824 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16825 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16826 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16827 Likewise.
16828 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16829 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16830 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16831 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16832 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16833 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16834 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16835 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16836 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16837 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16838 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16839 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16840 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16841 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16842 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16843 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16844 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16845 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16846 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16847 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16848 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16849 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16850 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16851 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16852 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16853 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16854 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16855 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16856 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16857 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16858 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16859 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16860 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16861 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16862 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16863 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16864 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16865 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16866 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16867 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16868
16869 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16870
16871 * include/math.h (sqrt): Declare with asm redirect.
16872 (sqrtf): Likewise.
16873 (sqrtl): Likewise.
16874 (sqrtf128): Likewise.
16875 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16876 nonlib and libnldbl with -fmath-errno.
16877 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16878 * math/w_sqrt_template.c: Likewise.
16879 * math/w_sqrtf_compat.c: Likewise.
16880 * math/w_sqrtl_compat.c: Likewise.
16881 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16882 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16883 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16884 complex.h.
16885
16886 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16887
16888 * benchtests/Makefile: Define _ISOMAC.
16889 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16890 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16891 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16892 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16893 * benchtests/bench-timing.h: Define attribute_hidden.
16894
16895 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16896
16897 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16898 mov + lsr.
16899
16900 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16901
16902 [BZ #22963]
16903 * localedata/locales/cs_CZ (mon): Rename to...
16904 (alt_mon): This.
16905 (mon): Import from CLDR (genitive case).
16906
16907 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16908
16909 [BZ #22937]
16910 * localedata/locales/el_CY (abmon): Rename to...
16911 (ab_alt_mon): This.
16912 (abmon): Import from CLDR (abbreviated genitive case).
16913 * localedata/locales/el_GR (abmon): Rename to...
16914 (ab_alt_mon): This.
16915 (abmon): Import from CLDR (abbreviated genitive case).
16916
16917 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16918
16919 [BZ #22932]
16920 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16921
16922 2018-03-15 Robert Buj <robert.buj@gmail.com>
16923
16924 [BZ #22848]
16925 * localedata/locales/ca_ES (abmon): Rename to...
16926 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16927 (mon): Rename to...
16928 (alt_mon): This.
16929 (abmon): Import from CLDR (genitive case, month names preceded by
16930 "de" or "d’").
16931 (mon): Likewise.
16932 (abday): Synchronize with CLDR.
16933 (d_t_fmt): Likewise.
16934 (d_fmt): Likewise.
16935 (am_pm): Likewise.
16936
16937 (LC_TIME): Improve indentation.
16938 (LC_TELEPHONE): Likewise.
16939 (LC_NAME): Likewise.
16940 (LC_ADDRESS): Likewise.
16941
16942 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16943
16944 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16945 (lrintf): Remove definitions used only with old GCC.
16946 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16947 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16948 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16949 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16950 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16951 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16952 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16953 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16954 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16955 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16956 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16957 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16958 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16959 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16960 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16961 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16962 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16963 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16964 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16965 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16966 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16967 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16968 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16969 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16970 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16971 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16972 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16973 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16974
16975 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16976
16977 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16978 instruction to unbreak builds with binutils 2.26 and older.
16979
16980 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16981
16982 * sysdeps/aarch64/strncmp.S (count): New macro.
16983 (strncmp): Store misaligned length in SRC1 in COUNT.
16984 (mutual_align): Adjust.
16985 (misaligned8): Load dword at a time when it is safe.
16986
16987 2018-03-12 Zack Weinberg <zackw@panix.com>
16988
16989 [BZ #1190]
16990 [BZ #19476]
16991 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16992 if the _IO_EOF_SEEN bit is already set; update commentary.
16993 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16994 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16995
16996 * support/support_openpty.c, support/tty.h: New files.
16997 * support/Makefile (libsupport-routines): Add support_openpty.
16998
16999 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
17000 New test cases.
17001 * libio/Makefile (tests): Add tst-fgetc-after-eof.
17002 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
17003
17004 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
17005
17006 * po/pt_BR.po: Update translations.
17007
17008 2018-03-12 David Michael <fedora.dm0@gmail.com>
17009
17010 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
17011 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
17012 get a port to the startup server.
17013
17014 2018-03-11 Zack Weinberg <zackw@panix.com>
17015
17016 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
17017 before nldbl-compat.h.
17018
17019 2018-03-10 Zack Weinberg <zackw@panix.com>
17020
17021 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
17022 math.h or math_private.h.
17023
17024 * sysdeps/alpha/fpu/s_isnan.c
17025 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
17026 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
17027 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
17028 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
17029 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
17030 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
17031 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
17032 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
17033 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
17034 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
17035 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
17036 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
17037 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
17038 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
17039 Include math_private.h.
17040
17041 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
17042 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
17043 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
17044 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
17045 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
17046 * sysdeps/powerpc/power7/fpu/s_logb.c:
17047 Include math.h and math_private.h.
17048
17049 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
17050 uses of $at in .set noat / .set at.
17051
17052 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
17053
17054 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
17055 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
17056 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
17057 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
17058 Likewise.
17059
17060 2018-03-09 Florian Weimer <fweimer@redhat.com>
17061
17062 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
17063 in comment.
17064
17065 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
17066
17067 [BZ #22919]
17068 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
17069 Add nop before __startcontext, add explaining comments.
17070
17071 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17072
17073 [BZ #22926]
17074 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
17075 empty for __SPE__.
17076 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
17077 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
17078 Do not build hardware transactional code for __SPE__.
17079 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
17080 (__lll_trylock_elision): Likewise.
17081 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
17082 (__lll_unlock_elision): Likewise.
17083
17084 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
17085 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
17086 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
17087 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
17088 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
17089 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
17090 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
17091 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
17092 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
17093 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
17094 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
17095 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
17096 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
17097 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
17098 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
17099 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
17100 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
17101 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
17102 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
17103 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
17104 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
17105 * sysdeps/unix/sysv/linux/arm/kernel-features.h
17106 (__ASSUME_CLONE_BACKWARDS): Define.
17107 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
17108 __clone2 if __NR_clone2 is defined.
17109 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
17110 (__ASSUME_CLONE_BACKWARDS): Likewise.
17111 * sysdeps/unix/sysv/linux/i386/kernel-features.h
17112 (__ASSUME_CLONE_BACKWARDS): Likewise.
17113 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
17114 (__ASSUME_CLONE2): Likewise.
17115 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17116 (__ASSUME_CLONE_BACKWARDS3): Likewise.
17117 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
17118 variants and the define architecture can use.
17119 (__ASSUME_CLONE_DEFAULT): Define as default.
17120 * sysdeps/unix/sysv/linux/mips/kernel-features.h
17121 (__ASSUME_CLONE_BACKWARDS): Likewise.
17122 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
17123 (__ASSUME_CLONE_BACKWARDS): Likewise.
17124 * sysdeps/unix/sysv/linux/s390/kernel-features.h
17125 (__ASSUME_CLONE_BACKWARDS2): Likewise.
17126
17127 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
17128
17129 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
17130
17131 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
17132 time.
17133
17134 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
17135 (do_test_limit): Likewise.
17136
17137 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
17138 for every implementation.
17139 (do_test): Likewise.
17140
17141 * benchtests/bench-strncmp.c: Convert output to json.
17142
17143 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17144
17145 * io/futimens.c: Add missing start-of-file descriptive comment.
17146 * io/utime.c: Likewise.
17147 * misc/futimesat.c: Likewise.
17148 * misc/utimes.c: Likewise.
17149 * sysdeps/mach/hurd/futimesat.c: Likewise.
17150 * sysdeps/mach/hurd/utimes.c: Likewise.
17151 * sysdeps/posix/utime.c: Likewise.
17152 * sysdeps/posix/utimes.c: Likewise.
17153 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17154 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17155 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17156 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17157
17158 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17159
17160 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17161 hurd_futimes.
17162 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17163 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17164 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17165 (__futimens): Move implementation to...
17166 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17167 utime_tvalue_from_tspec): ... new helper functions.
17168 (hurd_futimens): New function.
17169 * sysdeps/mach/hurd/futimesat.c: New file.
17170 * sysdeps/mach/hurd/utimensat.c: New file.
17171
17172 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17173
17174 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17175 UTIME_OMIT): New macros.
17176 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17177 before reverting to converting time spec to time value and calling
17178 __file_utimes.
17179 * sysdeps/mach/hurd/utime-helper.c: New file.
17180 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17181 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17182 reverting to utime_tvalue_from_tval and __file_utimes.
17183 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17184 (__lutimes): Just call hurd_futimens after lookup.
17185 * sysdeps/mach/hurd/utimes.c: Likewise.
17186
17187 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17188
17189 * bits/sigaction.h: Add include guard.
17190 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17191 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17192 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17193 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17194 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17195 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17196 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17197 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17198 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17199
17200 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17201
17202 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17203 -Wmaybe-uninitialized for -Os.
17204 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17205 this disabling.
17206
17207 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17208
17209 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17210 __INO_T_MATCHES_INO64_T is defined.
17211 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17212 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17213 of definition.
17214 * dirent/alphasort64.c: Likewise.
17215 * dirent/scandir.c: Likewise.
17216 * dirent/scandir64-tail.c: Likewise.
17217 * dirent/scandir64.c: Likewise.
17218 * dirent/scandirat.c: Likewise.
17219 * dirent/scandirat64.c: Likewise.
17220 * dirent/versionsort.c: Likewise.
17221 * dirent/versionsort64.c: Likewise.
17222 * include/dirent.h: Likewise.
17223
17224 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17225 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17226 for socketpair endpoint.
17227 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17228 WRITE_BUFFER_SIZE as buffer size for sending socket.
17229 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17230 issue on system where send is implemented with sendto syscall.
17231 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17232 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17233 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17234 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17235
17236 [BZ #21269]
17237 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17238 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17239 sa_restorer for vDSO case.
17240 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17241
17242 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17243
17244 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17245 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17246 * hurd/hurd/ioctl.h: Include <mach/port.h>
17247 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17248 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17249 <mach/mach_types.h> and <mach/message.h>.
17250 (headers): Move mach/param.h to bits/mach/param.h.
17251 * sysdeps/mach/i386/mach/param.h: Move file to ...
17252 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17253 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17254 of <mach/param.h>.
17255 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17256 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17257 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17258 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17259 trivial, for C++ conformity.
17260 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17261 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17262 Process mig output through $(migheadersed).
17263 * hurd/Makefile (migheadersed): Define variable.
17264 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17265 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17266 headers.
17267 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17268 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17269 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17270 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17271 <bits/types/sigset_t.h>.
17272 [!defined __USE_GNU]: Do not #error out.
17273 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17274 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17275 Include <stddef.h> and <bits/types/sigset_t.h>
17276 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17277 instead of sighandler_t.
17278 * stdlib/errno.h (error_t): Move definition to...
17279 * bits/types/error_t.h: ... new header.
17280 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17281 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17282 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17283 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17284 * hurd/hurd.h: Include <bits/types/error_t.h>
17285 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17286 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17287 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17288 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17289 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17290 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17291 * sysdeps/mach/hurd/futimens.c: New file.
17292
17293 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17294
17295 [BZ #22918]
17296 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17297 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17298 * nscd/gai.c (__nss_hosts_database): Readd definition.
17299 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17300 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17301 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17302
17303 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17304
17305 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17306 (ifunc_one): Likewise.
17307
17308 2018-03-01 DJ Delorie <dj@delorie.com>
17309
17310 [BZ #22342]
17311 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17312 key value.
17313
17314 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17315
17316 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17317 `match_pid' parameter.
17318 (td_ta_thr_iter): Update accordingly.
17319
17320 2018-03-01 Florian Weimer <fweimer@redhat.com>
17321
17322 * nptl/Makefile (install-lib-ldscripts): Remove.
17323 (install): Remove rule.
17324 ($(inst_libdir)/libpthread.so): Likewise.
17325
17326 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17327
17328 [BZ #22896]
17329 * localedata/locales/an_ES: update month and day names,
17330 improve d_fmt, improve postal_fmt, add country_post,
17331 add country_isbn
17332
17333 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17334
17335 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17336 Ukrainian instead of Bulgarian.
17337
17338 2018-03-01 Florian Weimer <fweimer@redhat.com>
17339
17340 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17341 reference.
17342
17343 2018-03-01 Florian Weimer <fweimer@redhat.com>
17344
17345 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17346 * nptl/Makefile (routines): Add pthread_atfork.
17347 (static-only-routines): Set to pthread_atfork.
17348 (libpthread-routines): Remove pthread_atfork.
17349 (libpthread-static-only-routines): Remove.
17350 (install): Update comment.
17351 (libpthread.so): Do not install libpthread_nonshared.a.
17352 (tests): Do not link with libpthread_nonshared.a.
17353 (generated): Remove libpthread_nonshared.a.
17354 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17355 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17356 with libpthread_nonshared.a.
17357
17358 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17359
17360 [BZ #22902]
17361 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17362 (libc_feholdexcept_setroundf128): New macro.
17363 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17364
17365 [BZ #15105]
17366 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17367 libc_hidden_def.
17368 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17369 * include/inttypes.h: New file.
17370
17371 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17372
17373 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17374 -Os in two more places.
17375
17376 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17377
17378 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17379 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17380 be sorted correctly at the moment because of a bug.
17381
17382 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17383
17384 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17385 treat ñ as a primary different character, sync the collation
17386 for Spanish with CLDR.
17387 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17388 * localedata/Makefile: Add new test files.
17389 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17390 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17391 collation order.
17392 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17393 * localedata/am_ET.UTF-8.in: New test file.
17394 * localedata/az_AZ.UTF-8.in: Likewise.
17395 * localedata/be_BY.UTF-8.in: Likewise.
17396 * localedata/ber_DZ.UTF-8.in: Likewise.
17397 * localedata/ber_MA.UTF-8.in: Likewise.
17398 * localedata/bg_BG.UTF-8.in: Likewise.
17399 * localedata/br_FR.UTF-8.in: Likewise.
17400 * localedata/cmn_TW.UTF-8.in: Likewise.
17401 * localedata/crh_UA.UTF-8.in: Likewise.
17402 * localedata/csb_PL.UTF-8.in: Likewise.
17403 * localedata/cv_RU.UTF-8.in: Likewise.
17404 * localedata/cy_GB.UTF-8.in: Likewise.
17405 * localedata/dz_BT.UTF-8.in: Likewise.
17406 * localedata/eo.UTF-8.in: Likewise.
17407 * localedata/es_ES.UTF-8.in: Likewise.
17408 * localedata/fa_IR.UTF-8.in: Likewise.
17409 * localedata/fi_FI.UTF-8.in: Likewise.
17410 * localedata/fil_PH.UTF-8.in: Likewise.
17411 * localedata/fur_IT.UTF-8.in: Likewise.
17412 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17413 * localedata/ha_NG.UTF-8.in: Likewise.
17414 * localedata/ig_NG.UTF-8.in: Likewise.
17415 * localedata/ik_CA.UTF-8.in: Likewise.
17416 * localedata/kk_KZ.UTF-8.in: Likewise.
17417 * localedata/ku_TR.UTF-8.in: Likewise.
17418 * localedata/ky_KG.UTF-8.in: Likewise.
17419 * localedata/ln_CD.UTF-8.in: Likewise.
17420 * localedata/mi_NZ.UTF-8.in: Likewise.
17421 * localedata/ml_IN.UTF-8.in: Likewise.
17422 * localedata/mn_MN.UTF-8.in: Likewise.
17423 * localedata/mr_IN.UTF-8.in: Likewise.
17424 * localedata/mt_MT.UTF-8.in: Likewise.
17425 * localedata/nb_NO.UTF-8.in: Likewise.
17426 * localedata/om_KE.UTF-8.in: Likewise.
17427 * localedata/os_RU.UTF-8.in: Likewise.
17428 * localedata/ps_AF.UTF-8.in: Likewise.
17429 * localedata/ro_RO.UTF-8.in: Likewise.
17430 * localedata/ru_RU.UTF-8.in: Likewise.
17431 * localedata/sc_IT.UTF-8.in: Likewise.
17432 * localedata/se_NO.UTF-8.in: Likewise.
17433 * localedata/sq_AL.UTF-8.in: Likewise.
17434 * localedata/sv_SE.UTF-8.in: Likewise.
17435 * localedata/szl_PL.UTF-8.in: Likewise.
17436 * localedata/tg_TJ.UTF-8.in: Likewise.
17437 * localedata/tk_TM.UTF-8.in: Likewise.
17438 * localedata/tt_RU.UTF-8.in: Likewise.
17439 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17440 * localedata/ug_CN.UTF-8.in: Likewise.
17441 * localedata/uz_UZ.UTF-8.in: Likewise.
17442 * localedata/vi_VN.UTF-8.in: Likewise.
17443 * localedata/yi_US.UTF-8.in: Likewise.
17444 * localedata/yo_NG.UTF-8.in: Likewise.
17445 * localedata/zh_CN.UTF-8.in: Likewise.
17446 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17447 file and fix bugs in the collation.
17448 * localedata/locales/az_AZ: Likewise.
17449 * localedata/locales/be_BY: Likewise.
17450 * localedata/locales/ber_DZ: Likewise.
17451 * localedata/locales/ber_MA: Likewise.
17452 * localedata/locales/bg_BG: Likewise.
17453 * localedata/locales/br_FR: Likewise.
17454 * localedata/locales/br_FR@euro: Likewise.
17455 * localedata/locales/ca_ES: Likewise.
17456 * localedata/locales/cns11643_stroke: Likewise.
17457 * localedata/locales/crh_UA: Likewise.
17458 * localedata/locales/cs_CZ: Likewise.
17459 * localedata/locales/csb_PL: Likewise.
17460 * localedata/locales/cv_RU: Likewise.
17461 * localedata/locales/cy_GB: Likewise.
17462 * localedata/locales/da_DK: Likewise.
17463 * localedata/locales/dz_BT: Likewise.
17464 * localedata/locales/en_CA: Likewise.
17465 * localedata/locales/eo: Likewise.
17466 * localedata/locales/es_CU: Likewise.
17467 * localedata/locales/es_EC: Likewise.
17468 * localedata/locales/es_ES: Likewise.
17469 * localedata/locales/es_US: Likewise.
17470 * localedata/locales/et_EE: Likewise.
17471 * localedata/locales/fa_IR: Likewise.
17472 * localedata/locales/fi_FI: Likewise.
17473 * localedata/locales/fil_PH: Likewise.
17474 * localedata/locales/fur_IT: Likewise.
17475 * localedata/locales/gez_ER@abegede: Likewise.
17476 * localedata/locales/ha_NG: Likewise.
17477 * localedata/locales/hr_HR: Likewise.
17478 * localedata/locales/hsb_DE: Likewise.
17479 * localedata/locales/hu_HU: Likewise.
17480 * localedata/locales/ig_NG: Likewise.
17481 * localedata/locales/ik_CA: Likewise.
17482 * localedata/locales/is_IS: Likewise.
17483 * localedata/locales/iso14651_t1_pinyin: Likewise.
17484 * localedata/locales/kk_KZ: Likewise.
17485 * localedata/locales/ku_TR: Likewise.
17486 * localedata/locales/ky_KG: Likewise.
17487 * localedata/locales/ln_CD: Likewise.
17488 * localedata/locales/lt_LT: Likewise.
17489 * localedata/locales/lv_LV: Likewise.
17490 * localedata/locales/mi_NZ: Likewise.
17491 * localedata/locales/ml_IN: Likewise.
17492 * localedata/locales/mn_MN: Likewise.
17493 * localedata/locales/mr_IN: Likewise.
17494 * localedata/locales/mt_MT: Likewise.
17495 * localedata/locales/nb_NO: Likewise.
17496 * localedata/locales/om_KE: Likewise.
17497 * localedata/locales/os_RU: Likewise.
17498 * localedata/locales/pl_PL: Likewise.
17499 * localedata/locales/ps_AF: Likewise.
17500 * localedata/locales/ro_RO: Likewise.
17501 * localedata/locales/ru_RU: Likewise.
17502 * localedata/locales/ru_UA: Likewise.
17503 * localedata/locales/sc_IT: Likewise.
17504 * localedata/locales/se_NO: Likewise.
17505 * localedata/locales/si_LK: Likewise.
17506 * localedata/locales/sq_AL: Likewise.
17507 * localedata/locales/sv_FI: Likewise.
17508 * localedata/locales/sv_FI@euro: Likewise.
17509 * localedata/locales/sv_SE: Likewise.
17510 * localedata/locales/szl_PL: Likewise.
17511 * localedata/locales/tg_TJ: Likewise.
17512 * localedata/locales/ti_ER: Likewise.
17513 * localedata/locales/tk_TM: Likewise.
17514 * localedata/locales/tl_PH: Likewise.
17515 * localedata/locales/tr_TR: Likewise.
17516 * localedata/locales/tt_RU: Likewise.
17517 * localedata/locales/tt_RU@iqtelif: Likewise.
17518 * localedata/locales/ug_CN: Likewise.
17519 * localedata/locales/uk_UA: Likewise.
17520 * localedata/locales/uz_UZ: Likewise.
17521 * localedata/locales/uz_UZ@cyrillic: Likewise.
17522 * localedata/locales/vi_VN: Likewise.
17523 * localedata/locales/yi_US: Likewise.
17524 * localedata/locales/yo_NG: Likewise.
17525
17526 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17527
17528 * gen-locales.mk: Make test files which contain @ modifiers in their
17529 name work.
17530 * localedata/gen-locale.sh: Likewise.
17531
17532 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17533
17534 * posix/tst-fnmatch.input: Fix results for range expressions
17535 for non C locales.
17536 * posix/tst-regexloc.c: Do not use a range expression for
17537 de_DE.ISO-8859-1 locale.
17538
17539 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17540
17541 * posix/bug-regex5.c: Fix test case because with the new
17542 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17543 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17544 file.
17545
17546 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17547
17548 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17549 downloaded from ISO, the collation order of @-. and space has changed.
17550 Therefore, this test file needed to be adapted.
17551 * localedata/fr_CA.UTF-8.in: Likewise.
17552 * localedata/fr_FR.UTF-8.in: Likewise.
17553 * localedata/uk_UA.UTF-8.in: Likewise.
17554
17555 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17556
17557 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17558 order of ȥ in the new iso14651_t1_common file.
17559 * localedata/pl_PL.UTF-8.in: Likewise.
17560
17561 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17562
17563 * localedata/locales/iso14651_t1_common: Add sections for various
17564 scripts to the iso14651_t1_common file.
17565
17566 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17567
17568 * localedata/locales/iso14651_t1_common: Use the code point of a
17569 character in the fourth collation level instead of IGNORE for all
17570 entries which have IGNORE on all 4 levels.
17571
17572 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17573
17574 * localedata/locales/iso14651_t1_common: Add some convenient collation
17575 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17576 rules similar to those in CLDR.
17577
17578 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17579
17580 * localedata/locales/iso14651_t1_common: The new version of this
17581 file downloaded from ISO contained several syntax errors which
17582 are fixed by this patch.
17583
17584 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17585
17586 * localedata/locales/iso14651_t1_common: replace all <U.....>
17587 with <U000.....> because glibc understands only 4 digit or 8 digit
17588
17589 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17590
17591 * localedata/locales/iso14651_t1_common: Necessary changes
17592 to make the file downloaded from ISO usable by glibc.
17593
17594 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17595
17596 [BZ #14095]
17597 * localedata/locales/iso14651_t1_common: Update file to
17598 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17599
17600 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17601
17602 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17603 of <nptl/pthreadP.h>
17604 (thread_attr_compare): Move function to...
17605 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17606 * sysdeps/nptl/timer_routines.h: ... new header.
17607 * sysdeps/mach/hurd/gai_misc.h: New file.
17608
17609 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17610
17611 * string/strcoll_l.c: Include <libc-diag.h>.
17612 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17613 declarations of seq1 and seq2.
17614
17615 [BZ #15105]
17616 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17617 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17618
17619 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17620
17621 [BZ #22433]
17622 [BZ #22807]
17623 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17624 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17625 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17626 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17627 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17628 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17629
17630 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17631
17632 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17633 macros used in __ptrace_request.
17634
17635 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17636
17637 [BZ #22792]
17638 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17639 to $(CC).
17640 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17641 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17642 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17643 <tcb-offsets.h>.
17644
17645 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17646
17647 [BZ #15105]
17648 * ctype/ctype.c (tolower): Use libc_hidden_def.
17649 (toupper): Likewise.
17650 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17651 [!_ISOMAC] (toupper): Likewise.
17652
17653 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17654
17655 * localedata/Makefile: Remove --quiet argument when
17656 installing locales
17657
17658 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17659
17660 [BZ #17438]
17661 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17662 in d_fmt.
17663 * localedata/locales/pt_PT (LC_TIME): likewise
17664
17665 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17666
17667 [BZ #22646]
17668 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17669 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17670 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17671
17672 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17673
17674 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17675
17676 * nptl/Makefile (routines): Remove unregister-atfork.
17677 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17678 (fork_handler_alloc): Remove function.
17679 (fork_handlers, fork_handler_init): New variables.
17680 (__fork_lock): Rename to atfork_lock.
17681 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17682 to use a dynamic array to add/remove atfork handlers.
17683 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17684 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17685 Remove declaration.
17686 (fork_handler): Remove next, refcntr, and need_signal member.
17687 (__run_fork_handler_type): New enum.
17688 (__run_fork_handlers): New prototype.
17689 * nptl/register-atfork.c: Remove file.
17690 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17691
17692 * sysdeps/nptl/nptl-signals.h: Move to ...
17693 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17694 comments.
17695 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17696 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17697 unnecessary check for SIGTIMER.
17698 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17699 remove unnecessary removal of SIGTIMER.
17700 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17701 include-signals.h rename.
17702 * nptl/pthreadP.h: Likewise.
17703 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17704 __is_internal_signal instead of __nptl_is_internal_signal.
17705
17706 2018-02-22 Andrew Waterman <andrew@sifive.com>
17707
17708 [BZ # 22884]
17709 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17710 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17711 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17712 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17713
17714 2018-02-22 DJ Delorie <dj@delorie.com>
17715
17716 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17717
17718 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17719
17720 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17721 do_misaligned, not misaligned8.
17722
17723 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17724
17725 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17726 Add memcpy_thunderx2.
17727 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17728 Increment to 4.
17729 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17730 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17731 and IS_THUNDERX2PA checks.
17732 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17733 Use macro to set name appropriately.
17734 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17735 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17736 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17737 New macro.
17738 (IS_THUNDERX2): New macro.
17739
17740 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17741
17742 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17743
17744 2018-02-21 Zack Weinberg <zackw@panix.com>
17745
17746 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17747 Define here, unconditionally.
17748 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17749 * libio/libioP.h: Remove #if 0 blocks.
17750 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17751 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17752 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17753
17754 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17755 Assume weak_alias is always defined.
17756
17757 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17758 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17759 Remove #if 0 and #ifdef TODO blocks.
17760 Assume text_set_element is always defined.
17761
17762 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17763 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17764 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17765
17766 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17767 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17768 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17769 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17770 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17771 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17772 Reformat bit flags for _flags field to make occupancy clearer.
17773 Update commentary.
17774 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17775 Keep definitions consistent with those in libio/libio.h.
17776
17777 * libio/libio.h (_IO_file_flags): Remove macro.
17778 All uses changed to _flags.
17779
17780 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17781 (__HAVE_COLUMN, _IO_BE): Don't define.
17782 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17783 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17784 * libio/libioP.h (EOF): Don't define.
17785 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17786 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17787 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17788 testing _IO_UNIFIED_JUMPTABLES.
17789
17790 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17791 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17792 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17793 (_IO_size_t): Delete; all uses changed to size_t.
17794 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17795 (_IO_off_t): Delete; all uses changed to off_t.
17796 (_IO_off64_t): Delete; all uses changed to off64_t.
17797 (_IO_pid_t): Delete; all uses changed to pid_t.
17798 (_IO_uid_t): Delete; all uses changed to uid_t.
17799 (_IO_wint_t): Delete; all uses changed to wint_t.
17800 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17801 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17802 (_IO_cookie_io_functions_t): Delete; all uses changed to
17803 cookie_io_functions_t.
17804 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17805 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17806 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17807 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17808
17809 * libio/iofopncook.c: Remove unnecessary forward declarations.
17810 * libio/iolibio.h: Correct outdated commentary.
17811 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17812 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17813 Remove unnecessary casts.
17814 * stdio-common/getline.c: Use _IO_getdelim directly.
17815 Don't redefine ssize_t.
17816 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17817 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17818 Remove outdated comments.
17819 * stdio-common/vfscanf.c: Don't redefine va_list.
17820
17821 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17822 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17823 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17824 which are always true, and __cplusplus, which is always false.
17825
17826 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17827
17828 [BZ #15105]
17829 [BZ #19463]
17830 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17831 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17832 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17833 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17834 libc_hidden_proto.
17835 [!_ISOMAC] (putc_unlocked): Likewise.
17836 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17837 define inline if [__USE_EXTERN_INLINES].
17838 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17839 putc_unlocked.
17840
17841 [BZ #15105]
17842 [BZ #19463]
17843 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17844 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17845 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17846 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17847 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17848 getc_unlocked.
17849 * time/tzfile.c (__tzfile_read): Likewise.
17850
17851 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17852
17853 [BZ #22517]
17854 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17855
17856 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17857
17858 * io/fcntl.h: Fix a typo in a comment.
17859
17860 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17861
17862 [BZ #22862]
17863 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17864 define _DEFAULT_SOURCE.
17865 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17866
17867 2018-02-21 Florian Weimer <fweimer@redhat.com>
17868
17869 [BZ #20890]
17870 * elf/cache.c (save_cache): Call fsync on temporary file before
17871 renaming it.
17872 (save_aux_cache): Call fdatasync on temporary file before renaming
17873 it.
17874
17875 2018-02-21 Florian Weimer <fweimer@redhat.com>
17876
17877 [BZ #22787]
17878 * include/caller.h: Remove file.
17879 * elf/dl-caller.c: Likewise.
17880 * elf/Makefile (dl-routines): Remove dl-caller.
17881 (shared-only-routines): Do not add dl-caller.
17882 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17883 __check_caller.
17884 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17885 member.
17886 (dl_open_worker): Do not call __check_caller.
17887 (_dl_open): Do not set caller_dl_open member.
17888 * elf/rtld.c (_rtld_global_ro): Do not initialize
17889 _dl_check_caller member.
17890 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17891 _dl_check_caller member.
17892 (_dl_check_caller): Remove declaration.
17893 * sysdeps/unix/sysv/linux/dl-execstack.c
17894 (_dl_make_stack_executable): Do not call __check_caller.
17895
17896 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17897
17898 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17899 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17900
17901 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17902
17903 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17904 description.
17905
17906 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17907
17908 [BZ #16335]
17909 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17910 of 199606L, 200112L, and 200809L.
17911 (_XOPEN_SOURCE): Document special values of 600 and 700.
17912 (_ISOC11_SOURCE): Document macro.
17913 (_ATFILE_SOURCE): Likewise.
17914 (_FORTIFY_SOURCE): Likewise.
17915
17916 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17917
17918 [BZ #15105]
17919 [BZ #19463]
17920 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17921 and define as weak alias of __ferror_unlocked. Use
17922 libc_hidden_weak.
17923 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17924 libc_hidden_proto.
17925 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17926 function if [__USE_EXTERN_INLINES].
17927 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17928 ferror_unlocked.
17929
17930 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17931
17932 [BZ #6889]
17933 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17934
17935 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17936
17937 [BZ #22818]
17938 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17939 the GLIBC_2.1 version.
17940
17941 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17942
17943 [BZ #21508]
17944 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17945 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17946 intl/tst-gettext-de.po from po/de.po by removing the
17947 POT-Creation-Date line.
17948 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17949 ../po/de.po.
17950 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17951 ../po/de.po.
17952
17953 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17954
17955 * mach/Makefile (headers): Add mach/param.h.
17956 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17957 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17958 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17959 (__ptsname_r): Move implementation to...
17960 (__ptsname_internal): ... new function. Add filling the STP
17961 structure.
17962
17963 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17964
17965 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17966 idouble to 1 ULP.
17967
17968 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17969
17970 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17971 syntax.
17972
17973 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17974
17975 * nptl/Makefile (tst-mutex8-ENV): Delete.
17976 * nptl/tst-mutex8.c (check_type):
17977 Add runtime check if mutex will be elided.
17978
17979 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17980
17981 [BZ #20980]
17982 [BZ #21234]
17983 * manual/install.texi (Configuring and compiling): Describe
17984 passing CC and CFLAGS on configure command line, not as
17985 environment variables. Use @code markup on those variables.
17986 Specify what options go in CC and what go in CFLAGS. Note the
17987 requirement to compile with optimization.
17988 * INSTALL: Regenerated.
17989
17990 [BZ #18124]
17991 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17992 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17993 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17994 __sigprocmask instead of sigprocmask.
17995 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17996 Likewise.
17997 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17998 __sigsetjmp and sigprocmask.
17999
18000 [BZ #15105]
18001 * include/argz.h (argz_next): Use libc_hidden_proto.
18002 (__argz_next): Likewise.
18003 * string-argz-next.c (__argz_next): Use libc_hidden_def.
18004 (argz_next): Use libc_hidden_weak.
18005
18006 [BZ #15105]
18007 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
18008 libc_hidden_proto.
18009 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
18010 libc_hidden_def.
18011
18012 [BZ #15105]
18013 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
18014 libc_hidden_proto.
18015 * libio/iofputs.c (fputs): Use libc_hidden_weak.
18016
18017 [BZ #15105]
18018 [BZ #19463]
18019 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
18020 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
18021 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
18022 (__feof_unlocked): New declaration, and inline function if
18023 [__USE_EXTERN_INLINES].
18024 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
18025 instead of feof_unlocked.
18026 * intl/localealias.c [_LIBC] (FEOF): Likewise.
18027 * nss/nsswitch.c (nss_parse_file): Likewise.
18028 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
18029 Likewise.
18030 * time/getdate.c (__getdate_r): Likewise.
18031 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
18032 Define as macro to call __feof_unlocked.
18033
18034 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18035
18036 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
18037
18038 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
18039
18040 * math/Makefile: Remove mpexp.c and mplog.c
18041 * sysdeps/i386/fpu/mpexp.c: Delete file.
18042 * sysdeps/i386/fpu/mplog.c: Likewise.
18043 * sysdeps/ia64/fpu/mpexp.c: Likewise.
18044 * sysdeps/ia64/fpu/mplog.c: Likewise.
18045 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
18046 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
18047 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
18048 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
18049 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
18050 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
18051 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
18052 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
18053 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
18054 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
18055 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
18056 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
18057 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
18058 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
18059 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
18060 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
18061
18062 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
18063
18064 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
18065
18066 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18067
18068 * sysdeps/sh/libm-test-ulps: Update.
18069
18070 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
18071
18072 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
18073 idouble to 1 ULP.
18074
18075 2018-02-12 Zack Weinberg <zackw@panix.com>
18076
18077 [BZ #19239]
18078 * posix/sys/types.h: Don't include sys/sysmacros.h.
18079 * misc/sys/sysmacros.h: Remove the conditional deprecation
18080 warnings for the macros defined by this header.
18081
18082 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18083
18084 * manual/probes.texi: Remove slowexp probes.
18085 * math/Makefile: Remove slowexp.
18086 * sysdeps/generic/math_private.h (__slowexp): Remove.
18087 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
18088 document error bounds.
18089 * sysdeps/i386/fpu/slowexp.c: Remove.
18090 * sysdeps/ia64/fpu/slowexp.c: Remove.
18091 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
18092 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
18093 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
18094 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
18095 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
18096 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
18097 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
18098 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
18099 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
18100 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
18101 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
18102
18103 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
18104
18105 [BZ #13932]
18106 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
18107 * benchtests/pow-inputs: Update comment for slow path cases.
18108 * manual/probes.texi (slowpow_p10): Delete removed probe.
18109 (slowpow_p10): Likewise.
18110 * math/Makefile: Remove halfulp.c and slowpow.c.
18111 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
18112 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
18113 (__halfulp): Remove.
18114 (__slowpow): Remove.
18115 * sysdeps/i386/fpu/halfulp.c: Delete file.
18116 * sysdeps/i386/fpu/slowpow.c: Likewise.
18117 * sysdeps/ia64/fpu/halfulp.c: Likewise.
18118 * sysdeps/ia64/fpu/slowpow.c: Likewise.
18119 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
18120 improve comments and add error analysis.
18121 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
18122 (power1): Remove function:
18123 (log1): Remove error argument, add error analysis.
18124 (my_log2): Remove function.
18125 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
18126 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
18127 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
18128 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
18129 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
18130 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
18131 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
18132 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
18133 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
18134 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
18135 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
18136 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
18137 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
18138 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
18139
18140 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
18141
18142 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
18143 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
18144
18145 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
18146
18147 [BZ #22433]
18148 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18149 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18150 and PTRACE_SETHBPREGS.
18151
18152 2018-02-10 Zack Weinberg <zackw@panix.com>
18153
18154 [BZ #22830]
18155 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18156 correctly.
18157 * malloc/tst-malloc-stats-cancellation.c: New test case.
18158 * malloc/Makefile: Add new test case.
18159
18160 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18161
18162 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18163
18164 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18165
18166 * math/Makefile (libm-narrow-fns): Add add.
18167 (libm-test-funcs-narrow): Likewise.
18168 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18169 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18170 * math/gen-auto-libm-tests.c (test_functions): Add add.
18171 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18172 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18173 (NARROW_ADD_TRIVIAL): Likewise.
18174 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18175 macro.
18176 (__daddl): Likewise.
18177 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18178 dadd.
18179 (CFLAGS-nldbl-dadd.c): New variable.
18180 (CFLAGS-nldbl-fadd.c): Likewise.
18181 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18182 __nldbl_daddl.
18183 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18184 prototype.
18185 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18186 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18187 * math/auto-libm-test-in: Add tests of add.
18188 * math/auto-libm-test-out-narrow-add: New generated file.
18189 * math/libm-test-narrow-add.inc: New file.
18190 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18191 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18192 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18193 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18194 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18195 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18196 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18197 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18198 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18199 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18200 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18201 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18202 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18203 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18204 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18205 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18206 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18207 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18208 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18209 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18210 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18211 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18212 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18213 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18214 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18215 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18216 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18217 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18218 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18219 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18220 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18221 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18223 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18224 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18225 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18226 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18227 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18228 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18229 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18230 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18231 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18232 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18233 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18234 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18235 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18236
18237 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18238 (f128-pairs): New variable.
18239 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18240 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18241 to CFLAGS.
18242 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18243 Also make tests add $(f128-loader-link) to gnulib-tests.
18244
18245 2018-02-09 DJ Delorie <dj@redhat.com>
18246
18247 [BZ #22827]
18248 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18249 64-bit ELF type for 64-bit ELF objects.
18250
18251 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18252
18253 * math/libm-test-driver.c (snan_tests_arg): New variable.
18254 * math/libm-test-support.h (snan_tests_arg): New declaration.
18255 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18256
18257 * math/Makefile (test-type-pairs): New variable.
18258 (test-type-pairs-f64xf128-yes): Likewise.
18259 (tests): Add test-narrow-macros.
18260 (libm-test-funcs-narrow): New variable.
18261 (libm-test-c-narrow): Likewise.
18262 (generated): Add $(libm-test-c-narrow).
18263 (libm-tests-base-narrow): New variable.
18264 (libm-tests-narrow): Likewise.
18265 (libm-tests): Add $(libm-tests-narrow).
18266 (libm-tests-for-type): Handle $(libm-tests-narrow).
18267 (libm-test-c-narrow-obj): New variable.
18268 ($(libm-test-c-narrow-obj)): New rule.
18269 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18270 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18271 $(o-iterator) to set dependencies and CFLAGS.
18272 * math/gen-auto-libm-tests.c: Document use for narrowing
18273 functions.
18274 (output_for_one_input_case): Take argument NARROW.
18275 (generate_output): Likewise. Update call to
18276 output_for_one_input_case.
18277 (main): Take --narrow option. Update call to generate_output.
18278 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18279 (apply_lit): Update call to _apply_lit.
18280 (apply_arglit): New function.
18281 (parse_args): Handle "a" arguments.
18282 (parse_auto_input): Handle format names using ":".
18283 * math/README.libm-test: Document "a" parameter type.
18284 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18285 (ARG_TYPE_TRUE_MIN): Likewise.
18286 (ARG_TYPE_MAX): Likwise.
18287 (ARG_MIN_EXP): Likewise.
18288 (ARG_MAX_EXP): Likewise.
18289 (ARG_MANT_DIG): Likewise.
18290 (TEST_COND_arg_ibm128): Likewise.
18291 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18292 (TEST_COND_arg_fmt): New macro.
18293 (init_max_error): Update prototype.
18294 * math/libm-test-support.c (test_ibm128): New variable.
18295 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18296 instead of using [TEST_COND_ibm128] conditional.
18297 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18298 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18299 [TEST_NARROW] (TEST_MSG): New definition.
18300 (arg_plus_zero): New macro.
18301 (arg_minus_zero): Likewise.
18302 (arg_plus_infty): Likewise.
18303 (arg_minus_infty): Likewise.
18304 (arg_qnan_value_pl): Likewise.
18305 (arg_qnan_value): Likewise.
18306 (arg_snan_value_pl): Likewise.
18307 (arg_snan_value): Likewise.
18308 (arg_max_value): Likewise.
18309 (arg_min_value): Likewise.
18310 (arg_min_subnorm_value): Likewise.
18311 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18312 (RUN_TEST_LOOP_aa_f): New macro.
18313 (TEST_SUFF): New macro.
18314 (TEST_SUFF_STR): Likewise.
18315 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18316 (TEST_COND_any_ibm128): New macro.
18317 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18318 this_func. Update call to init_max_error.
18319 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18320 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18321 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18322 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18323 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18324 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18325 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18326 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18327 * math/test-math-vector.h (TEST_NARROW): Likewise.
18328 * math/test-arg-double.h: New file.
18329 * math/test-arg-float128.h: Likewise.
18330 * math/test-arg-float32x.h: Likewise.
18331 * math/test-arg-float64.h: Likewise.
18332 * math/test-arg-float64x.h: Likewise.
18333 * math/test-arg-ldouble.h: Likewise.
18334 * math/test-math-narrow.h: Likewise.
18335 * math/test-narrow-macros.c: Likewise.
18336 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18337 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18338 test-narrow-macros-ldbl-64.
18339 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18340
18341 * math/bits/mathcalls-narrow.h: New file.
18342 * include/bits/mathcalls-narrow.h: Likewise.
18343 * math/math-narrow.h: Likewise.
18344 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18345 (__MATHCALL_NARROW_ARGS_2): Likewise.
18346 (__MATHCALL_NARROW_ARGS_3): Likewise.
18347 (__MATHCALL_NARROW_NORMAL): Likewise.
18348 (__MATHCALL_NARROW_REDIR): Likewise.
18349 (__MATHCALL_NARROW): Likewise.
18350 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18351 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18352 defined.
18353 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18354 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18355 (libm-narrow-fns): New variable.
18356 (libm-narrow-types-basic): Likewise.
18357 (libm-narrow-types-ldouble-yes): Likewise.
18358 (libm-narrow-types-float128-yes): Likewise.
18359 (libm-narrow-types-float128-alias-yes): Likewise.
18360 (libm-narrow-types): Likewise.
18361 (libm-routines): Add narrowing functions.
18362 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18363 (libc_feholdexcept_setroundf128): New macro.
18364 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18365 * sysdeps/ieee754/float128/float128_private.h: Include
18366 <math/math-narrow.h>.
18367 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18368 Undefine and redefine.
18369 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18370 (libm_alias_float_ldouble): Undefine and redefine.
18371 (libm_alias_double_ldouble): Likewise.
18372
18373 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18374
18375 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18376
18377 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18378 FPCR/FPSR.
18379
18380 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18381
18382 * manual/creature.texi: Convert references to gcc.info to gcc.
18383 * manual/stdio.texi: Likewise.
18384 * manual/string.texi: Likewise.
18385
18386 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18387
18388 [BZ #17979]
18389 * posix/bits/types.h (__int_least8_t): New typedef.
18390 (__uint_least8_t): Likewise.
18391 (__int_least16_t): Likewise.
18392 (__uint_least16_t): Likewise.
18393 (__int_least32_t): Likewise.
18394 (__uint_least32_t): Likewise.
18395 (__int_least64_t): Likewise.
18396 (__uint_least64_t): Likewise.
18397 * sysdeps/generic/stdint.h (int_least8_t): Define using
18398 __int_least8_t.
18399 (int_least16_t): Define using __int_least16_t.
18400 (int_least32_t): Define using __int_least32_t.
18401 (int_least64_t): Define using __int_least64_t.
18402 (uint_least8_t): Define using __uint_least8_t.
18403 (uint_least16_t): Define using __uint_least16_t.
18404 (uint_least32_t): Define using __uint_least32_t.
18405 (uint_least64_t): Define using __uint_least64_t.
18406 * wcsmbs/uchar.h: Include <bits/types.h>.
18407 (char16_t): Define using __uint_least16_t conditional only on
18408 [!__USE_ISOCXX11].
18409 (char32_t): Define using __uint_least32_t conditional only on
18410 [!__USE_ISOCXX11].
18411 * wcsmbs/test-char-types.c: New file.
18412 * wcsmbs/Makefile (tests): Add test-char-types.
18413
18414 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18415 version to 4.0.1.
18416
18417 2018-02-07 Zack Weinberg <zackw@panix.com>
18418
18419 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18420 Delete all contents except for definitions of _G_HAVE_MMAP and
18421 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18422 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18423 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18424 change as above.
18425
18426 * libio/libio.h: Don't include bits/_G_config.h here.
18427 Include stddef.h with __need_wchar_t defined. Include
18428 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18429 Define _IO_iconv_t here, directly.
18430 Don't define _IO_HAVE_ST_BLKSIZE.
18431 * libio/libioP.h: Include _G_config.h here. Move include of
18432 shlib-compat.h up with rest of includes. Simplify conditionals
18433 controlling definition of _IO_JUMPS_OFFSET.
18434
18435 * csu/init.c: Remove always-true #if around entire file.
18436 Don't include stdio.h. Set _IO_stdin_used to hardwired
18437 constant 0x20001, and update commentary.
18438 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18439 Replace all uses of _G_va_list with __gnuc_va_list.
18440 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18441 instead of #if _IO_HAVE_ST_BLKSIZE.
18442 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18443 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18444 not #ifdef.
18445
18446 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18447 multiple-include guard to match.
18448 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18449 into this file.
18450 Remove preprocessor conditionals that are always true and/or
18451 redundant to other preprocessor conditionals in the same nest.
18452 Include shlib-compat.h unconditionally.
18453 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18454 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18455 defined after including stdio.h.
18456 Use __BEGIN_DECLS/__END_DECLS.
18457
18458 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18459 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18460 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18461
18462 2018-02-07 Zack Weinberg <zackw@panix.com>
18463
18464 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18465 New single-type headers split from _G_config.h.
18466 * libio/bits/types/cookie_io_functions_t.h
18467 * libio/bits/types/struct_FILE.h
18468 New single-type headers split from libio.h.
18469
18470 * libio/Makefile: Install the above new headers. Don't install
18471 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18472 bits/libio-ldbl.h.
18473 * libio/_G_config.h, libio/libio.h: Delete file.
18474
18475 * libio/bits/libio.h: Remove improper-inclusion guard.
18476 Include stdio.h and don't repeat anything that it does.
18477 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18478 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18479 __io_read_fn as cookie_read_function_t,
18480 __io_write_fn as cookie_write_function_t,
18481 __io_seek_fn as cookie_seek_function_t,
18482 __io_close_fn as cookie_close_function_t,
18483 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18484 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18485 here, in the "compatibility defines" section. Remove an #if 0
18486 block. Use the "body" macros from bits/types/struct_FILE.h to
18487 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18488 and _IO_ferror_unlocked.
18489 Move prototypes of __uflow and __overflow...
18490
18491 * libio/stdio.h: ...here. Don't include bits/libio.h.
18492 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18493 directly from stdarg.h. Include bits/types/__fpos_t.h,
18494 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18495 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18496 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18497 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18498 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18499 __ssize_t, not _IO_ssize_t. Unconditionally define
18500 BUFSIZ as 8192 and EOF as (-1).
18501
18502 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18503 macros from bits/types/struct_FILE.h instead of _IO_* macros
18504 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18505 instead of _IO_ssize_t.
18506 * libio/bits/stdio2.h: Similarly.
18507
18508 * libio/iolibio.h: Add multiple-include guard.
18509 Include bits/libio.h after stdio.h.
18510 * libio/libioP.h: Add multiple-include guard.
18511 Include stdio.h and bits/libio.h before iolibio.h.
18512
18513 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18514 * include/bits/types/cookie_io_functions_t.h
18515 * include/bits/types/struct_FILE.h: New wrappers.
18516
18517 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18518 Get definitions of _G_fpos_t and _G_fpos64_t from
18519 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18520 respectively. Remove improper-inclusion guards.
18521
18522 * conform/data/stdio.h-data: Update expectations of va_list.
18523 * scripts/check-installed-headers.sh: Remove special case for
18524 libio.h and _G_config.h.
18525
18526 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18527
18528 [BZ #15105]
18529 [BZ #19463]
18530 * include/sys/sysmacros.h [!_ISOMAC]
18531 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18532 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18533 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18534 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18535 libc_hidden_proto.
18536 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18537 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18538 Likewise.
18539 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18540 Undefine and redefine to add use __gnu_dev_ prefix.
18541 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18542 Likewise.
18543 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18544 and define as hidden inline function.
18545 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18546 Likewise.
18547 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18548 Likewise.
18549 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18550 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18551 (gnu_dev_minor): Likewise.
18552 (gnu_dev_makedev): Likewise.
18553 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18554 makedev.
18555 * posix/wordexp.c (exec_comm_child): Likewise.
18556 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18557 instead of minor and __gnu_dev_major instead of major.
18558 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18559 __gnu_dev_major instead of major.
18560 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18561 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18562 instead of gnu_dev_minor.
18563 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18564 (SLAVE_P): Likewise.
18565 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18566 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18567 instead of major.
18568
18569 [BZ #21313]
18570 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18571 in another place.
18572 * locale/weightwc.h (findidx): Likewise.
18573
18574 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18575
18576 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18577 (slowlog_inexact): Likewise
18578 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18579 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18580
18581 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18582
18583 [BZ #22797]
18584 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18585 missing second underscore to parameter name.
18586
18587 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18588
18589 [BZ #14508]
18590 [BZ #15512]
18591 [BZ #17082]
18592 [BZ #20530]
18593 * bits/byteswap.h: Update file comment. Do not include
18594 <bits/byteswap-16.h>.
18595 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18596 constant.
18597 (__bswap_16): Define as inline function.
18598 (__bswap_constant_32): Reformat definition.
18599 (__bswap_32): Always define as inline function, not macro, using
18600 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18601 otherwise __bswap_constant_32.
18602 (__bswap_constant_64): Reformat definition. Do not use
18603 __extension__ here.
18604 (__bswap_64): Always define as inline function, not macro. Use
18605 __extension__ on function definition. Use __builtin_bswap64 if
18606 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18607 * string/test-endian-file-scope.c: New file.
18608 * string/test-endian-sign-conversion.c: Likewise.
18609 * string/Makefile (headers): Remove bits/byteswap-16.h.
18610 (tests): Add test-endian-file-scope and
18611 test-endian-sign-conversion.
18612 (CFLAGS-test-endian-sign-conversion.c): New variable.
18613 * bits/byteswap-16.h: Remove file.
18614 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18615 * sysdeps/ia64/bits/byteswap.h: Likewise.
18616 * sysdeps/m68k/bits/byteswap.h: Likewise.
18617 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18618 * sysdeps/s390/bits/byteswap.h: Likewise.
18619 * sysdeps/tile/bits/byteswap.h: Likewise.
18620 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18621 * sysdeps/x86/bits/byteswap.h: Likewise.
18622
18623 [BZ #17721]
18624 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18625 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18626 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18627 199901L] (__restrict): Define to restrict.
18628
18629 [BZ #19667]
18630 * string/testcopy.c: Include <support/support.h>. Do not include
18631 <malloc.h>. Use <support/test-driver.c>.
18632 (main): Rename to do_test. Make static. Use xmalloc instead of
18633 malloc.
18634
18635 [BZ #13575]
18636 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18637 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18638 (SSIZE_MAX): Define to INT_MAX.
18639 * posix/test-ssize-max.c: New file.
18640 * posix/Makefile (tests): Add test-ssize-max.
18641
18642 [BZ #19668]
18643 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18644 <support/support.h>. Do not include <malloc.h>.
18645 (query_auxv): Use xmalloc instead of malloc.
18646
18647 [BZ #14553]
18648 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18649 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18650 instead of loff_t.
18651
18652 2018-02-06 Florian Weimer <fweimer@redhat.com>
18653
18654 [BZ #18023]
18655 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18656 Use scratch_buffer instead of extend_alloca.
18657
18658 2018-02-06 Zack Weinberg <zackw@panix.com>
18659
18660 * libio/stdio.h: Don't define getc or putc as macros.
18661 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18662 not _IO_getc and _IO_putc.
18663
18664 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18665 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18666
18667 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18668
18669 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18670 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18671
18672 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18673
18674 [BZ #14890]
18675 * elf/elf.h (NT_PRFPREG): New macro.
18676 (NT_S390_VXRS_LOW): Likewise.
18677 (NT_S390_VXRS_HIGH): Likewise.
18678 (NT_S390_GS_CB): Likewise.
18679 (NT_S390_GS_BC): Likewise.
18680 (NT_S390_RI_CB): Likewise.
18681
18682 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18683 (MAP_SYNC): New macro.
18684 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18685 Likewise.
18686 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18687 (MAP_SYNC): Likewise.
18688 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18689 (MAP_SYNC): Likewise.
18690 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18691 (MAP_SYNC): Likewise.
18692 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18693 (MAP_SYNC): Likewise.
18694 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18695 (MAP_SYNC): Likewise.
18696 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18697 (MAP_SYNC): Likewise.
18698 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18699 Likewise.
18700 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18701 Likewise.
18702
18703 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18704 (MAP_SHARED_VALIDATE): New macro.
18705 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18706 (MAP_SHARED_VALIDATE): Likewise.
18707
18708 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18709
18710 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18711 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18712 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18713
18714 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18715
18716 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18717 (DT_NUM): Updated to 35.
18718
18719 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18720
18721 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18722 __builtin_expect with __glibc_likely and __glibc_unlikely.
18723 (elf_machine_rela): Likewise.
18724 (elf_machine_lazy_rel): Likewise.
18725
18726 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18727
18728 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18729 __builtin_expect with __glibc_likely and __glibc_unlikely.
18730 (elf_machine_lazy_rel): Likewise.
18731
18732 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18733
18734 [BZ #22638]
18735 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18736 SHARED.
18737 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18738
18739 2018-02-05 Andreas Schwab <schwab@suse.de>
18740
18741 [BZ #22761]
18742 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18743 string.
18744
18745 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18746
18747 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18748 not check against PTHREAD_STACK_MIN.
18749
18750 2018-02-02 Sean McKean <smckean83@gmail.com>
18751
18752 [BZ #22735]
18753 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18754
18755 2018-02-02 Florian Weimer <fweimer@redhat.com>
18756
18757 [BZ #22753]
18758 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18759 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18760 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18761 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18762 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18763 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18764 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18765 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18766 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18767 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18768 * misc/tst-preadvwritev2.c (do_test): Call it.
18769 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18770
18771 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18772
18773 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18774
18775 * benchtests/bench-memcmp.c: Print json instead of plain text.
18776
18777 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18778 every test run.
18779
18780 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18781
18782 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18783 version to 4.15.
18784 (s390_sthyi): New syscall.
18785
18786 * sysdeps/generic/ldbl-classify-compat.h: New file.
18787 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18788 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18789 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18790 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18791 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18792 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18793 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18794 <ldbl-classify-compat.h>.
18795 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18796 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18797 <ldbl-classify-compat.h>.
18798 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18799 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18800 <ldbl-classify-compat.h>.
18801 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18802 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18803 <ldbl-classify-compat.h>.
18804 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18805 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18806 <ldbl-classify-compat.h>.
18807 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18808 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18809 <ldbl-classify-compat.h>.
18810 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18811 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18812 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18813 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18814 * sysdeps/microblaze/math_private.h: Likewise.
18815 * sysdeps/nios2/math_private.h: Likewise.
18816 * sysdeps/sh/math_private.h: Likewise.
18817
18818 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18819 * sysdeps/m68k/coldfire/math_private.h: ... here.
18820 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18821 * sysdeps/tile/math_private.h: Likewise.
18822 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18823 Remove macro.
18824 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18825 Likewise.
18826
18827 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18828 Remove macro.
18829 (libc_fetestexcept): Likewise.
18830 (libc_feupdateenv_test): Likewise.
18831 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18832 (libc_fetestexcept): Likewise.
18833 (libc_feupdateenv_test): Likewise.
18834 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18835 (libc_fetestexcept): Likewise.
18836 (libc_feupdateenv_test): Likewise.
18837 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18838 (libc_fetestexcept): Likewise.
18839 (libc_feupdateenv_test): Likewise.
18840
18841 * sysdeps/generic/math_private.h
18842 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18843 New inline function.
18844 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18845 Likewise.
18846
18847 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18848 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18849 * sysdeps/generic/math_private.h
18850 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18851 inline function.
18852 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18853 Likewise.
18854 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18855 Likewise.
18856 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18857 Likewise.
18858 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18859 Likewise.
18860 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18861 Likewise.
18862 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18863 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18864 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18865 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18866 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18867 (__fegetenv): Likewise.
18868 (fesetenv): Likewise.
18869 (__fesetenv): Likewise.
18870 (feupdateenv): Likewise.
18871 (__feupdateenv): Likewise.
18872 (fegetround): Likewise.
18873 (__fegetround): Likewise.
18874 (fesetround): Likewise.
18875 (__fesetround): Likewise.
18876
18877 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18878 (feraiseexcept): New macro.
18879 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18880 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18881 Remove macro.
18882 (__feraiseexcept): Likewise.
18883 (feclearexcept): Likewise.
18884 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18885 (__feraiseexcept): Likewise.
18886 (feclearexcept): Likewise.
18887 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18888 (__feraiseexcept): Likewise.
18889 (feclearexcept): Likewise.
18890 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18891 (__feraiseexcept): Likewise.
18892 (feclearexcept): Likewise.
18893 (fetestexcept): Likewise.
18894
18895 * sysdeps/m68k/coldfire/math-tests.h: New file.
18896
18897 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18898 * sysdeps/m68k/bits/fenv.h: ... here.
18899 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18900 not define.
18901 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18902 Likewise.
18903 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18904 Likewise.
18905 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18906 Likewise.
18907 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18908 Likewise.
18909 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18910 Define to 0.
18911 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18912 (__FE_UNDEFINED): New enum constant.
18913 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18914 Do not define.
18915 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18916 Likewise.
18917 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18918 Likewise.
18919 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18920 to match generic bits/fenv.h.
18921 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18922 Do not define.
18923
18924 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18925 packed on bits.
18926 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18927 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18928 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18929 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18930
18931 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18932 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18933 Joseph Myers <joseph@codesourcery.com>
18934
18935 [BZ #21314]
18936 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18937 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18938 computation using c.
18939 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18940 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18941 computation using c.
18942
18943 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18944
18945 * version.h (RELEASE): Set to "development".
18946 (VERSION): Set to "2.27.9000".
18947 * NEWS (2.28): New section.
18948
18949 * version.h (RELEASE): Set to "stable".
18950 (VERSION): Set to "2.27".
18951 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18952
18953 * NEWS: Add the list of bugs fixed in 2.27.
18954
18955 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18956
18957 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18958 against PTHREAD_STACK_MIN.
18959
18960 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18961
18962 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18963 New entries.
18964 (Rafal Luzynski, Andreas Schwab): Update.
18965
18966 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18967
18968 [BZ #10871]
18969 * NEWS: List the languages which actually use the alternative
18970 months feature in this release. Also explain that "alt_mon" and
18971 "ab_alt_mon" are optional.
18972
18973 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18974
18975 [BZ #22765]
18976 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18977
18978 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18979
18980 * manual/install.texi (Tools for Compilation): Update the newest
18981 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18982 * INSTALL: Regenerated.
18983
18984 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18985
18986 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18987 instead of __builtin_expect.
18988
18989 2018-01-30 Florian Weimer <fweimer@redhat.com>
18990
18991 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18992 data.
18993 * nss/tst-nss-getpwent.c (do_test): Likewise.
18994
18995 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18996
18997 [BZ #10871]
18998 * localedata/locales/hr_HR (mon): Rename to...
18999 (alt_mon): This.
19000 (mon): Import from CLDR (genitive case).
19001 (d_t_fmt): Update the comment.
19002
19003 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
19004
19005 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
19006 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
19007 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
19008
19009 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19010
19011 * mach/Versions: Fix version when __mach_host_self_ was added.
19012 * hurd/Versions: Fix version when _hurd_exec_paths was added.
19013 * sysdeps/mach/hurd/i386/ld.abilist: New file.
19014 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
19015 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
19016 * sysdeps/mach/hurd/i386/libc.abilist: New file.
19017 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
19018 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
19019 * sysdeps/mach/hurd/i386/libm.abilist: New file.
19020 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
19021 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
19022 * sysdeps/mach/hurd/i386/librt.abilist: New file.
19023 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
19024 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
19025 || to respect codestyle.
19026 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
19027 (do_test_bz20181): Rename accordingly.
19028 * malloc/malloc.c: Include <assert.h>.
19029 (assert): Do not define.
19030 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
19031 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
19032 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
19033 * sysdeps/mach/hurd/hp-timing.h: New file.
19034 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
19035
19036 2018-01-29 Darius Rad <darius@bluespec.com>
19037
19038 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
19039
19040 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
19041
19042 * sysdeps/init_array/crti.S (.section .init_array): Add
19043 PREINIT_FUNCTION when defined.
19044 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
19045 * config.h.in: Regenerate.
19046 * manual/platform.texi: Add RISC-V documenation for
19047 __riscv_flush_icache.
19048 * sysdeps/riscv/__longjmp.S: New file.
19049 * sysdeps/riscv/backtrace.c: Likewise.
19050 * sysdeps/riscv/bits/endian.h: Likewise.
19051 * sysdeps/riscv/bits/setjmp.h: Likewise.
19052 * sysdeps/riscv/bits/wordsize.h: Likewise.
19053 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
19054 * sysdeps/riscv/bsd-setjmp.c: Likewise.
19055 * sysdeps/riscv/dl-trampoline.S: Likewise.
19056 * sysdeps/riscv/gccframe.h: Likewise.
19057 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
19058 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
19059 * sysdeps/riscv/machine-gmon.h: Likewise.
19060 * sysdeps/riscv/memusage.h: Likewise.
19061 * sysdeps/riscv/setjmp.S: Likewise.
19062 * sysdeps/riscv/sys/asm.h: Likewise.
19063 * sysdeps/riscv/tls-macros.h: Likewise.
19064 * sysdeps/riscv/dl-tls.h: New file.
19065 * sysdeps/riscv/libc-tls.c: Likewise.
19066 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
19067 * sysdeps/riscv/nptl/tls.h: Likewise.
19068 * sysdeps/riscv/stackinfo.h: Likewise.
19069 * sysdeps/riscv/bits/fenv.h: New file.
19070 * sysdeps/riscv/e_sqrtl.c: Likewise.
19071 * sysdeps/riscv/fpu_control.h: Likewise.
19072 * sysdeps/riscv/math-tests.h: Likewise.
19073 * sysdeps/riscv/nofpu/Implies: Likewise.
19074 * sysdeps/riscv/sfp-machine.h: Likewise.
19075 * sysdeps/riscv/tininess.h: Likewise.
19076 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
19077 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
19078 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
19079 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
19080 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
19081 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
19082 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
19083 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
19084 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
19085 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
19086 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
19087 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
19088 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
19089 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
19090 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
19091 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
19092 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
19093 * sysdeps/riscv/rvd/s_finite.c: Likewise.
19094 * sysdeps/riscv/rvd/s_fma.c: Likewise.
19095 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
19096 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
19097 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
19098 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
19099 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
19100 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
19101 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
19102 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
19103 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
19104 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
19105 * sysdeps/riscv/rvf/fegetround.c: Likewise.
19106 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
19107 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
19108 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
19109 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
19110 * sysdeps/riscv/rvf/fesetround.c: Likewise.
19111 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
19112 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
19113 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
19114 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
19115 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
19116 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
19117 * sysdeps/riscv/rvf/math_private.h: Likewise.
19118 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
19119 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
19120 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
19121 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
19122 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
19123 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
19124 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
19125 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
19126 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
19127 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
19128 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
19129 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
19130 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
19131 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
19132 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
19133 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
19134 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
19135 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
19136 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
19137 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
19138 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
19139 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
19140 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
19141 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
19142 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
19143 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
19144 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
19145 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
19146 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19147 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19148 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19149 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19150 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19151 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19152 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19153 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19154 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19155 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19156 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19157 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19158 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19159 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19160 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19161 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19162 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19163 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19164 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19165 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19166 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19167 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19168 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19169 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19170 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19171 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19172 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19173 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19174 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19175 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19176 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19177 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19178 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19179 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19180 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19181 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19182 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19183 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19184 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19185 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19186 * sysdeps/riscv/Implies: New file.
19187 * sysdeps/riscv/Makefile: Likewise.
19188 * sysdeps/riscv/configure: Likewise.
19189 * sysdeps/riscv/configure.ac: Likewise.
19190 * sysdeps/riscv/nptl/Makefile: Likewise.
19191 * sysdeps/riscv/preconfigure: Likewise.
19192 * sysdeps/riscv/rv64/Implies-after: Likewise.
19193 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19194 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19195 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19196 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19197 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19198 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19199 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19200 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19201 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19202 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19203 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19204 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19205 (Config): Likewise.
19206
19207 2018-01-29 Florian Weimer <fweimer@redhat.com>
19208
19209 [BZ #22701]
19210 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19211 libnsl_hidden_proto.
19212 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19213 libnsl_hidden_proto.
19214 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19215 * nis/Makefile (libnsl-routines): Add nss-default only for
19216 build-obsolete-nsl.
19217 * nis/nis_defaults.c (__nis_default_ttl): Add
19218 libnsl_hidden_nolink_def.
19219 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19220 declaration.
19221 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19222 * nis/ypclnt.c (yp_maplist): Likewise.
19223
19224 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19225
19226 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19227 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19228
19229 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19230
19231 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19232 clean -dxfq for git updates when replacing sources.
19233
19234 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19235 --disable-libcilkrts unconditionally, not just for the final GCC
19236 build for Hurd.
19237
19238 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19239 version to 4.15.
19240
19241 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19242
19243 [BZ #10871]
19244 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19245 case).
19246
19247 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19248
19249 [BZ #10871]
19250 * localedata/locales/be_BY (mon): Rename to...
19251 (alt_mon): This, then synchronize with CLDR (nominative case).
19252 (abmon): Rename to...
19253 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19254 (mon): Import from CLDR (genitive case).
19255 (abmon): Likewise.
19256 * localedata/locales/be_BY@latin (mon): Rename to...
19257 (alt_mon): This.
19258 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19259
19260 * localedata/locales/be_BY@latin (lang_name): Reworded to
19261 "biełaruskaja mova".
19262
19263 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19264
19265 [BZ #10871]
19266 * localedata/locales/el_CY (mon): Renamed to...
19267 (alt_mon): This.
19268 (mon): Import from CLDR (genitive case).
19269 * localedata/locales/el_GR: Likewise.
19270
19271 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19272
19273 [BZ #10871]
19274 * localedata/locales/ru_RU (mon): Rename to...
19275 (alt_mon): This.
19276 (abmon): Rename to...
19277 (ab_alt_mon): This.
19278 (mon): Import from CLDR (genitive case).
19279 (abmon): Copy from the old content except the 5th month which is
19280 now in the genitive case, even when abbreviated.
19281 * localedata/locales/ru_UA: Likewise.
19282 * time/tst-strptime.c (day_tests): Add an actual example of
19283 a difference between %b and %Ob in Russian.
19284
19285 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19286
19287 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19288 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19289 a `c' variable.
19290 * resolv/res-close.c: Include <stdlib.h>.
19291 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19292 <sys/wait.h>, <time.h>, <sys/uio.h>.
19293 (NOT_CANCEL_H): Add inclusion guard.
19294 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19295 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19296 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19297 return 0.
19298 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19299 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19300 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19301 instead of void *.
19302 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19303 timer_ptr2id to cast struct timer_node * to void *.
19304 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19305 --disable-libcilkrts to gcc configure.
19306 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19307 and make them the default for now.
19308 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19309 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19310 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19311 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19312 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19313 MACH_IPC_COMPAT.
19314 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19315 __task_terminate would ever return successfully.
19316 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19317 to global scope.
19318 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19319 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19320 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19321 critical section to make code simpler and avoid warning.
19322 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19323 critical section to make code simpler and avoid warning.
19324 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19325 const char * instead of char *.
19326 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19327 __hurd_file_name_split, hurd_file_name_split,
19328 __hurd_directory_name_split, hurd_directory_name_split,
19329 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19330 hurd_file_name_path_lookup): Make lookup function parameter take a
19331 const char *name instead of char *name.
19332 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19333 __hurd_directory_name_split): Likewise.
19334 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19335 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19336 * sysdeps/mach/hurd/check_native.c: New file.
19337 * sysdeps/mach/hurd/check_pf.c: New file.
19338 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19339 (__freeifaddrs): Define macro to freeifaddrs.
19340 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19341 * sysdeps/mach/libmachuser.abilist: New file.
19342 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19343 (do_test_bz20181): Rename accordingly.
19344 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19345 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19346 <sys/mount.h>.
19347 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19348 version only if __USE_EXTERN_INLINES is defined.
19349 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19350 __hurd_sockfail): Likewise.
19351 (_hurd_fd_get): Always declare functions, and provide inline versions
19352 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19353 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19354 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19355 _hurd_port_set): Always declare functions, and provide inline versions
19356 only if __USE_EXTERN_INLINES and _LIBC are defined and
19357 IS_IN(libc).
19358 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19359 _hurd_critical_section_unlock): Likewise.
19360 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19361 * __hurd_threadvar_location): Likewise.
19362 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19363 _hurd_userlink_clear): Likewise.
19364 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19365 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19366 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19367 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19368 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19369 __spin_lock_locked): Likewise.
19370 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19371 __spin_lock_locked): Likewise.
19372 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19373 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19374 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19375 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19376 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19377 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19378 _POSIX_NO_TRUNC): Define to 0.
19379 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19380 check size against PTHREAD_STACK_MIN.
19381 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19382 IS_IN(libpthread)]: Include <sigsetops.h>.
19383 * mach/Makefile (user-interfaces): Add mach/gnumach.
19384 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19385 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19386 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19387 instead of invalid -1.
19388 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19389 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19390 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19391 <net/ppp_defs.h>.
19392
19393 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19394
19395 * hurd/fcntl-internal.h: New file.
19396
19397 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19398
19399 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19400
19401 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19402
19403 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19404
19405 [BZ #22701]
19406 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19407 Build only shared objects.
19408
19409 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19410
19411 * README: Update for hppa.
19412
19413 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19414
19415 * sysdeps/sparc/fpu/libm-test-ulps: Update
19416 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19417
19418 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19419
19420 Revert:
19421
19422 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19423
19424 [BZ #22563]
19425 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19426 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19427 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19428 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19429 to feature_1.
19430
19431 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19432
19433 [BZ #22563]
19434 * bits/types/__cancel_jmp_buf_tag.h: New file.
19435 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19436 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19437 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19438 * nptl/Makefile (headers): Add
19439 bits/types/__cancel_jmp_buf_tag.h.
19440 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19441 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19442 * sysdeps/nptl/pthread.h: Include
19443 <bits/types/__cancel_jmp_buf_tag.h>.
19444 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19445 __cancel_jmp_buf.
19446 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19447
19448 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19449
19450 [BZ #10871]
19451 * localedata/locales/uk_UA (mon): Renamed to...
19452 (alt_mon): This.
19453 (alt_digits): "0" removed and then renamed to...
19454 (mon): This.
19455 (date_fmt): Definition changed not to use the alternative
19456 digits hack.
19457
19458 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19459
19460 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19461 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19462 * elf/elf.h (EF_RISCV_RVC): New define.
19463 (EF_RISCV_FLOAT_ABI): Likewise.
19464 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19465 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19466 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19467 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19468 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19469 define.
19470 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19471
19472 2018-01-25 Andreas Schwab <schwab@suse.de>
19473
19474 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19475 single quotes.
19476 * sysdeps/gnu/configure: Regenerate.
19477 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19478 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19480 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19481 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19482 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19483 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19484 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19485
19486 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19487
19488 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19489 URL, and run autoconf, make it the default for now.
19490
19491 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19492
19493 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19494 soft-float ColdFire configuration.
19495
19496 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19497 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19498 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19499
19500 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19501 MicroBlaze file.
19502
19503 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19504 ....
19505 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19506 ... here.
19507 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19508 New file.
19509
19510 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19511 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19512 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19513 file.
19514
19515 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19516
19517 [BZ #22742]
19518 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19519 Rename to __reserved and add comment.
19520 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19521 Rename to __reserved.
19522
19523 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19524
19525 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19526 i686-gnu configurations.
19527 (Context.run_builds): Include mig, gnumach and hurd in components
19528 considered.
19529 (Context.checkout): Add mig, gnumach and hurd to components.
19530 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19531 hurd.
19532 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19533 (Config.build): Install gnumach headers, build mig and install
19534 hurd headers for 'gnu' OS.
19535 (Config.install_gnumach_headers): New function.
19536 (Config.install_hurd_headers): Likewise.
19537 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19538 when building for 'gnu' OS.
19539
19540 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19541
19542 * manual/tunables.texi (Hardware Capability Tunables): Fix
19543 spelling.
19544
19545 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19546
19547 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19548 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19549 (ALTMON_11, ALTMON_12): Improve documentation.
19550 * manual/time.texi (strftime): Likewise.
19551
19552 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19553
19554 [BZ #10871]
19555 * localedata/locales/pl_PL: Alternative month names added,
19556 primary month names are genitive now.
19557 * time/tst-strptime.c (day_tests): Actually use a genitive case
19558 of a month name in Polish language.
19559
19560 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19561
19562 [BZ #10871]
19563 * manual/locale.texi: Document ALTMON_1..12 constants for
19564 nl_langinfo. Specify when to use ALTMON instead of MON.
19565 * manual/time.texi (strftime, strptime): Document GNU extension
19566 permitting O modifier with %B and %b. Specify when to use
19567 %OB instead of %B.
19568
19569 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19570
19571 [BZ #10871]
19572 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19573 names, define them as the same as abbreviated month names explicitly.
19574 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19575 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19576 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19577 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19578 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19579 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19580 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19581 _NL_WABALTMON_12): New enum constants.
19582 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19583 wab_alt_mon, and ab_alt_mon_defined members.
19584 (time_output): Output ab_alt_mon and wab_alt_mon members.
19585 (time_read): Read them, initialize them as copies of abmon and wabmon
19586 respectively if they are missing, initialize ab_alt_mon_defined.
19587 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19588 * locale/programs/locfile-kw.h: Regenerate.
19589 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19590 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19591 and ru_RU.UTF-8.
19592 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19593 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19594 (__strftime_internal): Handle %Ob and %Oh formats.
19595 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19596 (__strptime_internal): Handle %Ob and %Oh formats.
19597 * time/tst-strptime.c (day_tests): Add more tests to parse different
19598 forms of month names including the new %Ob format specifier.
19599
19600 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19601
19602 [BZ #10871]
19603 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19604 define them as the same as primary full month names explicitly.
19605 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19606 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19607 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19608 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19609 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19610 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19611 _NL_WALTMON_12): New enum constants.
19612 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19613 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19614 macros.
19615 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19616 walt_mon, and alt_mon_defined members.
19617 (time_output): Output alt_mon and walt_mon members.
19618 (time_read): Read them, initialize them as copies of mon and wmon
19619 respectively if they are missing, initialize alt_mon_defined.
19620 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19621 * locale/programs/locfile-kw.h: Regenerate.
19622 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19623 * localedata/tst-langinfo.c (map): Add tests for the new constants
19624 ALTMON_1 .. ALTMON_12.
19625 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19626 and pl_PL.UTF-8.
19627 * time/strftime_l.c (f_altmonth): New macro.
19628 (__strftime_internal): Handle %OB format.
19629 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19630 (__strptime_internal): Handle %OB format.
19631 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19632 of month names including the new %OB format specifier.
19633
19634 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19635
19636 [BZ #22685]
19637 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19638 from ABORT_TRANSACTION.
19639 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19640 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19641 ABORT_TRANSACTION_IMPL): Likewise.
19642 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19643 Linux code, but remove the code that aborts transactions.
19644
19645 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19646
19647 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19648
19649 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19650
19651 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19652 in date: "2004-14-09" should be "2004-09-14".
19653 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19654 "2003-15-09" should be "2003-09-15".
19655
19656 2018-01-18 Arjun Shankar <arjun@redhat.com>
19657
19658 [BZ #22343]
19659 [BZ #22774]
19660 CVE-2018-6485
19661 CVE-2018-6551
19662 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19663 after padding.
19664 (_int_memalign): check for integer overflow before calling
19665 _int_malloc.
19666 * malloc/tst-malloc-too-large.c: New test.
19667 * malloc/Makefile: Add tst-malloc-too-large.
19668
19669 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19670
19671 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19672 in date: "2017-24-07" should be "2017-07-24".
19673 * localedata/locales/mai_IN: Likewise.
19674 * localedata/locales/mai_NP: Likewise.
19675
19676 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19677
19678 * po/ru.po: Update translations.
19679
19680 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19681
19682 [BZ #22719]
19683 * sysdeps/hppa/backtrace.c: New file.
19684
19685 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19686
19687 [BZ #22715]
19688 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19689 align La_x86_64_retval to VEC_SIZE.
19690
19691 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19692
19693 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19694 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19695
19696 2018-01-16 Florian Weimer <fweimer@redhat.com>
19697
19698 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19699 Move tst-thread-exit-clobber ...
19700 [$(CXX)] (tests-unsupported): ... to here.
19701
19702 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19703
19704 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19705 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19706 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19707 (_dl_aarch64_cap_flags): Update.
19708 (_DL_HWCAP_COUNT): Update.
19709
19710 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19711
19712 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19713 (_DL_HWCAP_LAST): Remove.
19714 (_DL_HWCAP_COUNT): Move to ...
19715 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19716 (_DL_HWCAP_COUNT): ... here.
19717
19718 2018-01-16 Florian Weimer <fweimer@redhat.com>
19719
19720 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19721 mode with GNU extensions.
19722
19723 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19724
19725 * elf/elf.h (NT_ARM_SVE): Define.
19726
19727 2018-01-15 Florian Weimer <fweimer@redhat.com>
19728
19729 [BZ #22636]
19730 * nptl/tst-minstack-throw.cc: New file.
19731 * nptl/Makefile (tests): Add tst-minstack-throw.
19732 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19733 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19734
19735 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19736
19737 * scripts/build-many-glibcs.py (Context.checkout): Default
19738 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19739 version to 1.1.0.
19740
19741 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19742
19743 [BZ #22707]
19744 * elf/elf.h (DF_1_STUB): Define.
19745 (DF_1_PIE): Define.
19746
19747 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19748
19749 [BZ #22697]
19750 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19751 Do not add 0.5 to integer or out-of-range arguments.
19752
19753 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19754
19755 * po/bg.po: Update translations.
19756 * po/cs.po: Likewise.
19757 * po/de.po: Likewise.
19758 * po/ko.po: Likewise.
19759 * po/pl.po: Likewise.
19760 * po/sv.po: Likewise.
19761 * po/uk.po: Likewise.
19762 * po/vi.po: Likewise.
19763
19764 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19765
19766 * aarch64/start.S (_start): Use __wrap_main.
19767 (__wrap_main): New local symbol.
19768
19769 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19770
19771 [BZ #22679]
19772 CVE-2018-1000001
19773 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19774 generic_getcwd if the path returned by getcwd syscall is not absolute.
19775 * io/tst-getcwd-abspath.c: New test.
19776 * io/Makefile (tests): Add tst-getcwd-abspath.
19777
19778 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19779
19780 * malloc/malloc.c (malloc_consolidate): Add size check.
19781
19782 2018-01-12 Florian Weimer <fweimer@redhat.com>
19783
19784 * support/write_message.c (write_message): Preserve errno.
19785 * support/check.c (print_failure): Likewise.
19786 * support/support_test_verify_impl.c (support_test_verify_impl):
19787 Likewise.
19788 * support/support_test_compare_failure.c
19789 (support_test_compare_failure): Likewise.
19790
19791 2018-01-12 Florian Weimer <fweimer@redhat.com>
19792
19793 [BZ #22701]
19794 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19795 Prevent installation of libnsl.so.
19796 (libnsl-inhibit-o): Do not build (or install) static libraries.
19797
19798 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19799
19800 [BZ #22657]
19801 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19802 before the day number which may produce a double space.
19803 (date_fmt): Likewise.
19804
19805 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19806
19807 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19808 instead of fegetenv.
19809
19810 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19811
19812 [BZ #22702]
19813 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19814 comment to say exceptions are discarded.
19815 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19816 __fegetenv.
19817 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19818 be enabled.
19819
19820 2018-01-11 Florian Weimer <fweimer@redhat.com>
19821
19822 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19823 and error message.
19824
19825 2018-01-11 Florian Weimer <fweimer@redhat.com>
19826
19827 [BZ #22636]
19828 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19829 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19830
19831 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19832
19833 [BZ #22693]
19834 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19835 negative arguments in test for NaN or infinity argument.
19836
19837 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19838
19839 * po/libc.pot: Regenerate.
19840
19841 2018-01-10 Florian Weimer <fweimer@redhat.com>
19842
19843 [BZ #22636]
19844 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19845 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19846
19847 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19848
19849 * hurd/hurd/fd.h: Include <fcntl.h>
19850 (__hurd_at_flags): New function.
19851 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19852 with call to __hurd_at_flags.
19853 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19854 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19855 __faccessat
19856 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19857 (__access_noerrno): Use __faccessat_common instead of access_common.
19858 (__access): Likewise.
19859 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19860 with a call to __faccessat.
19861 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19862 (__faccessat_common): ... this. Move implementation of __access into it when
19863 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19864 reauthenticate_cwdir_at helper to implement AT mechanism.
19865 (__faccessat_noerrno): New function, just calls __faccessat_common.
19866 (__faccessat): New function, just calls __faccessat_common.
19867 (faccessat): Define weak alias.
19868
19869 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19870
19871 [BZ #22691]
19872 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19873 (CFLAGS-s_fmaxmagl.c): New variable.
19874 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19875
19876 [BZ #22690]
19877 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19878 long int for arguments of possibly overflowing addition or
19879 subtraction.
19880 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19881
19882 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19883
19884 [BZ #22688]
19885 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19886 (CFLAGS-e_remainderl.c): New variable.
19887
19888 [BZ #22687]
19889 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19890 variable.
19891 (CFLAGS-s_cacoshl.c): Likewise.
19892 (CFLAGS-s_casinhl.c): Likewise.
19893 (CFLAGS-s_catanl.c): Likewise.
19894 (CFLAGS-s_catanhl.c): Likewise.
19895 (CFLAGS-s_cexpl.c): Likewise.
19896 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19897 (CFLAGS-s_csinhl.c): Likewise.
19898 (CFLAGS-s_clogl.c): Likewise.
19899 (CFLAGS-s_clog10l.c): Likewise.
19900 (CFLAGS-s_csinl.c): Likewise.
19901 (CFLAGS-s_csqrtl.c): Likewise.
19902
19903 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19904 2017-01-09 Svante Signell <svante.signell@gmail.com>
19905
19906 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19907 (_hurd_exec_paths): New function.
19908 * hurd/hurd.h (_hurd_exec): Deprecate function.
19909 (_hurd_exec_paths): Declare function.
19910 * hurd/Versions: Export _hurd_exec_paths.
19911 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19912 (__execve): Use __getcwd to build absolute path, and use
19913 _hurd_exec_paths instead of _hurd_exec.
19914 * sysdeps/mach/hurd/spawni.c: Likewise.
19915 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19916 _hurd_exec.
19917
19918 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19919
19920 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19921 test instead of failing in case of ENOENT returned by posix_openpt.
19922
19923 2018-01-08 Florian Weimer <fweimer@redhat.com>
19924
19925 resolv: Support binary labels in test framework.
19926 * support/resolv_test.c (struct to_be_freed): Remove.
19927 (struct compressed_name): New.
19928 (allocate_compressed_name, ascii_tolower)
19929 (compare_compressed_name): New functions.
19930 (struct resolv_response_builder): Update type of
19931 compression_offsets for use with tsearch. Rempve to_be_freed.
19932 (response_push_pointer_to_free): Remove function.
19933 (resolv_response_add_name): Rewrite using struct compressed_name
19934 and tsearch instead of hsearch_r.
19935 (response_builder_allocate): Remove initialization of
19936 compression_offsets.
19937 (response_builder_free): Update for removal of to_be_freed. Use
19938 tdestroy instead of hdestroy_r.
19939 * resolv/Makefile (tests): Add tst-resolv-binary.
19940 (tst-resolv-binary): Link with -lresolv -lpthread.
19941
19942 2018-01-08 Florian Weimer <fweimer@redhat.com>
19943
19944 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19945 time. Pass positive flag instead of negative flag to
19946 support_test_compare_failure.
19947 (support_test_compare_failure): Change negative parameter to
19948 positive.
19949 * support/support_test_compare_failure.c (report)
19950 (support_test_compare_failure): Likewise.
19951 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19952 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19953
19954 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19955
19956 [BZ #22637]
19957 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19958 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19959 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19960 stacksize.
19961 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19962
19963 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19964
19965 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19966 Add s_sincosf-sse2 and s_sincosf-fma.
19967 (CFLAGS-s_sincosf-fma.c): New.
19968 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19969 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19970 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19971 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19972 __sincosf is defined.
19973
19974 2018-01-08 Florian Weimer <fweimer@redhat.com>
19975
19976 * nptl/tst-thread-exit-clobber.cc: New file.
19977 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19978 C++11 mode.
19979 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19980 (tests): Add tst-thread-exit-clobber.
19981 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19982
19983 2018-01-08 Florian Weimer <fweimer@redhat.com>
19984
19985 * support/check.h (support_static_assert): Define.
19986 (TEST_COMPARE): Use it.
19987
19988 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19989
19990 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19991 [!__RLIM_T_MATCHES_RLIM64_T]
19992 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19993 __getrlimit64. Add libc_hidden_weak.
19994
19995 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19996
19997 * elf/elf.h (R_RISCV_NONE): New define.
19998 (R_RISCV_32): Likewise.
19999 (R_RISCV_64): Likewise.
20000 (R_RISCV_RELATIVE): Likewise.
20001 (R_RISCV_COPY): Likewise.
20002 (R_RISCV_JUMP_SLOT): Likewise.
20003 (R_RISCV_TLS_DTPMOD32): Likewise.
20004 (R_RISCV_TLS_DTPMOD64): Likewise.
20005 (R_RISCV_TLS_DTPREL32): Likewise.
20006 (R_RISCV_TLS_DTPREL64): Likewise.
20007 (R_RISCV_TLS_TPREL32): Likewise.
20008 (R_RISCV_TLS_TPREL64): Likewise.
20009 * Makerules (make-link-multidir): Make directories before linking into
20010 them.
20011 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
20012 define.
20013 (VDSO_HASH_LINUX_4_15): Likewise.
20014 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
20015 in subdirectories of lib.
20016 * nptl/Makefile (/librt.so): Always depend on
20017 "$(shared-thread-library)".
20018
20019 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
20020
20021 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
20022 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
20023 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
20024 (___tls_get_addr).
20025 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
20026 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
20027 "-O2 -march=i686".
20028 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
20029 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
20030 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
20031 * sysdeps/gnu/glob-lstat-compat.c: New file.
20032 * sysdeps/gnu/glob64-lstat-compat.c: New file.
20033 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
20034
20035 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20036
20037 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
20038 Reserve 16 chars to reloc_addr before calling _itoa_word.
20039
20040 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20041
20042 [BZ #22678]
20043 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
20044 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
20045
20046 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
20047 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
20048
20049 * resource/tst-getrlimit.c: Add copyright header.
20050
20051 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20052 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20053
20054 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20055 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
20056 Define __GI_getrlimit64 as weak alias of __getrlimit64.
20057 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
20058 instead.
20059 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
20060 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
20061 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
20062 RLIM64_INFINITY): Fix values to match the kernel ones.
20063 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
20064 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
20065 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
20066 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
20067 getrlimit64@@GLIBC_2_27.
20068 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
20069 and setrlimit64.
20070 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
20071 getrlimit, setrlimit, getrlimit64 and setrlimit64.
20072 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
20073 setrlimit, getrlimit64 and setrlimit64.
20074
20075 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
20076
20077 [BZ #22648]
20078 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
20079 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
20080
20081 2018-01-04 Joseph Myers <joseph@codesourcery.com>
20082
20083 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
20084 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
20085 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
20086
20087 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20088
20089 [BZ #15479]
20090 [BZ #22666]
20091 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
20092 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
20093
20094 [BZ #15479]
20095 [BZ #22665]
20096 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
20097 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
20098 * sysdeps/alpha/fpu/s_floor.c: Likewise.
20099 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
20100
20101 2018-01-04 Florian Weimer <fweimer@redhat.com>
20102
20103 [BZ #22667]
20104 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
20105 Align the stack before calling exit.
20106 * stdlib/tst-makecontext-align.c: New file.
20107 * stdlib/Makefile (tests): Add tst-makecontext-align.
20108
20109 2018-01-04 Florian Weimer <fweimer@redhat.com>
20110
20111 Add support for calling dlvsym from libc.so.
20112 * include/dlfcn.h (__libc_dlvsym): Declare.
20113 * elf/Makefile (tests-static-internal): Add
20114 tst-libc_dlvsym-static.
20115 (tests-internal): Add tst-libc_dlvsym.
20116 (modules-names): Add tst-libc_dlvsym-dso.
20117 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
20118 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
20119 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
20120 object tst-libc_dlvsym-dso.so needs to be built before running
20121 these tests.
20122 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
20123 * elf/Versions: Export __libc_dlvsym.
20124 * elf/dl-libc.c (struct do_dlvsym_args): New.
20125 (do_dlvsym, __libc_dlvsym): New functions.
20126 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
20127 (_dl_open_hook2): New variable.
20128 (__libc_register_dl_open_hook): Set it.
20129 * elf/tst-libc_dlvsym-dso.c: New file.
20130 * elf/tst-libc_dlvsym-static.c: Likewise.
20131 * elf/tst-libc_dlvsym.c: Likewise.
20132 * elf/tst-libc_dlvsym.h: Likewise.
20133
20134 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20135
20136 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
20137 include <sys/mount.h>.
20138
20139 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
20140
20141 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
20142 Add __NO_MATH_ERRNO__ check.
20143
20144 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20145
20146 * sysdeps/mips/mips32/libm-test-ulps: Update.
20147 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20148
20149 2018-01-02 Florian Weimer <fweimer@redhat.com>
20150
20151 * misc/tst-pselect.c: Add copyright header.
20152
20153 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20154
20155 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20156 comment.
20157 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20158 comment.
20159 (settrlimit): Rename into setrlimit.
20160 (__sttrlimit): Rename into __setrlimit.
20161
20162 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20163 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20164 never defined in that case.
20165
20166 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20167
20168 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20169
20170 * sysdeps/arm/libm-test-ulps: Update.
20171
20172 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20173 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20174
20175 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20176
20177 * NEWS: Add cosf and sincosf to list of optimized functions.
20178
20179 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20180
20181 [BZ #22660]
20182 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20183 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20184 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20185 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20186
20187 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20188
20189 [BZ #22433]
20190 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20191
20192 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20193 making a copy of it.
20194
20195 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20196
20197 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20198 trailing whitespace removed.
20199 * scripts/config.guess: Update to version 2018-01-01.
20200 * scripts/config.sub: Update to version 2018-01-01.
20201 * scripts/move-if-change: Update from gnulib.
20202
20203 * NEWS: Update copyright dates.
20204 * catgets/gencat.c (print_version): Likewise.
20205 * csu/version.c (banner): Likewise.
20206 * debug/catchsegv.sh: Likewise.
20207 * debug/pcprofiledump.c (print_version): Likewise.
20208 * debug/xtrace.sh (do_version): Likewise.
20209 * elf/ldconfig.c (print_version): Likewise.
20210 * elf/ldd.bash.in: Likewise.
20211 * elf/pldd.c (print_version): Likewise.
20212 * elf/sotruss.sh: Likewise.
20213 * elf/sprof.c (print_version): Likewise.
20214 * iconv/iconv_prog.c (print_version): Likewise.
20215 * iconv/iconvconfig.c (print_version): Likewise.
20216 * locale/programs/locale.c (print_version): Likewise.
20217 * locale/programs/localedef.c (print_version): Likewise.
20218 * login/programs/pt_chown.c (print_version): Likewise.
20219 * malloc/memusage.sh (do_version): Likewise.
20220 * malloc/memusagestat.c (print_version): Likewise.
20221 * malloc/mtrace.pl: Likewise.
20222 * manual/libc.texinfo: Likewise.
20223 * nptl/version.c (banner): Likewise.
20224 * nscd/nscd.c (print_version): Likewise.
20225 * nss/getent.c (print_version): Likewise.
20226 * nss/makedb.c (print_version): Likewise.
20227 * posix/getconf.c (main): Likewise.
20228 * scripts/test-installation.pl: Likewise.
20229 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20230
20231 * All files with FSF copyright notices: Update copyright dates
20232 using scripts/update-copyrights.
20233 * locale/programs/charmap-kw.h: Regenerated.
20234 * locale/programs/locfile-kw.h: Likewise.
20235
20236 2017-12-31 Zack Weinberg <zackw@panix.com>
20237
20238 * libio/bits/libio-ldbl.h: Correct check for improper
20239 inclusion. Add own multiple include guard.
20240
20241 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20242 Dmitry V. Levin <ldv@altlinux.org>
20243
20244 [BZ #22625]
20245 CVE-2017-16997
20246 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20247 string token expansion. Check for NULL pointer or empty string possibly
20248 returned by expand_dynamic_string_token.
20249 (decompose_rpath): Check for empty path after dynamic string
20250 token expansion.
20251
20252 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20253
20254 [BZ #22433]
20255 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20256
20257 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20258 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20259 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20260 and PTRACE_SYSCALL.
20261 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20262 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20263 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20264 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20265 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20266 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20267
20268 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20269 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20270 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20271 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20272 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20273 bits/ptrace-shared.h.
20274 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20275 <bits/ptrace-shared.h>.
20276 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20277 __ptrace_peeksiginfo_flags, ptrace): Remove.
20278 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20279 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20280 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20281 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20282 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20283
20284 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20285
20286 [BZ #17804]
20287 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20288 end of the loop. Improve comments.
20289
20290 2017-12-29 Zack Weinberg <zackw@panix.com>
20291
20292 [BZ #22615]
20293 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20294 might be set on success.
20295
20296 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20297
20298 [BZ #22611]
20299 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20300 is unchanged on success.
20301
20302 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20303
20304 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20305 updated.
20306 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20307 expand_dynamic_string_token): Likewise.
20308 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20309 is_path argument.
20310
20311 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20312 contains ':'.
20313
20314 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20315 is set and name contains ':', and all code depending on these checks.
20316
20317 2017-12-24 Zack Weinberg <zackw@panix.com>
20318
20319 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20320 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20321 respectively.
20322 * libio/libio.h: Rename the original version of this file to
20323 libio/bits/libio.h. Error out if not included by stdio.h or the
20324 stub libio.h.
20325 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20326 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20327 if not included by bits/libio.h or the stub _G_config.h.
20328 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20329 sysdeps/unix/sysv/linux/bits. Error out if not included by
20330 bits/libio.h or the stub _G_config.h.
20331 * libio/stdio.h: Include bits/libio.h, not libio.h.
20332 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20333 well as libio.h and _G_config.h.
20334
20335 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20336 * libio/strfile.h, stdio-common/vfscanf.c
20337 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20338 Include stdio.h, not _G_config.h nor libio.h.
20339 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20340 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20341
20342 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20343
20344 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20345
20346 [BZ #22347]
20347 * stdlib/getrandom.c (getrandom): Fix comment.
20348 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20349
20350 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20351
20352 [BZ #21161]
20353 * manual/arith.texi (strtoul): Fix a typo.
20354
20355 [BZ #22596]
20356 * manual/arith.texi (finite): Fix the description of the return
20357 value.
20358
20359 2017-12-22 Eric Blake <ebb9@byu.net>
20360
20361 Avoid gcc warnings on cygwin
20362 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20363 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20364 Avoid unused variable.
20365
20366 2017-12-22 Florian Weimer <fweimer@redhat.com>
20367
20368 * io/Makefile (routines): Add copy_file_range.
20369 (tests): Add tst-copy_file_range.
20370 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20371 * io/Versions (GLIBC_2.27): Export copy_file_range.
20372 * io/copy_file_range-compat.c: New file.
20373 * io/copy_file_range.c: Likewise.
20374 * io/tst-copy_file_range-compat.c: Likewise.
20375 * io/tst-copy_file_range.c: Likewise.
20376 * manual/llio.texi (Copying File Data): New section.
20377 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20378 * support/Makefile (libsupport-routines): Add support-xfstat,
20379 xftruncate, xlseek.
20380 * support/support-xfstat.c: New file.
20381 * support/xftruncate.c: Likewise.
20382 * support/xlseek.c: Likewise.
20383 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20384 * sysdeps/unix/sysv/linux/**.abilist: Update.
20385 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20386
20387 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20388
20389 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20390 disable-multi-arch variant to aarch64-linux-gnu.
20391
20392 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20393
20394 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20395 trailing whitespace removed.
20396 * scripts/config.guess: Update to version 2017-12-17.
20397 * scripts/config.sub: Update to version 2017-11-23.
20398 * scripts/install-sh: Update to version 2017-09-23.17.
20399 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20400
20401 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20402
20403 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20404 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20405 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20406 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20407 * sysdeps/tile/crtn.S: Likewise.
20408 * sysdeps/tile/dl-start.S (_start): Likewise.
20409 * sysdeps/tile/dl-trampoline.S: Likewise.
20410 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20411 * sysdeps/tile/start.S (_start): Likewise.
20412 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20413 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20414 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20415 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20416 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20417 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20418 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20419
20420 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20421 comment.
20422 * sysdeps/tile/preconfigure: Remove tilegx folder.
20423 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20424 * sysdeps/tile/Implies: ... here.
20425 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20426 * sysdeps/tile/Makefile: ... here.
20427 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20428 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20429 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20430 * sysdeps/tile/bits/wordsize.h: ... here.
20431 * sysdeps/tile/tilegx/*: Move to ...
20432 * sysdeps/tile/*: ... here.
20433 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20434 * sysdeps/tile/tilegx32/Implies: ... here.
20435 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20436 * sysdeps/tile/tilegx64/Implies: ... here.
20437 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20438 to ...
20439 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20440 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20441 * sysdeps/unix/sysv/linux/tile/*: ... here.
20442 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20443 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20444 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20445 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20446
20447 * README: Remove tilepro-*-linux-gnu from supported architecture.
20448 * scripts/build-many-glibcs.py: Likewise.
20449 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20450 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20451 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20452 elf_machine_matches_host, elf_machine_dynamic,
20453 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20454 howto, elf_machine_rela): Likewise.
20455 * sysdeps/tile/dl-start.S (_start): Likewise.
20456 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20457 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20458 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20459 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20460 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20461 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20462 Likewise.
20463 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20464 * sysdeps/tile/preconfigure: Likewise.
20465 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20466 POINTER_CHK_GUARD): Likewise.
20467 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20468 * sysdeps/tile/start.S (_start): Likewise.
20469 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20470 Likewise.
20471 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20472 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20473 CMOVNEZ): Remove.
20474 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20475 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20476 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20477 Likewise.
20478 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20479 * sysdeps/tile/tilepro/Implies: Remove file.
20480 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20481 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20482 * sysdeps/tile/tilepro/memchr.c: Likewise.
20483 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20484 * sysdeps/tile/tilepro/memset.c: Likewise.
20485 * sysdeps/tile/tilepro/memusage.h: Likewise.
20486 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20487 * sysdeps/tile/tilepro/strchr.c: Likewise.
20488 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20489 * sysdeps/tile/tilepro/strlen.c: Likewise.
20490 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20491 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20492 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20493 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20494 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20495 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20496 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20497 Likewise.
20498 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20499 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20500 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20501 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20502 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20503 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20504 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20505 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20506 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20507 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20508 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20509 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20510 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20511 tilepro mention in comment.
20512
20513 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20514 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20515 * nptl/pthread_join_common.c: New file: common function used on
20516 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20517 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20518 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20519 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20520 (cleanup): Move definition to pthread_join_common.c.
20521 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20522 Remove superflous checks.
20523 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20524 Likewise.
20525
20526 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20527
20528 * sysdeps/aarch64/libm-test-ulps: Update.
20529
20530 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20531
20532 * sysdeps/aarch64/memset.S (MEMSET): Define.
20533
20534 2017-12-20 Florian Weimer <fweimer@redhat.com>
20535
20536 [BZ #22635]
20537 nptl: Provide full implementation of pthread_self in libc.so.
20538 * nptl/Makefile (routines): Add pthread_self.
20539 (libpthread-routines): Replace pthread_self with
20540 compat-pthread_self.
20541 * nptl/forward.c (pthread_self): Remove.
20542 * nptl/nptl-init.c (pthread_functions): Do not initialize
20543 ptr_pthread_self.
20544 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20545 * nptl/compat-pthread_self.c: New file.
20546 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20547 Remove ptr_pthread_self.
20548
20549 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20550
20551 * posix/regcomp.c: Fix spelling in comments.
20552 * posix/regex.h: Likewise.
20553 * posix/regex_internal.c: Likewise.
20554 * posix/regexec.c: Likewise.
20555
20556 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20557
20558 [BZ #22377]
20559 * math/Makefile [C++] (tests): Add test for iseqsig.
20560 * math/math.h [C++] (iseqsig): New implementation, which does
20561 not rely on __MATH_TG/__builtin_types_compatible_p.
20562 * math/test-math-iseqsig.cc: New file.
20563 * sysdeps/powerpc/powerpc64le/Makefile
20564 (CFLAGS-test-math-iseqsig.cc): New variable.
20565
20566 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20567
20568 * elf/dl-load.c (is_trusted_path): Remove.
20569 (fillin_rpath): Remove check_trusted argument and its use,
20570 all callers changed.
20571
20572 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20573
20574 [BZ #22630]
20575 * Makeconfig (link-pie-before-libc): Replace -pie with
20576 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20577 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20578 (tst-dlopen-aout-no-pie): New.
20579 (LDFLAGS-tst-prelink): Removed.
20580 (tst-prelink-no-pie): New.
20581 (LDFLAGS-tst-main1): Removed.
20582 (tst-main1-no-pie): New.
20583 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20584 (tst-gmon-no-pie): New.
20585
20586 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20587
20588 * manual/install.texi: Document that --enable-static-pie
20589 implies PIE.
20590 * INSTALL: Regenerated.
20591
20592 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20593
20594 [BZ #21309]
20595 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20596 unsigned.
20597
20598 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20599
20600 Revert:
20601
20602 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20603
20604 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20605
20606 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20607
20608 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20609 <errno.h>. Include "eexp.tbl".
20610 (half): New constant.
20611 (one): Likewise.
20612 (__ieee754_exp): Rewrite.
20613 (__slowexp): Remove prototype.
20614 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20615 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20616 * sysdeps/i386/fpu/slowexp.c: Likewise.
20617 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20618 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20619 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20620 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20621 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20622 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20623 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20624 comment.
20625 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20626 (CPPFLAGS-slowexp.c): Remove variable.
20627 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20628 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20629 (CFLAGS-slowexp-fma.c): Remove variable.
20630 (CFLAGS-slowexp-fma4.c): Likewise.
20631 (CFLAGS-slowexp-avx.c): Likewise.
20632 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20633 define as macro.
20634 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20635 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20636 * math/Makefile (type-double-routines): Remove slowexp.
20637 * manual/probes.texi (slowexp_p6): Remove.
20638 (slowexp_p32): Likewise.
20639
20640 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20641
20642 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20643 arithmetic.
20644
20645 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20646
20647 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20648
20649 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20650
20651 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20652
20653 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20654 <errno.h>. Include "eexp.tbl".
20655 (half): New constant.
20656 (one): Likewise.
20657 (__ieee754_exp): Rewrite.
20658 (__slowexp): Remove prototype.
20659 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20660 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20661 * sysdeps/i386/fpu/slowexp.c: Likewise.
20662 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20663 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20664 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20665 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20666 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20667 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20668 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20669 comment.
20670 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20671 (CPPFLAGS-slowexp.c): Remove variable.
20672 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20673 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20674 (CFLAGS-slowexp-fma.c): Remove variable.
20675 (CFLAGS-slowexp-fma4.c): Likewise.
20676 (CFLAGS-slowexp-avx.c): Likewise.
20677 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20678 define as macro.
20679 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20680 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20681 * math/Makefile (type-double-routines): Remove slowexp.
20682 * manual/probes.texi (slowexp_p6): Remove.
20683 (slowexp_p32): Likewise.
20684
20685 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20686 James Clarke <jrtc27@jrtc27.com>
20687
20688 [BZ #22603]
20689 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20690 addition.
20691
20692 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20693
20694 [BZ #22605]
20695 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20696 code.
20697
20698 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20699
20700 [BZ #22563]
20701 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20702 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20703 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20704 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20705 to feature_1.
20706
20707 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20708
20709 [BZ #22563]
20710 * bits/types/__cancel_jmp_buf_tag.h: New file.
20711 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20712 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20713 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20714 * nptl/Makefile (headers): Add
20715 bits/types/__cancel_jmp_buf_tag.h.
20716 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20717 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20718 * sysdeps/nptl/pthread.h: Include
20719 <bits/types/__cancel_jmp_buf_tag.h>.
20720 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20721 __cancel_jmp_buf.
20722 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20723
20724 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20725
20726 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20727 --enable-static-pie variants to x86_64, x32 and i686.
20728
20729 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20730
20731 [BZ #22631]
20732 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20733 argument for attrubutes. All callers changed.
20734 (__inline_mathop1): Likewise. All callers changed.
20735 (__inline_mathop): Likewise. All callers changed.
20736 [__USE_MISC] (scalbn): Use __inline_forward instead of
20737 __inline_forward_c.
20738 [__USE_ISOC99] (scalbln): Likewise.
20739 [__USE_ISOC99] (nearbyint): Likewise.
20740 [__USE_ISOC99] (lrint): Likewise.
20741 [__USE_MISC] (scalbnf): Likewise.
20742 [__USE_ISOC99] (scalblnf): Likewise.
20743 [__USE_ISOC99] (nearbyintf): Likewise.
20744 [__USE_ISOC99] (lrintf): Likewise.
20745 [__USE_MISC] (scalbnl): Likewise.
20746 [__USE_ISOC99] (scalblnl): Likewise.
20747 [__USE_ISOC99] (nearbyintl): Likewise.
20748 [__USE_ISOC99] (lrintl): Likewise.
20749 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20750 __inline_mathop and __m81_defun changed.
20751
20752 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20753 CPU or FPU for ARM hard-float configurations.
20754
20755 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20756
20757 * nptl/tst-attr3.c: Include <libc-diag.h>.
20758 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20759
20760 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20761
20762 * string/tester.c (test_strncat): Also disable -Warray-bounds
20763 warnings for two tests.
20764
20765 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20766
20767 [BZ #22614]
20768 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20769 $(cc-pie-default) == yes.
20770 * config.make.in (cc-pie-default): New.
20771 * configure.ac (libc_cv_pie_default): Renamed to ...
20772 (libc_cv_cc_pie_default): This.
20773 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20774 * configure: Regenerated.
20775
20776 2017-12-18 Florian Weimer <fweimer@redhat.com>
20777
20778 [BZ #20204]
20779 ld.so: Harden dl-libc/libdl hooks.
20780 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20781 (rtld_active): New function.
20782 * dlfcn/dladdr.c (__dladdr): Call it.
20783 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20784 * dlfcn/dlclose.c (__dlcose): Likewise.
20785 * dlfcn/dlerror.c (__dlerror): Likewise.
20786 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20787 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20788 * dlfcn/dlopen.c (__dlopen): Likewise.
20789 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20790 * dlfcn/dlsym.c (__dlsym): Likewise.
20791 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20792 * libio/vtables.c (_IO_vtable_check): Likewise.
20793 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20794 (__libc_dlclose): Likewise.
20795 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20796 assignment.
20797
20798 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20799
20800 [BZ #22446]
20801 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20802 buffers for readlink input and output.
20803
20804 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20805
20806 [BZ #22624]
20807 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20808 inhibit_stack_protector.
20809
20810 [BZ #22624]
20811 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20812 inhibit_stack_protector.
20813
20814 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20815
20816 [BZ #22627]
20817 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20818 code and invocation.
20819
20820 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20821
20822 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20823
20824 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20825
20826 [BZ #22505]
20827 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20828
20829 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20830
20831 * sysdeps/s390/fpu/libm-test-ulps: Update.
20832
20833 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20834
20835 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20836
20837 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20838
20839 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20840 constants to s_sincosf.h file.
20841 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20842 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20843 implementation.
20844 * sysdeps/ieee754/flt-32/s_sincosf.h:
20845 New file.
20846
20847 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20848
20849 [BZ #14681]
20850 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20851 before mtrace.
20852
20853 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20854
20855 [BZ #19574]
20856 * INSTALL: Regenerated.
20857 * Makeconfig (real-static-start-installed-name): New.
20858 (pic-default): Updated for --enable-static-pie.
20859 (pie-default): New for --enable-static-pie.
20860 (default-pie-ldflag): Likewise.
20861 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20862 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20863 Replace $(static-start-installed-name) with
20864 $(real-static-start-installed-name).
20865 (+prectorT): Updated for --enable-static-pie.
20866 (+postctorT): Likewise.
20867 (CFLAGS-.o): Add $(pie-default).
20868 (CFLAGS-.op): Likewise.
20869 * NEWS: Mention --enable-static-pie.
20870 * config.h.in (ENABLE_STATIC_PIE): New.
20871 * configure.ac (--enable-static-pie): New configure option.
20872 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20873 (have-static-pie): Likewise.
20874 Enable static PIE if linker supports --no-dynamic-linker.
20875 (ENABLE_STATIC_PIE): New AC_DEFINE.
20876 (enable-static-pie): New LIBC_CONFIG_VAR.
20877 * configure: Regenerated.
20878 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20879 gr$(start-installed-name) for --enable-static-pie.
20880 (extra-objs): Likewise.
20881 (install-lib): Likewise.
20882 (extra-objs): Add static-reloc.o and static-reloc.os
20883 ($(objpfx)$(start-installed-name)): Also depend on
20884 $(objpfx)static-reloc.o.
20885 ($(objpfx)r$(start-installed-name)): New.
20886 ($(objpfx)g$(start-installed-name)): Also depend on
20887 $(objpfx)static-reloc.os.
20888 ($(objpfx)gr$(start-installed-name)): New.
20889 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20890 in libc.a.
20891 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20892 initimage.
20893 * csu/static-reloc.c: New file.
20894 * elf/Makefile (routines): Add dl-reloc-static-pie.
20895 (elide-routines.os): Likewise.
20896 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20897 (tst-tls1-static-non-pie-no-pie): New.
20898 * elf/dl-reloc-static-pie.c: New file.
20899 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20900 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20901 STATIC_PIE_BOOTSTRAP.
20902 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20903 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20904 (tests-static): Likewise.
20905 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20906 (tst-gmon-static-no-pie): New.
20907 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20908 (CRT-tst-gmon-static-pie): Likewise.
20909 (tst-gmon-static-pie-ENV): Likewise.
20910 (tests-special): Likewise.
20911 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20912 (clean-tst-gmon-static-pie-data): Likewise.
20913 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20914 * gmon/tst-gmon-static-pie.c: New file.
20915 * manual/install.texi: Document --enable-static-pie.
20916 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20917 (_dl_get_dl_main_map): Likewise.
20918 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20919 * sysdeps/x86_64/configure.ac: Likewise.
20920 * sysdeps/i386/configure: Regenerated.
20921 * sysdeps/x86_64/configure: Likewise.
20922 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20923 (ASFLAGS-.op): Likewise.
20924
20925 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20926
20927 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20928 * posix/tst-mmap-offset.c (fname): Use /tmp.
20929 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20930
20931 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20932
20933 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20934
20935 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20936
20937 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20938 errno.
20939
20940 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20941
20942 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20943 --with-float=hard for arm-linux-gnueabihf configurations.
20944
20945 [BZ #14121]
20946 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20947 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20948 ($(mo-installed)): Use $(objpfx)%.mo.
20949 (realclean): Remove rule.
20950
20951 * po/Makefile (linguas): Remove rule and dependencies.
20952 (linguas.mo): Likewise.
20953 (.PHONY): Do not depend on linguas and linguas.mo.
20954 (podir): Remove variable.
20955 (pofiles): Likewise.
20956 [$(pofiles)] (%.po): Remove rule.
20957
20958 * sysdeps/sparc/sparc32/Makefile
20959 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20960 start-of-line whitespace in argument of echo.
20961 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20962 with whitespace. Generate __wrap_.udiv alias.
20963 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20964 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20965 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20966 * sysdeps/sparc/sparc32/urem.S: Likewise.
20967
20968 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20969
20970 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20971 for aligned inputs.
20972
20973 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20974
20975 * benchtests/bench-strcmp.c: Print output in JSON format.
20976
20977 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20978
20979 2017-12-14 Florian Weimer <fweimer@redhat.com>
20980
20981 [BZ #22607]
20982 CVE-2017-1000409
20983 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20984 the expanded path string.
20985
20986 2017-12-14 Florian Weimer <fweimer@redhat.com>
20987
20988 [BZ #22606]
20989 CVE-2017-1000408
20990 * elf/dl-load.c (system_dirs): Update comment.
20991 (nsystem_dirs_len): Use array_length.
20992 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20993
20994 2017-12-14 Florian Weimer <fweimer@redhat.com>
20995
20996 Simplify compiling most of support/ outside of glibc.
20997 * support/check_addrinfo.c: Include <string.h>.
20998 * support/check_dns_packet.c: Likewise.
20999 * support/check_hostent.c: Likewise.
21000 * support/support_can_chroot.c: Include <support/xunistd.h>.
21001 * support/support_format_addrinfo.c: Include <stdlib.h>
21002 * support/support_format_dns_packet.c: Include <stdbool.h>.
21003 * support/support_format_hostent.c: Include <stdlib.h>.
21004 * support/support_format_netent.c: Likewise.
21005 * support/support_write_string.c: Include <support/xunistd.h>.
21006 * support/xdlfcn.c: Include <stddef.h>.
21007
21008 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
21009
21010 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
21011
21012 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
21013 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21014
21015 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21016 (sysdeps_routines): Add memset-niagara7.
21017 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
21018 Likewise.
21019 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
21020 file.
21021 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
21022 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21023 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
21024 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
21025 Add niagara7 option.
21026 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
21027 memset.
21028
21029 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21030 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
21031 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
21032 Likewise.
21033 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
21034 New file.
21035 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
21036 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
21037 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
21038 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
21039 and __memmove_niagara7.
21040 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
21041 Add niagara7 option.
21042 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
21043 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
21044 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
21045 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
21046 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
21047
21048 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
21049
21050 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
21051 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
21052 * sysdeps/sparc/sparc64/memmove.S: Likewise.
21053 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
21054
21055 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
21056 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
21057 _dl_sparc_cap_flags array.
21058 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
21059
21060 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
21061
21062 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
21063 time whenever possible.
21064
21065 2017-12-12 Carlos O'Donell <carlos@redhat.com>
21066
21067 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
21068 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
21069
21070 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21071
21072 * soft-fp/fmadf4.c: Move to ....
21073 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
21074 * soft-fp/fmasf4.c: Move to ....
21075 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
21076 * soft-fp/fmatf4.c: Move to ....
21077 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
21078 * sysdeps/ieee754/soft-fp/Makefile: New file.
21079 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
21080 * sysdeps/arm/preconfigure: Regenerated.
21081 * sysdeps/arm/nofpu/Implies: New file.
21082 * sysdeps/arm/s_fma.c: Remove file.
21083 * sysdeps/arm/s_fmaf.c: Likewise.
21084 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
21085 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
21086 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
21087 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
21088 * sysdeps/microblaze/s_fma.c: Remove file.
21089 * sysdeps/microblaze/s_fmaf.c: Likewise.
21090 * sysdeps/mips/mips32/nofpu/Implies: New file.
21091 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
21092 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
21093 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
21094 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
21095 * sysdeps/mips/ieee754/s_fma.c: Remove file.
21096 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
21097 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
21098 implementation.
21099 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
21100 * sysdeps/nios2/s_fma.c: Remove file.
21101 * sysdeps/nios2/s_fmaf.c: Likewise.
21102 * sysdeps/sh/nofpu/Implies: New file.
21103 * sysdeps/sh/s_fma.c: Remove file.
21104 * sysdeps/sh/s_fmaf.c: Likewise.
21105 * sysdeps/tile/Implies: Add ieee754/soft-fp.
21106 * sysdeps/tile/s_fma.c: Remove file.
21107 * sysdeps/tile/s_fmaf.c: Likewise.
21108
21109 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
21110
21111 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21112 Add s_cosf-sse2 and s_cosf-fma.
21113 (CFLAGS-s_cosf-fma.c): New.
21114 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
21115 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
21116 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
21117
21118 2017-12-12 Steve Ellcey <sellcey@cavium.com>
21119
21120 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
21121
21122 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21123
21124 * libio/Makefile (tests): Add tst-bz22415.
21125 (tst-bz22415-ENV): New rule.
21126 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
21127 (tests-special): Add tst-bz22415-mem.out.
21128 ($(objpfx)tst-bz22415-mem.out): New rule.
21129 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
21130 in case of a successful seek operation.
21131 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
21132 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
21133 buffer is required.
21134 * libio/tst-bz22415.c: New test.
21135
21136 * sysdeps/ia64/fpu/libm-test-ulps: Update.
21137
21138 2017-12-12 James Clarke <jrtc27@jrtc27.com>
21139
21140 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
21141 __IPC_64 to 0 to avoid IPC_64 being set.
21142
21143 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
21144
21145 [BZ #22593]
21146 * math/bits/mathcalls.h (nextafter): Remove const.
21147 (nexttoward): Likewise.
21148
21149 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21150
21151 * configure.ac (--with-fp): Remove configure option.
21152 (with_fp_cond): New variable.
21153 (libc_cv_with_fp): New configure test. Use this variable instead
21154 of with_fp.
21155 * configure: Regenerated.
21156 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21157 * manual/install.texi (Configuring and compiling): Remove
21158 --without-fp.
21159 * INSTALL: Regenerated.
21160 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21161 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21162 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21163 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21164 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21165 use --without-fp to configure glibc.
21166
21167 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21168
21169 * manual/locale.texi (nl_langinfo): Fix a typo.
21170
21171 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21172
21173 [BZ #22588]
21174 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21175
21176 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21177
21178 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21179 (CFLAGS-argp-parse.c): Likewise.
21180 (CFLAGS-argp-fmtstream.c): Likewise.
21181 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21182 (CPPFLAGS-sha512-crypt.c): Likewise.
21183 (CPPFLAGS-md5-crypt.c): Likewise.
21184 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21185 (CFLAGS-stack_chk_fail_local.c): Likewise.
21186 (CFLAGS-backtrace.c): Likewise.
21187 (CFLAGS-sprintf_chk.c): Likewise.
21188 (CFLAGS-snprintf_chk.c): Likewise.
21189 (CFLAGS-vsprintf_chk.c): Likewise.
21190 (CFLAGS-vsnprintf_chk.c): Likewise.
21191 (CFLAGS-asprintf_chk.c): Likewise.
21192 (CFLAGS-vasprintf_chk.c): Likewise.
21193 (CFLAGS-obprintf_chk.c): Likewise.
21194 (CFLAGS-dprintf_chk.c): Likewise.
21195 (CFLAGS-vdprintf_chk.c): Likewise.
21196 (CFLAGS-printf_chk.c): Likewise.
21197 (CFLAGS-fprintf_chk.c): Likewise.
21198 (CFLAGS-vprintf_chk.c): Likewise.
21199 (CFLAGS-vfprintf_chk.c): Likewise.
21200 (CFLAGS-gets_chk.c): Likewise.
21201 (CFLAGS-fgets_chk.c): Likewise.
21202 (CFLAGS-fgets_u_chk.c): Likewise.
21203 (CFLAGS-fread_chk.c): Likewise.
21204 (CFLAGS-fread_u_chk.c): Likewise.
21205 (CFLAGS-swprintf_chk.c): Likewise.
21206 (CFLAGS-vswprintf_chk.c): Likewise.
21207 (CFLAGS-wprintf_chk.c): Likewise.
21208 (CFLAGS-fwprintf_chk.c): Likewise.
21209 (CFLAGS-vwprintf_chk.c): Likewise.
21210 (CFLAGS-vfwprintf_chk.c): Likewise.
21211 (CFLAGS-fgetws_chk.c): Likewise.
21212 (CFLAGS-fgetws_u_chk.c): Likewise.
21213 (CFLAGS-read_chk.c): Likewise.
21214 (CFLAGS-pread_chk.c): Likewise.
21215 (CFLAGS-pread64_chk.c): Likewise.
21216 (CFLAGS-recv_chk.c): Likewise.
21217 (CFLAGS-recvfrom_chk.c): Likewise.
21218 (CFLAGS-tst-longjmp_chk.c): Likewise.
21219 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21220 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21221 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21222 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21223 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21224 (CFLAGS-tst-chk1.c): Likewise.
21225 (CFLAGS-tst-chk2.c): Likewise.
21226 (CFLAGS-tst-chk3.c): Likewise.
21227 (CFLAGS-tst-chk4.cc): Likewise.
21228 (CFLAGS-tst-chk5.cc): Likewise.
21229 (CFLAGS-tst-chk6.cc): Likewise.
21230 (CFLAGS-tst-lfschk1.c): Likewise.
21231 (CFLAGS-tst-lfschk2.c): Likewise.
21232 (CFLAGS-tst-lfschk3.c): Likewise.
21233 (CFLAGS-tst-lfschk4.cc): Likewise.
21234 (CFLAGS-tst-lfschk5.cc): Likewise.
21235 (CFLAGS-tst-lfschk6.cc): Likewise.
21236 (CFLAGS-tst-ssp-1.c): Likewise.
21237 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21238 (CFLAGS-scandir64.c): Likewise.
21239 (CFLAGS-scandir-tail.c): Likewise.
21240 (CFLAGS-scandir64-tail.c): Likewise.
21241 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21242 (CFLAGS-dl-tunables.c): Likewise.
21243 (CFLAGS-dl-runtime.c): Likewise.
21244 (CFLAGS-dl-lookup.c): Likewise.
21245 (CFLAGS-dl-iterate-phdr.c): Likewise.
21246 (CFLAGS-vismain.c): Likewise.
21247 (CFLAGS-tst-linkall-static.c): Likewise.
21248 (CFLAGS-tst-linkall-static.c): Likewise.
21249 (CPPFLAGS-dl-load.c): Likewise.
21250 (CFLAGS-ldconfig.c): Likewise.
21251 (CFLAGS-dl-cache.c): Likewise.
21252 (CFLAGS-cache.c): Likewise.
21253 (CFLAGS-rtld.c): Likewise.
21254 (CFLAGS-multiload.c): Likewise.
21255 (CFLAGS-filtmod1.c): Likewise.
21256 (CFLAGS-tst-align.c): Likewise.
21257 (CFLAGS-tst-align2.c): Likewise.
21258 (CFLAGS-tst-alignmod.c): Likewise.
21259 (CFLAGS-tst-alignmod2.c): Likewise.
21260 (CPPFLAGS-tst-execstack.c): Likewise.
21261 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21262 (CFLAGS-tst-latepthreadmod.c): Likewise.
21263 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21264 (CFLAGS-getgrnam_r.c): Likewise.
21265 (CFLAGS-getgrent_r.c): Likewise.
21266 (CFLAGS-getgrent.c): Likewise.
21267 (CFLAGS-fgetgrent.c): Likewise.
21268 (CFLAGS-fgetgrent_r.c): Likewise.
21269 (CFLAGS-putgrent.c): Likewise.
21270 (CFLAGS-initgroups.c): Likewise.
21271 (CFLAGS-getgrgid.c): Likewise.
21272 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21273 (CFLAGS-getsgent.c): Likewise.
21274 (CFLAGS-fgetsgent.c): Likewise.
21275 (CFLAGS-fgetsgent_r.c): Likewise.
21276 (CFLAGS-putsgent.c): Likewise.
21277 (CFLAGS-getsgnam.c): Likewise.
21278 (CFLAGS-getsgnam_r.c): Likewise.
21279 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21280 (CFLAGS-iconv_charmap.c): Likewise.
21281 (CFLAGS-dummy-repertoire.c): Likewise.
21282 (CFLAGS-charmap.c): Likewise.
21283 (CFLAGS-linereader.c): Likewise.
21284 (CFLAGS-simple-hash.c): Likewise.
21285 (CFLAGS-gconv_conf.c): Likewise.
21286 (CFLAGS-iconvconfig.c): Likewise.
21287 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21288 (CFLAGS-gethstbyad.c): Likewise.
21289 (CFLAGS-gethstbynm_r.c): Likewise.
21290 (CFLAGS-gethstbynm.c): Likewise.
21291 (CFLAGS-gethstbynm2_r.c): Likewise.
21292 (CFLAGS-gethstbynm2.c): Likewise.
21293 (CFLAGS-gethstent_r.c): Likewise.
21294 (CFLAGS-gethstent.c): Likewise.
21295 (CFLAGS-rcmd.c): Likewise.
21296 (CFLAGS-getnetbynm_r.c): Likewise.
21297 (CFLAGS-getnetbynm.c): Likewise.
21298 (CFLAGS-getnetbyad_r.c): Likewise.
21299 (CFLAGS-getnetbyad.c): Likewise.
21300 (CFLAGS-getnetent_r.c): Likewise.
21301 (CFLAGS-getnetent.c): Likewise.
21302 (CFLAGS-getaliasent_r.c): Likewise.
21303 (CFLAGS-getaliasent.c): Likewise.
21304 (CFLAGS-getrpcent_r.c): Likewise.
21305 (CFLAGS-getrpcent.c): Likewise.
21306 (CFLAGS-getservent_r.c): Likewise.
21307 (CFLAGS-getservent.c): Likewise.
21308 (CFLAGS-getprtent_r.c): Likewise.
21309 (CFLAGS-getprtent.c): Likewise.
21310 (CFLAGS-either_ntoh.c): Likewise.
21311 (CFLAGS-either_hton.c): Likewise.
21312 (CFLAGS-getnetgrent.c): Likewise.
21313 (CFLAGS-getnetgrent_r.c): Likewise.
21314 (CFLAGS-tst-checks-posix.c): Likewise.
21315 (CFLAGS-tst-sockaddr.c): Likewise.
21316 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21317 (CFLAGS-tst-translit.c): Likewise.
21318 (CFLAGS-tst-gettext2.c): Likewise.
21319 (CFLAGS-tst-codeset.c): Likewise.
21320 (CFLAGS-tst-gettext3.c): Likewise.
21321 (CFLAGS-tst-gettext4.c): Likewise.
21322 (CFLAGS-tst-gettext5.c): Likewise.
21323 (CFLAGS-tst-gettext6.c): Likewise.
21324 * io/Makefile (CFLAGS-open.c): Likewise.
21325 (CFLAGS-open64.c): Likewise.
21326 (CFLAGS-creat.c): Likewise.
21327 (CFLAGS-creat64.c): Likewise.
21328 (CFLAGS-fcntl.c): Likewise.
21329 (CFLAGS-poll.c): Likewise.
21330 (CFLAGS-ppoll.c): Likewise.
21331 (CFLAGS-lockf.c): Likewise.
21332 (CFLAGS-statfs.c): Likewise.
21333 (CFLAGS-fstatfs.c): Likewise.
21334 (CFLAGS-statvfs.c): Likewise.
21335 (CFLAGS-fstatvfs.c): Likewise.
21336 (CFLAGS-fts.c): Likewise.
21337 (CFLAGS-fts64.c): Likewise.
21338 (CFLAGS-ftw.c): Likewise.
21339 (CFLAGS-ftw64.c): Likewise.
21340 (CFLAGS-lockf.c): Likewise.
21341 (CFLAGS-posix_fallocate.c): Likewise.
21342 (CFLAGS-posix_fallocate64.c): Likewise.
21343 (CFLAGS-fallocate.c): Likewise.
21344 (CFLAGS-fallocate64.c): Likewise.
21345 (CFLAGS-read.c): Likewise.
21346 (CFLAGS-write.c): Likewise.
21347 (CFLAGS-test-stat.c): Likewise.
21348 (CFLAGS-test-lfs.c): Likewise.
21349 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21350 (CFLAGS-fputc.c): Likewise.
21351 (CFLAGS-fputwc.c): Likewise.
21352 (CFLAGS-freopen64.c): Likewise.
21353 (CFLAGS-freopen.c): Likewise.
21354 (CFLAGS-fseek.c): Likewise.
21355 (CFLAGS-fseeko64.c): Likewise.
21356 (CFLAGS-fseeko.c): Likewise.
21357 (CFLAGS-ftello64.c): Likewise.
21358 (CFLAGS-ftello.c): Likewise.
21359 (CFLAGS-fwide.c): Likewise.
21360 (CFLAGS-genops.c): Likewise.
21361 (CFLAGS-getc.c): Likewise.
21362 (CFLAGS-getchar.c): Likewise.
21363 (CFLAGS-getwc.c): Likewise.
21364 (CFLAGS-getwchar.c): Likewise.
21365 (CFLAGS-iofclose.c): Likewise.
21366 (CFLAGS-iofflush.c): Likewise.
21367 (CFLAGS-iofgetpos64.c): Likewise.
21368 (CFLAGS-iofgetpos.c): Likewise.
21369 (CFLAGS-iofgets.c): Likewise.
21370 (CFLAGS-iofgetws.c): Likewise.
21371 (CFLAGS-iofputs.c): Likewise.
21372 (CFLAGS-iofputws.c): Likewise.
21373 (CFLAGS-iofread.c): Likewise.
21374 (CFLAGS-iofsetpos64.c): Likewise.
21375 (CFLAGS-iofsetpos.c): Likewise.
21376 (CFLAGS-ioftell.c): Likewise.
21377 (CFLAGS-iofwrite.c): Likewise.
21378 (CFLAGS-iogetdelim.c): Likewise.
21379 (CFLAGS-iogetline.c): Likewise.
21380 (CFLAGS-iogets.c): Likewise.
21381 (CFLAGS-iogetwline.c): Likewise.
21382 (CFLAGS-ioputs.c): Likewise.
21383 (CFLAGS-ioseekoff.c): Likewise.
21384 (CFLAGS-ioseekpos.c): Likewise.
21385 (CFLAGS-iosetbuffer.c): Likewise.
21386 (CFLAGS-iosetvbuf.c): Likewise.
21387 (CFLAGS-ioungetc.c): Likewise.
21388 (CFLAGS-ioungetwc.c): Likewise.
21389 (CFLAGS-oldfileops.c): Likewise.
21390 (CFLAGS-oldiofclose.c): Likewise.
21391 (CFLAGS-oldiofgetpos64.c): Likewise.
21392 (CFLAGS-oldiofgetpos.c): Likewise.
21393 (CFLAGS-oldiofsetpos64.c): Likewise.
21394 (CFLAGS-oldiofsetpos.c): Likewise.
21395 (CFLAGS-peekc.c): Likewise.
21396 (CFLAGS-putc.c): Likewise.
21397 (CFLAGS-putchar.c): Likewise.
21398 (CFLAGS-putwc.c): Likewise.
21399 (CFLAGS-putwchar.c): Likewise.
21400 (CFLAGS-rewind.c): Likewise.
21401 (CFLAGS-wfileops.c): Likewise.
21402 (CFLAGS-wgenops.c): Likewise.
21403 (CFLAGS-oldiofopen.c): Likewise.
21404 (CFLAGS-iofopen.c): Likewise.
21405 (CFLAGS-iofopen64.c): Likewise.
21406 (CFLAGS-oldtmpfile.c): Likewise.
21407 (CFLAGS-tst_putwc.c): Likewise.
21408 * locale/Makefile (CFLAGS-md5.c): Likewise.
21409 (CFLAGS-charmap.c): Likewise.
21410 (CFLAGS-locfile.c): Likewise.
21411 (CFLAGS-charmap-dir.c): Likewise.
21412 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21413 (CFLAGS-getpt.c): Likewise.
21414 (CFLAGS-pt_chown.c): Likewise.
21415 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21416 (CFLAGS-obstack.c): Likewise.
21417 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21418 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21419 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21420 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21421 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21422 (CFLAGS-test-tgmath.c): Likewise.
21423 (CFLAGS-test-tgmath2.c): Likewise.
21424 (CFLAGS-test-tgmath-ret.c): Likewise.
21425 (CFLAGS-test-powl.c): Likewise.
21426 (CFLAGS-test-snan.c): Likewise.
21427 (CFLAGS-test-signgam-finite.c): Likewise.
21428 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21429 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21430 (CFLAGS-test-signgam-uchar.c): Likewise.
21431 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21432 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21433 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21434 (CFLAGS-test-signgam-uint.c): Likewise.
21435 (CFLAGS-test-signgam-uint-init.c): Likewise.
21436 (CFLAGS-test-signgam-uint-static.c): Likewise.
21437 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21438 (CFLAGS-test-signgam-ullong.c): Likewise.
21439 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21440 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21441 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21442 (CFLAGS-test-math-cxx11.cc): Likewise.
21443 (CFLAGS-test-math-isinff.cc): Likewise.
21444 (CFLAGS-test-math-iszero.cc): Likewise.
21445 (CFLAGS-test-math-issignaling.cc): Likewise.
21446 (CFLAGS-test-math-iscanonical.cc): Likewise.
21447 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21448 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21449 (CFLAGS-test-flt-eval-method.c): Likewise.
21450 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21451 (CFLAGS-test-finite-macros.c): Likewise.
21452 * misc/Makefile (CFLAGS-select.c): Likewise.
21453 (CFLAGS-tsearch.c): Likewise.
21454 (CFLAGS-lsearch.c): Likewise.
21455 (CFLAGS-pselect.c): Likewise.
21456 (CFLAGS-readv.c): Likewise.
21457 (CFLAGS-writev.c): Likewise.
21458 (CFLAGS-preadv.c): Likewise.
21459 (CFLAGS-preadv64.c): Likewise.
21460 (CFLAGS-pwritev.c): Likewise.
21461 (CFLAGS-pwritev64.c): Likewise.
21462 (CFLAGS-preadv2.c): Likewise.
21463 (CFLAGS-preadv64v2.c): Likewise.
21464 (CFLAGS-pwritev2.c): Likewise.
21465 (CFLAGS-pwritev64v2.c): Likewise.
21466 (CFLAGS-usleep.c): Likewise.
21467 (CFLAGS-syslog.c): Likewise.
21468 (CFLAGS-error.c): Likewise.
21469 (CFLAGS-getpass.c): Likewise.
21470 (CFLAGS-mkstemp.c): Likewise.
21471 (CFLAGS-mkstemp64.c): Likewise.
21472 (CFLAGS-getsysstats.c): Likewise.
21473 (CFLAGS-getusershell.c): Likewise.
21474 (CFLAGS-err.c): Likewise.
21475 (CFLAGS-tst-tsearch.c): Likewise.
21476 (CFLAGS-msync.c): Likewise.
21477 (CFLAGS-fdatasync.c): Likewise.
21478 (CFLAGS-fsync.c): Likewise.
21479 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21480 (CFLAGS-unwind.c): Likewise.
21481 (CFLAGS-unwind-forcedunwind.c): Likewise.
21482 (CFLAGS-pthread_cancel.c): Likewise.
21483 (CFLAGS-pthread_setcancelstate.c): Likewise.
21484 (CFLAGS-pthread_setcanceltype.c): Likewise.
21485 (CFLAGS-cancellation.c): Likewise.
21486 (CFLAGS-libc-cancellation.c): Likewise.
21487 (CFLAGS-pthread_exit.c): Likewise.
21488 (CFLAGS-forward.c): Likewise.
21489 (CFLAGS-pthread_testcancel.c): Likewise.
21490 (CFLAGS-pthread_join.c): Likewise.
21491 (CFLAGS-pthread_timedjoin.c): Likewise.
21492 (CFLAGS-pthread_once.c): Likewise.
21493 (CFLAGS-pthread_cond_wait.c): Likewise.
21494 (CFLAGS-sem_wait.c): Likewise.
21495 (CFLAGS-sem_timedwait.c): Likewise.
21496 (CFLAGS-fcntl.c): Likewise.
21497 (CFLAGS-lockf.c): Likewise.
21498 (CFLAGS-pread.c): Likewise.
21499 (CFLAGS-pread64.c): Likewise.
21500 (CFLAGS-pwrite.c): Likewise.
21501 (CFLAGS-pwrite64.c): Likewise.
21502 (CFLAGS-wait.c): Likewise.
21503 (CFLAGS-waitpid.c): Likewise.
21504 (CFLAGS-sigwait.c): Likewise.
21505 (CFLAGS-msgrcv.c): Likewise.
21506 (CFLAGS-msgsnd.c): Likewise.
21507 (CFLAGS-tcdrain.c): Likewise.
21508 (CFLAGS-open.c): Likewise.
21509 (CFLAGS-open64.c): Likewise.
21510 (CFLAGS-pause.c): Likewise.
21511 (CFLAGS-recv.c): Likewise.
21512 (CFLAGS-send.c): Likewise.
21513 (CFLAGS-accept.c): Likewise.
21514 (CFLAGS-sendto.c): Likewise.
21515 (CFLAGS-connect.c): Likewise.
21516 (CFLAGS-recvfrom.c): Likewise.
21517 (CFLAGS-recvmsg.c): Likewise.
21518 (CFLAGS-sendmsg.c): Likewise.
21519 (CFLAGS-close.c): Likewise.
21520 (CFLAGS-read.c): Likewise.
21521 (CFLAGS-write.c): Likewise.
21522 (CFLAGS-nanosleep.c): Likewise.
21523 (CFLAGS-sigsuspend.c): Likewise.
21524 (CFLAGS-msync.c): Likewise.
21525 (CFLAGS-fdatasync.c): Likewise.
21526 (CFLAGS-fsync.c): Likewise.
21527 (CFLAGS-pt-system.c): Likewise.
21528 (CFLAGS-tst-cleanup2.c): Likewise.
21529 (CFLAGS-tst-cleanupx2.c): Likewise.
21530 (CFLAGS-flockfile.c): Likewise.
21531 (CFLAGS-ftrylockfile.c): Likewise.
21532 (CFLAGS-funlockfile.c): Likewise.
21533 (CFLAGS-tst-initializers1.c): Likewise.
21534 (CFLAGS-tst-initializers1-c89.c): Likewise.
21535 (CFLAGS-tst-initializers1-c99.c): Likewise.
21536 (CFLAGS-tst-initializers1-c11.c): Likewise.
21537 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21538 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21539 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21540 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21541 (CFLAGS-nscd_getgr_r.c): Likewise.
21542 (CFLAGS-nscd_gethst_r.c): Likewise.
21543 (CFLAGS-nscd_getai.c): Likewise.
21544 (CFLAGS-nscd_initgroups.c): Likewise.
21545 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21546 (CFLAGS-pause.c): Likewise.
21547 (CFLAGS-pread.c): Likewise.
21548 (CFLAGS-pread64.c): Likewise.
21549 (CFLAGS-pwrite.c): Likewise.
21550 (CFLAGS-pwrite64.c): Likewise.
21551 (CFLAGS-sleep.c): Likewise.
21552 (CFLAGS-wait.c): Likewise.
21553 (CFLAGS-waitid.c): Likewise.
21554 (CFLAGS-waitpid.c): Likewise.
21555 (CFLAGS-getopt.c): Likewise.
21556 (CFLAGS-wordexp.c): Likewise.
21557 (CFLAGS-sysconf.c): Likewise.
21558 (CFLAGS-pathconf.c): Likewise.
21559 (CFLAGS-fpathconf.c): Likewise.
21560 (CFLAGS-spawn.c): Likewise.
21561 (CFLAGS-spawnp.c): Likewise.
21562 (CFLAGS-spawni.c): Likewise.
21563 (CFLAGS-glob.c): Likewise.
21564 (CFLAGS-glob64.c): Likewise.
21565 (CFLAGS-getconf.c): Likewise.
21566 (CFLAGS-nanosleep.c): Likewise.
21567 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21568 (CFLAGS-getpwent.c): Likewise.
21569 (CFLAGS-getpw.c): Likewise.
21570 (CFLAGS-fgetpwent_r.c): Likewise.
21571 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21572 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21573 (CFLAGS-mq_timedreceive.c): Likewise.
21574 (CFLAGS-mq_timedsend.c): Likewise.
21575 (CFLAGS-clock_nanosleep.c): Likewise.
21576 (CFLAGS-librt-cancellation.c): Likewise.
21577 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21578 (CFLAGS-getspent.c): Likewise.
21579 (CFLAGS-fgetspent.c): Likewise.
21580 (CFLAGS-fgetspent_r.c): Likewise.
21581 (CFLAGS-putspent.c): Likewise.
21582 (CFLAGS-getspnam.c): Likewise.
21583 (CFLAGS-getspnam_r.c): Likewise.
21584 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21585 (CFLAGS-sigsuspend.c): Likewise.
21586 (CFLAGS-sigtimedwait.c): Likewise.
21587 (CFLAGS-sigwait.c): Likewise.
21588 (CFLAGS-sigwaitinfo.c): Likewise.
21589 (CFLAGS-sigreturn.c): Likewise.
21590 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21591 (CFLAGS-vfwprintf.c): Likewise.
21592 (CFLAGS-tmpfile.c): Likewise.
21593 (CFLAGS-tmpfile64.c): Likewise.
21594 (CFLAGS-tempname.c): Likewise.
21595 (CFLAGS-psignal.c): Likewise.
21596 (CFLAGS-vprintf.c): Likewise.
21597 (CFLAGS-cuserid.c): Likewise.
21598 (CFLAGS-errlist.c): Likewise.
21599 (CFLAGS-siglist.c): Likewise.
21600 (CFLAGS-scanf15.c): Likewise.
21601 (CFLAGS-scanf17.c): Likewise.
21602 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21603 (CFLAGS-msort.c): Likewise.
21604 (CFLAGS-qsort.c): Likewise.
21605 (CFLAGS-system.c): Likewise.
21606 (CFLAGS-fmtmsg.c): Likewise.
21607 (CFLAGS-strfmon.c): Likewise.
21608 (CFLAGS-strfmon_l.c): Likewise.
21609 (CFLAGS-strfromd.c): Likewise.
21610 (CFLAGS-strfromf.c): Likewise.
21611 (CFLAGS-strfroml.c): Likewise.
21612 (CFLAGS-tst-bsearch.c): Likewise.
21613 (CFLAGS-tst-qsort.c): Likewise.
21614 (CFLAGS-tst-makecontext2.c): Likewise.
21615 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21616 (CFLAGS-xnlm_prot.c): Likewise.
21617 (CFLAGS-xrstat.c): Likewise.
21618 (CFLAGS-xyppasswd.c): Likewise.
21619 (CFLAGS-xklm_prot.c): Likewise.
21620 (CFLAGS-xrex.c): Likewise.
21621 (CFLAGS-xsm_inter.c): Likewise.
21622 (CFLAGS-xmount.c): Likewise.
21623 (CFLAGS-xrusers.c): Likewise.
21624 (CFLAGS-xspray.c): Likewise.
21625 (CFLAGS-xnfs_prot.c): Likewise.
21626 (CFLAGS-xrquota.c): Likewise.
21627 (CFLAGS-xkey_prot.c): Likewise.
21628 (CFLAGS-auth_unix.c): Likewise.
21629 (CFLAGS-key_call.c): Likewise.
21630 (CFLAGS-pmap_rmt.c): Likewise.
21631 (CFLAGS-clnt_perr.c): Likewise.
21632 (CFLAGS-openchild.c): Likewise.
21633 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21634 (CFLAGS-msgsnd.c): Likewise.
21635 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21636 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21637 (CFLAGS-tzset.c): Likewise.
21638 (CFLAGS-getdate.c): Likewise.
21639 (CFLAGS-test_time.c): Likewise.
21640 (CPPFLAGS-tst-tzname.c): Likewise.
21641 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21642 (CFLAGS-zic.c): Likewise.
21643 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21644 (CFLAGS-wcswidth.c): Likewise.
21645 (CFLAGS-wcstol.c): Likewise.
21646 (CFLAGS-wcstoul.c): Likewise.
21647 (CFLAGS-wcstoll.c): Likewise.
21648 (CFLAGS-wcstoull.c): Likewise.
21649 (CFLAGS-wcstod.c): Likewise.
21650 (CFLAGS-wcstold.c): Likewise.
21651 (CFLAGS-wcstof128.c): Likewise.
21652 (CFLAGS-wcstof.c): Likewise.
21653 (CFLAGS-wcstol_l.c): Likewise.
21654 (CFLAGS-wcstoul_l.c): Likewise.
21655 (CFLAGS-wcstoll_l.c): Likewise.
21656 (CFLAGS-wcstoull_l.c): Likewise.
21657 (CFLAGS-wcstod_l.c): Likewise.
21658 (CFLAGS-wcstold_l.c): Likewise.
21659 (CFLAGS-wcstof128_l.c): Likewise.
21660 (CFLAGS-wcstof_l.c): Likewise.
21661 (CPPFLAGS-tst-wchar-h.c): Likewise.
21662 (CPPFLAGS-wcstold_l.c): Likewise.
21663
21664 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21665
21666 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21667
21668 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21669 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21670
21671 * manual/tunables.texi (Hardware Capability Tunables): Document
21672 glibc.tune.cached_memopt.
21673 * sysdeps/powerpc/cpu-features.c: New file.
21674 * sysdeps/powerpc/cpu-features.h: New file.
21675 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21676 _dl_powerpc_cpu_features.
21677 * sysdeps/powerpc/dl-tunables.list: New file.
21678 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21679 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21680 (INIT_ARCH): Initialize use_aligned_memopt.
21681 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21682 IS_IN(rtld))]: Restrict dl_platform_init availability and
21683 initialize CPU features used by tunables.
21684 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21685 Add memcpy-power8-cached.
21686 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21687 __memcpy_power8_cached.
21688 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21689 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21690 New file.
21691
21692 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21693
21694 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21695 (CFLAGS-noinl-tester.c): Likewise.
21696 (CFLAGS-tst-strlen.c): Likewise.
21697 (CFLAGS-stratcliff.c): Likewise.
21698 (CFLAGS-test-ffs.c): Likewise.
21699 (CFLAGS-tst-inlcall.c): Likewise.
21700 (CFLAGS-tst-xbzero-opt.c): Likewise.
21701 (CFLAGS-memcpy.c): Likewise.
21702 (CFLAGS-wordcopy.c): Likewise.
21703
21704 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21705
21706 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21707 Store r15 on stack and add cfi rule.
21708 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21709 Likewise.
21710
21711 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21712
21713 [BZ #22577]
21714 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21715 call.
21716
21717 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21718
21719 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21720 Add s_sinf-sse2 and s_sinf-fma.
21721 (CFLAGS-s_sinf-fma.c): New.
21722 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21723 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21724 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21725
21726 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21727
21728 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21729
21730 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21731
21732 [BZ #22568]
21733 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21734 part of result to imaginary part of argument if it is zero and the
21735 real part of the argument is not finite.
21736 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21737 of result to real part of argument if it is zero and the imaginary
21738 part of the argument is not finite.
21739
21740 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21741
21742 [BZ #22524]
21743 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21744 and to the list of locales to be built for testing.
21745 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21746 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21747 and build the collation rules upon that.
21748
21749 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21750
21751 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21752 * manual/math.texi (Mathematics): Document support for _Float32.
21753 * math/Makefile (test-types): Add float32.
21754 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21755 * stdlib/Versions (GLIBC_2.27): Likewise.
21756 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21757 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21758 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21759 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21760 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21761 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21762 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21763 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21764 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21765 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21766 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21767 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21768 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21769 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21770 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21771 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21772 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21773 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21774 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21775 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21776 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21777 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21778 Likewise.
21779 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21780 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21781 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21782 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21783 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21785 Likewise.
21786 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21787 Likewise.
21788 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21789 Likewise.
21790 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21791 Likewise.
21792
21793 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21794 Likewise.
21795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21796 Likewise.
21797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21798 Likewise.
21799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21800 Likewise.
21801 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21802 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21803 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21804 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21805 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21806 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21807 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21808 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21809 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21810 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21811 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21812 Likewise.
21813 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21814 Likewise.
21815 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21816 Likewise.
21817 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21818 Likewise.
21819 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21820 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21821 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21822 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21823 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21824 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21825 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21826 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21827
21828 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21829
21830 * stdlib/strtof.c: Include <bits/floatn.h>
21831 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21832 and later undefine as macro. Define as weak alias if
21833 [!USE_WIDE_CHAR].
21834 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21835 and later undefine as macro. Define as weak alias if
21836 [USE_WIDE_CHAR].
21837 * stdlib/strtof_l.c: Include <bits/floatn.h>
21838 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21839 and later undefine as macro. Define as weak alias if
21840 [!USE_WIDE_CHAR].
21841 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21842 and later undefine as macro. Define as weak alias if
21843 [USE_WIDE_CHAR].
21844
21845 * stdlib/strfromf.c: Include <bits/floatn.h>.
21846 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21847 and later undefine as macro and define as weak alias.
21848
21849 * math/test-float32.h: New file.
21850
21851 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21852 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21853 (libm_alias_float_other_r): Create f32 alias.
21854 (libm_alias_float_r): Use semicolon before call to
21855 libm_alias_float_other_r.
21856
21857 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21858 second argument to libm_alias_float_other.
21859 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21860 second argument to libm_alias_float_other.
21861 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21862 argument to libm_alias_float_other.
21863
21864 [BZ #22561]
21865 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21866 real part of result for argument 0 + i * NaN.
21867 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21868 results for tests of 0 + i * NaN.
21869
21870 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21871
21872 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21873
21874 2017-12-06 David S. Miller <davem@davemloft.net>
21875
21876 * sysdeps/sparc/fpu/libm-test-ulps: Update
21877 exp_{downward,towardzero,upward} ulps.
21878
21879 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21880
21881 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21882 variables static.
21883
21884 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21885 (Y0_2D): Likewise.
21886 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21887 (Y0_2D): Likewise.
21888 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21889 (Y0_2D): Likewise.
21890 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21891 (Y0_2D): Likewise.
21892
21893 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21894
21895 [BZ #22515]
21896 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21897 and to the list of locales to be built for testing.
21898 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21899 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21900 and build the collation rules upon that.
21901
21902 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21903
21904 * NEWS: Add sinf to list of optimized functions.
21905
21906 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21907
21908 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21909 (__HAVE_FLOAT32X): Likewise.
21910 * manual/math.texi (Mathematics): Document support for _Float64
21911 and _Float32x.
21912 * math/Makefile (test-types): Add float64 and float32x.
21913 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21914 functions.
21915 * stdlib/Versions (GLIBC_2.27): Likewise.
21916 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21917 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21918 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21919 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21920 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21921 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21922 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21923 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21924 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21925 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21926 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21927 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21928 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21929 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21930 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21931 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21932 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21933 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21934 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21935 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21936 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21937 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21938 Likewise.
21939 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21940 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21941 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21942 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21943 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21944 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21945 Likewise.
21946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21947 Likewise.
21948 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21949 Likewise.
21950 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21951 Likewise.
21952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21953 Likewise.
21954 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21955 Likewise.
21956 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21957 Likewise.
21958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21959 Likewise.
21960 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21961 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21962 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21963 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21964 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21965 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21966 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21967 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21968 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21969 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21970 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21971 Likewise.
21972 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21973 Likewise.
21974 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21975 Likewise.
21976 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21977 Likewise.
21978 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21979 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21980 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21981 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21982 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21983 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21984 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21985 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21986
21987 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21988
21989 * bits/floatn-common.h: Include <bits/long-double.h>.
21990 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21991 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21992 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21993 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21994 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21995 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21996 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21997 (__builtin_huge_valf64): Use __builtin_huge_vall.
21998 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21999 (__builtin_inff64): Use __builtin_infl.
22000 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22001 (__builtin_nanf64): Use __builtin_nanl.
22002 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
22003 (__builtin_nansf64): Use __builtin_nansl.
22004
22005 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
22006 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
22007 Carlos O'Donnell <carlos@redhat.com>
22008
22009 * elf/dl-tunables.list: Add elision parameters.
22010 * manual/tunables.texi: Add entries about elision tunable.
22011 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
22012 Add callback functions to dynamically enable/disable elision.
22013 Add multiple callbacks functions to set elision parameters.
22014 Deleted __libc_enable_secure check.
22015 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
22016 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
22017 * configure: Regenerated.
22018 * configure.ac: Option enable_lock_elision was deleted.
22019 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
22020 * config.make.in: Remove references to enable_lock_elision.
22021 * manual/install.texi: Elision configure option was removed.
22022 * INSTALL: Regenerated to remove enable_lock_elision.
22023 * nptl/Makefile:
22024 Disable elision so it can verify error case for destroying a mutex.
22025 * sysdeps/powerpc/nptl/elide.h:
22026 Cleanup ENABLE_LOCK_ELISION check.
22027 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
22028 * sysdeps/s390/configure: Regenerated.
22029 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
22030 * nptl/tst-mutex8.c:
22031 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
22032 * sysdeps/powerpc/powerpc32/sysdep.h:
22033 Deleted all ENABLE_LOCK_ELISION checks.
22034 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
22035 * sysdeps/powerpc/sysdep.h: Likewise.
22036 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
22037 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
22038 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
22039 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
22040 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
22041 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
22042 enable-lock-elision.
22043
22044 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22045
22046 * stdlib/strtod.c: Include <bits/floatn.h>.
22047 (BUILD_DOUBLE): New macro.
22048 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22049 (strtof64): Define and later undefine as macro. Define as weak
22050 alias if [!USE_WIDE_CHAR].
22051 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22052 (wcstof64): Define and later undefine as macro. Define as weak
22053 alias if [USE_WIDE_CHAR].
22054 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22055 (strtof32x): Define and later undefine as macro. Define as weak
22056 alias if [!USE_WIDE_CHAR].
22057 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22058 (wcstof32x): Define and later undefine as macro. Define as weak
22059 alias if [USE_WIDE_CHAR].
22060 * stdlib/strtod_l.c: Include <bits/floatn.h>.
22061 (BUILD_DOUBLE): New macro.
22062 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22063 (strtof64_l): Define and later undefine as macro. Define as weak
22064 alias if [!USE_WIDE_CHAR].
22065 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
22066 (wcstof64_l): Define and later undefine as macro. Define as weak
22067 alias if [USE_WIDE_CHAR].
22068 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22069 (strtof32x_l): Define and later undefine as macro. Define as weak
22070 alias if [!USE_WIDE_CHAR].
22071 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
22072 (wcstof32x_l): Define and later undefine as macro. Define as weak
22073 alias if [USE_WIDE_CHAR].
22074
22075 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22076
22077 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
22078 (reduced): Use ones as double instead of integer.
22079
22080 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
22081
22082 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
22083
22084 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22085
22086 * stdlib/strfromd.c: Include <bits/floatn.h>.
22087 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
22088 and later undefine as macro and define as weak alias.
22089 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
22090 Likewise.
22091
22092 * math/test-float32x.h: New file.
22093 * math/test-float64.h: Likewise.
22094
22095 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
22096 (libm_alias_double_other_r_f64): New macro.
22097 (libm_alias_double_other_r_f32x): Likewise.
22098 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22099 libm_alias_double_other_r_f32x.
22100 (libm_alias_double_r): Use semicolon before call to
22101 libm_alias_double_other_r.
22102 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
22103 <bits/floatn.h>.
22104 (libm_alias_double_other_r_f64): New macro.
22105 (libm_alias_double_other_r_f32x): Likewise.
22106 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
22107 libm_alias_double_other_r_f32x.
22108
22109 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
22110
22111 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
22112 int.
22113 (SINF_FUNC): Likewise. Replace floor with simple casts.
22114
22115 2017-12-05 Mike FABIAN <mfabian@redhat.com>
22116
22117 [BZ #22517]
22118 * localedata/Makefile: Add et_EE.UTF-8 to test-input
22119 and to the list of locales to be built for testing.
22120 * localedata/et_EE.UTF-8.in: New file for testing the collation.
22121 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
22122 and build the collation rules upon that.
22123
22124 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
22125
22126 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
22127 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
22128 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
22129 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
22130 instead of __insn__xxx.
22131 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
22132 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
22133 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
22134 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
22135 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
22136 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
22137
22138 2017-12-05 Florian Weimer <fweimer@redhat.com>
22139
22140 Linux: Implement interfaces for memory protection keys
22141 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
22142 xsignal, xsysconf.
22143 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
22144 * support/xunistd.h (xsysconf): Declare.
22145 * support/xraise.c: New file.
22146 * support/xsigaction.c: Likewise.
22147 * support/xsignal.c: Likewise.
22148 * support/xsysconf.c: Likewise.
22149 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22150 pkey_set, pkey_get, pkey_mprotect.
22151 [misc] (tests): Add tst-pkey.
22152 (tst-pkey): Link with -lpthread.
22153 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22154 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22155 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22156 (PKEY_DISABLE_WRITE): Define.
22157 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22158 Declare.
22159 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22160 (SEGV_PKUERR): Add.
22161 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22162 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22163 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22164 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22165 Add.
22166 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22167 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22168 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22169 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22170 * sysdeps/unix/sysv/linux/**.abilist: Update.
22171
22172 2017-12-05 Florian Weimer <fweimer@redhat.com>
22173
22174 * support/tst-test_compare.c (subprocess): Use long long instead
22175 of long argument for consistent type width across 32-bit and
22176 64-bit architectures.
22177 (do_test): Adjust expected output.
22178
22179 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22180
22181 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22182 (cosf): Define using libm_alias_float.
22183 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22184 (fabsf): Define using libm_alias_float.
22185 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22186 (fmaf): Define using libm_alias_float.
22187 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22188 (rintf): Define using libm_alias_float.
22189 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22190 (sinf): Define using libm_alias_float.
22191 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22192 <libm-alias-float.h>.
22193 (modff): Define using libm_alias_float.
22194 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22195 <libm-alias-float.h>.
22196 (logbf): Define using libm_alias_float.
22197 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22198 <libm-alias-float.h>.
22199 (ceilf): Define using libm_alias_float.
22200 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22201 <libm-alias-float.h>.
22202 (copysignf): Define using libm_alias_float.
22203 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22204 <libm-alias-float.h>.
22205 (floorf): Define using libm_alias_float.
22206 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22207 <libm-alias-float.h>.
22208 (llrintf): Define using libm_alias_float.
22209 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22210 <libm-alias-float.h>.
22211 (llroundf): Define using libm_alias_float.
22212 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22213 <libm-alias-float.h>.
22214 (lrintf): Define using libm_alias_float.
22215 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22216 <libm-alias-float.h>.
22217 (lroundf): Define using libm_alias_float.
22218 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22219 <libm-alias-float.h>.
22220 (nearbyintf): Define using libm_alias_float.
22221 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22222 <libm-alias-float.h>.
22223 (rintf): Define using libm_alias_float.
22224 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22225 <libm-alias-float.h>.
22226 (roundf): Define using libm_alias_float.
22227 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22228 <libm-alias-float.h>.
22229 (truncf): Define using libm_alias_float.
22230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22231 Include <libm-alias-float.h>.
22232 (ceilf): Define using libm_alias_float.
22233 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22234 Include <libm-alias-float.h>.
22235 (copysignf): Define using libm_alias_float.
22236 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22237 Include <libm-alias-float.h>.
22238 (floorf): Define using libm_alias_float.
22239 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22240 Include <libm-alias-float.h>.
22241 (llrintf): Define using libm_alias_float.
22242 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22243 Include <libm-alias-float.h>.
22244 (llroundf): Define using libm_alias_float.
22245 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22246 Include <libm-alias-float.h>.
22247 (logbf): Define using libm_alias_float.
22248 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22249 Include <libm-alias-float.h>.
22250 (lrintf): Define using libm_alias_float.
22251 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22252 Include <libm-alias-float.h>.
22253 (lroundf): Define using libm_alias_float.
22254 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22255 Include <libm-alias-float.h>.
22256 (modff): Define using libm_alias_float.
22257 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22258 Include <libm-alias-float.h>.
22259 (roundf): Define using libm_alias_float.
22260 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22261 Include <libm-alias-float.h>.
22262 (truncf): Define using libm_alias_float.
22263 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22264 <libm-alias-float.h>.
22265 (llrintf): Define using libm_alias_float.
22266 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22267 <libm-alias-float.h>.
22268 (llroundf): Define using libm_alias_float.
22269 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22270 <libm-alias-float.h>.
22271 (ceilf): Define using libm_alias_float.
22272 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22273 <libm-alias-float.h>.
22274 (floorf): Define using libm_alias_float.
22275 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22276 <libm-alias-float.h>.
22277 (llroundf): Define using libm_alias_float.
22278 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22279 <libm-alias-float.h>.
22280 (lroundf): Define using libm_alias_float.
22281 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22282 <libm-alias-float.h>.
22283 (roundf): Define using libm_alias_float.
22284 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22285 <libm-alias-float.h>.
22286 (truncf): Define using libm_alias_float.
22287 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22288 <libm-alias-float.h>.
22289 (copysignf): Define using libm_alias_float.
22290 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22291 <libm-alias-float.h>.
22292 (llrintf): Define using libm_alias_float.
22293 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22294 <libm-alias-float.h>.
22295 (llroundf): Define using libm_alias_float.
22296 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22297 <libm-alias-float.h>.
22298 (lrintf): Define using libm_alias_float.
22299 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22300 <libm-alias-float.h>.
22301 (lroundf): Define using libm_alias_float.
22302 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22303 <libm-alias-float.h>.
22304 (ceilf): Define using libm_alias_float.
22305 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22306 <libm-alias-float.h>.
22307 (copysignf): Define using libm_alias_float.
22308 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22309 <libm-alias-float.h>.
22310 (cosf): Define using libm_alias_float.
22311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22312 <libm-alias-float.h>.
22313 (floorf): Define using libm_alias_float.
22314 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22315 <libm-alias-float.h>.
22316 (llrintf): Define using libm_alias_float.
22317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22318 <libm-alias-float.h>.
22319 (llroundf): Define using libm_alias_float.
22320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22321 <libm-alias-float.h>.
22322 (logbf): Define using libm_alias_float.
22323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22324 <libm-alias-float.h>.
22325 (modff): Define using libm_alias_float.
22326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22327 <libm-alias-float.h>.
22328 (roundf): Define using libm_alias_float.
22329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22330 <libm-alias-float.h>.
22331 (sinf): Define using libm_alias_float.
22332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22333 <libm-alias-float.h>.
22334 (truncf): Define using libm_alias_float.
22335 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22336 <libm-alias-float.h>.
22337 (ceilf): Define using libm_alias_float.
22338 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22339 <libm-alias-float.h>.
22340 (copysignf): Define using libm_alias_float.
22341 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22342 <libm-alias-float.h>.
22343 (floorf): Define using libm_alias_float.
22344 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22345 <libm-alias-float.h>.
22346 (llrintf): Define using libm_alias_float.
22347 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22348 <libm-alias-float.h>.
22349 (llroundf): Define using libm_alias_float.
22350 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22351 <libm-alias-float.h>.
22352 (nearbyintf): Define using libm_alias_float.
22353 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22354 <libm-alias-float.h>.
22355 (rintf): Define using libm_alias_float.
22356 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22357 <libm-alias-float.h>.
22358 (roundf): Define using libm_alias_float.
22359 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22360 <libm-alias-float.h>.
22361 (truncf): Define using libm_alias_float.
22362 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22363 <libm-alias-float.h>.
22364 (ceilf): Define using libm_alias_float.
22365 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22366 <libm-alias-float.h>.
22367 (floorf): Define using libm_alias_float.
22368 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22369 <libm-alias-float.h>.
22370 (llroundf): Define using libm_alias_float.
22371 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22372 <libm-alias-float.h>.
22373 (roundf): Define using libm_alias_float.
22374 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22375 <libm-alias-float.h>.
22376 (truncf): Define using libm_alias_float.
22377 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22378 <libm-alias-float.h>.
22379 (copysignf): Define using libm_alias_float.
22380 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22381 <libm-alias-float.h>.
22382 (llrintf): Define using libm_alias_float.
22383 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22384 <libm-alias-float.h>.
22385 (llroundf): Define using libm_alias_float.
22386 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22387 <libm-alias-float.h>.
22388 (cosf): Define using libm_alias_float.
22389 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22390 <libm-alias-float.h>.
22391 (llrintf): Define using libm_alias_float.
22392 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22393 <libm-alias-float.h>.
22394 (llroundf): Define using libm_alias_float.
22395 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22396 <libm-alias-float.h>.
22397 (sinf): Define using libm_alias_float.
22398
22399 2017-12-04 Florian Weimer <fweimer@redhat.com>
22400
22401 * support/check.h (TEST_COMPARE): Define.
22402 (support_test_compare_failure): Declare.
22403 * support/Makefile (libsupport-routines): Add
22404 support_test_compare_failure.
22405 (tests): Add tst-test_compare.
22406 * support /support_test_compare_failure.c: New file.
22407 * support/tst-test_compare.c: Likewise.
22408
22409 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22410
22411 [BZ #22527]
22412 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22413 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22414 available, this rewrite of the collation rules does reproduce
22415 the test file in the same order.
22416
22417 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22418
22419 [BZ #10580]
22420 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22421 digraphs in the month and day names. Using single code points for
22422 digraphs is deprecated. While there are dedicated Unicode
22423 codepoints, for the digraphs, these are included for backwards
22424 compatibility and modern texts use a sequence of Basic Latin
22425 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22426 This makes the month and day names agree exactly with CLDR now,
22427 CLDR does not use the single code points for the digraphs either.
22428
22429 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22430
22431 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22432
22433 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22434
22435 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22436 of floor.
22437
22438 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22439
22440 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22441 Define only for libc.so.
22442
22443 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22444
22445 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22446 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22447 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22448 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22449 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22450
22451 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22452
22453 [BZ #5997]
22454 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22455
22456 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22457
22458 [BZ libc/19170]
22459 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22460 PREINIT_FUNCTION_WEAK is nonzero.
22461 (gmon_initializer): New function. Put procedure label for it in
22462 .init_array section.
22463 (_init): Don't call PREINIT_FUNCTION.
22464 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22465 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22466 value when map argument is null.
22467
22468 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22469 depi instruction from PIC pc-relative sequence.
22470 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22471 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22472 (elf_machine_load_address): Likewise.
22473 (elf_machine_runtime_setup): Likewise.
22474
22475 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22476
22477 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22478 <libm-alias-double.h>.
22479 (logb): Define using libm_alias_double.
22480 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22481 <libm-alias-double.h>.
22482 (copysign): Define using libm_alias_double.
22483 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22484 <libm-alias-double.h>.
22485 (llrint): Define using libm_alias_double.
22486 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22487 <libm-alias-double.h>.
22488 (llround): Define using libm_alias_double.
22489 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22490 <libm-alias-double.h>.
22491 (lrint): Define using libm_alias_double.
22492 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22493 <libm-alias-double.h>.
22494 (lround): Define using libm_alias_double.
22495 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22496 Include <libm-alias-double.h>.
22497 (copysign): Define using libm_alias_double.
22498 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22499 Include <libm-alias-double.h>.
22500 (llrint): Define using libm_alias_double.
22501 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22502 Include <libm-alias-double.h>.
22503 (llround): Define using libm_alias_double.
22504 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22505 <libm-alias-double.h>.
22506 (logb): Define using libm_alias_double.
22507 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22508 Include <libm-alias-double.h>.
22509 (lrint): Define using libm_alias_double.
22510 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22511 Include <libm-alias-double.h>.
22512 (lround): Define using libm_alias_double.
22513 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22514 <libm-alias-double.h>.
22515 (llrint): Define using libm_alias_double.
22516 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22517 <libm-alias-double.h>.
22518 (llround): Define using libm_alias_double.
22519 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22520 <libm-alias-double.h>.
22521 (llround): Define using libm_alias_double.
22522 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22523 <libm-alias-double.h>.
22524 (lround): Define using libm_alias_double.
22525 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22526 <libm-alias-double.h>.
22527 (copysign): Define using libm_alias_double.
22528 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22529 <libm-alias-double.h>.
22530 (llrint): Define using libm_alias_double.
22531 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22532 <libm-alias-double.h>.
22533 (llround): Define using libm_alias_double.
22534 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22535 <libm-alias-double.h>.
22536 (lrint): Define using libm_alias_double.
22537 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22538 <libm-alias-double.h>.
22539 (lround): Define using libm_alias_double.
22540 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22541 <libm-alias-double.h>.
22542 (copysign): Define using libm_alias_double.
22543 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22544 <libm-alias-double.h>.
22545 (llrint): Define using libm_alias_double.
22546 (lrint): Likewise.
22547 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22548 <libm-alias-double.h>.
22549 (llround): Define using libm_alias_double.
22550 (lround): Likewise.
22551 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22552 <libm-alias-double.h>.
22553 (logb): Define using libm_alias_double.
22554 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22555 <libm-alias-double.h>.
22556 (copysign): Define using libm_alias_double.
22557 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22558 <libm-alias-double.h>.
22559 (llrint): Define using libm_alias_double.
22560 (lrint): Likewise.
22561 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22562 <libm-alias-double.h>.
22563 (llround): Define using libm_alias_double.
22564 (lround): Likewise.
22565 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22566 <libm-alias-double.h>.
22567 (llround): Define using libm_alias_double.
22568 (lround): Likewise.
22569 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22570 <libm-alias-double.h>.
22571 (copysign): Define using libm_alias_double.
22572 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22573 <libm-alias-double.h>.
22574 (llrint): Define using libm_alias_double.
22575 (lrint): Likewise.
22576 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22577 <libm-alias-double.h>.
22578 (llround): Define using libm_alias_double.
22579 (lround): Likewise.
22580 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22581 <libm-alias-double.h>.
22582 (llrint): Define using libm_alias_double.
22583 (lrint): Likewise.
22584 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22585 <libm-alias-double.h>.
22586 (llround): Define using libm_alias_double.
22587 (lround): Likewise.
22588
22589 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22590
22591 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22592 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22593 compat symbol based on llround.
22594
22595 * sysdeps/powerpc/power7/fpu/s_logb.c
22596 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22597 symbol based on __logb, not on logb.
22598 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22599 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22601 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22602
22603 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22604 (rint): Define using libm_alias_double.
22605 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22606 <libm-alias-double.h>.
22607 (modf): Define using libm_alias_double.
22608 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22609 <libm-alias-double.h>.
22610 (ceil): Define using libm_alias_double.
22611 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22612 <libm-alias-double.h>.
22613 (floor): Define using libm_alias_double.
22614 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22615 <libm-alias-double.h>.
22616 (nearbyint): Define using libm_alias_double.
22617 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22618 <libm-alias-double.h>.
22619 (rint): Define using libm_alias_double.
22620 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22621 <libm-alias-double.h>.
22622 (round): Define using libm_alias_double.
22623 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22624 <libm-alias-double.h>.
22625 (trunc): Define using libm_alias_double.
22626 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22627 <libm-alias-double.h>.
22628 (ceil): Define using libm_alias_double.
22629 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22630 Include <libm-alias-double.h>.
22631 (floor): Define using libm_alias_double.
22632 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22633 <libm-alias-double.h>.
22634 (modf): Define using libm_alias_double.
22635 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22636 Include <libm-alias-double.h>.
22637 (round): Define using libm_alias_double.
22638 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22639 Include <libm-alias-double.h>.
22640 (trunc): Define using libm_alias_double.
22641 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22642 <libm-alias-double.h>.
22643 (ceil): Define using libm_alias_double.
22644 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22645 <libm-alias-double.h>.
22646 (floor): Define using libm_alias_double.
22647 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22648 <libm-alias-double.h>.
22649 (round): Define using libm_alias_double.
22650 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22651 <libm-alias-double.h>.
22652 (trunc): Define using libm_alias_double.
22653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22654 <libm-alias-double.h>.
22655 (ceil): Define using libm_alias_double.
22656 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22657 <libm-alias-double.h>.
22658 (floor): Define using libm_alias_double.
22659 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22660 <libm-alias-double.h>.
22661 (modf): Define using libm_alias_double.
22662 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22663 <libm-alias-double.h>.
22664 (round): Define using libm_alias_double.
22665 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22666 <libm-alias-double.h>.
22667 (trunc): Define using libm_alias_double.
22668 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22669 <libm-alias-double.h>.
22670 (ceil): Define using libm_alias_double.
22671 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22672 <libm-alias-double.h>.
22673 (floor): Define using libm_alias_double.
22674 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22675 <libm-alias-double.h>.
22676 (nearbyint): Define using libm_alias_double.
22677 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22678 <libm-alias-double.h>.
22679 (rint): Define using libm_alias_double.
22680 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22681 <libm-alias-double.h>.
22682 (round): Define using libm_alias_double.
22683 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22684 <libm-alias-double.h>.
22685 (trunc): Define using libm_alias_double.
22686 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22687 <libm-alias-double.h>.
22688 (ceil): Define using libm_alias_double.
22689 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22690 <libm-alias-double.h>.
22691 (floor): Define using libm_alias_double.
22692 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22693 <libm-alias-double.h>.
22694 (round): Define using libm_alias_double.
22695 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22696 <libm-alias-double.h>.
22697 (trunc): Define using libm_alias_double.
22698
22699 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22700 (fabs): Define using libm_alias_double.
22701 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22702 (fma): Define using libm_alias_double.
22703 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22704 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22705 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22706 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22707
22708 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22709
22710 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22711
22712 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22713 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22714 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22715
22716 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22717 due redirect macro.
22718
22719 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22720
22721 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22722
22723 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22724
22725 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22726 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22727 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22728 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22729
22730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22731 (libm-sysdep_routines): Add s_nearbyintf-generic and
22732 s_nearbyint-generic.
22733 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22734 New file.
22735 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22736 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22737 Likewise.
22738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22739 Likewise.
22740 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22741 file.
22742 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22743 Likewise.
22744
22745 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22746 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22747 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22748 file.
22749 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22750 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22751 Likewise.
22752 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22753 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22755
22756 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22757 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22758 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22759 file.
22760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22761 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22762 Likewise.
22763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22764 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22765 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22766
22767 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22768 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22770 file.
22771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22772 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22773 Likewise.
22774 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22776 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22777
22778 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22779 (sysdep_calls): New rule.
22780 (sysdep_routines): Use sysdep_calls as base.
22781 (libm-sysdep_routines): Add generic rule for symbols shared with
22782 libc. Add s_copysign-generic and s_copysign-generic objects.
22783 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22784 New file.
22785 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22786 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22787 Likewise.
22788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22789 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22791
22792 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22793
22794 [BZ #22519]
22795 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22796 the list of locales to be built for testing.
22797 * localedata/is_IS.UTF-8.in: New file.
22798 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22799 on iso14651_t1.
22800
22801 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22802
22803 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22804 <libm-alias-float.h>.
22805 (fabsf): Define using libm_alias_float.
22806
22807 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22808
22809 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22810
22811 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22812
22813 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22814 <libm-alias-float.h>.
22815 (fabsf): Define using libm_alias_float.
22816 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22817 <libm-alias-float.h>.
22818 (lrintf): Define using libm_alias_float.
22819 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22820 <libm-alias-float.h>.
22821 (rintf): Define using libm_alias_float.
22822
22823 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22824 <libm-alias-double.h>.
22825 (fabs): Define using libm_alias_double.
22826 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22827 <libm-alias-double.h>.
22828 (lrint): Define using libm_alias_double.
22829 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22830 <libm-alias-double.h>.
22831 (rint): Define using libm_alias_double.
22832
22833 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22834 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22835 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22836 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22837 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22838 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22839 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22840 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22841 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22842 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22843 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22844 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22845 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22846 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22847 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22848 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22849 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22850 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22851 s_atan_template.c.
22852 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22853 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22854 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22855 s_ceil_template.c.
22856 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22857 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22858 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22859 s_cos_template.c.
22860 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22861 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22862 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22863 s_expm1_template.c.
22864 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22865 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22866 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22867 s_fabs_template.c.
22868 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22869 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22870 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22871 s_floor_template.c.
22872 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22873 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22874 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22875 s_frexp_template.c.
22876 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22877 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22878 s_lrint_template.c.
22879 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22880 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22881 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22882 s_modf_template.c.
22883 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22884 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22885 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22886 s_nearbyint_template.c.
22887 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22888 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22889 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22890 s_remquo_template.c.
22891 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22892 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22893 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22894 s_rint_template.c.
22895 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22896 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22897 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22898 s_sin_template.c.
22899 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22900 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22901 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22902 s_sincos_template.c.
22903 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22904 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22905 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22906 s_tan_template.c.
22907 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22908 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22909 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22910 s_tanh_template.c.
22911 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22912 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22913 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22914 s_trunc_template.c.
22915 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22916 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22917 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22918 s_atan.c instead of including s_atan.c.
22919 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22920 s_atanf.c instead of including s_atanf.c.
22921 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22922 s_atanl.c instead of including s_atanl.c.
22923 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22924 instead of s_atan.c.
22925 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22926 instead of s_atanf.c.
22927 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22928 instead of s_atanl.c.
22929
22930 * scripts/update-copyrights: Do not handle intl/plural.c
22931 specially.
22932
22933 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22934
22935 [BZ #22432]
22936 * configure.ac (BISON): Require to be present.
22937 * configure: Regenerated.
22938 * intl/Makefile (generated): Add plural.c.
22939 [$(BISON) != no]: Make code unconditional.
22940 (plural.c): Change rule to $(objpfx)plural.c.
22941 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22942 * intl/plural.c: Remove.
22943 * manual/install.texi (Tools for Compilation): Document bison as
22944 required.
22945 * INSTALL: Regenerated.
22946
22947 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22948
22949 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22950 <libm-alias-double.h>.
22951 (llrint): Define using libm_alias_double.
22952 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22953 <libm-alias-float.h>.
22954 (llrintf): Define using libm_alias_float.
22955 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22956 <libm-alias-ldouble.h>.
22957 (llrintl): Define using libm_alias_ldouble.
22958
22959 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22960 declare_mgen_alias instead of weak_alias.
22961 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22962 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22963 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22964
22965 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22966
22967 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22968 Add add_n-generic.
22969 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22970 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22971 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22972
22973 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22974 Add submul_1-generic.
22975 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22976 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22977 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22978
22979 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22980 Add addmul_1-generic.
22981 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22982 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22983 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22984
22985 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22986 Add sub_n-generic.
22987 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22988 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22989 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22990
22991 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22992 Add mul_1-generic.
22993 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22994 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22995 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22996
22997 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22998
22999 According to CLDR, collation rules for Serbian and Bosnian
23000 should be the same as for Croatian.
23001
23002 [BZ #22534]
23003 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
23004 and to the list of locales to be built for testing.
23005 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23006 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
23007 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
23008 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
23009
23010 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23011
23012 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
23013 to make test case pass.
23014 * localedata/hr_HR.UTF-8.in: Add more test strings.
23015
23016 2017-11-30 Mike FABIAN <mfabian@redhat.com>
23017
23018 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
23019
23020 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23021
23022 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
23023 the list of locales to built for testing.
23024 * localedata/hr_HR.UTF-8.in: New file.
23025
23026 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
23027
23028 [BZ #10580]
23029 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
23030 iso14651_t1.
23031 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
23032 CLDR (except use ligatures for the digraphs, CLDR does not use
23033 the ligatures), add first_workday, some fixes in the date and time
23034 formats.
23035 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
23036 for Đ and đ.
23037 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
23038 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
23039 Add int_p_cs_precedes and int_n_cs_precedes.
23040 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
23041 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
23042 LC_MONETARY now).
23043 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
23044 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
23045 name_miss.
23046 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
23047 and lang_lib. Change postal_fmt.
23048
23049 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
23050
23051 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
23052 <setjmp.h>.
23053 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23054 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
23055 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
23056 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
23057 * sysdeps/generic/setjmpP.h: New file.
23058 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
23059 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
23060 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
23061 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
23062 Add jmp_buf-ssp.sym.
23063 (tests): Add tst-saved_mask-1.
23064
23065 2017-11-30 Arjun Shankar <arjun@redhat.com>
23066
23067 [BZ #22375]
23068 CVE-2017-17426
23069 * malloc/malloc.c (__libc_malloc): Use checked_request2size
23070 instead of request2size.
23071
23072 2017-11-30 Joseph Myers <joseph@codesourcery.com>
23073
23074 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
23075 (__lllrint): Remove alias.
23076 (lllrint): Likewise.
23077 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
23078 (__lllrintf): Likewise.
23079 (lllrintf): Likewise.
23080
23081 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
23082 <libm-alias-float.h>.
23083 (copysignf): Define using libm_alias_float.
23084 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
23085 <libm-alias-float.h>.
23086 (fabsf): Define using libm_alias_float.
23087 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23088 Include <libm-alias-float.h>.
23089 (copysignf): Define using libm_alias_float.
23090 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
23091 <libm-alias-float.h>.
23092 (fabsf): Define using libm_alias_float.
23093 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
23094 <libm-alias-float.h>.
23095 (fdimf): Define using libm_alias_float.
23096 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
23097 <libm-alias-float.h>.
23098 (fmaf): Define using libm_alias_float.
23099 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
23100 <libm-alias-float.h>.
23101 (llrintf): Define using libm_alias_float.
23102 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
23103 Include <libm-alias-float.h>.
23104 (nearbyintf): Define using libm_alias_float.
23105 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
23106 <libm-alias-float.h>.
23107 (rintf): Define using libm_alias_float.
23108 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
23109 <libm-alias-float.h>.
23110 (llrintf): Define using libm_alias_float.
23111 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
23112 <libm-alias-float.h>.
23113 (lrintf): Define using libm_alias_float.
23114 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
23115 <libm-alias-float.h>.
23116 (nearbyintf): Define using libm_alias_float.
23117 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
23118 <libm-alias-float.h>.
23119 (rintf): Define using libm_alias_float.
23120 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
23121 <libm-alias-float.h>.
23122 (ceilf): Define using libm_alias_float.
23123 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
23124 <libm-alias-float.h>.
23125 (floorf): Define using libm_alias_float.
23126 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
23127 <libm-alias-float.h>.
23128 (fmaf): Define using libm_alias_float.
23129 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
23130 <libm-alias-float.h>.
23131 (lrintf): Define using libm_alias_float.
23132 (llrintf): Likewise.
23133 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
23134 <libm-alias-float.h>.
23135 (nearbyintf): Define using libm_alias_float.
23136 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
23137 <libm-alias-float.h>.
23138 (rintf): Define using libm_alias_float.
23139 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
23140 <libm-alias-float.h>.
23141 (truncf): Define using libm_alias_float.
23142 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
23143 <libm-alias-float.h>.
23144 (copysignf): Define using libm_alias_float.
23145 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
23146 <libm-alias-float.h>.
23147 (fabsf): Define using libm_alias_float.
23148 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23149 <libm-alias-float.h>.
23150 (lrintf): Define using libm_alias_float.
23151 (llrintf): Likewise.
23152 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23153 <libm-alias-float.h>.
23154 (nearbyintf): Define using libm_alias_float.
23155 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23156 <libm-alias-float.h>.
23157 (rintf): Define using libm_alias_float.
23158
23159 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23160
23161 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23162 <libm-alias-double.h>.
23163 (copysign): Define using libm_alias_double.
23164 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23165 <libm-alias-double.h>.
23166 (fabs): Define using libm_alias_double.
23167 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23168 Include <libm-alias-double.h>.
23169 (copysign): Define using libm_alias_double.
23170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23171 <libm-alias-double.h>.
23172 (fabs): Define using libm_alias_double.
23173 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23174 <libm-alias-double.h>.
23175 (fdim): Define using libm_alias_double.
23176 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23177 <libm-alias-double.h>.
23178 (fma): Define using libm_alias_double.
23179 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23180 <libm-alias-double.h>.
23181 (llrint): Define using libm_alias_double.
23182 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23183 Include <libm-alias-double.h>.
23184 (nearbyint): Define using libm_alias_double.
23185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23186 <libm-alias-double.h>.
23187 (rint): Define using libm_alias_double.
23188 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23189 <libm-alias-double.h>.
23190 (fabs): Define using libm_alias_double.
23191 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23192 <libm-alias-double.h>.
23193 (llrint): Define using libm_alias_double.
23194 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23195 <libm-alias-double.h>.
23196 (nearbyint): Define using libm_alias_double.
23197 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23198 <libm-alias-double.h>.
23199 (rint): Define using libm_alias_double.
23200 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23201 <libm-alias-double.h>.
23202 (ceil): Define using libm_alias_double.
23203 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23204 <libm-alias-double.h>.
23205 (floor): Define using libm_alias_double.
23206 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23207 <libm-alias-double.h>.
23208 (fma): Define using libm_alias_double.
23209 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23210 <libm-alias-double.h>.
23211 (lrint): Define using libm_alias_double.
23212 (llrint): Likewise.
23213 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23214 <libm-alias-double.h>.
23215 (nearbyint): Define using libm_alias_double.
23216 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23217 <libm-alias-double.h>.
23218 (rint): Define using libm_alias_double.
23219 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23220 <libm-alias-double.h>.
23221 (trunc): Define using libm_alias_double.
23222 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23223 <libm-alias-double.h>.
23224 (copysign): Define using libm_alias_double.
23225 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23226 <libm-alias-double.h>.
23227 (fabs): Define using libm_alias_double.
23228 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23229 <libm-alias-double.h>.
23230 (lrint): Define using libm_alias_double.
23231 (llrint): Likewise.
23232 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23233 <libm-alias-double.h>.
23234 (nearbyint): Define using libm_alias_double.
23235 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23236 <libm-alias-double.h>.
23237 (rint): Define using libm_alias_double.
23238
23239 [BZ #22229]
23240 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23241 <math_ldbl_opt.h>.
23242 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23243
23244 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23245 SPARC --disable-multi-arch glibc variants.
23246
23247 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23248 <libm-alias-float.h>.
23249 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23250 if [SHARED].
23251 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23252 <libm-alias-float.h>.
23253 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23254 if [SHARED].
23255 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23256 <libm-alias-float.h>.
23257 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23258 if [SHARED].
23259 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23260 <libm-alias-float.h>.
23261 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23262 if [SHARED].
23263 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23264 <libm-alias-float.h>.
23265 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23266 if [SHARED].
23267 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23268 <libm-alias-float.h>.
23269 (ceilf): Define using libm_alias_float.
23270 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23271 <libm-alias-float.h>.
23272 (floorf): Define using libm_alias_float.
23273 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23274 <libm-alias-float.h>.
23275 (fmaf): Define using libm_alias_float.
23276 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23277 <libm-alias-float.h>.
23278 (nearbyintf): Define using libm_alias_float.
23279 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23280 <libm-alias-float.h>.
23281 (rintf): Define using libm_alias_float.
23282 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23283 <libm-alias-float.h>.
23284 (truncf): Define using libm_alias_float.
23285 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23286 (copysignf): Define using libm_alias_float.
23287 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23288 (cosf): Define using libm_alias_float.
23289 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23290 (fabsf): Define using libm_alias_float.
23291 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23292 (fmaxf): Define using libm_alias_float.
23293 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23294 (fminf): Define using libm_alias_float.
23295 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23296 (llrintf): Define using libm_alias_float.
23297 [!__ILP32__] (lrintf): Likewise.
23298 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23299 (sincosf): Define using libm_alias_float.
23300 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23301 (sinf): Define using libm_alias_float.
23302 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23303 (lrintf): Define using libm_alias_float.
23304
23305 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23306 <libm-alias-double.h>.
23307 (atan): Define using libm_alias_double.
23308 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23309 <libm-alias-double.h>.
23310 (ceil): Define using libm_alias_double.
23311 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23312 <libm-alias-double.h>.
23313 (floor): Define using libm_alias_double.
23314 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23315 <libm-alias-double.h>.
23316 (fma): Define using libm_alias_double.
23317 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23318 <libm-alias-double.h>.
23319 (nearbyint): Define using libm_alias_double.
23320 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23321 <libm-alias-double.h>.
23322 (rint): Define using libm_alias_double.
23323 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23324 <libm-alias-double.h>.
23325 (sin): Define using libm_alias_double.
23326 (cos): Likewise.
23327 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23328 <libm-alias-double.h>.
23329 (tan): Define using libm_alias_double.
23330 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23331 <libm-alias-double.h>.
23332 (trunc): Define using libm_alias_double.
23333 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23334 (copysign): Define using libm_alias_double.
23335 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23336 (fabs): Define using libm_alias_double.
23337 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23338 (fmax): Define using libm_alias_double.
23339 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23340 (fmin): Define using libm_alias_double.
23341 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23342 (llrint): Define using libm_alias_double.
23343 [!__ILP32__] (lrint): Likewise.
23344 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23345 (lrint): Define using libm_alias_double.
23346
23347 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23348
23349 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23350 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23351 objects.
23352 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23353 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23354 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23355 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23356 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23357 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23358
23359 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23360 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23361 objects.
23362 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23363 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23364 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23365 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23366 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23367 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23368
23369 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23370 (libm-sysdep_routines): Add s_nearbyint-generic and
23371 s_nearbyintf-generic objects.
23372 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23373 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23374 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23375 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23376 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23377 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23378
23379 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23380 Add s_finitef-generic and s_finite-generic objects.
23381 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23382 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23383 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23384 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23385 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23386 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23387
23388 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23389 Add s_isinff-generic and s_isinf-generic objects.
23390 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23391 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23392 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23393 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23394 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23395 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23396
23397 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23398 Add s_isnanf-generic and s_isnan-generic objects.
23399 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23400 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23401 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23402 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23403 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23404 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23405
23406 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23407 macro.
23408 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23409 rule.
23410 (sysdep_routines): Use sysdep_calls as base.
23411 (libm-sysdep_routines): Add generic rule for symbols shared with
23412 libc. Add s_signbit-generic and s_signbitf-generic objects.
23413 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23414 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23415 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23416 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23417 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23418 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23419
23420 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23421
23422 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23423 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23424 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23425 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23426 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23427 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23428 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23429 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23430 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23431 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23432 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23433 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23434 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23435 libm_alias_float_r.
23436 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23437 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23438 (logf): Likewise.
23439 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23440 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23441 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23442 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23443 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23444 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23445 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23446 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23447 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23448 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23449 libm_alias_float.
23450 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23451 (cosf): Likewise.
23452 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23453 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23454 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23455 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23456 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23457 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23458 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23459 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23460 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23461 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23462 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23463 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23464 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23465 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23466 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23467 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23468 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23469 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23470 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23471 libm_alias_float.
23472 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23473 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23474 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23475 * sysdeps/ia64/fpu/w_lgammaf_main.c
23476 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23477 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23478
23479 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23480 Alexandre Oliva <aoliva@redhat.com>
23481
23482 [BZ #17750]
23483 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23484 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23485 accents sorting.
23486 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23487 sorting.
23488 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23489 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23490 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23491 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23492 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23493 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23494 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23495 instead of “ifdef DIACRIT_BACKWARD”.
23496
23497 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23498
23499 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23500 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23501 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23502 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23503 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23504 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23505 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23506 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23507 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23508 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23509 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23510 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23511 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23512 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23513 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23514 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23515 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23516 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23517 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23518 ($(have-as-vis3) == yes): Remove conditional.
23519 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23520 Likewise.
23521 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23522 file.
23523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23524 file.
23525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23526 file.
23527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23528 file.
23529 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23530 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23531 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23532 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23533 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23534 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23535 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23536 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23537
23538 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23539
23540 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23541 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23542 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23543 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23544 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23545 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23546 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23547 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23548 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23549 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23550 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23551 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23552 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23553 libm_alias_double_r.
23554 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23555 (log): Likewise.
23556 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23557 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23558 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23559 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23560 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23561 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23562 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23563 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23564 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23565 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23566 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23567 libm_alias_double.
23568 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23569 (cos): Likewise.
23570 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23571 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23572 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23573 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23574 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23575 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23576 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23577 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23578 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23579 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23580 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23581 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23582 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23583 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23584 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23585 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23586 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23587 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23588 libm_alias_double.
23589 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23590 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23591 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23592 * sysdeps/ia64/fpu/w_lgamma_main.c
23593 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23594 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23595
23596 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23597
23598 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23599 address of $global$ into %dp register earlier. Use pc-relative
23600 instruction sequence for PIC case.
23601
23602 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23603
23604 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23605 (asinhf): Define using libm_alias_float.
23606 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23607 (atanf): Define using libm_alias_float.
23608 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23609 (cbrtf): Define using libm_alias_float.
23610 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23611 (ceilf): Define using libm_alias_float.
23612 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23613 (copysignf): Define using libm_alias_float.
23614 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23615 (expm1f): Define using libm_alias_float.
23616 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23617 (fabsf): Define using libm_alias_float.
23618 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23619 (floorf): Define using libm_alias_float.
23620 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23621 (fmaxf): Define using libm_alias_float.
23622 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23623 (fminf): Define using libm_alias_float.
23624 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23625 (frexpf): Define using libm_alias_float.
23626 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23627 (llrintf): Define using libm_alias_float.
23628 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23629 (logbf): Define using libm_alias_float.
23630 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23631 (lrintf): Define using libm_alias_float.
23632 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23633 (nearbyintf): Define using libm_alias_float.
23634 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23635 (remquof): Define using libm_alias_float.
23636 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23637 (rintf): Define using libm_alias_float.
23638 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23639 (truncf): Define using libm_alias_float.
23640 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23641 <libm-alias-float.h>.
23642 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23643 if [SHARED].
23644 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23645 <libm-alias-float.h>.
23646 (expf): Define using libm_alias_float, or libm_alias_float_other
23647 if [SHARED].
23648 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23649 <libm-alias-float.h>.
23650 (log2f): Define using libm_alias_float, or libm_alias_float_other
23651 if [SHARED].
23652 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23653 <libm-alias-float.h>.
23654 (logf): Define using libm_alias_float, or libm_alias_float_other
23655 if [SHARED].
23656 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23657 <libm-alias-float.h>.
23658 (powf): Define using libm_alias_float, or libm_alias_float_other
23659 if [SHARED].
23660 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23661 <libm-alias-float.h>.
23662 (cosf): Define using libm_alias_float.
23663 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23664 <libm-alias-float.h>.
23665 (sincosf): Define using libm_alias_float.
23666 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23667 <libm-alias-float.h>.
23668 (sinf): Define using libm_alias_float.
23669 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23670 (fmaxf): Define using libm_alias_float.
23671 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23672 (fminf): Define using libm_alias_float.
23673 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23674 <libm-alias-float.h>.
23675 (fmaf): Define using libm_alias_float.
23676
23677 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23678 (asinh): Define using libm_alias_double.
23679 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23680 (atan): Define using libm_alias_double.
23681 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23682 (cbrt): Define using libm_alias_double.
23683 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23684 (ceil): Define using libm_alias_double.
23685 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23686 (copysign): Define using libm_alias_double.
23687 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23688 (expm1): Define using libm_alias_double.
23689 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23690 (fabs): Define using libm_alias_double.
23691 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23692 (fdim): Define using libm_alias_double.
23693 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23694 (floor): Define using libm_alias_double.
23695 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23696 (fmax): Define using libm_alias_double.
23697 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23698 (fmin): Define using libm_alias_double.
23699 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23700 (frexp): Define using libm_alias_double.
23701 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23702 (llrint): Define using libm_alias_double.
23703 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23704 (logb): Define using libm_alias_double.
23705 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23706 (lrint): Define using libm_alias_double.
23707 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23708 (nearbyint): Define using libm_alias_double.
23709 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23710 (remquo): Define using libm_alias_double.
23711 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23712 (rint): Define using libm_alias_double.
23713 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23714 (trunc): Define using libm_alias_double.
23715 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23716 (fmax): Define using libm_alias_double.
23717 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23718 (fmin): Define using libm_alias_double.
23719 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23720 (fma): Define using libm_alias_double.
23721
23722 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23723
23724 [BZ #22370]
23725 * elf/dl-hwcaps.c (ROUND): Removed.
23726 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23727 and ELF_NOTE_NEXT_OFFSET.
23728 * elf/dl-load.c (ROUND): Removed.
23729 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23730 * elf/readelflib.c (ROUND): Removed.
23731 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23732 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23733 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23734 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23735
23736 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23737
23738 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23739 [!__fmaf] (fmaf): Define using libm_alias_float.
23740
23741 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23742 [!__fma] (fma): Define using libm_alias_double.
23743 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23744
23745 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23746
23747 [BZ #22336]
23748 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23749 and implement the collation rules for cs from CLDR on top of that.
23750 * Makefile: Add cs_CZ.UTF-8 to test-input.
23751 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23752
23753 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23754
23755 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23756
23757 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23758 Icarus Sparry <icarus.w.sparry@intel.com>
23759
23760 * benchtests/Makefile:Add BENCHSET to allow subsets of
23761 benchmarks to be run.
23762 * benchtests/README: Add documentation for: Running subsets of
23763 benchmarks.
23764
23765 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23766
23767 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23768 range of tests names.
23769
23770 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23771 result from property and remove "max", min" and "mean" from
23772 required properties based on benchtests/bench-skeleton.c.
23773
23774 2017-11-28 Florian Weimer <fweimer@redhat.com>
23775
23776 [BZ #20826]
23777 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23778 due to Internet requirement.
23779 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23780 tst-getaddrinfo5.
23781 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23782
23783 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23784
23785 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23786 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23787 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23788 (sysdep_routines): Add memset-ultra1.
23789 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23790 file.
23791 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23792 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23793 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23794 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23795 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23796 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23797 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23798 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23799
23800 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23801 file.
23802 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23803 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23804 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23805 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23806 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23807 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23808 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23809 macro.
23810 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23811 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23812 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23813 (sysdep_routines): Add memcpy-ultra1.
23814 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23815 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23816
23817 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23818
23819 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23820 (cfloat_versions): Take function argument without trailing 'f'.
23821 Call libm_alias_float_other.
23822 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23823 * sysdeps/alpha/fpu/cargf.c: Likewise.
23824 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23825 * sysdeps/alpha/fpu/conjf.c: Likewise.
23826 * sysdeps/alpha/fpu/crealf.c: Likewise.
23827 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23828 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23829 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23830 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23831 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23832 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23833 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23834 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23835 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23836 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23837 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23838 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23839 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23840 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23841 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23842 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23843 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23844 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23845 (clog10f): Use libm_alias_float_other.
23846 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23847 (ceilf): Define using libm_alias_float.
23848 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23849 (copysignf): Define using libm_alias_float.
23850 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23851 (fabsf): Define using libm_alias_float.
23852 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23853 (floorf): Define using libm_alias_float.
23854 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23855 (fmaxf): Define using libm_alias_float.
23856 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23857 (fminf): Define using libm_alias_float.
23858 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23859 (lrintf): Define using libm_alias_float.
23860 (llrintf): Likewise.
23861 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23862 (lroundf): Define using libm_alias_float.
23863 (llroundf): Likewise.
23864 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23865 (rintf): Define using libm_alias_float.
23866 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23867 (truncf): Define using libm_alias_float.
23868
23869 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23870 (ceilf): Define using libm_alias_float.
23871 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23872 (floorf): Define using libm_alias_float.
23873 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23874 (fmaf): Define using libm_alias_float.
23875 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23876 (fmaxf): Define using libm_alias_float.
23877 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23878 (fminf): Define using libm_alias_float.
23879 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23880 (llrintf): Define using libm_alias_float.
23881 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23882 (llroundf): Define using libm_alias_float.
23883 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23884 (lrintf): Define using libm_alias_float.
23885 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23886 (lroundf): Define using libm_alias_float.
23887 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23888 <libm-alias-float.h>.
23889 (nearbyintf): Define using libm_alias_float.
23890 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23891 (rintf): Define using libm_alias_float.
23892 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23893 (roundf): Define using libm_alias_float.
23894 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23895 (truncf): Define using libm_alias_float.
23896
23897 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23898 (ceil): Define using libm_alias_double.
23899 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23900 (copysign): Define using libm_alias_double.
23901 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23902 (fabs): Define using libm_alias_double.
23903 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23904 (floor): Define using libm_alias_double.
23905 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23906 (fmax): Define using libm_alias_double.
23907 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23908 (fmin): Define using libm_alias_double.
23909 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23910 (lrint): Define using libm_alias_double.
23911 (llrint): Likewise.
23912 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23913 (lround): Define using libm_alias_double.
23914 (llround): Likewise.
23915 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23916 (rint): Define using libm_alias_double.
23917 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23918 (trunc): Define using libm_alias_double.
23919
23920 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23921 (libm_alias_double_r): Add semicolon after weak_alias call.
23922
23923 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23924
23925 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23926 (ceil): Define using libm_alias_double.
23927 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23928 (floor): Define using libm_alias_double.
23929 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23930 (fma): Define using libm_alias_double.
23931 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23932 (fmax): Define using libm_alias_double.
23933 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23934 (fmin): Define using libm_alias_double.
23935 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23936 (llrint): Define using libm_alias_double.
23937 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23938 (llround): Define using libm_alias_double.
23939 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23940 (lrint): Define using libm_alias_double.
23941 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23942 (lround): Define using libm_alias_double.
23943 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23944 (nearbyint): Define using libm_alias_double.
23945 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23946 (rint): Define using libm_alias_double.
23947 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23948 (round): Define using libm_alias_double.
23949 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23950 (trunc): Define using libm_alias_double.
23951
23952 2017-11-27 Florian Weimer <fweimer@redhat.com>
23953
23954 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23955 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23956 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23957 (tests): Add tst-mlock2.
23958 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23959 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23960 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23961 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23962 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23963 for mlock. Document mlock2.
23964
23965 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23966
23967 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23968 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23969 Likewise.
23970 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23971 Likewise.
23972 * sysdeps/x86/Makeconfig: New file.
23973 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23974 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23975 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23976 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23977 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23978 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23979 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23980 Likewise.
23981 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23982 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23983 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23984 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23985 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23986 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23987 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23988 * manual/math.texi (Mathematics): Document support for _Float64x.
23989 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23990 * stdlib/Versions (GLIBC_2.27): Likewise.
23991 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23992 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23993 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23994 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23995 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23996 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23997 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23998 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23999 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
24000 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24001 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24002 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
24004 Likewise.
24005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
24006 Likewise.
24007 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24008 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24009 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24010 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24011 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24012 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24014 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24015 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
24016 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
24017 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
24018 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
24019 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
24020 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24021
24022 2017-11-27 Andreas Schwab <schwab@suse.de>
24023
24024 * elf/Makefile (dl-routines): Add dl-sort-maps.
24025 * elf/dl-sort-maps.c: New file.
24026 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
24027 (_dl_sort_maps): Declare.
24028 * elf/dl-fini.c (_dl_sort_fini): Remove.
24029 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
24030 * elf/dl-close.c (_dl_close_worker): Likewise.
24031 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
24032 open-coding it.
24033 * elf/dl-open.c (dl_open_worker): Likewise.
24034
24035 2017-11-24 Joseph Myers <joseph@codesourcery.com>
24036
24037 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
24038 using libm_alias_float128.
24039 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
24040 Likewise.
24041 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
24042 Likewise.
24043 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
24044 (setpayloadsigf128): Likewise.
24045 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
24046 Likewise.
24047 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
24048 Likewise.
24049
24050 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
24051 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
24052 -mfloat128 to CFLAGS.
24053 ($(foreach
24054 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
24055 Likewise.
24056 (CFLAGS-libm-test-support-float64x.c): New variable.
24057 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
24058 $(f128-loader-link) to gnulib-tests.
24059
24060 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
24061 (libm_alias_float128_other_r): If
24062 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
24063 alias.
24064 (libm_alias_float128_r): Add semicolon after weak_alias call.
24065 * sysdeps/generic/libm-alias-ldouble.h
24066 (libm_alias_ldouble_other_r_f128): New macro.
24067 (libm_alias_ldouble_other_r_f64x): Likewise.
24068 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24069 and libm_alias_ldouble_other_r_f64x.
24070 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
24071 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
24072 (libm_alias_ldouble_other_r_f128): New macro.
24073 (libm_alias_ldouble_other_r_f64x): Likewise.
24074 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
24075 and libm_alias_ldouble_other_r_f64x.
24076
24077 * stdlib/strfroml.c: Always include <stdlib.h>.
24078 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
24079 undefine as macro and define as weak alias.
24080 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
24081 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
24082 <stdlib.h>.
24083 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
24084 Define and later undefine as macro and define as weak alias.
24085
24086 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24087 Define and later undefine as macro. Define as weak alias if
24088 [!USE_WIDE_CHAR].
24089 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
24090 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24091 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
24092 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
24093 Define and later undefine as macro. Define as weak alias if
24094 [!USE_WIDE_CHAR].
24095 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
24096 Define and later undefine as macro. Define as weak alias if
24097 [USE_WIDE_CHAR].
24098 * sysdeps/ieee754/float128/strtof128_l.c
24099 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
24100 Define and later undefine as macro. Define as weak alias if
24101 [!USE_WIDE_CHAR].
24102 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
24103 Define and later undefine as macro. Define as weak alias if
24104 [USE_WIDE_CHAR].
24105 * sysdeps/ieee754/ldbl-128/strtold_l.c
24106 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24107 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24108 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24109 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24110 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
24111 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24112 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24113 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24114 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24115 * sysdeps/ieee754/ldbl-96/strtold_l.c
24116 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
24117 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24118 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
24119 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
24120
24121 * math/test-float64x.h: New file.
24122 * math/Makefile (type-float64x-yes): New variable.
24123 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
24124
24125 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
24126 function-like macro.
24127 (min_of_type_): Likewise.
24128 (min_of_type_l): Likewise.
24129 (min_of_type_f128): Likewise.
24130 (min_of_type): Pass () as last argument of __MATH_TG.
24131
24132 * stdlib/tst-strtod-round-skeleton.c
24133 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
24134 headers.
24135
24136 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
24137 for combinations of long double with _Float64 and _Float64x.
24138
24139 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
24140 (__DECL_SIMD_cosf32): Likewise.
24141 (__DECL_SIMD_cosf64): Likewise.
24142 (__DECL_SIMD_cosf32x): Likewise.
24143 (__DECL_SIMD_cosf64x): Likewise.
24144 (__DECL_SIMD_cosf128x): Likewise.
24145 (__DECL_SIMD_sinf16): Likewise.
24146 (__DECL_SIMD_sinf32): Likewise.
24147 (__DECL_SIMD_sinf64): Likewise.
24148 (__DECL_SIMD_sinf32x): Likewise.
24149 (__DECL_SIMD_sinf64x): Likewise.
24150 (__DECL_SIMD_sinf128x): Likewise.
24151 (__DECL_SIMD_sincosf16): Likewise.
24152 (__DECL_SIMD_sincosf32): Likewise.
24153 (__DECL_SIMD_sincosf64): Likewise.
24154 (__DECL_SIMD_sincosf32x): Likewise.
24155 (__DECL_SIMD_sincosf64x): Likewise.
24156 (__DECL_SIMD_sincosf128x): Likewise.
24157 (__DECL_SIMD_logf16): Likewise.
24158 (__DECL_SIMD_logf32): Likewise.
24159 (__DECL_SIMD_logf64): Likewise.
24160 (__DECL_SIMD_logf32x): Likewise.
24161 (__DECL_SIMD_logf64x): Likewise.
24162 (__DECL_SIMD_logf128x): Likewise.
24163 (__DECL_SIMD_expf16): Likewise.
24164 (__DECL_SIMD_expf32): Likewise.
24165 (__DECL_SIMD_expf64): Likewise.
24166 (__DECL_SIMD_expf32x): Likewise.
24167 (__DECL_SIMD_expf64x): Likewise.
24168 (__DECL_SIMD_expf128x): Likewise.
24169 (__DECL_SIMD_powf16): Likewise.
24170 (__DECL_SIMD_powf32): Likewise.
24171 (__DECL_SIMD_powf64): Likewise.
24172 (__DECL_SIMD_powf32x): Likewise.
24173 (__DECL_SIMD_powf64x): Likewise.
24174 (__DECL_SIMD_powf128x): Likewise.
24175
24176 * stdlib/Versions (libc): Move entries for wcstof128 and
24177 wcstof128_l to ....
24178 * wcsmbs/Versions (libc): ... here.
24179 Include <float128-abi.h>.
24180
24181 2017-11-24 Florian Weimer <fweimer@redhat.com>
24182
24183 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24184 bits/mman-shared.h.
24185 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24186 <bits/mman-shared.h>.
24187 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24188 to ...
24189 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24190 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24191 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24192 <bits/mman-shared.h>.
24193
24194 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24195
24196 [BZ #22457]
24197 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24198 posix_memalign/free.
24199 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24200
24201 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24202
24203 [BZ #22469]
24204 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24205 and implement the collation rules for pl from CLDR on top of that.
24206 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24207 of locales to be built for testing.
24208 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24209
24210 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24211
24212 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24213 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24214 libm_alias_ldouble_other.
24215 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24216 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24217 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24218 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24219 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24220 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24221 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24222 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24223 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24224 libm_alias_ldouble_r.
24225 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24226 libm_alias_ldouble_other.
24227 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24228 (log10l): Likewise.
24229 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24230 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24231 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24232 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24233 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24234 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24235 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24236 (atan2l): Likewise.
24237 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24238 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24239 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24240 libm_alias_ldouble.
24241 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24242 (cosl): Likewise.
24243 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24244 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24245 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24246 (expl): Likewise.
24247 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24248 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24249 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24250 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24251 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24252 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24253 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24254 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24255 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24256 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24257 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24258 libm_alias_ldouble.
24259 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24260 libm_alias_ldouble_other.
24261 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24262 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24263 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24264 libm_alias_ldouble.
24265 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24266 libm_alias_ldouble_other.
24267 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24268 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24269 * sysdeps/ia64/fpu/w_lgammal_main.c
24270 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24271 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24272
24273 2017-11-23 Florian Weimer <fweimer@redhat.com>
24274
24275 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24276 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24277 alike. Remove freeres marker.
24278 * malloc/arena.c (arena_thread_freeres): Call
24279 tcache_thread_shutdown.
24280
24281 2017-11-23 Florian Weimer <fweimer@redhat.com>
24282
24283 [BZ #22459]
24284 Export nscd hash function as __nss_hash.
24285 * include/nss.h (__nss_hash): Declare.
24286 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24287 symbol.
24288 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24289 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24290 of __nscd_hash.
24291 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24292 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24293 * nss/Makefiles (routines): Add nss_hash.
24294 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24295 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24296 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24297 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24298
24299 2017-11-23 Florian Weimer <fweimer@redhat.com>
24300
24301 [BZ #22478]
24302 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24303 Return error code, not -1.
24304 * signal/tst-sigwait-eintr.c: New file.
24305 * signal/Makefile (tests): Add tst-sigwait-eintr.
24306
24307 2017-11-23 Florian Weimer <fweimer@redhat.com>
24308
24309 Linux: Add memfd_create system call wrapper
24310 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24311 tst-memfd_create.
24312 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24313 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24314 [__USE_GNU] (memfd_create): Declare.
24315 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24316 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24317 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24318 * sysdeps/unix/sysv/linux/**.abilist: Update.
24319 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24320
24321 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24322
24323 * localedata/gen-locale.sh: Fix typo in variable name.
24324
24325 * resolv/res_debug.c (p_secstodate): Condition definition on
24326 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24327 directly as __p_secstodate, and as a compat symbol. Do not use
24328 libresolv_hidden_def.
24329 * resolv/resolv.h (p_secstodate): Remove macro and function
24330 declaration.
24331 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24332 using p_secstodate.
24333 * include/resolv.h (__p_secstodate): Do not use
24334 libresolv_hidden_proto.
24335 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24336 (tests-internal): ... here.
24337 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24338 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24339 and declare and use __p_secstodate and use compat_symbol_reference
24340 in that case.
24341 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24342 implementation returning 77.
24343
24344 [BZ #22463]
24345 * resolv/res_debug.c: Include <libc-diag.h>.
24346 (p_secstodate): Assert time_t at least as wide as u_long. On
24347 overflow, use integer seconds since the epoch as output, or use
24348 "<overflow>" as output and set errno to EOVERFLOW if integer
24349 seconds since the epoch would be 14 or more characters.
24350 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24351 for sprintf call.
24352 * resolv/tst-p_secstodate.c: New file.
24353 * resolv/Makefile (tests): Add tst-p_secstodate.
24354 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24355
24356 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24357 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24358 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24359
24360 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24361
24362 * posix/regcomp.c (init_word_char): Add comments.
24363
24364 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24365
24366 [BZ #22447]
24367 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24368 strlen to compute length of ut_user and set trailing NUL byte of
24369 result explicitly.
24370
24371 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24372
24373 [BZ #15537]
24374 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24375 using “copy "iso14651_t1"” and then implementing the
24376 collation rules for lv from CLDR on top of that.
24377 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24378 of locales to be built for testing.
24379 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24380 sorting.
24381
24382 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24383
24384 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24385 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24386 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24387 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24388 [__USE_MISC] (MADV_HWPOISON): New macro.
24389 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24390
24391 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24392
24393 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24394 -Wmissing-braces on GCC 4.9.
24395
24396 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24397
24398 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24399 * sysdeps/s390/s390-32/start.S (_start): Likewise
24400 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24401 (thread_start): Likewise.
24402 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24403 (thread_start): Likewise.
24404 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24405 (__makecontext_ret): Likewise.
24406 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24407 (__makecontext_ret): Likewise.
24408
24409 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24410
24411 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24412 __wcschrnul): Remove attribute_hidden.
24413
24414 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24415
24416 regex: don't assume uint64_t or uint32_t
24417 This avoids -Werror=overflow errors for 32-bit systems in
24418 the 64-bit case. Problem reported by Joseph Myers in:
24419 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24420 Also, when this code is used in Gnulib it ports to platforms
24421 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24422 them, and on some 32-bit compilers there is no uint64_t.
24423 Problem reported by Gianluigi Tiesi in:
24424 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24425 * posix/regcomp.c (init_word_char): Don't assume that the types
24426 uint64_t and uint32_t exist. Adapted from Gnulib patch
24427 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24428 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24429
24430 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24431
24432 * sysdeps/aarch64/memset-reg.h: New file.
24433 * sysdeps/aarch64/memset.S: Use it.
24434 (__memset): Rename to MEMSET macro.
24435 [ZVA_MACRO]: Use zva_macro.
24436 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24437 Add memset_generic and memset_falkor.
24438 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24439 (__libc_ifunc_impl_list): Add memset ifuncs.
24440 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24441 local variable zva_size.
24442 * sysdeps/aarch64/multiarch/memset.c: New file.
24443 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24444 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24445 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24446 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24447 (DCZID_DZP_MASK): New macro.
24448 (DCZID_BS_MASK): Likewise.
24449 (init_cpu_features): Read and set zva_size.
24450 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24451 (struct cpu_features): New member zva_size.
24452
24453 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24454 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24455 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24456
24457 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24458 backwards. Fix timing computation.
24459 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24460 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24461 on memset by N at a time. Fix timing computation.
24462
24463 2017-11-20 Florian Weimer <fweimer@redhat.com>
24464
24465 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24466 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24467
24468 2017-11-19 Florian Weimer <fweimer@redhat.com>
24469
24470 manual: Document mprotect
24471 * manual/memory.texi (Memory Protection): New section.
24472 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24473 documentation of PROT_* flags and reference the Memory Protection
24474 section instead.
24475
24476 2017-11-19 Florian Weimer <fweimer@redhat.com>
24477
24478 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24479 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24480 (Scatter-Gather): ... to here. Remove misleading comment.
24481
24482 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24483
24484 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24485 style.
24486
24487 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24488 when /proc/<pid>/setgroups does not exist.
24489
24490 2017-11-18 Florian Weimer <fweimer@redhat.com>
24491
24492 * sysdeps/unix/sysv/linux/tst-ttyname.c
24493 (become_root_in_mount_ns): Remove.
24494 (do_in_chroot_1): Call support_enter_mount_namespace.
24495 (do_in_chroot_2): Likewise.
24496 (do_test): Call support_become_root early.
24497
24498 2017-11-18 Florian Weimer <fweimer@redhat.com>
24499
24500 * support/namespace.h (support_enter_mount_namespace): Declare.
24501 * support/support_enter_mount_namespace.c: New file.
24502 * support/Makefile (libsupport-routines): Add
24503 support_enter_mount_namespace.
24504
24505 2017-11-18 Florian Weimer <fweimer@redhat.com>
24506
24507 * support/temp_file.c (support_create_temp_directory): Use
24508 test_dir and do not rely on the presence of the XXXXXX suffix.
24509 * support/temp_file.h (support_create_temp_directory): Update
24510 comment.
24511 * support/tst-xreadlink.c (do_test): Adjust.
24512 * support/support_chroot.c (support_chroot_create): Likewise.
24513
24514 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24515
24516 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24517 macro.
24518 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24519 htm-no-suspend.
24520
24521 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24522
24523 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24524 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24525 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24526 (ceill): Define using libm_alias_ldouble.
24527 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24528 <libm-alias-ldouble.h>.
24529 (copysignl): Define using libm_alias_ldouble.
24530 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24531 (fabsl): Define using libm_alias_ldouble.
24532 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24533 (floorl): Define using libm_alias_ldouble.
24534 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24535 (fmaxl): Define using libm_alias_ldouble.
24536 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24537 (fminl): Define using libm_alias_ldouble.
24538 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24539 (llrintl): Define using libm_alias_ldouble.
24540 (lrintl): Likewise.
24541 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24542 <libm-alias-ldouble.h>.
24543 (nearbyintl): Define using libm_alias_ldouble.
24544 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24545 (truncl): Define using libm_alias_ldouble.
24546 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24547 <libm-alias-ldouble.h>.
24548 (lrintl): Define using libm_alias_ldouble.
24549
24550 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24551 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24552 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24553 (asinhl): Define using libm_alias_ldouble.
24554 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24555 (atanl): Define using libm_alias_ldouble.
24556 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24557 (cbrtl): Define using libm_alias_ldouble.
24558 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24559 (ceill): Define using libm_alias_ldouble.
24560 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24561 (copysignl): Define using libm_alias_ldouble.
24562 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24563 (fabsl): Define using libm_alias_ldouble.
24564 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24565 (floorl): Define using libm_alias_ldouble.
24566 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24567 (fmaxl): Define using libm_alias_ldouble.
24568 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24569 (fminl): Define using libm_alias_ldouble.
24570 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24571 (frexpl): Define using libm_alias_ldouble.
24572 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24573 (llrintl): Define using libm_alias_ldouble.
24574 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24575 (logbl): Define using libm_alias_ldouble.
24576 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24577 (lrintl): Define using libm_alias_ldouble.
24578 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24579 (nearbyintl): Define using libm_alias_ldouble.
24580 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24581 (nextafterl): Define using libm_alias_ldouble.
24582 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24583 (remquol): Define using libm_alias_ldouble.
24584 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24585 (rintl): Define using libm_alias_ldouble.
24586 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24587 (truncl): Define using libm_alias_ldouble.
24588 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24589 (fmaxl): Define using libm_alias_ldouble.
24590 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24591 (fminl): Define using libm_alias_ldouble.
24592
24593 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24594 to C syntax instead of availability and properties of types.
24595 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24596 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24597 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24598 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24599 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24600 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24601
24602 2017-11-17 Florian Weimer <fweimer@redhat.com>
24603
24604 support_become_root: Enable file creation in namespaces.
24605 * support/support_become_root.c (setup_mapping): New function.
24606 (support_become_root): Call it.
24607
24608 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24609
24610 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24611 macro.
24612
24613 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24614
24615 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24616 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24617
24618 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24619
24620 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24621
24622 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24623 version to 4.14.
24624
24625 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24626
24627 * INSTALL: Fix botched up regeneration.
24628
24629 * NEWS: Update sourceare link to https.
24630 * configure.ac: Likewise.
24631 * crypt/md5test-giant.c: Likewise.
24632 * dlfcn/bug-atexit1.c: Likewise.
24633 * dlfcn/bug-atexit2.c: Likewise.
24634 * localedata/README: Likewise.
24635 * malloc/tst-mallocfork.c: Likewise.
24636 * manual/install.texi: Likewise.
24637 * nptl/tst-pthread-getattr.c: Likewise.
24638 * stdio-common/tst-fgets.c: Likewise.
24639 * stdio-common/tst-fwrite.c: Likewise.
24640 * sunrpc/Makefile: Likewise.
24641 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24642 * wcsmbs/tst-mbrtowc2.c: Likewise.
24643 * configure: Regenerate.
24644 * INSTALL: Regenerate.
24645
24646 2017-11-15 Martin Sebor <msebor@redhat.com>
24647
24648 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24649 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24650 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24651
24652 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24653
24654 [BZ #22145]
24655 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24656 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24657
24658 [BZ #22145]
24659 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24660 Defer is_pty check until end of the function.
24661 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24662
24663 [BZ #22145]
24664 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24665 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24666 (ttyname): Likewise.
24667 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24668 (__ttyname_r): Likewise.
24669
24670 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24671 int to bool.
24672
24673 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24674
24675 * manual/terminal.texi (Is It a Terminal):
24676 Mention ENODEV for ttyname and ttyname_r.
24677
24678 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24679
24680 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24681 constant and macro.
24682
24683 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24684 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24685 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24686 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24687 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24688 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24689
24690 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24691
24692 * signal/sigrelse.c (sigrelse): Optimize implementation.
24693
24694 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24695 (__sigpause): Rely on __sigsuspend to implement single thread
24696 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24697
24698 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24699
24700 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24701 kernel version to 4.14.
24702
24703 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24704
24705 [BZ #22442]
24706 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24707 Check if ifname is too long.
24708
24709 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24710
24711 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24712
24713 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24714
24715 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24716 was accidentally lost.
24717
24718 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24719
24720 * localedata/locales/az_IR: Add standard copyright header.
24721
24722 2017-11-15 Florian Weimer <fweimer@redhat.com>
24723
24724 [BZ #22439]
24725 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24726 not just the top one. Output a new "subheaps" statistic.
24727
24728 2017-11-15 Florian Weimer <fweimer@redhat.com>
24729
24730 [BZ #22408]
24731 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24732 under the per-arena lock.
24733 * malloc/Makefile (tests): Add tst-malloc_info.
24734 (tst-malloc_info): Link with libpthread.
24735 * malloc/tst-malloc_info.c: New file.
24736
24737 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24738
24739 [BZ #21660]
24740 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24741 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24742 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24743 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24744 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24745 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24746 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24747 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24748 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24749 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24750 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24751 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24752 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24753 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24754 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24755 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24756 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24757 (__floating_type): Likewise.
24758 (__real_integer_type): Likewise.
24759 (__complex_integer_type): Likewise.
24760 (__expr_is_real): Likewise.
24761 (__tgmath_real_type_sub): Likewise.
24762 (__tgmath_real_type): Likewise.
24763 (__tgmath_complex_type_sub): Likewise.
24764 (__tgmath_complex_type): Likewise.
24765 (__TGMATH_F128): Likewise.
24766 (__TGMATH_CF128): Likewise.
24767 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24768 new macros.
24769 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24770 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24771 Likewise.
24772 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24773 Likewise.
24774 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24775 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24776 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24777 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24778 Likewise.
24779 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24780 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24781 Likewise.
24782 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24783 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24784 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24785 Likewise.
24786 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24787 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24788 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24789 (cimag): Likewise.
24790 (creal): Likewise.
24791
24792 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24793
24794 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24795 for stpncpy calls for GCC 8.
24796 (test_strncat): Disable -Wstringop-truncation warning for strncat
24797 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24798 strncat call for GCC 7.
24799 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24800 calls for GCC 8.
24801 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24802 trailing NUL.
24803
24804 * string/bug-strncat1.c: Include <libc-diag.h>.
24805 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24806
24807 2017-11-13 Claude Paroz <claude@2xlibre.net>
24808
24809 [BZ #22387]
24810 * localedata/locales/aa_DJ: Improved readibility by replacing
24811 <Uxxxx> sequences in the ASCII printable range by their ASCII
24812 character equivalents.
24813 * localedata/locales/aa_ER: Likewise.
24814 * localedata/locales/aa_ER@saaho: Likewise.
24815 * localedata/locales/aa_ET: Likewise.
24816 * localedata/locales/af_ZA: Likewise.
24817 * localedata/locales/agr_PE: Likewise.
24818 * localedata/locales/ak_GH: Likewise.
24819 * localedata/locales/am_ET: Likewise.
24820 * localedata/locales/anp_IN: Likewise.
24821 * localedata/locales/ar_AE: Likewise.
24822 * localedata/locales/ar_BH: Likewise.
24823 * localedata/locales/ar_DZ: Likewise.
24824 * localedata/locales/ar_EG: Likewise.
24825 * localedata/locales/ar_IN: Likewise.
24826 * localedata/locales/ar_IQ: Likewise.
24827 * localedata/locales/ar_JO: Likewise.
24828 * localedata/locales/ar_KW: Likewise.
24829 * localedata/locales/ar_LB: Likewise.
24830 * localedata/locales/ar_LY: Likewise.
24831 * localedata/locales/ar_MA: Likewise.
24832 * localedata/locales/ar_OM: Likewise.
24833 * localedata/locales/ar_QA: Likewise.
24834 * localedata/locales/ar_SA: Likewise.
24835 * localedata/locales/ar_SD: Likewise.
24836 * localedata/locales/ar_SS: Likewise.
24837 * localedata/locales/ar_SY: Likewise.
24838 * localedata/locales/ar_TN: Likewise.
24839 * localedata/locales/ar_YE: Likewise.
24840 * localedata/locales/as_IN: Likewise.
24841 * localedata/locales/ast_ES: Likewise.
24842 * localedata/locales/ayc_PE: Likewise.
24843 * localedata/locales/az_AZ: Likewise.
24844 * localedata/locales/az_IR: Likewise.
24845 * localedata/locales/be_BY: Likewise.
24846 * localedata/locales/be_BY@latin: Likewise.
24847 * localedata/locales/bem_ZM: Likewise.
24848 * localedata/locales/ber_DZ: Likewise.
24849 * localedata/locales/ber_MA: Likewise.
24850 * localedata/locales/bg_BG: Likewise.
24851 * localedata/locales/bhb_IN: Likewise.
24852 * localedata/locales/bho_IN: Likewise.
24853 * localedata/locales/bi_VU: Likewise.
24854 * localedata/locales/bn_BD: Likewise.
24855 * localedata/locales/bn_IN: Likewise.
24856 * localedata/locales/bo_CN: Likewise.
24857 * localedata/locales/bo_IN: Likewise.
24858 * localedata/locales/br_FR: Likewise.
24859 * localedata/locales/brx_IN: Likewise.
24860 * localedata/locales/bs_BA: Likewise.
24861 * localedata/locales/byn_ER: Likewise.
24862 * localedata/locales/ca_AD: Likewise.
24863 * localedata/locales/ca_ES: Likewise.
24864 * localedata/locales/ca_FR: Likewise.
24865 * localedata/locales/ca_IT: Likewise.
24866 * localedata/locales/ce_RU: Likewise.
24867 * localedata/locales/chr_US: Likewise.
24868 * localedata/locales/cmn_TW: Likewise.
24869 * localedata/locales/crh_UA: Likewise.
24870 * localedata/locales/cs_CZ: Likewise.
24871 * localedata/locales/csb_PL: Likewise.
24872 * localedata/locales/cv_RU: Likewise.
24873 * localedata/locales/cy_GB: Likewise.
24874 * localedata/locales/da_DK: Likewise.
24875 * localedata/locales/de_AT: Likewise.
24876 * localedata/locales/de_BE: Likewise.
24877 * localedata/locales/de_CH: Likewise.
24878 * localedata/locales/de_DE: Likewise.
24879 * localedata/locales/de_IT: Likewise.
24880 * localedata/locales/de_LI: Likewise.
24881 * localedata/locales/de_LU: Likewise.
24882 * localedata/locales/doi_IN: Likewise.
24883 * localedata/locales/dv_MV: Likewise.
24884 * localedata/locales/dz_BT: Likewise.
24885 * localedata/locales/el_CY: Likewise.
24886 * localedata/locales/el_GR: Likewise.
24887 * localedata/locales/en_AG: Likewise.
24888 * localedata/locales/en_AU: Likewise.
24889 * localedata/locales/en_BW: Likewise.
24890 * localedata/locales/en_CA: Likewise.
24891 * localedata/locales/en_DK: Likewise.
24892 * localedata/locales/en_GB: Likewise.
24893 * localedata/locales/en_HK: Likewise.
24894 * localedata/locales/en_IE: Likewise.
24895 * localedata/locales/en_IL: Likewise.
24896 * localedata/locales/en_IN: Likewise.
24897 * localedata/locales/en_NG: Likewise.
24898 * localedata/locales/en_NZ: Likewise.
24899 * localedata/locales/en_PH: Likewise.
24900 * localedata/locales/en_SG: Likewise.
24901 * localedata/locales/en_US: Likewise.
24902 * localedata/locales/en_ZA: Likewise.
24903 * localedata/locales/en_ZM: Likewise.
24904 * localedata/locales/en_ZW: Likewise.
24905 * localedata/locales/eo: Likewise.
24906 * localedata/locales/es_AR: Likewise.
24907 * localedata/locales/es_BO: Likewise.
24908 * localedata/locales/es_CL: Likewise.
24909 * localedata/locales/es_CO: Likewise.
24910 * localedata/locales/es_CR: Likewise.
24911 * localedata/locales/es_CU: Likewise.
24912 * localedata/locales/es_DO: Likewise.
24913 * localedata/locales/es_EC: Likewise.
24914 * localedata/locales/es_ES: Likewise.
24915 * localedata/locales/es_GT: Likewise.
24916 * localedata/locales/es_HN: Likewise.
24917 * localedata/locales/es_MX: Likewise.
24918 * localedata/locales/es_NI: Likewise.
24919 * localedata/locales/es_PA: Likewise.
24920 * localedata/locales/es_PE: Likewise.
24921 * localedata/locales/es_PR: Likewise.
24922 * localedata/locales/es_PY: Likewise.
24923 * localedata/locales/es_SV: Likewise.
24924 * localedata/locales/es_US: Likewise.
24925 * localedata/locales/es_UY: Likewise.
24926 * localedata/locales/es_VE: Likewise.
24927 * localedata/locales/et_EE: Likewise.
24928 * localedata/locales/eu_ES: Likewise.
24929 * localedata/locales/eu_ES@euro: Likewise.
24930 * localedata/locales/fa_IR: Likewise.
24931 * localedata/locales/ff_SN: Likewise.
24932 * localedata/locales/fi_FI: Likewise.
24933 * localedata/locales/fil_PH: Likewise.
24934 * localedata/locales/fo_FO: Likewise.
24935 * localedata/locales/fr_BE: Likewise.
24936 * localedata/locales/fr_CA: Likewise.
24937 * localedata/locales/fr_CH: Likewise.
24938 * localedata/locales/fr_FR: Likewise.
24939 * localedata/locales/fr_LU: Likewise.
24940 * localedata/locales/fur_IT: Likewise.
24941 * localedata/locales/fy_DE: Likewise.
24942 * localedata/locales/fy_NL: Likewise.
24943 * localedata/locales/ga_IE: Likewise.
24944 * localedata/locales/gd_GB: Likewise.
24945 * localedata/locales/gez_ER: Likewise.
24946 * localedata/locales/gez_ET: Likewise.
24947 * localedata/locales/gl_ES: Likewise.
24948 * localedata/locales/gu_IN: Likewise.
24949 * localedata/locales/gv_GB: Likewise.
24950 * localedata/locales/ha_NG: Likewise.
24951 * localedata/locales/hak_TW: Likewise.
24952 * localedata/locales/he_IL: Likewise.
24953 * localedata/locales/hi_IN: Likewise.
24954 * localedata/locales/hif_FJ: Likewise.
24955 * localedata/locales/hne_IN: Likewise.
24956 * localedata/locales/hr_HR: Likewise.
24957 * localedata/locales/hsb_DE: Likewise.
24958 * localedata/locales/ht_HT: Likewise.
24959 * localedata/locales/hu_HU: Likewise.
24960 * localedata/locales/hy_AM: Likewise.
24961 * localedata/locales/i18n: Likewise.
24962 * localedata/locales/ia_FR: Likewise.
24963 * localedata/locales/id_ID: Likewise.
24964 * localedata/locales/ig_NG: Likewise.
24965 * localedata/locales/ik_CA: Likewise.
24966 * localedata/locales/is_IS: Likewise.
24967 * localedata/locales/it_CH: Likewise.
24968 * localedata/locales/it_IT: Likewise.
24969 * localedata/locales/iu_CA: Likewise.
24970 * localedata/locales/ja_JP: Likewise.
24971 * localedata/locales/ka_GE: Likewise.
24972 * localedata/locales/kk_KZ: Likewise.
24973 * localedata/locales/kl_GL: Likewise.
24974 * localedata/locales/kn_IN: Likewise.
24975 * localedata/locales/ko_KR: Likewise.
24976 * localedata/locales/kok_IN: Likewise.
24977 * localedata/locales/ks_IN: Likewise.
24978 * localedata/locales/ks_IN@devanagari: Likewise.
24979 * localedata/locales/ku_TR: Likewise.
24980 * localedata/locales/kw_GB: Likewise.
24981 * localedata/locales/ky_KG: Likewise.
24982 * localedata/locales/lb_LU: Likewise.
24983 * localedata/locales/lg_UG: Likewise.
24984 * localedata/locales/li_BE: Likewise.
24985 * localedata/locales/li_NL: Likewise.
24986 * localedata/locales/lij_IT: Likewise.
24987 * localedata/locales/ln_CD: Likewise.
24988 * localedata/locales/lo_LA: Likewise.
24989 * localedata/locales/lt_LT: Likewise.
24990 * localedata/locales/lv_LV: Likewise.
24991 * localedata/locales/lzh_TW: Likewise.
24992 * localedata/locales/mag_IN: Likewise.
24993 * localedata/locales/mai_IN: Likewise.
24994 * localedata/locales/mg_MG: Likewise.
24995 * localedata/locales/mhr_RU: Likewise.
24996 * localedata/locales/mi_NZ: Likewise.
24997 * localedata/locales/mk_MK: Likewise.
24998 * localedata/locales/ml_IN: Likewise.
24999 * localedata/locales/mn_MN: Likewise.
25000 * localedata/locales/mni_IN: Likewise.
25001 * localedata/locales/mr_IN: Likewise.
25002 * localedata/locales/ms_MY: Likewise.
25003 * localedata/locales/mt_MT: Likewise.
25004 * localedata/locales/my_MM: Likewise.
25005 * localedata/locales/nan_TW: Likewise.
25006 * localedata/locales/nan_TW@latin: Likewise.
25007 * localedata/locales/nb_NO: Likewise.
25008 * localedata/locales/nds_DE: Likewise.
25009 * localedata/locales/nds_NL: Likewise.
25010 * localedata/locales/ne_NP: Likewise.
25011 * localedata/locales/nhn_MX: Likewise.
25012 * localedata/locales/niu_NU: Likewise.
25013 * localedata/locales/niu_NZ: Likewise.
25014 * localedata/locales/nl_AW: Likewise.
25015 * localedata/locales/nl_BE: Likewise.
25016 * localedata/locales/nl_NL: Likewise.
25017 * localedata/locales/nn_NO: Likewise.
25018 * localedata/locales/nr_ZA: Likewise.
25019 * localedata/locales/nso_ZA: Likewise.
25020 * localedata/locales/oc_FR: Likewise.
25021 * localedata/locales/om_ET: Likewise.
25022 * localedata/locales/om_KE: Likewise.
25023 * localedata/locales/or_IN: Likewise.
25024 * localedata/locales/os_RU: Likewise.
25025 * localedata/locales/pa_IN: Likewise.
25026 * localedata/locales/pa_PK: Likewise.
25027 * localedata/locales/pap_AW: Likewise.
25028 * localedata/locales/pap_CW: Likewise.
25029 * localedata/locales/pl_PL: Likewise.
25030 * localedata/locales/ps_AF: Likewise.
25031 * localedata/locales/pt_BR: Likewise.
25032 * localedata/locales/pt_PT: Likewise.
25033 * localedata/locales/quz_PE: Likewise.
25034 * localedata/locales/raj_IN: Likewise.
25035 * localedata/locales/ro_RO: Likewise.
25036 * localedata/locales/ru_RU: Likewise.
25037 * localedata/locales/ru_UA: Likewise.
25038 * localedata/locales/rw_RW: Likewise.
25039 * localedata/locales/sa_IN: Likewise.
25040 * localedata/locales/sat_IN: Likewise.
25041 * localedata/locales/sc_IT: Likewise.
25042 * localedata/locales/sd_IN: Likewise.
25043 * localedata/locales/sd_IN@devanagari: Likewise.
25044 * localedata/locales/se_NO: Likewise.
25045 * localedata/locales/sgs_LT: Likewise.
25046 * localedata/locales/shs_CA: Likewise.
25047 * localedata/locales/si_LK: Likewise.
25048 * localedata/locales/sid_ET: Likewise.
25049 * localedata/locales/sk_SK: Likewise.
25050 * localedata/locales/sl_SI: Likewise.
25051 * localedata/locales/sm_WS: Likewise.
25052 * localedata/locales/so_DJ: Likewise.
25053 * localedata/locales/so_ET: Likewise.
25054 * localedata/locales/so_KE: Likewise.
25055 * localedata/locales/so_SO: Likewise.
25056 * localedata/locales/sq_AL: Likewise.
25057 * localedata/locales/sq_MK: Likewise.
25058 * localedata/locales/sr_ME: Likewise.
25059 * localedata/locales/sr_RS: Likewise.
25060 * localedata/locales/sr_RS@latin: Likewise.
25061 * localedata/locales/ss_ZA: Likewise.
25062 * localedata/locales/st_ZA: Likewise.
25063 * localedata/locales/sv_FI: Likewise.
25064 * localedata/locales/sv_SE: Likewise.
25065 * localedata/locales/sw_KE: Likewise.
25066 * localedata/locales/sw_TZ: Likewise.
25067 * localedata/locales/szl_PL: Likewise.
25068 * localedata/locales/ta_IN: Likewise.
25069 * localedata/locales/ta_LK: Likewise.
25070 * localedata/locales/tcy_IN: Likewise.
25071 * localedata/locales/te_IN: Likewise.
25072 * localedata/locales/tg_TJ: Likewise.
25073 * localedata/locales/th_TH: Likewise.
25074 * localedata/locales/the_NP: Likewise.
25075 * localedata/locales/ti_ER: Likewise.
25076 * localedata/locales/ti_ET: Likewise.
25077 * localedata/locales/tig_ER: Likewise.
25078 * localedata/locales/tk_TM: Likewise.
25079 * localedata/locales/tl_PH: Likewise.
25080 * localedata/locales/tn_ZA: Likewise.
25081 * localedata/locales/to_TO: Likewise.
25082 * localedata/locales/tpi_PG: Likewise.
25083 * localedata/locales/tr_CY: Likewise.
25084 * localedata/locales/tr_TR: Likewise.
25085 * localedata/locales/ts_ZA: Likewise.
25086 * localedata/locales/tt_RU: Likewise.
25087 * localedata/locales/tt_RU@iqtelif: Likewise.
25088 * localedata/locales/ug_CN: Likewise.
25089 * localedata/locales/uk_UA: Likewise.
25090 * localedata/locales/unm_US: Likewise.
25091 * localedata/locales/ur_IN: Likewise.
25092 * localedata/locales/ur_PK: Likewise.
25093 * localedata/locales/uz_UZ: Likewise.
25094 * localedata/locales/uz_UZ@cyrillic: Likewise.
25095 * localedata/locales/ve_ZA: Likewise.
25096 * localedata/locales/vi_VN: Likewise.
25097 * localedata/locales/wa_BE: Likewise.
25098 * localedata/locales/wae_CH: Likewise.
25099 * localedata/locales/wal_ET: Likewise.
25100 * localedata/locales/wo_SN: Likewise.
25101 * localedata/locales/xh_ZA: Likewise.
25102 * localedata/locales/yi_US: Likewise.
25103 * localedata/locales/yo_NG: Likewise.
25104 * localedata/locales/yue_HK: Likewise.
25105 * localedata/locales/yuw_PG: Likewise.
25106 * localedata/locales/zh_CN: Likewise.
25107 * localedata/locales/zh_HK: Likewise.
25108 * localedata/locales/zh_SG: Likewise.
25109 * localedata/locales/zh_TW: Likewise.
25110 * localedata/locales/zu_ZA: Likewise.
25111
25112 2017-11-13 Florian Weimer <fweimer@redhat.com>
25113
25114 * support/next_to_fault.h, support/next_to_fault.c: New files.
25115 * support/Makefile (libsupport-routines): Add next_to_fault.
25116 * resolv/tst-inet_pton.c (struct next_to_fault)
25117 (next_to_fault_allocate, next_to_fault_free): Remove.
25118 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
25119
25120 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
25121
25122 * elf/dl-support.c: Include <dl-procruntime.c>.
25123 * include/link.h: Include <link_map.h>.
25124 * sysdeps/generic/dl-procruntime.c: New file.
25125 * sysdeps/generic/link_map.h: Likewise.
25126 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
25127 the writable ld.so namespace.
25128
25129 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
25130
25131 timezone: pacify GCC -Wstringop-truncation
25132 Problem reported by Martin Sebor in:
25133 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
25134 * timezone/zic.c (writezone): Use memcpy, not strncpy.
25135
25136 2017-11-12 Florian Weimer <fweimer@redhat.com>
25137
25138 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
25139 tst-xreadlink.
25140 (tests): Add tst-xreadlink.
25141 * support/support.h (xstrndup): Declare.
25142 * support/xunistd.h (xunlink, xreadlink): Declare.
25143 * support/temp_file.h (support_create_temp_directory): Declare.
25144 * support/temp_file.c (support_create_temp_directory): New function.
25145 * support/support_chroot.c (support_chroot_create): Use it.
25146 * support/xreadlink.c: New file.
25147 * support/xstrndup.c: Likewise.
25148 * support/xunlink.c: Likewise.
25149 * support/tst-xreadlink.c: Likewise.
25150
25151 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25152
25153 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25154
25155 2017-11-11 Florian Weimer <fweimer@redhat.com>
25156
25157 [BZ #22409]
25158 [BZ #22412]
25159 * resolv/res_comp.c (printable_string, binary_hnok)
25160 (binary_leading_dash): New functions.
25161 (res_hnok): Reimplement using these functions and ns_name_pton.
25162 (res_ownok): Likewise.
25163 (res_mailok): Reimplement using printable_string, ns_name_pton and
25164 binary_hnok.
25165 (res_dnok): Reimplement using printable_string and ns_name_pton.
25166 * resolv/tst-res_hnok.c (tests): Add additional tests.
25167 (LETTERDIGITS, PRINTABLE): Define.
25168 (do_test): Adjust one_char results.
25169
25170 2017-11-11 Florian Weimer <fweimer@redhat.com>
25171
25172 [BZ #22413]
25173 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25174 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25175
25176 2017-11-11 Florian Weimer <fweimer@redhat.com>
25177
25178 * resolv/tst-ns_name_pton.c: New file.
25179 * resolv/Makefile (tests): Add tst-ns_name_pton.
25180 (tst-ns_name_pton): Link against libresolv.
25181
25182 2017-11-11 Florian Weimer <fweimer@redhat.com>
25183
25184 * resolv/tst-res_hnok.c: New file.
25185 * resolv/Makefile (tests): Add tst-res_hnok.
25186 (tst-res_hnok): Link against libresolv.
25187
25188 2017-11-11 Florian Weimer <fweimer@redhat.com>
25189
25190 * resolv/tst-resolv-network.c: Use test framework instead explicit
25191 main function.
25192
25193 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25194
25195 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25196 <jmp_buf-macros.h>.
25197 [!_ISOMAC] (STR_HELPER): New.
25198 [!_ISOMAC] (STR): Likewise.
25199 [!_ISOMAC] (TEST_SIZE): Likewise.
25200 [!_ISOMAC] (TEST_ALIGN): Likewise.
25201 [!_ISOMAC] (TEST_OFFSET): Likewise.
25202 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25203 field offsets of jmp_buf as well as sigjmp_buf.
25204 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25205 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25206 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25207 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25208 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25209 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25210 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25211 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25212 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25213 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25214 Likewise.
25215 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25216 Likewise.
25217 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25218 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25219 Likewise.
25220 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25221 Likewise.
25222 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25223 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25224 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25225 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25226 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25227 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25228 Likewise.
25229 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25230 Likewise.
25231 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25232 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25233 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25234
25235 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25236
25237 * include/float.h
25238 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25239 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25240 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25241 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25242 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25243 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25244 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25245 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25246 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25247 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25248 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25249 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25250 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25251 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25252 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25253 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25254 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25255 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25256 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25257 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25258 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25259 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25260 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25261 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25262 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25263 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25264 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25265 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25266 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25267 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25268 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25269 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25270 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25271 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25272 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25273 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25274 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25275 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25276 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25277 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25278 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25279 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25280 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25281 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25282 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25283 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25284 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25285 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25286 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25287 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25288 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25289 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25290 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25291 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25292 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25293 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25294 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25295 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25296 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25297 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25298 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25299 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25300 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25301 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25302 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25303 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25304 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25305 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25306 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25307 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25308 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25309 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25310 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25311 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25312 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25313 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25314 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25315 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25316 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25317 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25318 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25319 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25320 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25321 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25322 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25323 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25324 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25325 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25326
25327 * stdlib/tst-strtod.h (F16): New macro.
25328 (F32): Likewise.
25329 (F64): Likewise.
25330 (F32X): Likewise.
25331 (F64X): Likewise.
25332 (F128X): Likewise.
25333 (IF_FLOAT16): Likewise.
25334 (IF_FLOAT32): Likewise.
25335 (IF_FLOAT64): Likewise.
25336 (IF_FLOAT32X): Likewise.
25337 (IF_FLOAT64X): Likewise.
25338 (IF_FLOAT128X): Likewise.
25339 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25340 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25341 (STRTOD_TEST_FOREACH): Likewise.
25342 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25343 (CHOOSE_f64): Likewise.
25344 (CHOOSE_f32x): Likewise.
25345 (CHOOSE_f64x): Likewise.
25346
25347 2017-11-07 Andreas Schwab <schwab@suse.de>
25348
25349 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25350
25351 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25352
25353 [BZ #22403]
25354 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25355 to be escaped.
25356 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25357 to be escaped.
25358
25359 2017-11-07 Claude Paroz <claude@2xlibre.net>
25360
25361 [BZ #22403]
25362 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25363 to be escaped.
25364 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25365 to be escaped.
25366 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25367 to be escaped.
25368
25369 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25370
25371 [BZ #22298]
25372 * nptl/allocatestack.c (allocate_stack): Check if
25373 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25374 __PTHREAD_MUTEX_HAVE_PREV is defined.
25375 * nptl/descr.h (pthread): Likewise.
25376 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25377 Likewise.
25378 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25379 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25380 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25381 * sysdeps/nptl/bits/thread-shared-types.h
25382 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25383 defines.
25384 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25385 of __WORDSIZE for internal layout.
25386 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25387 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25388 instead of __WORDSIZE whether to use an union for __spins and __list
25389 fields.
25390 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25391 case.
25392 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25393 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25394 defines.
25395 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25396 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25397 Likewise.
25398 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25399 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25400 Likewise.
25401 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25402 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25403 Likewise.
25404 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25405 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25406 Likewise.
25407 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25408 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25409 Likewise.
25410 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25411 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25412 Likewise.
25413 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25414 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25415 Likewise.
25416 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25417 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25418 Likewise.
25419 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25420 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25421 Likewise.
25422 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25423 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25424 Likewise.
25425 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25426 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25427 Likewise.
25428 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25429 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25430 Likewise.
25431 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25432 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25433 Likewise.
25434 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25435 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25436 Likewise.
25437
25438 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25439 New macros.
25440 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25441 checks for expected input type size.
25442 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25443 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25444 Likewise.
25445 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25446 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25447 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25448 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25449 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25450 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25451 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25452 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25453 superflous runtime assert check.
25454 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25455 Likewise.
25456 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25457 Likewise.
25458 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25459 Likewise.
25460 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25461 Likewise.
25462 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25463 Likewise.
25464 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25465 Likewise.
25466 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25467 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25468 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25469 Likewise.
25470 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25471 Likewise.
25472 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25473 Likewise.
25474 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25475 Likewise.
25476 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25477 Likewise.
25478 * nptl/pthread_attr_setinheritsched.c
25479 (__pthread_attr_setinheritsched): Likewise.
25480 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25481 Likewise.
25482 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25483 Likewise.
25484 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25485 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25486 __old_pthread_attr_setstack): Likewise.
25487 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25488 Likewise.
25489 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25490 Likewise.
25491 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25492 Likewise.
25493 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25494 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25495 Likewise.
25496 * nptl/tst-typesizes.c: Remove file.
25497
25498 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25499 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25500 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25501 checks for internal pthread_mutex_t offsets.
25502 * sysdeps/aarch64/nptl/pthread-offsets.h
25503 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25504 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25505 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25506 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25507 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25508 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25509 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25510 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25511 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25512 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25513 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25514 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25515 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25516 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25517 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25518 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25519 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25520 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25521
25522 2017-11-07 Florian Weimer <fweimer@redhat.com>
25523
25524 * bits/mman-linux.h: Move ...
25525 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25526 comment.
25527 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25528 outdated comment.
25529
25530 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25531
25532 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25533 Redefine STRNLEN as __strnlen_power8.
25534
25535 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25536
25537 * signal/sighold.c (sighold): Optimize implementation.
25538
25539 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25540 __NR_rt_sigqueueinfo.
25541
25542 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25543 __sigtimedwait.
25544 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25545 assume __NR_rt_sigtimedwait.
25546 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25547 and add LIBC_CANCEL_HANDLED for cancellation marking.
25548 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25549
25550 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25551 (sysdeps_routines): Add memchr_noneon.
25552 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25553 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25554 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25555 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25556 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25557 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25558 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25559
25560 * sysdeps/arm/arm-ifunc.h: New file.
25561 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25562 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25563 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25564 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25565 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25566 (__memcpy_neon): Avoid create hidden alias.
25567 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25568 (__memcpy_vfp): Likewise.
25569 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25570 (sysdep_routines): Add memcpy_arm.
25571 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25572
25573 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25574
25575 [BZ #22362]
25576 * Makerules (make-link-multidir): New.
25577 * config.make.in (multidir): New.
25578 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25579 * configure: Regenerated.
25580 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25581 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25582 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25583 New target.
25584
25585 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25586
25587 [BZ #22402]
25588 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25589 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25590
25591 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25592
25593 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25594 to be escaped.
25595
25596 2017-11-04 Florian Weimer <fweimer@redhat.com>
25597
25598 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25599
25600 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25601
25602 * math/math.h [__HAVE_DISTINCT_FLOAT16
25603 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25604 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25605 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25606 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25607 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25608 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25609 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25610 (__MATH_TG_F32): New macro.
25611 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25612 (__MATH_TG_F64X): Likewise.
25613 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25614 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25615
25616 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25617
25618 * po/de.po: Update translations.
25619 * po/ru.po: Likewise.
25620
25621 2017-11-03 Florian Weimer <fweimer@redhat.com>
25622
25623 * manual/filesys.texi (Hard Links): Document linkat.
25624
25625 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25626
25627 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25628 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25629 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25630 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25631 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25632 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25633 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25634 the same as _Float128.
25635 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25636 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25637 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25638
25639 * stdlib/stdlib.h
25640 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25641 Declare.
25642 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25643 Likewise.
25644 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25645 Likewise.
25646 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25647 (strtof32x): Likewise.
25648 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25649 (strtof64x): Likewise.
25650 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25651 (strtof128x): Likewise.
25652 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25653 (strfromf16): Likewise.
25654 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25655 (strfromf32): Likewise.
25656 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25657 (strfromf64): Likewise.
25658 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25659 (strfromf32x): Likewise.
25660 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25661 (strfromf64x): Likewise.
25662 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25663 (strfromf128x): Likewise.
25664 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25665 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25666 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25667 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25668 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25669 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25670
25671 2017-11-03 Richard Henderson <rth@twiddle.net>
25672
25673 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25674
25675 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25676
25677 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25678
25679 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25680
25681 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25682 DT_TLSDESC_GOT initialization.
25683 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25684 (_dl_tlsdesc_resolve_hold): Likewise.
25685 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25686 (_dl_tlsdesc_resolve_hold): Likewise.
25687 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25688 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25689
25690 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25691
25692 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25693
25694 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25695
25696 [BZ #18572]
25697 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25698 non-lazily for R_ARM_TLS_DESC.
25699
25700 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25701
25702 [BZ #17078]
25703 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25704 R_ARM_TLS_DESC case.
25705 (elf_machine_lazy_rel): Remove the prelink check.
25706
25707 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25708
25709 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25710 DT_TLSDESC_GOT initialization.
25711 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25712 (_dl_tlsdesc_resolve_rela): Likewise.
25713 (_dl_tlsdesc_resolve_hold): Likewise.
25714 (_dl_tlsdesc_undefweak): Remove ldar.
25715 (_dl_tlsdesc_dynamic): Likewise.
25716 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25717 (_dl_tlsdesc_resolve_rela): Likewise.
25718 (_dl_tlsdesc_resolve_hold): Likewise.
25719 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25720 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25721 (_dl_tlsdesc_resolve_rela): Likewise.
25722 (_dl_tlsdesc_resolve_hold): Likewise.
25723
25724 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25725
25726 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25727 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25728
25729 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25730
25731 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25732 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25733
25734 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25735
25736 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25737 Declare.
25738 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25739 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25740 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25741 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25742 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25743 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25744 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25745 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25746 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25747 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25748 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25749
25750 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25751
25752 [BZ #22382]
25753 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25754 * localedata/locales/tpi_PG: Add standard header.
25755
25756 2017-11-02 Florian Weimer <fweimer@redhat.com>
25757
25758 test-errno-linux: quotactl can fail with EPERM in containers.
25759 * sysdeps/unix/sysv/linux/test-errno-linux.c
25760 (LIST, LIST_FORWARD): New macros.
25761 (check_error_in_list): New function.
25762 (test_wrp_rv): Accept list of permitted error codes.
25763 (test_wrp_rv2): Remove.
25764 (test_wrp): Call test_wrp_rv with list of error codes.
25765 (test_wrp2): Accept list of error codes.
25766 (do_test): Adjust. Allow EPERM for quotactl.
25767
25768 2017-11-02 Florian Weimer <fweimer@redhat.com>
25769
25770 * stdio-common/bug16.c (do_test): Use array_length.
25771 * stdio-common/errlist.c (_sys_nerr): Likewise.
25772 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25773 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25774 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25775 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25776 (do_test): Use array_length.
25777 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25778 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25779 * stdio-common/tst-printf-round.c (do_test): Likewise.
25780 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25781 (CHECK): Use array_length.
25782 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25783 * stdio-common/tstscanf.c (main): Likewise.
25784 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25785
25786 2017-11-02 Florian Weimer <fweimer@redhat.com>
25787
25788 Add array_length and array_end macros.
25789 * include/array_length.h: New file.
25790
25791 2017-11-02 Florian Weimer <fweimer@redhat.com>
25792
25793 [BZ #22332]
25794 * posix/tst-glob-tilde.c (do_noescape): New variable.
25795 (one_test): Process it.
25796 (do_test): Set do_noescape. Add unescaping test case.
25797
25798 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25799
25800 * math/complex.h
25801 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25802 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25803 with appropriate macros defined and undefined.
25804 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25805 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25806 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25807 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25808 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25809 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25810 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25811 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25812 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25813 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25814
25815 * math/complex.h
25816 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25817 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25818 that for long double. Do not condition define and undefine of
25819 _Mdouble_complex_ on [__CFLOAT128].
25820
25821 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25822
25823 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25824 of <sysdeps/generic/sysdep.h>.
25825 (ALIGNARG): Removed.
25826 (ASM_SIZE_DIRECTIVE): Likewise.
25827 (ENTRY): Likewise.
25828 (END): Likewise.
25829 (ENTRY_CHK): Likewise.
25830 (END_CHK): Likewise.
25831 (syscall_error): Likewise.
25832 (mcount): Likewise.
25833 (PSEUDO_END): Likewise.
25834 (L): Likewise.
25835 (atom_text_section): Likewise.
25836 * sysdeps/x86/sysdep.h: New file.
25837 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25838 of <sysdeps/generic/sysdep.h>.
25839 (ALIGNARG): Removed.
25840 (ASM_SIZE_DIRECTIVE): Likewise.
25841 (ENTRY): Likewise.
25842 (END): Likewise.
25843 (ENTRY_CHK): Likewise.
25844 (END_CHK): Likewise.
25845 (syscall_error): Likewise.
25846 (mcount): Likewise.
25847 (PSEUDO_END): Likewise.
25848 (L): Likewise.
25849 (atom_text_section): Likewise.
25850
25851 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25852
25853 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25854 category of LC_CTYPE set to "i18n:2012".
25855 * localedata/locales/i18n_ctype: Regenerate.
25856
25857 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25858
25859 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25860 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25861 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25862 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25863
25864 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25865 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25866 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25867 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25868
25869 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25870
25871 * math/complex.h
25872 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25873 New macro.
25874 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25875 Likewise.
25876 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25877 Likewise.
25878 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25879 (CMPLXF32X): Likewise.
25880 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25881 (CMPLXF64X): Likewise.
25882 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25883 (CMPLXF128X): Likewise.
25884
25885 * math/math.h
25886 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25887 (__MATH_EVAL_FMT2): Define to add 0.0f.
25888
25889 2017-10-31 Alan Modra <amodra@gmail.com>
25890
25891 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25892 include sysdep.h.
25893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25894 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25896 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25897 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25898 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25899 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25900 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25901 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25902 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25903 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25904 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25905 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25906 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25907 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25908 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25909 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25910 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25911 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25912 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25913 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25914 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25915 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25916 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25917 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25918 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25919 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25920 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25921 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25922 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25923 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25924 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25925 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25926 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25927 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25928 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25929 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25930 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25931 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25932 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25933 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25934 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25935 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25936 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25937 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25938 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25939 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25940 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25941 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25942 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25943 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25944 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25945 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25946 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25947 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25948 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25949 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25950 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25951 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25952 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25953 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25954 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25955 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25956 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25957 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25958 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25959 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25960 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25961 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25962
25963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25964 include sysdep.h and math_ldbl_opt.h.
25965
25966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25967 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25968 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25970 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25971 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25974 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25976 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25977 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25979 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25980 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25986 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25988 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25989 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25991 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25992
25993 2017-10-31 Alan Modra <amodra@gmail.com>
25994
25995 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25996 string/strncase_l.c, not string/strncase.c.
25997 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25998 (libc_hidden_def): Redefine.
25999
26000 2017-10-31 Alan Modra <amodra@gmail.com>
26001
26002 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
26003 (__STRCMP, STRCMP, __strcasecmp_l): Define.
26004 (__strcasecmp): Don't define.
26005
26006 2017-10-31 Alan Modra <amodra@gmail.com>
26007
26008 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
26009 IS_IN (libc).
26010 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
26011 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
26012 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
26013
26014 2017-10-31 Alan Modra <amodra@gmail.com>
26015
26016 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
26017 USE_AS_STPNCPY.
26018
26019 2017-10-31 Alan Modra <amodra@gmail.com>
26020
26021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
26022 Redefine only when SHARED.
26023
26024 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26025
26026 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26027 Include <bits/math-finite.h> with appropriate macros defined and
26028 undefined.
26029 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26030 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26031 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26032 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26033 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26034
26035 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
26036 [!_Mlong_double_] (_Mlong_double_): Likewise.
26037 [!_Mfloat16_] (_Mfloat16_): Likewise.
26038 [!_Mfloat32_] (_Mfloat32_): Likewise.
26039 [!_Mfloat64_] (_Mfloat64_): Likewise.
26040 [!_Mfloat128_] (_Mfloat128_): Likewise.
26041 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
26042 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
26043 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
26044 (_Mdouble_): Define without indirection through those macros.
26045 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
26046 [!_Mfloat128_] (_Mfloat128_): Likewise.
26047 [_Mlong_double_] (_Mlong_double_): Likewise.
26048 (_Mdouble_): Define without indirection through those macros.
26049 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
26050 not add -D_Mlong_double_=double.
26051 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
26052 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
26053
26054 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26055
26056 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
26057
26058 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26059
26060 * sysdeps/x86/libc-start.c: Reformat.
26061
26062 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
26063
26064 [BZ #22353]
26065 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
26066 (1): Renamed to ...
26067 (L(Src0)): This.
26068 (L(Src1)): New.
26069 (L(Src2)): Likewise.
26070 (L(1)): Renamed to ...
26071 (L(Src3)): This.
26072
26073 2017-10-30 Joseph Myers <joseph@codesourcery.com>
26074
26075 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
26076 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
26077 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
26078 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
26079 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
26080 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
26081 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
26082 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
26083 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
26084 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
26085 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
26086 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
26087 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
26088 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
26089 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
26090 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
26091 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
26092 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
26093 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
26094 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
26095 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
26096 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
26097 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
26098 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
26099 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
26100 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
26101 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
26102 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
26103 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
26104 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
26105 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
26106 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
26107 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
26108 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
26109 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
26110 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
26111 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
26112 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
26113 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
26114 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
26115 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
26116 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
26117 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
26118 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
26119 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
26120 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
26121 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
26122 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
26123 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
26124 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
26125 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
26126 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
26127 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
26128 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
26129 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
26130 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
26131 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
26132 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
26133 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
26134 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
26135 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
26136 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
26137 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
26138 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
26139 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
26140 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
26141
26142 2017-10-30 Florian Weimer <fweimer@redhat.com>
26143
26144 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
26145 always defined.
26146 * io/tst-mkdirat.c (do_test): Likewise.
26147 * io/tst-mkfifoat.c (do_test): Likewise.
26148 * io/tst-mknodat.c (do_test): Likewise.
26149 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26150 * locale/programs/locale.c (select_dirs): Likewise.
26151 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26152 * posix/bug-glob2.c (my_readdir): Likewise.
26153 * posix/tst-dir.c (main): Likewise.
26154 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26155 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26156
26157 2017-10-30 Florian Weimer <fweimer@redhat.com>
26158
26159 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26160 just __USE_GNU.
26161
26162 2017-10-30 Florian Weimer <fweimer@redhat.com>
26163
26164 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26165 Convert to support/test-driver.c.
26166 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26167 New macro parameters.
26168 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26169 * posix/tst-gnuglob.c: New file.
26170 * posix/tst-gnuglob64.c: Likewise.
26171 * posix/Makefile (tests): Add tst-gnuglob64.
26172
26173 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26174
26175 [BZ #19485]
26176 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26177 and use a better translation for March in “mon”.
26178 * localedata/locales/csb_PL: Use more ASCII to improve the
26179 readability of the source.
26180
26181 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26182
26183 [BZ #13953]
26184 * localedata/locales/km_KH: Use ASCII as much
26185 as possible for better readability of the source and
26186 remove useless comments.
26187 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26188 was commented out and apparently wrong anyway because it was
26189 using Lao characters. If Buddhist era should be used
26190 for km_KH, a native speaker should write the correct formaat
26191 for Khmer.
26192 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26193 (According to CLDR, the first weekday for Cambodia is Sunday).
26194 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26195 (These were using Lao characters which must be wrong. If we get
26196 the correct data from a native speaker, we could add it back, until
26197 then it is better not to have name_mr and name_mrs at all than
26198 having it wrong).
26199
26200 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26201
26202 * locale/loadlocale.c: Correct size of
26203 _nl_value_type_LC_<category> arrays.
26204
26205 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26206
26207 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26208 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26209 with appropriate macros defined and undefined.
26210 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26211 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26212 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26213 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26214 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26215
26216 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26217
26218 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26219 "-O2 -march=i586".
26220
26221 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26222
26223 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26224 with lowercase letters to make it agree with CLDR.
26225
26226 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26227
26228 [BZ #15260]
26229 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26230 first letters of yesstr and nostr in yesexpr and noexpr,
26231 not for the full words.
26232 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26233 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26234 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26235 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26236 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26237 first letters of yesstr and nostr in yesexpr and noexpr,
26238 until now only English was matched in yesexpr and noexpr.
26239 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26240 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26241 fil but not for tl. As tl and fil are very similar, using fil
26242 is probably better than using English.
26243
26244 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26245
26246 [BZ #21706]
26247 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26248 in yesstr and nostr.
26249
26250 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26251
26252 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26253 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26254 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26255 Likewise.
26256 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26257 Likewise.
26258 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26259 Likewise.
26260 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26261 Likewise.
26262 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26263 (SNANF128X): Likewise.
26264
26265 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26266 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26267 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26268 (HUGE_VAL_F32): Likewise.
26269 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26270 (HUGE_VAL_F64): Likewise.
26271 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26272 (HUGE_VAL_F32X): Likewise.
26273 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26274 (HUGE_VAL_F64X): Likewise.
26275 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26276 (HUGE_VAL_F128X): Likewise.
26277
26278 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26279
26280 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26281 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26282 for the br_FR locale.
26283
26284 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26285
26286 [BZ #21706]
26287 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26288
26289 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26290
26291 * locale/programs/record-status.h: Define globals, and function
26292 prototypes. Move function bodies...
26293 * locale/programs/record-status.c: ... to here. New file.
26294 * iconv/Makefile (iconv_prog-modules): Add record-status.
26295 * locale/Makefile (lib-modules): Likewise.
26296 * iconv/iconv_prog.c: Remove verbose.
26297 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26298 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26299 record a warning about ASCII compatibility.
26300 * locale/programs/ld-monetary.c (monetary_finish): If
26301 warn_int_curr_symbol is true then record a warning about the symbol
26302 not being in our ISO 4217 list.
26303 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26304 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26305 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26306 (OPT_NO_WARN): Define.
26307 (OPT_WARN): Define.
26308 (options): Add entry for --no-warnings, and --warnings.
26309 (set_warnings): New function to enable/disable warnings.
26310 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26311 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26312 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26313 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26314 Pass flags to generate_locale.
26315 (generate_locale): Accept new flag argument and pass it to localedef
26316 invocation.
26317 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26318 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26319
26320 * localedata/Makefile (test-input-data): Use full file name.
26321 * localedata/da_DK.in: Rename to...
26322 * localedata/da_DK.ISO-8859-1.in: ...this.
26323 * localedata/de_DE.in: Rename to...
26324 * localedata/de_DE.ISO-8859-1.in: ...this.
26325 * localedata/en_US.in: Rename to...
26326 * localedata/en_US.ISO-8859-1.in: ...this.
26327 * localedata/fr_FR.in: Rename to...
26328 * localedata/fr_FR.UTF-8.in: ... this.
26329 * localedata/hr_HR.in: Rename to...
26330 * localedata/hr_HR.ISO-8859-2.in: ...this.
26331 * localedata/hu_HU.in: Rename to...
26332 * localedata/hu_HU.UTF-8.in: ...this.
26333 * localedata/si_LK.in: Rename to...
26334 * localedata/si_LK.UTF-8.in: ...this.
26335 * localedata/sv_SE.in: Rename to...
26336 * localedata/sv_SE.ISO-8859-1.in: ...this.
26337 * localedata/tr_TR.in: Rename to...
26338 * localedata/tr_TR.UTF-8.in: ...this.
26339 * localedata/uk_UA.in: Rename to...
26340 * localedata/uk_UA.UTF-8.in: ...this.
26341 * localedata/sort-test.sh: Test file is locale name with the
26342 suffix.
26343
26344 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26345 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26346 file.
26347 * localedata/locales/i18n_ctype: Regenerate.
26348 * localedata/locales/tr_TR: Likewise.
26349 * localedata/locales/translit_circle: Likewise.
26350 * localedata/locales/translit_cjk_compat: Likewise.
26351 * localedata/locales/translit_combining: Likewise.
26352 * localedata/locales/translit_compat: Likewise.
26353 * localedata/locales/translit_font: Likewise.
26354 * localedata/locales/translit_fraction: Likewise.
26355
26356 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26357
26358 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26359 lxvd2x/stxvd2x with lvx/stvx.
26360 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26361
26362 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26363
26364 * include/alloc_buffer.h: Replace "if if " with "if " in
26365 comments.
26366 * sysdeps/mips/memcpy.S: Likkewise.
26367 * sysdeps/mips/memset.S: Likewise.
26368 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26369 Likewise.
26370 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26371 Likewise.
26372 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26373 Likewise.
26374
26375 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26376
26377 [BZ #15261]
26378 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26379 yesexpr and noexpr.
26380 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26381 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26382 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26383 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26384 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26385 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26386 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26387
26388 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26389
26390 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26391 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26392 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26393 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26394 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26395 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26396 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26397 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26398 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26399 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26400 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26401 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26402
26403 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26404
26405 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26406 as possible for better readability of the source.
26407 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26408 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26409 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26410 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26411 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26412 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26413 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26414 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26415 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26416 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26417 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26418 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26419 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26420 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26421 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26422 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26423 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26424 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26425 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26426 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26427 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26428 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26429 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26430 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26431 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26432 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26433 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26434 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26435 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26436 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26437 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26438 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26439 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26440 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26441 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26442 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26443 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26444 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26445 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26446 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26447 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26448 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26449 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26450 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26451 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26452 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26453 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26454 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26455 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26456 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26457 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26458 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26459 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26460 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26461 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26462 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26463 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26464 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26465 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26466 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26467 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26468 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26469 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26470 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26471 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26472 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26473 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26474 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26475 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26476 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26477 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26478 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26479 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26480 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26481 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26482 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26483 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26484 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26485 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26486 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26487 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26488 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26489 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26490 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26491 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26492 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26493 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26494 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26495 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26496 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26497 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26498 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26499 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26500 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26501 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26502 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26503 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26504 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26505 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26506 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26507 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26508 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26509 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26510 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26511 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26512 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26513 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26514 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26515 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26516 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26517 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26518 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26519 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26520 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26521 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26522 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26523 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26524 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26525 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26526 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26527 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26528 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26529 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26530 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26531 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26532 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26533 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26534 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26535 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26536 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26537 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26538 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26539 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26540 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26541 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26542 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26543 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26544 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26545 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26546 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26547 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26548 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26549 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26550 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26551 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26552 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26553 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26554 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26555 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26556 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26557 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26558 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26559 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26560 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26561 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26562 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26563 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26564 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26565 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26566 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26567 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26568 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26569 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26570 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26571 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26572 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26573 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26574 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26575 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26576 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26577 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26578 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26579 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26580 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26581
26582 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26583
26584 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26585 (Use first letters of yesstr and nostr correctly instead of using
26586 full words).
26587
26588 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26589
26590 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26591 (Use first letters of yesstr and nostr correctly).
26592
26593 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26594
26595 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26596 also check for the first characters of yesstr and nostr.
26597 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26598 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26599
26600 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26601
26602 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26603 also check for Chinese characters.
26604
26605 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26606
26607 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26608 match also for the contents of yesstr and nostr. As the first letter
26609 of yesstr and nostr is equal, checking only for the first letter
26610 is not enough.
26611
26612 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26613
26614 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26615 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26616
26617 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26618
26619 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26620 of main contributor.
26621
26622 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26623
26624 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26625 instead of using English.
26626
26627 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26628
26629 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26630 by including the first letters of nostr and yesexpr in the regexp.
26631 Also make it more readable by using ASCII where possible.
26632
26633 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26634
26635 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26636 the first letter of nostr in the regexp. It agrees with CLDR now.
26637 Also make it more readable by using ASCII where possible.
26638
26639 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26640
26641 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26642 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26643 these strings contain a U+17D6 (which somewhat looks like a colon)
26644 instead of a real colon to separate the full words for “yes”
26645 and “no” from the single letter responses.
26646
26647 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26648
26649 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26650 it agree with CLDR (include the first letter of yesstr).
26651 Also make it more readable by using ASCII where possible.
26652
26653 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26654
26655 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26656 and improve yesexpr and noexpr. The yesstr and nostr apparently
26657 came from CLDR. And CLDR has a bug there: these strings contain
26658 a U+0903 (which looks like a colon) instead of a real colon
26659 to separate the full words for “yes” and “no” from the single
26660 letter responses.
26661
26662 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26663
26664 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26665 letters of the full yesstr and nostr in yesexpr and noexpr.
26666
26667 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26668
26669 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26670 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26671 * localedata/locales/an_ES: Make source more readable by using ASCII
26672 where possible.
26673
26674 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26675
26676 [BZ #20952]
26677 * localedata/locales/yuw_PG: New file.
26678 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26679 * locale/iso-639.def: Add Yau (Uruwa).
26680
26681 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26682
26683 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26684
26685 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26686
26687 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26688 (__libc_realloc): Likewise.
26689 (_mid_memalign): Likewise.
26690 (__libc_calloc): Likewise.
26691
26692 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26693
26694 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26695 by adding the generic +1 and -0 as in all other locales.
26696 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26697 day names and make it more readable by using ASCII where possible.
26698
26699 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26700
26701 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26702 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26703
26704 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26705
26706 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26707 WNOHANG in waitpid call.
26708
26709 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26710
26711 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26712 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26713
26714 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26715 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26716 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26717 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26718 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26719 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26720 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26721 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26722 variables.
26723
26724 2017-10-23 Michael Collison <michael.collison@arm.com>
26725
26726 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26727 with __builtin_sqrt.
26728 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26729 with __builtin_sqrtf.
26730 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26731 with __builtin_ceil.
26732 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26733 with __builtin_ceilf.
26734 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26735 with __builtin_floor.
26736 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26737 with __builtin_floorf.
26738 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26739 with __builtin_fma.
26740 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26741 with __builtin_fmaf.
26742 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26743 with __builtin_fmax.
26744 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26745 with __builtin_fmaxf.
26746 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26747 with __builtin_fmin.
26748 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26749 with __builtin_fminf.
26750 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26751 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26752 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26753 with builtin_rint and conversion to int.
26754 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26755 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26756 with builtin_llround.
26757 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26758 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26759 with builtin_rint and conversion to long int.
26760 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26761 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26762 with builtin_lround.
26763 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26764 with builtin_lroundf.
26765 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26766 statements with __builtin_nearbyint.
26767 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26768 statements with __builtin_nearbyintf.
26769 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26770 with __builtin_rint.
26771 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26772 with __builtin_rintf.
26773 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26774 with __builtin_round.
26775 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26776 with __builtin_roundf.
26777 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26778 with __builtin_trunc.
26779 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26780 with __builtin_truncf.
26781 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26782 and s_l[l]round[f].c too.
26783
26784 2017-10-23 Alan Modra <amodra@gmail.com>
26785
26786 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26787 Adjust stack after restoring regs. Add missing LR cfi_restore.
26788
26789 2017-10-23 Alan Modra <amodra@gmail.com>
26790
26791 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26792 Move LR save and frame setup/teardown and LR restore to
26793 immediately around memset call. Provide cfi.
26794
26795 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26796
26797 * sysdeps/i386/fpu/e_powf.S: Removed.
26798 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26799 * sysdeps/i386/fpu/w_powf.c: Likewise.
26800 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26801 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26802 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26803 Add e_powf-sse2.
26804 (CFLAGS-e_powf-sse2.c): New.
26805 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26806 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26807
26808 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26809
26810 * sysdeps/i386/fpu/e_log2f.S: Removed.
26811 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26812 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26813 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26814 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26815 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26816 Add e_log2f-sse2.
26817 (CFLAGS-e_log2f-sse2.c): New.
26818 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26819 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26820
26821 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26822
26823 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26824 Add e_powf-fma.
26825 (CFLAGS-e_powf-fma.c): New.
26826 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26827 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26828
26829 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26830
26831 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26832 Add e_log2f-fma.
26833 (CFLAGS-e_log2f-fma.c): New.
26834 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26835 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26836
26837 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26838
26839 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26840 Add e_logf-fma.
26841 (CFLAGS-e_logf-fma.c): New.
26842 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26843 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26844
26845 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26846
26847 * sysdeps/i386/fpu/e_logf.S: Removed.
26848 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26849 * sysdeps/i386/fpu/w_logf.c: Likewise.
26850 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26851 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26852 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26853 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26854 Add e_logf-sse2.
26855 (CFLAGS-e_logf-sse2.c): New.
26856 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26857 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26858
26859 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26860
26861 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26862 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26863 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26864 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26865 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26866 Add e_exp2f-sse2.
26867 (CFLAGS-e_exp2f-sse2.c): New.
26868 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26869 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26870
26871 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26872
26873 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26874 Add e_exp2f-fma.
26875 (CFLAGS-e_exp2f-fma.c): New.
26876 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26877 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26878
26879 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26882 * sysdeps/i386/fpu/e_expf.S: Likewise.
26883 * sysdeps/i386/fpu/math_errf.c: Likewise.
26884 * sysdeps/i386/fpu/w_expf.c: Likewise.
26885 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26886 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26887 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26888 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26889 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26890 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26891 Remove e_expf-ia32.
26892 (CFLAGS-e_expf-sse2.c): New.
26893 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26894 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26895
26896 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26897
26898 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26899 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26900 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26901 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26902 e_expf.c.
26903 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26904 New.
26905 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26906 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26907 Renamed to ...
26908 (__redirect_expf): This.
26909 (SYMBOL_NAME): Changed to expf.
26910 (__ieee754_expf): Renamed to ...
26911 (__expf): This.
26912 (__GI___expf): This.
26913 (__ieee754_expf): Add strong_alias.
26914 (__expf_finite): Likewise.
26915 (__expf): New.
26916 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26917
26918 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26919
26920 [BZ #22332]
26921 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26922 unescaping.
26923
26924 2017-10-21 Florian Weimer <fweimer@redhat.com>
26925
26926 * posix/Makefile (tests): Add tst-glob-tilde.
26927 (tests-special): Add tst-glob-tilde-mem.out
26928 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26929 (tst-glob-tilde-mem.out): Add mtrace check.
26930 * posix/tst-glob-tilde.c: New file.
26931
26932 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26933
26934 * bits/floatn-common.h: New file.
26935 * math/Makefile (headers): Add bits/floatn-common.h.
26936 * bits/floatn.h: Include <bits/floatn-common.h>.
26937 * sysdeps/ia64/bits/floatn.h: Likewise.
26938 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26939 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26940 * sysdeps/powerpc/bits/floatn.h: Likewise.
26941 * sysdeps/x86/bits/floatn.h: Likewise.
26942
26943 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26944
26945 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26946 indicates whether compiler emits an warning for alias for
26947 functions with incompatible types.
26948
26949 [BZ #22273]
26950 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26951 the auxiliary process is terminated by a signal before calling _exit
26952 or execve.
26953
26954 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26955
26956 [BZ #21265]
26957 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26958 New.
26959 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26960 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26961 and bit_arch_XSAVEC_Usable if needed.
26962 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26963 and bit_arch_Use_dl_runtime_resolve_opt.
26964 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26965 Removed.
26966 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26967 (bit_arch_Prefer_No_AVX512): Updated.
26968 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26969 (bit_arch_XSAVEC_Usable): New.
26970 (STATE_SAVE_OFFSET): Likewise.
26971 (STATE_SAVE_MASK): Likewise.
26972 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26973 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26974 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26975 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26976 (index_arch_XSAVEC_Usable): New.
26977 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26978 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26979 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26980 is enabled.
26981 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26982 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26983 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26984 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26985 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26986 _dl_runtime_resolve_xsavec.
26987 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26988 Removed.
26989 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26990 instead of VEC_SIZE.
26991 (REGISTER_SAVE_BND0): Removed.
26992 (REGISTER_SAVE_BND1): Likewise.
26993 (REGISTER_SAVE_BND3): Likewise.
26994 (REGISTER_SAVE_RAX): Always defined to 0.
26995 (VMOV): Removed.
26996 (_dl_runtime_resolve_avx): Likewise.
26997 (_dl_runtime_resolve_avx_slow): Likewise.
26998 (_dl_runtime_resolve_avx_opt): Likewise.
26999 (_dl_runtime_resolve_avx512): Likewise.
27000 (_dl_runtime_resolve_avx512_opt): Likewise.
27001 (_dl_runtime_resolve_sse): Likewise.
27002 (_dl_runtime_resolve_sse_vex): Likewise.
27003 (USE_FXSAVE): New.
27004 (_dl_runtime_resolve_fxsave): Likewise.
27005 (USE_XSAVE): Likewise.
27006 (_dl_runtime_resolve_xsave): Likewise.
27007 (USE_XSAVEC): Likewise.
27008 (_dl_runtime_resolve_xsavec): Likewise.
27009 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
27010 Removed.
27011 (_dl_runtime_resolve_avx512_opt): Likewise.
27012 (_dl_runtime_resolve_avx): Likewise.
27013 (_dl_runtime_resolve_avx_opt): Likewise.
27014 (_dl_runtime_resolve_sse): Likewise.
27015 (_dl_runtime_resolve_sse_vex): Likewise.
27016 (_dl_runtime_resolve_fxsave): New.
27017 (_dl_runtime_resolve_xsave): Likewise.
27018 (_dl_runtime_resolve_xsavec): Likewise.
27019
27020 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
27021
27022 [BZ #22320]
27023 CVE-2017-15670
27024 * posix/glob.c (__glob): Fix one-byte overflow.
27025
27026 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27027
27028 * malloc/malloc.c (sysdep-cancel.h): Add include.
27029
27030 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
27031
27032 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
27033
27034 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
27035
27036 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
27037 (tests): Remove $(objpfx)ga_test depdendency.
27038 * resolv/ga_test.c: Remove file.
27039
27040 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27041
27042 [BZ #18812]
27043 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
27044 * localedata/locales/kab_DZ: New file.
27045
27046 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27047
27048 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
27049 _dl_relocate_static_pie instead of _dl_start to compute load
27050 address in static PIE.
27051
27052 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
27053
27054 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
27055
27056 2017-10-20 Mike FABIAN <mfabian@redhat.com>
27057
27058 [BZ #13605]
27059 * localedata/SUPPORTED: Add shn_MM/UTF-8.
27060 * localedata/locales/shn_MM: New file.
27061
27062 2017-10-20 Florian Weimer <fweimer@redhat.com>
27063
27064 [BZ #22321]
27065 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
27066 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
27067 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
27068 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
27069 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
27070 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
27071
27072 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
27073
27074 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
27075
27076 2017-10-19 Joseph Myers <joseph@codesourcery.com>
27077
27078 * sysdeps/mips/ieee754/bits/floatn.h: New file.
27079
27080 [BZ #22322]
27081 * sysdeps/mips/bits/long-double.h: Move to ....
27082 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
27083
27084 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
27085
27086 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
27087
27088 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
27089 H.J. Lu <hongjiu.lu@intel.com>
27090
27091 [BZ #22299]
27092 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
27093 GLRO(dl_platform) to NULL.
27094 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
27095 (modules-names): Add tst-platformmod-1 and
27096 x86_64/tst-platformmod-2.
27097 (CFLAGS-tst-platform-1.c): New.
27098 (CFLAGS-tst-platformmod-1.c): Likewise.
27099 (CFLAGS-tst-platformmod-2.c): Likewise.
27100 (LDFLAGS-tst-platformmod-2.so): Likewise.
27101 ($(objpfx)tst-platform-1): Likewise.
27102 ($(objpfx)tst-platform-1.out): Likewise.
27103 (tst-platform-1-ENV): Likewise.
27104 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
27105 * sysdeps/x86_64/tst-platform-1.c: New file.
27106 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
27107 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
27108
27109 2017-10-19 Mike FABIAN <mfabian@redhat.com>
27110
27111 [BZ #13994]
27112 * locale/iso-639.def: Add Karbi.
27113 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
27114 * localedata/locales/mjw_IN: New file.
27115
27116 2017-10-18 Joseph Myers <joseph@codesourcery.com>
27117
27118 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
27119 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
27120 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
27121 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
27122 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27123 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27124 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
27125 <bits/floatn.h>.
27126 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
27127 (libm_alias_ldouble_other_r): Also create _Float128 alias.
27128 * manual/math.texi (Mathematics): Document additional architecture
27129 support for _Float128.
27130 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
27131 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
27132 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27133 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27134 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27135 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27136 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27137 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27138 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27139 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27140 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27141 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27142 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27143 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27144 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27145
27146 2017-10-18 Renlin Li <renlin.li@arm.com>
27147
27148 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27149 _DYNAMIC symbol to calculate load address.
27150
27151 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27152
27153 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27154 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27155 summary bits.
27156 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27157 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27158
27159 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27160
27161 [BZ #16777]
27162 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27163 and improve readability by using more ASCII.
27164 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27165 and improve readability by using more ASCII.
27166
27167 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27168
27169 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27170 not all targets support atomics on bool.
27171
27172 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27173
27174 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27175 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27176 __f128.
27177 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27178 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27179 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27180 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27181 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27182 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27183
27184 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27185
27186 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27187 defines.
27188
27189 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27190
27191 [BZ #22159]
27192 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27193 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27194 (do_check_remalloced_chunk): Fix build bug.
27195 (do_check_malloc_state): Add assert that checks arena->top.
27196 (malloc_consolidate): Remove initialization.
27197 (int_mallinfo): Remove call to malloc_consolidate.
27198 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27199
27200 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27201
27202 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27203 (have_fastchunks): Remove.
27204 (clear_fastchunks): Remove.
27205 (set_fastchunks): Remove.
27206 (malloc_state): Add have_fastchunks.
27207 (malloc_init_state): Use have_fastchunks.
27208 (do_check_malloc_state): Remove incorrect invariant checks.
27209 (_int_malloc): Use have_fastchunks.
27210 (_int_free): Likewise.
27211 (malloc_consolidate): Likewise.
27212
27213 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27214
27215 * malloc/malloc.c (tcache_put): Inline.
27216 (tcache_get): Inline.
27217
27218 2017-10-17 Jordi Mallach <jordi@gnu.org>
27219
27220 Aurelien Jarno <aurelien@aurel32.net>
27221 [BZ #2522]
27222 * localedata/locales/ca_ES@valencia: New file.
27223 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27224
27225 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27226
27227 [BZ #22296]
27228 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27229 < 6.x
27230
27231 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27232
27233 * scripts/build-many-glibcs.py (Context.add_all_configs):
27234 Add arm-linux-gnueabihf multiarch extra_glibcs.
27235
27236 * sysdeps/generic/ifunc-init.h: New file.
27237 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27238
27239 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27240
27241 [BZ #22019]
27242 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27243 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27244 * stdlib/tst-strfmon_l.c: adapt test case.
27245
27246 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27247
27248 * sysdeps/generic/float128-abi.h: New file.
27249 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27250 non-__prefixed symbols to ....
27251 * math/Versions: ... here. Include <float128-abi.h>.
27252 * stdlib/Versions ... and here. Include <float128-abi.h>
27253
27254 2017-10-16 Florian Weimer <fweimer@redhat.com>
27255
27256 * version.h (VERSION): Switch to ".9000" as the development
27257 version suffix.
27258
27259 2017-10-16 Florian Weimer <fweimer@redhat.com>
27260
27261 [BZ #22050]
27262 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27263 compat_symbol_reference to access non-default version.
27264
27265 2017-10-16 Florian Weimer <fweimer@redhat.com>
27266
27267 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27268
27269 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27270
27271 * include/shlib-compat.h (compat_symbol_reference): Update
27272 comment.
27273
27274 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27275
27276 * math/Makefile (test-types): Add
27277 $(type-float128-$(float128-alias-fcts)).
27278 * math/test-float128.h (TYPE_STR): Define conditional on
27279 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27280 (ULP_IDX): Likewise.
27281 (ULP_I_IDX): Likewise.
27282
27283 * stdlib/strtold.c: Include <bits/floatn.h>
27284 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27285 and later undefine as macro. Define as weak alias if
27286 [!USE_WIDE_CHAR].
27287 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27288 and later undefine as macro. Define as weak alias if
27289 [USE_WIDE_CHAR].
27290 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27291 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27292 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27293 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27294 Define and later undefine as macro. Define as weak alias if
27295 [USE_WIDE_CHAR].
27296 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27297 <bits/floatn.h>.
27298 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27299 Define and later undefine as macro. Define as weak alias if
27300 [!USE_WIDE_CHAR].
27301 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27302 Define and later undefine as macro. Define as weak alias if
27303 [USE_WIDE_CHAR].
27304
27305 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27306
27307 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27308 record_verbose messages.
27309
27310 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27311
27312 [BZ #22052]
27313 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27314 to silence -O3 -Wall warning with GCC 7.
27315
27316 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27317
27318 * Makeconfig (+link-static-before-libc): Use the first of
27319 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27320 * gmon/Makefile (tests): Add tst-gmon-static.
27321 (tests-static): Likewise.
27322 (CFLAGS-tst-gmon-static.c): New.
27323 (CRT-tst-gmon-static): Likewise.
27324 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27325 (tst-gmon-static-ENV): Likewise.
27326 (tests-special): Likewise.
27327 ($(objpfx)tst-gmon-static.out): Likewise.
27328 (clean-tst-gmon-static-data): Likewise.
27329 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27330 * gmon/tst-gmon-static-gprof.sh: New file.
27331 * gmon/tst-gmon-static.c: Likewise.
27332
27333 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27334
27335 [BZ #22295]
27336 * locale/programs/linereader.c (get_string): Don't warn on
27337 non-symbolic character.
27338
27339 [BZ #22294]
27340 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27341 int_curr_symbol.
27342
27343 [BZ #22292]
27344 * locale/programs/record-status.h: New file
27345 * locale/programs/locale.c: Add comment.
27346 * locale/programs/charmap-dir.c: Don't include error.h.
27347 (charmap_opendir): Use record_error.
27348 * locale/programs/charmap.c: Don't include error.h.
27349 (charmap_read): Use record_error, and record_warning.
27350 (parse_charmap): Likewise.
27351 * locale/programs/ld-address.c: Don't include error.h.
27352 (address_finish): Use record_error, and record_warning.
27353 * locale/programs/ld-collate.c: Don't include error.h.
27354 (collate_finish): Use record_error, and record_error_at_line.
27355 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27356 (ctype_class_new): Likewise.
27357 (ctype_map_new): Likewise.
27358 (set_one_default): Likewise.
27359 (set_class_defaults): Likewise.
27360 (translit_flatten): Likewise.
27361 (allocate_arrays): Use record_error, and record_verbose.
27362 * locale/programs/ld-identification.c: Don't include error.h.
27363 (indentation_finish): Use record_error and record_warning.
27364 * locale/programs/ld-measurement.c: Don't include error.h.
27365 (measurement_finish): Use record_error.
27366 * locale/programs/ld-messages.c
27367 (message_finish): Likewise.
27368 * locale/programs/ld-monetary.c
27369 (monetary_finish): Likewise.
27370 * locale/programs/ld-name.c (name_finish): Use record_error
27371 and record_warning.
27372 * locale/programs/ld-numeric.c
27373 (numeric_finish): Use record_error.
27374 * locale/programs/ld-paper.c: Don't include error.h.
27375 (paper_finish): Use record_error.
27376 * locale/programs/ld-telephone.c: Don't include error.h.
27377 (telephone_finish): Use record_error.
27378 * locale/programs/ld-time.c (time_finish): Likewise.
27379 * locale/programs/linereader.h (lr_error): Make inline func.
27380 * locale/programs/localedef.c: Define recorded_warning_count,
27381 and recorded_error_count.
27382 (main): Use record_error. Use recorded_error_count and
27383 recorded_warning_count to issue correct error returns.
27384 (add_to_readlist): Use record_error.
27385 (find_locale): Likewise.
27386 (load_locale): Likewise.
27387 * locale/programs/localedef.h: Remove be_quiet
27388 and WITH_CUR_LOCALE.
27389 * locale/programs/locarchive.c (compare_from_file): Use
27390 record_error.
27391 * locale/programs/locfile.c (write_locale_data): Use
27392 record_error.
27393 * locale/programs/repertoire.c: Dont include error.h.
27394 (repertoire_complain): Use record_error.
27395 * localedata/tst-fmon.sh: Expect failures from localedef.
27396 * localedata/tst-locale.sh: Likewise.
27397 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27398
27399 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27400 (REPORTS): Likewise.
27401 (check): Likewise.
27402 (i18n): Rename to...
27403 (i18n_ctype): ...this.
27404 (i18n-report): Rename to...
27405 (i18n_ctype-report): ...this.
27406 * localedata/locales/i18n_ctype: Regenerate.
27407 * localedata/locales/i18n: copy i18n_ctype.
27408
27409 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27410
27411 * stdlib/strfroml.c: Include <bits/floatn.h>.
27412 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27413 Define before include of <stdlib.h> and undefine afterwards, then
27414 define as weak alias.
27415
27416 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27417 Undefine and restore default definition. Use
27418 libm_alias_ldouble_other.
27419
27420 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27421
27422 [BZ #22153]
27423 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27424 in coredumps.
27425
27426 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27427
27428 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27429 Assign sym_map to be map for local symbols, as TLS relocations
27430 use sym_map to determine whether the symbol is defined and to
27431 extract the TLS information.
27432 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27433 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27434
27435 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27436
27437 [BZ #22189]
27438 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27439 (math_force_eval): Add powerpc version.
27440
27441 [BZ #22142]
27442 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27443 -DBL_MAX.
27444 (do_test): Likewise.
27445 * stdio-common/tst-printf.sh: Likewise.
27446 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27447 ifdef clause in order to set the carry bit right. Replace r0 by
27448 0 without changing the behavior.
27449
27450 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27451
27452 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27453 <libm-alias-ldouble.h>.
27454 (fabsl): Define using libm_alias_ldouble.
27455 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27456 <libm-alias-ldouble.h>.
27457 (fabsl): Define using libm_alias_ldouble.
27458
27459 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27460 Remove conditional code.
27461
27462 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27463 Rename to __clog10_internal_l.
27464 (__clog10_internal_l): Define aliases using
27465 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27466 with __clog10.
27467
27468 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27469
27470 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27471 * benchtests/sincosf-inputs: New file.
27472 * benchtests/cosf-inputs: New file.
27473 * benchtests/sinf-inputs: New file.
27474
27475 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27476
27477 * posix/tst-spawn.c (do_test): Wait for both children.
27478
27479 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27480
27481 [BZ #22284]
27482 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27483 tests-pie): Add tst-gmon-pie.
27484 (CFLAGS-tst-gmon-pie.c): New.
27485 (CRT-tst-gmon-pie): Likewise.
27486 (tst-gmon-pie-ENV): Likewise.
27487 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27488 ($(objpfx)tst-gmon-pie.out): Likewise.
27489 (clean-tst-gmon-pie-data): Likewise.
27490 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27491 * gmon/gmon.c [PIC]: Include <link.h>.
27492 [PIC] (callback): New function.
27493 (write_hist): Add an argument for load address. Subtract load
27494 address from PCs.
27495 (write_call_graph): Likewise.
27496 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27497 it to write_hist and write_call_graph.
27498 * gmon/tst-gmon-pie.c: New file.
27499
27500 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27501
27502 * math/Makefile (test-types-basic): New variable.
27503 (test-types): Likewise.
27504 (libm-test-support): Use $(test-types) instead of $(types).
27505 (libm-tests-base-normal): Likewise.
27506 (libm-tests-base-finite): Likewise.
27507 (libm-tests-base-inline): Likewise.
27508 (generated): Likewise.
27509 ($(objpfx)libm-test-support-$(t).c): Likewise.
27510 (libm-tests-for-type iterator): Likewise.
27511 (libm-test-support iterator): Likewise.
27512 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27513 (ulp_idx): Use ULP_IDX.
27514 * math/test-ldouble.h: Include <float.h>.
27515 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27516 (ULP_IDX): New macro.
27517 (ULP_I_IDX): Likewise.
27518 * math/test-double.h (ULP_IDX): Likewise.
27519 (ULP_I_IDX): Likewise.
27520 * math/test-float.h (ULP_IDX): Likewise.
27521 (ULP_I_IDX): Likewise.
27522 * math/test-float128.h (ULP_IDX): Likewise.
27523 (ULP_I_IDX): Likewise.
27524
27525 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27526
27527 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27528 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27529 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27530 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27531 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27532 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27533 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27534 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27535 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27536 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27537 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27538 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27539 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27540 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27541 (SINGLE_THREAD_BY_GLOBAL): Define.
27542 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27543 Likewise.
27544 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27545 Likewise.
27546 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27547 Likewise.
27548 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27549 Likewise.
27550 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27551 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27552 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27553 Likewise.
27554
27555 2017-10-11 Andreas Schwab <schwab@suse.de>
27556
27557 * nis/Makefile (aux): Remove.
27558 * nscd/Makefile (aux): Add nscd_hash.
27559 (nscd-modules): Likewise.
27560 ($(objpfx)nscd): Don't depend on libnsl.
27561 * nscd/nscd_hash.c: New file.
27562 * nscd/nscd_hash.h: Likewise.
27563 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27564 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27565 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27566 instead of <nis/rpcsvc/nis.h>.
27567 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27568
27569 2017-10-11 Florian Weimer <fweimer@redhat.com>
27570
27571 [BZ #22078]
27572 Avoid large NSS buffers with many addresses, aliases.
27573 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27574 using dynarrays and struct alloc_buffer.
27575 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27576 (tst-nss-files-hosts-multi): Link with -ldl.
27577 * nss/tst-nss-files-hosts-multi.c: New file.
27578
27579 2017-10-11 Florian Weimer <fweimer@redhat.com>
27580
27581 [BZ #18023]
27582 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27583 scratch_buffer. Eliminate gotos.
27584
27585 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27586
27587 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27588 libm_alias_ldouble_other.
27589 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27590 undefine and redefine.
27591 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27592 (exp10l): Do not define here.
27593 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27594 (weak_alias): Undefine and redefine.
27595 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27596 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27597 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27598 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27599
27600 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27601 [!__fma] (fma): Define using libm_alias_double.
27602 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27603 [!__fmaf] (fmaf): Define using libm_alias_float.
27604 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27605 (fmal): Define using libm_alias_ldouble.
27606
27607 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27608
27609 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27610 New macro.
27611 (libm_alias_double_other): Likewise.
27612 (libm_alias_double_r): Use libm_alias_double_other_r.
27613 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27614 New macro.
27615 (libm_alias_float_other): Likewise.
27616 (libm_alias_float_r): Use libm_alias_float_other_r.
27617 * sysdeps/generic/libm-alias-float128.h
27618 (libm_alias_float128_other_r): New macro.
27619 (libm_alias_float128_other): Likewise.
27620 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27621 * sysdeps/generic/libm-alias-ldouble.h
27622 (libm_alias_ldouble_other_r): New macro.
27623 (libm_alias_ldouble_other): Likewise.
27624 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27625 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27626 (libm_alias_double_other_r): New macro.
27627 (libm_alias_double_other): Likewise.
27628 (libm_alias_double_r): Use libm_alias_double_other_r.
27629 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27630 (libm_alias_ldouble_other_r): New macro.
27631 (libm_alias_ldouble_other): Likewise.
27632 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27633 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27634 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27635 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27636 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27637 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27638 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27639 * math/w_exp2f.c: Use libm_alias_float_other.
27640 * math/w_expf.c: Likewise.
27641 * math/w_log2f.c: Likewise.
27642 * math/w_logf.c: Likewise.
27643 * math/w_powf.c: Likewise.
27644 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27645 [!__exp2f]: Use libm_alias_float_other.
27646 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27647 [!__expf]: Use libm_alias_float_other.
27648 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27649 [!__log2f]: Use libm_alias_float_other.
27650 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27651 [!__logf]: Use libm_alias_float_other.
27652 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27653 [!__powf]: Use libm_alias_float_other.
27654
27655 2017-10-10 Florian Weimer <fweimer@redhat.com>
27656
27657 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27658 function.
27659 (_nss_files_gethostbyname3_r): Call it.
27660
27661 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27662
27663 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27664 error. Remove default definition of declare_mgen_alias.
27665 [!declare_mgen_alias_r]: Likewise.
27666 * sysdeps/generic/math-type-macros-double.h
27667 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27668 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27669 (declare_mgen_alias_r): Likewise.
27670 * sysdeps/generic/math-type-macros-float128.h
27671 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27672 * sysdeps/generic/math-type-macros-ldouble.h
27673 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27674 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27675 macro.
27676 (declare_mgen_alias_r_s): Likewise.
27677 (declare_mgen_alias_r): Likewise.
27678 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27679 (lgamma_r): Define using libm_alias_double_r.
27680 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27681 (lgammaf_r): Define using libm_alias_float_r.
27682 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27683 (lgammal_r): Define using libm_alias_ldouble_r.
27684 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27685 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27686
27687 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27688
27689 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27690 extern declaration.
27691
27692 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27693
27694 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27695
27696 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27697
27698 [BZ #21326]
27699 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27700 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27701 * math/Makefile (test-math-cxx11): New test.
27702 * math/test-math-cxx11.cc: New file.
27703
27704 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27705
27706 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27707
27708 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27709 call to allocate the slave pty file descriptor.
27710
27711 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27712
27713 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27714 [!__fma] (fma): Define using libm_alias_double.
27715 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27716 [!__fma] (fma): Define using libm_alias_double.
27717
27718 * sysdeps/ieee754/float128/float128_private.h: Include
27719 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27720 (libm_alias_ldouble_r): Undefine and redefine.
27721 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27722 <libm-alias-ldouble.h>.
27723 (asinhl): Define using libm_alias_ldouble.
27724 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27725 <libm-alias-ldouble.h>.
27726 (atanl): Define using libm_alias_ldouble.
27727 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27728 <libm-alias-ldouble.h>.
27729 (cbrtl): Define using libm_alias_ldouble.
27730 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27731 <libm-alias-ldouble.h>.
27732 (ceill): Define using libm_alias_ldouble.
27733 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27734 <libm-alias-ldouble.h>.
27735 (copysignl): Define using libm_alias_ldouble.
27736 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27737 <libm-alias-ldouble.h>.
27738 (cosl): Define using libm_alias_ldouble.
27739 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27740 <libm-alias-ldouble.h>.
27741 (erfl): Define using libm_alias_ldouble.
27742 (erfcl): Likewise.
27743 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27744 <libm-alias-ldouble.h>.
27745 (expm1l): Define using libm_alias_ldouble.
27746 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27747 <libm-alias-ldouble.h>.
27748 (fabsl): Define using libm_alias_ldouble.
27749 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27750 <libm-alias-ldouble.h>.
27751 (floorl): Define using libm_alias_ldouble.
27752 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27753 <libm-alias-ldouble.h>.
27754 (fmal): Define using libm_alias_ldouble.
27755 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27756 <libm-alias-ldouble.h>.
27757 (frexpl): Define using libm_alias_ldouble.
27758 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27759 libm_alias_ldouble.
27760 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27761 <libm-alias-ldouble.h>.
27762 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27763 libm_alias_ldouble.
27764 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27765 <libm-alias-ldouble.h>.
27766 (getpayloadl): Define using libm_alias_ldouble.
27767 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27768 <libm-alias-ldouble.h>.
27769 (llrintl): Define using libm_alias_ldouble.
27770 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27771 <libm-alias-ldouble.h>.
27772 (llroundl): Define using libm_alias_ldouble.
27773 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27774 <libm-alias-ldouble.h>.
27775 (logbl): Define using libm_alias_ldouble.
27776 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27777 <libm-alias-ldouble.h>.
27778 (lrintl): Define using libm_alias_ldouble.
27779 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27780 <libm-alias-ldouble.h>.
27781 (lroundl): Define using libm_alias_ldouble.
27782 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27783 <libm-alias-ldouble.h>.
27784 (modfl): Define using libm_alias_ldouble.
27785 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27786 <libm-alias-ldouble.h>.
27787 (nearbyintl): Define using libm_alias_ldouble.
27788 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27789 <libm-alias-ldouble.h>.
27790 (nextafterl): Define using libm_alias_ldouble.
27791 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27792 <libm-alias-ldouble.h>.
27793 (nextupl): Define using libm_alias_ldouble.
27794 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27795 <libm-alias-ldouble.h>.
27796 (remquol): Define using libm_alias_ldouble.
27797 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27798 <libm-alias-ldouble.h>.
27799 (rintl): Define using libm_alias_ldouble.
27800 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27801 <libm-alias-ldouble.h>.
27802 (roundevenl): Define using libm_alias_ldouble.
27803 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27804 <libm-alias-ldouble.h>.
27805 (roundl): Define using libm_alias_ldouble.
27806 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27807 using libm_alias_ldouble.
27808 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27809 <libm-alias-ldouble.h>.
27810 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27811 Define using libm_alias_ldouble.
27812 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27813 <libm-alias-ldouble.h>.
27814 (sincosl): Define using libm_alias_ldouble.
27815 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27816 <libm-alias-ldouble.h>.
27817 (sinl): Define using libm_alias_ldouble.
27818 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27819 <libm-alias-ldouble.h>.
27820 (tanhl): Define using libm_alias_ldouble.
27821 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27822 <libm-alias-ldouble.h>.
27823 (tanl): Define using libm_alias_ldouble.
27824 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27825 <libm-alias-ldouble.h>.
27826 (totalorderl): Define using libm_alias_ldouble.
27827 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27828 <libm-alias-ldouble.h>.
27829 (totalordermagl): Define using libm_alias_ldouble.
27830 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27831 <libm-alias-ldouble.h>.
27832 (truncl): Define using libm_alias_ldouble.
27833 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27834 libm_alias_ldouble.
27835 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27836 libm_alias_ldouble.
27837 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27838 <libm-alias-ldouble.h>.
27839 (weak_alias): Do not undefine and redefine.
27840 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27841 (copysignl): Define with long_double_symbol only if [IS_IN
27842 (libc)].
27843 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27844 <libm-alias-ldouble.h>.
27845 (weak_alias): Do not undefine and redefine.
27846 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27847 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27848 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27849 <libm-alias-ldouble.h>.
27850 (weak_alias): Do not undefine and redefine.
27851 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27852 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27853 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27854 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27855 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27856 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27857 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27858 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27859 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27860 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27861 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27862 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27863 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27864 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27865 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27866 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27867 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27868 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27869 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27870 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27871 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27872 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27873 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27874 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27875 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27876 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27877
27878 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27879
27880 [BZ #22111]
27881 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27882 (tcache_thread_freeres): Set tcache_shutting_down before
27883 freeing the tcache.
27884 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27885 * malloc/tst-malloc-tcache-leak.c: New file.
27886
27887 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27888
27889 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27890 back to powerpc32 file.
27891 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27892 (memrchr): Add __memrchr_power8 to ifunc list.
27893 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27894 extra bytes for unaligned inputs.
27895
27896 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27897
27898 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27899 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27900 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27901 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27902 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27903
27904 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27905
27906 * sysdeps/arm/libm-test-ulps: Update.
27907
27908 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27909 <libm-alias-ldouble.h>.
27910 (asinhl): Define using libm_alias_ldouble.
27911 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27912 <libm-alias-ldouble.h>.
27913 (cbrtl): Define using libm_alias_ldouble.
27914 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27915 <libm-alias-ldouble.h>.
27916 (copysignl): Define using libm_alias_ldouble.
27917 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27918 <libm-alias-ldouble.h>.
27919 (cosl): Define using libm_alias_ldouble.
27920 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27921 <libm-alias-ldouble.h>.
27922 (erfl): Define using libm_alias_ldouble.
27923 (erfcl): Likewise.
27924 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27925 <libm-alias-ldouble.h>.
27926 (fmal): Define using libm_alias_ldouble.
27927 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27928 <libm-alias-ldouble.h>.
27929 (frexpl): Define using libm_alias_ldouble.
27930 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27931 libm_alias_ldouble.
27932 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27933 <libm-alias-ldouble.h>.
27934 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27935 libm_alias_ldouble.
27936 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27937 <libm-alias-ldouble.h>.
27938 (getpayloadl): Define using libm_alias_ldouble.
27939 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27940 <libm-alias-ldouble.h>.
27941 (llrintl): Define using libm_alias_ldouble.
27942 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27943 <libm-alias-ldouble.h>.
27944 (llroundl): Define using libm_alias_ldouble.
27945 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27946 <libm-alias-ldouble.h>.
27947 (lrintl): Define using libm_alias_ldouble.
27948 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27949 <libm-alias-ldouble.h>.
27950 (lroundl): Define using libm_alias_ldouble.
27951 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27952 <libm-alias-ldouble.h>.
27953 (modfl): Define using libm_alias_ldouble.
27954 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27955 <libm-alias-ldouble.h>.
27956 (nextupl): Define using libm_alias_ldouble.
27957 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27958 <libm-alias-ldouble.h>.
27959 (remquol): Define using libm_alias_ldouble.
27960 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27961 <libm-alias-ldouble.h>.
27962 (roundevenl): Define using libm_alias_ldouble.
27963 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27964 <libm-alias-ldouble.h>.
27965 (roundl): Define using libm_alias_ldouble.
27966 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27967 using libm_alias_ldouble.
27968 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27969 <libm-alias-ldouble.h>.
27970 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27971 <libm-alias-ldouble.h>.
27972 (setpayloadsigl): Define using libm_alias_ldouble.
27973 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27974 <libm-alias-ldouble.h>.
27975 (sincosl): Define using libm_alias_ldouble.
27976 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27977 <libm-alias-ldouble.h>.
27978 (sinl): Define using libm_alias_ldouble.
27979 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27980 <libm-alias-ldouble.h>.
27981 (tanhl): Define using libm_alias_ldouble.
27982 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27983 <libm-alias-ldouble.h>.
27984 (tanl): Define using libm_alias_ldouble.
27985 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27986 <libm-alias-ldouble.h>.
27987 (totalorderl): Define using libm_alias_ldouble.
27988 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27989 <libm-alias-ldouble.h>.
27990 (totalordermagl): Define using libm_alias_ldouble.
27991 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27992 libm_alias_ldouble.
27993 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27994 libm_alias_ldouble.
27995
27996 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27997
27998 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27999 memmove_falkor.
28000 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
28001 (__libc_ifunc_impl_list): Likewise.
28002 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
28003 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
28004
28005 * benchtests/bench-memmove-walk.c: New file.
28006 * benchtests/Makefile (string-benchset): Add it.
28007
28008 * benchtests/bench-memset-walk.c: New file.
28009 * benchtests/Makefile (string-benchset): Add it.
28010
28011 * benchtests/bench-memcpy-walk.c: New file.
28012 * benchtests/Makefile (string-benchset): Add it.
28013
28014 2017-10-05 Florian Weimer <fweimer@redhat.com>
28015
28016 nscd: Eliminate compilation time dependency in the build output.
28017 * nscd/nscd_stat.c (STATDATA_VERSION)
28018 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
28019 (STATDATA_VERSION_FULL): New macro definitions.
28020 (compilation): Remove.
28021 (struct statdata): Adjust version member.
28022 (send_stats): Set version from STATDATA_VERSION_FULL.
28023 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
28024
28025 2017-10-05 Joseph Myers <joseph@codesourcery.com>
28026
28027 * configure.ac (--enable-add-ons): Remove option.
28028 (machine): Do not mention add-ons in comment.
28029 (LIBC_PRECONFIGURE): Likewise.
28030 (add_ons): Remove variable and sanity checks and logic to locate
28031 add-ons.
28032 (add_ons_automatic): Remove variable.
28033 (configured_add_ons): Likewise.
28034 (add_ons_sfx): Likewise.
28035 (add_ons_pfx): Likewise.
28036 (add_on_subdirs): Likewise.
28037 (sysnames_add_ons): Likewise. Remove loop over add-ons and
28038 consideration of add-ons in Implies handling.
28039 (sysdeps_add_ons): Likewise.
28040 * configure: Regenerated.
28041 * libidn/configure.ac: Remove.
28042 * libidn/configure: Likewise.
28043 * sysdeps/unix/inet/configure.ac: New file.
28044 * sysdeps/unix/inet/configure: New generated file.
28045 * sysdeps/unix/inet/Subdirs: Add libidn.
28046 * Makeconfig (sysdeps-srcdirs): Remove variable.
28047 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
28048 ($(common-objpfx)config.status): Do not depend on add-on files.
28049 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
28050 comment.
28051 (all-subdirs): Do not include $(add-on-subdirs).
28052 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
28053 * config.make.in (add-ons): Remove variable.
28054 (add-on-subdirs): Likewise.
28055 (sysdeps-add-ons): Likewise.
28056 * manual/Makefile (add-chapters): Remove.
28057 ($(objpfx)texis): Do not depend on $(add-chapters).
28058 (nonexamples): Do not handle $(add-chapters).
28059 (examples): Do not handle $(add-ons).
28060 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
28061 libc-texinfo.sh.
28062 * manual/install.texi (Installation): Do not mention add-ons.
28063 (--enable-add-ons): Do not document configure option.
28064 * INSTALL: Regenerated.
28065 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
28066 * manual/maint.texi (Hierarchy Conventions): Do not mention
28067 add-ons.
28068 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
28069 --enable-add-ons.
28070 * scripts/gen-sorted.awk: Do not handle Subdirs files from
28071 add-ons.
28072 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
28073 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
28074
28075 2017-10-05 Andreas Schwab <schwab@suse.de>
28076
28077 [BZ #15142]
28078 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
28079 (_IO_flush_all_lockp): Always lock list_all_lock.
28080 (_IO_flush_all_linebuffered): Likewise.
28081 (_IO_unbuffer_all): Likewise.
28082
28083 2017-10-05 Florian Weimer <fweimer@redhat.com>
28084
28085 [BZ #15436]
28086 Do not flush stdio streams on abort.
28087 * stdlib/abort.c (fflush): Remove macro definition.
28088 (abort): Remove stages related to stdio flushing.
28089
28090 2017-10-05 Florian Weimer <fweimer@redhat.com>
28091
28092 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
28093
28094 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
28095
28096 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
28097
28098 2017-10-05 Florian Weimer <fweimer@redhat.com>
28099
28100 * support/support_format_hostent.c (support_format_hostent): Add
28101 more error information for NETDB_INTERNAL.
28102
28103 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28104
28105 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
28106 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
28107 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
28108 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
28109 AC_DEFINE if multi-arch is enabled.
28110 * sysdeps/i386/configure: Regenerated.
28111
28112 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28113
28114 * Makeconfig (+link-static-before-libc): Use
28115 $(DEFAULT-LDFLAGS-$(@F)).
28116 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
28117 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
28118 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
28119
28120 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28121
28122 * elf/Makefile (tests): Add tst-main1.
28123 (modules-names): Add tst-main1mod.
28124 ($(objpfx)tst-main1): New.
28125 (CRT-tst-main1): Likewise.
28126 (LDFLAGS-tst-main1): Likewise.
28127 (LDLIBS-tst-main1): Likewise.
28128 (tst-main1mod.so-no-z-defs): Likewise.
28129 * elf/tst-main1.c: New file.
28130 * elf/tst-main1mod.c: Likewise.
28131
28132 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
28133
28134 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
28135
28136 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28137
28138 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
28139 (fma): Define using libm_alias_double.
28140 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
28141 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
28142 <math_ldbl_opt.h>.
28143 (fmal): Do not define as compat symbol here.
28144 * sysdeps/alpha/fpu/s_fma.c: New file.
28145
28146 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28147
28148 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28149
28150 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28151
28152 [BZ #22229]
28153 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28154 <math_ldbl_opt.h>
28155 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28156 and libc.
28157 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28158 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28159 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28160 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28161 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28162 Include <math_ldbl_opt.h>
28163 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28164 and libc.
28165 (compat_symbol): Undefine and redefine.
28166 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28167 <math_ldbl_opt.h>
28168 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28169 (compat_symbol): Undefine and redefine.
28170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28171 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28172 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28173 GLIBC_2_1 for libm.
28174 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28175 GLIBC_2.0 copysignl symbol.
28176 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28177 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28178
28179 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28180
28181 2017-10-04 Florian Weimer <fweimer@redhat.com>
28182
28183 * scripts/check-local-headers.sh: Ignore nspr4 header file
28184 directory in addition to nspr.
28185
28186 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28187
28188 [BZ #17956]
28189 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28190 * configure: Regenerate.
28191 * crypt/Makefile (nss-cpp-flags): New variable.
28192 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28193 (CPPFLAGS-md5-crypt.c): Use it.
28194 * scripts/check-local-headers.sh: Ignore nspr header file
28195 directory.
28196
28197 2017-10-04 Andreas Schwab <schwab@suse.de>
28198
28199 * nis/Makefile (services): Remove compat.
28200 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28201 ($(objpfx)libnss_compat.so): Remove rule.
28202 * nis/Versions (libnss_compat): Remove.
28203 * nss/Makefile (services): Add compat.
28204 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28205 * nss/Versions (libnss_compat): Define.
28206 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28207 Don't include <rpc/types.h>. Replace bool_t by bool.
28208 * nss/nss_compat/compat-initgroups.c: Likewise.
28209 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28210 instead of <rpcsrv/ypclnt.h>.
28211 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28212 yp_get_default_domain.
28213 * nss/nss_compat/compat-pwd.c: Likewise.
28214 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28215 yp_get_default_domain.
28216 * nss/nss_compat/nisdomain.c: New file.
28217 * nss/nss_compat/nisdomain.h: Likewise.
28218
28219 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28220
28221 [BZ #22244]
28222 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28223 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28224
28225 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28226
28227 [BZ #22243]
28228 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28229 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28230
28231 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28232
28233 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28234 "movl main@GOTOFF(%ebx), %eax".
28235
28236 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28237
28238 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28239 allow undefined _DYNAMIC in PIE libc.a.
28240 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28241 Likewse.
28242
28243 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28244
28245 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28246 check _DYNAMIC.
28247
28248 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28249
28250 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28251 check _DYNAMIC.
28252
28253 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28254
28255 * math/test-math-iscanonical.cc (error): Replace bool with int.
28256
28257 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28258
28259 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28260 (modf): Define using libm_alias_double, only if [!__modf].
28261 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28262 <libm-alias-double.h>.
28263 (modf): Define using libm_alias_double, only if [!__modf].
28264 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28265 compat symbol here.
28266 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28267 (weak_alias): Do not undefine and redefine.
28268 (strong_alias): Likewise.
28269 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28270 (weak_alias): Likewise.
28271 (strong_alias): Likewise.
28272
28273 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28274 (logb): Define using libm_alias_double, only if [!__logb].
28275 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28276 <libm-alias-double.h>.
28277 (logb): Define using libm_alias_double, only if [!__logb].
28278 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28279 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28280 (weak_alias): Do not undefine and redefine.
28281 (strong_alias): Likewise.
28282 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28283 (weak_alias): Likewise.
28284 (strong_alias): Likewise.
28285
28286 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28287
28288 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28289 Check SHARED instead PIC.
28290
28291 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28292
28293 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28294 [!__fmaf] (fmaf): Define using libm_alias_float.
28295
28296 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28297 (frexp): Define using libm_alias_double.
28298 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28299 <libm-alias-double.h>.
28300 (frexp): Define using libm_alias_double.
28301 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28302 compat symbol here.
28303
28304 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28305
28306 [BZ #22235]
28307 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28308 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28309 (CFLAGS-test-math-iscanonical.cc): New variable.
28310 * math/test-math-iscanonical.cc: New file.
28311 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28312 Provide a C++ implementation based on function overloading,
28313 rather than using __MATH_TG, which uses C-only builtins.
28314 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28315 Likewise.
28316 * sysdeps/powerpc/powerpc64le/Makefile
28317 (CFLAGS-test-math-iscanonical.cc): New variable.
28318
28319 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28320
28321 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28322 (ceil): Define using libm_alias_double.
28323 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28324 (floor): Define using libm_alias_double.
28325 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28326 <libm-alias-double.h>.
28327 (llround): Define using libm_alias_double.
28328 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28329 <libm-alias-double.h>.
28330 (lround): Define using libm_alias_double.
28331 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28332 <libm-alias-double.h>.
28333 (nearbyint): Define using libm_alias_double.
28334 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28335 <libm-alias-double.h>.
28336 (remquo): Define using libm_alias_double.
28337 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28338 (rint): Define using libm_alias_double.
28339 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28340 (round): Define using libm_alias_double.
28341 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28342 (trunc): Define using libm_alias_double.
28343 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28344 <libm-alias-double.h>.
28345 (ceil): Define using libm_alias_double.
28346 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28347 <libm-alias-double.h>.
28348 (floor): Define using libm_alias_double.
28349 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28350 <libm-alias-double.h>.
28351 (llround): Define using libm_alias_double.
28352 [_LP64] (lround): Likewise.
28353 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28354 <libm-alias-double.h>.
28355 [!_LP64] (lround): Define using libm_alias_double.
28356 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28357 <libm-alias-double.h>.
28358 (nearbyint): Define using libm_alias_double.
28359 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28360 <libm-alias-double.h>.
28361 (remquo): Define using libm_alias_double.
28362 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28363 <libm-alias-double.h>.
28364 (rint): Define using libm_alias_double.
28365 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28366 <libm-alias-double.h>.
28367 (round): Define using libm_alias_double.
28368 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28369 <libm-alias-double.h>.
28370 (trunc): Define using libm_alias_double.
28371 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28372 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28373 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28374 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28375 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28376 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28377 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28378 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28379 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28380
28381 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28382
28383 * math/w_remainder.c: New file.
28384 * math/w_remainderf.c: New file.
28385 * math/w_remainderl.c: New file.
28386
28387 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28388
28389 * elf/rtld.c (BOOTSTRAP_MAP): New.
28390 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28391 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28392 Likewise.
28393 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28394 Likewise.
28395 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28396 Likewise.
28397
28398 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28399
28400 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28401 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28402 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28403 rtld_hidden_data_ver): Define to empty.
28404 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28405 __assert_perror_fail): Likewise.
28406 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28407 (__rewinddir): Likewise.
28408 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28409 (__profile_frequency): Likewise.
28410 * include/setjmp.h (__sigsetjmp): Likewise.
28411 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28412 __libc_sigaction): Likewise.
28413 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28414 not set hidden attribute.
28415 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28416 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28417 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28418 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28419 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28420 __fxstatat64): Likewise.
28421 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28422 (__uname): Likewise.
28423 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28424 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28425 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28426 (NO_RTLD_HIDDEN): Set.
28427 * sysdeps/mach/hurd/configure: Refresh.
28428 * config.h.in: Refresh.
28429
28430 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28431
28432 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28433 (atan): Define using libm_alias_double.
28434 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28435 (tan): Define using libm_alias_double.
28436 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28437 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28438
28439 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28440 define as weak alias of __atan. Do not define any aliases if
28441 [__atan].
28442 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28443 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28444 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28445 as weak alias of __tan. Do not define any aliases if [__tan].
28446 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28447 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28448 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28449 __atan.
28450 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28451 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28452 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28453 and define as weak alias of __atan.
28454 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28455 __atan.
28456 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28457 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28458 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28459 define as weak alias of __tan.
28460
28461 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28462
28463 * math/w_lgamma.c: New file.
28464 * math/w_lgammaf.c: New file.
28465 * math/w_lgammal.c: New file.
28466
28467 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28468
28469 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28470 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28471 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28472 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28473 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28474 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28475 * sysdeps/i386/fpu/w_log2f.c: New file.
28476 * sysdeps/i386/fpu/w_logf.c: New file.
28477 * sysdeps/i386/fpu/w_powf.c: New file.
28478 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28479 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28480 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28481
28482 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28483 H.J. Lu <hongjiu.lu@intel.com>
28484
28485 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28486 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28487 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28488 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28489 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28490 the new expf code.
28491 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28492 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28493 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28494 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28495 * sysdeps/i386/fpu/w_exp2f.c: New file.
28496 * sysdeps/i386/fpu/w_expf.c: New file.
28497 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28498 * sysdeps/x86_64/fpu/w_expf.c: New file.
28499
28500 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28501
28502 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28503 (log2f): Likewise.
28504 (powf): Likewise.
28505 * math/w_log2f.c: New file.
28506 * math/w_logf.c: New file.
28507 * math/w_powf.c: New file.
28508 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28509 * math/w_logf_compat.c (__logf_compat): Likewise.
28510 * math/w_powf_compat.c (__powf_compat): Likewise.
28511 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28512 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28513 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28514 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28515 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28516 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28517 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28518 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28519 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28520 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28521 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28522 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28523 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28524 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28525 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28527 Likewise.
28528 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28529 Likewise.
28530 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28531 Likewise.
28532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28533 Likewise.
28534 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28535 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28536 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28537 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28538 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28539 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28540 Likewise.
28541 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28542 Likewise.
28543 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28544 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28545 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28546
28547 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28548
28549 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28550 (sysdep_routines): Add memrchr_power8.
28551 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28552 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28553 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28554 New file.
28555 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28556 (memrchr): Add __memrchr_power8 to ifunc list.
28557 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28558
28559 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28560
28561 [BZ #18822]
28562 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28563 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28564 libc_hidden_def.
28565 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28566 (__posix_fallocate64_l64): Likewise.
28567
28568 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28569
28570 [BZ #18822]
28571 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28572 (__sched_setaffinity_new): Add libc_hidden_proto and
28573 libc_hidden_def.
28574
28575 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28576
28577 [BZ #18822]
28578 * include/glob.h (__glob64): Add libc_hidden_proto.
28579 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28580 libc_hidden_def.
28581
28582 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28583
28584 [BZ #18822]
28585 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28586 attribute_hidden.
28587
28588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28589
28590 [BZ #18822]
28591 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28592
28593 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28594
28595 [BZ #18822]
28596 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28597 libc_hidden_def.
28598
28599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28600
28601 [BZ #18822]
28602 * csu/version.c (__libc_print_version): Add attribute_hidden.
28603
28604 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28605
28606 [BZ #18822]
28607 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28608
28609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28610
28611 [BZ #18822]
28612 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28613
28614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28615
28616 [BZ #18822]
28617 * nscd/nscd_helper.c (__nis_hash): New prototype.
28618
28619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28620
28621 [BZ #18822]
28622 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28623 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28624 libc_hidden_def.
28625 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28626 * termios/tcgetattr.c (__tcgetattr): Likewise.
28627
28628 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28629
28630 [BZ #18822]
28631 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28632 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28633 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28634 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28635 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28636
28637 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 [BZ #18822]
28640 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28641
28642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28643
28644 [BZ #18822]
28645 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28646 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28647
28648 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28649
28650 [BZ #18822]
28651 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28652
28653 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28654
28655 [BZ #18822]
28656 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28657 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28658
28659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28660
28661 [BZ #18822]
28662 * include/ifreq.h: New file.
28663 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28664 (__ifreq): Likewise.
28665 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28666 (__ifreq): Likewise.
28667
28668 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28669
28670 [BZ #18822]
28671 * include/idna.h: New file.
28672 * inet/getnameinfo.c: Include <idna.h> instead of
28673 <libidn/idna.h>.
28674 (__idna_to_unicode_lzlz): Removed.
28675 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28676 <libidn/idna.h>.
28677 (__idna_to_ascii_lz): Removed.
28678 (__idna_to_unicode_lzlz): Likewise.
28679
28680 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28681
28682 [BZ #18822]
28683 * include/plural-exp.h: New file.
28684 * intl/plural-exp.c: Include <plural-exp.h> instead of
28685 "plural-exp.h".
28686
28687 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28688
28689 [BZ #18822]
28690 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28691 "getsourcefilter.h".
28692 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28693 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28694 "getsourcefilter.h".
28695 (__get_sol): Removed.
28696
28697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28698
28699 [BZ #18822]
28700 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28701 to ...
28702 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28703
28704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28705
28706 [BZ #18822]
28707 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28708 attribute_hidden.
28709
28710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28711
28712 [BZ #18822]
28713 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28714
28715 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28716
28717 [BZ #18822]
28718 * include/search.h (__tdestroy): Add libc_hidden_proto.
28719 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28720
28721 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28722
28723 [BZ #18822]
28724 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28725
28726 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28727
28728 [BZ #18822]
28729 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28730 attribute_hidden.
28731
28732 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28733
28734 [BZ #18822]
28735 * include/signal.h (__kill): Add libc_hidden_proto.
28736 (__sigblock): Likewise.
28737 (__sigprocmask): Likewise.
28738 (__sigaltstack): Likewise.
28739 * signal/kill.c (__kill): Add libc_hidden_def.
28740 * signal/sigblock.c (__sigblock): Likewise.
28741 * signal/sigprocmask.c (__sigprocmask): Likewise.
28742 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28743 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28744 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28745 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28746 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28747 Likewise.
28748 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28749 Likewise.
28750 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28751 (__sigprocmask): Likewise.
28752 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28753 Likewise.
28754 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28755 (__sigprocmask): Likewise.
28756 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28757 Likewise.
28758
28759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28760
28761 [BZ #18822]
28762 * include/string.h (__strsep): Add libc_hidden_proto.
28763 * string/strsep.c (__strsep): Add libc_hidden_def.
28764
28765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28766
28767 [BZ #18822]
28768 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28769 attribute_hidden.
28770 (__spawni): Likewise.
28771
28772 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28773
28774 [BZ #18822]
28775 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28776 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28777 libc_hidden_def.
28778
28779 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28780
28781 [BZ #18822]
28782 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28783
28784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28785
28786 [BZ #18822]
28787 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28788 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28789 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28790 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28791 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28792 Likewise.
28793 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28794 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28795
28796 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28797
28798 [BZ #18822]
28799 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28800 (__dcigettext): Likewise.
28801
28802 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28803
28804 [BZ #18822]
28805 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28806 libc_hidden_proto.
28807 (__get_nprocs): Likewise.
28808 (__get_phys_pages): Likewise.
28809 (__get_avphys_pages): Likewise.
28810 (__get_child_max): Add attribute_hidden.
28811 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28812 (__get_nprocs): Likewise.
28813 (__get_phys_pages): Likewise.
28814 (__get_avphys_pages): Likewise.
28815 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28816 libc_hidden_def.
28817 (__get_nprocs): Likewise.
28818 (__get_phys_pages): Likewise.
28819 (__get_avphys_pages): Likewise.
28820 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28821 libc_hidden_def.
28822 (__get_nprocs_conf): Likewise.
28823 (__get_phys_pages): Likewise.
28824 (__get_avphys_pages): Likewise.
28825
28826 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28827
28828 [BZ #18822]
28829 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28830 attribute_hidden.
28831 (__netlink_close): Likewise.
28832 (__netlink_free_handle): Likewise.
28833 (__netlink_request): Likewise.
28834
28835 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28836
28837 [BZ #18822]
28838 * include/rpc/rpc.h (__rpc_thread_variables): Add
28839 attribute_hidden.
28840 (__rpc_thread_svc_cleanup): Likewise.
28841 (__rpc_thread_clnt_cleanup): Likewise.
28842 (__rpc_thread_key_cleanup): Likewise.
28843
28844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28845
28846 [BZ #18822]
28847 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28848 (__writev): Likewise.
28849 * misc/readv.c (__readv): Add libc_hidden_def.
28850 * misc/writev.c (__writev): Likewise.
28851 * sysdeps/posix/readv.c (__readv): Likewise.
28852 * sysdeps/posix/writev.c (__writev): Likewise.
28853 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28854 (__readv): Likewise.
28855 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28856 (__writev): Likewise.
28857
28858 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28859
28860 [BZ #18822]
28861 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28862 (__regcomp): Add libc_hidden_proto.
28863 (__regexec): Likewise.
28864 (__regfree): Likewise.
28865 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28866 (__regfree): Likewise.
28867 * posix/regexec.c (__regexec): Likewise.
28868
28869 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28870
28871 [BZ #18822]
28872 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28873 (__getutent): Likewise.
28874 (__getutid): Likewise.
28875 (__getutline): Likewise.
28876 (__pututline): Likewise.
28877 (__getutent_r): Likewise.
28878 (__getutid_r): Likewise.
28879 (__getutline_r): Likewise.
28880 (__utmpname): Add attribute_hidden.
28881 (__setutent): Likewise.
28882 (__endutent): Likewise.
28883 * login/getutent.c (__getutent): Add libc_hidden_def.
28884 * login/getutent_r.c (__getutent_r): Likewise.
28885 (__pututline): Likewise.
28886 * login/getutid.c (__getutid): Likewise.
28887 * login/getutid_r.c (__getutid_r): Likewise.
28888 * login/getutline.c (__getutline): Likewise.
28889 * login/getutline_r.c (__getutline_r): Likewise.
28890 * login/updwtmp.c (__updwtmp): Likewise.
28891
28892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28893
28894 [BZ #18822]
28895 * include/dirent.h (__opendir): Always add attribute_hidden.
28896 (__fdopendir): Likewise.
28897 (__closedir): Likewise.
28898 (__readdir): Likewise.
28899 (__readdir64): Add libc_hidden_proto.
28900 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28901 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28902 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28903 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28904 New alias.
28905
28906 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28907
28908 [BZ #18822]
28909 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28910 * include/netdb.h (__gethostbyaddr_r): Likewise.
28911 (__gethostbyname_r): Likewise.
28912 (__gethostbyname2_r): Likewise.
28913 (__getnetbyaddr_r): Likewise.
28914 (__getnetbyname_r): Likewise.
28915 (__getservbyname_r): Likewise.
28916 (__getservbyport_r): Likewise.
28917 (__getprotobyname_r): Likewise.
28918 (__getprotobynumber_r): Likewise.
28919 (__getnetgrent_r): Likewise.
28920 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28921 (__getrpcbynumber_r): Likewise.
28922 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28923
28924 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28925
28926 [BZ #18822]
28927 * include/stdio.h (__fcloseall): Add attribute_hidden.
28928 (__getline): Likewise.
28929 (__path_search): Likewise.
28930 (__gen_tempname): Likewise.
28931 (__libc_message): Likewise.
28932 (__flockfile): Likewise.
28933 (__funlockfile): Likewise.
28934 (__fxprintf): Likewise.
28935 (__fxprintf_nocancel): Likewise.
28936
28937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28938
28939 [BZ #18822]
28940 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28941 (__sgetsgent_r): Likewise.
28942
28943 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28944
28945 [BZ #18822]
28946 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28947 (__statfs64): Likewise.
28948 (__fstatfs64): Likewise.
28949 * include/sys/statvfs.h (__statvfs64): Likewise.
28950 (__fstatvfs64): Likewise.
28951 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28952 (__statfs_filesize_max): Likewise.
28953 (__statfs_symlinks): Likewise.
28954 (__statfs_chown_restricted): Likewise.
28955
28956 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28957
28958 [BZ #18822]
28959 * include/time.h (__tzstring): Add attribute_hidden.
28960 (__tzfile_read): Likewise.
28961 (__tzfile_compute): Likewise.
28962 (__tzfile_default): Likewise.
28963 (__tzset_parse_tz): Likewise.
28964 (__offtime): Likewise.
28965 (__asctime_r): Likewise.
28966 (__tzset): Likewise.
28967 (__tz_convert): Likewise.
28968 (__getdate_r): Likewise.
28969 (__getclktck): Likewise.
28970
28971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28972
28973 [BZ #18822]
28974 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28975 (__nscd_unmap): Likewise.
28976 (__nscd_cache_search): Likewise.
28977 (__nscd_get_nl_timestamp): Likewise.
28978 (__nscd_getpwnam_r): Likewise.
28979 (__nscd_getpwuid_r): Likewise.
28980 (__nscd_getgrnam_r): Likewise.
28981 (__nscd_getgrgid_r): Likewise.
28982 (__nscd_gethostbyname_r): Likewise.
28983 (__nscd_gethostbyname2_r): Likewise.
28984 (__nscd_gethostbyaddr_r): Likewise.
28985 (__nscd_getai): Likewise.
28986 (__nscd_getgrouplist): Likewise.
28987 (__nscd_getservbyname_r): Likewise.
28988 (__nscd_getservbyport_r): Likewise.
28989 (__nscd_innetgr): Likewise.
28990 (__nscd_setnetgrent): Likewise.
28991
28992 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28993
28994 [BZ #18822]
28995 * include/gmp.h: Declare internal functions only if _ISOMAC is
28996 undefined.
28997 (__mpn_extract_double): Add attribute_hidden.
28998 (__mpn_extract_long_double): Likewise.
28999 (__mpn_extract_float128): Likewise.
29000 (__mpn_construct_float): Likewise.
29001 (__mpn_construct_double): Likewise.
29002 (__mpn_construct_long_double): Likewise.
29003 (__mpn_construct_float128): Likewise.
29004 (mpn_add_1): Likewise.
29005 (mpn_addmul_1): Likewise.
29006 (mpn_add_n): Likewise.
29007 (mpn_cmp): Likewise.
29008 (mpn_divrem): Likewise.
29009 (mpn_lshift): Likewise.
29010 (mpn_mul): Likewise.
29011 (mpn_mul_1): Likewise.
29012 (mpn_rshift): Likewise.
29013 (mpn_sub_1): Likewise.
29014 (mpn_submul_1): Likewise.
29015 (mpn_sub_n): Likewise.
29016
29017 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29018
29019 [BZ #18822]
29020 * include/wchar.h (__wcsnlen): Add attribute_hidden.
29021 (__wcscat): Likewise.
29022 (__btowc): Likewise.
29023 (__wcrtomb): Likewise.
29024 (__mbsrtowcs): Likewise.
29025 (__wcsrtombs): Likewise.
29026 (__mbsnrtowcs): Likewise.
29027 (__wcsnrtombs): Likewise.
29028 (__wcsncpy): Likewise.
29029 (__wcpncpy): Likewise.
29030 (__wmemcpy): Likewise.
29031 (__wmempcpy): Likewise.
29032 (__wmemmove): Likewise.
29033 (__wcschrnul): Likewise.
29034 (__vfwscanf): Likewise.
29035 (__vswprintf): Likewise.
29036 (__fwprintf): Likewise.
29037 (__vfwprintf): Likewise.
29038
29039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29040
29041 [BZ #18822]
29042 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
29043 (__getgrgid_r): Likewise.
29044 (__getgrnam_r): Likewise.
29045 * include/pwd.h (__getpwuid_r): Likewise.
29046 (__getpwnam_r): Likewise.
29047 (__fgetpwent_r): Likewise.
29048 * include/shadow.h (__getspnam_r): Likewise.
29049 (__sgetspent_r): Likewise.
29050 (__fgetspent_r): Likewise.
29051
29052 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29053
29054 [BZ #18822]
29055 * include/unistd.h (__access): Add attribute_hidden.
29056 (__lseek64): Likewise.
29057 (__libc_pread64): Likewise.
29058 (__pipe2): Likewise.
29059 (__sleep): Likewise.
29060 (__chdir): Likewise.
29061 (__fchdir): Likewise.
29062 (__getcwd): Likewise.
29063 (__rmdir): Likewise.
29064 (__execvpe): Likewise.
29065 (__execve): Likewise.
29066 (__setsid): Likewise.
29067 (__getuid): Likewise.
29068 (__geteuid): Likewise.
29069 (__getgid): Likewise.
29070 (__getegid): Likewise.
29071 (__getgroups): Likewise.
29072 (__group_member): Likewise.
29073 (__ttyname_r): Likewise.
29074 (__isatty): Likewise.
29075 (__readlink): Likewise.
29076 (__unlink): Likewise.
29077 (__gethostname): Likewise.
29078 (__profil): Likewise.
29079 (__getdtablesize): Likewise.
29080 (__brk): Likewise.
29081 (__ftruncate): Likewise.
29082 (__ftruncate64): Likewise.
29083
29084 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29085
29086 [BZ #18822]
29087 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
29088 * argp/argp-fs-xinl.c: Likewise.
29089 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
29090 * argp/argp-parse.c: Include <argp.h>.
29091 * argp/argp-xinl.c: Likewise.
29092 * include/argp-fmtstream.h: New file.
29093 * include/argp.h (__argp_error): Add attribute_hidden.
29094 (__argp_failure): Likewise.
29095 (__argp_input): Likewise.
29096 (__argp_state_help): Likewise.
29097
29098 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29099
29100 [BZ #18822]
29101 * include/wchar.h (____wcstof_l_internal): New prototype.
29102 (____wcstod_l_internal): Likewise.
29103 (____wcstold_l_internal): Likewise.
29104 (____wcstol_l_internal): Likewise.
29105 (____wcstoul_l_internal): Likewise.
29106 (____wcstoll_l_internal): Likewise.
29107 (____wcstoull_l_internal): Likewise.
29108 (____wcstof128_l_internal): Likewise.
29109 * sysdeps/ieee754/float128/wcstof128.c
29110 (____wcstof128_l_internal): Removed.
29111 * sysdeps/ieee754/float128/wcstof128_l.c
29112 (____wcstof128_l_internal): Likewise.
29113 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
29114 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
29115 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
29116 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
29117 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
29118 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
29119 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
29120 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
29121 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
29122 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
29123
29124 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29125
29126 [BZ #18822]
29127 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
29128 instead of <sys/statvfs.h>.
29129 (__internal_statvfs): Removed.
29130 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
29131 instead of <sys/statvfs.h>.
29132 (__internal_statvfs64): Removed.
29133 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
29134 "internal_statvfs.h" instead of <sys/statvfs.h>.
29135 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
29136 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
29137 instead of <sys/statvfs.h>.
29138 (__internal_statvfs): Removed.
29139 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
29140 instead of <sys/statvfs.h>.
29141 (__internal_statvfs64): Removed.
29142
29143 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29144
29145 [BZ #18822]
29146 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29147 (__gconv_close): Likewise.
29148 (__gconv): Likewise.
29149 (__gconv_find_transform): Likewise.
29150 (__gconv_lookup_cache): Likewise.
29151 (__gconv_compare_alias_cache): Likewise.
29152 (__gconv_load_cache): Likewise.
29153 (__gconv_get_path): Likewise.
29154 (__gconv_close_transform): Likewise.
29155 (__gconv_release_cache): Likewise.
29156 (__gconv_find_shlib): Likewise.
29157 (__gconv_release_shlib): Likewise.
29158 (__gconv_get_builtin_trans): Likewise.
29159 (__gconv_compare_alias): Likewise.
29160 * include/dlfcn.h (_dlerror_run): Likewise.
29161 * include/stdio.h (__fortify_fail_abort): Likewise.
29162 * include/time.h (__tz_compute): Likewise.
29163 (__strptime_internal): Likewise.
29164 * intl/gettextP.h (_nl_find_domain): Likewise.
29165 (_nl_load_domain): Likewise.
29166 (_nl_find_msg): Likewise.
29167 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29168 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29169 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29170 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29171 (__gai_find_request): Likewise.
29172 (__gai_remove_request): Likewise.
29173 (__gai_notify): Likewise.
29174 (__gai_notify_only): Likewise.
29175 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29176 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29177 (_dl_non_dynamic_init): Likewise.
29178 (_dl_aux_init): Likewise.
29179 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29180 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29181 Likewise.
29182 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29183 (__wcsmbs_clone_conv): Likewise.
29184 (__wcsmbs_named_conv): Likewise.
29185
29186 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29187
29188 [BZ #18822]
29189 * include/stdlib.h (__random): Add attribute_hidden.
29190 (__random_r): Likewise.
29191 (__srandom_r): Likewise.
29192 (__initstate_r): Likewise.
29193 (__setstate_r): Likewise.
29194 (__erand48_r): Likewise.
29195 (__nrand48_r): Likewise.
29196 (__jrand48_r): Likewise.
29197 (__srand48_r): Likewise.
29198 (__seed48_r): Likewise.
29199 (__lcong48_r): Likewise.
29200 (__drand48_iterate): Likewise.
29201 (__setenv): Likewise.
29202 (__unsetenv): Likewise.
29203 (__clearenv): Likewise.
29204 (__ptsname_r): Likewise.
29205 (__posix_openpt): Likewise.
29206 (__add_to_environ): Likewise.
29207 (__realpath): Add libc_hidden_proto.
29208 (__ecvt_r): Likewise.
29209 (__fcvt_r): Likewise.
29210 (__qecvt_r): Likewise.
29211 (__qfcvt_r): Likewise.
29212 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29213 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29214
29215 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29216
29217 [BZ #18822]
29218 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29219 * include/time.h (__mktime_internal): Likewise.
29220 * libio/iolibio.h (__fopen_internal): Likewise.
29221
29222 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29223
29224 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29225 pointer in frame.
29226 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29227 Correct offset used to restore PIC register.
29228
29229 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29230
29231 [BZ libc/22165]
29232 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29233 code to load address of __getcontext_ret when generating PIC code.
29234
29235 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29236
29237 * elf/Makefile (tests-static-internal): Add
29238 tst-tls1-static-non-pie.
29239 (LDFLAGS-tst-tls1-static-non-pie): New.
29240 * elf/tst-tls1-static-non-pie.c: New file.
29241
29242 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29243
29244 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29245 (asinh): Define using libm_alias_double.
29246 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29247 (cbrt): Define using libm_alias_double.
29248 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29249 <libm-alias-double.h>.
29250 (copysign): Define using libm_alias_double.
29251 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29252 (erf): Define using libm_alias_double.
29253 (erfc): Likewise.
29254 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29255 (expm1): Define using libm_alias_double.
29256 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29257 (fabs): Define using libm_alias_double.
29258 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29259 libm_alias_double.
29260 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29261 <libm-alias-double.h>.
29262 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29263 libm_alias_double.
29264 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29265 <libm-alias-double.h>.
29266 (getpayload): Define using libm_alias_double.
29267 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29268 <libm-alias-double.h>.
29269 (llrint): Define using libm_alias_double.
29270 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29271 (lrint): Define using libm_alias_double.
29272 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29273 <libm-alias-double.h>.
29274 (nextup): Define using libm_alias_double.
29275 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29276 <libm-alias-double.h>.
29277 (roundeven): Define using libm_alias_double.
29278 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29279 libm_alias_double.
29280 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29281 <libm-alias-double.h>.
29282 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29283 using libm_alias_double.
29284 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29285 (cos): Define using libm_alias_double.
29286 (sin): Likewise.
29287 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29288 <libm-alias-double.h>.
29289 (sincos): Define using libm_alias_double.
29290 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29291 (tanh): Define using libm_alias_double.
29292 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29293 <libm-alias-double.h>.
29294 (totalorder): Define using libm_alias_double.
29295 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29296 <libm-alias-double.h>.
29297 (totalordermag): Define using libm_alias_double.
29298 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29299 libm_alias_double.
29300 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29301 libm_alias_double.
29302 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29303 <libm-alias-double.h>.
29304 (getpayload): Define using libm_alias_double.
29305 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29306 <libm-alias-double.h>.
29307 (roundeven): Define using libm_alias_double.
29308 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29309 <libm-alias-double.h>.
29310 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29311 <libm-alias-double.h>.
29312 (totalorder): Define using libm_alias_double.
29313 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29314 <libm-alias-double.h>.
29315 (totalordermag): Define using libm_alias_double.
29316 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29317 libc compat symbol here.
29318 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29319 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29320 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29321 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29322 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29323 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29324 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29325 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29326 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29327 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29328
29329 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29330
29331 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29332 _dl_relocate_static_pie instead of _dl_start to compute load
29333 address in static PIE. Return 0 if _DYNAMIC is undefined for
29334 static executable.
29335
29336 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29337
29338 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29339 _DYNAMIC is undefined for static executable.
29340
29341 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29342
29343 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29344
29345 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29346
29347 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29348
29349 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29350
29351 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29352 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29353 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29354 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29355 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29356 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29357 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29358 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29359 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29360 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29361 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29362 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29363 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29364 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29365 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29366 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29367 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29368
29369 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29370
29371 * math/bits/cmathcalls.h (cimag): Remove inline.
29372 (creal): Remove inline.
29373 (conj): Remove inline.
29374
29375 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29376
29377 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29378 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29379 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29380 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29381 (issignalingf_inline): Likewise.
29382 (POWF_LOG2_TABLE_BITS): Likewise.
29383 (POWF_LOG2_POLY_ORDER): Likewise.
29384 (POWF_SCALE_BITS): Likewise.
29385 (POWF_SCALE): Likewise.
29386 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29387 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29388 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29389
29390 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29391
29392 * math/Makefile (type-float-routines): Add e_log2f_data.
29393 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29394 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29395 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29396 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29397 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29398 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29399 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29400
29401 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29402
29403 * math/Makefile (type-float-routines): Add e_logf_data.
29404 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29405 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29406 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29407 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29408 * sysdeps/i386/fpu/e_logf_data.c: New file.
29409 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29410 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29411
29412 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29413
29414 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29415 undefined _DYNAMIC in PIE libc.a.
29416 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29417 Likewse.
29418
29419 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29420
29421 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29422 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29423 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29424 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29425 (__signbit): Remove.
29426 (__signbitl): Remove.
29427 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29428 (__signbit): Remove.
29429 (__signbitl): Remove.
29430 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29431 (__signbit): Remove.
29432 (__signbitl): Remove.
29433 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29434 (__signbit): Remove.
29435 (__signbitl): Remove.
29436 * sysdeps/tile/bits/mathinline.h: Delete file.
29437 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29438 (__signbit): Remove.
29439 (__signbitl): Remove.
29440
29441 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29442
29443 * math/math.h: Improve handling of C99 isgreater macros.
29444 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29445 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29446 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29447 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29448 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29449
29450 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29451
29452 * sysdeps/aarch64/libm-test-ulps: Update.
29453
29454 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29455
29456 [BZ #22225]
29457 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29458 math_opt_barrier on argument when doing arithmetic on it.
29459 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29460 Likewise. Use math_force_eval not math_opt_barrier after
29461 arithmetic.
29462 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29463 math_opt_barrier on argument when doing arithmetic on it.
29464 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29465 Likewise.
29466
29467 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29468
29469 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29470 libc_hidden_def.
29471 (__freeifaddrs): Likewise.
29472
29473 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29474
29475 * include/dirent.h (__dirfd): New declaration.
29476 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29477 alias.
29478 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29479 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29480 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29481 * include/unistd.h (__revoke): New declaration.
29482 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29483 alias.
29484 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29485 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29486 revoke.
29487 * include/dirent.h (__seekdir): New declaration.
29488 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29489 redefine as weak alias.
29490 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29491 of seekdir.
29492 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29493 and use libc_hidden_def on them.
29494 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29495 them.
29496 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29497 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29498 instead of getifaddrs and freeifaddrs.
29499
29500 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29501
29502 [BZ #18822]
29503 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29504 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29505 (__dso_handle): Remove declaration.
29506 * dlfcn/tstatexit.c (__dso_handle): Removed.
29507 (main): Don't check __dso_handle.
29508 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29509 (main): Don't check __dso_handle.
29510 * include/dso_handle.h: New file.
29511 * malloc/mtrace.c: Include <dso_handle.h>.
29512 (mtrace): Pass __dso_handle directly.
29513 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29514 (__dso_handle): Remove declaration.
29515 (__pthread_atfork): Pass __dso_handle directly.
29516 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29517 (__dso_handle): Removed.
29518 * posix/wordexp-test.c: Include <dso_handle.h>.
29519 (__dso_handle): Remove declaration.
29520 (__app_register_atfork): Pass __dso_handle directly.
29521 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29522 (__dso_handle): Remove declaration.
29523 (at_quick_exit): Pass __dso_handle directly.
29524 * stdlib/atexit.c: Include <dso_handle.h>.
29525 (__dso_handle): Remove declaration.
29526 (atexit): Pass __dso_handle directly.
29527 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29528 (__dso_handle): Removed.
29529
29530 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29531
29532 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29533 using VDSO.
29534
29535 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29536
29537 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29538 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29539 values to correct default value for given type.
29540
29541 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29542
29543 [BZ #22101]
29544 * elf/Makefile (tests): Add tst-debug1.
29545 ($(objpfx)tst-debug1): New.
29546 ($(objpfx)tst-debug1.out): Likewise.
29547 ($(objpfx)tst-debug1mod1.so): Likewise.
29548 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29549 with p_filesz == 0.
29550 * elf/tst-debug1.c: New file.
29551
29552 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29553
29554 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29555 Define using __ifunc.
29556
29557 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29558
29559 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29560 exp2f() values.
29561
29562 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29563
29564 [BZ #22156]
29565 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29566
29567 2017-09-26 Florian Weimer <fweimer@redhat.com>
29568
29569 * resolv/Makefile (tests-internal): Fix typo in comment.
29570
29571 2017-09-26 Florian Weimer <fweimer@redhat.com>
29572
29573 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29574
29575 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29576
29577 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29578 Use an union instead of a max_align_t array for __space,
29579 so that __space is the same size on all platforms.
29580 * malloc/scratch_buffer_grow_preserve.c
29581 (__libc_scratch_buffer_grow_preserve): Likewise.
29582
29583 [BZ #22183]
29584 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29585 version to 2.
29586 * posix/Makefile (routines): Add glob-lstat-compat and
29587 glob64-lstat-compat.
29588 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29589 * posix/glob-lstat-compat.c: New file.
29590 * posix/glob64-lstat-compat.c: Likewise.
29591 * posix/tst-glob_lstat_compat.c: Likewise.
29592 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29593 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29594 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29595 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29596 Likewise.
29597 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29598 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29599 * posix/glob.c (glob_lstat): New function.
29600 (glob): Rename to __glob and add versioned symbol to 2.27.
29601 (glob_in_dir): Use glob_lstat.
29602 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29603 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29604 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29605 2.27.
29606 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29607 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29608 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29609 gl_lstat on glob call.
29610 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29611 and glob64 symbols.
29612 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29613 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29614 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29615 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29616 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29617 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29618 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29619 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29620 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29621 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29622 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29623 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29624 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29625 Likewise.
29626 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29628 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29629 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29630 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29631 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29632 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29633 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29634 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29635 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29636 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29637 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29638
29639 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29640
29641 * configure.ac (AS): Require binutils 2.25 or later.
29642 * configure: Regenerated.
29643
29644 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29645
29646 [BZ #22207]
29647 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29648 VM size.
29649
29650 2017-09-25 DJ Delorie <dj@redhat.com>
29651
29652 [BZ #22161]
29653 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29654 resetting timeout.
29655
29656 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29657
29658 * sysdeps/ieee754/dbl-64/sincos32.h
29659 [SINCCOS32_H]: Remove define.
29660 [SINCOS32_H]: Define.
29661
29662 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29663
29664 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29665 (exp2f): Likewise.
29666 * math/w_exp2f.c: New file.
29667 * math/w_expf.c: New file.
29668 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29669 * math/w_expf_compat.c (__expf_compat): Likewise.
29670 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29671 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29672 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29673 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29674 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29675 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29676 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29677 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29678 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29679 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29680 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29681 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29682 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29683 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29685 Likewise.
29686 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29687 Likewise.
29688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29689 Likewise.
29690 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29691 Likewise.
29692 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29693 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29694 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29695 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29696 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29697 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29698 Likewise.
29699 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29700 Likewise.
29701 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29702 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29703 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29704
29705 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29706
29707 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29708 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29709 (roundtoint, converttoint): Likewise.
29710 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29711 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29712 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29713 * sysdeps/ieee754/flt-32/math_config.h: New file.
29714 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29715 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29716 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29717 * sysdeps/i386/fpu/math_errf.c: New file.
29718 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29719 * sysdeps/ia64/fpu/math_errf.c: New file.
29720 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29721 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29722
29723 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29724
29725 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29726 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29727 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29728 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29729 to make sure that these symbols are defined.
29730 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29731 of <limits.h>
29732 (__need_NULL): Do not define.
29733 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29734 alignment.
29735 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29736 CMGROUP_MAX, cmsgcred): Do not define.
29737 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29738 NULL.
29739 * bits/socket.h: Likewise.
29740 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29741 __gettimeofday instead of gettimeofday.
29742 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29743 instead of settimeofday.
29744
29745 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29746
29747 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29748 (asinhf): Define using libm_alias_float.
29749 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29750 (atanf): Define using libm_alias_float.
29751 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29752 (cbrtf): Define using libm_alias_float.
29753 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29754 (ceilf): Define using libm_alias_float.
29755 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29756 <libm-alias-float.h>.
29757 (copysignf): Define using libm_alias_float.
29758 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29759 (cosf): Define using libm_alias_float.
29760 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29761 (erff): Define using libm_alias_float.
29762 (erfcf): Likewise.
29763 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29764 (expm1f): Define using libm_alias_float.
29765 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29766 (fabsf): Define using libm_alias_float.
29767 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29768 (floorf): Define using libm_alias_float.
29769 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29770 (frexpf): Define using libm_alias_float.
29771 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29772 libm_alias_float.
29773 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29774 <libm-alias-float.h>.
29775 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29776 libm_alias_float.
29777 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29778 <libm-alias-float.h>.
29779 (getpayloadf): Define using libm_alias_float.
29780 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29781 <libm-alias-float.h>.
29782 (llrintf): Define using libm_alias_float.
29783 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29784 <libm-alias-float.h>.
29785 (llroundf): Define using libm_alias_float.
29786 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29787 (logbf): Define using libm_alias_float.
29788 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29789 (lrintf): Define using libm_alias_float.
29790 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29791 (lroundf): Define using libm_alias_float.
29792 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29793 (modff): Define using libm_alias_float.
29794 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29795 <libm-alias-float.h>.
29796 (nearbyintf): Define using libm_alias_float.
29797 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29798 <libm-alias-float.h>.
29799 (nextafterf): Define using libm_alias_float.
29800 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29801 <libm-alias-float.h>.
29802 (nextupf): Define using libm_alias_float.
29803 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29804 <libm-alias-float.h>.
29805 (remquof): Define using libm_alias_float.
29806 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29807 (rintf): Define using libm_alias_float.
29808 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29809 <libm-alias-float.h>.
29810 (roundevenf): Define using libm_alias_float.
29811 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29812 (roundf): Define using libm_alias_float.
29813 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29814 using libm_alias_float.
29815 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29816 <libm-alias-float.h>.
29817 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29818 Define using libm_alias_float.
29819 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29820 <libm-alias-float.h>.
29821 (sincosf): Define using libm_alias_float.
29822 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29823 (sinf): Define using libm_alias_float.
29824 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29825 (tanf): Define using libm_alias_float.
29826 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29827 (tanhf): Define using libm_alias_float.
29828 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29829 <libm-alias-float.h>.
29830 (totalorderf): Define using libm_alias_float.
29831 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29832 <libm-alias-float.h>.
29833 (totalordermagf): Define using libm_alias_float.
29834 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29835 (truncf): Define using libm_alias_float.
29836 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29837 libm_alias_float.
29838 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29839 libm_alias_float.
29840
29841 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29842
29843 [BZ #22146]
29844 math/math.h: Let fpclassify use the builtin in C++ mode, even
29845 when optimazing for size.
29846
29847 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29848
29849 * csu/Makefile (generated): Do not add version-info.h.
29850 (before-compile): Likewise.
29851 (all-Banner-files): Remove variable.
29852 ($(objpfx)version-info.h): Remove rule.
29853 * csu/version.c (banner): Do not include "version-info.h".
29854 * libidn/Banner: Remove.
29855 * manual/contrib.texi (Simon Josefsson): New entry.
29856
29857 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29858
29859 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29860 Remove conditionals on LDBL_MANT_DIG.
29861 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29862 (__ieee754_lgammal_r): Likewise.
29863
29864 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29865
29866 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29867 _Float128 and L().
29868 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29869 _Float128 and L(). Replace _Float128 with long double and L(x)
29870 with xL, throughout the file.
29871 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29872 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29873 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29874 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29875
29876 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29877
29878 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29879 sysdeps/ieee754/ldbl-128ibm.
29880 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29881 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29882 of including it. Keep _Float128 and L() intact. These will be
29883 reviewed by a separate patch.
29884 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29885 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29886 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29887 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29888
29889 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29890
29891 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29892 (__finitef128): Define to __redirect___finitef128.
29893 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29894 (__isinff128): Define to __redirect___isinff128.
29895 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29896 (__isnanf128): Define to __redirect___isnanf128.
29897
29898 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29899
29900 * sysdeps/powerpc/powerpc64le/Makefile
29901 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29902 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29903
29904 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29905 Carlos O'Donell <carlos@redhat.com>
29906
29907 [BZ #22180]
29908 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29909 * stdlib/test-dlclose-exit-race.c: New file.
29910 * stdlib/test-dlclose-exit-race-helper.c: New file.
29911 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29912
29913 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29914
29915 * crypt/Banner: Remove file.
29916 * nptl/Banner: Likewise.
29917 * resolv/Banner: Likewise.
29918 * soft-fp/Banner: Likewise.
29919 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29920 ($(objpfx)version.d): Remove dependency on banner.h.
29921 ($(objpfx)version.os): Likewise.
29922 * nptl/version.c (banner): Do not include banner.h.
29923 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29924 Jelinek and BIND code.
29925
29926 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29927 Carlos O'Donell <carlos@redhat.com>
29928
29929 * support/xdlfcn.h: New file.
29930 * support/xdlfcn.c: New file.
29931 * support/Makefile (libsupport-routines): Add xdlfcn.
29932 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29933
29934 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29935
29936 [BZ #20142]
29937 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29938 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29939 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29940 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29941 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29942 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29943 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29944 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29945
29946 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29947 Ricky Zhou <rickyz@google.com>
29948 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29949
29950 [BZ #14333]
29951 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29952 Remove atomics.
29953 (__new_exitfn): Fail registration when we finished at_exit processing.
29954 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29955 * stdlib/on_exit.c (__on_exit): Likewise.
29956 * stdlib/exit.c (__exit_funcs_done): New variable.
29957 (__run_exit_handlers): Use __exit_funcs_lock.
29958 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29959 declarations.
29960 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29961 (test-cxa_atexit-race, test-on_exit-race): New tests.
29962 * stdlib/test-atexit-race-common.c: New file.
29963 * stdlib/test-atexit-race.c: New file.
29964 * stdlib/test-at_quick_exit-race.c: New file.
29965 * stdlib/test-cxa_atexit-race.c: New file.
29966 * stdlib/test-on_exit-race.c: New file.
29967
29968 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29969
29970 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29971 * benchtests/exp2f-inputs: Copy of expf-inputs.
29972 * benchtests/log2f-inputs: Copy of logf-inputs.
29973
29974 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29975
29976 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29977 Explicitly take address of first element of array arguments in
29978 call to INLINE_SYSCALL.
29979
29980 2017-09-19 Andreas Schwab <schwab@suse.de>
29981
29982 [BZ #22134]
29983 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29984 execveat first.
29985 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29986 unimplemented.
29987 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29988 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29989 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29990 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29991 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29992 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29993 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29994 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29995 * posix/Makefile (tests): Add tst-fexecve.
29996 * posix/tst-fexecve.c: New file.
29997
29998 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29999
30000 * benchtests/Makefile: Add logf benchmark.
30001 * benchtests/logf-inputs: Add reduced trace from wrf_r.
30002
30003 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30004
30005 * benchtests/Makefile: Add expf benchmark.
30006 * benchtests/expf-inputs: Add reduced trace from wrf_r.
30007
30008 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
30009
30010 * csu/Makefile: Add -funwind-tables to libc-start.c.
30011 * debug/Makefile: Add -funwind-tables to backtrace.c.
30012 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
30013 * sysdeps/arm/Makefile: Likewise.
30014 * sysdeps/i386/Makefile: Likewise.
30015 * sysdeps/m68k/Makefile: Likewise.
30016 * sysdeps/mips/Makefile: Likewise.
30017 * sysdeps/nios2/Makefile: Likewise.
30018 * sysdeps/sh/Makefile: Likewise.
30019 * sysdeps/sparc/Makefile: Likewise.
30020
30021 2017-09-19 Joseph Myers <joseph@codesourcery.com>
30022
30023 * benchtests/Makefile (bench-math): Add trunc and truncf.
30024 (CFLAGS-bench-trunc.c): New variable.
30025 (CFLAGS-bench-truncf.c): Likewise.
30026 * benchtests/trunc-inputs: New file.
30027 * benchtests/truncf-inputs: Likewise.
30028
30029 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
30030
30031 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
30032
30033 2017-09-18 Joseph Myers <joseph@codesourcery.com>
30034
30035 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
30036 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
30037 redefine.
30038 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
30039 (exp10l): Define as weak alias.
30040 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
30041 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
30042 and redefine.
30043 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
30044 (remainderl): Define as weak alias.
30045
30046 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
30047 (fmal): Define using libm_alias_ldouble.
30048 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
30049 (acoshl): Define using libm_alias_ldouble.
30050 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
30051 (acosl): Define using libm_alias_ldouble.
30052 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
30053 (asinl): Define using libm_alias_ldouble.
30054 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
30055 (atan2l): Define using libm_alias_ldouble.
30056 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
30057 (atanhl): Define using libm_alias_ldouble.
30058 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
30059 (coshl): Define using libm_alias_ldouble.
30060 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
30061 (exp10l): Define using libm_alias_ldouble.
30062 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
30063 (exp2l): Define using libm_alias_ldouble.
30064 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
30065 (expl): Define using libm_alias_ldouble.
30066 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
30067 (fmodl): Define using libm_alias_ldouble.
30068 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
30069 (hypotl): Define using libm_alias_ldouble.
30070 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
30071 (j0l): Define using libm_alias_ldouble.
30072 (y0l): Likewise.
30073 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
30074 (j1l): Define using libm_alias_ldouble.
30075 (y1l): Likewise.
30076 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
30077 (jnl): Define using libm_alias_ldouble.
30078 (ynl): Likewise.
30079 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
30080 (log10l): Define using libm_alias_ldouble.
30081 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
30082 (log2l): Define using libm_alias_ldouble.
30083 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
30084 (logl): Define using libm_alias_ldouble.
30085 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
30086 (powl): Define using libm_alias_ldouble.
30087 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
30088 (remainderl): Define using libm_alias_ldouble.
30089 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
30090 (sinhl): Define using libm_alias_ldouble.
30091 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
30092 (sqrtl): Define using libm_alias_ldouble.
30093 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
30094 (tgammal): Define using libm_alias_ldouble.
30095 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
30096 (exp10l): Do not use long_double_symbol here.
30097 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
30098 [LIBM_SVID_COMPAT] (remainderl): Likewise.
30099 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
30100 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
30101 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
30102 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
30103 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
30104 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
30105 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
30106 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30107 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
30108 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
30109 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
30110 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
30111 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
30112 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
30113 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
30114 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
30115 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
30116 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
30117 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
30118 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
30119
30120 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
30121
30122 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
30123 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
30124
30125 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
30126
30127 * io/read.c (read): Add libc_hidden_weak.
30128 * sysdeps/mach/hurd/read.c (read): Likewise.
30129 * io/write.c (write): Likewise.
30130 * sysdeps/mach/hurd/write.c (write): Likewise.
30131 * io/pread64.c (__pread64): Likewise.
30132 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
30133 * posix/pread64.c (__pread64): Add libc_hidden_def.
30134
30135 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
30136
30137 * benchtests/scripts/compare_strings.py: New option -g.
30138 (draw_graph): Print a message that a graph is being generated.
30139 (process_results): Generate graph only if -g is passed.
30140 (main): Process option -g.
30141
30142 * benchtests/scripts/compare_strings.py (process_results):
30143 Better spacing for output.
30144
30145 * benchtests/scripts/compare_strings.py: Use argparse.
30146 * benchtests/README: Document existence of compare_strings.py.
30147
30148 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30149
30150 * math/s_fma.c: Include <libm-alias-double.h>.
30151 (fma): Define using libm_alias_double.
30152 * math/s_nextafter.c: Include <libm-alias-double.h>.
30153 (nextafter): Define using libm_alias_double.
30154 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30155 (acos): Define using libm_alias_double.
30156 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30157 (aocsh): Define using libm_alias_double.
30158 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30159 (asin): Define using libm_alias_double.
30160 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30161 (atan2): Define using libm_alias_double.
30162 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30163 (atanh): Define using libm_alias_double.
30164 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30165 (cosh): Define using libm_alias_double.
30166 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30167 (exp10): Define using libm_alias_double.
30168 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30169 (exp2): Define using libm_alias_double.
30170 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30171 (exp): Define using libm_alias_double.
30172 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30173 (fmod): Define using libm_alias_double.
30174 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30175 (hypot): Define using libm_alias_double.
30176 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30177 (j0): Define using libm_alias_double.
30178 (y0): Likewise.
30179 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30180 (j1): Define using libm_alias_double.
30181 (y1): Likewise.
30182 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30183 (jn): Define using libm_alias_double.
30184 (yn): Likewise.
30185 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30186 (log10): Define using libm_alias_double.
30187 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30188 (log2): Define using libm_alias_double.
30189 * math/w_log_compat.c: Include <libm-alias-double.h>.
30190 (log): Define using libm_alias_double.
30191 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30192 (pow): Define using libm_alias_double.
30193 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30194 (remainder): Define using libm_alias_double.
30195 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30196 (sinh): Define using libm_alias_double.
30197 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30198 (sqrt): Define using libm_alias_double.
30199 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30200 (tgamma): Define using libm_alias_double.
30201 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30202 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30203 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30204 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30205 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30206 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30207 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30208 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30209 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30210 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30211 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30212 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30213 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30214 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30215 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30216 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30217 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30218 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30219 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30220 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30221 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30222 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30223 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30224 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30225 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30226
30227 * math/e_acoshl.c: Remove.
30228 * math/e_acosl.c: Likewise.
30229 * math/e_asinl.c: Likewise.
30230 * math/e_atan2l.c: Likewise.
30231 * math/e_atanhl.c: Likewise.
30232 * math/e_coshl.c: Likewise.
30233 * math/e_expl.c: Likewise.
30234 * math/e_fmodl.c: Likewise.
30235 * math/e_gammal_r.c: Likewise.
30236 * math/e_hypotl.c: Likewise.
30237 * math/e_j0l.c: Likewise.
30238 * math/e_j1l.c: Likewise.
30239 * math/e_jnl.c: Likewise.
30240 * math/e_lgammal_r.c: Likewise.
30241 * math/e_log10l.c: Likewise.
30242 * math/e_log2l.c: Likewise.
30243 * math/e_logl.c: Likewise.
30244 * math/e_powl.c: Likewise.
30245 * math/e_rem_pio2l.c: Likewise.
30246 * math/e_sinhl.c: Likewise.
30247 * math/e_sqrtf128.c: Likewise.
30248 * math/e_sqrtl.c: Likewise.
30249 * math/k_cosl.c: Likewise.
30250 * math/k_sinl.c: Likewise.
30251 * math/k_tanl.c: Likewise.
30252 * math/s_asinhl.c: Likewise.
30253 * math/s_atanl.c: Likewise.
30254 * math/s_cbrtl.c: Likewise.
30255 * math/s_erfl.c: Likewise.
30256 * math/s_expm1l.c: Likewise.
30257 * math/s_log1pl.c: Likewise.
30258 * math/s_tanhl.c: Likewise.
30259
30260 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30261
30262 [BZ #21745]
30263 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30264 [$(subdir) = math] (sysdep_calls): New variable. Has the
30265 previous contents of sysdep_routines, but re-sorted..
30266 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30267 sysdep_calls.
30268 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30269 defined in sysdep_calls and replace by the respective m_* names.
30270 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30271 (compat_symbol): Undefine to avoid duplicated compat symbols in
30272 libc.
30273
30274 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30275
30276 * math/s_fmaf.c: Include <libm-alias-float.h>.
30277 (fmaf): Define using libm_alias_float.
30278 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30279 (acosf): Define using libm_alias_float.
30280 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30281 (acoshf): Define using libm_alias_float.
30282 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30283 (asinf): Define using libm_alias_float.
30284 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30285 (atan2f): Define using libm_alias_float.
30286 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30287 (atanhf): Define using libm_alias_float.
30288 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30289 (coshf): Define using libm_alias_float.
30290 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30291 (exp10f): Define using libm_alias_float.
30292 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30293 (fmodf): Define using libm_alias_float.
30294 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30295 (hypotf): Define using libm_alias_float.
30296 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30297 (j0f): Define using libm_alias_float.
30298 (y0f): Likewise.
30299 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30300 (j1f): Define using libm_alias_float.
30301 (y1f): Likewise.
30302 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30303 (jnf): Define using libm_alias_float.
30304 (ynf): Likewise.
30305 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30306 (log10f): Define using libm_alias_float.
30307 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30308 (log2f): Define using libm_alias_float.
30309 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30310 (logf): Define using libm_alias_float.
30311 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30312 (powf): Define using libm_alias_float.
30313 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30314 (remainderf): Define using libm_alias_float.
30315 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30316 (sinhf): Define using libm_alias_float.
30317 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30318 (sqrtf): Define using libm_alias_float.
30319 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30320 (tgammaf): Define using libm_alias_float.
30321
30322 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30323
30324 * include/math.h (roundeven): Change hidden_proto call to
30325 __roundeven.
30326 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30327 alias.
30328 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30329 (y0): Rename to __y0 and define as weak alias.
30330 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30331 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30332 alias.
30333 (y0f): Rename to __y0f and define as weak alias.
30334 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30335 alias.
30336 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30337 (y1): Rename to __y1 and define as weak alias.
30338 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30339 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30340 alias.
30341 (y1f): Rename to __y1f and define as weak alias.
30342 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30343 alias.
30344 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30345 (yn): Rename to __yn and define as weak alias.
30346 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30347 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30348 alias.
30349 (ynf): Rename to __ynf and define as weak alias.
30350 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30351 (fromfp): Define as weak alias.
30352 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30353 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30354 (fromfpx): Define as weak alias.
30355 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30356 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30357 __getpayload and define as weak alias.
30358 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30359 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30360 __roundeven and define as weak alias.
30361 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30362 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30363 __setpayload.
30364 (setpayload): Define as weak alias.
30365 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30366 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30367 __setpayloadsig.
30368 (setpayloadsig): Define as weak alias.
30369 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30370 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30371 __totalorder and define as weak alias.
30372 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30373 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30374 to __totalordermag and define as weak alias.
30375 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30376 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30377 (ufromfp): Define as weak alias.
30378 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30379 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30380 __ufromfpx.
30381 (ufromfpx): Define as weak alias.
30382 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30383 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30384 Rename to __getpayload and define as weak alias.
30385 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30386 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30387 Rename to __roundeven and define as weak alias.
30388 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30389 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30390 Rename to __totalorder and define as weak alias.
30391 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30392 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30393 (totalordermag): Rename to __totalordermag and define as weak
30394 alias.
30395 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30396 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30397 macro.
30398 (__roundevenl): Likewise.
30399 (__totalorderl): Likewise.
30400 (__totalordermagl): Likewise
30401 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30402 __fromfpf128.
30403 (fromfpf128): Define as weak alias.
30404 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30405 __fromfpxf128.
30406 (fromfpxf128): Define as weak alias.
30407 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30408 __setpayloadf128.
30409 (setpayloadf128): Define as weak alias.
30410 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30411 __setpayloadsigf128.
30412 (setpayloadsigf128): Define as weak alias.
30413 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30414 __ufromfpf128.
30415 (ufromfpf128): Define as weak alias.
30416 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30417 __ufromfpxf128.
30418 (ufromfpxf128): Define as weak alias.
30419 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30420 (fromfpf): Define as weak alias.
30421 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30422 __fromfpxf.
30423 (fromfpxf): Define as weak alias.
30424 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30425 __getpayloadf and define as weak alias.
30426 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30427 __roundevenf and define as weak alias.
30428 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30429 __setpayloadf.
30430 (setpayloadf): Define as weak alias.
30431 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30432 __setpayloadsigf.
30433 (setpayloadsigf): Define as weak alias.
30434 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30435 __totalorderf and define as weak alias.
30436 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30437 Rename to __totalordermagf and define as weak alias.
30438 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30439 __ufromfpf.
30440 (ufromfpf): Define as weak alias.
30441 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30442 __ufromfpxf.
30443 (ufromfpxf): Define as weak alias.
30444 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30445 __fromfpl.
30446 (fromfpl): Define as weak alias.
30447 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30448 __fromfpxl.
30449 (fromfpxl): Define as weak alias.
30450 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30451 to __getpayloadl and define as weak alias.
30452 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30453 __roundevenl and define as weak alias.
30454 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30455 __setpayloadl.
30456 (setpayloadl): Define as weak alias.
30457 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30458 __setpayloadsigl.
30459 (setpayloadsigl): Define as weak alias.
30460 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30461 to __totalorderl and define as weak alias.
30462 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30463 Rename to __totalordermagl and define as weak alias.
30464 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30465 __ufromfpl.
30466 (ufromfpl): Define as weak alias.
30467 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30468 __ufromfpxl.
30469 (ufromfpxl): Define as weak alias.
30470 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30471 __fromfpl.
30472 (fromfpl): Define as weak alias.
30473 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30474 __fromfpxl.
30475 (fromfpxl): Define as weak alias.
30476 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30477 Rename to __getpayloadl and define as weak alias.
30478 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30479 to __roundevenl and define as weak alias. Call __roundeven
30480 instead of roundeven.
30481 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30482 __setpayloadl.
30483 (setpayloadl): Define as weak alias.
30484 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30485 __setpayloadsigl.
30486 (setpayloadsigl): Define as weak alias.
30487 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30488 Rename to __totalorderl and define as weak alias.
30489 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30490 Rename to __totalordermagl and define as weak alias.
30491 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30492 __ufromfpl.
30493 (ufromfpl): Define as weak alias.
30494 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30495 __ufromfpxl.
30496 (ufromfpxl): Define as weak alias.
30497 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30498 __fromfpl.
30499 (fromfpl): Define as weak alias.
30500 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30501 __fromfpxl.
30502 (fromfpxl): Define as weak alias.
30503 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30504 __getpayloadl and define as weak alias.
30505 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30506 __roundevenl and define as weak alias.
30507 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30508 __setpayloadl.
30509 (setpayloadl): Define as weak alias.
30510 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30511 __setpayloadsigl.
30512 (setpayloadsigl): Define as weak alias.
30513 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30514 __totalorderl and define as weak alias.
30515 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30516 Rename to __totalordermagl and define as weak alias.
30517 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30518 __ufromfpl.
30519 (ufromfpl): Define as weak alias.
30520 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30521 __ufromfpxl.
30522 (ufromfpxl): Define as weak alias.
30523
30524 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30525
30526 * benchtests/bench-string.h (realloc_bufs): New function.
30527 (test_init): Call it.
30528 * benchtests/bench-memset-large.c (do_test): Likewise.
30529 * benchtests/bench-memset.c (do_test): Likewise.
30530
30531 * benchtests/bench-memset-large.c: Print output in JSON
30532 format.
30533 * benchtests/bench-memset.c: Likewise.
30534
30535 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30536
30537 [BZ #21084]
30538 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30539 * iconvdata/Makefile: Add IBM858.
30540 * iconvdata/gconv-modules: Likewise.
30541 * iconvdata/tst-tables.sh: Likewise.
30542 * iconvdata/ibm858.c: New file.
30543 * localedata/charmaps/IBM858: Likewise.
30544
30545 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30546
30547 [BZ #22023]
30548 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30549 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30550
30551 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30552
30553 [BZ #22112]
30554 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30555 and add tel_int_fmt.
30556
30557 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30558
30559 * sysdeps/generic/libm-alias-float128.h: New file.
30560 * sysdeps/generic/math-type-macros-float128.h: Include
30561 <libm-alias-float128.h>.
30562 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30563
30564 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30565
30566 * sysdeps/generic/libm-alias-ldouble.h: New file.
30567 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30568 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30569 * sysdeps/generic/math-type-macros-ldouble.h: Include
30570 <libm-alias-ldouble.h>.
30571 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30572 libm_alias_ldouble.
30573
30574 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30575
30576 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30577 * math/w_exp_compat.c: ... here.
30578 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30579 * math/w_expf_compat.c: ... here.
30580 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30581 * math/w_expl_compat.c: ... here.
30582 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30583 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30584 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30585 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30586
30587 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30588
30589 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30590 redefine.
30591 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30592 macro.
30593 (ldexpl): Only define as compat symbol for libc, not libm.
30594 (scalbnl): Define as compat symbol for libc here.
30595 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30596 define for [IS_IN (libc)].
30597 (__ldexpl_2): Remove alias.
30598 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30599 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30600 name in long_double_symbol call.
30601 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30602 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30603 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30604 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30605 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30606 Remove macro.
30607 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30608 Define as compat symbol.
30609
30610 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30611
30612 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30613 * sysdeps/unix/sysv/linux/alpha/Makefile
30614 [$(subdir) = csu] (sysdep_routines): Remove rule.
30615
30616 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30617
30618 * sysdeps/generic/libm-alias-double.h: New file.
30619 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30620 * sysdeps/generic/math-type-macros-double.h: Include
30621 <libm-alias-double.h>.
30622 [declare_mgen_alias] (declare_mgen_alias): Define to use
30623 libm_alias_double.
30624 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30625 (M_LIBM_NEED_COMPAT): Remove macro.
30626 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30627 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30628 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30629 code.
30630 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30631 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30632 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30633 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30634 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30635 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30636 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30637 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30638 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30639 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30640 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30641 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30642 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30643 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30644 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30645 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30646 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30647 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30648 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30649 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30650 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30651 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30652 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30653 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30654 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30655 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30656 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30657 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30658 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30659 macro.
30660 (declare_mgen_alias): New macro.
30661 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30662 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30663 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30664 (M_LIBM_NEED_COMPAT): Remove macro.
30665 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30666 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30667 <first-versions.h>.
30668 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30669 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30670
30671 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30672
30673 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30674 (declare_mgen_alias_2): Remove.
30675 * sysdeps/generic/math-type-macros-double.h
30676 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30677 Likewise.
30678 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30679 alias.
30680 (ldexp): Define with declare_mgen_alias.
30681 (scalbn): Likewise.
30682
30683 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30684
30685 * grp/initgroups.c: Include config.h.
30686 (DEFAULT_CONFIG): New macro.
30687 (internal_getgrouplist): Use DEFAULT_CONFIG.
30688 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30689 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30690 (DEFAULT_DEFCONFIG): New macro.
30691 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30692 * nss/grp-lookup.c: Include config.h
30693 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30694 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30695 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30696 * manual/nss.texi: Update default values section.
30697
30698 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30699
30700 [BZ #21967]
30701 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30702 New.
30703 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30704 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30705 Handle MathVec_Prefer_No_AVX512.
30706 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30707 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30708 is set.
30709
30710 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30711
30712 * posix/sched_primax.c (__sched_get_priority_max): Add
30713 libc_hidden_def.
30714 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30715 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30716 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30717 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30718 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30719 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30720 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30721 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30722 Add aliases.
30723
30724 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30725
30726 * sysdeps/generic/libm-alias-float.h: New file.
30727 * sysdeps/generic/math-type-macros-float.h: Include
30728 <libm-alias-float.h>.
30729 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30730
30731 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30732
30733 [BZ #22093]
30734 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30735 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30736 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30737 (HWCAP_IMPORTANT): Likewise.
30738 (HWCAP_X86_64): New enum.
30739 (HWCAP_X86_AVX512_1): Updated.
30740 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30741 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30742 (modules-names): Add x86_64/tst-x86_64mod-1.
30743 (LDFLAGS-tst-x86_64mod-1.so): New.
30744 ($(objpfx)tst-x86_64-1): Likewise.
30745 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30746 (tst-x86_64-1-clean): Likewise.
30747 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30748 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30749
30750 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30751
30752 * po/sv.po: Update translations.
30753 * po/fr.po: Likewise.
30754
30755 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30756
30757 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30758 seconds.
30759 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30760 seconds.
30761 * elf/rtld-Rules: Fix $(error) use.
30762
30763 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30764
30765 [BZ #14925]
30766 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30767 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30768 * localedata/locales/bn_BD: “Bengali” was still used in some
30769 comments. Change it to “Bangla”.
30770
30771 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30772
30773 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30774
30775 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30776
30777 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30778 thunderx2t99p1 to list of cpu names.
30779 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30780 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30781
30782 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30783
30784 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30785 Use strcmp instead of tunable_is_name.
30786
30787 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30788
30789 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30790 (F_GET_RW_HINT): New macro.
30791 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30792 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30793 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30794 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30795 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30796 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30797 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30798 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30799 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30800
30801 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30802 (F_ADD_SEALS): New macro.
30803 [__USE_GNU] (F_GET_SEALS): Likewise.
30804 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30805 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30806 [__USE_GNU] (F_SEAL_GROW): Likewise.
30807 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30808
30809 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30810
30811 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30812 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30813 * posix/glob_internal.h (__glob_pattern_type):
30814 * posix/glob.c (glob):
30815 * posix/glob_pattern_p.c (__glob_pattern_p):
30816 Use them.
30817
30818 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30819 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30820 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30821 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30822 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30824 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30825 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30826 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30827 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30828 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30829 * sysdeps/wordsize-64/glob.c: Likewise.
30830 * sysdeps/wordsize-64/glob64.c: Likewise.
30831 * sysdeps/wordsize-64/globfree.c: Likewise.
30832 * sysdeps/wordsize-64/globfree64.c: Likewise.
30833 * sysdeps/unix/sysv/linux/glob.c: New file.
30834 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30835 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30836 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30837 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30838 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30839 adds !GLOB_NO_OLD_VERSION as an extra condition.
30840 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30841 using relative path instead of absolute one.
30842 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30843 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30844 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30845 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30846 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30847 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30848
30849 [BZ #1062]
30850 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30851 (glob): Use the same scratch buffer for both getlogin_r and
30852 getpwnam_r. Don’t require preallocation of the login name. This
30853 simplifies storage allocation, and corrects the handling of
30854 long login names.
30855
30856 [BZ #1062]
30857 * posix/glob.c (glob): Port recent patches to platforms
30858 lacking getpwnam_r.
30859 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30860 returns an error number rather than setting errno.
30861
30862 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30863 instead of GCC extension.
30864 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30865 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30866 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30867
30868 [BZ #866]
30869 [BZ #1062]
30870 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30871 * posix/bug-glob1.c: Remove file.
30872 * posix/tst-glob_symlinks.c: New file.
30873 * posix/glob.c (__lstat64): New macro.
30874 (is_dir): New function.
30875 (glob, glob_in_dir): Match symlinks even if they are dangling.
30876 (link_stat, link_exists_p): Remove. All uses removed.
30877
30878 [BZ #1062]
30879 [BZ #19971]
30880 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30881 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30882 All uses removed.
30883
30884 [BZ #1062]
30885 CVE-2017-15671
30886 * posix/Makefile (routines): Add globfree, globfree64, and
30887 glob_pattern_p.
30888 * posix/flexmember.h: New file.
30889 * posix/glob_internal.h: Likewise.
30890 * posix/glob_pattern_p.c: Likewise.
30891 * posix/globfree.c: Likewise.
30892 * posix/globfree64.c: Likewise.
30893 * sysdeps/gnu/globfree64.c: Likewise.
30894 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30895 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30896 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30897 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30898 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30899 * sysdeps/wordsize-64/globfree.c: Likewise.
30900 * sysdeps/wordsize-64/globfree64.c: Likewise.
30901 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30902 [NDEBUG): Remove comments.
30903 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30904 (dirent_type): New type. Use uint_fast8_t not
30905 uint8_t, as C99 does not require uint8_t.
30906 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30907 (struct readdir_result): Use dirent_type. Do not define skip_entry
30908 unless it is needed; this saves a byte on platforms lacking d_ino.
30909 (readdir_result_type, readdir_result_skip_entry):
30910 New functions, replacing ...
30911 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30912 these functions, which were removed. This makes the callers
30913 easier to read. All callers changed.
30914 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30915 (size_add_wrapv, glob_use_alloca): New static functions.
30916 (glob, glob_in_dir): Check for size_t overflow in several places,
30917 and fix some size_t checks that were not quite right.
30918 Remove old code using SHELL since Bash no longer
30919 uses this.
30920 (glob, prefix_array): Separate MS code better.
30921 (glob_in_dir): Remove old Amiga and VMS code.
30922 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30923 separate files.
30924 (glob_in_dir): Do not rely on undefined behavior in accessing
30925 struct members beyond their bounds. Use a flexible array member
30926 instead
30927 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30928 0/1. Caller changed.
30929 (glob): Fix memory leaks.
30930 * posix/glob64 (globfree64): Move to separate file.
30931 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30932 (globfree64): Remove hidden alias.
30933 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30934 oldglob.
30935 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30936 separate file.
30937 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30938 define.
30939 Move compat code to separate file.
30940 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30941 separate file.
30942
30943 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30944
30945 * resolv/tst-resolv-qtypes.c (domain): Changed to
30946 "const char domain[] =".
30947
30948 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30949
30950 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30951 version to 3.1.6.
30952
30953 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30954 (TCP_MD5SIG_EXT): Likewise.
30955 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30956 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30957 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30958
30959 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30960
30961 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30962
30963 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30964
30965 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30966
30967 [BZ #22100]
30968 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30969
30970 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30971
30972 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30973 before assuming that the file is empty. Avoid testing buffer content
30974 when nread == 0.
30975
30976 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30977
30978 [BZ #18858]
30979 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30980 Remove define.
30981 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30982 Likewise.
30983 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30984 Likewise.
30985 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30986 Likewise.
30987 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30988 Likewise.
30989 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30990 Likewise.
30991 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30992 Likewise.
30993
30994 2017-09-06 Florian Weimer <fweimer@redhat.com>
30995
30996 * malloc/dynarray_emplace_enlarge.c
30997 (__libc_dynarray_emplace_enlarge): Add missing else.
30998
30999 2017-09-06 Florian Weimer <fweimer@redhat.com>
31000
31001 [BZ #22096]
31002 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
31003 case of failure to obtain the global conf object.
31004
31005 2017-09-06 Florian Weimer <fweimer@redhat.com>
31006
31007 [BZ #22095]
31008 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
31009 dynarray allocation failure.
31010
31011 2017-09-06 Florian Weimer <fweimer@redhat.com>
31012
31013 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
31014 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
31015 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
31016 New functions.
31017 (response): Call them. Add 'p', '6' flag processing.
31018 (test_reverse): New function.
31019 (test_get2_any): Call it.
31020 (test_no_inet6): Add 'p' test.
31021 (test_inet6): Likewise.
31022
31023 2017-09-06 Florian Weimer <fweimer@redhat.com>
31024
31025 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
31026 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
31027 the QNAME.
31028 (test_gai): Adjust query names. Add additional tests.
31029 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
31030 test_get2. Adjust query names. Add additional tests.
31031 (test_no_inet6): New function, extracted from threadfunc.
31032 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
31033 Add additional tests.
31034
31035 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31036
31037 [BZ #22070]
31038 * localedata/unicode-gen/utf8_gen.py: Set the width for
31039 characters with Prepended_Concatenation_Mark property to 1
31040 * localedata/charmaps/UTF-8: Updated using the improved script.
31041
31042 2017-09-06 Mike FABIAN <mfabian@redhat.com>
31043
31044 [BZ #21750]
31045 * localedata/unicode-gen/utf8_gen.py: Improve the script to
31046 use the range notation for all ranges of neighbouring characters
31047 with the same width.
31048
31049 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31050
31051 * sysdeps/generic/math-type-macros-double.h: Include
31052 <math-svid-compat.h>.
31053 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31054 * sysdeps/generic/math-type-macros-float.h: Include
31055 <math-svid-compat.h>.
31056 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31057 * sysdeps/generic/math-type-macros-ldouble.h: Include
31058 <math-svid-compat.h>.
31059 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
31060 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
31061 condition.
31062 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
31063 * math/w_acosf_compat.c: Likewise.
31064 * math/w_acosh_compat.c: Likewise.
31065 * math/w_acoshf_compat.c: Likewise.
31066 * math/w_acoshl_compat.c: Likewise.
31067 * math/w_acosl_compat.c: Likewise.
31068 * math/w_asin_compat.c: Likewise.
31069 * math/w_asinf_compat.c: Likewise.
31070 * math/w_asinl_compat.c: Likewise.
31071 * math/w_atan2_compat.c: Likewise.
31072 * math/w_atan2f_compat.c: Likewise.
31073 * math/w_atan2l_compat.c: Likewise.
31074 * math/w_atanh_compat.c: Likewise.
31075 * math/w_atanhf_compat.c: Likewise.
31076 * math/w_atanhl_compat.c: Likewise.
31077 * math/w_cosh_compat.c: Likewise.
31078 * math/w_coshf_compat.c: Likewise.
31079 * math/w_coshl_compat.c: Likewise.
31080 * math/w_exp10_compat.c: Likewise.
31081 * math/w_exp10f_compat.c: Likewise.
31082 * math/w_exp10l_compat.c: Likewise.
31083 * math/w_exp2_compat.c: Likewise.
31084 * math/w_exp2f_compat.c: Likewise.
31085 * math/w_exp2l_compat.c: Likewise.
31086 * math/w_fmod_compat.c: Likewise.
31087 * math/w_fmodf_compat.c: Likewise.
31088 * math/w_fmodl_compat.c: Likewise.
31089 * math/w_hypot_compat.c: Likewise.
31090 * math/w_hypotf_compat.c: Likewise.
31091 * math/w_hypotl_compat.c: Likewise.
31092 * math/w_j0_compat.c: Likewise.
31093 * math/w_j0f_compat.c: Likewise.
31094 * math/w_j0l_compat.c: Likewise.
31095 * math/w_j1_compat.c: Likewise.
31096 * math/w_j1f_compat.c: Likewise.
31097 * math/w_j1l_compat.c: Likewise.
31098 * math/w_jn_compat.c: Likewise.
31099 * math/w_jnf_compat.c: Likewise.
31100 * math/w_jnl_compat.c: Likewise.
31101 * math/w_lgamma_r_compat.c: Likewise.
31102 * math/w_lgammaf_r_compat.c: Likewise.
31103 * math/w_lgammal_r_compat.c: Likewise.
31104 * math/w_log10_compat.c: Likewise.
31105 * math/w_log10f_compat.c: Likewise.
31106 * math/w_log10l_compat.c: Likewise.
31107 * math/w_log2_compat.c: Likewise.
31108 * math/w_log2f_compat.c: Likewise.
31109 * math/w_log2l_compat.c: Likewise.
31110 * math/w_log_compat.c: Likewise.
31111 * math/w_logf_compat.c: Likewise.
31112 * math/w_logl_compat.c: Likewise.
31113 * math/w_pow_compat.c: Likewise.
31114 * math/w_powf_compat.c: Likewise.
31115 * math/w_powl_compat.c: Likewise.
31116 * math/w_remainder_compat.c: Likewise.
31117 * math/w_remainderf_compat.c: Likewise.
31118 * math/w_remainderl_compat.c: Likewise.
31119 * math/w_sinh_compat.c: Likewise.
31120 * math/w_sinhf_compat.c: Likewise.
31121 * math/w_sinhl_compat.c: Likewise.
31122 * math/w_sqrt_compat.c: Likewise.
31123 * math/w_sqrtf_compat.c: Likewise.
31124 * math/w_sqrtl_compat.c: Likewise.
31125 * math/w_tgamma_compat.c: Likewise.
31126 * math/w_tgammaf_compat.c: Likewise.
31127 * math/w_tgammal_compat.c: Likewise.
31128 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
31129 [LIBM_SVID_COMPAT].
31130 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
31131 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
31132 [LIBM_SVID_COMPAT].
31133 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
31134 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
31135 [LIBM_SVID_COMPAT].
31136 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
31137 * sysdeps/i386/fpu/w_sqrt.c: New file.
31138 * sysdeps/ia64/fpu/w_acos.c: Likewise.
31139 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
31140 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
31141 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
31142 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
31143 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
31144 * sysdeps/ia64/fpu/w_asin.c: Likewise.
31145 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
31146 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31147 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31148 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31149 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31150 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31151 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31152 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31153 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31154 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31155 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31156 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31157 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31158 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31159 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31160 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31161 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31162 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31163 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31164 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31165 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31166 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31167 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31168 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31169 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31170 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31171 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31172 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31173 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31174 * sysdeps/ia64/fpu/w_log.c: Likewise.
31175 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31176 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31177 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31178 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31179 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31180 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31181 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31182 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31183 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31184 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31185 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31186 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31187 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31188 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31189 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31190 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31191 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31192 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31193 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31194 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31195 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31196 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31197 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31198 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31199 [LIBM_SVID_COMPAT].
31200 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31201 * sysdeps/ieee754/k_standard.c: Likewise.
31202 * sysdeps/ieee754/k_standardf.c: Likewise.
31203 * sysdeps/ieee754/k_standardl.c: Likewise.
31204 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31205 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31206 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31207 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31208 long_double_symbol call on [LIBM_SVID_COMPAT].
31209 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31210 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31211 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31212 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31213 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31214 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31215 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31216 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31217 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31218 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31219 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31220 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31221 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31222 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31223 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31224 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31225 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31226 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31227 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31228 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31229 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31230 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31231
31232 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31233
31234 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31235 * malloc/tst-mallocstate.c: Convert from test-skeleton
31236 to test-driver. Ifdef code using TEST_COMPAT macro.
31237 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31238 * math/test-matherr.c: Likewise.
31239
31240 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31241
31242 [BZ #22086]
31243 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31244 comparing word with byte-swapped constant.
31245
31246 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31247
31248 [BZ #20498]
31249 * locale/iso-639.def: add Miskito.
31250 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31251 * localedata/locales/miq_NI: New file.
31252
31253 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31254
31255 [BZ #18822]
31256 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31257 (__mkdir): Likewise.
31258 * io/chmod.c (__chmod): Add libc_hidden_def.
31259 * io/mkdir.c (__mkdir): Likewise.
31260 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31261 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31262 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31263 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31264
31265 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31266
31267 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31268 version to 4.13.
31269
31270 [BZ #22082]
31271 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31272 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31273
31274 2017-09-04 Florian Weimer <fweimer@redhat.com>
31275
31276 * math/math.h: Issue warning if log is defined.
31277
31278 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31279
31280 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31281 kernel version to 4.13.
31282
31283 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31284
31285 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31286 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31287 parameter.
31288 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31289 just <bits/types.h>.
31290 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31291 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31292 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31293 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31294 * misc/preadv2.c: Include <errno.h>.
31295 * misc/preadv64v2.c: Include <errno.h>.
31296 * misc/pwritev2.c: Include <errno.h>.
31297 * misc/pwritev64v2.c: Include <errno.h>.
31298 * sysdeps/posix/preadv2.c: Include <errno.h>.
31299 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31300 Fix <unistd.h> inclusion.
31301 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31302 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31303 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31304 __strtoul_internal): New functions.
31305 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31306 * sysdeps/posix/system.c: Include <sigsetops.h>.
31307 * sysdeps/mach/hurd/i386/Makefile
31308 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31309 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31310 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31311 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31312 __feraiseexcept_renamed to feraiseexcept instead of
31313 __GI_feraiseexcept.
31314 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31315 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31316 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31317 RWF_NOWAIT): Define to 0 if undefined already.
31318 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31319 boils down to 0.
31320 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31321 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31322
31323 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31324
31325 * manual/math.texi (pow10): Do not document.
31326 (pow10f): Likewise.
31327 (pow10l): Likewise.
31328 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31329 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31330 * math/libm-test-exp10.inc (pow10_test): Remove.
31331 (do_test): Do not call pow10.
31332 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31333 [NO_LONG_DOUBLE] (pow10l): Likewise.
31334 * math/w_exp10f_compat.c (pow10f): Likewise.
31335 * math/w_exp10l_compat.c (pow10l): Likewise.
31336 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31337 (pow10): Make into compat symbol.
31338 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31339 (pow10f): Make into compat symbol.
31340 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31341 (pow10l): Make into compat symbol.
31342 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31343 pow10.
31344 (CFLAGS-nldbl-pow10.c): Remove variable..
31345 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31346 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31347 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31348 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31349 Undefine and redefine.
31350 (pow10l): Make into compat symbol.
31351 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31352 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31353 * sysdeps/arm/libm-test-ulps: Likewise.
31354 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31355 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31356 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31357 * sysdeps/microblaze/libm-test-ulps: Likewise.
31358 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31359 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31360 * sysdeps/nios2/libm-test-ulps: Likewise.
31361 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31362 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31363 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31364 * sysdeps/sh/libm-test-ulps: Likewise.
31365 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31366 * sysdeps/tile/libm-test-ulps: Likewise.
31367 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31368
31369 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31370
31371 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31372
31373 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31374
31375 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31376 "../ChangeLog.old/ChangeLog.8".
31377 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31378 "../ChangeLog.old/ChangeLog.14".
31379
31380 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31381
31382 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31383 Threads Library.
31384
31385 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31386
31387 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31388
31389 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31390
31391 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31392 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31393
31394 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31395
31396 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31397 32 atexit handlers.
31398
31399 2017-09-01 Zack Weinberg <zackw@panix.com>
31400
31401 * math/math.h (HUGE_VAL): Improve commentary.
31402
31403 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31404 Andreas Schwab <schwab@suse.de>
31405
31406 [BZ #21530]
31407 * include/stdio.h (__gen_tempfd): New function.
31408 * stdio-common/Makefile (routines): Add gentempfd.
31409 * stdio-common/gentempfd.c: New file.
31410 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31411 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31412 unnamed file first.
31413
31414 2017-09-01 Florian Weimer <fweimer@redhat.com>
31415
31416 [BZ #21915]
31417 [BZ #21922]
31418 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31419 result to determine success or failure, not the errno value.
31420 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31421 (tst-nss-files-hosts-erange): Link with -ldl.
31422 * nss/tst-nss-files-hosts-erange.c: New file.
31423 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31424 (do_test): Add NO_DATA tests.
31425 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31426 (do_test): Call it.
31427
31428 2017-09-01 Florian Weimer <fweimer@redhat.com>
31429
31430 [BZ #21922]
31431 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31432 coming from gethostbyname2_r.
31433
31434 2017-09-01 Florian Weimer <fweimer@redhat.com>
31435
31436 * support/namespace.h (struct support_chroot_configuration): Add
31437 hosts, host_conf.
31438 (struct support_chroot): Add path_hosts, path_host_conf.
31439 * support/support_chroot.c (write_file): New function.
31440 (support_chroot_create): Call it to process /etc/resolv.conf,
31441 /etc/hosts, /etc/host.conf.
31442 (support_chroot_free): Update.
31443
31444 2017-09-01 Florian Weimer <fweimer@redhat.com>
31445
31446 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31447 status indicates it is set.
31448
31449 2017-09-01 Florian Weimer <fweimer@redhat.com>
31450
31451 [BZ #20532]
31452 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31453 function lookup failures more reliable.
31454
31455 2017-09-01 Florian Weimer <fweimer@redhat.com>
31456
31457 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31458 (getcanonname): Likewise.
31459 (gaih_inet): Likewise.
31460
31461 2017-09-01 Florian Weimer <fweimer@redhat.com>
31462
31463 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31464 (getcanonname): Likewise.
31465 (gaih_inet): Likewise.
31466
31467 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31468 Richard Henderson <rth@twiddle.net>
31469
31470 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31471 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31472 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31473 (IREG_SIZE, OREG_SIZE): New macros.
31474 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31475 (IREG_SIZE, OREG_SIZE): New macros.
31476 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31477 (IREG_SIZE): New macro.
31478 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31479 (IREG_SIZE): New macro.
31480 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31481 New includes.
31482 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31483 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31484 (__CONCATX): Handle exceptions correctly on large values that may
31485 set FE_INVALID.
31486 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31487 Initialize if not already set.
31488 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31489
31490 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31491
31492 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31493 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31494 Likewise.
31495 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31496 Likewise.
31497 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31498 Likewise.
31499 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31500 Likewise.
31501 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31502 Likewise.
31503 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31504 Likewise.
31505 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31506 Likewise.
31507 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31508 (NO_CANCELLATION): Likewise.
31509 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31510 Likewise.
31511 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31512 Likewise.
31513 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31514 Likewise.
31515 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31516 (NO_CANCELLATION): Likewise.
31517 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31518 (NO_CANCELLATION): Likewise.
31519 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31520 Likewise
31521 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31522 Likewise.
31523 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31524 Likewise.
31525 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31526 Likewise.
31527 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31528 hidden prototype.
31529 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31530 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31531
31532 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31533
31534 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31535 in resolver call.
31536
31537 2017-08-31 Florian Weimer <fweimer@redhat.com>
31538
31539 * include/libc-symbols.h (internal_function): Remove.
31540
31541 2017-08-31 Florian Weimer <fweimer@redhat.com>
31542
31543 * stdlib/fmtmsg.c (internal_addseverity): Remove
31544 internal_function.
31545
31546 2017-08-31 Florian Weimer <fweimer@redhat.com>
31547
31548 * stdio-common/printf_fp.c (group_number): Remove
31549 internal_function.
31550 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31551
31552 2017-08-31 Florian Weimer <fweimer@redhat.com>
31553
31554 * posix/fnmatch.c (internal_function): Remove definition.
31555 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31556 * posix/regcomp.c (peek_token, init_word_char)
31557 (duplicate_node_closure, fetch_token, peek_token)
31558 (peek_token_bracket, build_range_exp, build_collating_symbol):
31559 Likewise.
31560 * posix/regex_internal.c (re_string_construct_common)
31561 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31562 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31563 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31564 (re_string_translate_buffer, re_string_reconstruct)
31565 (re_string_peek_byte_case, re_string_fetch_byte_case)
31566 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31567 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31568 (re_node_set_add_intersect, re_node_set_init_union)
31569 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31570 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31571 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31572 (re_acquire_state_context): Likewise.
31573 * posix/regex_internal.h (internal_function): Remove definition.
31574 (re_string_realloc_buffers, build_wcs_buffer)
31575 (build_wcs_upper_buffer, build_upper_buffer)
31576 (re_string_translate_buffer, re_string_context_at)
31577 (re_string_char_size_at, re_string_wchar_at)
31578 (re_string_elem_size_at): Likewise.
31579 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31580 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31581 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31582 (re_search_internal, re_search_2_stub, re_search_stub)
31583 (re_copy_regs, prune_impossible_nodes, check_matching)
31584 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31585 (free_fail_stack_return, sift_states_iter_mb)
31586 (sift_states_backward, build_sifted_states)
31587 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31588 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31589 (check_subexp_limits, sift_states_bkref, merge_state_array)
31590 (find_recover_state, transit_state, merge_state_with_log)
31591 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31592 (transit_state_mb, transit_state_bkref, get_subexp)
31593 (get_subexp_sub, find_subexp_node, check_arrival)
31594 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31595 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31596 (check_node_accept_bytes, find_collation_sequence_value)
31597 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31598 (acquire_init_state_context, check_halt_node_context)
31599 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31600 (sub_epsilon_src_nodes): Likewise.
31601 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31602 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31603 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31604 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31605 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31606 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31607 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31608 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31609 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31610 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31611 (PREADV): Likewise.
31612 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31613 (PREADV): Likewise.
31614 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31615 (PWRITEV): Likewise.
31616 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31617 (PWRITEV): Likewise.
31618 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31619 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31620
31621 2017-08-31 Florian Weimer <fweimer@redhat.com>
31622
31623 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31624 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31625 Remove internal_function.
31626 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31627 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31628 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31629 (__deallocate_stack, __libc_pthread_init)
31630 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31631 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31632 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31633 Likewise.
31634 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31635 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31636 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31637 Likewise.
31638 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31639 (__pthread_mutex_unlock_usercnt): Likewise.
31640
31641 2017-08-31 Florian Weimer <fweimer@redhat.com>
31642
31643 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31644 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31645 (fts_safe_changedir): Remove internal_function.
31646 * io/ftw.c (internal_function): Remove definition.
31647 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31648
31649 2017-08-31 Florian Weimer <fweimer@redhat.com>
31650
31651 * inet/deadline.c (__deadline_current_time)
31652 (__deadline_from_timeval, __deadline_to_ms): Remove
31653 internal_function.
31654 * inet/getnameinfo.c (nrl_domainname): Likewise.
31655 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31656 * inet/inet6_option.c (add_pad): Likewise.
31657 * inet/net-internal.h (__deadline_current_time)
31658 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31659 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31660 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31661 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31662
31663 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31664
31665 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31666 include <bits/nan.h>.
31667 * math/Makefile (headers): Remove bits/nan.h.
31668 * bits/nan.h: Remove.
31669 * sysdeps/ieee754/bits/nan.h: Likewise.
31670 * sysdeps/mips/bits/nan.h: Likewise.
31671
31672 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31673 not include <bits/inf.h>.
31674 * math/Makefile (headers): Remove bits/inf.h.
31675 * bits/inf.h: Remove.
31676 * sysdeps/ieee754/bits/inf.h: Likewise.
31677
31678 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31679 bits/huge_vall.h or bits/huge_val_flt128.h.
31680 (HUGE_VAL): Define directly here.
31681 [__USE_ISOC99] (HUGE_VALF): Likewise.
31682 [__USE_ISOC99] (HUGE_VALL): Likewise.
31683 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31684 (HUGE_VAL_F128): Likewise.
31685 * math/Makefile (headers): Remove bits/huge_val.h,
31686 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31687 * bits/huge_val.h: Remove.
31688 * bits/huge_val_flt128.h: Likewise.
31689 * bits/huge_valf.h: Likewise.
31690 * bits/huge_vall.h: Likewise.
31691 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31692 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31693 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31694 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31695 * sysdeps/sh/bits/huge_val.h: Likewise.
31696 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31697 * sysdeps/x86/bits/huge_vall.h: Likewise.
31698
31699 2017-08-31 Florian Weimer <fweimer@redhat.com>
31700
31701 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31702 internal_function.
31703 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31704 Likewise.
31705 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31706 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31707 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31708 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31709 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31710 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31711 * elf/dl-libc.c (dlerror_run): Likewise.
31712 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31713 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31714 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31715 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31716 Likewise.
31717 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31718 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31719 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31720 * elf/dl-profile.c (_dl_start_profile): Likewise.
31721 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31722 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31723 Likewise.
31724 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31725 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31726 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31727 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31728 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31729 (_dl_allocate_tls_storage): Likewise.
31730 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31731 (_dl_check_all_versions): Likewise.
31732 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31733 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31734 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31735 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31736 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31737 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31738 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31739 internal_function from __dl_start.
31740 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31741 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31742 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31743 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31744 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31745 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31746 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31747 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31748 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31749 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31750 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31751 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31752 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31753 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31754 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31755 Likewise.
31756 (struct rtld_global_ro): Remove internal_function from the
31757 _dl_lookup_symbol_x member.
31758 (_dl_symbol_value): Remove. No longer defined anywhere.
31759 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31760 internal_function.
31761 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31762 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31763 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31764 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31765 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31766 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31767 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31768 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31769 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31770 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31771 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31772 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31773
31774 2017-08-31 Florian Weimer <fweimer@redhat.com>
31775
31776 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31777 Remove internal_function.
31778 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31779 Likewise.
31780 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31781 Likewise.
31782
31783 2017-08-31 Florian Weimer <fweimer@redhat.com>
31784
31785 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31786 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31787 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31788
31789 2017-08-31 Florian Weimer <fweimer@redhat.com>
31790
31791 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31792 (__gai_enqueue_request): Remove internal_function.
31793 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31794 (__gai_remove_request, __gai_notify, __gai_notify_only)
31795 (__gai_sigqueue): Likewise.
31796 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31797 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31798 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31799 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31800 Likewise.
31801
31802 2017-08-31 Florian Weimer <fweimer@redhat.com>
31803
31804 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31805 * include/dirent.h (__opendirat, __getdents, __getdents64)
31806 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31807 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31808 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31809 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31810 Likewise.
31811 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31812
31813 2017-08-31 Florian Weimer <fweimer@redhat.com>
31814
31815 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31816 internal_function.
31817 (GETCWD_RETURN_TYPE): Likewise.
31818
31819 2017-08-31 Florian Weimer <fweimer@redhat.com>
31820
31821 * include/time.h (__tz_compute, __strptime_internal): Remove
31822 internal_function.
31823 * time/strptime_l.c (__strptime_internal): Likewise.
31824 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31825
31826 2017-08-31 Florian Weimer <fweimer@redhat.com>
31827
31828 * iconv/gconv.c (__gconv): Remove internal_function.
31829 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31830 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31831 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31832 (__gconv_release_cache): Likewise.
31833 * iconv/gconv_close.c (__gconv_close): Likewise.
31834 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31835 (read_conf_file, __gconv_get_path): Likewise.
31836 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31837 (__gconv_release_step, gen_steps, increment_counter)
31838 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31839 (__gconv_close_transform, free_modules_db): Likewise.
31840 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31841 Likewise.
31842 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31843 (__gconv_find_transform, __gconv_lookup_cache)
31844 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31845 (__gconv_close_transform, __gconv_release_cache)
31846 (__gconv_loaded_object, __gconv_release_shlib)
31847 (__gconv_compare_alias): Likewise.
31848 * iconv/gconv_open.c (__gconv_open): Likewise.
31849 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31850 * iconv/iconvconfig.c (add_module): Likewise.
31851 * intl/dcigettext.c (plural_lookup, guess_category_value)
31852 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31853 * intl/eval-plural.h (plural_eval): Likewise.
31854 * intl/finddomain.c (_nl_find_domain): Likewise.
31855 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31856 (_nl_load_domain, _nl_find_msg): Likewise.
31857 (internal_function): Remove definition.
31858 * intl/loadinfo.h (internal_function): Likewise.
31859 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31860 internal_function.
31861 * intl/localealias.c (internal_function): Remove definition.
31862 (read_alias_file): Remove internal_function.
31863 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31864 * intl/plural-exp.h (internal_function): Remove definition.
31865 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31866 internal_function.
31867 * intl/plural.c: Regenerate.
31868 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31869 * locale/coll-lookup.c (__collidx_table_lookup)
31870 (__collseq_table_lookup): Likewise.
31871 * locale/coll-lookup.h (__collidx_table_lookup)
31872 (__collseq_table_lookup): Likewise.
31873 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31874 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31875 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31876 (_nl_unload_locale): Likewise.
31877 * locale/localeinfo.h (struct __locale_data): Remove
31878 internal_function from cleanup member.
31879 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31880 (_nl_remove_locale, _nl_load_locale_from_archive)
31881 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31882 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31883 (_nl_cleanup_time): Remove internal_function.
31884 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31885 (_nl_parse_alt_digit): Likewise.
31886 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31887 (_nl_select_era_entry): Likewise.
31888 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31889 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31890 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31891 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31892 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31893
31894 2017-08-31 Florian Weimer <fweimer@redhat.com>
31895
31896 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31897 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31898 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31899 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31900 Likewise.
31901 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31902 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31903 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31904 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31905 Likewise.
31906 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31907
31908 2017-08-31 Florian Weimer <fweimer@redhat.com>
31909
31910 * misc/getttyent.c (skip, value): Remove internal_function.
31911 * misc/syslog.c (openlog_internal): Likewise.
31912 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31913
31914 2017-08-31 Florian Weimer <fweimer@redhat.com>
31915
31916 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31917 (__nss_rewrite_field): Remove internal_function.
31918 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31919 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31920 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31921 * nss/nsswitch.c (nss_parse_file, nss_getline)
31922 (nss_parse_service_list, nss_new_service): Likewise.
31923 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31924 * nss/valid_field.c (__nss_valid_field): Likewise.
31925 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31926
31927 2017-08-31 Florian Weimer <fweimer@redhat.com>
31928
31929 * malloc/arena.c (__malloc_fork_lock_parent)
31930 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31931 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31932 internal_function from defintions.
31933 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31934 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31935 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31936 internal_function from declarations.
31937 * malloc/malloc.c (internal_function): Do not define.
31938 (mem2mem_check): Remove internal_function from declaration.
31939 (munmap_chunk, mremap_chunk): Remove internal_function.
31940 * malloc/mtrace.c (tr_where): Likewise.
31941
31942 2017-08-31 Florian Weimer <fweimer@redhat.com>
31943
31944 * include/rpc/pmap_clnt.h (__get_socket): Remove
31945 internal_function.
31946 * sunrpc/auth_des.c (synchronize): Likewise.
31947 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31948 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31949 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31950 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31951 (key_call): Likewise.
31952 * sunrpc/pm_getport.c (__get_socket): Likewise.
31953 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31954 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31955 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31956 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31957 (invalidate): Likewise.
31958 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31959 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31960 (set_input_fragment, get_input_bytes): Likewise.
31961
31962 2017-08-31 Florian Weimer <fweimer@redhat.com>
31963
31964 * malloc/malloc.c (_int_free): Remove locked variable and related
31965 asserts.
31966
31967 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31968
31969 [BZ #22051]
31970 * Makerules (build-module-helper-objlist): Filter out
31971 $(elf-objpfx)sofini.os.
31972 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31973 needed.
31974
31975 2017-08-31 Florian Weimer <fweimer@redhat.com>
31976
31977 * libio/fcloseall.c: Assume weak_alias is defined.
31978 * libio/feof.c: Likewise.
31979 * libio/fileno.c: Likewise.
31980 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31981 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31982 definitions.
31983 (_IO_file_open): Call __open directly.
31984 (_IO_new_file_sync): Assume ESPIPE is defined.
31985 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31986 (_IO_new_file_write): Call __write directly.
31987 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31988 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31989 * libio/genops.c: Assume _LIBC is defined.
31990 (save_for_backup): Remove internal_function.
31991 * libio/getc.c: Assume weak_alias is defined.
31992 * libio/getwc.c: Likewise.
31993 * libio/iofclose.c: Assume _LIBC is defined.
31994 * libio/iofdopen.c: Likewise.
31995 (_IO_fcntl): Remove macro definition.
31996 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31997 Call __fcntl directly.
31998 * libio/iofflush.c: Assume weak_alias is defined.
31999 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
32000 defined.
32001 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
32002 * libio/iofgets.c: Likewise.
32003 * libio/iofopen.c: Assume _LIBC is defined.
32004 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
32005 * libio/iofputs.c: Assume weak_alias is defined.
32006 * libio/iofread.c: Likewise.
32007 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
32008 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
32009 * libio/ioftell.c: Assume weak_alias is defined.
32010 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
32011 * libio/iofwide.c: Assume _LIBC is defined.
32012 (_IO_fwide): Drop SHARED conditional because it is implied by
32013 SHLIB_COMPAT.
32014 * libio/iofwrite.c: Assume weak_alias is defined.
32015 * libio/iogetdelim.c: Likewise.
32016 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
32017 * libio/iogetwline.c (wmemcpy): Remove macro definition.
32018 (_IO_getwline): Call __wmemcpy directly.
32019 * libio/iopopen.c: Assume _LIBC is defined.
32020 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32021 (_IO_close): Remove macro definitions.
32022 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
32023 _exit directly.
32024 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
32025 directly.
32026 * libio/ioputs.c: Assume weak_alias is defined.
32027 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
32028 * libio/iosetbuffer.c: Assume weak_alias is defined.
32029 * libio/iosetvbuf.c: Likewise.
32030 * libio/ioungetc.c: Likewise.
32031 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
32032 libc_hidden_def, libc_hidden_weak, NULL are defined.
32033 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
32034 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
32035 defined.
32036 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
32037 definitions.
32038 (_IO_old_file_init_internal): Drop SHARED conditional because it
32039 is implied by SHLIB_COMPAT.
32040 (_IO_old_file_fopen): Call __open directly.
32041 (_IO_old_file_sync): Assume ESPIPE is defined.
32042 (_IO_old_file_write): Call __write directly.
32043 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
32044 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
32045 Call __fcntl directly.
32046 * libio/oldiofgetpos.c: Assume weak_alias is defined.
32047 (_IO_old_fgetpos): Assume EIO is defined.
32048 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
32049 (_IO_old_fgetpos64): Assume EIO is defined.
32050 * libio/oldiofsetpos.c: Assume weak_alias is defined.
32051 (_IO_old_fsetpos): Assume EIO is defined.
32052 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
32053 (_IO_old_fsetpos64): Assume EIO is defined.
32054 * libio/oldiopopen.c: Assume _LIBC is defined.
32055 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
32056 (_IO_close): Remove macro definitions.
32057 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
32058 directly.
32059 (_IO_old_proc_close): Call __close, __waitpid directly.
32060 * libio/put.c: Assume weak_alias is defined.
32061 * libio/stdfiles.c: Assume _LIBC is defined.
32062 * libio/stdio.c: Likewise.
32063 * libio/wfileops.c: Likewise.
32064 (_IO_wfile_sync): Assume ESPIPE is defined.
32065 * libio/wgenops.c: Assume _LIBC is defined.
32066 (save_for_wbackup): Remove internal_function.
32067
32068 2017-08-31 Florian Weimer <fweimer@redhat.com>
32069
32070 * malloc/malloc.c (top_check): Change return type to void. Remove
32071 internal_function.
32072 * malloc/hooks.c (top_check): Likewise.
32073 (malloc_check, realloc_check, memalign_check): Adjust.
32074
32075 2017-08-30 Joseph Myers <joseph@codesourcery.com>
32076
32077 [BZ #21457]
32078 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32079 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
32080 sigcontext and namespace requirements.
32081 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
32082 * sysdeps/m68k/sys/ucontext.h: Likewise.
32083 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
32084 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
32085 <bits/sigcontext.h>.
32086 (__ctx): Define earlier.
32087 (mcontext_t): Define structure contents rather than using struct
32088 sigcontext.
32089 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
32090 __glibc_reserved1 instead of __reserved.
32091 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
32092 <bits/sigcontext.h>.
32093 (__ctx): Define earlier.
32094 (mcontext_t): Define structure contents rather than using struct
32095 sigcontext.
32096 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
32097 mcontext_t instead of struct sigcontext.
32098 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
32099 <bits/sigcontext.h>.
32100 (__ctx): Define earlier.
32101 (mcontext_t): Define structure contents rather than using struct
32102 sigcontext.
32103 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
32104 <bits/sigcontext.h>.
32105 (__ctx): Define earlier.
32106 (mcontext_t): Define structure contents rather than using struct
32107 sigcontext.
32108 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
32109 mcontext_t instead of struct sigcontext.
32110 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
32111 mcontext_t instead of struct sigcontext.
32112 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
32113 <bits/sigcontext.h>.
32114 (__ctx): New macro.
32115 (struct __ia64_fpreg_mcontext): New type.
32116 (mcontext_t): Define structure contents rather than using struct
32117 sigcontext.
32118 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
32119 (uc_sigmask): Define using __ctx.
32120 (uc_stack): Likewise.
32121 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
32122 <bits/sigcontext.h>.
32123 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
32124 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
32125 <bits/sigcontext.h>.
32126 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
32127 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
32128 <bits/sigcontext.h>.
32129 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
32130 <bits/sigcontext.h>.
32131 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
32132 <bits/sigcontext.h>.
32133 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
32134 <bits/sigcontext.h>.
32135 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
32136 <bits/sigcontext.h>.
32137 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
32138 <bits/sigcontext.h>.
32139 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
32140 <bits/sigcontext.h>.
32141 (__ctx): Define earlier.
32142 (mcontext_t): Define structure contents rather than using struct
32143 sigcontext.
32144 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
32145 <bits/sigcontext.h>. Include <bits/types.h>.
32146 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32147 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32148 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32149 (test-xfail-UNIX98/signal.h/conform): Likewise.
32150 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32151 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32152 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32153 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32154 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32155 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32156 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32157 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32158 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32159
32160 2017-08-30 Florian Weimer <fweimer@redhat.com>
32161
32162 * malloc/dynarray_emplace_enlarge.c
32163 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32164 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32165 * malloc/tst-dynarray.c (test_long_overflow): New function.
32166 (do_test): Call it.
32167
32168 2017-08-30 Florian Weimer <fweimer@redhat.com>
32169
32170 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32171 (set_arena_corrupt): Remove definitions.
32172 (mtrim): Do not check for corrupt arena.
32173 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32174 Likewise.
32175
32176 2017-08-30 Florian Weimer <fweimer@redhat.com>
32177
32178 [BZ #21754]
32179 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32180 check_action.
32181 (ptmalloc_init): Do not set or use check_action.
32182 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32183 call to malloc_printerr. Remove return statement.
32184 (free_check): Likewise. Remove arena unlock.
32185 (top_check): Update comment. Adjust call to malloc_printerr.
32186 Remove heap repair code.
32187 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32188 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32189 (sysmalloc): Adjust call to malloc_printerr.
32190 (munmap_chunk, __libc_realloc): Likewise. Remove return
32191 statement.
32192 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32193 Remove errout label and corresponding gotos.
32194 (_int_free): Likewise. Remove arena unlock.
32195 (do_set_mallopt_check): Do not set check_action.
32196 (malloc_printerr): Adjust parameter list. Do not mark arena as
32197 corrupt.
32198 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32199 comment.
32200 * manual/probes.texi (Memory Allocation Probes): Remove
32201 memory_mallopt_check_action.
32202
32203 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32204
32205 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32206 Use pointer to uint64_t instead of long int for sp.
32207
32208 2017-08-30 Florian Weimer <fweimer@redhat.com>
32209
32210 [BZ #21754]
32211 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32212 without printing a backtrace. Do not leak any information in the
32213 error message.
32214 * manual/memory.texi (Heap Consistency Checking): Update.
32215 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32216
32217 2017-08-30 Florian Weimer <fweimer@redhat.com>
32218
32219 Do not scale NPTL tests with available number of CPUs.
32220 * nptl/tst-cond16.c (count): Set to constant value of 8.
32221 * nptl/tst-cond18.c (count): Likewise.
32222
32223 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32224
32225 [BZ #22035]
32226 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32227 Define to take a second argument that is a macro that
32228 concatentates a suffix, not the suffix itself.
32229 (__CONCAT_d): New macro.
32230 (__CONCAT_f): Likewise.
32231 (__CONCAT_l): Likewise.
32232
32233 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32234
32235 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32236 by child.
32237
32238 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32239 Aurelien Jarno <aurelien@aurel32.net>
32240 Maciej W. Rozycki <macro@imgtec.com>
32241
32242 [BZ #21956]
32243 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32244 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32245 `mips16-syscall6' and `mips16-syscall7'.
32246 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32247 (CFLAGS-mips16-syscall7.c): Remove.
32248 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32249 Remove `__mips16_syscall5', `__mips16_syscall6' and
32250 `__mips16_syscall7'.
32251 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32252 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32253 `__mips_syscall_return'.
32254 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32255 (__mips16_syscall1): Likewise.
32256 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32257 (__mips16_syscall2): Likewise.
32258 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32259 (__mips16_syscall3): Likewise.
32260 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32261 (__mips16_syscall4): Likewise.
32262 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32263 Remove.
32264 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32265 Remove.
32266 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32267 Remove.
32268 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32269 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32270 `__mips16_syscall5'. Remove prototype.
32271 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32272 `__mips16_syscall6'. Remove prototype.
32273 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32274 `__mips16_syscall7'. Remove prototype.
32275 (__nomips16, __mips16_syscall_return): Move to...
32276 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32277 (__nomips16, __mips_syscall_return): ... here.
32278 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32279 `__mips16_syscall_return' to `__mips_syscall_return'.
32280 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32281 `internal_syscall##nr'.
32282 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32283 `internal_syscall##nr'.
32284 (FORCE_FRAME_POINTER): Remove.
32285 (__mips_syscall5): New prototype.
32286 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32287 (__mips_syscall6): New prototype.
32288 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32289 (__mips_syscall7): New prototype.
32290 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32291 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32292 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32293 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32294 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32295 (sysdep_routines): Add libc-do-syscall.
32296 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32297 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32298
32299 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32300
32301 [BZ #21672]
32302 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32303 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32304 (advise_stack_range): New function.
32305 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32306 stack non required to advise_stack_range at allocatestack.c
32307
32308 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32309
32310 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32311
32312 2017-08-29 Florian Weimer <fweimer@redhat.com>
32313
32314 [BZ #22026]
32315 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32316 __end_fct. Mangle __end_fct after setting it to NULL.
32317 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32318 (modules-names, modules-names-tests): Add
32319 tst-gconv-init-failure-mod.
32320 (gconv-modules): New target.
32321 (tst-gconv-init-failure-mod.so): Link against libsupport.
32322 (tst-gconv-init-failure): Depend on gconv-modules,
32323 tst-gconv-init-failure-mod.so.
32324 * iconv/tst-gconv-init-failure-mod.c: New file.
32325 * iconv/tst-gconv-init-failure.c: Likewise.
32326 * iconv/test-gconv-modules: Likewise.
32327
32328 2017-08-29 Florian Weimer <fweimer@redhat.com>
32329
32330 [BZ #22025]
32331 * iconv/gconv_db.c (free_derivation): Remove redundant
32332 parentheses.
32333 (gen_steps): Unconditionally mangle __btowc_fct after
32334 initialization.
32335 (increment_counter): Likewise. Do not call init_fct for internal
32336 modules.
32337
32338 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32339
32340 [BZ #22028]
32341 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32342 (_MSUF_): Remove macro.
32343 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32344 Likewise.
32345 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32346 (__REDIRFROM_X): New macro.
32347 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32348 Likewise.
32349 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32350 (__REDIRTO_X): Likewise.
32351 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32352 arguments.
32353 (__MATH_REDIRCALL_2): Likewise.
32354 (__MATH_REDIRCALL_INTERNAL): Likewise.
32355 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32356 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32357 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32358 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32359 * math/test-finite-macros.c: New file.
32360 * math/Makefile (tests): Add test-finite-macros.
32361 (CFLAGS-test-finite-macros.c): New variable.
32362
32363 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32364 Jeff Law <law@redhat.com>
32365
32366 [BZ #22025]
32367 Mangle NULL pointers in iconv/gconv.
32368 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32369 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32370 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32371 is non-NULL before demangling the end_fct. Check for NULL
32372 end_fct after demangling.
32373 (__gconv_release_step): Demangle the end_fct before checking
32374 it for NULL. Remove assert on __shlibc_handle != NULL.
32375 (gen_steps): Don't check btowc_fct for NULL before mangling.
32376 Demangle init_fct before checking for NULL.
32377 (increment_counter): Likewise.
32378 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32379 end_fct for NULL before mangling.
32380 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32381 for NULL.
32382
32383 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32384
32385 [BZ #21971]
32386 * locale/iso-639.def: add Morisyen.
32387
32388 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32389
32390 [BZ #21930]
32391 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32392 (iszero): New C++ implementation that does not use
32393 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32394 signaling nans are enabled, since __builtin_types_compatible_p
32395 is a C-only feature.
32396 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32397 defined, include ieee754_float128.h for access to the union and
32398 member ieee854_float128.ieee.
32399 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32400 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32401 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32402 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32403 options of test-math-zero on powerpc64le.
32404
32405 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32406
32407 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32408 Change double to float.
32409
32410 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32411
32412 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32413 unconditional.
32414 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32415 conditional code; define contents only for [LIBM_SVID_COMPAT].
32416
32417 2017-08-28 Florian Weimer <fweimer@redhat.com>
32418
32419 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32420 (abi-lp64_be-options): Remove.
32421 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32422 (abi-hard-options): Likewise.
32423 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32424 (abi-o32_hard-options, abi-o32_soft_2008-options)
32425 (abi-o32_hard_2008-options, abi-n32_soft-options)
32426 (abi-n32_hard-options, abi-n32_soft_2008-options)
32427 (abi-n32_hard_2008-options, abi-n64_soft-options)
32428 (abi-n64_hard-options, abi-n64_soft_2008-options)
32429 (abi-n64_hard_2008-options): Likewise.
32430 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32431 (abi-64-v1-options, abi-64-v2-options): Likewise.
32432 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32433 (abi-64-options): Likewise.
32434 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32435 (abi-64-options): Likewise.
32436 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32437 (abi-64-options): Likewise.
32438 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32439 (abi-64-options, abi-x32-options): Likewise.
32440
32441 2017-08-28 Florian Weimer <fweimer@redhat.com>
32442
32443 Store supported list of SYS_* system calls in the source tree.
32444 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32445 (bits/syscall.h): Generate from list file.
32446 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32447 [$(subdir) = misc] (tests): Add tst-syscall-list.
32448 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32449 [$(subdir) = misc] (tst-syscall-list-macros.list)
32450 [$(subdir) = misc] (tst-syscall-list-nr.list)
32451 (tst-syscall-list-sys.list): Helper targets for new
32452 tst-syscall-list test.
32453 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32454 tst-syscall-list.sh.
32455 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32456 target. Do not include bits/syscall.d.
32457 [$(subdir) = misc] (generated): Do not update.
32458 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32459 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32460 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32461 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32462
32463 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32464
32465 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32466 (tst-cxa_atexit, tst-on_exit): Likewise.
32467 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32468 tst-cxa_atexit, and tst-on_exit.
32469 * stdlib/tst-atexit-common.c: New file.
32470 * stdlib/tst-atexit.c: New file.
32471 * stdlib/tst-at_quick_exit.c: New file.
32472 * stdlib/tst-cxa_atexit.c: New file.
32473 * stdlib/tst-on_exit.c: New file.
32474
32475 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32476
32477 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32478 * mach/stack_chk_fail_local.c: New file.
32479 * hurd/stack_chk_fail_local.c: New file.
32480 * mach/Machrules ($(interface-library)-routines): Add
32481 stack_chk_fail_local.
32482 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32483 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32484 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32485 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32486 * hurd/Makefile (CFLAGS-hurdstartup.o,
32487 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32488
32489 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32490
32491 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32492 (index_cpu_*, index_arch_*): Removed.
32493
32494 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32495
32496 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32497 Use uint64_t instead of unsigned long.
32498
32499 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32500
32501 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32502 [__HAVE_DISTINCT_FLOAT128].
32503
32504 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32505 of <bits/math-finite.h>.
32506 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32507 inclusion of <bits/math-finite.h>.
32508 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32509 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32510 __NO_LONG_DOUBLE_MATH].
32511 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32512 (__MATH_REDIRCALL_2): Likewise.
32513 (__MATH_REDIRCALL_INTERNAL): Likewise.
32514 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32515 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32516 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32517
32518 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32519 Remove file.
32520 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32521 Likewise.
32522 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32523 Likewise.
32524 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32525 Likewise.
32526 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32527 Likewise.
32528 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32529 Likewise.
32530 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32531 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32532 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32533 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32534 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32535 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32536 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32537 w_sqrtf_compat-ppc32.
32538
32539 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32540
32541 * math/math.h [defined __cplusplus] (issignaling): In the long
32542 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32543 is not defined. Call __issignaling, otherwise.
32544
32545 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32546
32547 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32548 syscall definitions and replace __builtin_expect with __glibc_likely.
32549 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32550 syscall.
32551 (SYSCALL_CANCELLABLE): Removedefinition
32552 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32553 definition.
32554 (PSEUDO_END): Likewise.
32555 [IS_IN (libpthread)] (CENABLE): Likewise.
32556 [IS_IN (libpthread)] (CDISABLE): Likewise.
32557 [IS_IN (libc)] (CENABLE): Likewise.
32558 [IS_IN (libc)] (CENABLE): Likewise.
32559 [IS_IN (librt)] (CDISABLE): Likewise.
32560 [IS_IN (librt)] (CDISABLE): Likewise.
32561 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32562 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32563 definition.
32564 (PSEUDO_END): Likewise.
32565 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32566 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32567 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32568 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32569 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32570 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32571 (CENABLE): Likewise.
32572 (CDISABLE): Likewise.
32573 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32574 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32575 defintion.
32576 (PSEUDO_END): Likewise.
32577 [IS_IN (libpthread)] (CENABLE): Likewise.
32578 [IS_IN (libpthread)] (CDISABLE): Likewise.
32579 [IS_IN (libc)] (CENABLE): Likewise.
32580 [IS_IN (libc)] (CENABLE): Likewise.
32581 [IS_IN (librt)] (CDISABLE): Likewise.
32582 [IS_IN (librt)] (CDISABLE): Likewise.
32583 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32584 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32585 definition.
32586 (PSEUDO_END): Likewise.
32587 [IS_IN (libpthread)] (CENABLE): Likewise.
32588 [IS_IN (libpthread)] (CDISABLE): Likewise.
32589 [IS_IN (libc)] (CENABLE): Likewise.
32590 [IS_IN (libc)] (CENABLE): Likewise.
32591 [IS_IN (librt)] (CDISABLE): Likewise.
32592 [IS_IN (librt)] (CDISABLE): Likewise.
32593 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32594 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32595 definition.
32596 (PSEUDO_END): Likewise.
32597 [IS_IN (libpthread)] (CENABLE): Likewise.
32598 [IS_IN (libpthread)] (CDISABLE): Likewise.
32599 [IS_IN (libc)] (CENABLE): Likewise.
32600 [IS_IN (libc)] (CENABLE): Likewise.
32601 [IS_IN (librt)] (CDISABLE): Likewise.
32602 [IS_IN (librt)] (CDISABLE): Likewise.
32603 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32604 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32605 definition.
32606 (PSEUDO_END): Likewise.
32607 [IS_IN (libpthread)] (CENABLE): Likewise.
32608 [IS_IN (libpthread)] (CDISABLE): Likewise.
32609 [IS_IN (libc)] (CENABLE): Likewise.
32610 [IS_IN (libc)] (CENABLE): Likewise.
32611 [IS_IN (librt)] (CDISABLE): Likewise.
32612 [IS_IN (librt)] (CDISABLE): Likewise.
32613 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32614 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32615 definition.
32616 (PSEUDO_END): Likewise.
32617 [IS_IN (libpthread)] (CENABLE): Likewise.
32618 [IS_IN (libpthread)] (CDISABLE): Likewise.
32619 [IS_IN (libc)] (CENABLE): Likewise.
32620 [IS_IN (libc)] (CENABLE): Likewise.
32621 [IS_IN (librt)] (CDISABLE): Likewise.
32622 [IS_IN (librt)] (CDISABLE): Likewise.
32623 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32624 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32625 definition.
32626 (PSEUDO_END): Likewise.
32627 [IS_IN (libpthread)] (CENABLE): Likewise.
32628 [IS_IN (libpthread)] (CDISABLE): Likewise.
32629 [IS_IN (libc)] (CENABLE): Likewise.
32630 [IS_IN (libc)] (CENABLE): Likewise.
32631 [IS_IN (librt)] (CDISABLE): Likewise.
32632 [IS_IN (librt)] (CDISABLE): Likewise.
32633 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32634 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32635 Remove definition.
32636 (PSEUDO_END): Likewise.
32637 [IS_IN (libpthread)] (CENABLE): Likewise.
32638 [IS_IN (libpthread)] (CDISABLE): Likewise.
32639 [IS_IN (libc)] (CENABLE): Likewise.
32640 [IS_IN (libc)] (CENABLE): Likewise.
32641 [IS_IN (librt)] (CDISABLE): Likewise.
32642 [IS_IN (librt)] (CDISABLE): Likewise.
32643 (SINGLE_THREAD_P): Likewise.
32644 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32645 definition.
32646 (PSEUDO_END): Likewise.
32647 [IS_IN (libpthread)] (CENABLE): Likewise.
32648 [IS_IN (libpthread)] (CDISABLE): Likewise.
32649 [IS_IN (libc)] (CENABLE): Likewise.
32650 [IS_IN (libc)] (CENABLE): Likewise.
32651 [IS_IN (librt)] (CDISABLE): Likewise.
32652 [IS_IN (librt)] (CDISABLE): Likewise.
32653 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32654 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32655 definition.
32656 (PSEUDO_END): Likewise.
32657 [IS_IN (libpthread)] (CENABLE): Likewise.
32658 [IS_IN (libpthread)] (CDISABLE): Likewise.
32659 [IS_IN (libc)] (CENABLE): Likewise.
32660 [IS_IN (libc)] (CENABLE): Likewise.
32661 [IS_IN (librt)] (CDISABLE): Likewise.
32662 [IS_IN (librt)] (CDISABLE): Likewise.
32663 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32664 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32665 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32666 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32667 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32668 definition.
32669 (PSEUDO_END): Likewise.
32670 [IS_IN (libpthread)] (CENABLE): Likewise.
32671 [IS_IN (libpthread)] (CDISABLE): Likewise.
32672 [IS_IN (libc)] (CENABLE): Likewise.
32673 [IS_IN (libc)] (CENABLE): Likewise.
32674 [IS_IN (librt)] (CDISABLE): Likewise.
32675 [IS_IN (librt)] (CDISABLE): Likewise.
32676 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32677 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32678 definition.
32679 (PSEUDO_END): Likewise.
32680 [IS_IN (libpthread)] (CENABLE): Likewise.
32681 [IS_IN (libpthread)] (CDISABLE): Likewise.
32682 [IS_IN (libc)] (CENABLE): Likewise.
32683 [IS_IN (libc)] (CENABLE): Likewise.
32684 [IS_IN (librt)] (CDISABLE): Likewise.
32685 [IS_IN (librt)] (CDISABLE): Likewise.
32686 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32687 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32688 definition.
32689 (PSEUDO_END): Likewise.
32690 [IS_IN (libpthread)] (CENABLE): Likewise.
32691 [IS_IN (libpthread)] (CDISABLE): Likewise.
32692 [IS_IN (libc)] (CENABLE): Likewise.
32693 [IS_IN (libc)] (CENABLE): Likewise.
32694 [IS_IN (librt)] (CDISABLE): Likewise.
32695 [IS_IN (librt)] (CDISABLE): Likewise.
32696 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32697 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32698 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32699 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32700 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32701 definition.
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/x86_64/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
32721 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32722
32723 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32724
32725 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32726
32727 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32728
32729 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32730
32731 [BZ #21982]
32732 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32733 middle and outer with size_t instead of int. Repleace %d and
32734 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32735 "MAX (outer, nchars - 64)" to support unsigned outer and
32736 nchars. Also exit loop when outer == 0.
32737
32738 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32739
32740 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32741 * include/signal.h (__sigsuspend_nocancel): Likewise.
32742 * include/time.h (__nanosleep_nocancel): Likewise.
32743 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32744 * login/utmp_file.c: Include non cancellable syscall header.
32745 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32746 prototype.
32747
32748 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32749
32750 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32751 .byte sequences with AVX512F instructions.
32752 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32753 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32754 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32755 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32756 Likewise.
32757 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32758 Likewise.
32759
32760 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32761 Steve Ellcey <sellcey@cavium.com>
32762
32763 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32764 Use PTR_REG macro in cmp instruction.
32765
32766 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32767
32768 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32769 Change the return type of the ifunc resolver to match the return
32770 type of the target function.
32771
32772 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32773
32774 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32775 (preadv64): Likewise.
32776 (pwrite64(: Likewise.
32777 (pwritev64): Likewise.
32778
32779 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32780 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32781 (LOAD_ARGS_0): Likewise.
32782 (LOAD_ARGS_1): Likewise.
32783 (LOAD_ARGS_2): Likewise.
32784 (LOAD_ARGS_3): Likewise.
32785 (LOAD_ARGS_4): Likewise.
32786 (LOAD_ARGS_5): Likewise.
32787 (LOAD_ARGS_6): Likewise.
32788 (LOAD_REGS_0): Likewise.
32789 (LOAD_REGS_1): Likewise.
32790 (LOAD_REGS_2): Likewise.
32791 (LOAD_REGS_3): Likewise.
32792 (LOAD_REGS_4): Likewise.
32793 (LOAD_REGS_5): Likewise.
32794 (LOAD_REGS_6): Likewise.
32795 (ASM_ARGS_0): Likewise.
32796 (ASM_ARGS_1): Likewise.
32797 (ASM_ARGS_2): Likewise.
32798 (ASM_ARGS_3): Likewise.
32799 (ASM_ARGS_4): Likewise.
32800 (ASM_ARGS_5): Likewise.
32801 (ASM_ARGS_6): Likewise.
32802 (LOAD_ARGS_TYPES_1): Likewise.
32803 (LOAD_ARGS_TYPES_2): Likewise.
32804 (LOAD_ARGS_TYPES_3): Likewise.
32805 (LOAD_ARGS_TYPES_4): Likewise.
32806 (LOAD_ARGS_TYPES_5): Likewise.
32807 (LOAD_ARGS_TYPES_6): Likewise.
32808 (LOAD_REGS_TYPES_1): Likewise.
32809 (LOAD_REGS_TYPES_2): Likewise.
32810 (LOAD_REGS_TYPES_3): Likewise.
32811 (LOAD_REGS_TYPES_4): Likewise.
32812 (LOAD_REGS_TYPES_5): Likewise.
32813 (LOAD_REGS_TYPES_6): Likewise.
32814 (TYPEFY): New define.
32815 (ARGIFY): Likewise.
32816 (internal_syscall0): Likewise.
32817 (internal_syscall1): Likewise.
32818 (internal_syscall2): Likewise.
32819 (internal_syscall3): Likewise.
32820 (internal_syscall4): Likewise.
32821 (internal_syscall5): Likewise.
32822 (internal_syscall6): Likewise.
32823 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32824 (INTERNAL_SYSCALL_NCS): Remove define.
32825 (internal_syscall1): Add define.
32826
32827 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32828
32829 * math/w_remainder_compat.c: Remove duplicate inclusion of
32830 math-svid-compat.h.
32831 * math/w_remainderf_compat.c: Likewise.
32832 * math/w_remainderl_compat.c: Likewise.
32833
32834 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32835
32836 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32837
32838 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32839
32840 [BZ #21684]
32841 * math/tgmath.h (__floating_type): Simplify definitions.
32842 (__real_integer_type): New macro.
32843 (__complex_integer_type): Likewise.
32844 (__expr_is_real): Likewise.
32845 (__tgmath_real_type_sub): Update comment to describe handling of
32846 complex types.
32847 (__tgmath_complex_type_sub): New macro.
32848 (__tgmath_complex_type): Likewise.
32849 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32850 (__TGMATH_CF128): Use __expr_is_real.
32851 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32852 __expr_is_real.
32853 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32854 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32855 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32856 integer types.
32857
32858 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32859
32860 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32861 macro.
32862 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32863 alias.
32864 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32865 Likewise.
32866
32867 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32868 nanosleep_not_cancel with __nanosleep_nocancel.
32869 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32870 (__nanosleep_nocancel): New macro.
32871 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32872 function.
32873 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32874 macro.
32875 (__nanosleep_nocancel): New prototype.
32876
32877 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32878 pause_not_cancel with __pause_nocancel.
32879 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32880 (__pause_nocancel): New macro.
32881 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32882 macro.
32883 (__pause_nocancel): New prototype.
32884 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32885
32886 2017-08-22 Martin Sebor <msebor@redhat.com>
32887
32888 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32889 to return a pointer to the same type as the target function.
32890
32891 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32892
32893 [BZ #18822]
32894 [BZ #21986]
32895 * include/printf.h (__printf_fphex): Add attribute_hidden.
32896 (__guess_grouping): New prototype.
32897 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32898 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32899 libc_hidden_proto and libc_hidden_def.
32900 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32901 (__vstrfmon_l): Remove the third argument passed to
32902 __guess_grouping.
32903
32904 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32905
32906 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32907 definition for issignaling that does not rely on __MATH_TG,
32908 since __MATH_TG uses __builtin_types_compatible_p, which is only
32909 available in C mode.
32910 (CFLAGS-test-math-issignaling.cc): New variable.
32911 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32912 * math/test-math-issignaling.cc: New test for C++ implementation
32913 of type-generic issignaling.
32914 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32915 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32916 options of test-math-issignaling on powerpc64le.
32917
32918 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32919
32920 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32921 building libc.a.
32922 (hidden_proto): Likewise.
32923 (hidden_tls_proto): Likewise.
32924 (__hidden_proto): Likewise.
32925
32926 2017-08-22 Florian Weimer <fweimer@redhat.com>
32927
32928 math: Statically link tests of internal functionality.
32929 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32930 atest-exp2.
32931 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32932 (gmp-objs): Remove assignment.
32933 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32934
32935 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32936
32937 [BZ #21987]
32938 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32939 and copy to ...
32940 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32941 ... here.
32942 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32943 ... and here.
32944
32945 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32946 variable definitions above inclusion of ../Rules.
32947
32948 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32949
32950 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32951 case calling __builtin_unreachable.
32952
32953 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32954
32955 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32956 __waitpid_nocancel.
32957 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32958 (__waitpid_nocancel): New macro.
32959 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32960 macro.
32961 (__waitpid_nocancel): Replace macro with a function.
32962 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32963 function.
32964
32965 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32966 __fcntl_nocancel.
32967 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32968 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32969
32970 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32971 __writev_nocancel_nostatus.
32972 (write_call_graph): Likewise.
32973 (write_bb_counts): Likewise.
32974 * resolv/herror.c (herror): Likewise.
32975 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32976 macro.
32977 (__writev_nocancel_nostatus): New macro.
32978 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32979 Remove macro.
32980 (__writev_nocancel_nostatus): New function.
32981
32982 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32983
32984 Revert:
32985 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32986
32987 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32988 building libc.a.
32989 (hidden_proto): Likewise.
32990 (hidden_tls_proto): Likewise.
32991 (__hidden_proto): Likewise.
32992
32993 [BZ #21973]
32994 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32995 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32996 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32997 Likewise.
32998 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32999 Likewise.
33000 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33001 Likewise.
33002 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
33003 Likewise.
33004 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
33005 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33006 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33007 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33008 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
33009 GLIBC_2.0 sqrtl symbol.
33010
33011 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
33012 [__USE_MISC] (_LIB_VERSION): Likewise.
33013 [__USE_MISC] (struct exception): Likewise.
33014 [__USE_MISC] (matherr): Likewise.
33015 [__USE_MISC] (DOMAIN): Likewise.
33016 [__USE_MISC] (SING): Likewise.
33017 [__USE_MISC] (OVERFLOW): Likewise.
33018 [__USE_MISC] (UNDERFLOW): Likewise.
33019 [__USE_MISC] (TLOSS): Likewise.
33020 [__USE_MISC] (PLOSS): Likewise.
33021 [__USE_MISC] (HUGE): Likewise.
33022 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
33023 * math/math-svid-compat.h: New file.
33024 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
33025 and matherrl.
33026 * include/math.h [!_ISOMAC] (__matherr): Remove.
33027 * manual/arith.texi (FP Exceptions): Do not document matherr.
33028 * math/Makefile (tests): Change test-matherr to test-matherr-3.
33029 (tests-internal): New variable.
33030 (install-lib): Do not add libieee.a.
33031 (non-lib.a): Likewise.
33032 (extra-objs): Do not add libieee.a and ieee-math.o.
33033 (CPPFLAGS-s_lib_version.c): Remove variable.
33034 ($(objpfx)libieee.a): Remove rule.
33035 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
33036 * math/ieee-math.c: Remove.
33037 * math/libm-test-support.c (matherr): Remove.
33038 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
33039 and license notices. Include <math-svid-compat.h> and
33040 <shlib-compat.h>.
33041 (matherr): Undefine as macro. Use compat_symbol_reference.
33042 (_LIB_VERSION): Likewise.
33043 * math/test-matherr-2.c: New file.
33044 * math/test-matherr-3.c: Likewise.
33045 * sysdeps/generic/math_private.h (__kernel_standard): Remove
33046 declaration.
33047 (__kernel_standard_f): Likewise.
33048 (__kernel_standard_l): Likewise.
33049 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
33050 <math_private.h>. Include <math-svid-compat.h>.
33051 (_LIB_VERSION): Undefine as macro.
33052 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
33053 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
33054 [LIBM_SVID_COMPAT], use compat_symbol.
33055 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
33056 <math_private.h>. Include <math-svid-compat.h>.
33057 (matherr): Undefine as macro.
33058 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
33059 compat_symbol.
33060 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
33061 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
33062 compat_symbol_reference.
33063 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
33064 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
33065 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
33066 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
33067 (MATHERR_D): Remove declaration.
33068 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
33069 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
33070 [LIBM_BUILD] (pmatherrf): Likewise.
33071 [LIBM_BUILD] (pmatherr): Likewise.
33072 [LIBM_BUILD] (pmatherrl): Likewise.
33073 (DOMAIN): Likewise.
33074 (SING): Likewise.
33075 (OVERFLOW): Likewise.
33076 (UNDERFLOW): Likewise.
33077 (TLOSS): Likewise.
33078 (PLOSS): Likewise.
33079 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
33080 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
33081 compat_symbol.
33082 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
33083 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
33084 compat_symbol.
33085 * math/lgamma-compat.h: Include <math-svid-compat.h>.
33086 * math/w_acos_compat.c: Likewise.
33087 * math/w_acosf_compat.c: Likewise.
33088 * math/w_acosh_compat.c: Likewise.
33089 * math/w_acoshf_compat.c: Likewise.
33090 * math/w_acoshl_compat.c: Likewise.
33091 * math/w_acosl_compat.c: Likewise.
33092 * math/w_asin_compat.c: Likewise.
33093 * math/w_asinf_compat.c: Likewise.
33094 * math/w_asinl_compat.c: Likewise.
33095 * math/w_atan2_compat.c: Likewise.
33096 * math/w_atan2f_compat.c: Likewise.
33097 * math/w_atan2l_compat.c: Likewise.
33098 * math/w_atanh_compat.c: Likewise.
33099 * math/w_atanhf_compat.c: Likewise.
33100 * math/w_atanhl_compat.c: Likewise.
33101 * math/w_cosh_compat.c: Likewise.
33102 * math/w_coshf_compat.c: Likewise.
33103 * math/w_coshl_compat.c: Likewise.
33104 * math/w_exp10_compat.c: Likewise.
33105 * math/w_exp10f_compat.c: Likewise.
33106 * math/w_exp10l_compat.c: Likewise.
33107 * math/w_exp2_compat.c: Likewise.
33108 * math/w_exp2f_compat.c: Likewise.
33109 * math/w_exp2l_compat.c: Likewise.
33110 * math/w_fmod_compat.c: Likewise.
33111 * math/w_fmodf_compat.c: Likewise.
33112 * math/w_fmodl_compat.c: Likewise.
33113 * math/w_hypot_compat.c: Likewise.
33114 * math/w_hypotf_compat.c: Likewise.
33115 * math/w_hypotl_compat.c: Likewise.
33116 * math/w_j0_compat.c: Likewise.
33117 * math/w_j0f_compat.c: Likewise.
33118 * math/w_j0l_compat.c: Likewise.
33119 * math/w_j1_compat.c: Likewise.
33120 * math/w_j1f_compat.c: Likewise.
33121 * math/w_j1l_compat.c: Likewise.
33122 * math/w_jn_compat.c: Likewise.
33123 * math/w_jnf_compat.c: Likewise.
33124 * math/w_jnl_compat.c: Likewise.
33125 * math/w_lgamma_main.c: Likewise.
33126 * math/w_lgamma_r_compat.c: Likewise.
33127 * math/w_lgammaf_main.c: Likewise.
33128 * math/w_lgammaf_r_compat.c: Likewise.
33129 * math/w_lgammal_main.c: Likewise.
33130 * math/w_lgammal_r_compat.c: Likewise.
33131 * math/w_log10_compat.c: Likewise.
33132 * math/w_log10f_compat.c: Likewise.
33133 * math/w_log10l_compat.c: Likewise.
33134 * math/w_log2_compat.c: Likewise.
33135 * math/w_log2f_compat.c: Likewise.
33136 * math/w_log2l_compat.c: Likewise.
33137 * math/w_log_compat.c: Likewise.
33138 * math/w_logf_compat.c: Likewise.
33139 * math/w_logl_compat.c: Likewise.
33140 * math/w_pow_compat.c: Likewise.
33141 * math/w_powf_compat.c: Likewise.
33142 * math/w_powl_compat.c: Likewise.
33143 * math/w_remainder_compat.c: Likewise.
33144 * math/w_remainderf_compat.c: Likewise.
33145 * math/w_remainderl_compat.c: Likewise.
33146 * math/w_scalb_compat.c: Likewise.
33147 * math/w_scalbf_compat.c: Likewise.
33148 * math/w_scalbl_compat.c: Likewise.
33149 * math/w_sinh_compat.c: Likewise.
33150 * math/w_sinhf_compat.c: Likewise.
33151 * math/w_sinhl_compat.c: Likewise.
33152 * math/w_sqrt_compat.c: Likewise.
33153 * math/w_sqrtf_compat.c: Likewise.
33154 * math/w_sqrtl_compat.c: Likewise.
33155 * math/w_tgamma_compat.c: Likewise.
33156 * math/w_tgammaf_compat.c: Likewise.
33157 * math/w_tgammal_compat.c: Likewise.
33158 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33159 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33160 * sysdeps/ieee754/k_standard.c: Likewise.
33161 * sysdeps/ieee754/k_standardf.c: Likewise.
33162 * sysdeps/ieee754/k_standardl.c: Likewise.
33163 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33164 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33165 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33166 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33167 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33168 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33169 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33170 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33171 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33172 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33173 Likewise.
33174 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33175 Likewise.
33176 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33177 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33178 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33179 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33180
33181 2017-08-21 Florian Weimer <fweimer@redhat.com>
33182
33183 [BZ #21864]
33184 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33185 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33186 Move before inclusion of ../Rules.
33187
33188 2017-08-21 Florian Weimer <fweimer@redhat.com>
33189
33190 [BZ #21972]
33191 * assert/assert.h (assert): Use static_cast (bool) for C++.
33192 Use the ternary operator in the warning branch for GNU C.
33193 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33194 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33195 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33196 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33197 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33198
33199 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33200
33201 [BZ #18822]
33202 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33203 (__syscall_clock_gettime): Add attribute_hidden.
33204 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33205 (__start_context): Likewise.
33206
33207 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33208
33209 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33210 building libc.a.
33211 (hidden_proto): Likewise.
33212 (hidden_tls_proto): Likewise.
33213 (__hidden_proto): Likewise.
33214
33215 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33216
33217 * include/libc-symbols.h (attribute_hidden): Enable hidden
33218 visibility in libc.a compiled with PIE.
33219
33220 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33221
33222 [BZ #18822]
33223 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33224 Add attribute_hidden.
33225
33226 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33227
33228 [BZ #21864]
33229 * Makerules (all-nonlib): Add $(others-extras).
33230 * catgets/Makefile (others-extras): New.
33231 * elf/Makefile (others-extras): Likewise.
33232 * nss/Makefile (others-extras): Likewise.
33233
33234 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33235
33236 [BZ #18822]
33237 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33238 * elf/dl-open.c: Include <libc-internal.h>.
33239 (__libc_multiple_libcs): Removed.
33240 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33241 <hp-timing.h>.
33242 * include/libc-internal.h (__libc_multiple_libcs): New.
33243 * misc/sbrk.c: Include <libc-internal.h>.
33244 (__libc_multiple_libcs): Removed.
33245
33246 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33247
33248 [BZ #18822]
33249 * grp/initgroups.c (__nss_group_database): Removed.
33250 (__nss_initgroups_database): Likewise.
33251 * nscd/gai.c (__nss_hosts_database): Likewise.
33252 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33253 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33254 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33255 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33256 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33257 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33258 attribute_hidden.
33259 * nss/nsswitch.c (__nss_database_custom): Define only if
33260 USE_NSCD is defined.
33261 (__nss_configure_lookup): Use __nss_database_custom only if
33262 USE_NSCD is defined.
33263 * nss/nsswitch.h (__nss_database_custom): Declare only if
33264 USE_NSCD is defined. Add attribute_hidden.
33265 (__nss_setent): Add attribute_hidden.
33266 (__nss_endent): Likewise.
33267 (__nss_getent_r): Likewise.
33268 (__nss_getent): Likewise.
33269 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33270
33271 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33272
33273 [BZ #18822]
33274 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33275 libc_hidden_proto and libc_hidden_def.
33276
33277 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33278
33279 [BZ #18822]
33280 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33281 Add libc_hidden_proto.
33282 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33283 Add libc_hidden_def.
33284
33285 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33286
33287 [BZ #21974]
33288 * gmon/Makefile (routines): Remove bb_init_func and
33289 bb_exit_func.
33290 (elide-routines.os): Removed.
33291 * gmon/bb_exit_func.c: Likewise.
33292 * gmon/bb_init_func.c: Likewise.
33293 * include/sys/gmon.h (__bb): Likewise.
33294 (__bb_init_func): Likewise.
33295 (__bb_exit_func): Likewise.
33296 * sysdeps/alpha/bb_init_func.S: Likewise.
33297
33298 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33299
33300 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33301 * include/setjmp.h (____longjmp_chk): Here. Add
33302 attribute_hidden.
33303
33304 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33305
33306 [BZ #18822]
33307 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33308 attribute_hidden.
33309 (__strspn_sse2): Likewise.
33310
33311 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33312
33313 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33314 (close_not_cancel_no_status): Likewise.
33315 (__close_nocancel): New macro.
33316 (__close_nocancel_nostatus): Likewise.
33317 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33318 macro.
33319 (close_not_cancel): Likewise.
33320 (close_not_cancel_no_status): Likewise.
33321 (__close_nocancel): New prototype.
33322 (__close_nocancel_nostatus): New function.
33323 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33324 * catgets/open_catalog.c (__open_catalog): Replace
33325 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33326 * gmon/gmon.c (write_gmon): Likewise.
33327 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33328 * intl/loadmsgcat.c (close): Likewise.
33329 * io/ftw.c (open_dir_stream): Likewise.
33330 (ftw_startup): Likewise.
33331 * libio/fileops.c (_IO_file_open): Likewise.
33332 (_IO_file_close_mmap): Likewise.
33333 (_IO_file_close): Likewise.
33334 * libio/iopopen.c (_IO_dup2): Likewise.
33335 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33336 * locale/loadlocale.c (_nl_load_locale): Likewise.
33337 * login/utmp_file.c (pututline_file): Likewise.
33338 (endutent_file): Likewise.
33339 * misc/daemon.c (daemon): Likewise.
33340 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33341 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33342 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33343 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33344 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33345 * nscd/nscd_helper.c (open_socket): Likewise.
33346 (__nscd_open_socket): Likewise.
33347 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33348 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33349 (__nscd_innetgr): Likewise.
33350 * nss/nss_db/db-open.c (internal_setent): Likewise.
33351 * resolv/res-close.c (__res_iclose): Likewise.
33352 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33353 * sysdeps/posix/closedir.c (__closedir): Likewise.
33354 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33355 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33356 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33357 (opendir_tail): Likewise.
33358 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33359 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33360 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33361 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33362 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33363 (gethostid): Likewise.
33364 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33365 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33366 Likewise.
33367 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33368 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33369 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33370 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33371 Likewise.
33372 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33373 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33374 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33375 Likewise.
33376 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33377 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33378 Likewise.
33379 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33380 Likewise.
33381 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33382 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33383 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33384 __close_nocancel.
33385
33386 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33387 (openat_not_cancel_3): Likewise.
33388 (openat64_not_cancel_3): Likewise).
33389 (openat_not_cancel_3): Likewise).
33390 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33391 macro.
33392 (openat_not_cancel_3): Likewise.
33393 (openat64_not_cancel): Likewise.
33394 (openat64_not_cancel_3): Likewise.
33395 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33396 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33397 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33398 __open{64}_nocancel.
33399 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33400 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33401 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33402
33403 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33404
33405 [BZ #18822]
33406 * include/argz.h (__argz_create_sep): New function prototype.
33407 (__argz_append): Likewise.
33408 (__argz_add): Likewise.
33409 (__argz_add_sep): Likewise.
33410 (__argz_delete): Likewise.
33411 (__argz_insert): Likewise.
33412 (__argz_replace): Likewise.
33413 * string/argz.h (__argz_create_sep): Removed.
33414 (__argz_append): Likewise.
33415 (__argz_add): Likewise.
33416 (__argz_add_sep): Likewise.
33417 (__argz_delete): Likewise.
33418 (__argz_insert): Likewise.
33419 (__argz_replace): Likewise.
33420
33421 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33422
33423 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33424 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33425 (GNU_PROPERTY_STACK_SIZE): Likewie.
33426 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33427 (GNU_PROPERTY_LOPROC): Likewise.
33428 (GNU_PROPERTY_HIPROC): Likewise.
33429 (GNU_PROPERTY_LOUSER): Likewise.
33430 (GNU_PROPERTY_HIUSER): Likewise.
33431 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33432 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33433 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33434 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33435 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33436 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33437 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33438 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33439 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33440 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33441 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33442 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33443 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33444 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33445 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33446 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33447 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33448 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33449 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33450 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33451 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33452 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33453 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33454
33455 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33456
33457 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33458 in C++ mode.
33459
33460 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33461
33462 [BZ #21930]
33463 * math/math.h (isinf): Check if in C or C++ mode before using
33464 __builtin_types_compatible_p, since this is a C mode feature.
33465
33466 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33467
33468 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33469 (__write_nocancel): New macro.
33470 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33471 Rewrite as a function prototype.
33472 (write_not_cancel): Remove macro.
33473 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33474 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33475 (write_gmon): Likewise.
33476 * libio/fileops.c (_IO_new_file_write): Likewise.
33477 * login/utmp_file.c (pututline_file): Likewise.
33478 (updwtmp_file): Likewise.
33479 * stdio-common/psiginfo.c (psiginfo): Likewise.
33480 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33481 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33482 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33483 Likewise.
33484 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33485 Likewise.
33486
33487 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33488 (__read_nocancel): New macro.
33489 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33490 __read_nocancel.
33491 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33492 macro.
33493 (__read_nocancel): New prototype.
33494 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33495 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33496 with __read_nocancel.
33497 * intl/loadmsgcat.c (read): Likewise.
33498 * libio/fileops.c (_IO_file_read): Likewise.
33499 * locale/loadlocale.c (_nl_load_locale): Likewise.
33500 * login/utmp_file.c (getutent_r_file): Likewise.
33501 (internal_getut_r): Likewise.
33502 (getutline_r_file): Likewise.
33503 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33504 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33505 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33506 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33507 Likewise.
33508 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33509 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33510 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33511 Likewise.
33512 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33513 Likewise.
33514 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33515 Likewise.
33516 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33517 Likewise.
33518 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33519
33520 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33521
33522 [BZ #21966]
33523 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33524 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33525 usable.
33526
33527 2017-08-17 DJ Delorie <dj@redhat.com>
33528
33529 * bug17079.c: Update to new test harness.
33530 * test-digits-dots.c: Likewise.
33531 * test-netdb.c: Likewise.
33532 * tst-field.c: Likewise.
33533 * tst-nss-getpwent.c: Likewise.
33534 * tst-nss-static.c: Likewise.
33535 * tst-nss-test1.c: Likewise.
33536 * tst-nss-test2.c: Likewise.
33537 * tst-nss-test3.c: Likewise.
33538 * tst-nss-test4.c: Likewise.
33539 * tst-nss-test5.c: Likewise.
33540
33541 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33542
33543 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33544 (open_not_cancel_2): Likewise.
33545 (open_nocancel): New macro.
33546 (open64_nocancel): Likewise.
33547 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33548 (open_not_cancel_2): Likewise.
33549 (__open_nocancel): New prototype.
33550 (__open64_nocancel): Likewise.
33551 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33552 __open_nocancel.
33553 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33554 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33555 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33556 with __open_nocancel.
33557 * csu/check_fds.c (check_one_fd): Likewise.
33558 * gmon/gmon.c (write_gmon): Likewise.
33559 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33560 * intl/loadmsgcat.c (open): Likewise.
33561 * libio/fileops.c (_IO_file_open): Likewise.
33562 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33563 * locale/loadlocale.c (_nl_load_locale): Likewise.
33564 * login/utmp_file.c (setutent_file): Likewise.
33565 * misc/daemon.c (daemon): Likewise.
33566 * nss/nss_db/db-open.c (internal_setent): Likewise.
33567 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33568 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33569 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33570 (__opendir): Likewise.
33571 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33572 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33573 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33574 (gethostid): Likewise.
33575 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33576 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33577 Likewise.
33578 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33579 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33580 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33581 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33582 Likewise.
33583 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33584 Likewise.
33585 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33586 Likewise.
33587 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33588 Likewise.
33589 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33590 Likewise.
33591 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33592 Likewise.
33593 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33594 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33595
33596 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33597
33598 * benchtests/bench-skeleton.c (main): Add support for
33599 latency benchmarking.
33600 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33601
33602 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33603
33604 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33605 the startup object.
33606
33607 2017-08-17 Florian Weimer <fweimer@redhat.com>
33608
33609 * include/sys/socket.h (__opensock): Remove internal_function.
33610 * socket/opensock.c (__opensock): Likewise.
33611 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33612
33613 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33614
33615 [BZ #21944]
33616 * signal/bits/types/__sigval_t.h: New file.
33617 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33618 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33619 and define sigval_t using __sigval_t.
33620 * include/bits/types/__sigval_t.h: New file.
33621 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33622 instead of <bits/types/__sigval_t.h>.
33623 (struct sigevent): Use __sigval_t instead of sigval_t.
33624 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33625 instead of <bits/types/__sigval_t.h>.
33626 (siginfo_t): Use __sigval_t instead of sigval_t.
33627 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33628 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33629 (struct sigevent): Use __sigval_t instead of sigval_t.
33630 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33631 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33632 (siginfo_t): Use __sigval_t instead of sigval_t.
33633 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33634
33635 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33636
33637 * NEWS: Remove "[Add new features here]" for 2.27.
33638
33639 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33640
33641 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33642 libc.so.
33643
33644 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33645
33646 * NEWS: Mention x86-64 FMA optimization.
33647
33648 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33649
33650 [BZ #21912]
33651 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33652 Add e_expf-fma.
33653 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33654 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33655 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33656
33657 2017-08-16 Andreas Schwab <schwab@suse.de>
33658
33659 [BZ #16750]
33660 CVE-2009-5064
33661 * elf/ldd.bash.in: Never run file directly.
33662
33663 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33664
33665 [BZ #21955]
33666 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33667 (L(SP_INF_0)): Likewise.
33668
33669 2017-08-15 Florian Weimer <fweimer@redhat.com>
33670
33671 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33672 run-built-tests.
33673
33674 2017-08-15 Florian Weimer <fweimer@redhat.com>
33675
33676 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33677 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33678 BROKEN_THREAD_SIGNALS code.
33679 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33680 request_list): Remove caller_pid member used for
33681 BROKEN_THREAD_SIGNALS.
33682 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33683 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33684 Remove BROKEN_THREAD_SIGNALS support.
33685 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33686 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33687
33688 2017-08-15 Florian Weimer <fweimer@redhat.com>
33689
33690 * gmon/Makefile (tests): Add tst-gmon.
33691 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33692 Set.
33693 (tests-special): Add tst-gmon-prof.out.
33694 (tst-gmon.out): Depend on clean-tst-gmon-data.
33695 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33696 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33697 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33698 startup object.
33699 * aclocal.m4 (GPROF): Set and substitute.
33700 * config.amke.in (GPROF): Set.
33701 * configure: Regenerate.
33702
33703 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33704
33705 * elf/elf.h A (NT_PPC_TAR): New macro.
33706 (NT_PPC_PPR): Likewise.
33707 (NT_PPC_DSCR): Likewise.
33708 (NT_PPC_EBB): Likewise.
33709 (NT_PPC_PMU): Likewise.
33710 (NT_PPC_TM_CGPR): Likewise.
33711 (NT_PPC_TM_CFPR): Likewise.
33712 (NT_PPC_TM_CVMX): Likewise.
33713 (NT_PPC_TM_CVSX): Likewise.
33714 (NT_PPC_TM_SPR): Likewise.
33715 (NT_PPC_TM_CTAR): Likewise.
33716 (NT_PPC_TM_CPPR): Likewise.
33717 (NT_PPC_TM_CDSCR): Likewise.
33718
33719 2017-08-15 Florian Weimer <fweimer@redhat.com>
33720
33721 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33722 regparm (2) instead of internal_function.
33723 (_MCOUNT_DECL): Adjust.
33724
33725 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33726
33727 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33728 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33729
33730 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33731
33732 * conform/data/sys/wait.h-data (si_value): Do not expect for
33733 XPG42.
33734
33735 2017-08-14 Florian Weimer <fweimer@redhat.com>
33736
33737 [BZ #21962]
33738 NSS: Create stubs for accidentally exported lookup functions.
33739 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33740 Remove declaration.
33741 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33742 (ether_hostton): Call __nss_ethers_lookup2 instead.
33743 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33744 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33745 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33746 (setup): Call __nss_netgroup_lookup2 instead.
33747 * nss/Makefile (routines): Add compat-lookup.
33748 * nss/Versions (GLIBC_2.27): Add symbol version.
33749 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33750 (DB_COMPAT_FCT): Remove.
33751 * nss/compat-lookup.c: New file.
33752 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33753 from databases.def.
33754 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33755 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33756 (netname2user): Call __nss_publickey_lookup2 instead.
33757 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33758 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33759 instead.
33760
33761 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33762 Sergei Trofimovich <slyfox@inbox.ru>
33763
33764 [BZ #21908]
33765 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33766 Rename to MMAP2_PAGE_UNIT.
33767 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33768 __OFF_T_MATCHES_OFF64_T is not defined.
33769 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33770 uint64_t.
33771 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33772 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33773
33774 2017-08-14 Florian Weimer <fweimer@redhat.com>
33775
33776 i386: Do not set internal_function.
33777 * config.h.in (USE_REGPARMS, internal_function): Remove.
33778 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33779 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33780
33781 2017-08-14 Florian Weimer <fweimer@redhat.com>
33782
33783 * elf/dl-init.c (_dl_init): Remove internal_function.
33784 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33785 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33786
33787 2017-08-14 Florian Weimer <fweimer@redhat.com>
33788
33789 * elf/rtld.c (_dl_start): Remove internal_function.
33790 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33791 _dl_start.
33792
33793 2017-08-14 Florian Weimer <fweimer@redhat.com>
33794
33795 * elf/dl-fini.c (_dl_fini): Remove internal_function
33796 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33797
33798 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33799
33800 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33801 (bit_cpu_SHSTK): Likewise.
33802 (index_cpu_IBT): Likewise.
33803 (index_cpu_SHSTK): Likewise.
33804 (reg_IBT): Likewise.
33805 (reg_SHSTK): Likewise.
33806 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33807 Handle index_cpu_IBT and index_cpu_SHSTK.
33808
33809 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33810
33811 [BZ #19982]
33812 * po/fr.po: Fix spelling mistake.
33813
33814 2017-08-13 Florian Weimer <fweimer@redhat.com>
33815
33816 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33817 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33818 (_dl_catch_error, _dl_receive_error): Likewise.
33819 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33820 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33821 (_dl_deallocate_tls): Likewise.
33822 * include/dlfcn.h (_dl_addr): Likewise.
33823 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33824 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33825 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33826 Likewise.
33827
33828 2017-08-13 Florian Weimer <fweimer@redhat.com>
33829
33830 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33831 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33832 internal_function.
33833 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33834
33835 2017-08-13 Florian Weimer <fweimer@redhat.com>
33836
33837 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33838 internal_function.
33839 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33840 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33841 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33842 internal_function from _dl_make_stack_executable_hook member.
33843 (_dl_make_stack_executable): Remove internal_function.
33844 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33845 Likewise.
33846 * sysdeps/unix/sysv/linux/dl-execstack.c
33847 (_dl_make_stack_executable): Likewise.
33848
33849 2017-08-13 Florian Weimer <fweimer@redhat.com>
33850
33851 * sysdeps/unix/sysv/linux/netlinkaccess.h
33852 (__netlink_assert_response): Remove internal_function.
33853 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33854 (__netlink_assert_response): Likewise.
33855
33856 2017-08-13 Florian Weimer <fweimer@redhat.com>
33857
33858 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33859 internal_function.
33860 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33861
33862 2017-08-13 Florian Weimer <fweimer@redhat.com>
33863
33864 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33865 internal_function.
33866 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33867 * inet/netgroup.h (__internal_setnetgrent)
33868 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33869 * inet/getnetgrent_r.c (__internal_setnetgrent)
33870 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33871 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33872 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33873 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33874 * nss/nsswitch.h (db_lookup_function): Likewise.
33875
33876 2017-08-13 Florian Weimer <fweimer@redhat.com>
33877
33878 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33879 Remove internal_function.
33880 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33881 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33882 message argument on the stack.
33883 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33884 Likeweise.
33885
33886 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33887
33888 Adapt test case data to the changes in the thousands
33889 separators.
33890
33891 [BZ #20756]
33892 * localedata/tst-langinfo.sh: Adapt test case data.
33893 * stdlib/tst-strfmon_l.c: Likewise.
33894 * stdlib/tst-strtod4.c: Likewise.
33895 * stdlib/tst-strtod5i.c: Likewise.
33896
33897 2017-08-11 Florian Weimer <fweimer@redhat.com>
33898
33899 [BZ #21242]
33900 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33901 Suppress pedantic warning resulting from statement expression.
33902 (__ASSERT_FUNCTION): Add missing __extension__.
33903
33904 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33905
33906 * benchtests/bench-memmove-large.c: Print output in JSON
33907 format.
33908 * benchtests/bench-memmove.c: Likewise.
33909
33910 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33911 * benchtests/bench-memchr.c (do_one_test): Likewise.
33912 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33913 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33914 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33915 * benchtests/bench-memmove.c (do_one_test): Likewise.
33916 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33917 * benchtests/bench-memset.c (do_one_test): Likewise.
33918 * benchtests/bench-string.h (test_init): Remove memsets.
33919
33920 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33921
33922 * manual/lang.texi
33923 (Computing the Width of an Integer Data Type): Rename section to
33924 "Width of an Integer Type". Remove inaccurate statement regarding
33925 lack of C language facilities for determining width of integer
33926 types, and reorder content to improve flow and context of
33927 discussion.
33928
33929 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33930
33931 * lang.texi (va_copy): Change standard from ISO to C99.
33932 (__va_copy): Add standard and header annotation.
33933 Update description for clarity of origins and current use.
33934
33935 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33936
33937 [BZ #21941]
33938 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33939 xssqrtqp requires operands to be in Vector Registers
33940 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33941 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33942 (__ieee754_sqrtf128): Likewise.
33943
33944 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33945
33946 * sysdeps/aarch64/memcmp.S (memcmp):
33947 Rewrite of optimized memcmp.
33948
33949 2017-08-10 Florian Weimer <fweimer@redhat.com>
33950
33951 Introduce ld.so exceptions.
33952 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33953 (_dl_exception_create, _dl_exception_create_format)
33954 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33955 (_dl_catch_exception): Declare.
33956 (_dl_catch_error): Update comment.
33957 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33958 errstring, malloced members with exception member.
33959 (_dl_out_of_memory): Remove.
33960 (fatal_error): New function, extracted from _dl_signal_error.
33961 (_dl_signal_exception, _dl_signal_cexception): New functions.
33962 (_dl_signal_error): Call _dl_exception_create to allocate an
33963 exception object.
33964 (_dl_catch_exception): New function, based on _dl_catch_error.
33965 (_dl_catch_error): Implement using _dl_catch_exception.
33966 * elf/dl-exception.c: New file.
33967 * elf/Makefile (dl-routines): Add dl-exception.
33968 (elide-routines.os): Likewise.
33969 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33970 _dl_exception_create_format, _dl_exception_free.
33971 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33972 _dl_signal_exception.
33973 * elf/dl-lookup.c (make_string): Remove.
33974 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33975 _dl_signal_cexception, _dl_exception_free.
33976 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33977 _dl_signal_exception.
33978 * elf/dl-sym.c (do_sym): Likewise.
33979 * elf/dl-version.c (make_string): Remove.
33980 (match_symbol): Use _dl_exception_create_format,
33981 _dl_signal_cexception, _dl_exception_free.
33982 (_dl_check_map_versions): Likewise.
33983 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33984 _dl_catch_exception.
33985 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33986 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33987 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33988 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33989 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33990 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33991 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33992 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33993 Likewise.
33994 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33996 (ld.so): Likewise.
33997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33998 (ld.so): Likewise.
33999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
34000 Likewise.
34001 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
34002 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
34003 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
34004 Likewise.
34005 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
34006 Likewise.
34007 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
34008
34009 2017-08-10 Florian Weimer <fweimer@redhat.com>
34010
34011 * inet/net-internal.h (__inet6_scopeid_pton): Remove
34012 attribute_hidden, internal_function.
34013 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
34014 internal_function.
34015
34016 2017-08-10 Florian Weimer <fweimer@redhat.com>
34017
34018 * malloc/malloc.c (get_max_fast): Reimplement as an inline
34019 function which calls __builtin_unreachable.
34020
34021 2017-08-10 Mike FABIAN <mfabian@redhat.com>
34022
34023 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
34024 Indian monetary formatting
34025 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
34026 test cases.
34027
34028 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
34029
34030 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
34031 Fix typo in comment.
34032
34033 [BZ #21928]
34034 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
34035 PTRACE_SEIZE_DEVEL): Remove.
34036 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
34037 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
34038 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
34039 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
34040 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
34041
34042 2017-08-09 Joseph Myers <joseph@codesourcery.com>
34043
34044 * posix/bits/types.h (__qaddr_t): Remove.
34045
34046 [BZ #21457]
34047 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
34048 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34049 __glibc_reserved1.
34050 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
34051 (ucontext_t): Use __ctx with uc_flags.
34052 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
34053 (__ctxt): Likewise.
34054 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34055 __glibc_reserved1.
34056 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
34057 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34058 __glibc_reserved1.
34059 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
34060 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34061 __glibc_reserved1.
34062 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
34063 macro.
34064 (ucontext_t): Use __ctx with uc_flags.
34065 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
34066 (ucontext_t): Use __ctx with uc_flags.
34067 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
34068 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
34069 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
34070 (ucontext_t): Use __ctx with uc_flags.
34071 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
34072 undefine further down.
34073 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
34074 __glibc_reserved1.
34075 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
34076 undefine further down.
34077 (ucontext_t): Use __ctx with uc_flags.
34078 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
34079 undefine further down.
34080 (ucontext_t): Use __ctx with uc_flags.
34081 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
34082 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
34083 Rename uc_pad to __glibc_reserved1.
34084 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
34085 undefine further down.
34086 (ucontext_t): Use __ctx with uc_flags.
34087 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
34088 further down.
34089 (ucontext_t): Use __ctx with uc_flags.
34090 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
34091 __ctx with uc_flags.
34092 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
34093 (ucontext_t): Use __ctx with uc_flags.
34094 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
34095 __ctx with uc_flags.
34096
34097 2017-08-09 Florian Weimer <fweimer@redhat.com>
34098
34099 [BZ #21932]
34100 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
34101 before early return.
34102
34103 2017-08-09 Andreas Schwab <schwab@suse.de>
34104
34105 [BZ #21041]
34106 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
34107 renamed alias.
34108
34109 [BZ #21041]
34110 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
34111 tst-compat-forwarder.
34112 (modules-names): Add tst-compat-forwarder-mod.
34113 ($(objpfx)tst-compat-forwarder): Depend on
34114 $(objpfx)tst-compat-forwarder-mod.so.
34115 * nptl/tst-compat-forwarder.c: New file.
34116 * nptl/tst-compat-forwarder-mod.c: New file.
34117
34118 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
34119
34120 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
34121 comments.
34122
34123 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
34124 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
34125 memcpy_falkor.
34126 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
34127 Bump.
34128 (__libc_ifunc_impl_list): Add __memcpy_falkor.
34129 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
34130 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
34131 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
34132 Add falkor.
34133 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
34134 New macro.
34135
34136 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34137
34138 [BZ #759]
34139 * manual/setjmp.texi (getcontex): Document uc_stack value
34140 compatibility differences.
34141
34142 2017-08-08 Joseph Myers <joseph@codesourcery.com>
34143
34144 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
34145 (old_malloc_hook): Likewise.
34146 (old_memalign_hook): Likewise.
34147 (old_realloc_hook): Likewise.
34148 (struct hdr): Likewise.
34149 (flood): Likewise.
34150 (freehook): Likewise.
34151 (mallochook): Likewise.
34152 (memalignhook): Likewise.
34153 (reallochook): Likewise.
34154 (mprobe): Likewise.
34155 * malloc/mtrace.c (mallwatch): Likewise.
34156 (tr_old_free_hook): Likewise.
34157 (tr_old_malloc_hook): Likewise.
34158 (tr_old_realloc_hook): Likewise.
34159 (tr_old_memalign_hook): Likewise.
34160 (tr_where): Likewise.
34161 (lock_and_info): Likewise.
34162 (tr_freehook): Likewise.
34163 (tr_mallochook): Likewise.
34164 (tr_reallochook): Likewise.
34165 (tr_memalignhook): Likewise.
34166 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34167 * misc/mmap.c (__mmap): Likewise.
34168 * misc/mmap64.c (__mmap64): Likewise.
34169 * misc/mprotect.c (__mprotect): Likewise.
34170 * misc/msync.c (msync): Likewise.
34171 * misc/munmap.c (__munmap): Likewise.
34172 * posix/posix_madvise.c (posix_madvise): Likewise.
34173 * socket/send.c (__send): Likewise.
34174 * socket/sendto.c (__sendto): Likewise.
34175 * socket/setsockopt.c (__setsockopt): Likewise.
34176 * string/memcmp.c (__ptr_t): Remove macro.
34177 (MEMCMP): Use void * instead of ptr_t.
34178 * string/memrchr.c (__ptr_t): Remove macro.
34179 (__memrchr): Use void * instead of ptr_t.
34180 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34181 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34182 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34183 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34184 * sysdeps/mach/msync.c (msync): Likewise.
34185 * sysdeps/mach/munmap.c (__munmap): Likewise.
34186 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34187 Likewise.
34188 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34189 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34190 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34191 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34192 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34193 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34194 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34195 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34196 Likewise.
34197 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34198 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34199 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34200 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34201 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34202 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34203 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34204 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34205 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34206 Likewise.
34207 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34208 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34209 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34210 (MEMCMP): Use void * instead of ptr_t.
34211 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34212 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34213
34214 2017-08-08 Florian Weimer <fweimer@redhat.com>
34215
34216 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34217 return statement.
34218
34219 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34220
34221 [BZ #21913]
34222 * csu/libc-tls.c: Include <startup.h> first.
34223 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34224 * elf/dl-tunables.c: Include <startup.h> first.
34225 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34226 * sysdeps/generic/startup.h: New file.
34227 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34228 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34229 (I386_USE_SYSENTER): New. Defined to 0.
34230
34231 2017-08-08 Andreas Schwab <schwab@suse.de>
34232
34233 [BZ #21041]
34234 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34235 * nptl/pt-system.c (system): Likewise.
34236
34237 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34238
34239 [BZ #21780]
34240 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34241 EOPNOTSUPP.
34242 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34243 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34244 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34245 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34246 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34247 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34248 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34249
34250 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34251
34252 [BZ #21899]
34253 * bits/sigaction.h (struct sigaction): Define sa_handler and
34254 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34255 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34256 [__USE_XOPEN_EXTENDED].
34257 (SA_RESTART): Likewise.
34258 (SA_NODEFER): Likewise.
34259 (SA_RESETHAND): Likewise.
34260 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34261 (struct sigaction): Define sa_handler and sa_sigaction using union
34262 also for [__USE_XOPEN_EXTENDED].
34263 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34264 [__USE_XOPEN_EXTENDED].
34265 (SA_RESTART): Likewise.
34266 (SA_NODEFER): Likewise.
34267 (SA_RESETHAND): Likewise.
34268 * sysdeps/unix/sysv/linux/bits/sigaction.h
34269 (struct sigaction): Define sa_handler and sa_sigaction using union
34270 also for [__USE_XOPEN_EXTENDED].
34271 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34272 [__USE_XOPEN_EXTENDED].
34273 (SA_RESTART): Likewise.
34274 (SA_NODEFER): Likewise.
34275 (SA_RESETHAND): Likewise.
34276 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34277 (struct sigaction): Define sa_handler and sa_sigaction using union
34278 also for [__USE_XOPEN_EXTENDED].
34279 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34280 [__USE_XOPEN_EXTENDED].
34281 (SA_RESTART): Likewise.
34282 (SA_NODEFER): Likewise.
34283 (SA_RESETHAND): Likewise.
34284 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34285 (struct sigaction): Define sa_handler and sa_sigaction using union
34286 also for [__USE_XOPEN_EXTENDED].
34287 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34288 [__USE_XOPEN_EXTENDED].
34289 (SA_RESTART): Likewise.
34290 (SA_NODEFER): Likewise.
34291 (SA_RESETHAND): Likewise.
34292 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34293 (struct sigaction): Define sa_handler and sa_sigaction using union
34294 also for [__USE_XOPEN_EXTENDED].
34295 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34296 [__USE_XOPEN_EXTENDED].
34297 (SA_RESTART): Likewise.
34298 (SA_NODEFER): Likewise.
34299 (SA_RESETHAND): Likewise.
34300 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34301 (struct sigaction): Define sa_handler and sa_sigaction using union
34302 also for [__USE_XOPEN_EXTENDED].
34303 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34304 [__USE_XOPEN_EXTENDED].
34305 (SA_RESTART): Likewise.
34306 (SA_NODEFER): Likewise.
34307 (SA_RESETHAND): Likewise.
34308 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34309 (struct sigaction): Define sa_handler and sa_sigaction using union
34310 also for [__USE_XOPEN_EXTENDED].
34311 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34312 [__USE_XOPEN_EXTENDED].
34313 (SA_RESTART): Likewise.
34314 (SA_NODEFER): Likewise. Define directly rather than as alias.
34315 (SA_RESETHAND): Likewise.
34316 (SA_INTERRUPT): Define only for [__USE_MISC].
34317 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34318 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34319 [__USE_MISC].
34320 (SA_STACK): Define only for [__USE_MISC].
34321 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34322 (struct sigaction): Define sa_handler and sa_sigaction using union
34323 also for [__USE_XOPEN_EXTENDED].
34324 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34325 [__USE_XOPEN_EXTENDED].
34326 (SA_RESTART): Likewise.
34327 (SA_NODEFER): Likewise.
34328 (SA_RESETHAND): Likewise.
34329 (SA_NOPTRACE): Define only for [__USE_MISC].
34330
34331 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34332 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34333 (struct catalog_info): Likewise.
34334 * inet/htontest.c (lo): Likewise.
34335 (foo): Likewise.
34336 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34337 * inet/inet_net.c (inet_network): Likewise.
34338 * inet/inet_netof.c (inet_netof): Likewise.
34339 * inet/rcmd.c (__ivaliduser): Likewise.
34340 (iruserok): Likewise.
34341 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34342 * locale/programs/locale-spec.c (locale_special): Likewise.
34343 * nis/nis_findserv.c (struct findserv_req): Likewise.
34344 (__nis_findfastest_with_timeout): Likewise.
34345 * nss/test-netdb.c (test_network): Likewise.
34346 * resolv/inet_neta.c (inet_neta): Likewise.
34347 * resolv/ns_date.c (ns_datetosecs): Likewise.
34348 (SECS_PER_DAY): Likewise.
34349 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34350 Likewise.
34351 * resolv/res_comp.c (__putlong): Likewise.
34352 (__putshort): Likewise.
34353 (_getlong): Likewise.
34354 (_getshort): Likewise.
34355 * resolv/res_debug.c (p_time): Likewise.
34356 (precsize_ntoa): Likewise.
34357 (precsize_aton): Likewise.
34358 (latlon2ul): Likewise.
34359 (loc_aton): Likewise.
34360 (loc_ntoa): Likewise.
34361 * resolv/res_hconf.c (struct netaddr): Likewise.
34362 (_res_hconf_reorder_addrs): Likewise.
34363 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34364 (clnttcp_control): Likewise.
34365 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34366 (clntudp_control): Likewise.
34367 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34368 (clntunix_control): Likewise.
34369 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34370 * sunrpc/rpc/auth.h (union des_block): Likewise.
34371 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34372 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34373 (xdrrec_create): Likewise.
34374 (xdrrec_endofrecord): Likewise.
34375 (flush_out): Likewise.
34376 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34377 (xdrstdio_putlong): Likewise.
34378 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34379 Likewise.
34380
34381 * misc/sys/cdefs.h (__long_double_t): Remove.
34382 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34383 instead of __long_double_t,
34384 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34385
34386 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34387
34388 * benchtests/scripts/compare_strings.py: Avoid display error when
34389 running on a text terminal.
34390
34391 * benchtests/scripts/compare_strings.py (main): Add an
34392 optional -base option.
34393 (process_results): New argument base_func.
34394
34395 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34396 hardcoding memcpy.
34397 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34398 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34399
34400 2017-08-07 Andreas Schwab <schwab@suse.de>
34401
34402 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34403 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34404 * intl/Makefile ($(objpfx)tst-gettext.out)
34405 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34406 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34407 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34408 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34409 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34410 * posix/Makefile ($(objpfx)globtest.out)
34411 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34412 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34413 ($(objpfx)tst-printf.out): Likewise.
34414 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34415 ($(objpfx)tst-setcontext3.out): Likewise.
34416
34417 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34418
34419 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34420 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34421 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34422 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34423 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34424 and mptan-fma.
34425 (CFLAGS-doasin-fma.c): New.
34426 (CFLAGS-dosincos-fma.c): Likewise.
34427 (CFLAGS-e_asin-fma.c): Likewise.
34428 (CFLAGS-e_atan2-fma.c): Likewise.
34429 (CFLAGS-e_exp-fma.c): Likewise.
34430 (CFLAGS-e_log-fma.c): Likewise.
34431 (CFLAGS-e_pow-fma.c): Likewise.
34432 (CFLAGS-halfulp-fma.c): Likewise.
34433 (CFLAGS-mpa-fma.c): Likewise.
34434 (CFLAGS-mpatan-fma.c): Likewise.
34435 (CFLAGS-mpatan2-fma.c): Likewise.
34436 (CFLAGS-mpexp-fma.c): Likewise.
34437 (CFLAGS-mplog-fma.c): Likewise.
34438 (CFLAGS-mpsqrt-fma.c): Likewise.
34439 (CFLAGS-mptan-fma.c): Likewise.
34440 (CFLAGS-s_atan-fma.c): Likewise.
34441 (CFLAGS-sincos32-fma.c): Likewise.
34442 (CFLAGS-slowexp-fma.c): Likewise.
34443 (CFLAGS-slowpow-fma.c): Likewise.
34444 (CFLAGS-s_sin-fma.c): Likewise.
34445 (CFLAGS-s_tan-fma.c): Likewise.
34446 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34447 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34448 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34449 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34450 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34451 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34452 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34453 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34454 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34455 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34456 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34457 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34458 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34459 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34460 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34461 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34462 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34463 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34464 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34465 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34466 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34467 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34468 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34469 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34470 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34471 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34472 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34473 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34474 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34475 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34476 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34477
34478 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34479
34480 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34481 (min_of_type_f): New macro.
34482 (min_of_type_): Likewise.
34483 (min_of_type_l): Likewise.
34484 (min_of_type_f128): Likewise.
34485 (min_of_type): Define using __MATH_TG and taking an expression
34486 argument.
34487 (math_check_force_underflow): Pass expression instead of type to
34488 min_of_type.
34489 (math_check_force_underflow_nonneg): Likewise.
34490
34491 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34492
34493 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34494 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34495 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34496
34497 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34498
34499 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34500 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34501 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34502 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34503 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34504 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34505 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34506 memmove_chk-nonshared and memset_chk-nonshared
34507 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34508 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34509 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34510 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34511 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34512 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34513 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34514 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34515 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34516 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34517 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34518 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34519 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34520 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34521 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34522 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34523 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34524 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34525 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34526 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34527 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34528 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34529 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34530 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34531 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34532 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34533 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34534 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34535 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34536 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34537 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34538 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34539 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34540 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34541 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34542 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34543 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34544 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34545 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34546 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34547 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34548 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34549 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34550 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34551 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34552 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34553 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34554 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34555 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34556 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34557 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34558 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34559 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34560 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34561 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34562 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34563 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34564 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34565 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34566 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34567 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34568 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34569 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34570 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34571 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34572 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34573 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34574 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34575 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34576 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34577 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34578 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34579 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34580 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34581 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34582 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34583 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34584 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34585 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34586 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34587 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34588 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34589 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34590 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34591 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34592 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34593 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34594 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34595 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34596 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34597 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34598 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34599 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34600 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34601 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34602 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34603 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34604 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34605 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34606 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34607 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34608 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34609 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34610 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34611 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34612 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34613 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34614 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34615
34616 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34617
34618 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34619 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34620 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34621 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34622 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34623 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34624 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34625 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34626 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34627 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34628 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34629 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34630 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34631 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34632 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34633 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34634 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34635 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34636 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34637 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34638 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34639 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34640 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34641 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34642 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34643 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34644 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34645 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34646 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34647 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34648 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34649 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34650 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34651 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34652 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34653 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34654 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34655 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34656 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34657 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34658 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34659 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34660 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34661 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34662 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34663 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34664 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34665 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34666 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34667 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34668 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34669 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34670 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34671 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34672 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34673 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34674 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34675 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34676 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34677 ...
34678 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34679 Don't include <sysdep.h> nor <init-arch.h>.
34680 (_ZGVbN2v_cos): Removed.
34681 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34682 ...
34683 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34684 Don't include <sysdep.h> nor <init-arch.h>.
34685 (_ZGVdN4v_cos): Removed.
34686 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34687 ...
34688 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34689 Don't include <sysdep.h> nor <init-arch.h>.
34690 (_ZGVeN8v_cos): Removed.
34691 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34692 ...
34693 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34694 Don't include <sysdep.h> nor <init-arch.h>.
34695 (_ZGVbN2v_exp): Removed.
34696 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34697 ...
34698 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34699 Don't include <sysdep.h> nor <init-arch.h>.
34700 (_ZGVdN4v_exp): Removed.
34701 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34702 ...
34703 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34704 Don't include <sysdep.h> nor <init-arch.h>.
34705 (_ZGVeN8v_exp): Removed.
34706 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34707 ...
34708 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34709 Don't include <sysdep.h> nor <init-arch.h>.
34710 (_ZGVbN2v_log): Removed.
34711 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34712 ...
34713 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34714 Don't include <sysdep.h> nor <init-arch.h>.
34715 (_ZGVdN4v_log): Removed.
34716 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34717 ...
34718 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34719 Don't include <sysdep.h> nor <init-arch.h>.
34720 (_ZGVeN8v_log): Removed.
34721 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34722 ...
34723 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34724 Don't include <sysdep.h> nor <init-arch.h>.
34725 (_ZGVbN2vv_pow): Removed.
34726 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34727 ...
34728 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34729 Don't include <sysdep.h> nor <init-arch.h>.
34730 (_ZGVdN4vv_pow): Removed.
34731 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34732 ...
34733 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34734 Don't include <sysdep.h> nor <init-arch.h>.
34735 (_ZGVeN8vv_pow): Removed.
34736 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34737 ...
34738 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34739 Don't include <sysdep.h> nor <init-arch.h>.
34740 (_ZGVbN2v_sin): Removed.
34741 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34742 ...
34743 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34744 Don't include <sysdep.h> nor <init-arch.h>.
34745 (_ZGVbN4v_sin): Removed.
34746 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34747 ...
34748 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34749 Don't include <sysdep.h> nor <init-arch.h>.
34750 (_ZGVbN8v_sin): Removed.
34751 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34752 ...
34753 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34754 Don't include <sysdep.h> nor <init-arch.h>.
34755 (_ZGVbN2vvv_sincos): Removed.
34756 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34757 ...
34758 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34759 Don't include <sysdep.h> nor <init-arch.h>.
34760 (_ZGVdN4vvv_sincos): Removed.
34761 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34762 ...
34763 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34764 Don't include <sysdep.h> nor <init-arch.h>.
34765 (_ZGVeN8vvv_sincos): Removed.
34766 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34767 ...
34768 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34769 Don't include <sysdep.h> nor <init-arch.h>.
34770 (_ZGVeN16v_cosf): Removed.
34771 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34772 ...
34773 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34774 Don't include <sysdep.h> nor <init-arch.h>.
34775 (_ZGVbN4v_cosf): Removed.
34776 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34777 ...
34778 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34779 Don't include <sysdep.h> nor <init-arch.h>.
34780 (_ZGVdN8v_cosf): Removed.
34781 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34782 ...
34783 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34784 Don't include <sysdep.h> nor <init-arch.h>.
34785 (_ZGVeN16v_expf): Removed.
34786 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34787 ...
34788 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34789 Don't include <sysdep.h> nor <init-arch.h>.
34790 (_ZGVbN4v_expf): Removed.
34791 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34792 ...
34793 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34794 Don't include <sysdep.h> nor <init-arch.h>.
34795 (_ZGVdN8v_expf): Removed.
34796 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34797 ...
34798 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34799 Don't include <sysdep.h> nor <init-arch.h>.
34800 (_ZGVeN16v_logf): Removed.
34801 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34802 ...
34803 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34804 Don't include <sysdep.h> nor <init-arch.h>.
34805 (_ZGVbN4v_logf): Removed.
34806 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34807 ...
34808 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34809 Don't include <sysdep.h> nor <init-arch.h>.
34810 (_ZGVdN8v_logf): Removed.
34811 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34812 ...
34813 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34814 Don't include <sysdep.h> nor <init-arch.h>.
34815 (_ZGVeN16vv_powf): Removed.
34816 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34817 ...
34818 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34819 Don't include <sysdep.h> nor <init-arch.h>.
34820 (_ZGVbN4vv_powf): Removed.
34821 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34822 ...
34823 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34824 Don't include <sysdep.h> nor <init-arch.h>.
34825 (_ZGVdN8vv_powf): Removed.
34826 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34827 ...
34828 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34829 Don't include <sysdep.h> nor <init-arch.h>.
34830 (_ZGVeN16vvv_sincosf): Removed.
34831 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34832 ...
34833 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34834 Don't include <sysdep.h> nor <init-arch.h>.
34835 (_ZGVbN4vvv_sincosf): Removed.
34836 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34837 ...
34838 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34839 Don't include <sysdep.h> nor <init-arch.h>.
34840 (_ZGVdN8vvv_sincosf): Removed.
34841 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34842 ...
34843 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34844 Don't include <sysdep.h> nor <init-arch.h>.
34845 (_ZGVeN16v_sinf): Removed.
34846 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34847 ...
34848 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34849 Don't include <sysdep.h> nor <init-arch.h>.
34850 (_ZGVbN4v_sinf): Removed.
34851 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34852 ...
34853 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34854 Don't include <sysdep.h> nor <init-arch.h>.
34855 (_ZGVdN8v_sinf): Removed.
34856
34857 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34858
34859 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34860 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34861 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34862 s_rint-sse4_1 and s_rintf-sse4_1.
34863 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34864 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34865 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34866 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34867 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34868 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34869 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34870 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34871 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34872 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34873 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34874 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34875 (__ceil): Removed.
34876 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34877 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34878 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34879 (__ceilf): Removed.
34880 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34881 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34882 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34883 (__floor): Removed.
34884 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34885 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34886 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34887 (__floorf): Removed.
34888 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34889 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34890 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34891 (__nearbyint): Removed.
34892 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34893 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34894 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34895 (__nearbyintf): Removed.
34896 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34897 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34898 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34899 (__rint): Removed.
34900 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34901 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34902 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34903 (__rintf): Removed.
34904
34905 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34906
34907 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34908 SHARED. Avoid dynamic relocation against main in static PIE.
34909
34910 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34911
34912 [BZ #21815]
34913 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34914 (LDFLAGS-tst-prelink): Likewise.
34915
34916 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34917
34918 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34919 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34920 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34921 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34922 (INTERNAL_SYSCALL_NCS): Likewise.
34923 (LOADARGS_1): Likewise.
34924 (LOADARGS_5): Likewise.
34925 (RESTOREARGS_1): Likewise.
34926 (RESTOREARGS_5): Likewise.
34927
34928 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34929
34930 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34931 (MEMPCPY_SYMBOL): Likewise.
34932 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34933 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34934 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34935 in libc.a.
34936 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34937 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34938 Likewise.
34939 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34940 (__hidden_ver1): Don't use in libc.a.
34941 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34942 (__mempcpy): Don't create a weak alias in libc.a.
34943 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34944 libc.a.
34945 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34946 (__hidden_ver1): Don't use in libc.a.
34947
34948 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34949
34950 * config.make.in (have-insert): New.
34951 * configure.ac (libc_cv_insert): New. Set to yes if linker
34952 supports INSERT in linker script.
34953 (AC_SUBST(libc_cv_insert): New.
34954 * configure: Regenerated.
34955 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34956 if $(have-insert) == yes.
34957
34958 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34959
34960 * elf/Makefile (tests): Add vismain only if
34961 $(have-protected-data) == yes.
34962 (tests-pie): Likewise.
34963
34964 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34965
34966 [BZ #21871]
34967 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34968 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34969
34970 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34971
34972 [BZ #21790]
34973 * sysdeps/i386/i586/memset.S
34974 (__memset_zero_constant_len_parameter): Removed.
34975 * sysdeps/i386/i686/memset.S
34976 (__memset_zero_constant_len_parameter): Likewise.
34977 * sysdeps/i386/i686/multiarch/memset_chk.S
34978 (__memset_zero_constant_len_parameter): Likewise.
34979 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34980 Likewise.
34981
34982 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34983
34984 * stdlib/getentropy.c (getentropy): Change return type to int.
34985
34986 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34987
34988 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34989
34990 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34991
34992 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34993 u_intN_t.
34994 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34995 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34996 Likewise.
34997 (ieee_float_shape_type): Likewise.
34998 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34999 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
35000 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
35001 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
35002 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
35003 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
35004 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
35005 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
35006 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
35007 Likewise.
35008 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
35009 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
35010 (__ieee754_yn): Likewise.
35011 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
35012 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
35013 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
35014 Likewise.
35015 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
35016 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
35017 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
35018 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
35019 (__erfc): Likewise.
35020 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
35021 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
35022 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
35023 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
35024 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
35025 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
35026 Likewise.
35027 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
35028 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
35029 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
35030 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
35031 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
35032 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
35033 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
35034 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
35035 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
35036 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
35037 (__issignaling): Likewise.
35038 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
35039 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
35040 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
35041 Likewise.
35042 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
35043 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
35044 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
35045 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
35046 Likewise.
35047 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
35048 Likewise.
35049 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
35050 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
35051 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
35052 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
35053 (__erfcf): Likewise.
35054 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
35055 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
35056 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
35057 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
35058 Likewise.
35059 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
35060 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
35061 Likewise.
35062 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
35063 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
35064 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
35065 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
35066 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
35067 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
35068 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
35069 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
35070 Likewise.
35071 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
35072 Likewise.
35073 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
35074 Likewise.
35075 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
35076 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
35077 Likewise.
35078 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
35079 Likewise.
35080 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
35081 (__ieee754_ynl): Likewise.
35082 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
35083 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
35084 Likewise.
35085 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
35086 Likewise.
35087 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
35088 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
35089 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
35090 Likewise.
35091 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
35092 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
35093 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
35094 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
35095 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
35096 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
35097 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
35098 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
35099 Likewise.
35100 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
35101 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
35102 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
35103 Likewise.
35104 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
35105 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
35106 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
35107 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
35108 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
35109 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
35110 Likewise.
35111 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
35112 Likewise.
35113 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
35114 Likewise.
35115 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
35116 Likewise.
35117 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
35118 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
35119 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
35120 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
35121 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
35122 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
35123 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
35124 Likewise.
35125 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
35126 Likewise.
35127 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
35128 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
35129 Likewise.
35130 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
35131 (__ieee754_remainderl): Likewise.
35132 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
35133 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
35134 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
35135 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
35136 Likewise.
35137 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
35138 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
35139 Likewise.
35140 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
35141 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
35142 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
35143 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
35144 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
35145 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
35146 Likewise.
35147 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35148 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35149 (__ieee754_y0l): Likewise.
35150 (pzero): Likewise.
35151 (qzero): Likewise.
35152 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35153 (__ieee754_y1l): Likewise.
35154 (pone): Likewise.
35155 (qone): Likewise.
35156 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35157 (__ieee754_ynl): Likewise.
35158 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35159 (__ieee754_lgammal_r): Likewise.
35160 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35161 Likewise.
35162 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35163 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35164 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35165 (__erfcl): Likewise.
35166 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35167 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35168 Likewise.
35169 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35170 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35171 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35172 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35173 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35174 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35175 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35176 Likewise.
35177 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35178 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35179 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35180 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35181 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35182 Likewise.
35183 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35184 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35185 Likewise.
35186 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35187 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35188 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35189 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35190 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35191
35192 2017-08-03 Florian Weimer <fweimer@redhat.com>
35193
35194 [BZ #21885]
35195 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35196 on memory allocation failure.
35197
35198 2017-08-03 Alan Modra <amodra@gmail.com>
35199
35200 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35201 tst-tlsopt-powerpc.c with function name change and no test harness.
35202 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35203 Call tls_get_addr_opt_test.
35204 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35205 (modules-names): Add mod-tlsopt-powerpc.
35206 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35207 (tst-tlsopt-powerpc): Depend on .so.
35208 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35209 define. Expand use in TLS_GD and TLS_LD.
35210
35211 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35212
35213 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35214 function.
35215 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35216
35217 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35218
35219 [BZ #21686]
35220 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35221 comparing size with that of double.
35222 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35223 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35224 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35225 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35226 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35227 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35228 unsigned __int128 types.
35229
35230 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35231
35232 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35233 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35234 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35235 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35236 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35237
35238 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35239
35240 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35241
35242 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35243
35244 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35245 of SHARED.
35246 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35247 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35248 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35249 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35250 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35251 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35252 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35253
35254 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35255
35256 [BZ #21685]
35257 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35258 bit-field expressions passed to sizeof or typeof.
35259 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35260 (__TGMATH_F128): Likewise.
35261 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35262 (__TGMATH_CF128): Likewise.
35263 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35264 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35265 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35266 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35267 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35268 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35269 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35270 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35271 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35272 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35273 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35274 (__TGMATH_UNARY_IMAG): Likewise.
35275 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35276 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35277 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35278 type.
35279 (define_vars_for_type): Handle bit_field type specially.
35280 (Tests.__init__): Declare structure with bit-field element.
35281
35282 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35283
35284 [BZ #21791]
35285 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35286 (MEMCPY_CHK): Define only if SHARED is defined.
35287 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35288 Likewise.
35289 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35290 Likewise.
35291
35292 See ChangeLog.18 for earlier changes.