]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
powerpc: copysign cleanup
[thirdparty/glibc.git] / ChangeLog
1 2019-06-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * sysdeps/powerpc/fpu/s_copysign.c: New file.
4 * sysdeps/powerpc/fpu/s_copysignf.c: Likewise.
5 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Remove file.
6 * sysdeps/powerpc/powerpc32/fpu/s_copysignf.S: Likewise.
7 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
8 (sysdep_routines, libm-sysdep_routines): Remove s_copysign-power6 and
9 s_copysign-ppc32.
10 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
11 Remove file.
12 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
13 Likewise.
14 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
15 Likewise.
16 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
17 Likewise.
18 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
19 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: Likewise.
20 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile (sysdeps_calls):
21 Remove s_copysign-power6 s_copysign-ppc64.
22 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S:
23 Remove file.
24 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S:
25 Likewise.
26 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
27 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
28 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
29 * sysdeps/powerpc/powerpc64/fpu/s_copysignf.S: Likewise.
30 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
31 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: Likewise.
32
33 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode,
34 round_to_integer_float, round_mode): Add RINT handling.
35 (reset_fenv_mode): New symbol.
36 * sysdeps/powerpc/fpu/s_rint.c (__rint): Use generic implementation.
37 * sysdeps/powerpc/fpu/s_rintf.c (__rintf): Likewise.
38 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove file.
39 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
40 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
41 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
42
43 2019-06-12 Florian Weimer <fweimer@redhat.com>
44
45 [BZ #24632]
46 * libio/libioP.h (_IO_JUMPS_FUNC_UPDATE): New macro.
47 * libio/freopen.c (freopen): Use it.
48
49 2019-06-12 Florian Weimer <fweimer@redhat.com>
50
51 Linux: Deprecate sysctl.
52 * include/sysctl.h (__sysctl): Remove declaration.
53 * scripts/check-installed-headers.sh (sys/sysctl.h): Disable
54 check.
55 * sysdeps/unix/sysv/linux/sys/sysctl.h: Add deprecation warning.
56 (sysctl): Add deprecation attribute.
57 * sysdeps/unix/sysv/linux/sysctl.c: Include <linux/sysctl.h>
58 directly, to avoid the deprecation warning. Do not include
59 <string.h>.
60 (__sysctl): Remove hidden alias.
61
62 2019-06-12 Florian Weimer <fweimer@redhat.com>
63
64 Linux: Use kernel headers for statx definitions if available.
65 * include/bits/statx-generic.h: New file.
66 * include/bits/types/struct_statx.h: Likewise.
67 * include/bits/types/struct_statx_timestamp.h: Likewise.
68 * io/Makefile (headers): Add bits/statx-generic.h.
69 * io/bits/statx-generic.h: New file. Partly copied from
70 io/bits/statx.h.
71 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
72 define original_statx.
73 * io/bits/types/struct_statx.h: Likewise.
74 * io/bits/types/struct_statx_timestamp.h: Likewise.
75 (statx_generic): Use original_statx.
76 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
77 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
78
79 2019-06-12 Florian Weimer <fweimer@redhat.com>
80
81 * misc/sys/cdefs.h (__glibc_has_include): Define.
82
83 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
84
85 * string/memmem.c (__memmem): Rewrite to improve performance.
86
87 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
88
89 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
90 warning.
91 (two_way_long_needle): Block inlining.
92 * string/strstr.c (strstr2): Add new function.
93 (strstr3): Likewise.
94 (STRSTR): Completely rewrite strstr to improve performance.
95
96 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
97
98 * benchtests/bench-strstr.c (test_hard_needle): New function.
99
100 2019-06-10 Joseph Myers <joseph@codesourcery.com>
101
102 * malloc/tst-calloc.c: Include <libc-diag.h>.
103 (null_test): Ignore -Wunused-result around calls to calloc.
104 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
105 (do_test): Ignore -Wunused-result around call to malloc.
106
107 2019-06-07 Florian Weimer <fweimer@redhat.com>
108
109 Linux: Add getdents64 system call.
110 * include/dirnent.h (getdents): Add comment and change buffer
111 argument type to void *.
112 (getdents64): Likewise. Add hidden prototype.
113 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
114 getdents64.
115 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
116 Add tst-getdents64.
117 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
118 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
119 argument type to void *.
120 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
121 Add hidden definition and getdents64 alias.
122 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
123 Likewise.
124 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
125 * manual/filesys.texi (Accessing Directories): Add Low-level
126 Directory Access node reference.
127 (Opening a Directory): Cross-reference it.
128 (Low-level Directory Access): New node.
129 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
130 getdents64.
131 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
132 Likewise.
133 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
134 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
135 Likewise.
136 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
137 Likewise.
138 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
139 Likewise.
140 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
141 Likewise.
142 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
143 Likewise.
144 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
145 Likewise.
146 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
147 Likewise.
148 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
149 (GLIBC_2.30): Likewise.
150 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
151 (GLIBC_2.30): Likewise.
152 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
153 (GLIBC_2.30): Likewise.
154 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
155 (GLIBC_2.30): Likewise.
156 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
157 Likewise.
158 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
159 (GLIBC_2.30): Likewise.
160 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
161 (GLIBC_2.30): Likewise.
162 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
163 (GLIBC_2.30): Likewise.
164 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
165 (GLIBC_2.30): Likewise.
166 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
167 Likewise.
168 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
169 Likewise.
170 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
171 Likewise.
172 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
173 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
174 Likewise.
175 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
176 Likewise.
177 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
178 Likewise.
179 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
180 Likewise.
181
182 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
183
184 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
185 (__FPU_MFFS): New.
186 (__FPU_MFFSL): New.
187 (_FPU_GET_RC): New.
188 (_FPU_GETCW): Use __FPU_MFFS().
189 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
190
191 2019-06-06 Florian Weimer <fweimer@redhat.com>
192
193 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
194 internal GCC preprocessor identifier __has_include__.
195
196 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
197
198 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
199 with call to equivalent function.
200
201 2019-06-04 Florian Weimer <fweimer@redhat.com>
202
203 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
204 (do_release_shlib): Adjust for __twalk_r.
205 (__gconv_release_shlib): Call __twalk_r.
206
207 2019-06-04 Andreas Schwab <schwab@suse.de>
208
209 [BZ #18830]
210 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
211 no irreversible characters occurred.
212 * iconv/gconv_simple.c (internal_ucs4_loop)
213 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
214 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
215 (ucs4_internal_loop_single, internal_ucs4le_loop)
216 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
217 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
218 (ucs4le_internal_loop_single): Add const to outend.
219 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
220 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
221 * iconv/Makefile (tests): Add tst-iconv7.
222 * iconv/tst-iconv7.c: New file.
223
224 2019-06-03 Joseph Myers <joseph@codesourcery.com>
225
226 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
227
228 2019-06-01 Florian Weimer <fweimer@redhat.com>
229
230 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
231 * sysdeps/unix/sysv/linux/arm/Makefile
232 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
233 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
234 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
235 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
236 compatibility symbols.
237
238 2019-05-31 Florian Weimer <fweimer@redhat.com>
239
240 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
241 system calls for the arm architecture: breakpoint, get_tls,
242 set_tls, usr26, usr32.
243
244 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
245
246 * sysdeps/powerpc/Makefile
247 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
248 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
249 Declare '.machine power7' to get support for ldbrx.
250 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
251 directive based on the directory of the file.
252 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
253 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
254 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
255 '.machine' directive.
256 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
257 (VADDUQM_V7_V8): Remove.
258 (__STRCASECMP): Replace macros with actual instructions.
259 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
260 '.machine' directive.
261 (VCLZD_V8_v7): Remove.
262 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
263
264 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
265
266 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
267 Remove file.
268 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
269
270 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
271
272 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
273 NEARBYINT handling.
274 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
275 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
276 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
277 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
278 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
279 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
280
281 2019-05-28 mansayk <6688000@gmail.com>
282
283 [BZ #24370]
284 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
285
286 2019-05-28 mansayk <6688000@gmail.com>
287
288 [BZ #24369]
289 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
290 (abmon): Likewise, but remove the trailing dots.
291
292 2019-05-28 Joseph Myers <joseph@codesourcery.com>
293
294 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
295
296 2019-05-27 Florian Weimer <fweimer@redhat.com>
297
298 * nptl/nptl-init.c: Add comment.
299
300 2019-05-24 Florian Weimer <fweimer@redhat.com>
301
302 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
303 struct in_addr/struct in6_addr alignment.
304
305 2019-05-23 Joseph Myers <joseph@codesourcery.com>
306
307 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
308 (F_SEAL_FUTURE_WRITE): New macro.
309
310 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
311
312 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
313 * elf/tst-ldconfig-bad-aux-cache.c: New file.
314 * elf/tst-ldconfig_aux-cache.root: New directory.
315 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
316 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
317 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
318
319 2019-05-22 Zack Weinberg <zackw@panix.com>
320
321 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
322 host type.
323 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
324 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
325
326 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
328 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
329 Delete.
330
331 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
332 Issue an #error if used with a compiler in SPE-float mode.
333 * sysdeps/powerpc/powerpc32/__longjmp_common.S
334 * sysdeps/powerpc/powerpc32/setjmp_common.S
335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
336 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
337 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
339 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
341 Remove code to preserve SPE register state.
342
343 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
344 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
345 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
346 Remove __SPE__ ifndefs.
347
348 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
349
350 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
351 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
352 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
353 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
354 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
355 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
356 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
357 (INNER_LOOP_ITERS_MEDIUM): New define.
358 (INNER_LOOP_ITERS_SMALL): New define.
359 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
360 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
361 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
362 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
363 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
364
365 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
366
367 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
368 New define.
369 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
370 (SEMTIMEDOP_IPC_ARGS): Likewise.
371
372 2019-05-21 Florian Weimer <fweimer@redhat.com>
373
374 [BZ #24584]
375 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
376 before updating __counter field and release it afterwards. Add
377 overflow check.
378 * iconv/gconv.h (struct __gconv_step): Mention synchronization
379 requirement for __counter member.
380
381 2019-05-21 Florian Weimer <fweimer@redhat.com>
382
383 [BZ #24583]
384 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
385 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
386 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
387 instead of __gconv_release_step.
388 * libio/Makefile (tests): Add tst-wfile-gconv.
389 (tests-container): Add tst-wfile-ascii.
390 (tst-wfile-gconv-ENV): Enable mtrace.
391 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
392 (tests-special): Add tst-wfile-gconv-mem.out.
393 (tst-wfile-gconv.out): Depend on locales.
394 (tst-wfile-gconv-mem.out): Add mtrace rule.
395 * libio/tst-wfile-ascii.c: New file.
396 * libio/tst-wfile-gconv.c: Likewise.
397
398 2019-05-20 Florian Weimer <fweimer@redhat.com>
399
400 [BZ #24588]
401 libio: Remove codecvt vtable.
402 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
403 __libio_codecvt.
404 * libio/iofgetpos.c (_IO_new_fgetpos): Call
405 __libio_codecvt_encoding.
406 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
407 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
408 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
409 * libio/iofwide.c (__libio_codecvt): Remove variable.
410 (_IO_fwide): Do not copy __libio_codecvt.
411 (__libio_codecvt_out): Rename from do_out and export.
412 (do_unshift): Remove function.
413 (__libio_codecvt_in): Rename from do_in and export.
414 (__libio_codecvt_encoding): Rename from do_encoding and export.
415 (do_always_noconv): Remove function.
416 (__libio_codecvt_length): Rename from do_length and export.
417 (do_max_length): Remove function.
418 * libio/libio.h (enum __codecvt_result): Remove definition; moved
419 to libioP.h.
420 (struct _IO_codecvt): Remove fields __codecvt_destr,
421 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
422 __codecvt_do_encoding, __codecvt_do_always_noconv,
423 __codecvt_do_length, __codecvt_do_max_length.
424 * libio/libioP.h (enum __codecvt_result): Define; moved from
425 libio.h.
426 (__libio_codecvt_out, __libio_codecvt_in)
427 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
428 functions.
429 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
430 (_IO_wfile_underflow): Call __libio_codecvt_in.
431 (_IO_wfile_underflow): Likewise.
432 (_IO_wfile_underflow_mmap): Likewise.
433 (_IO_wfile_sync): Call __libio_codecvt_encoding,
434 __libio_codecvt_length.
435 (adjust_wide_data): Call __libio_codecvt_encoding,
436 __libio_codecvt_in.
437 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
438 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
439 __libio_codecvt_length.
440
441 2019-05-20 Florian Weimer <fweimer@redhat.com>
442
443 * support/support.h (support_sbindir_prefix): Declare.
444 (support_install_rootsbindir): Update comment.
445 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
446 * support/support_paths.c (support_sbindir_prefix): Define.
447
448 2019-05-20 Mike Crowe <mac@mcrowe.com>
449
450 * support/timespec.c: Add backslash to correct newline in failure
451 message.
452
453 * support/timespec.h: Correct confusing comment.
454
455 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
456
457 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
458 define.
459 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
460 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
461 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
462 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
463
464 [BZ #24570]
465 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
466 usage.
467
468 2019-05-20 Joseph Myers <joseph@codesourcery.com>
469
470 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
471 (NT_ARM_PACG_KEYS): Likewise.
472
473 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
474
475 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
476 (tcache_put): Remove redundant assert.
477 (tcache_get): Remove redundant asserts.
478 (__libc_malloc): Check tcache count is not zero.
479 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
480
481 2019-05-17 Florian Weimer <fweimer@redhat.com>
482
483 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
484
485 2019-05-16 Joseph Myers <joseph@codesourcery.com>
486
487 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
488 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
489 0x050100].
490 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
491 Likewise.
492 * sysdeps/unix/sysv/linux/sh/kernel-features.h
493 (__ASSUME_STATX): Likewise.
494
495 2019-05-16 Florian Weimer <fweimer@redhat.com>
496
497 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
498 flags argument.
499 (LINE_PARSER): Do not map IPv4 addresses.
500 (internal_nis_gethostent_r): Remove flags argument. Adjust call
501 to parse_line.
502 (_nss_nis_gethostent_r): Always pass AF_INET to
503 internal_nis_gethostent_r.
504 (internal_gethostbyname2_r): Remove flags argument. Adjust call
505 to parse_line.
506 (_nss_nis_gethostbyname2_r): Adjust call to
507 internal_nis_gethostent_r.
508 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
509 call to internal_nis_gethostent_r.
510 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
511 from parse_line.
512 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
513 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
514 Remove flags argument. Do not map IPv4 addresses.
515 (internal_nisplus_gethostent_r): Adjust call to
516 _nss_nisplus_parse_hostent.
517 (internal_gethostbyname2_r): Remove flags argument. Adjust call
518 to _nss_nisplus_parse_hostent.
519 (_nss_nisplus_gethostbyname2_r): Adjust call to
520 internal_gethostbyname2_r.
521 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
522 Adjust call to internal_gethostbyname2_r.
523 (_nss_nisplus_gethostbyaddr_r): Adjust call to
524 _nss_nisplus_parse_hostent.
525 (_nss_nisplus_gethostbyname4_r): Adjust call to
526 internal_gethostbyname2_r.
527
528 2019-05-16 Florian Weimer <fweimer@redhat.com>
529
530 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
531 Remove flags.
532 (LINE_PARSER): Remove address mapping.
533 (EXTRA_ARGS_VALUE): Remove flags argument.
534 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
535 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
536 gethostbyname3_multi.
537 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
538 _nss_files_gethostbyname3_r.
539 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
540
541 2019-05-16 Florian Weimer <fweimer@redhat.com>
542
543 * support/support_test_compare_blob.c (report_blob): Report
544 incorrect NULL blobs.
545
546 2019-05-15 Mark Wielaard <mark@klomp.org>
547
548 [BZ# 24476]
549 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
550 __libc_once_get (once) and static_buf == NULL.
551 (__dlerror): Check we have a valid key, set result to static_buf
552 otherwise.
553
554 2019-05-15 Andreas Schwab <schwab@suse.de>
555
556 [BZ #20568]
557 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
558 __codecvt_do_length.
559 * libio/Makefile (tests): Add tst-wfile-sync.
560 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
561 * libio/tst-wfile-sync.c: New file.
562 * libio/tst-wfile-sync.input: New file.
563
564 2019-05-15 Florian Weimer <fweimer@redhat.com>
565
566 nss: Turn __nss_database_lookup into a compatibility symbol.
567 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
568 __nss_database_lookup.
569 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
570 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
571 __nss_database_lookup.
572 (__nss_next): Move to …
573 * nss/compat-lookup.c (nss_next): … here. Change it to fail
574 unconditionally.
575 (__nss_database_lookup): New function.
576 * nss/Versions (GLIBC_2.0): Update comment.
577 (GLIBC_PRIVATE): Export __nss_database_lookup2.
578 * grp/initgroups.c (internal_getgrouplist): Call
579 __nss_database_lookup2 instead of __nss_database_lookup.
580 * nscd/aicache.c (addhstaiX): Likewise.
581 * nscd/initgrcache.c (addinitgroupsX): Likewise.
582 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
583 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
584 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
585 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
586 Likewise.
587 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
588 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
589 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
590
591 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
592
593 * support/support.h (support_install_rootsbindir): New variable.
594 * support/support_paths.c: Likewise.
595 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
596
597 2019-05-15 Florian Weimer <fweimer@redhat.com>
598
599 * iconv/gconv.h (__gconv_transliterate): Move declaration …
600 * iconv/gconv_int.h (__gconv_transliterate): … here.
601 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
602 * iconv/skeleton.c: Likewise.
603
604 2019-05-14 Florian Weimer <fweimer@redhat.com>
605
606 Linux: Add the tgkill function.
607 * bits/signal_ext.h: New file.
608 * manual/signal.texi (Signaling Another Process): Document tgkill.
609 * signal/Makefile (headers): Add bits/signal_ext.h.
610 * signal/signal.h: Include <bits/signal_ext.h>.
611 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
612 (tst-tgkill): Link with libpthread.
613 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
614 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
615 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
616 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
617 tgkill.
618 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
619 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
620 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
621 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
622 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
623 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
624 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
625 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
626 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
627 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
628 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
629 Likewise.
630 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
631 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
632 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
634 Likewise.
635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
636 Likewise.
637 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
638 Likewise.
639 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
640 Likewise.
641 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
642 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
643 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
644 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
645 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
646 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
647 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
648 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
649
650 2019-05-14 Carlos O'Donell <carlos@redhat.com>
651
652 * manual/search.texi (Tree Search Function): Adjust twalk_r
653 documentation.
654
655 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
656
657 [BZ #24544]
658 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
659 pre-defined value.
660
661 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
662 * support/support.h (support_bindir_prefix): New variable.
663 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
664
665 * config.make.in (bindir): New variable.
666
667 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
668 (lll_trylock): Call __lll_trylock.
669 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
670 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
671 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
672 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
673 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
674 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
675 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
676 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
677 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
678 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
679 lowlevellock-futex.h.
680
681 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
682 initialization for LLL_LOCK_INITIALIZER different than 0.
683 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
684 Assume LLL_LOCK_INITIALIZER being 0.
685 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
686 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
687 Likewise.
688 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
689 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
690
691 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
692 Optimize futex call and add systemtap probe.
693
694 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
695 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
696 __libc_disable_asynccancel, __librt_enable_asynccancel,
697 __libc_disable_asynccancel, __librt_enable_asynccancel,
698 __librt_disable_asynccancel): Move to ...
699 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
700 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
701 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
702 * sysdeps/generic/single-thread.h: New file.
703 * sysdeps/unix/sysdep.h: Include single-thread.h.
704 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
705 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
706
707 2019-05-08 Mike FABIAN <mfabian@redhat.com>
708
709 [BZ #24535]
710 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
711 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
712 Unicode 12.1.0.
713 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
714 * localedata/unicode-gen/PropList.txt: Likewise.
715 * localedata/unicode-gen/UnicodeData.txt: Likewise.
716 * localedata/charmaps/UTF-8: Regenerate.
717 * localedata/locales/i18n_ctype: Likewise.
718 * localedata/locales/tr_TR: Likewise.
719 * localedata/locales/translit_circle: Likewise.
720 * localedata/locales/translit_cjk_compat: Likewise.
721 * localedata/locales/translit_combining: Likewise.
722 * localedata/locales/translit_compat: Likewise.
723 * localedata/locales/translit_font: Likewise.
724 * localedata/locales/translit_fraction: Likewise.
725
726 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
727
728 [BZ #24531]
729 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
730 (do_set_tcache_count): Only update if count is small enough.
731 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
732
733 2019-05-10 Florian Weimer <fweimer@redhat.com>
734
735 * nptl/sem_close.c (struct walk_closure): Define.
736 (walker): Adjust for __twalk_r.
737 (sem_close): Call __twalk_r.
738
739 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
740
741 * support/timespec.c (test_timespec_before_impl,
742 test_timespec_equal_or_after_impl): print timespec member as intmax_t
743 insted of long int.
744
745 2019-05-09 Mike Crowe <mac@mcrowe.com>
746
747 * nptl/tst-abstime.c: Use libsupport.
748
749 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
750 small bug where only tv.tv_usec was checked which could cause an
751 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
752 than a second.
753
754 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
755 libsupport.
756
757 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
758 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
759
760 * nptl/tst-cond11.c: Use libsupport.
761
762 * support/timespec.h: New file. Provide timespec helper functions
763 along with macros in the style of those in check.h.
764 * support/timespec.c: New file. Implement check functions declared
765 in support/timespec.h.
766 * support/timespec-add.c: New file from gnulib containing
767 timespec_add implementation that handles overflow.
768 * support/timespec-sub.c: New file from gnulib containing
769 timespec_sub implementation that handles overflow.
770 * support/README: Mention timespec.h.
771
772 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
773
774 [BZ #24537]
775 * nptl/Makefile: Move tst-eintr1 to xtests.
776
777 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
778
779 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
780 TRUNC handling.
781 (round_mode): Add definition for TRUNC.
782 * sysdeps/powerpc/fpu/s_trunc.c: New file.
783 * sysdeps/powerpc/fpu/s_truncf.c: New file.
784 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
785 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
786 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
787 Likewise.
788 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
789 Likewise.
790 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
791 Likewise.
792 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
793 Likewise.
794 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
795 file.
796 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
797 Likewise.
798 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
799 Likewise.
800 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
801 Likewise.
802 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
803 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
804 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
805 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
806 s_truncf-power5+, and s_truncf-ppc64.
807 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
808 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
809 file.
810 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
812 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
813 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
814 file.
815 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
816 Likewise.
817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
818 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
819 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
820 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
821 s_truncf-power5+, and s_truncf-ppc64.
822 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
823 file.
824 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
825 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
826 Likewise.
827 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
828 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
829 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
830 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
831 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
832
833 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
834 ROUND handling.
835 (round_mode): Add definition for ROUND.
836 (round_to_integer_float): Likewise.
837 * sysdeps/powerpc/fpu/s_round.c: New file.
838 * sysdeps/powerpc/fpu/s_roundf.c: New file.
839 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
840 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
841 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
842 Likewise.
843 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
844 Likewise.
845 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
846 Likewise.
847 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
848 Likewise.
849 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
850 file.
851 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
852 Likewise.
853 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
854 Likewise.
855 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
856 Likewise.
857 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
858 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
859 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
860 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
861 s_roundf-power5+, and s_roundf-ppc64.
862 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
863 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
864 file.
865 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
866 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
867 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
868 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
869 file.
870 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
871 Likewise.
872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
873 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
874 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
875 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
876 s_roundf-power5+, and s_roundf-ppc64.
877 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
878 file.
879 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
880 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
881 Likewise.
882 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
883 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
884 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
885 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
886 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
887
888 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
889 Add FLOOR option.
890 (round_mode): Add definition for FLOOR.
891 * sysdeps/powerpc/fpu/s_floor.c: New file.
892 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
893 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
894 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
895 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
896 Remove file.
897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
898 Likewise
899 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
900 Likewise.
901 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
902 Likewise.
903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
904 New file.
905 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
906 Likewise.
907 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
908 Likewise.
909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
910 Likewise.
911 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
912 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
913 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
914 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
915 s_floorf-power5+, and s_floorf-ppc64.
916 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
917 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
918 file.
919 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
920 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
921 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
922 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
923 file.
924 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
925 Likewise.
926 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
927 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
928 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
929 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
930 s_floorf-power5+, and s_floorf-ppc64.
931 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
932 file.
933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
934 file.
935 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
936 Likewise.
937 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
938 Likewise.
939 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
940 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
941 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
942 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
943
944 2019-05-08 Mike Crowe <mac@mcrowe.com>
945
946 * support/xclock_gettime.c (xclock_gettime): New file. Provide
947 clock_gettime wrapper for use in tests that fails the test rather
948 than returning failure.
949
950 * support/xtime.h: New file to declare xclock_gettime.
951
952 * support/Makefile: Add xclock_gettime.c.
953
954 * support/README: Mention xtime.h.
955
956 2019-05-08 Florian Weimer <fweimer@redhat.com>
957
958 malloc/tst-mallocfork2: Use process-shared barriers.
959 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
960 (signal_count, sigusr1_sender_pid): Remove.
961 (iterations): Define constant.
962 (shared): New variable.
963 (sigusr1_received): Update comment.
964 (sigusr1_handler): Do not send SIGSTOP to the sender process.
965 (signal_sender): Optional use barriers to avoid sending signals
966 during irrelevant times.
967 (do_it): Initialize variable shared. Use xfork for error
968 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
969 the iteration count, independent of signal delivery. Check for
970 deadlocks in fork. Introduce barriers for reducing signal
971 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
972 replaced by the barriers. Count signals during fork/free/malloc
973 and report them.
974 * malloc/Makefile (tst-mallocfork): Link with libpthread.
975
976 2019-05-07 Joseph Myers <joseph@codesourcery.com>
977
978 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
979 version to 5.1.
980 (clock_adjtime64) New syscall.
981 (clock_getres_time64) Likewise.
982 (clock_gettime64) Likewise.
983 (clock_nanosleep_time64) Likewise.
984 (clock_settime64) Likewise.
985 (futex_time64) Likewise.
986 (io_pgetevents_time64) Likewise.
987 (io_uring_enter) Likewise.
988 (io_uring_register) Likewise.
989 (io_uring_setup) Likewise.
990 (mq_timedreceive_time64) Likewise.
991 (mq_timedsend_time64) Likewise.
992 (pidfd_send_signal) Likewise.
993 (ppoll_time64) Likewise.
994 (pselect6_time64) Likewise.
995 (recvmmsg_time64) Likewise.
996 (rt_sigtimedwait_time64) Likewise.
997 (sched_rr_get_interval_time64) Likewise.
998 (semtimedop_time64) Likewise.
999 (timer_gettime64) Likewise.
1000 (timer_settime64) Likewise.
1001 (timerfd_gettime64) Likewise.
1002 (timerfd_settime64) Likewise.
1003 (utimensat_time64) Likewise.
1004
1005 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
1006 version to 9 branch.
1007
1008 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1009
1010 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
1011 __memmove_thunderx2 to the list of implementations
1012 * sysdeps/aarch64/multiarch/memmove.c: Likewise
1013 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
1014 (__memmove_thunderx2): Rewritten using SIMD ld/st
1015 (__memcpy_thunderx2): Fixed handling overlapping cases.
1016 Used ldp/stp instead of ldr/str if possible. Made loops
1017 tails branchless.
1018
1019 2019-05-03 Florian Weimer <fweimer@redhat.com>
1020
1021 * misc/tst-tsearch.c (walk_tree): Add more error checking.
1022
1023 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1024
1025 [BZ #24506]
1026 * elf/tst-pldd.c (in_str_list): New function.
1027 (do_test): Add default names for ld and libc as one option.
1028
1029 2019-05-02 Florian Weimer <fweimer@redhat.com>
1030
1031 misc: Add twalk_r function.
1032 * include/search.h (__twalk_r): Declare.
1033 * manual/examples/twalk.c: New file.
1034 * manual/search.texi (Tree Search Function): Document twalk_r.
1035 * misc/Versions (2.30): Export twalk_r.
1036 (GLIBC_PRIVATE): Export __twalk_r.
1037 * misc/search.h [__USE_GNU] (twalk_r): Declare.
1038 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
1039 (twalk_r): Add weak alias.
1040 * misc/tst-tsearch.c (struct walk_trace_element): Define.
1041 (walk_trace): New variable.
1042 (struct twalk_with_twalk_r_closure): Define.
1043 (twalk_with_twalk_r_action): New function.
1044 (twalk_with_twalk_r): Likewise.
1045 (walk_action): Call walk_trace_add.
1046 (walk_tree_with): Rename from walk_tree. Add walk argument.
1047 (walk_tree): New function.
1048 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
1049 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1052 Likewise.
1053 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1054 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
1055 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
1056 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
1057 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
1058 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1059 Likewise.
1060 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1061 Likewise.
1062 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1063 Likewise.
1064 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1065 (GLIBC_2.30): Likewise.
1066 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1067 (GLIBC_2.30): Likewise.
1068 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1069 (GLIBC_2.30): Likewise.
1070 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1071 (GLIBC_2.30): Likewise.
1072 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1073 Likewise.
1074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1075 (GLIBC_2.30): Likewise.
1076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1077 (GLIBC_2.30): Likewise.
1078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1079 (GLIBC_2.30): Likewise.
1080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1081 (GLIBC_2.30): Likewise.
1082 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1083 Likewise.
1084 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1085 Likewise.
1086 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1087 Likewise.
1088 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1089 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1090 Likewise.
1091 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1092 Likewise.
1093 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1094 Likewise.
1095 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1096 Likewise.
1097
1098 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1099
1100 Make mktime etc. compatible with __time64_t
1101 Keep these functions compatible with Gnulib while adding
1102 __time64_t support. The basic idea is to move private API
1103 declarations from include/time.h to time/mktime-internal.h, since
1104 the former file cannot easily be shared with Gnulib whereas the
1105 latter can.
1106 Also, do some other minor cleanup while in the neighborhood.
1107 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1108 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1109 since Gnulib needs it.
1110 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1111 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1112 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1113 (in_time_t_range): New static function.
1114 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1115 so that glibc users are not tempted to use __time64_t.
1116 * time/mktime-internal.h: Rewrite so that it does both glibc
1117 and Gnulib work. Include time.h if not _LIBC.
1118 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1119 (__time64_t): New type or macro, moved here from
1120 posix/bits/types.h.
1121 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1122 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1123 from include/time.h.
1124 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1125 New macros, taken from GNulib.
1126 (__mktime_internal): New prototype, moved here from include/time.h.
1127 * time/mktime.c (mktime_min, mktime_max, convert_time)
1128 (ranged_convert, __mktime_internal, __mktime64):
1129 * time/timegm.c (__timegm64):
1130 Use __time64_t, not time_t.
1131 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1132 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1133 Rename from mktime.
1134 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1135 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1136 for libc_hidden_def.
1137 Include errno.h.
1138 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1139 Rename from timegm.
1140 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1141
1142 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1143
1144 [BZ #19444]
1145 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1146 from `-Wmaybe-uninitialized'.
1147 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1148
1149 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1150
1151 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1152 function.
1153 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1154 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1155 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1156 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1157 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1158 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1159 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1160 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1161 Remove file.
1162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1163 Likewise.
1164 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1165 Likewise.
1166 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1167 Likewise.
1168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1169 New file.
1170 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1171 Likewise.
1172 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1173 Likewise.
1174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1175 Likewise.
1176 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1177 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1178 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1179 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1180 Likewise.
1181 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1182 Likewise.
1183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1184 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1185 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1186 file.
1187 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1188 Likewise.
1189 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1190 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1191 * here.
1192 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1193 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1194 s_ceilf-power5+, and s_ceilf-ppc64.
1195 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1196 file.
1197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1198 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1199 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1200 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1201 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1202 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1203 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1204
1205 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1206 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1207 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1208
1209 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1210
1211 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1212 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1213 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1214 (sem_getvalue): Likewise.
1215
1216 2019-04-26 Florian Weimer <fweimer@redhat.com>
1217
1218 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1219 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1220
1221 2019-04-26 Florian Weimer <fweimer@redhat.com>
1222
1223 Makeconfig: Move -Wl,-rpath-link options before library references.
1224 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1225 (link-libc): Remove $(link-libc-rpath-link).
1226
1227 2019-04-25 Florian Weimer <fweimer@redhat.com>
1228
1229 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1230 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1231 (+link-static-before-libc): Remove $(CC).
1232 (+link-static, +link-static-tests): Add $(CC).
1233 (+link-before-libc): Remove $(CC).
1234 (+link, +link-pie, +link-pie-printers): Add $(CC).
1235
1236 2019-04-26 Florian Weimer <fweimer@redhat.com>
1237
1238 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1239 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1240 (+link-static-before-libc): Remove $(CC).
1241 (+link-static, +link-static-tests): Add $(CC).
1242 (+link-before-libc): Remove $(CC).
1243 (+link, +link-pie, +link-pie-printers): Add $(CC).
1244
1245 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1246
1247 [BZ#24484]
1248 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1249
1250 2019-04-25 Florian Weimer <fweimer@redhat.com>
1251
1252 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1253 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1254 (bench-link-targets): New variable.
1255 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1256
1257 2019-04-25 Florian Weimer <fweimer@redhat.com>
1258
1259 Also enable BIND_NOW for programs if --enable-bind-now.
1260 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1261 (+link-pie): Use $(link-extra-flags).
1262 (+link-static): Likewise.
1263 [! $(build-pie-default)] (+link): Likewise.
1264 * manual/install.texi (Configuring and compiling): Update
1265 --enable-bind-now description.
1266 * INSTALL: Regenerated.
1267
1268 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1269
1270 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1271 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1272
1273 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1274
1275 [BZ #18465]
1276 * malloc/Makefile (others): Add memusagestat.
1277 ($(objpfx)memusagestat): Delete rule.
1278 (LDLIBS-memusagestat): New variable.
1279
1280 2019-04-24 Florian Weimer <fweimer@redhat.com>
1281
1282 * locale/Makefile (tests-special): Guard setting by
1283 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1284 to run while cross-compiling.
1285
1286 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1287
1288 [BZ #18035]
1289 * elf/Makefile (tests-container): Add tst-pldd.
1290 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1291 (E(find_maps)): Avoid use alloca, use default read file operations
1292 instead of explicit LFS names, and fix infinite loop.
1293 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1294 (get_process_info): Use _Static_assert instead of assert, use default
1295 directory operations instead of explicit LFS names, and free some
1296 leadek pointers.
1297 * elf/tst-pldd.c: New file.
1298
1299 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 * malloc/arena.c (do_set_mallopt_check): Removed.
1302
1303 2019-04-23 Florian Weimer <fweimer@redhat.com>
1304
1305 locale: Add LOCPATH diagnostics to the locale program.
1306 * locale/programs/locale.c (setlocale_failed): New variable.
1307 (try_setlocale): New function.
1308 (quote_string): Likewise.
1309 (setlocale_diagnostics): Likewise.
1310 (main): Call try_setlocale instead of setlocale. Call
1311 setlocale_diagnostics.
1312 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1313 (tst-locale-locpath.out): New target.
1314 * locale/tst-locale-locpath.sh: New file.
1315
1316 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1317
1318 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1319 to 2.30 notes.
1320
1321 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1322
1323 [BZ #23741]
1324 * malloc/hooks.c (malloc_check, realloc_check): Use
1325 __builtin_add_overflow on overflow check and adapt to
1326 checked_request2size change.
1327 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1328 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1329 allocation size to PTRDIFF_MAX.
1330 (REQUEST_OUT_OF_RANGE): Remove macro.
1331 (checked_request2size): Change to inline function and limit maximum
1332 requested size to PTRDIFF_MAX.
1333 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1334 maximum allocation size to PTRDIFF_MAX.
1335 (_mid_memalign): Use _int_memalign call for overflow check.
1336 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1337 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1338 limit maximum requested size to PTRDIFF_MAX.
1339 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1340 valloc, pvalloc): Add __attribute_alloc_size__.
1341 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1342 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1343 larger than PTRDIFF_MAX.
1344 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1345 around tests of malloc with negative sizes.
1346 * malloc/tst-posix_memalign.c (do_test): Likewise.
1347 * malloc/tst-pvalloc.c (do_test): Likewise.
1348 * malloc/tst-valloc.c (do_test): Likewise.
1349 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1350 with resulting size allocation larger than PTRDIFF_MAX with
1351 reallocarray_nowarn.
1352 (reallocarray_nowarn): New function.
1353 * NEWS: Mention the malloc function semantic change.
1354
1355 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1356
1357 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1358 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1359
1360 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1361 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1362 * sysdeps/powerpc/fpu/s_fma.c: New file.
1363 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1364
1365 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1366 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1367
1368 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1369 the magic flag store.
1370 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1371 Likewise.
1372 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1373 Likewise.
1374 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1375 Remove rt_sigreturn call.
1376
1377 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1378 Remove rt_sigreturn call.
1379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1380 Likewise.
1381 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1382 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1383
1384 * support/Makefile (libsupport-routines): Add support_subprocess,
1385 xposix_spawn, xposix_spawn_file_actions_addclose, and
1386 xposix_spawn_file_actions_adddup2.
1387 (tst-support_capture_subprocess-ARGS): New rule.
1388 * support/capture_subprocess.h (support_capture_subprogram): New
1389 prototype.
1390 * support/support_capture_subprocess.c (support_capture_subprocess):
1391 Refactor to use support_subprocess and support_capture_poll.
1392 (support_capture_subprogram): New function.
1393 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1394 str_to_write_mode, test_common, parse_int, handle_restart,
1395 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1396 (do_test): Add support_capture_subprogram tests.
1397 * support/subprocess.h: New file.
1398 * support/support_subprocess.c: Likewise.
1399 * support/xposix_spawn.c: Likewise.
1400 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1401 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1402 * support/xspawn.h: Likewise.
1403
1404 2019-04-17 Mike Gerow <gerow@google.com>
1405
1406 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1407 groups limit.
1408
1409 2019-04-11 Florian Weimer <fweimer@redhat.com>
1410
1411 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1412 domain with empty string.
1413 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1414
1415 2019-04-11 Florian Weimer <fweimer@redhat.com>
1416
1417 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1418 comment.
1419 (alloc_buffer_next): Change return type to non-const. Update
1420 comment.
1421
1422 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1423
1424 * manual/time.texi (Formatting Calendar Time): Add missing percent
1425 sign to conversion specifier.
1426
1427 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1428 Kwok Cheung Yeung <kcy@codesourcery.com>
1429
1430 [BZ #16573]
1431 * malloc/mtrace.c: Define prototypes for all hooks.
1432 (set_default_hooks): New function.
1433 (set_trace_hooks): Likewise.
1434 (save_default_hooks): Likewise.
1435 (tr_freehook): Use new s*_hooks functions.
1436 (tr_mallochook): Likewise.
1437 (tr_reallochook): Likewise.
1438 (tr_memalignhook): Likewise.
1439 (mtrace): Likewise.
1440 (muntrace): Likewise.
1441
1442 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1443
1444 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1445 (generic_stpcpy): New function.
1446 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1447 (generic_stpncpy): New function.
1448 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1449 (generic_strcat): New function.
1450 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1451 (generic_strcpy): New function.
1452 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1453 (STUPID_STRNCAT): Remove function.
1454 (generic_strncat): New function.
1455 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1456 (STUPID_STRNCPY): Remove function.
1457 (generic_strncpy): New function.
1458 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1459 (generic_strnlen): New function.
1460 (memchr_strnlen): New function.
1461 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1462 (memchr_strlen): Likewise.
1463
1464 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1465
1466 * benchtests/bench-strstr.c (input): Add realistic input text.
1467 (stupid_strstr): Remove function.
1468 (basic_strstr): Add function.
1469 (twoway_strstr): Add function.
1470 (do_one_test): Add result checking.
1471 (do_test): Use new input text. Remove accidental early matches.
1472 (test_main): Improve range of tests, reduce unaligned cases.
1473
1474 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1475
1476 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1477 (basic_memmem): Add function.
1478 (twoway_memmem): Add function.
1479
1480 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1481
1482 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1483 * benchtests/bench-malloc-thread.c: Likewise.
1484 * benchtests/bench-skeleton.c: Likewise.
1485 * benchtests/bench-strtod.c: Likewise.
1486 * benchtests/bench-timing.h: Likewise.
1487
1488 2019-04-08 Florian Weimer <fweimer@redhat.com>
1489
1490 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1491 definitions.
1492 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1493 RES_INSECURE2 security checks.
1494 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1495 RES_INSECURE2 handling.
1496
1497 2019-04-08 Florian Weimer <fweimer@redhat.com>
1498
1499 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1500 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1501 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1502 GETHOSTBYNAME.
1503 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1504 (tests-internal): Update justification for tst-resolv-res_init,
1505 tst-resolv-res_init-thread.
1506 (tst-res_use_inet6): Remove target.
1507 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1508 * resolv/res_debug.c (p_option): Remove "inet6" support.
1509 * resolv/res_init.c (res_setoptions): Likewise.
1510 * resolv/res_use_inet6.h: Remove file.
1511 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1512 definition.
1513 (res_use_inet6): Always return false.
1514 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1515 * resolv/resolv_context.h: Adjust file comment.
1516 (struct resolv_context): Update comment on __next field.
1517 (__resolv_context_put): Update comment.
1518 * resolv/tst-res_use_inet6.c: Remove file.
1519 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1520 "inet6" support.
1521 (test_cases): Adjust test case.
1522 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1523 (thread_byname2_af_inet6): Use old byname_inet6 code.
1524 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1525 (gai): Remove do_inet6 argument.
1526 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1527 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1528 (thread_gai_unspec_inet6): Remove functions.
1529 (do_test): Adjust thread_funcs.
1530 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1531 RES_USE_INET6 flag.
1532 (gaih_inet): Do not disable RES_USE_INET6 flag.
1533
1534 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1535
1536 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1537 and remove redundant code.
1538
1539 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1540
1541 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1542 New rule.
1543 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1544 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1545 Likewise.
1546 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1547 Likewise.
1548 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1549 Likewise.
1550 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1551 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1552 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1553 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1554 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1555 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1556 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1557 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1558 wcsrchr-power7.
1559 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1560 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1561 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1562 Remove wcsrchr optimizations.
1563 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1564
1565 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1566 the loop unroll.
1567
1568 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1569 New rule.
1570 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1571 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1572 Likewise.
1573 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1574 Likewise.
1575 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1576 Likewise.
1577 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1578 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1579 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1580 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1581 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1582 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1583 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1584 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1585 wcschr-power7.
1586 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1587 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1588 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1589 Remove wcschr optimizations.
1590 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1591
1592 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1593 the loop unroll.
1594
1595 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1596 New rule.
1597 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1598 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1599 Likewise.
1600 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1601 Likewise.
1602 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1603 Likewise.
1604 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1605 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1606 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1607 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1608 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1609 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1610 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1611 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1612 wcscpy-power7.
1613 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1614 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1615 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1616 Remove wcscpy optimizations.
1617 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1618
1619 * include/loop_unroll.h: New file.
1620 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1621 besides generic implementation.
1622
1623 2019-04-03 DJ Delorie <dj@redhat.com>
1624
1625 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1626 snprintf truncating output.
1627
1628 2019-04-02 DJ Delorie <dj@redhat.com>
1629
1630 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1631 warning.
1632
1633 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1634
1635 [BZ #22964]
1636 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1637 era.
1638 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1639 (mkreftable): Add rules for the new Japanese era and the new dates.
1640
1641 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1642 Rafal Luzynski <digitalfreak@lingonborough.com>
1643
1644 * time/tst-strftime2.c (date_t): Explicitly define the type.
1645 (dates): Use natural month and year numbers to express a date.
1646 (is_before): New function to compare dates.
1647 (mkreftable): Minor improvements to simplify maintenance.
1648 (do_test): Reflect the changes in dates array.
1649
1650 [BZ #24293]
1651 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1652 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1653 * time/tst-strftime2.c (locales): Likewise.
1654 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1655 2010-04-01, and 2011-04-01.
1656 (mkreftable): Add rules for the new locales and the new dates.
1657
1658 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1659
1660 * localedata/locales/ja_JP: Add comments to era entries.
1661
1662 2019-04-01 DJ Delorie <dj@redhat.com>
1663
1664 [BZ #24394]
1665 * time/strptime_l.c (%Ey): Fix fencepost error.
1666 * time/tst-strftime3.c: New.
1667 * time/Makefile (tests): Add tst-strftime3.
1668
1669 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1670
1671 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1672 conditional branch to DIVBYZERO. Fix unwind info.
1673 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1674 excb after conditional branch to $powerof2. Add missing unop
1675 instructions and .align directives and reorder instructions to
1676 match __divqu.
1677
1678 2019-04-01 Richard Henderson <rth@twiddle.net>
1679
1680 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1681 Do not redefine.
1682 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1683 Do not redefine.
1684
1685 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1686
1687 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1688 $libc_cv_riscv_float_abi in `test' invocation.
1689 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1690
1691 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1692
1693 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1694 asm with builtin.
1695 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1696 Likewise.
1697 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1698 (_GET_SI_FPSCR): Likewise.
1699 (_SET_SI_FPSCR): Likewise.
1700
1701 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1702
1703 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1704 clang 2.8.
1705 (signbit): Use builtin for clang 3.3.
1706 (isinf): Use builtin for clang 3.7.
1707
1708 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1709
1710 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1711
1712 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1713
1714 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1715 quote in printf.
1716
1717 2019-03-25 Mike Crowe <mac@mcrowe.com>
1718
1719 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1720 pthread_rwlock_timedrdlock with calls to
1721 pthread_rwlock_timedwrlock to ensure that the latter is tested
1722 too. Use new function name in diagnostic messages too.
1723
1724 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1725 (do_test) Use libsupport test macros rather than hand-coded
1726 conditionals and error messages. Ensure that sem_init returns zero
1727 rather than not -1. Use <support/test-driver.c> rather than
1728 test-skeleton.c.
1729
1730 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1731 test macros rather than hand-coded conditionals and error messages.
1732 Use <support/test-driver.c> rather than test-skeleton.c.
1733
1734 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1735
1736 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1737
1738 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1739 (NT_MIPS_MSA): Likewise.
1740
1741 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1742
1743 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1744 * benchtests/README: Update description.
1745 * benchtests/bench-timing.h: Default to hp-timing.
1746 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1747 HP_TIMING_PRINT): Remove.
1748 (HP_TIMING_NOW): Add generic implementation.
1749 (hp_timing_t): Change to uint64_t.
1750
1751 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1752 HP_TIMING_INLINE.
1753 * nptl/descr.h: Likewise.
1754 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1755 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1756 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1757 Abstract hp-timing usage with RTLD_* macros.
1758 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1759 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1760 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1761 HP_TIMING_NONAVAIL): Likewise.
1762 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1763 Likewise.
1764 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1765 HP_SMALL_TIMING_AVAIL): Likewise.
1766 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1767 HP_SMALL_TIMING_AVAIL): Likewise.
1768 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1769 HP_SMALL_TIMING_AVAIL): Likewise.
1770 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1771 HP_SMALL_TIMING_AVAIL): Likewise.
1772 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1773 Likewise.
1774 * sysdeps/generic/hp-timing-common.h: Update comment with
1775 HP_TIMING_AVAIL removal.
1776
1777 * include/random-bits.h: New file.
1778 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1779 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1780 random_bits.
1781 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1782 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1783 Likewise.
1784
1785 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1786 * rt/Makefile (clock-routines): Remove get_clockfreq.
1787 * rt/get_clockfreq.c: Remove file.
1788 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1789 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1790 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1791 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1792 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1793
1794 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1795 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1796 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1797 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1798 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1799
1800 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1801 pthread_clock_settime.
1802 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1803 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1804 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1805 * elf/rtld.c (_dl_start_final): Likewise.
1806 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1807 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1808 Remove.
1809 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1810 (_dl_cpuclock_offset): Remove.
1811 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1812 cpuclock_offset_ununsed.
1813 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1814 cpuclock_offset set.
1815 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1816 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1817 * nptl/pthread_clock_gettime.c: Remove file.
1818 * nptl/pthread_clock_settime.c: Likewise.
1819 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1820 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1821 and CLOCK_PROCESS_CPUTIME_ID support.
1822 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1823 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1824 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1825 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1826 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1827 Likewise.
1828 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1829
1830 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1831
1832 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1833 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1834 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1835 New defines.
1836 * sysdeps/s390/memmem-arch13.S: New file.
1837 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1838 if it is only used as fallback.
1839 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1840 * sysdeps/s390/multiarch/ifunc-impl-list.c
1841 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1842
1843 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1844
1845 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1846 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1847 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1848 New defines.
1849 * sysdeps/s390/multiarch/ifunc-impl-list.c
1850 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1851 * sysdeps/s390/strstr-arch13.S: New file.
1852 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1853 if it is only used as fallback.
1854 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1855
1856 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1857
1858 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1859 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1860 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1861 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1862 ifunc selector.
1863 * sysdeps/s390/multiarch/ifunc-impl-list.c
1864 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1865 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1866 S390_IS_ARCH13_MIE3): New defines.
1867
1868 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1869
1870 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1871 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1872 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1873 * sysdeps/s390/configure: Regenerated.
1874
1875 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1876
1877 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1878 Add vxe2, vxp, dflt, sort flags.
1879 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1880 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1881 capabilities.
1882 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1883 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1884 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1885 HWCAP_S390_DFLT): Define.
1886
1887 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1888
1889 [BZ #24372]
1890 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1891 of compiler warning.
1892 * locale/programs/ld-collate.c (collate_output): Likewise.
1893
1894 2019-03-21 DJ Delorie <dj@redhat.com>
1895
1896 [BZ #24372]
1897 * iconv/iconvconfig.c (write_output): Replace floating point math
1898 with integer math to avoid imprecise results.
1899 * locale/programs/ld-collate.c (collate_output): Likewise.
1900
1901 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1902
1903 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1904 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1905
1906 2019-03-20 mansayk <6688000@gmail.com>
1907
1908 [BZ #24296]
1909 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1910 (abday): Likewise, but remove the trailing dots.
1911
1912 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1913
1914 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1915 macro.
1916 (HWCAP_PACA): Likewise.
1917 (HWCAP_PACG): Likewise.
1918 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1919 Increase to 32.
1920 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1921
1922 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1923
1924 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1925 should be handled.
1926
1927 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1928
1929 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1930 version to 5.0.
1931 (old_getpagesize): New syscall.
1932
1933 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1934
1935 [BZ #24293]
1936 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1937 * localedata/locales/cmn_TW (era): Likewise.
1938 * localedata/locales/hak_TW (era): Likewise.
1939 * localedata/locales/lzh_TW (era): Likewise.
1940 * localedata/locales/nan_TW (era): Likewise.
1941
1942 2019-03-14 Adam Maris <amaris@redhat.com>
1943
1944 * malloc/malloc.c (_int_malloc): Check for large bin list
1945 corruption when inserting unsorted chunk.
1946
1947 2019-03-14 Florian Weimer <fweimer@redhat.com>
1948
1949 Remove obsolete, never-implemented XSI STREAMS declarations.
1950 * manual/terminal.texi (Allocation): Remove portability note and
1951 adjust example.
1952 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1953 _SC_STREAMS.
1954 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1955 * sysdeps/unix/inet/Subdirs (streams): Remove.
1956 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1957 (conformtest-headers-UNIX98): Likewise.
1958 (conformtest-headers-XOPEN2K): Likewise.
1959 (conformtest-headers-POSIX2008): Likewise.
1960 * posix/compat-streams.c: New file.
1961 * posix/Makefile (routines): Add it.
1962 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1963 getpmsg, isastream, putmsg, putpmsg.
1964 (GLIBC_2.30): New section.
1965 * bits/stropts.h: Remove file.
1966 * bits/xtitypes.h: Likewise.
1967 * conform/data/stropts.h-data: Likewise.
1968 * include/stropts.h: Likewise.
1969 * include/sys/stropts.h: Likewise.
1970 * include/xtitypes.h: Likewise.
1971 * streams/Makefile: Likewise.
1972 * streams/fattach.c: Likewise.
1973 * streams/fdetach.c: Likewise.
1974 * streams/getmsg.c: Likewise.
1975 * streams/getpmsg.c: Likewise.
1976 * streams/isastream.c: Likewise.
1977 * streams/putmsg.c: Likewise.
1978 * streams/putpmsg.c: Likewise.
1979 * streams/stropts.h: Likewise.
1980 * streams/sys/stropts.h: Likewise.
1981 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1982 * sysdeps/s390/bits/xtitypes.h: Likewise.
1983 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1984 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1985 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1986 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1987 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1988 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1989 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1990 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1991 * sysdeps/x86/bits/xtitypes.h: Likewise.
1992
1993 2019-03-14 Florian Weimer <fweimer@redhat.com>
1994
1995 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1996 libnss_files.
1997 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1998 but not with libnss_files.
1999 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
2000
2001 2019-03-14 Zack Weinberg <zackw@panix.com>
2002
2003 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
2004 Specify encoding="utf-8" when opening headers to check.
2005
2006 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2007
2008 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2009 version to 5.0.
2010 (Context.checkout_tar): Handle variable major version for Linux
2011 kernel.
2012
2013 2019-03-13 Florian Weimer <fweimer@redhat.com>
2014
2015 [BZ #24047]
2016 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
2017
2018 2019-03-13 Zack Weinberg <zackw@panix.com>
2019
2020 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
2021 Move to stdlib.
2022 * include/inttypes.h: Adjust to match.
2023 * include/stdint.h: New wrapper.
2024
2025 2019-03-13 Zack Weinberg <zackw@panix.com>
2026
2027 * scripts/check-obsolete-constructs.py: New test script.
2028 * scripts/check-installed-headers.sh: Remove tests for
2029 obsolete typedefs, superseded by check-obsolete-constructs.py.
2030 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
2031 as a special test. Update commentary.
2032 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
2033 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
2034 Update commentary.
2035 * posix/sys/types.h (__u_intN_t): Remove.
2036 (u_int8_t): Typedef using __uint8_t.
2037 (u_int16_t): Typedef using __uint16_t.
2038 (u_int32_t): Typedef using __uint32_t.
2039 (u_int64_t): Typedef using __uint64_t.
2040
2041 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2042
2043 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
2044 call _dl_procinfo.
2045 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
2046 Ignore types other than AT_HWCAP.
2047 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
2048 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
2049 Likewise.
2050 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
2051 in the case of falling back to generic output mechanism.
2052 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
2053 Likewise.
2054
2055 2019-03-12 Florian Weimer <fweimer@redhat.com>
2056
2057 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
2058
2059 2019-03-12 Florian Weimer <fweimer@redhat.com>
2060
2061 [BZ #24047]
2062 resolv: Enable full ICMP errors for UDP DNS sockets
2063 * resolv/res_enable_icmp.c: New file.
2064 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2065 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2066 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2067 socket.
2068
2069 2019-03-11 Mao Han <han_mao@c-sky.com>
2070
2071 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2072 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2073
2074 2019-03-11 Mao Han <han_mao@c-sky.com>
2075
2076 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2077 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2078 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2079
2080 2019-03-11 Mao Han <han_mao@c-sky.com>
2081
2082 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2083 directly.
2084 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2085 definition.
2086
2087 2019-03-11 Mao Han <han_mao@c-sky.com>
2088
2089 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2090 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2091 in mcontext_t
2092
2093 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2094
2095 [BZ #24307]
2096 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2097 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2098 Unicode 12.0.0.
2099 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2100 * localedata/unicode-gen/PropList.txt: Likewise.
2101 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2102 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2103 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2104 * localedata/charmaps/UTF-8: Regenerate.
2105 * localedata/locales/i18n_ctype: Likewise.
2106 * localedata/locales/tr_TR: Likewise.
2107 * localedata/locales/translit_circle: Likewise.
2108 * localedata/locales/translit_cjk_compat: Likewise.
2109 * localedata/locales/translit_combining: Likewise.
2110 * localedata/locales/translit_compat: Likewise.
2111 * localedata/locales/translit_font: Likewise.
2112 * localedata/locales/translit_fraction: Likewise.
2113
2114 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2115
2116 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2117 than after operators.
2118 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2119 (setitimer_locked): Likewise.
2120 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2121 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2122 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2123 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2124 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2125 (PPC_CPU_SUPPORTED): Likewise.
2126 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2127 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2128 (stat_overflow): Likewise.
2129 (statfs_overflow): Likewise.
2130 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2131 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2132 (eq_ttyname_r): Likewise.
2133 (run_chroot_tests): Likewise.
2134
2135 2019-03-07 Florian Weimer <fweimer@redhat.com>
2136
2137 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2138 header check.
2139
2140 2019-03-07 Martin Liska <mliska@suse.cz>
2141
2142 * math/Makefile: Change location where math-vector-fortran.h is
2143 installed.
2144 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2145 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2146 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2147 * scripts/check-installed-headers.sh: Skip Fortran header files.
2148 * scripts/check-wrapper-headers.py: Likewise.
2149
2150 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2151
2152 * nptl/nptl-init.c (__have_futex_clock_realtime,
2153 __have_futex_clock_realtime): Remove definition.
2154 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2155 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2156 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2157 __ASSUME_FUTEX_CLOCK_REALTIME support.
2158 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2159 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2160 * sysdeps/unix/sysv/linux/kernel-features.h
2161 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2162 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2163 Adjust comment.
2164
2165 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2166
2167 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2168 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2169 __GI___wcscpy and wcscpy.
2170
2171 2019-03-04 Florian Weimer <fweimer@redhat.com>
2172
2173 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2174 declaration.
2175 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2176 defined.
2177
2178 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2179
2180 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2181 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2182
2183 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2184
2185 [BZ #24162]
2186 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2187 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2188
2189 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2190
2191 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2192 tests.
2193 (do_test): Likewise.
2194 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2195 (do_test_call_varg): Likewise.
2196 (do_test_call_rarg): Likewise.
2197 * sysdeps/ieee754/ldbl-opt/Makefile
2198 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2199 tst-nldbl-error.
2200 ($(objpfx)tst-nldbl-warn.c): New rule.
2201 ($(objpfx)tst-nldbl-error.c): Likewise.
2202 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2203 New variables.
2204
2205 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2206
2207 [BZ #23984]
2208 * include/bits/error-ldbl.h: New file.
2209 * include/error.h: Include stdarg.h. Declare internal functions
2210 __error_internal and __error_at_line_internal.
2211 * misc/Makefile (headers): Add bits/error-ldbl.h.
2212 * misc/bits/error-ldbl.h: New file.
2213 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2214 avoid the inclusion of bits/error.h.
2215 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2216 and __nldbl_error_at_line.
2217 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2218 (__nldbl_error, __ndlbl_error_at_line): New functions.
2219 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2220 Redirect error and error_at_line.
2221 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2222 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2223 Likewise.
2224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2225 Likewise.
2226 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2227 Likewise.
2228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2229 Likewise.
2230 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2231 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2232 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2233
2234 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2235
2236 [BZ #23984]
2237 * include/bits/err-ldbl.h: New file.
2238 * include/err.h: Add prototypes for the internal functions:
2239 __vwarnx_internal and __vwarn_internal.
2240 * misc/Makefile (headers): Add bits/err-ldbl.h.
2241 * misc/bits/err-ldbl.h: New file.
2242 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2243 defined, i.e.: when -mlong-double-64 is in use.
2244 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2245 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2246 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2248 (VA_CALL): New macro.
2249 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2250 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2251 functions.
2252 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2253 declare prototypes for the new functions.
2254 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2255 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2256 Likewise.
2257 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2258 Likewise.
2259 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2260 Likewise.
2261 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2262 Likewise.
2263 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2264 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2265 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2266
2267 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2268
2269 * sysdeps/ieee754/ldbl-opt/Makefile
2270 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2271 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2272 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2273
2274 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2275
2276 [BZ #23983]
2277 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2278 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2279 * argp/bits/argp-ldbl.h: New file.
2280 * include/argp.h: Include stdarg.h. Add prototypes for internal
2281 functions: __argp_error_internal and __argp_failure_internal.
2282 * include/bits/argp-ldbl.h: New file.
2283 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2284 __nldbl_argp_error and __nldbl_argp_failure.
2285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2286 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2287 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2288 Redirect argp_error and argp_failure calls.
2289 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2290 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2291 Likewise.
2292 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2293 Likewise.
2294 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2295 Likewise.
2296 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2297 Likewise.
2298 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2299 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2300 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2301
2302 2019-03-01 Florian Weimer <fweimer@redhat.com>
2303
2304 [BZ #20419]
2305 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2306 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2307 code, to avoid creating an ABI tag note.
2308 (modules-names-nobuild): Add tst-big-note-lib.
2309
2310 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2311
2312 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2313 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2314
2315 2019-03-01 Florian Weimer <fweimer@redhat.com>
2316
2317 [BZ #20271]
2318 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2319 (__netlink_assert_response): Add additional missing newlines.
2320
2321 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2322
2323 * sysdeps/powerpc/powerpc32/dl-machine.c
2324 (__elf_machine_fixup_plt): Use space before '('.
2325 (__process_machine_rela): Likewise.
2326 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2327 Likewise.
2328 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2329 Likewise.
2330 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2331 Likewise.
2332 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2333 (pattern): Likewise.
2334 (delta): Likewise.
2335 (check_result): Likewise.
2336 (check_excepts): Likewise.
2337 (check_op): Likewise.
2338 (fail_xr): Likewise.
2339 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2340 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2341 (SCNHSZ): Likewise.
2342 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2343 Likewise.
2344 (ARGS): Likewise.
2345 (__makecontext): Likewise.
2346 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2347 Likewise.
2348
2349 2019-02-28 Florian Weimer <fweimer@redhat.com>
2350
2351 [BZ #23937]
2352 elf: Add test with a local IFUNC resolver.
2353 * elf/ifuncmain9.c: New file.
2354 * elf/ifuncmain9pic.c: Likewise.
2355 * elf/ifuncmain9picstatic.c: Likewise.
2356 * elf/ifuncmain9pie.c: Likewise.
2357 * elf/ifuncmain9static.c: Likewise.
2358 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2359 ifuncmain9static, ifuncmain9picstatic.
2360 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2361 Add ifuncmain9, ifuncmain9pic.
2362 * elf/Makefile [multi-arch && build-shared && have-fpie]
2363 (ifunc-pie-tests): Add ifuncmain9pie.
2364 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2365 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2366 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2367
2368 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2369
2370 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2371 * configure: Regenerated.
2372 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2373
2374 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2375
2376 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2377 symbol as __wcspcy instead of wcscpy.
2378
2379 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2380
2381 * include/stdio.h (__renameat2): New hidden prototype.
2382 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2383 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2384 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2385 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2386
2387 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2388
2389 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2390 if statement.
2391
2392 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2393 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2394 * benchtests/bench-strlen.c (do_test): Likewise.
2395 (test_main): Likewise.
2396 * catgets/gencat.c (read_old): Likewise.
2397 * elf/cache.c (load_aux_cache): Likewise.
2398 * iconvdata/bug-iconv8.c (do_test): Likewise.
2399 * math/test-tgmath-ret.c (do_test): Likewise.
2400 * nis/nis_call.c (rec_dirsearch): Likewise.
2401 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2402 * nptl/tst-audit-threads.c (do_test): Likewise.
2403 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2404 * nss/nss_test1.c (init): Likewise.
2405 * nss/test-netdb.c (test_hosts): Likewise.
2406 * posix/execvpe.c (maybe_script_execute): Likewise.
2407 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2408 * stdio-common/tst-printf.c (do_test): Likewise.
2409 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2410 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2411 * stdlib/qsort.c (STACK_SIZE): Likewise.
2412 * stdlib/test-canon.c (do_test): Likewise.
2413 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2414 * string/memcmp.c (OPSIZ): Likewise.
2415 * string/test-strcpy.c (do_test): Likewise.
2416 (do_random_tests): Likewise.
2417 * string/test-strlen.c (do_test): Likewise.
2418 (test_main): Likewise.
2419 * string/test-strrchr.c (do_test): Likewise.
2420 (do_random_tests): Likewise.
2421 * string/tester.c (test_memrchr): Likewise.
2422 (test_memchr): Likewise.
2423 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2424 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2425 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2426 (read_encoded_value_with_base): Likewise.
2427 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2428 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2429 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2430 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2431 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2432 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2433 Likewise.
2434 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2435 Likewise.
2436 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2437 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2438 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2439 Likewise.
2440 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2441 Likewise.
2442 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2443 Likewise.
2444 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2445 Likewise.
2446 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2447 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2448 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2449 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2450 * time/test_time.c (main): Likewise.
2451
2452 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2453
2454 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2455
2456 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2457 wmemcpy.
2458
2459 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2460 wmemcpy.
2461
2462 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2463
2464 * include/wchar.h (__wcscpy): New prototype.
2465 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2466 (__wcscpy): Route internal symbol to generic implementation.
2467 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2468 Add internal __wcscpy alias.
2469 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2470 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2471 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2472 * wcsmbs/wcscpy.c (wcscpy): Add
2473 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2474 use generic implementation.
2475 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2476
2477 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2478 wmemset.
2479
2480 * sysdeps/m68k/wcpcpy.c: Remove file.
2481 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2482
2483 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2484
2485 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2486 than after operators.
2487 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2488 * sysdeps/mach/hurd/getcwd.c
2489 (__hurd_canonicalize_directory_name_internal): Likewise.
2490 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2491 (pthread_mutex_consistent): Likewise.
2492 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2493 Likewise.
2494 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2495 (__pthread_mutex_transfer_np): Likewise.
2496 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2497 (__pthread_mutex_unlock): Likewise.
2498 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2499 (mtx_owned_p): Likewise.
2500 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2501 (pthread_mutexattr_getrobust): Likewise.
2502 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2503 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2504 Likewise.
2505 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2506 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2507 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2508 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2509 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2510 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2511 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2512 Likewise.
2513 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2514 Likewise.
2515 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2516 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2517 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2518 (____longjmp_chk): Likewise.
2519 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2520 Likewise.
2521 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2522 (INTERNAL_SYSCALL): Likewise.
2523 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2524 (INTERNAL_SYSCALL): Likewise.
2525 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2526 (__get_clockfreq_via_cpuinfo): Likewise.
2527
2528 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2529 comments.
2530 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2531 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2532 (WORD_COPY_BWD): Likewise.
2533 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2534 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2535 Likewise.
2536 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2537 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2538 comment.
2539 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2540
2541 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2542
2543 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2544 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2545 rather than after operators.
2546 * elf/cache.c (print_cache): Likewise.
2547 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2548 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2549 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2550 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2551 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2552 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2553 (reauth_proc): Likewise.
2554 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2555 (__file_name_split_at): Likewise.
2556 (__directory_name_split_at): Likewise.
2557 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2558 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2559 * iconv/gconv_dl.c (do_print): Likewise.
2560 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2561 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2562 * locale/setlocale.c (new_composite_name): Likewise.
2563 * malloc/memusagestat.c (main): Likewise.
2564 * misc/fstab.c (fstab_convert): Likewise.
2565 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2566 Likewise.
2567 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2568 (getgrent_next_file): Likewise.
2569 (internal_getgrnam_r): Likewise.
2570 (internal_getgrgid_r): Likewise.
2571 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2572 Likewise.
2573 (internal_getgrent_r): Likewise.
2574 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2575 (getpwent_next_nss): Likewise.
2576 (getpwent_next_file): Likewise.
2577 (internal_getpwnam_r): Likewise.
2578 (internal_getpwuid_r): Likewise.
2579 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2580 Likewise.
2581 (getspent_next_nss): Likewise.
2582 (internal_getspnam_r): Likewise.
2583 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2584 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2585 * string/strchr.c (STRCHR): Likewise.
2586 * string/strchrnul.c (STRCHRNUL): Likewise.
2587 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2588 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2589 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2590 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2591 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2592 Likewise.
2593 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2594 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2595 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2596 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2597 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2598 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2599 (open_file): Likewise.
2600 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2601 (pthread_mutexattr_setprotocol): Likewise.
2602 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2603 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2604 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2605 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2606 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2607 Likewise.
2608 (elf_machine_rela): Likewise.
2609 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2610 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2611 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2612 * sysdeps/posix/rename.c (rename): Likewise.
2613 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2614 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2615 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2616 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2617 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2618 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2619 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2620 Likewise.
2621 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2622 Likewise.
2623 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2624 * time/tzfile.c (__tzfile_compute): Likewise.
2625
2626 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2627
2628 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2629 rather than after operators.
2630 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2631 * crypt/md5.c (md5_finish_ctx): Likewise.
2632 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2633 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2634 * elf/cache.c (load_aux_cache): Likewise.
2635 * elf/dl-load.c (open_verify): Likewise.
2636 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2637 * elf/readelflib.c (process_elf_file): Likewise.
2638 * elf/rtld.c (dl_main): Likewise.
2639 * elf/sprof.c (generate_call_graph): Likewise.
2640 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2641 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2642 * hurd/dtable.c (reauth_dtable): Likewise.
2643 * hurd/getdport.c (__getdport): Likewise.
2644 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2645 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2646 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2647 Likewise.
2648 * hurd/hurdioctl.c (fioctl): Likewise.
2649 * hurd/hurdselect.c (_hurd_select): Likewise.
2650 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2651 (STOPSIGS): Likewise.
2652 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2653 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2654 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2655 * hurd/msgportdemux.c (msgport_server): Likewise.
2656 * hurd/setauth.c (_hurd_setauth): Likewise.
2657 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2658 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2659 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2660 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2661 * login/tst-utmp.c (do_check): Likewise.
2662 (simulate_login): Likewise.
2663 * mach/lowlevellock.h (lll_lock): Likewise.
2664 (lll_trylock): Likewise.
2665 * math/test-fenv.c (ALL_EXC): Likewise.
2666 * math/test-fenvinline.c (ALL_EXC): Likewise.
2667 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2668 * nis/nis_call.c (__do_niscall3): Likewise.
2669 * nis/nis_callback.c (cb_prog_1): Likewise.
2670 * nis/nis_defaults.c (searchaccess): Likewise.
2671 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2672 * nis/nis_ismember.c (internal_ismember): Likewise.
2673 * nis/nis_local_names.c (nis_local_principal): Likewise.
2674 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2675 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2676 Likewise.
2677 * nis/ypclnt.c (yp_match): Likewise.
2678 (yp_first): Likewise.
2679 (yp_next): Likewise.
2680 (yp_master): Likewise.
2681 (yp_order): Likewise.
2682 * nscd/hstcache.c (cache_addhst): Likewise.
2683 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2684 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2685 (internal_getpwuid_r): Likewise.
2686 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2687 * posix/glob.h (__GLOB_FLAGS): Likewise.
2688 * posix/regcomp.c (peek_token): Likewise.
2689 (peek_token_bracket): Likewise.
2690 (parse_expression): Likewise.
2691 * posix/regexec.c (sift_states_iter_mb): Likewise.
2692 (check_node_accept_bytes): Likewise.
2693 * posix/tst-spawn3.c (do_test): Likewise.
2694 * posix/wordexp-test.c (testit): Likewise.
2695 * posix/wordexp.c (parse_tilde): Likewise.
2696 (exec_comm): Likewise.
2697 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2698 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2699 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2700 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2701 * stdio-common/tst-fileno.c (do_test): Likewise.
2702 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2703 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2704 * stdlib/strtod_l.c (round_and_return): Likewise.
2705 (____STRTOF_INTERNAL): Likewise.
2706 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2707 * string/strcspn.c (STRCSPN): Likewise.
2708 * string/test-memmem.c (simple_memmem): Likewise.
2709 * termios/tcsetattr.c (tcsetattr): Likewise.
2710 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2711 * time/asctime.c (asctime_internal): Likewise.
2712 * time/strptime_l.c (__strptime_internal): Likewise.
2713 * time/sys/time.h (timercmp): Likewise.
2714 * time/tzfile.c (__tzfile_compute): Likewise.
2715
2716 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2717
2718 [BZ #21915]
2719 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2720
2721 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2722
2723 * argp/argp-help.c (__argp_error_internal): New function,
2724 renamed from __argp_error, but that takes a 'mode_flags'
2725 parameter to control the format of long double parameters.
2726 (__argp_error): Converted into a call __argp_error_internal.
2727 (__argp_failure_internal): New function, renamed from
2728 __argp_failure, but that takes a 'mode_flags' parameter.
2729 (__argp_failure): Converted into a call __argp_failure_internal.
2730 * misc/err.c (__vwarnx_internal): New function, renamed from
2731 vwarnx, but that takes a 'mode_flags' parameter.
2732 (vwarnx): Converted into a call to __vwarnx_internal.
2733 (__vwarn_internal): New function, renamed from vwarn, but that
2734 takes a 'mode_flags' parameter.
2735 (vwarn): Converted into a call to __vwarn_internal.
2736 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2737 call to __vfxprintf with 'mode_flags'.
2738 (__error_internal): New function, renamed from error, but that
2739 takes a 'mode_flags' parameter.
2740 (error): Converted into a call to __error_internal.
2741 (__error_at_line_internal): New function, renamed from
2742 error_at_line, but that takes a 'mode_flags' parameter.
2743 (error_at_line): Converted into a call to
2744 __error_at_line_internal.
2745 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2746 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2747 Likewise.
2748
2749 2019-02-20 Martin Liska <mliska@suse.cz>
2750
2751 * math/Makefile: Install math-vector-fortran.h.
2752 * bits/math-vector-fortran.h: New file.
2753 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2754
2755 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2756
2757 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2758 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2759
2760 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2761
2762 * nptl/pthread_mutex_trylock.c: Fix comment.
2763
2764 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2765
2766 * nptl/pthread_tryjoin.c: Fix comment.
2767
2768 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2769
2770 [BZ #24231]
2771 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2772 after R_SPARC_H34 case.
2773
2774 2019-02-18 Florian Weimer <fweimer@redhat.com>
2775
2776 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2777 (getanswer): Do not call Dprintf.
2778 (res_gethostbyname2_context): Likewise.
2779 (res_gethostbyaddr_context): Likewise.
2780
2781 2019-02-18 Florian Weimer <fweimer@redhat.com>
2782
2783 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2784 declaration.
2785 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2786 Remove definitions.
2787 * libio/stdfiles.c: Update comment.
2788 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2789 set _IO_stdin, _IO_stdout, _IO_stderr.
2790 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2791 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2792 inline function.
2793 (_IO_deallocate_file): New inline function.
2794 * libio/iolibio.h (_IO_vprintf): Remove definition.
2795 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2796 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2797 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2798 _IO_legacy_file.
2799 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2800 __builtin_expect. Use _IO_legacy_file.
2801
2802 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2803
2804 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2805 Initialize ctid with a known value and remove update of ctid
2806 after clone.
2807 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2808 as assumed current value of ctid_ptr.
2809
2810 2019-02-16 Florian Weimer <fweimer@redhat.com>
2811
2812 Check that non-sysdeps headers have wrapper headers.
2813 * scripts/check-wrapper-headers.py: New file.
2814 * Makefile (tests-special): Add check-wrapper-headers.out.
2815 (check-wrapper-headers.out): New target.
2816 * Rules (tests-special): Add check-wrapper-headers.out.
2817 (check-wrapper-headers.out): New target.
2818
2819 2019-02-16 Florian Weimer <fweimer@redhat.com>
2820
2821 Add missing header wrappers under include/.
2822 * include/ar.h: New file.
2823 * include/bits/mqueue2.h: Likewise.
2824 * include/bits/stdio.h: Likewise.
2825 * include/bits/stdio2.h: Likewise.
2826 * include/fstab.h: Likewise.
2827 * include/fts.h: Likewise.
2828 * include/lastlog.h: Likewise.
2829 * include/netinet/icmp6.h: Likewise.
2830 * include/netinet/igmp.h: Likewise.
2831 * include/netinet/ip6.h: Likewise.
2832 * include/re_comp.h: Likewise.
2833 * include/regexp.h: Likewise.
2834 * include/rpcsvc/bootparam.h: Likewise.
2835 * include/rpcsvc/yp_prot.h: Likewise.
2836 * include/sys/random.h: Likewise.
2837 * include/sys/stropts.h: Likewise.
2838 * include/sys/ttychars.h: Likewise.
2839 * include/sys/vfs.h: Likewise.
2840 * include/wait.h: Likewise.
2841
2842 2019-02-16 Florian Weimer <fweimer@redhat.com>
2843
2844 * nptl_db/proc_service.h: Move to ...
2845 * sysdeps/nptl/proc_service.h: ... here.
2846 * nptl_db/thread_db.h: Move to ...
2847 * sysdeps/nptl/thread_db.h: ... here.
2848 * nptl/descr.h: Include <thread_db.h>.
2849
2850 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2851
2852 * io/Makefile (tests): Add tst-lockf.
2853 * io/lockf.c (lockf): Use __fcntl and only define for
2854 !__OFF_T_MATCHES_OFF64_T.
2855 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2856 __OFF_T_MATCHES_OFF64_T case.
2857 * io/tst-lockf.c: New file.
2858 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2859 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2860 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2861 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2862 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2863 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2864 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2865 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2866 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2867
2868 2019-02-15 Florian Weimer <fweimer@redhat.com>
2869
2870 [BZ #24211]
2871 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2872 pd->result after the thread descriptor has been freed.
2873
2874 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2875
2876 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2877 from function return type.
2878
2879 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2880
2881 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 * scripts/test_printers_common.py: Set TERM to a known harmless
2884 value.
2885
2886 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2887
2888 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2889 (xdr_u_int): Likewise.
2890 (xdr_enum): Likewise.
2891 (xdr_bytes): Reword fall-through comment.
2892 (xdr_string): Likewise.
2893
2894 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2895
2896 [BZ #2421]
2897 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2898 (tests): Add tst-join8 tst-join9.
2899 * nptl/lll_timedwait_tid.c: Remove file.
2900 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2901 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2902 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2903 * nptl/pthread_join_common.c (timedwait_tid): New function.
2904 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2905 is set.
2906 * nptl/tst-join5.c (thread_join): New function.
2907 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2908 check.
2909 * nptl/tst-join8.c: New file.
2910 * nptl/tst-join9.c: Likewise.
2911 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2912 lll_futex_timed_wait_cancel): Add generic macros.
2913 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2914 Remove definitions.
2915 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2916 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2917 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2918 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2919 Remove function.
2920 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2921 Likewise.
2922 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2923 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2924 (lll_futex_timed_wait_cancel): New macro.
2925
2926 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2927
2928 * benchtests/Makefile: Add malloc-simple benchmark.
2929 * benchtests/bench-malloc-simple.c: New benchmark.
2930
2931 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2932
2933 * benchtests/bench-memmove.c (do_one_test): Remove unused
2934 ORIG_SRC.
2935 (do_test): Adjust.
2936 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2937 ORIG_SRC.
2938 (do_test): Adjust.
2939
2940 2019-01-13 Jim Wilson <jimw@sifive.com>
2941
2942 [BZ #24040]
2943 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2944 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2945 (func): New.
2946 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2947 call func directly.
2948 * nptl/Makefile (tests): Add tst-unwind-thread.
2949 (CFLAGS-tst-unwind-thread.c): Define.
2950 * nptl/tst-unwind-thread.c: New file.
2951 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2952 as undefined.
2953
2954 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2955
2956 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2957 comment wording.
2958 * nis/nis_call.c (__do_niscall3): Likewise.
2959
2960 * catgets/gencat.c (normalize_line): Use braces around empty
2961 'else' body.
2962 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2963 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2964 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2965 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2966 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2967 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2968 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2969 definition.
2970
2971 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2972 execlp returns.
2973
2974 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2975
2976 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2977 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2978 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2979 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2980 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2981 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2982 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2983 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2984 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2985 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2986 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2987 * benchtests/bench-bcopy.c: Delete file.
2988 * benchtests/bench-bzero.c: Likewise.
2989 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2990 (simple_memccpy): Remove.
2991 (generic_memccpy): Add function.
2992 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2993 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2994 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2995 (generic_mempcpy): Add new function.
2996 * benchtests/bench-memset.c (simple_bzero): Remove.
2997 (builtin_bzero): Remove.
2998 (builtin_memset): Remove.
2999 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
3000 (generic_rawmemchr): Add new function.
3001
3002 2019-02-12 Florian Weimer <fweimer@redhat.com>
3003
3004 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
3005
3006 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3007
3008 [BZ #24122]
3009 * elf/Makefile (tests): Add tst-audit13.
3010 (modules-names): Add tst-audit13mod1.
3011 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3012 rule.
3013 * elf/tst-audit13.c: New file.
3014 * elf/tst-audit13mod1.c: Likewise.
3015
3016 2019-02-12 Florian Weimer <fweimer@redhat.com>
3017
3018 [BZ #24122]
3019 * elf/rtld.c (unload_audit_module): New function.
3020 (report_audit_module_load_error): Likewise.
3021 (load_audit_module): Likewise. Extracted from dl_main. Call
3022 _dl_close if the laversion symbol cannot be found. Use early
3023 returns for error handling. Add malloc error check. Check for a
3024 zero return value from la_version. Remove spurious comment about
3025 static TLS initialization. Remove useless casts.
3026 (notify_audit_modules_of_loaded_object): New function. Extracted
3027 from dl_main.
3028 (load_audit_module): Likewise.
3029 (dl_main): Call load_audit_modules.
3030
3031 2019-02-12 Joseph Myers <joseph@codesourcery.com>
3032
3033 * elf/dl-exception.c (_dl_exception_create_format): Add
3034 fall-through comments.
3035 * elf/ldconfig.c (parse_conf_include): Likewise.
3036 * elf/rtld.c (print_statistics): Likewise.
3037 * locale/programs/charmap.c (parse_charmap): Likewise.
3038 * misc/mntent_r.c (__getmntent_r): Likewise.
3039 * posix/wordexp.c (parse_arith): Likewise.
3040 (parse_backtick): Likewise.
3041 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
3042 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
3043 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
3044
3045 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
3046
3047 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
3048 Use float instead of double.
3049
3050 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3051
3052 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
3053
3054 2019-02-08 Joseph Myers <joseph@codesourcery.com>
3055
3056 * sysdeps/powerpc/bits/mathinline.h: Remove.
3057
3058 2019-02-08 Florian Weimer <fweimer@redhat.com>
3059
3060 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3061 * math/bits/math-finite.h: Move to ...
3062 * bits/math-finite.h: ... here.
3063
3064 2019-02-08 Florian Weimer <fweimer@redhat.com>
3065
3066 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3067 * bits/unistd_ext.h: here.
3068
3069 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3070
3071 [BZ #21915]
3072 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3073 * nss/tst-nss-files-hosts-long.c: New file.
3074 * nss/tst-nss-files-hosts-long.root: New directory.
3075 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3076 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3077
3078 2019-02-08 Florian Weimer <fweimer@redhat.com>
3079
3080 * include/bits/unistd_ext.h: Remove file.
3081 * posix/bits/unistd_ext.h: Move to ...
3082 * sysdeps/generic/bits/unistd_ext.h: ... here.
3083
3084 2019-02-08 Florian Weimer <fweimer@redhat.com>
3085
3086 * include/bits/unistd_ext.h: New file.
3087
3088 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3089
3090 * time/tst-strftime2.c: Use array_length macros instead of magic
3091 numbers.
3092
3093 2019-02-08 Florian Weimer <fweimer@redhat.com>
3094
3095 [BZ #24161]
3096 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3097 argument.
3098 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3099 locking if the new do_locking argument is true.
3100 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3101 __run_fork_handlers.
3102
3103 2019-02-08 Florian Weimer <fweimer@redhat.com>
3104
3105 [BZ #6399]
3106 Linux: Add gettid system call wrapper.
3107 * posix/Makefile (headers): Add bits/unistd_ext.h.
3108 * posix/bits/unistd_ext.h: New file.
3109 * posix/unistd.h: Include it.
3110 * manual/process.texi (Process Identification): Document gettid.
3111 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3112 tst-gettid, tst-gettid-kill.
3113 (tst-gettid): Link with $(shared-thread-library).
3114 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3115 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3116 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3117 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3118 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3119 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3120 Add gettid.
3121 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3122 Likewise.
3123 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3124 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3125 Likewise.
3126 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3127 Likewise.
3128 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3129 Likewise.
3130 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3131 Likewise.
3132 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3133 Likewise.
3134 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3135 Likewise.
3136 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3137 Likewise.
3138 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3139 (GLIBC_2.30): Likewise.
3140 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3141 (GLIBC_2.30): Likewise.
3142 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3143 (GLIBC_2.30): Likewise.
3144 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3145 (GLIBC_2.30): Likewise.
3146 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3147 Likewise.
3148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3149 (GLIBC_2.30): Likewise.
3150 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3151 (GLIBC_2.30): Likewise.
3152 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3153 (GLIBC_2.30): Likewise.
3154 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3155 (GLIBC_2.30): Likewise.
3156 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3157 Likewise.
3158 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3159 Likewise.
3160 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3161 Likewise.
3162 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3163 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3164 Likewise.
3165 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3166 Likewise.
3167 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3168 Likewise.
3169 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3170 Likewise.
3171 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3172
3173 2019-02-08 Florian Weimer <fweimer@redhat.com>
3174
3175 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3176 compatibility symbols.
3177
3178 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3179
3180 [BZ #24180]
3181 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3182 Add compiler barriers and comments.
3183
3184 2019-02-07 Florian Weimer <fweimer@redhat.com>
3185
3186 * include/array_length.h (array_length): Do not use a statement
3187 expression and _Static_assert, so that array_length can be used at
3188 file scope and as a constant expression.
3189
3190 2019-02-07 Florian Weimer <fweimer@redhat.com>
3191
3192 * support/xdlfcn.h (xdlmopen): Declare.
3193 * support/xdlmopen.c: New file.
3194 * support/Makefile (libsupport-routines): Add xdlmopen.
3195
3196 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3197
3198 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3199 before return type, without separate inline.
3200 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3201 * elf/dl-tunables.h (tunable_is_name): Likewise.
3202 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3203 (do_set_top_pad): Likewise.
3204 (do_set_mmap_threshold): Likewise.
3205 (do_set_mmaps_max): Likewise.
3206 (do_set_mallopt_check): Likewise.
3207 (do_set_perturb_byte): Likewise.
3208 (do_set_arena_test): Likewise.
3209 (do_set_arena_max): Likewise.
3210 (do_set_tcache_max): Likewise.
3211 (do_set_tcache_count): Likewise.
3212 (do_set_tcache_unsorted_limit): Likewise.
3213 * nis/nis_subr.c (count_dots): Likewise.
3214 * nptl/allocatestack.c (advise_stack_range): Likewise.
3215 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3216 (do_sin): Likewise.
3217 (reduce_sincos): Likewise.
3218 (do_sincos): Likewise.
3219 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3220 (do_set_elision_enable): Likewise.
3221 (TUNABLE_CALLBACK_FNDECL): Likewise.
3222
3223 2019-02-06 Florian Weimer <fweimer@redhat.com>
3224
3225 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3226 (xdlsym): Use dlerror to detect a NULL symbol.
3227
3228 2019-02-06 Florian Weimer <fweimer@redhat.com>
3229
3230 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3231 <stap-probe.h>.
3232 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3233
3234 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3235
3236 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3237
3238 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3239
3240 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3241 __wmemcmp and weak alias to wmemcmp.
3242
3243 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3244
3245 [BZ #23403]
3246 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3247 TLS_TCB_AT_TP tls variant.
3248 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3249 Add alignment checks.
3250 * support/Makefile (libsupport-routines): Add xposix_memalign and
3251 xpthread_setstack.
3252 * support/support.h: Add xposix_memalign.
3253 * support/xthread.h: Add xpthread_attr_setstack.
3254 * support/xposix_memalign.c: New File.
3255 * support/xpthread_attr_setstack.c: Likewise.
3256
3257 2019-02-05 Florian Weimer <fweimer@redhat.com>
3258
3259 [BZ #24164]
3260 arm: Use "nr" constraint for Systemtap probes, to avoid the
3261 compiler using memory operands for constants, due to the "o"
3262 alternative in the default "nor" constraint.
3263 * include/stap-probe.h [USE_STAP_PROBE]: Include
3264 <stap-probe-machine.h>
3265 * sysdeps/generic/stap-probe-machine.h: New file.
3266 * sysdeps/arm/stap-probe-machine.h: Likewise.
3267
3268 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3269
3270 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3271 with 0, not tcache->entries[tc_idx].
3272
3273 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3274 once.
3275
3276 2019-02-04 Andreas Schwab <schwab@suse.de>
3277
3278 [BZ #16976]
3279 [BZ #17396]
3280 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3281 looking up collating elements match against (wide) character
3282 sequence instead of name. Correct alignment adjustment.
3283 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3284 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3285 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3286 (LOCALES): Add cs_CZ.ISO-8859-2.
3287 * posix/tst-fnmatch4.c: New file.
3288 * posix/tst-fnmatch5.c: New file.
3289 * include/wchar.h (__wmemcmp): Declare.
3290 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3291 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3292 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3293 * sysdeps/s390/wmemcmp.c: Likewise.
3294
3295 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3296
3297 [BZ #24155]
3298 CVE-2019-7309
3299 * NEWS: Updated for CVE-2019-7309.
3300 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3301 upper 32 bits of RDX register for x32. Use unsigned Jcc
3302 instructions, instead of signed.
3303 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3304 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3305
3306 2019-02-04 Florian Weimer <fweimer@redhat.com>
3307
3308 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3309 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3310 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3311 Likewise.
3312 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3313 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3314 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3315 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3316 Likewise.
3317 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3318 Likewise.
3319 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3320 Likewise.
3321 (posix_spawn_file_actions_addopen): Likewise.
3322 (posix_spawn_file_actions_addclose): Likewise.
3323 (posix_spawn_file_actions_adddup2): Likewise.
3324 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3325 qualifiers.
3326 (posix_spawn_file_actions_addfchdir_np): Likewise.
3327
3328 2019-02-04 David Newall <glibc@davidnewall.com>
3329
3330 elf: Implement --preload option for the dynamic linker.
3331 * elf/rtld.c (preloadarg): New variable.
3332 (handle_preload_list): Pass through “where” argument to
3333 do_preload.
3334 (dl_main): Handle "--preload" and add second call to
3335 handle_preload_list.
3336 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3337 (tst-rtld-preload-OBJS): Set variable.
3338 (tst-rtld-preload.out): New target.
3339 * elf/tst-rtld-preload.sh: New file.
3340
3341 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3342
3343 * Makefile (testrun.sh): Exit in case of incorrect argument.
3344
3345 2019-02-04 Florian Weimer <fweimer@redhat.com>
3346
3347 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3348 alignment gaps.
3349
3350 2019-02-03 Florian Weimer <fweimer@redhat.com>
3351
3352 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3353 implicit overflow checks.
3354
3355 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3356
3357 * stdlib/isomac.c: Include <unistd.h>.
3358
3359 2019-02-03 Florian Weimer <fweimer@redhat.com>
3360
3361 * include/time.h (__tzfile_default): Use int, not long int, for
3362 the GMT offsets.
3363 * time/tzfile.c (struct ttinfo): Change type of the offset member
3364 to int.
3365 (__tzfile_read): Remove useless cast.
3366 (__tzfile_default): Adjust prototype.
3367 * time/tzset.c (tz_rule): Change type of the offset member to int.
3368 (parse_offset): Change the type of the sign variable to int.
3369
3370 2019-02-03 Florian Weimer <fweimer@redhat.com>
3371
3372 [BZ #24153]
3373 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3374 * libio/getchar.c (getchar): Likewise.
3375 * libio/getchar_u.c (getchar_unlocked): Likewise.
3376 * libio/getwchar.c (getwchar): Likewise.
3377 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3378 * libio/iogets.c (_IO_gets): Likewise.
3379 * libio/vscanf.c (_IO_vscanf): Likewise.
3380 * libio/vwscanf.c (__vwscanf): Likewise.
3381 * libio/tst-bz24153.c: New file.
3382 * libio/Makefile (tests): Add it.
3383
3384 2019-02-02 Florian Weimer <fweimer@redhat.com>
3385
3386 [BZ #14829]
3387 * manual/resource.texi (Basic Scheduling Functions): Add
3388 portability note. Change process to task throughout the section.
3389 Remove incorrect comment about sched_yield as it affects
3390 tasks/threads, not entire processes.
3391 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3392 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3393
3394 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3395
3396 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3397 * configure: Regenerated.
3398 * manual/install.texi (Tools for Compilation): Update minimum GCC
3399 version.
3400 * INSTALL: Regenerated.
3401
3402 2019-02-01 Florian Weimer <fweimer@redhat.com>
3403
3404 * support/support_test_compare_string.c
3405 (support_test_compare_string): Use "string" in error message.
3406 * support/tst-test_compare_string.c (do_test): Adjust.
3407
3408 2019-02-01 Florian Weimer <fweimer@redhat.com>
3409
3410 * support/support_format_address_family.c
3411 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3412
3413 2019-02-01 Florian Weimer <fweimer@redhat.com>
3414
3415 * manual/socket.texi (Internet Address Formats): Clarify the byte
3416 order of struct sockaddr_in, struct sockaddr_in6. Document
3417 sin6_flowinfo and sin6_scope_id.
3418
3419 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3420
3421 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3422 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3423 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3424 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3425 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3426 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3427
3428 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3429
3430 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3431 [!MEMCHR](MEMCHR): Set to __memchr.
3432 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3433 Add memchr_generic and memchr_nosimd.
3434 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3435 (__libc_ifunc_impl_list): Add memchr ifuncs.
3436 * sysdeps/aarch64/multiarch/memchr.c: New file.
3437 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3438 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3439
3440 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3441
3442 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3443 Add memset_emag.
3444 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3445 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3446 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3447 Add IS_EMAG check for ifunc dispatch.
3448 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3449 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3450
3451 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3452
3453 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3454 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3455 Add emag.
3456 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3457 New macro.
3458
3459 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3460
3461 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3462
3463 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3464
3465 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3466 syscall-template file.
3467
3468 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3469 Torvald Riegel <triegel@redhat.com>
3470 Rik Prohaska <prohaska7@gmail.com>
3471
3472 [BZ# 23844]
3473 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3474 tst-rwlock-trywrlock-stall.
3475 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3476 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3477 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3478 Set __wrphase_fute to 1 only if we started the write phase.
3479 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3480 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3481 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3482 * support/xpthread_rwlock_destroy.c: New file.
3483 * support/xthread.h: Declare xpthread_rwlock_destroy.
3484
3485 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3486
3487 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3488 version to 4.0.2.
3489
3490 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3491
3492 [BZ #24051]
3493 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3494 * libio/fileops.c (_IO_new_file_underflow): Likewise
3495 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3496 * libio/putchar.c (putchar): Likewise.
3497 * libio/putchar_u.c (putchar_unlocked): Likewise.
3498 * libio/putwchar.c (putchar): Likewise.
3499 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3500 * libio/tst-bz24051.c: New test.
3501 * libio/Makefile (tests): Add tst-bz24051
3502
3503 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3504
3505 CVE-2019-9169
3506 regex: fix read overrun [BZ #24114]
3507 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3508 https://debbugs.gnu.org/34140
3509 * posix/regexec.c (proceed_next_node):
3510 Do not read past end of input buffer.
3511
3512 2019-01-31 Florian Weimer <fweimer@redhat.com>
3513
3514 [BZ #24059]
3515 * nss/nss_files/files-alias.c (get_next_alias): Handle
3516 continuation line without newline at the end.
3517 * nss/tst-nss-files-alias-truncated.c: New file.
3518 * nss/Makefile [$(build-shared)] (tests): Add
3519 tst-nss-files-alias-truncated.
3520 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3521 * support/namespace.h (struct support_chroot_configuration): Add
3522 aliases member.
3523 (struct support_chroot): Add path_aliases member.
3524 * support/support_chroot.c (support_chroot_create): Handle
3525 aliases.
3526 (support_chroot_free): Free path_aliases.
3527
3528 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3529
3530 * version.h (RELEASE): Set to "development".
3531 (VERSION): Set to "2.29.9000".
3532 * NEWS: Add section for 2.30.
3533
3534 * version.h (RELEASE): Set to "stable".
3535 (VERSION): Set to "2.29".
3536 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3537
3538 * NEWS: Add the list of bugs fixed in 2.29.
3539 * manual/contrib.texi: Update contributors list with some more
3540 names.
3541 * manual/install.texi: Update latest versions of packages
3542 tested.
3543 * INSTALL: Regenerated.
3544
3545 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3546
3547 * po/be.po: Update translations.
3548 * po/bg.po: Likewise.
3549 * po/ca.po: Likewise.
3550 * po/cs.po: Likewise.
3551 * po/da.po: Likewise.
3552 * po/de.po: Likewise.
3553 * po/el.po: Likewise.
3554 * po/eo.po: Likewise.
3555 * po/es.po: Likewise.
3556 * po/fi.po: Likewise.
3557 * po/fr.po: Likewise.
3558 * po/gl.po: Likewise.
3559 * po/hr.po: Likewise.
3560 * po/hu.po: Likewise.
3561 * po/ia.po: Likewise.
3562 * po/id.po: Likewise.
3563 * po/it.po: Likewise.
3564 * po/ja.po: Likewise.
3565 * po/ko.po: Likewise.
3566 * po/lt.po: Likewise.
3567 * po/nb.po: Likewise.
3568 * po/nl.po: Likewise.
3569 * po/pl.po: Likewise.
3570 * po/pt_BR.po: Likewise.
3571 * po/ru.po: Likewise.
3572 * po/rw.po: Likewise.
3573 * po/sk.po: Likewise.
3574 * po/sl.po: Likewise.
3575 * po/sv.po: Likewise.
3576 * po/tr.po: Likewise.
3577 * po/uk.po: Likewise.
3578 * po/vi.po: Likewise.
3579 * po/zh_CN.po: Likewise.
3580 * po/zh_TW.po: Likewise.
3581
3582 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3583
3584 [BZ #24130]
3585 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3586 of $f3 register on $y_is_neg path.
3587
3588 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3589
3590 [BZ #24110]
3591 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3592 sigaltstack.ss_flags.
3593
3594 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3595
3596 [BZ #23758]
3597 * manual/time.texi (strftime): Document "%Ey".
3598 * time/strftime_l.c (__strftime_internal): Set the default width
3599 padding with zero of "%Ey" to 2.
3600
3601 [BZ #24096]
3602 * manual/time.texi (strftime): Document "%EC" and "%EY".
3603 * time/Makefile (tests): Add tst-strftime2.
3604 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3605 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3606 override padding for "%Ey".
3607 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3608 "%Ey" in the subformat as if decorated with that flag.
3609 * time/tst-strftime2.c: New file.
3610
3611 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3612
3613 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3614 are not defined.
3615
3616 [BZ #24122]
3617 * elf/Makefile (tests): Add tst-audit13.
3618 (modules-names): Add tst-audit13mod1.
3619 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3620 rule.
3621 * elf/rtld.c (dl_main): Handle invalid audit module version.
3622 * elf/tst-audit13.c: New file.
3623 * elf/tst-audit13mod1.c: Likewise.
3624
3625 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3626
3627 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3628 returned by __hurd_at_flags.
3629 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3630 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3631 directly instead of __hurd_file_name_lookup.
3632
3633 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3634
3635 * scripts/build-many-glibcs.py (Context.checkout): Default
3636 binutils version to 2.32 branch.
3637
3638 2019-01-21 Florian Weimer <fweimer@redhat.com>
3639
3640 [BZ #20018]
3641 CVE-2016-10739
3642 resolv: Reject trailing characters in host names
3643 * include/arpa/inet.h (__inet_aton_exact): Declare.
3644 (inet_aton): Remove hidden prototype. No longer used internally.
3645 * nscd/gai.c (__inet_aton): Do not define.
3646 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3647 * nss/digits_dots.c (__inet_aton): Likewise.
3648 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3649 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3650 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3651 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3652 (tst-resolv-trailing): Likewise.
3653 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3654 libc.
3655 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3656 Make static. Add endp parameter.
3657 (__inet_aton_exact): New function.
3658 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3659 (__inet_addr): Call inet_aton_end.
3660 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3661 not just IPv6. Call __inet_aton_exact.
3662 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3663 (tests): Make const. Add additional test cases with trailing
3664 characters.
3665 (do_test): Use array_length.
3666 * resolv/tst-inet_aton_exact.c: New file.
3667 * resolv/tst-resolv-trailing.c: Likewise.
3668 * resolv/tst-resolv-nondecimal.c: Likewise.
3669 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3670
3671 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3672
3673 [BZ# 24097]
3674 CVE-2019-6488
3675 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3676 Clear the upper 32 bits of RSI register.
3677 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3678 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3679 and tst-size_t-wcsnlen.
3680 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3681 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3682
3683 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3684
3685 [BZ# 24097]
3686 CVE-2019-6488
3687 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3688 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3689 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3690 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3691 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3692
3693 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3694
3695 [BZ# 24097]
3696 CVE-2019-6488
3697 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3698 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3699 * sysdeps/x86_64/strcmp.S: Likewise.
3700 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3701 tst-size_t-strncmp and tst-size_t-wcsncmp.
3702 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3703 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3704 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3705
3706 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3707
3708 [BZ# 24097]
3709 CVE-2019-6488
3710 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3711 RDX_LP for length. Clear the upper 32 bits of RDX register.
3712 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3713 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3714 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3715 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3716
3717 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3718
3719 [BZ# 24097]
3720 CVE-2019-6488
3721 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3722 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3723 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3724 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3725
3726 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3727
3728 [BZ# 24097]
3729 CVE-2019-6488
3730 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3731 length. Clear the upper 32 bits of RDX register.
3732 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3733 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3734 Likewise.
3735 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3736 Likewise.
3737 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3738 tst-size_t-wmemchr.
3739 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3740
3741 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3742
3743 [BZ# 24097]
3744 CVE-2019-6488
3745 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3746 length. Clear the upper 32 bits of RDX register.
3747 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3748 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3749 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3750 tst-size_t-wmemcmp.
3751 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3752 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3753
3754 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3755
3756 [BZ# 24097]
3757 CVE-2019-6488
3758 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3759 upper 32 bits of RDX register.
3760 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3761 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3762 tst-size_t-wmemchr.
3763 * sysdeps/x86_64/x32/test-size_t.h: New file.
3764 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3765 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3766
3767 2019-01-18 Florian Weimer <fweimer@redhat.com>
3768
3769 [BZ #24112]
3770 resolv: Do not send queries for non-host-names in nss_dns.
3771 * resolv/nss_dns/dns-host.c (check_name): New function.
3772 (_nss_dns_gethostbyname2_r): Use it.
3773 (_nss_dns_gethostbyname_r): Likewise.
3774 (_nss_dns_gethostbyname4_r): Likewise.
3775
3776 2019-01-21 Florian Weimer <fweimer@redhat.com>
3777
3778 * resolv/inet_addr.c: Reformat to GNU style.
3779 (__inet_addr, __inet_aton): Update comment.
3780
3781 2019-01-18 Florian Weimer <fweimer@redhat.com>
3782
3783 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3784 ("malloc: Use current (C11-style) atomics for fastbin access").
3785 This commit introduces a substantial performance regression on
3786 POWER and Aarch64.
3787 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3788 (REMOVE_FB): Define.
3789 (_int_malloc): Use it and reindent.
3790 (_int_free): Use CAS loop with
3791 catomic_compare_and_exchange_val_rel.
3792 (malloc_consolidate): Use atomic_exchange_acq.
3793
3794
3795 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3796
3797 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3798 -Wl,-z,now.
3799 (LDFLAGS-tst-minsigstksz-2): Likewise.
3800 (LDFLAGS-tst-minsigstksz-3): Likewise.
3801 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3802 (LDFLAGS-tst-minsigstksz-4): Likewise.
3803
3804 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3805
3806 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3807 than "alternate".
3808
3809 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3810
3811 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3812
3813 2019-01-16 Zack Weinberg <zackw@panix.com>
3814
3815 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3816 (xget_sigstack_location): New test support functions.
3817 * support/xsigstack.c: New file, implementing them.
3818 * support/tst-xsigstack.c: New test for them.
3819 * support/Makefile: Update.
3820
3821 * signal/tst-minsigstksz-1.c
3822 * signal/tst-minsigstksz-2.c
3823 * signal/tst-minsigstksz-3.c
3824 * signal/tst-minsigstksz-3a.c
3825 * signal/tst-minsigstksz-4.c: New tests.
3826 * signal/Makefile: Run them.
3827
3828 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3829
3830 * po/libc.pot: Regenerate.
3831
3832 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3833
3834 * math/libm-test-fma.inc (fma_test_data): Set
3835 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3836
3837 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3838
3839 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3840 (do_test): Changed __vector __int128_t to __vector unsigned int.
3841
3842 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3843
3844 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3845 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3846 stpcpy-avx2 and stpncpy-avx2.
3847 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3848 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3849 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3850 and __stpncpy_avx2.
3851 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3852 ifunc-strcpy.h}: rename header for a more generic name.
3853 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3854 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3855 AVX unaligned load is fast and vzeroupper is preferred.
3856 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3857 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3858 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3859 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3860 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3861 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3862
3863 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3864
3865 * argp/argp-help.c: Fix typo in comment.
3866 * misc/sys/cdefs.h: Likewise.
3867 * posix/regexec.c (sift_states_iter_mb): Likewise.
3868 * socket/sockatmark.c: Likewise.
3869 * socket/sys/socket.h: Likewise.
3870 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3871 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3872 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3873 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3874 * sysdeps/unix/sockatmark.c: Likewise.
3875 * time/strptime_l.c: Likewise.
3876
3877 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3878
3879 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3880 missing space after the cast of "_NL_CURRENT".
3881
3882 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3883
3884 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3885 ifdef to fix read of VSCR.
3886 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3887 tst-ucontext-ppc64-vscr.c to test list.
3888 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3889
3890 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3891
3892 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3893 fall-through.
3894
3895 2019-01-09 Jim Wilson <jimw@sifive.com>
3896
3897 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3898
3899 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3900
3901 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3902 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3903 __memcpy_falkor for ares.
3904 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3905 Add new define.
3906 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3907 Add ares cpu.
3908
3909 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3910
3911 [BZ #24066]
3912 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3913 4_FP_W_TYPEs are used for IEEE quad precision.
3914 * soft-fp/extendhftf2.c: Likewise.
3915 * soft-fp/extendsftf2.c: Likewise.
3916 * soft-fp/extendxftf2.c: Likewise.
3917 * soft-fp/trunctfdf2.c: Likewise.
3918 * soft-fp/trunctfhf2.c: Likewise.
3919 * soft-fp/trunctfsf2.c: Likewise.
3920 * soft-fp/trunctfxf2.c: Likewise.
3921 * sysdeps/alpha/ots_cvttx.c: Likewise.
3922 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3923 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3924 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3925 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3926 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3927 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3928 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3929 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3930 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3931 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3932 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3933 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3934 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3935 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3936 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3937 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3938 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3939
3940 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3941
3942 [BZ #24024]
3943 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3944 code with -fmath-errno.
3945 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3946 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3947 * string/test-strerror-errno.c: New file.
3948
3949 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3950
3951 [BZ #24046]
3952 * localedata/locales/en_US (date_fmt): Add, set to
3953 "%a %d %b %Y %r %Z".
3954
3955 2019-01-07 Florian Weimer <fweimer@redhat.com>
3956
3957 [BZ #24063]
3958 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3959 instead of @var{errno}.
3960 (Parsing of Integers): Likewise.
3961 (Parsing of Floats): Likewise.
3962 * manual/filesys.texi (Working with Directory Trees): Likewise.
3963 (Temporary Files): Likewise.
3964 * manual/job.texi (Terminal Access Functions): Likewise.
3965 * manual/llio.texi (Synchronizing I/O): Likewise.
3966 * manual/math.texi (SVID Random): Likewise.
3967 * manual/message.texi (The catgets Functions): Likewise.
3968 (Translation with gettext): Likewise.
3969 (Locating gettext catalog): Likewise.
3970 (Charset conversion in gettext): Likewise.
3971 * manual/nss.texi (NSS Module Function Internals): Likewise.
3972 * manual/search.texi (Hash Search Function): Likewise.
3973 * manual/setjmp.texi (System V contexts): Likewise.
3974 * manual/time.texi (Sleeping): Likewise.
3975 * manual/users.texi (Lookup User): Likewise.
3976 (Lookup Group): Likewise.
3977
3978 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3979
3980 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3981 fix typo.
3982
3983 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3984
3985 [BZ #19444]
3986 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3987 __builtin_unreachable for default case in switch.
3988 (__ieee754_yn): Likewise.
3989 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3990 (__ieee754_ynl): Likewise.
3991 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3992 (__ieee754_ynl): Likewise.
3993 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3994 (__ieee754_ynl): Likewise.
3995
3996 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3997
3998 * manual/maint.texi: Use @{ and @}.
3999
4000 2019-01-04 Florian Weimer <fweimer@redhat.com>
4001
4002 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
4003 function.
4004 (do_in_chroot_1): Call it.
4005 (run_chroot_tests):
4006 Improve error reporting in case it is not possible to create a
4007 collision for the PTY name required by the test.
4008
4009 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4010
4011 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
4012 lll_wait_tid with timeout.
4013 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
4014 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
4015 futex_reltimed_wait_cancelable for cancelabla mode.
4016 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
4017 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
4018 macros.
4019 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
4020 * sysdeps/posix/waitid.c (__sigwait): Likewise.
4021 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
4022 SYSCALL_CANCEL_NCS): New macro.
4023 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
4024 (lll_timedwait_tid): Remove macro.
4025 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
4026 Likewise.
4027 (lll_timedwait_tid): Likewise.
4028 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
4029 Likewise.
4030 (lll_timedwait_tid): Likewise.
4031 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
4032 Likewise.
4033 (lll_timedwait_tid): Likewise.
4034 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
4035 Use INTERNAL_SYSCALL_CANCEL.
4036 * sysdeps/unix/sysv/linux/futex-internal.h
4037 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
4038 instead of __pthread_{enable,disable}_asynccancel.
4039 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
4040 (lll_futex_wait_cancel): New macro.
4041
4042 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4043 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4044
4045 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
4046 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
4047
4048 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
4049 in backtrace analysis.
4050 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
4051 side-effects.
4052 (tf_send): Likewise.
4053
4054 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
4055 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
4056 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
4057 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
4058 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4059 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
4060 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4061 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4062 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4063 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4064 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4065 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4066 Likewise.
4067 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4068 tst-cancel-wrappers.sh.
4069 (generated): Remove tst-cancel-wrappers.out.
4070 (tst-cancel-wrappers.out): Remove rule.
4071 * nptl/tst-cancel-wrappers.sh: Remove file.
4072
4073 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4074
4075 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4076 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4077 Update.
4078
4079 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4080
4081 [BZ #23640]
4082 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4083 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4084 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4085 close-on-exec reset for adddup2 file action.
4086 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4087
4088 2019-01-03 Zack Weinberg <zackw@panix.com>
4089
4090 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4091 parameter. Only use deprecated scanf when __USE_GNU is defined
4092 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4093 than 201103L, whichever is relevant for the language being compiled.
4094
4095 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4096 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4097 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4098 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4099 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4100
4101 * libio/iovsscanf.c
4102 * libio/fwscanf.c
4103 * libio/iovswscanf.c
4104 * libio/swscanf.c
4105 * libio/vscanf.c
4106 * libio/vwscanf.c
4107 * libio/wscanf.c
4108 * stdio-common/fscanf.c
4109 * stdio-common/scanf.c
4110 * stdio-common/vfscanf.c
4111 * stdio-common/vfwscanf.c
4112 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4113 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4114 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4115 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4116 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4117 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4118 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4119 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4120 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4121 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4122 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4123 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4124 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4125 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4126 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4127
4128 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4129 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4130 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4131 not sscanf.
4132 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4133 with a preprocessor macro.
4134
4135 * stdio-common/bug21.c, stdio-common/scanf14.c:
4136 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4137 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4138 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4139 to xscanf, xfscanf, xsscanf.
4140
4141 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4142 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4143 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4144 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4145 xfscanf, xsscanf.
4146 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4147 override feature selection macros or provide definitions of u_char etc.
4148 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4149 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4150 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4151 with -std=gnu89.
4152
4153 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4154
4155 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4156 bits/termios-misc.h.
4157 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4158 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4159 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4160 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4161 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4162 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4163
4164 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4165 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4166 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4167 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4168 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4169 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4170 termios-misc.h.
4171 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4172 (sysdep_headers): Add termios-misc.h.
4173
4174 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4175 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4176 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4177
4178 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4179 termios-tcflow.h.
4180 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4181 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4182 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4183 TCSAFLUSH): Move to termios-tcflow.h.
4184 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4185 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4186 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4187 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4188
4189 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4190 termios-c_lflag.h.
4191 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4192 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4193 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4194 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4195 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4196 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4197 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4198 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4199 Likewise.
4200 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4201 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4202 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4203 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4204
4205 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4206 termios-c_cflag.h.
4207 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4208 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4209 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4210 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4211 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4212 termios-c_cflag.h.
4213 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4214 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4215 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4216 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4217
4218 [BZ #23783]
4219 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4220 termios-baud.h.
4221 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4222 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4223 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4224 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4225 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4226 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4227 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4228 __MAX_BAUD): Move to termios-baud.h.
4229 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4230 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4231 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4232 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4233 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4234
4235 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4236 termios-c_oflag.h.
4237 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4238 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4239 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4240 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4241 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4242 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4243 termios-c_oflag.h.
4244 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4245 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4246 FFR1): Likewise.
4247 [USE_MISC] (XTABS): Likewise.
4248 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4249 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4250 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4251 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4252
4253 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4254 termios-c_iflag.h.
4255 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4256 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4257 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4258 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4259 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4260 IUTF8): Move to termios-c_iflag.h.
4261 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4262 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4263 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4264 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4265
4266 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4267 termios-cc.h.
4268 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4269 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4270 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4271 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4272 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4273 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4274 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4275 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4276 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4277 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4278 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4279 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4280
4281 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4282 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4283 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4284 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4285 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4286 termios-struct.h.
4287 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4288 termios-struct.h.
4289 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4290 Likewise.
4291 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4292 Likewise.
4293 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4294 Likewise.
4295 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4296 Likewise.
4297 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4298 _HAVE_C_OSPEED): Define.
4299 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4300 _HAVE_C_OSPEED): Likewise.
4301 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4302 _HAVE_C_OSPEED): Likewise.
4303 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4304 (cfsetospeed): Check for define value instead of existence.
4305 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4306 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4307 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4308 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4309 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4310
4311 [BZ #17783]
4312 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4313 Define.
4314 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4315 (TIOCSER_TEMT): Likewise.
4316 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4317 (TEOCSER_TEMT): Likewise.
4318
4319 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4320
4321 [BZ #24011]
4322 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4323
4324 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4325
4326 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4327
4328 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4329
4330 * sysdeps/htl/pt-barrierattr-setpshared.c
4331 (pthread_barrierattr_setpshared): Add stub warning.
4332 * sysdeps/htl/pt-condattr-setpshared.c
4333 (pthread_condattr_setpshared): Likewise.
4334 * sysdeps/htl/pt-mutexattr-setpshared.c
4335 (pthread_mutexattr_setpshared): Likewise.
4336 * sysdeps/htl/pt-rwlockattr-setpshared.c
4337 (pthread_rwlockattr_setpshared): Likewise.
4338 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4339 (pthread_mutexattr_setpshared): Likewise.
4340
4341 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4342
4343 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4344 constants to match with Linux 4.20.
4345
4346 * sysdeps/mips/mips32/libm-test-ulps: Update.
4347 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4348
4349 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4350
4351 [BZ #24034]
4352 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4353 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4354 than __typeof (...) for the a_ptr variable.
4355
4356 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4357
4358 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4359 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4360 * libio/Makefile (tests): Add tst-sprintf-ub and
4361 tst-sprintf-chk-ub.
4362 (CFLAGS-tst-sprintf-ub.c): New variable.
4363 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4364 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4365 destination buffer and check for overflows in fortified mode.
4366 * libio/libioP.h (PRINTF_CHK): New macro.
4367 * libio/tst-sprintf-chk-ub.c: New file.
4368 * libio/tst-sprintf-ub.c: Likewise.
4369
4370 2019-01-02 Florian Weimer <fweimer@redhat.com>
4371
4372 [BZ #24018]
4373 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4374 failure.
4375
4376 2019-01-02 Florian Weimer <fweimer@redhat.com>
4377
4378 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4379
4380 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4381
4382 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4383 macro.
4384
4385 * sysdeps/unix/sysv/linux/netpacket/packet.h
4386 (PACKET_IGNORE_OUTGOING): New macro.
4387
4388 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4389 macro.
4390
4391 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4392 version to 4.20.
4393 (riscv_flush_icache): New syscall.
4394
4395 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4396 trailing whitespace removed.
4397 * scripts/config.guess: Update to version 2019-01-01.
4398 * scripts/config.sub: Update to version 2019-01-01.
4399 * scripts/move-if-change: Update from gnulib.
4400
4401 * NEWS: Update copyright dates.
4402 * catgets/gencat.c (print_version): Likewise.
4403 * csu/version.c (banner): Likewise.
4404 * debug/catchsegv.sh: Likewise.
4405 * debug/pcprofiledump.c (print_version): Likewise.
4406 * debug/xtrace.sh (do_version): Likewise.
4407 * elf/ldconfig.c (print_version): Likewise.
4408 * elf/ldd.bash.in: Likewise.
4409 * elf/pldd.c (print_version): Likewise.
4410 * elf/sotruss.sh: Likewise.
4411 * elf/sprof.c (print_version): Likewise.
4412 * iconv/iconv_prog.c (print_version): Likewise.
4413 * iconv/iconvconfig.c (print_version): Likewise.
4414 * locale/programs/locale.c (print_version): Likewise.
4415 * locale/programs/localedef.c (print_version): Likewise.
4416 * login/programs/pt_chown.c (print_version): Likewise.
4417 * malloc/memusage.sh (do_version): Likewise.
4418 * malloc/memusagestat.c (print_version): Likewise.
4419 * malloc/mtrace.pl: Likewise.
4420 * manual/libc.texinfo: Likewise.
4421 * nptl/version.c (banner): Likewise.
4422 * nscd/nscd.c (print_version): Likewise.
4423 * nss/getent.c (print_version): Likewise.
4424 * nss/makedb.c (print_version): Likewise.
4425 * posix/getconf.c (main): Likewise.
4426 * scripts/test-installation.pl: Likewise.
4427 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4428
4429 * All files with FSF copyright notices: Update copyright dates
4430 using scripts/update-copyrights.
4431 * locale/programs/charmap-kw.h: Regenerated.
4432 * locale/programs/locfile-kw.h: Likewise.
4433
4434 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4435
4436 * timezone/zdump.c: Update from tzcode 2018i.
4437 * timezone/zic.c: Likewise.
4438
4439 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4440
4441 regex: improve Gnulib port to AIX
4442 From the glibc point of view, this removes duplicate macro
4443 definitions and is obviously safe.
4444 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4445 * posix/regex_internal.h:
4446 (__attribute__, __attribute_warn_unused_result__):
4447 Remove; already defined elsewhere.
4448
4449 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4450
4451 [BZ #24027]
4452 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4453 copying operation. (ncopies had the wrong type, resulting in an
4454 integer wraparound and too few elements being copied.)
4455
4456 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4457
4458 [BZ #24022]
4459 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4460 <asm/syscalls.h> exists with __has_include__ before including it.
4461
4462 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4463
4464 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4465 version to 4.20.
4466
4467 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4468
4469 * hurd/lookup-retry: Include <unistd.h>.
4470 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4471 Release it on return. Handle "pid" magical lookup retry.
4472
4473 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4474
4475 [BZ #10496]
4476 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4477 (t_fmt_ampm): Likewise.
4478 * localedata/locales/aa_ER (t_fmt): Likewise.
4479 (t_fmt_ampm): Likewise.
4480 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4481 (t_fmt_ampm): Likewise.
4482 * localedata/locales/aa_ET (t_fmt): Likewise.
4483 (t_fmt_ampm): Likewise.
4484 * localedata/locales/am_ET (t_fmt): Likewise.
4485 (t_fmt_ampm): Likewise.
4486 * localedata/locales/byn_ER (t_fmt): Likewise.
4487 (t_fmt_ampm): Likewise.
4488 * localedata/locales/om_ET (t_fmt): Likewise.
4489 (t_fmt_ampm): Likewise.
4490 * localedata/locales/sid_ET (t_fmt): Likewise.
4491 (t_fmt_ampm): Likewise.
4492 * localedata/locales/so_DJ (t_fmt): Likewise.
4493 (t_fmt_ampm): Likewise.
4494 * localedata/locales/so_ET (t_fmt): Likewise.
4495 (t_fmt_ampm): Likewise.
4496 * localedata/locales/so_SO (t_fmt): Likewise.
4497 (t_fmt_ampm): Likewise.
4498 * localedata/locales/ti_ER (t_fmt): Likewise.
4499 (t_fmt_ampm): Likewise.
4500 * localedata/locales/ti_ET (t_fmt): Likewise.
4501 (t_fmt_ampm): Likewise.
4502 * localedata/locales/tig_ER (t_fmt): Likewise.
4503 (t_fmt_ampm): Likewise.
4504 * localedata/locales/wal_ET (t_fmt): Likewise.
4505 (t_fmt_ampm): Likewise.
4506
4507 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4508 * localedata/locales/ar_IN (t_fmt): Likewise.
4509 * localedata/locales/bhb_IN (t_fmt): Likewise.
4510 * localedata/locales/bho_IN (t_fmt): Likewise.
4511 * localedata/locales/bi_VU (t_fmt): Likewise.
4512 * localedata/locales/bn_BD (t_fmt): Likewise.
4513 * localedata/locales/bn_IN (t_fmt): Likewise.
4514 * localedata/locales/brx_IN (t_fmt): Likewise.
4515 * localedata/locales/doi_IN (t_fmt): Likewise.
4516 * localedata/locales/en_HK (t_fmt): Likewise.
4517 (t_fmt_ampm): Likewise.
4518 * localedata/locales/en_IN (t_fmt): Likewise.
4519 * localedata/locales/en_PH (t_fmt): Likewise.
4520 * localedata/locales/gu_IN (t_fmt): Likewise.
4521 * localedata/locales/hi_IN (t_fmt): Likewise.
4522 * localedata/locales/hif_FJ (t_fmt): Likewise.
4523 * localedata/locales/hne_IN (t_fmt): Likewise.
4524 * localedata/locales/kn_IN (t_fmt): Likewise.
4525 * localedata/locales/kok_IN (t_fmt): Likewise.
4526 * localedata/locales/ks_IN (t_fmt): Likewise.
4527 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4528 * localedata/locales/mag_IN (t_fmt): Likewise.
4529 * localedata/locales/mai_IN (t_fmt): Likewise.
4530 * localedata/locales/mjw_IN (t_fmt): Likewise.
4531 * localedata/locales/ml_IN (t_fmt): Likewise.
4532 * localedata/locales/mni_IN (t_fmt): Likewise.
4533 * localedata/locales/mr_IN (t_fmt): Likewise.
4534 * localedata/locales/ms_MY (t_fmt): Likewise.
4535 * localedata/locales/pa_IN (t_fmt): Likewise.
4536 * localedata/locales/raj_IN (t_fmt): Likewise.
4537 * localedata/locales/sa_IN (t_fmt): Likewise.
4538 * localedata/locales/sat_IN (t_fmt): Likewise.
4539 * localedata/locales/sd_IN (t_fmt): Likewise.
4540 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4541 * localedata/locales/tcy_IN (t_fmt): Likewise.
4542 * localedata/locales/the_NP (t_fmt): Likewise.
4543 * localedata/locales/to_TO (t_fmt): Likewise.
4544 * localedata/locales/ur_IN (t_fmt): Likewise.
4545
4546 * localedata/locales/hif_FJ (d_t_fmt): Set to
4547 "%A %d %b %Y %I:%M:%S %p".
4548 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4549
4550 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4551 * localedata/locales/ar_BH (t_fmt): Likewise.
4552 * localedata/locales/ar_DZ (t_fmt): Likewise.
4553 * localedata/locales/ar_EG (t_fmt): Likewise.
4554 * localedata/locales/ar_IQ (t_fmt): Likewise.
4555 * localedata/locales/ar_JO (t_fmt): Likewise.
4556 * localedata/locales/ar_KW (t_fmt): Likewise.
4557 * localedata/locales/ar_LB (t_fmt): Likewise.
4558 * localedata/locales/ar_LY (t_fmt): Likewise.
4559 * localedata/locales/ar_OM (t_fmt): Likewise.
4560 * localedata/locales/ar_QA (t_fmt): Likewise.
4561 * localedata/locales/ar_SD (t_fmt): Likewise.
4562 * localedata/locales/ar_SS (t_fmt): Likewise.
4563 * localedata/locales/ar_SY (t_fmt): Likewise.
4564 * localedata/locales/ar_TN (t_fmt): Likewise.
4565 * localedata/locales/ar_YE (t_fmt): Likewise.
4566
4567 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4568 (t_fmt_ampm): Likewise.
4569 * localedata/locales/gez_ET (t_fmt): Likewise.
4570 (t_fmt_ampm): Likewise.
4571
4572 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4573 (t_fmt_ampm): Likewise.
4574 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4575
4576 * localedata/locales/zh_HK (t_fmt):
4577 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4578
4579 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4580 because this locale does not use the 12-hour clock.
4581 (t_fmt): Set to "%Z %H:%M:%S".
4582 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4583
4584 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4585 because this locale does not use the 12-hour clock.
4586 (t_fmt): Set to "%H:%M:%S %Z".
4587 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4588
4589 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4590 because this locale does not use the 12-hour clock.
4591 (t_fmt): Set to "%T".
4592 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4593 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4594
4595 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4596 because this locale does not use the 12-hour clock.
4597 (t_fmt): Set to "%H:%M:%S %Z".
4598 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4599
4600 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4601 because this locale does not use the 12-hour clock.
4602 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4603 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4604
4605 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4606
4607 [BZ #10496]
4608 [BZ #23724]
4609 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4610 (t_fmt_ampm): Likewise.
4611 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4612 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4613 (d_fmt): Set to "%-d.%-m.%y".
4614
4615 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4616
4617 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4618 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4619 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4620 Likewise.
4621 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4622 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4623 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4624 function.
4625 * support/blob_repeat.c (check_mul_overflow_size_t,
4626 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4627
4628 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4629
4630 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4631
4632 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4633
4634 regex: simplify Gnulib port
4635 This simplifies the code, by removing stuff intended for porting
4636 to Gnulib but no longer needed there.
4637 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4638 uses of libc_hidden_def, weak_alias.
4639 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4640 _Restrict_ except for public-facing headers.
4641 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4642 Remove; already defined elsewhere.
4643 * posix/regex.c, posix/regex_internal.h:
4644 Use __GNUC_PREREQ instead of rolling our own.
4645 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4646
4647 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4648
4649 * benchtests/bench-strlen.c (generic_strlen): New function.
4650 (memchr_strlen): New function.
4651
4652 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4653
4654 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4655 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4656 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4657
4658 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4659
4660 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4661
4662 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4663
4664 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4665 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4666 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4667 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4668 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4669 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4670 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4671
4672 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4673
4674 [BZ #24023]
4675 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4676 PLT reference in libc.so.
4677 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4678 _Q_lltoq and _Q_qtod PLT references in libc.so.
4679
4680 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4681
4682 * benchtests/bench-memchr.c: Cleanup defines.
4683 * benchtests/bench-memcmp.c: Likewise.
4684 * benchtests/bench-memset.c: Likewise.
4685 * benchtests/bench-memset-large.c: Likewise.
4686 * benchtests/bench-memset-walk.c: Likewise.
4687 * benchtests/bench-stpcpy.c: Likewise.
4688 * benchtests/bench-stpncpy.c: Likewise.
4689 * benchtests/bench-strcat.c: Likewise.
4690 * benchtests/bench-strchr.c: Likewise.
4691 * benchtests/bench-strcmp.c: Likewise.
4692 * benchtests/bench-strcpy.c: Likewise.
4693 * benchtests/bench-strcspn.c: Likewise.
4694 * benchtests/bench-string.h: Likewise.
4695 * benchtests/bench-strlen.c: Likewise.
4696 * benchtests/bench-strncat.c: Likewise.
4697 * benchtests/bench-strncmp.c: Likewise.
4698 * benchtests/bench-strncpy.c: Likewise.
4699 * benchtests/bench-strnlen.c: Likewise.
4700 * benchtests/bench-strpbrk.c: Likewise.
4701 * benchtests/bench-strrchr.c: Likewise.
4702 * benchtests/bench-strspn.c: Likewise.
4703
4704 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4705
4706 * stdlib/longlong.h: Update from GCC.
4707
4708 [BZ #23993]
4709 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4710 * configure: Regenerated.
4711 * manual/install.texi (Tools for Compilation): Update minimum GCC
4712 version.
4713 * INSTALL: Regenerated.
4714
4715 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4716
4717 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4718
4719 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4720
4721 * malloc/malloc.c (mremap_chunk): Additional checks.
4722
4723 2018-12-21 Mao Han <han_mao@c-sky.com>
4724
4725 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4726 * scripts/build-many-glibcs.py: Add C-SKY targets.
4727 * sysdeps/csky/Implies: New file.
4728 * sysdeps/csky/Makefile: Likewise.
4729 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4730 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4731 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4732 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4733 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4734 * sysdeps/csky/abiv2/memmove.S: Likewise.
4735 * sysdeps/csky/abiv2/memset.S: Likewise.
4736 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4737 * sysdeps/csky/abiv2/start.S: Likewise.
4738 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4739 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4740 * sysdeps/csky/abiv2/strlen.S: Likewise.
4741 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4742 * sysdeps/csky/abort-instr.h: Likewise.
4743 * sysdeps/csky/atomic-machine.h: Likewise.
4744 * sysdeps/csky/bits/endian.h: Likewise.
4745 * sysdeps/csky/bits/fenv.h: Likewise.
4746 * sysdeps/csky/bits/link.h: Likewise.
4747 * sysdeps/csky/bits/setjmp.h: Likewise.
4748 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4749 * sysdeps/csky/bsd-setjmp.S: Likewise.
4750 * sysdeps/csky/configure: Likewise.
4751 * sysdeps/csky/configure.ac: Likewise.
4752 * sysdeps/csky/dl-machine.h: Likewise.
4753 * sysdeps/csky/dl-procinfo.c: Likewise.
4754 * sysdeps/csky/dl-procinfo.h: Likewise.
4755 * sysdeps/csky/dl-sysdep.h: Likewise.
4756 * sysdeps/csky/dl-tls.h: Likewise.
4757 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4758 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4759 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4760 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4761 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4762 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4763 * sysdeps/csky/fpu/fegetround.c: Likewise.
4764 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4765 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4766 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4767 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4768 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4769 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4770 * sysdeps/csky/fpu/fesetround.c: Likewise.
4771 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4772 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4773 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4774 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4775 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4776 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4777 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4778 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4779 * sysdeps/csky/fpu_control.h: Likewise.
4780 * sysdeps/csky/gccframe.h: Likewise.
4781 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4782 * sysdeps/csky/ldsodefs.h: Likewise.
4783 * sysdeps/csky/libc-tls.c: Likewise.
4784 * sysdeps/csky/linkmap.h: Likewise.
4785 * sysdeps/csky/machine-gmon.h: Likewise.
4786 * sysdeps/csky/memusage.h: Likewise.
4787 * sysdeps/csky/nofpu/Implies: Likewise.
4788 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4789 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4790 * sysdeps/csky/nptl/Makefile: Likewise.
4791 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4792 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4793 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4794 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4795 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4796 * sysdeps/csky/nptl/tls.h: Likewise.
4797 * sysdeps/csky/preconfigure: Likewise.
4798 * sysdeps/csky/sfp-machine.h: Likewise.
4799 * sysdeps/csky/sotruss-lib.c: Likewise.
4800 * sysdeps/csky/stackinfo.h: Likewise.
4801 * sysdeps/csky/sysdep.h: Likewise.
4802 * sysdeps/csky/tininess.h: Likewise.
4803 * sysdeps/csky/tst-audit.h: Likewise.
4804 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4805 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4806 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4807 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4808 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4809 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4810 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4811 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4812 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4813 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4814 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4815 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4816 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4817 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4818 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4819 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4820 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4821 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4822 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4823 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4824 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4825 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4826 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4827 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4828 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4829 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4830 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4831 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4832 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4833 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4834 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4835 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4836 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4837 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4838 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4839 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4840 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4841 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4842 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4843 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4844 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4845 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4846 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4847 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4848
4849 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4850
4851 * include/time.h (__difftime64): Add.
4852 * time/difftime.c (subtract): convert to 64-bit time.
4853 * time/difftime.c (__difftime64): Add.
4854 * time/difftime.c (__difftime): Wrap around __difftime64.
4855
4856 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4857
4858 * manual/examples/add.c: Remove redundant "if not".
4859 * manual/examples/argp-ex1.c: Likewise.
4860 * manual/examples/argp-ex2.c: Likewise.
4861 * manual/examples/argp-ex3.c: Likewise.
4862 * manual/examples/argp-ex4.c: Likewise.
4863 * manual/examples/atexit.c: Likewise.
4864 * manual/examples/db.c: Likewise.
4865 * manual/examples/dir.c: Likewise.
4866 * manual/examples/dir2.c: Likewise.
4867 * manual/examples/execinfo.c: Likewise.
4868 * manual/examples/filecli.c: Likewise.
4869 * manual/examples/filesrv.c: Likewise.
4870 * manual/examples/fmtmsgexpl.c: Likewise.
4871 * manual/examples/genpass.c: Likewise.
4872 * manual/examples/inetcli.c: Likewise.
4873 * manual/examples/inetsrv.c: Likewise.
4874 * manual/examples/isockad.c: Likewise.
4875 * manual/examples/longopt.c: Likewise.
4876 * manual/examples/memopen.c: Likewise.
4877 * manual/examples/memstrm.c: Likewise.
4878 * manual/examples/mkdirent.c: Likewise.
4879 * manual/examples/mkfsock.c: Likewise.
4880 * manual/examples/mkisock.c: Likewise.
4881 * manual/examples/mygetpass.c: Likewise.
4882 * manual/examples/pipe.c: Likewise.
4883 * manual/examples/popen.c: Likewise.
4884 * manual/examples/rprintf.c: Likewise.
4885 * manual/examples/search.c: Likewise.
4886 * manual/examples/select.c: Likewise.
4887 * manual/examples/setjmp.c: Likewise.
4888 * manual/examples/sigh1.c: Likewise.
4889 * manual/examples/sigusr.c: Likewise.
4890 * manual/examples/stpcpy.c: Likewise.
4891 * manual/examples/strdupa.c: Likewise.
4892 * manual/examples/strftim.c: Likewise.
4893 * manual/examples/subopt.c: Likewise.
4894 * manual/examples/swapcontext.c: Likewise.
4895 * manual/examples/termios.c: Likewise.
4896 * manual/examples/testopt.c: Likewise.
4897 * manual/examples/testpass.c: Likewise.
4898 * manual/examples/timeval_subtract.c: Likewise.
4899
4900 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4901
4902 * sysdeps/x86/fpu/math_private.h: New file.
4903 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4904
4905 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4906 definition.
4907 (cosh): Likewise.
4908 (tanh): Likewise.
4909
4910 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4911
4912 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4913 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4914 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4915 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4916 fields.
4917 (_dl_show_auxv): Give a special treatment to
4918 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4919 and AT_L3_CACHEGEOMETRY.
4920 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4921 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4922 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4923 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4924
4925 2018-12-19 Andreas Schwab <schwab@suse.de>
4926
4927 * nscd/connections.c (check_use): Don't abort on invalid len.
4928
4929 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4930
4931 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4932 values in the 64bit value cases.
4933
4934 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4935
4936 * include/time.h
4937 (__ctime64_r): Add.
4938 * time/ctime_r.c
4939 (__ctime64_r): Add.
4940 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4941
4942 * include/time.h
4943 (__ctime64): Add.
4944 * time/gmtime.c
4945 (__ctime64): Add.
4946 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4947
4948 * include/time.h
4949 (__gmtime64_r): Add.
4950 * time/gmtime.c
4951 (__gmtime64_r): Add.
4952 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4953
4954 * include/time.h
4955 (__gmtime64): Add.
4956 * time/gmtime.c
4957 (__gmtime64): Add.
4958 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4959
4960 * include/time.h
4961 (__localtime64_r): Add.
4962 * time/localtime.c
4963 (__localtime64_r): Add.
4964 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4965
4966 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4967
4968 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4969 kernel_sigction definition.
4970
4971 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4972
4973 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4974
4975 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4976 __syscall_rt_sigaction.
4977 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4978 (kernel_sigaction): Use Linux generic defintion.
4979 (STUB): Define.
4980 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4981 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4982 (__syscall_rt_sigaction): Remove implementation.
4983 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4984 hidden.
4985 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4986 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4987 INTERNAL_SYSCALL): Remove definitions.
4988 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4989 action and signal set size.
4990 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4991 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4992
4993 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4994 James Clarke <jrtc27@jrtc27.com>
4995
4996 [BZ #23967]
4997 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4998 Define if SA_RESTORER is defined.
4999 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
5000 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
5001 already defined.
5002 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
5003 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
5004 definitions.
5005 (HAS_SA_RESTORER): Define.
5006 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
5007 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
5008 (HAS_SA_RESTORER): Define.
5009 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
5010 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
5011 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
5012 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
5013 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5014
5015 2018-12-18 Joseph Myers <joseph@codesourcery.com>
5016
5017 * sysdeps/unix/sysv/linux/kernel-features.h
5018 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
5019 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
5020 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
5021 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5022 (__ASSUME_ST_INO_64_BIT): Likewise.
5023 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
5024 <kernel-features.h>.
5025 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5026 Remove conditional code.
5027 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
5028 <kernel-features.h>.
5029 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5030 Remove conditional code.
5031 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
5032 <kernel-features.h>.
5033 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
5034 Remove conditional code.
5035 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
5036 <kernel-features.h>.
5037 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
5038 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
5039
5040 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5041
5042 * sysdeps/s390/multiarch/ifunc-resolve.h
5043 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
5044 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
5045 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
5046 Delete macro definition.
5047 (s390_libc_ifunc_init): Rename to
5048 s390_libc_ifunc_expr_stfle_init.
5049 * sysdeps/s390/bzero: Use
5050 s390_libc_ifunc_expr_stfle_init instead of
5051 s390_libc_ifunc_init.
5052 * sysdeps/s390/memcmp.c: Likewise.
5053 * sysdeps/s390/memcpy.c: Likewise.
5054 * sysdeps/s390/mempcpy.c: Likewise.
5055 * sysdeps/s390/memset.c: Likewise.
5056
5057 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5058
5059 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
5060 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5061
5062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5063
5064 * sysdeps/s390/multiarch/Makefile
5065 (sysdep_routines): Remove wmemcmp variants.
5066 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5067 * sysdeps/s390/multiarch/ifunc-impl-list.c
5068 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5069 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5070 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5071 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5072 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5073 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5074 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5075 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5076
5077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5078
5079 * sysdeps/s390/multiarch/Makefile
5080 (sysdep_routines): Remove wmemset variants.
5081 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5082 * sysdeps/s390/multiarch/ifunc-impl-list.c
5083 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5084 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5085 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5086 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5087 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5088 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5089 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5090 * sysdeps/s390/ifunc-wmemset.h: New file.
5091
5092 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5093
5094 * sysdeps/s390/multiarch/Makefile
5095 (sysdep_routines): Remove wmemchr variants.
5096 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5097 * sysdeps/s390/multiarch/ifunc-impl-list.c
5098 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5099 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5100 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5101 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5102 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5103 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5104 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5105 * sysdeps/s390/ifunc-wmemchr.h: New file.
5106
5107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5108
5109 * sysdeps/s390/multiarch/Makefile
5110 (sysdep_routines): Remove wcscspn variants.
5111 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5112 * sysdeps/s390/multiarch/ifunc-impl-list.c
5113 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5114 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5115 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5116 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5117 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5118 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5119 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5120 * sysdeps/s390/ifunc-wcscspn.h: New file.
5121
5122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5123
5124 * sysdeps/s390/multiarch/Makefile
5125 (sysdep_routines): Remove wcspbrk variants.
5126 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5127 * sysdeps/s390/multiarch/ifunc-impl-list.c
5128 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5129 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5130 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5131 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5132 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5133 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5134 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5135 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5136
5137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5138
5139 * sysdeps/s390/multiarch/Makefile
5140 (sysdep_routines): Remove wcsspn variants.
5141 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5142 * sysdeps/s390/multiarch/ifunc-impl-list.c
5143 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5144 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5145 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5146 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5147 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5148 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5149 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5150 * sysdeps/s390/ifunc-wcsspn.h: New file.
5151
5152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5153
5154 * sysdeps/s390/multiarch/Makefile
5155 (sysdep_routines): Remove wcsrchr variants.
5156 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5157 * sysdeps/s390/multiarch/ifunc-impl-list.c
5158 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5159 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5160 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5161 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5162 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5163 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5164 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5165 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5166
5167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5168
5169 * sysdeps/s390/multiarch/Makefile
5170 (sysdep_routines): Remove wcschrnul variants.
5171 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5172 * sysdeps/s390/multiarch/ifunc-impl-list.c
5173 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5174 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5175 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5176 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5177 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5178 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5179 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5180 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5181
5182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5183
5184 * sysdeps/s390/multiarch/Makefile
5185 (sysdep_routines): Remove wcschr variants.
5186 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5187 * sysdeps/s390/multiarch/ifunc-impl-list.c
5188 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5189 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5190 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5191 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5192 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5193 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5194 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5195 * sysdeps/s390/ifunc-wcschr.h: New file.
5196
5197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5198
5199 * sysdeps/s390/multiarch/Makefile
5200 (sysdep_routines): Remove wcsncmp variants.
5201 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5202 * sysdeps/s390/multiarch/ifunc-impl-list.c
5203 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5204 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5205 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5206 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5207 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5208 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5209 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5210 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5211
5212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5213
5214 * sysdeps/s390/multiarch/Makefile
5215 (sysdep_routines): Remove wcscmp variants.
5216 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5217 * sysdeps/s390/multiarch/ifunc-impl-list.c
5218 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5219 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5220 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5221 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5222 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5223 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5224 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5225 * sysdeps/s390/ifunc-wcscmp.h: New file.
5226
5227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5228
5229 * sysdeps/s390/multiarch/Makefile
5230 (sysdep_routines): Remove wcsncat variants.
5231 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5232 * sysdeps/s390/multiarch/ifunc-impl-list.c
5233 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5234 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5235 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5236 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5237 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5238 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5239 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5240 * sysdeps/s390/ifunc-wcsncat.h: New file.
5241
5242 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5243
5244 * sysdeps/s390/multiarch/Makefile
5245 (sysdep_routines): Remove wcscat variants.
5246 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5247 * sysdeps/s390/multiarch/ifunc-impl-list.c
5248 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5249 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5250 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5251 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5252 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5253 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5254 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5255 * sysdeps/s390/ifunc-wcscat.h: New file.
5256
5257 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5258
5259 * sysdeps/s390/multiarch/Makefile
5260 (sysdep_routines): Remove wcpncpy variants.
5261 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5262 * sysdeps/s390/multiarch/ifunc-impl-list.c
5263 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5264 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5265 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5266 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5267 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5268 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5269 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5270 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5271
5272 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5273
5274 * sysdeps/s390/multiarch/Makefile
5275 (sysdep_routines): Remove wcsncpy variants.
5276 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5277 * sysdeps/s390/multiarch/ifunc-impl-list.c
5278 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5279 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5280 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5281 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5282 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5283 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5284 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5285 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5286
5287 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5288
5289 * sysdeps/s390/multiarch/Makefile
5290 (sysdep_routines): Remove wcpcpy variants.
5291 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5292 * sysdeps/s390/multiarch/ifunc-impl-list.c
5293 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5294 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5295 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5296 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5297 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5298 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5299 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5300 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5301
5302 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5303
5304 * sysdeps/s390/multiarch/Makefile
5305 (sysdep_routines): Remove wcscpy variants.
5306 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5307 * sysdeps/s390/multiarch/ifunc-impl-list.c
5308 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5309 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5310 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5311 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5312 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5313 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5314 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5315 * sysdeps/s390/ifunc-wcscpy.h: New file.
5316
5317 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5318
5319 * sysdeps/s390/multiarch/Makefile
5320 (sysdep_routines): Remove wcsnlen variants.
5321 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5322 * sysdeps/s390/multiarch/ifunc-impl-list.c
5323 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5324 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5325 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5326 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5327 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5328 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5329 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5330 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5331
5332 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5333
5334 * sysdeps/s390/multiarch/Makefile
5335 (sysdep_routines): Remove wcslen variants.
5336 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5337 * sysdeps/s390/multiarch/ifunc-impl-list.c
5338 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5339 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5340 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5341 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5342 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5343 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5344 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5345 * sysdeps/s390/ifunc-wcslen.h: New file.
5346
5347 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5348
5349 * sysdeps/s390/multiarch/Makefile
5350 (sysdep_routines): Remove memrchr variants.
5351 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5352 * sysdeps/s390/multiarch/ifunc-impl-list.c
5353 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5354 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5355 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5356 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5357 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5358 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5359 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5360 * sysdeps/s390/ifunc-memrchr.h: New file.
5361
5362 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5363
5364 * sysdeps/s390/multiarch/Makefile
5365 (sysdep_routines): Remove memccpy variants.
5366 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5367 * sysdeps/s390/multiarch/ifunc-impl-list.c
5368 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5369 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5370 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5371 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5372 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5373 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5374 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5375 * sysdeps/s390/ifunc-memccpy.h: New file.
5376
5377 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5378
5379 * sysdeps/s390/multiarch/Makefile
5380 (sysdep_routines): Remove rawmemchr variants.
5381 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5382 * sysdeps/s390/multiarch/ifunc-impl-list.c
5383 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5384 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5385 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5386 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5387 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5388 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5389 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5390 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5391
5392 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5393
5394 * sysdeps/s390/multiarch/Makefile
5395 (sysdep_routines): Remove memchr variants.
5396 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5397 * sysdeps/s390/multiarch/ifunc-impl-list.c
5398 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5399 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5400 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5401 * sysdeps/s390/multiarch/memchr.c: Move to ...
5402 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5403 * sysdeps/s390/ifunc-memchr.h: New file.
5404 * sysdeps/s390/s390-64/memchr.S: Move to ...
5405 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5406 for 31/64bit and ifunc handling.
5407 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5408 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5409 * sysdeps/s390/s390-32/memchr.S: Likewise.
5410
5411 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5412
5413 * sysdeps/s390/multiarch/Makefile
5414 (sysdep_routines): Remove strcspn variants.
5415 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5416 * sysdeps/s390/multiarch/ifunc-impl-list.c
5417 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5418 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5419 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5420 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5421 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5422 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5423 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5424 * sysdeps/s390/ifunc-strcspn.h: New file.
5425
5426 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5427
5428 * sysdeps/s390/multiarch/Makefile
5429 (sysdep_routines): Remove strpbrk variants.
5430 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5431 * sysdeps/s390/multiarch/ifunc-impl-list.c
5432 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5433 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5434 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5435 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5436 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5437 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5438 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5439 * sysdeps/s390/ifunc-strpbrk.h: New file.
5440
5441 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5442
5443 * sysdeps/s390/multiarch/Makefile
5444 (sysdep_routines): Remove strspn variants.
5445 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5446 * sysdeps/s390/multiarch/ifunc-impl-list.c
5447 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5448 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5449 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5450 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5451 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5452 * sysdeps/s390/multiarch/strspn.c: Move to ...
5453 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5454 * sysdeps/s390/ifunc-strspn.h: New file.
5455
5456 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5457
5458 * sysdeps/s390/multiarch/Makefile
5459 (sysdep_routines): Remove strrchr variants.
5460 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5461 * sysdeps/s390/multiarch/ifunc-impl-list.c
5462 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5463 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5464 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5465 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5466 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5467 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5468 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5469 * sysdeps/s390/ifunc-strrchr.h: New file.
5470
5471 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5472
5473 * sysdeps/s390/multiarch/Makefile
5474 (sysdep_routines): Remove strchrnul variants.
5475 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5476 * sysdeps/s390/multiarch/ifunc-impl-list.c
5477 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5478 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5479 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5480 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5481 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5482 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5483 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5484 * sysdeps/s390/ifunc-strchrnul.h: New file.
5485
5486 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5487
5488 * sysdeps/s390/multiarch/Makefile
5489 (sysdep_routines): Remove strchr variants.
5490 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5491 * sysdeps/s390/multiarch/ifunc-impl-list.c
5492 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5493 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5494 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5495 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5496 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5497 * sysdeps/s390/multiarch/strchr.c: Move to ...
5498 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5499 * sysdeps/s390/ifunc-strchr.h: New file.
5500
5501 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5502
5503 * sysdeps/s390/multiarch/Makefile
5504 (sysdep_routines): Remove strncmp variants.
5505 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5506 * sysdeps/s390/multiarch/ifunc-impl-list.c
5507 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5508 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5509 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5510 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5511 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5512 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5513 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5514 * sysdeps/s390/ifunc-strncmp.h: New file.
5515
5516 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5517
5518 * sysdeps/s390/multiarch/Makefile
5519 (sysdep_routines): Remove strcmp variants.
5520 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5521 * sysdeps/s390/multiarch/ifunc-impl-list.c
5522 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5523 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5524 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5525 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5526 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5527 * sysdeps/s390/ifunc-strcmp.h: New file.
5528 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5529 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5530 for 31/64bit and ifunc handling.
5531 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5532 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5533 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5534
5535 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5536
5537 * sysdeps/s390/multiarch/Makefile
5538 (sysdep_routines): Remove strncat variants.
5539 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5540 * sysdeps/s390/multiarch/ifunc-impl-list.c
5541 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5542 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5543 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5544 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5545 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5546 * sysdeps/s390/multiarch/strncat.c: Move to ...
5547 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5548 * sysdeps/s390/ifunc-strncat.h: New file.
5549
5550 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5551
5552 * sysdeps/s390/multiarch/Makefile
5553 (sysdep_routines): Remove strcat variants.
5554 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5555 * sysdeps/s390/multiarch/ifunc-impl-list.c
5556 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5557 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5558 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5559 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5560 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5561 * sysdeps/s390/multiarch/strcat.c: Move to ...
5562 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5563 * sysdeps/s390/ifunc-strcat.h: New file.
5564
5565 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5566
5567 * sysdeps/s390/multiarch/Makefile
5568 (sysdep_routines): Remove stpncpy variants.
5569 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5570 * sysdeps/s390/multiarch/ifunc-impl-list.c
5571 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5572 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5573 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5574 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5575 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5576 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5577 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5578 * sysdeps/s390/ifunc-stpncpy.h: New file.
5579
5580 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5581
5582 * sysdeps/s390/multiarch/Makefile
5583 (sysdep_routines): Remove strncpy variants.
5584 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5585 * sysdeps/s390/multiarch/ifunc-impl-list.c
5586 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5587 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5588 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5589 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5590 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5591 * sysdeps/s390/ifunc-strncpy.h: New file.
5592 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5593 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5594 and adjust ifunc handling.
5595 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5596 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5597 and adjust ifunc handling.
5598 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5599 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5600
5601 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5602
5603 * sysdeps/s390/multiarch/Makefile
5604 (sysdep_routines): Remove stpcpy variants.
5605 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5606 * sysdeps/s390/multiarch/ifunc-impl-list.c
5607 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5608 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5609 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5610 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5611 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5612 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5613 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5614 * sysdeps/s390/ifunc-stpcpy.h: New file.
5615
5616 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5617
5618 * sysdeps/s390/multiarch/Makefile
5619 (sysdep_routines): Remove strcpy variants.
5620 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5621 * sysdeps/s390/multiarch/ifunc-impl-list.c
5622 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5623 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5624 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5625 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5626 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5627 * sysdeps/s390/ifunc-strcpy.h: New file.
5628 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5629 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5630 for 31/64bit and ifunc handling.
5631 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5632 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5633 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5634
5635 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5636
5637 * sysdeps/s390/multiarch/Makefile
5638 (sysdep_routines): Remove strnlen variants.
5639 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5640 * sysdeps/s390/multiarch/ifunc-impl-list.c
5641 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5642 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5643 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5644 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5645 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5646 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5647 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5648 * sysdeps/s390/ifunc-strnlen.h: New file.
5649
5650 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5651
5652 * sysdeps/s390/multiarch/Makefile
5653 (sysdep_routines): Remove strlen variants.
5654 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5655 * sysdeps/s390/multiarch/ifunc-impl-list.c
5656 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5657 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5658 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5659 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5660 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5661 * sysdeps/s390/multiarch/strlen.c: Move to ...
5662 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5663 * sysdeps/s390/ifunc-strlen.h: New file.
5664
5665 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5666
5667 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5668 * sysdeps/s390/multiarch/ifunc-impl-list.c
5669 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5670 * sysdeps/s390/ifunc-memmem.h: New file.
5671 * sysdeps/s390/memmem.c: Likewise.
5672 * sysdeps/s390/memmem-c.c: Likewise.
5673 * sysdeps/s390/memmem-vx.c: Likewise.
5674
5675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5676
5677 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5678 * sysdeps/s390/multiarch/ifunc-impl-list.c
5679 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5680 * sysdeps/s390/ifunc-strstr.h: New file.
5681 * sysdeps/s390/strstr.c: Likewise.
5682 * sysdeps/s390/strstr-c.c: Likewise.
5683 * sysdeps/s390/strstr-vx.c: Likewise.
5684
5685 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5686
5687 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5688 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5689 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5690 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5691 New defines.
5692 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5693 * sysdeps/s390/memmove-c.c: New file.
5694 * sysdeps/s390/memmove.c: Likewise.
5695 * sysdeps/s390/multiarch/ifunc-impl-list.c
5696 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5697
5698 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5699
5700 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5701 * sysdeps/s390/configure.ac: Add check for z13 support.
5702 * sysdeps/s390/configure: Regenerated.
5703
5704 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5705
5706 * sysdeps/s390/memcopy.h: New file.
5707
5708 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5709
5710 * sysdeps/s390/s390-32/bcopy.S: Remove.
5711 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5712
5713 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5714
5715 * sysdeps/s390/ifunc-memcpy.h: New File.
5716 * sysdeps/s390/memcpy.S: Move to ...
5717 * sysdeps/s390/memcpy-z900.S ... here.
5718 Move implementations from memcpy-s390x.s to here.
5719 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5720 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5721 Remove memcpy/mempcpy variants.
5722 * sysdeps/s390/Makefile (sysdep_routines):
5723 Add memcpy/mempcpy variants.
5724 * sysdeps/s390/multiarch/ifunc-impl-list.c
5725 (__libc_ifunc_impl_list): Adjust ifunc variants for
5726 memcpy and mempcpy.
5727 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5728 to ...
5729 * sysdeps/s390/memcpy.c: ... here.
5730 Adjust ifunc variants for memcpy.
5731 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5732 * sysdeps/s390/mempcpy.c: ... here.
5733 Adjust ifunc variants for mempcpy.
5734 * sysdeps/s390/mempcpy.S: Delete file.
5735
5736 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5737
5738 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5739 * sysdeps/s390/memcpy.S: ... here.
5740 Adjust to be usable for 31/64bit.
5741 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5742 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5743 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5744 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5745 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5746 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5747 Adjust to be usable for 31/64bit.
5748 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5749 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5750 * sysdeps/s390/multiarch/memcpy.c: ... here.
5751 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5752
5753 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5754
5755 * sysdeps/s390/ifunc-memcmp.h: New File.
5756 * sysdeps/s390/memcmp.S: Move to ...
5757 * sysdeps/s390/memcmp-z900.S ... here.
5758 Move implementations from memcmp-s390x.s to here.
5759 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5760 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5761 Remove memcmp variants.
5762 * sysdeps/s390/Makefile (sysdep_routines):
5763 Add memcmp variants.
5764 * sysdeps/s390/multiarch/ifunc-impl-list.c
5765 (__libc_ifunc_impl_list): Adjust ifunc variants for
5766 memcmp.
5767 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5768 to ...
5769 * sysdeps/s390/memcmp.c: ... here.
5770 Adjust ifunc variants for memcmp.
5771
5772 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5773
5774 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5775 * sysdeps/s390/memcmp.S: ... here.
5776 Adjust to be usable for 31/64bit.
5777 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5778 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5779 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5780 Remove memcmp.
5781 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5782 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5783 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5784 Adjust to be usable for 31/64bit.
5785 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5786 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5787 * sysdeps/s390/multiarch/memcmp.c: ... here.
5788 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5789
5790 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5791
5792 * sysdeps/s390/s390-32/bzero.S: Delete file.
5793 * sysdeps/s390/s390-64/bzero.S: Likewise.
5794 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5795 * sysdeps/s390/bzero.c: New file.
5796 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5797 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5798 * sysdeps/s390/multiarch/ifunc-impl-list.c
5799 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5800
5801 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5802
5803 * sysdeps/s390/ifunc-memset.h: New File.
5804 * sysdeps/s390/memset.S: Move to ...
5805 * sysdeps/s390/memset-z900.S ... here.
5806 Move implementations from memset-s390x.s to here.
5807 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5808 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5809 Remove memset variants.
5810 * sysdeps/s390/Makefile (sysdep_routines):
5811 Add memset variants.
5812 * sysdeps/s390/multiarch/ifunc-impl-list.c
5813 (__libc_ifunc_impl_list): Adjust ifunc variants for
5814 memset.
5815 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5816 to ...
5817 * sysdeps/s390/memset.c: ... here.
5818 Adjust ifunc variants for memset.
5819
5820 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5821
5822 * sysdeps/s390/s390-64/memset.S: Move to ...
5823 * sysdeps/s390/memset.S: ... here.
5824 Adjust to be usable for 31/64bit.
5825 * sysdeps/s390/s390-32/memset.S: Delete File.
5826 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5827 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5828 Remove memset.
5829 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5830 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5831 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5832 Adjust to be usable for 31/64bit.
5833 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5834 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5835 * sysdeps/s390/multiarch/memset.c: ... here.
5836 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5837
5838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5839
5840 * sysdeps/s390/multiarch/ifunc-resolve.h
5841 (s390_libc_ifunc_init, s390_libc_ifunc,
5842 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5843
5844 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5845
5846 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5847 * sysdeps/s390/configure.ac: Add check for z10 support.
5848 * sysdeps/s390/configure: Regenerated.
5849
5850 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5851
5852 * sysdeps/i386/atomic-machine.h: Merged with ...
5853 * sysdeps/x86_64/atomic-machine.h: To ...
5854 * sysdeps/x86/atomic-machine.h: This. New file.
5855
5856 2018-12-18 Florian Weimer <fweimer@redhat.com>
5857
5858 Rewrite locale/gen-translit.pl in Python.
5859 * locale/Makefile (generated): Add C-translit.h.
5860 (before-compile): Add $(objpfx)C-translit.h.
5861 (C-translit.h): Move to $(objpfx). Create target directory.
5862 Build using Python script.
5863 * locale/gen-translit.py: New file.
5864 * locale/gen-translit.pl: Remove file.
5865 * locale/C-translit.h.in: Change comment character to '#' for
5866 easier parsing without a C preprocessor.
5867 * locale/C-translit.h: Remove generated file.
5868 * manual/install.texi (Tools for Compilation): Do not mention
5869 C-translit.h.
5870 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5871 Remove locale/C-translit.h.
5872 * scripts/update-copyrights: Likewise.
5873 * INSTALL: Regenerate.
5874
5875 2018-12-18 Florian Weimer <fweimer@redhat.com>
5876
5877 [BZ #23995]
5878 * localedata/locales/bi_VU: Remove executable bit from file.
5879
5880 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5881
5882 * include/time.h
5883 (__localtime64): Add.
5884 * manual/maint.texi: Document Y2038 symbol handling.
5885 * time/localtime.c
5886 (__localtime64): Add.
5887 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5888
5889 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5890
5891 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5892 Do not clobber r12.
5893
5894 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5895 to allow extra macros from first or second sources.
5896 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5897 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5898 (tests-special): Add $(objpfx)tst-mman-consts.out.
5899 ($(objpfx)tst-mman-consts.out): New makefile target.
5900
5901 2018-12-17 Mao Han <han_mao@c-sky.com>
5902
5903 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5904 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5905 without stat64 system call support.
5906 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5907 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5908 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5909 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5910 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5911 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5912 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5913 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5914 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5915 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5916 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5917
5918 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5919
5920 regex: fix storage-exhaustion error
5921 [BZ #18040]
5922 * posix/regexec.c (get_subexp):
5923 Do not continue if storage is exhausted.
5924
5925 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5926
5927 regex: fix heap-use-after-free error
5928 [BZ #18040]
5929 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5930 https://debbugs.gnu.org/32592
5931 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5932 call extend_buffers which reallocates the re_string_t internal buffer.
5933 Local variable 'buf' was not updated in such case, resulting in
5934 use-after-free.
5935 * posix/regexec.c (get_subexp): Update 'buf' after call to
5936 get_subexp_sub.
5937
5938 2018-12-15 Florian Weimer <fweimer@redhat.com>
5939
5940 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5941 (minimum_stride_size): Use it.
5942 (support_blob_repeat_allocate): Likewise.
5943
5944 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5945
5946 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5947 definition.
5948 (acosh): Likewise.
5949 (atanh): Likewise.
5950
5951 2018-12-14 Florian Weimer <fweimer@redhat.com>
5952
5953 * manual/process.texi (Process Creation Concepts): Remove
5954 documentation of process (ID) lifetime. List more process
5955 creation functions. Reference Process Identification section.
5956 (Process Identification): Add information about process ID
5957 lifetime. Describe Linux thread/task IDs.
5958 * manual/signal.texi (Signaling Another Process): Mention that the
5959 signal is always sent to the process.
5960
5961 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5962
5963 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5964 and tst-ldbl-efgcvt.
5965 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5966 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5967 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5968 (fcvt_tests, output_error, output_r_error, do_test): Use the
5969 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5970 select the type of floating-point variables and arguments; to
5971 produce extra tests for double and conversion specifiers for
5972 printf; and to set the names of called functions.
5973 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5974 in tst-efgcvt-template.c.
5975 * misc/tst-ldbl-efgcvt.c: Likewise.
5976
5977 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5978
5979 * nss/Makefile (tst-nss-test3.out): New rule.
5980
5981 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5982
5983 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5984 clobber sp.
5985
5986 2018-12-13 fanjinke <fanjinke@hygon.cn>
5987
5988 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5989 "HygonGenuine".
5990
5991 2018-12-13 Andreas Schwab <schwab@suse.de>
5992
5993 [BZ #23861]
5994 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5995 (__pthread_rwlock_rdlock_full): Update expected value for
5996 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5997 * nptl/tst-rwlock-pwn.c: New file.
5998 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5999
6000 2018-12-12 Joseph Myers <joseph@codesourcery.com>
6001
6002 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
6003 definition.
6004
6005 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6006
6007 * benchtests/scripts/compare_bench.py (do_compare): write to
6008 stderr in casestat is not present.
6009 * benchtests/scripts/compare_bench.py (plot_graphs): write to
6010 stderr in case timings field is not present. Also string showing
6011 the output filename goes into the stderr.
6012
6013 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6014
6015 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
6016 and ZeroDivisorError exceptions.
6017 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
6018 argument to loop through user provided statistics.
6019 * benchtests/scripts/compare_bench.py (main): Include the --stats
6020 argument.
6021
6022 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6023
6024 * benchtests/scripts/compare_bench.py (compare_runs): Continue
6025 instead of return.
6026
6027 2018-12-12 Florian Weimer <fweimer@redhat.com>
6028
6029 * sysdeps/posix/timespec_get.c: Add missing “any later version”
6030 clause to copyright header.
6031
6032 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6033
6034 [BZ #23614]
6035 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
6036 registers saved in the stack frame.
6037 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
6038 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
6039
6040 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6041
6042 * include/bits/monetary-ldbl.h: New file.
6043 * include/bits/printf-ldbl.h: Likewise.
6044 * include/bits/stdio-ldbl.h: Likewise.
6045 * include/bits/stdlib-ldbl.h: Likewise.
6046 * include/bits/syslog-ldbl.h: Likewise.
6047 * include/bits/wchar-ldbl.h: Likewise.
6048
6049 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6050
6051 * libio/libio.h: Remove redirection for _IO_vfprintf.
6052
6053 2018-12-11 Andreas Schwab <schwab@suse.de>
6054
6055 * Makerules: Remove all references to abilist-pattern.
6056 (update-all-abi): Simplify find expression.
6057
6058 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
6059
6060 [BZ #23961]
6061 * math/auto-libm-test-in: Add new test case.
6062 * math/auto-libm-test-out-pow: Regenerated.
6063 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6064
6065 2018-12-10 DJ Delorie <dj@redhat.com>
6066
6067 [BZ #23948]
6068 * support/test-container.c: Move postclean step to before we
6069 change namespaces.
6070
6071 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6072
6073 * scripts/gen-as-const.py (main): Handle --python option.
6074 * scripts/gen-py-const.awk: Remove.
6075 * Makerules (py-const-script): Use gen-as-const.py.
6076 ($(py-const)): Likewise.
6077 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6078 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6079 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6080 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6081 ~PTHREAD_MUTEX_NO_ELISION_NP.
6082 * manual/README.pretty-printers: Update reference to
6083 gen-py-const.awk.
6084
6085 * scripts/glibcextract.py: New file.
6086 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6087 or tempfile. Import glibcexctract.
6088 (compute_c_consts): Remove. Moved to glibcextract.py.
6089 (gen_test): Update reference to compute_c_consts.
6090 (main): Likewise.
6091 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6092 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6093 * sysdeps/unix/sysv/linux/Makefile
6094 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6095 Redirect stderr as well as stdout.
6096
6097 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6098
6099 [BZ #19767]
6100 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6101 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6102 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6103 ALWAYS_USE_VSYSCALL.
6104 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6105 ALWAYS_USE_VSYSCALL.
6106 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6107 ALWAYS_USE_VSYSCALL.
6108
6109 2018-12-10 Florian Weimer <fweimer@redhat.com>
6110
6111 [BZ #23972]
6112 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6113 offset instead of count for clarity. Fix typo in comment.
6114 (__old_getdents64): Keep track of previous offset. Use it to call
6115 handle_overflow.
6116 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6117 that d_off is never zero.
6118
6119 2018-12-10 Andreas Schwab <schwab@suse.de>
6120
6121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6122 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6123 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6124 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6125 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6126
6127 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6128
6129 * timezone/private.h: Update from tzcode 2018g.
6130 * timezone/tzfile.h: Likewise.
6131 * timezone/tzselect.ksh: Likewise.
6132 * timezone/zdump.c: Likewise.
6133 * timezone/zic.c: Likewise.
6134
6135 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6136
6137 [BZ #23490]
6138 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6139 (do_test): Adjust buffer size and fix format.
6140
6141 2018-12-07 DJ Delorie <dj@redhat.com>
6142
6143 [BZ #23907]
6144 * malloc/tst-tcfree3.c: New.
6145 * malloc/Makefile: Add it.
6146
6147 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6148
6149 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6150
6151 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6152
6153 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6154 used as a mask for the mode argument of __vfscanf_internal and
6155 __vfwscanf_internal.
6156 * stdio-common/vfscanf-internal.c
6157 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6158 (__strtof128_internal): Define to __wcstof128_internal.
6159 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6160 __strtof128_internal or __wcstof128_internal when the format of
6161 long double is the same as _Float128.
6162
6163 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6164
6165 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6166 * posix/confstr.c (confstr): Rename to __confstr.
6167 (__confstr): Add hidden def.
6168 (confstr): Add weak alias for __confstr.
6169 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6170 confstr.
6171
6172 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6173
6174 * NEWS: Mention getcpu.
6175 * include/sched.h (__getcpu): New libc_hidden_proto.
6176 * manual/resource.texi: Document getcpu.
6177 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6178 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6179 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6180 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6181 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6182 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6183 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6184 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6185 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6186 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6187 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6188 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6189 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6190 Likewise.
6191 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6192 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6193 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6195 Likewise.
6196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6197 Likewise.
6198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6199 Likewise.
6200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6201 Likewise.
6202 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6203 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6204 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6205 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6206 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6207 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6208 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6209 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6210 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6211 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6212 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6213 Also check getcpu.
6214
6215 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6216
6217 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6218 functions.
6219 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6220
6221 2018-12-07 Florian Weimer <fweimer@redhat.com>
6222
6223 [BZ #17405]
6224 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6225 * posix/Versions (GLIBC_2.29): Export
6226 posix_spawn_file_actions_addfchdir_np.
6227 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6228 * posix/spawn_faction_destroy.c
6229 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6230 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6231 and the field action.fchdir_action.
6232 * posix/tst-spawn-chdir.c (add_chdir): New function.
6233 (do_test): Add do_fchdir loop. Call add_chdir.
6234 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6235 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6236 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6237 posix_spawn_file_actions_addfchdir_np.
6238 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6239 Likewise.
6240 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6241 Likewise.
6242 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6243 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6244 Likewise.
6245 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6246 Likewise.
6247 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6248 Likewise.
6249 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6250 Likewise.
6251 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6252 Likewise.
6253 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6254 Likewise.
6255 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6256 (GLIBC_2.29): Likewise.
6257 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6258 (GLIBC_2.29): Likewise.
6259 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6260 (GLIBC_2.29): Likewise.
6261 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6262 (GLIBC_2.29): Likewise.
6263 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6264 Likewise.
6265 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6266 (GLIBC_2.29): Likewise.
6267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6268 (GLIBC_2.29): Likewise.
6269 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6270 (GLIBC_2.29): Likewise.
6271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6272 (GLIBC_2.29): Likewise.
6273 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6274 Likewise.
6275 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6276 Likewise.
6277 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6278 Likewise.
6279 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6280 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6281 Likewise.
6282 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6283 Likewise.
6284 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6285 Likewise.
6286 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6287 Likewise.
6288
6289 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6290
6291 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6292 trailing whitespace removed.
6293 * scripts/config.guess: Update to version 2018-11-28.
6294 * scripts/config.sub: Update to version 2018-11-28.
6295 * scripts/install-sh: Update to version 2018-03-11.20.
6296 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6297 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6298
6299 2018-12-07 Florian Weimer <fweimer@redhat.com>
6300
6301 [BZ #23927]
6302 CVE-2018-19591
6303 * inet/tst-if_index-long.c: New file.
6304 * inet/Makefile (tests): Add tst-if_index-long.
6305
6306 2018-12-07 Florian Weimer <fweimer@redhat.com>
6307
6308 * support/check.h (support_record_failure_is_failed): Declare.
6309 * support/descriptors.h: New file.
6310 * support/support_descriptors.c: Likewise.
6311 * support/tst-support_descriptors.c: Likewise.
6312 * support/support_record_failure.c
6313 (support_record_failure_is_failed): New function.
6314 * support/Makefile (libsupport-routines): Add support_descriptors.
6315 (tests): Add tst-support_descriptors.
6316
6317 2018-12-05 Zack Weinberg <zackw@panix.com>
6318 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6319
6320 * stdio-common/vfprintf-internal.c
6321 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6322 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6323 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6324 and __no_long_double.
6325 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6326 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6327 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6328 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6329 and __nldbl_*syslog* functions.
6330 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6331 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6332 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6333 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6334 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6335 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6336 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6337 (__nldbl_vwprintf, __nldbl_wprintf):
6338 Directly call the appropriate __v*printf_internal routine, passing
6339 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6340 variable names.
6341 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6342 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6343 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6344 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6345 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6346 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6347 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6348 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6349 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6350 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6351 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6352 (__nldbl_syslog, __nldbl_vsyslog):
6353 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6354 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6355 appropriate.
6356 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6357 appropriate.
6358
6359 2018-12-05 Zack Weinberg <zackw@panix.com>
6360 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6361
6362 [BZ #11319]
6363 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6364 Moved here from debug/vsprintf_chk.c.
6365 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6366 and completion logic for the strfile to match exactly what
6367 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6368 _IO_str_init_static_internal instead of maxlen-1.
6369 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6370 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6371 __vsprintf_internal.
6372
6373 * debug/vsprintf_chk.c (__vsprintf_chk)
6374 * debug/sprintf_chk.c (__sprintf_chk):
6375 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6376 'flags' argument is positive, and slen as maxlen. No need to lock
6377 the FILE and/or construct a temporary FILE. Minimize and normalize
6378 header inclusions and variable names. Do not libc_hidden_def anything.
6379
6380 * debug/asprintf_chk.c (__asprintf_chk)
6381 * debug/dprintf_chk.c (__dprintf_chk)
6382 * debug/fprintf_chk.c (__fprintf_chk)
6383 * debug/fwprintf_chk.c (__fwprintf_chk)
6384 * debug/printf_chk.c (__printf_chk)
6385 * debug/snprintf_chk.c (__snprintf_chk)
6386 * debug/swprintf_chk.c (__swprintf_chk)
6387 * debug/vasprintf_chk.c (__vasprintf_chk)
6388 * debug/vdprintf_chk.c (__vdprintf_chk)
6389 * debug/vfprintf_chk.c (__vfprintf_chk)
6390 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6391 * debug/vprintf_chk.c (__vprintf_chk)
6392 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6393 * debug/vswprintf_chk.c (__vswprintf_chk)
6394 * debug/vwprintf_chk.c (__vwprintf_chk)
6395 * debug/wprintf_chk.c (__wprintf_chk):
6396 Directly call the corresponding vxxprintf_internal function, passing
6397 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6398 the FILE and/or construct a temporary FILE. Minimize and normalize
6399 header inclusions and variable names. Do not libc_hidden_def anything.
6400
6401 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6402 __obstack_vprintf_internal.
6403 (__obstack_vprintf_chk): Convert into a wrapper that calls
6404 __obstack_vprintf_internal (these two functions already had the
6405 same code) and move to new file...
6406 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6407 file.
6408 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6409 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6410 * debug/Makefile (routines): Add vobprintf_chk.
6411
6412 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6413 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6414 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6415 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6416 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6417 (__nldbl___obstack_vfprintf_chk):
6418 Directly call the corresponding vxxprintf_internal function,
6419 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6420 duplicate comparison of slen with 0 or maxlen from the corresponding
6421 non-__nldbl function.
6422
6423 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6424 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6425 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6426 Remove libc_hidden_proto.
6427
6428 * stdio-common/vfprintf-internal.c
6429 (__vfprintf_internal, __vfwprintf_internal):
6430 Do not check _IO_FLAGS2_FORTIFY.
6431 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6432 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6433 a comment explaining why it has the maxlen argument.
6434 (_IO_acquire_lock_clear_flags2_fct): Remove.
6435 (_IO_acquire_lock_clear_flags2): Remove.
6436 (_IO_release_lock): Remove conditional statement which will
6437 now never execute.
6438 (_IO_acquire_lock): Remove variable which is now unused.
6439 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6440 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6441
6442 * stdio-common/Makefile (tests): Add tst-bz11319 and
6443 tst-bz11319-fortify2.
6444 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6445 * stdio-common/tst-bz11319-fortify2.c: New file.
6446 * stdio-common/tst-bz11319.c: Likewise.
6447
6448 2018-12-05 Zack Weinberg <zackw@panix.com>
6449 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6450
6451 * misc/syslog.c: Include libioP.h, not iolibio.h.
6452 (__vsyslog_internal): New function with the former body of
6453 __vsyslog_chk; takes mode_flags argument same as
6454 __v*printf_internal. Call __vfprintf_internal directly.
6455
6456 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6457 Remove libc_hidden_def.
6458 (__syslog, __syslog_chk): Use __vsyslog_internal.
6459 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6460
6461 * include/sys/syslog.h: Add multiple inclusion guard.
6462 Add prototype for __vsyslog_internal.
6463 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6464
6465 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6466 Use __vsyslog_internal.
6467
6468 2018-12-05 Zack Weinberg <zackw@panix.com>
6469 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6470
6471 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6472 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6473 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6474 New functions.
6475 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6476 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6477
6478 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6479 Include wctype.h here if COMPILE_WPRINTF is defined.
6480 Define __vfprintf_internal or __vfwprintf_internal, depending
6481 on COMPILE_WPRINTF.
6482 Temporarily, on entry to this function, update mode_flags
6483 according to the environmental settings corresponding to
6484 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6485 Throughout, check mode_flags instead of __ldbl_is_dbl and
6486 _IO_FLAGS2_FORTIFY on the destination FILE.
6487 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6488 Include vfprintf-internal.c. Don't include wctype.h.
6489 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6490 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6491 and vfprintf.
6492 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6493 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6494 and vfwprintf.
6495 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6496
6497 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6498 and add mode_flags argument; use __vfprintf_internal.
6499 (__vdprintf): New function. Alias vdprintf to this.
6500 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6501 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6502 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6503 (__obstack_printf): Use __obstack_printf_internal.
6504 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6505 public aliases __vsnprintf and vsnprintf.
6506 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6507 called internally.
6508 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6509 public aliases _IO_vsprintf and vsprintf.
6510 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6511 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6512 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6513 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6514 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6515
6516 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6517 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6518 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6519 * stdio-common/printf.c: Use __vfprintf_internal.
6520
6521 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6522 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6523 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6524
6525 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6526 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6527 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6528 __vfwprintf_internal.
6529
6530 * libio/libio.h: Remove libc_hidden_proto and declaration for
6531 _IO_vfprintf.
6532 Remove declaration of _IO_vfwprintf.
6533 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6534 _IO_vsprintf.
6535 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6536 _IO_obstack_printf.
6537 * include/stdio.h: Add prototype for __vasprintf.
6538 (__vsnprintf): Remove declaration, because there are no more
6539 internal calls.
6540 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6541 declaration, because there are no more internal calls.
6542
6543 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6544 __vsnprintf_internal, instead of _IO_vsnprintf.
6545 * argp/argp-help.c (__argp_error, __argp_failure): Use
6546 __vasprintf_internal, instead of _IO_vasprintf.
6547 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6548 redefine, because there are no more internal calls.
6549
6550 2018-12-05 Zack Weinberg <zackw@panix.com>
6551 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6552
6553 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6554 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6555 Include libio/strfile.h instead of libioP.h.
6556 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6557 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6558 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6559 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6560 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6561 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6562 necessary. Do not set __no_long_double. Normalize variable names.
6563 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6564 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6565 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6566 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6567 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6568 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6569 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6570 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6571 Do not set __no_long_double. Normalize variable names.
6572
6573 2018-12-05 Zack Weinberg <zackw@panix.com>
6574 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6575
6576 * stdio-common/isoc99_scanf.c
6577 * stdio-common/isoc99_fscanf.c
6578 * stdio-common/isoc99_sscanf.c
6579 * stdio-common/isoc99_vscanf.c
6580 * stdio-common/isoc99_vfscanf.c
6581 * stdio-common/isoc99_vsscanf.c
6582 * wcsmbs/isoc99_wscanf.c
6583 * wcsmbs/isoc99_fwscanf.c
6584 * wcsmbs/isoc99_swscanf.c
6585 * wcsmbs/isoc99_vwscanf.c
6586 * wcsmbs/isoc99_vfwscanf.c
6587 * wcsmbs/isoc99_vswscanf.c:
6588 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6589 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6590 No need to lock and unlock the FILE passed to that function.
6591
6592 * stdio-common/vfscanf-internal.c
6593 (__vfscanf_internal, __vfwscanf_internal):
6594 Don't look at _IO_FLAGS2_SCANF_STD.
6595 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6596 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6597 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6598
6599 2018-12-05 Zack Weinberg <zackw@panix.com>
6600 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6601
6602 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6603 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6604 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6605 * libio/strfile.h: Add multiple inclusion guard.
6606 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6607
6608 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6609 consistency with the other version of this file.
6610 (ldbl_compat_symbol): New macro.
6611 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6612 New macro.
6613
6614 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6615 Define __vfscanf_internal or __vfwscanf_internal, depending on
6616 COMPILE_WSCANF; don't define any other public symbols.
6617 Remove errval and code to set errp.
6618 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6619 as the mode_flags argument.
6620 (encode_error, conv_error, input_error): Don't set errval.
6621 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6622 Include vfscanf-internal.c.
6623 * stdio-common/vfscanf.c: New file defining the public entry
6624 point vfscanf, which calls __vfscanf_internal.
6625 * stdio-common/vfwscanf.c: New file defining the public entry
6626 point vfwscanf, which calls __vfwscanf_internal.
6627
6628 * stdio-common/iovfscanf.c: New file.
6629 * stdio-common/iovfwscanf.c: Likewise.
6630
6631 * stdio-common/Makefile (routines): Add vfscanf-internal,
6632 vfwscanf-internal, iovfscanf, iovfwscanf.
6633 * stdio-common/Versions: Mention GLIBC_2.29, so that
6634 it can be used in SHLIB_COMPAT expressions.
6635 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6636 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6637 Call __vfscanf_internal, instead of _IO_vfscanf.
6638 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6639 _IO_vfscanf.
6640 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6641 _IO_vfwscanf.
6642
6643 * libio/iovsscanf.c: Clean up includes, when possible. Use
6644 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6645 __vfscanf_internal or __vfwscanf_internal directly.
6646 * libio/iovswscanf.c: Likewise.
6647 * libio/swscanf.c: Likewise.
6648 * libio/vscanf.c: Likewise.
6649 * libio/vwscanf.c: Likewise.
6650 * libio/wscanf.c: Likewise.
6651 * stdio-common/isoc99_fscanf.c: Likewise.
6652 * stdio-common/isoc99_scanf.c: Likewise.
6653 * stdio-common/isoc99_sscanf.c: Likewise.
6654 * stdio-common/isoc99_vfscanf.c: Likewise.
6655 * stdio-common/isoc99_vscanf.c: Likewise.
6656 * stdio-common/isoc99_vsscanf.c: Likewise.
6657 * stdio-common/scanf.c: Likewise.
6658 * stdio-common/sscanf.c: Likewise.
6659 * wcsmbs/isoc99_fwscanf.c: Likewise.
6660 * wcsmbs/isoc99_swscanf.c: Likewise.
6661 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6662 * wcsmbs/isoc99_vswscanf.c: Likewise.
6663 * wcsmbs/isoc99_vwscanf.c: Likewise.
6664 * wcsmbs/isoc99_wscanf.c: Likewise.
6665
6666 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6667
6668 * include/time.h
6669 (__tz_compute): Replace time_t with __time64_t.
6670 (__tz_convert): Replace time_t* with __time64_t.
6671 (__offtime): Replace time_t* with __time64_t.
6672 * time/gmtime.c
6673 (__gmtime_r): Adjust call to __tz_convert.
6674 (gmtime): Likewise.
6675 * time/localtime.c
6676 (__localtime_r): Likewise.
6677 (localtime): Likewise.
6678 * time/offtime.c: Replace time_t with __time64_t.
6679 * time/tzset.c: Likewise.
6680
6681 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6682
6683 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6684 dynamic linker unless [$(run-built-tests) = yes].
6685
6686 2018-12-03 DJ Delorie <dj@delorie.com>
6687
6688 * support/test-container.c (check_for_unshare_hints): New.
6689 (main): Call it if unshare fails. Add support for "su" scriptlet
6690 command.
6691
6692 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6693
6694 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6695 'START' to indicate that start text should be output.
6696 (gen_test): Likewise.
6697 (main): Generate 'START' for first symbol or '--' line, or at end
6698 of input if not previously generated.
6699
6700 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6701
6702 [BZ #19767]
6703 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6704 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6705 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6706 ALWAYS_USE_VSYSCALL.
6707
6708 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6709
6710 [BZ #23913]
6711 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6712 new_argv by one.
6713
6714 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6715
6716 [BZ #23923]
6717 * locale/programs/localedef.c: Declare boolean hard_links default true.
6718 (options): Add --no-hard-links option.
6719 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6720 * locale/programs/localedef.h: Declare prototype for hard_links.
6721 * locale/programs/locfile.c (write_locale_data): Don't use hard
6722 links if hard_links is false.
6723
6724 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6725
6726 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6727 cpu_features_basic.
6728 (__cache_sysconf): Likewise.
6729 (init_cacheinfo): Likewise.
6730 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6731 populate COMMON_CPUID_INDEX_80000007 and
6732 COMMON_CPUID_INDEX_80000008.
6733 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6734 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6735 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6736 (init_cpu_features): Use _Static_assert on
6737 index_arch_Fast_Unaligned_Load.
6738 __get_cpuid_registers and __get_arch_feature. Updated for
6739 cpu_features_basic. Set stepping in cpu_features.
6740 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6741 (FEATURE_INDEX_2): New.
6742 (FEATURE_INDEX_MAX): Changed to enum.
6743 (COMMON_CPUID_INDEX_D_ECX_1): New.
6744 (COMMON_CPUID_INDEX_80000007): Likewise.
6745 (COMMON_CPUID_INDEX_80000008): Likewise.
6746 (cpuid_registers): Likewise.
6747 (cpu_features_basic): Likewise.
6748 (CPU_FEATURE_USABLE): Likewise.
6749 (bit_arch_XXX_Usable): Likewise.
6750 (cpu_features): Use cpuid_registers and cpu_features_basic.
6751 (bit_arch_XXX): Reweritten.
6752 (bit_cpu_XXX): Likewise.
6753 (index_cpu_XXX): Likewise.
6754 (reg_XXX): Likewise.
6755 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6756 <support/check.h>.
6757 (CHECK_CPU_FEATURE): New.
6758 (CHECK_CPU_FEATURE_USABLE): Likewise.
6759 (cpu_kinds): Likewise.
6760 (do_test): Print vendor, family, model and stepping. Check
6761 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6762 (TEST_FUNCTION): Removed.
6763 Include <support/test-driver.c> instead of
6764 "../../test-skeleton.c".
6765 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6766 Check POPCNT instead of POPCOUNT.
6767 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6768
6769 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6770
6771 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6772 there is no element in `consts'.
6773
6774 2018-12-01 Florian Weimer <fweimer@redhat.com>
6775
6776 * support/support_capture_subprocess.c
6777 (support_capture_subprocess): Check that pipe descriptors have
6778 expected values. Close original pipe descriptors in subprocess.
6779
6780 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6781
6782 [BZ #23032]
6783 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6784 attr with __pthread_default_barrierattr.
6785 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6786 attr with __pthread_default_condattr.
6787 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6788 attr with __pthread_default_mutexattr.
6789 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6790 attr with __pthread_default_rwlockattr.
6791
6792 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6793
6794 * manual/tunables.texi (POSIX Thread Tunables): New node.
6795 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6796 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6797 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6798 __pthread_tunables_init.
6799 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6800 (max_adaptive_count): Define.
6801 * nptl/pthread_mutex_conf.c: New file.
6802 * nptl/pthread_mutex_conf.h: New file.
6803 * sysdeps/generic/adaptive_spin_count.h: New file.
6804 * sysdeps/nptl/dl-tunables.list: New file.
6805 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6806 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6807 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6808 Likewise.
6809
6810 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6811
6812 [BZ #20544]
6813 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6814 * stdlib/on_exit.c (__on_exit): Likewise.
6815 * stdlib/Makefile (tests): Add tst-bz20544.
6816 * stdlib/tst-bz20544.c: New test.
6817
6818 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6819
6820 [BZ #19767]
6821 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6822 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6823 New.
6824
6825 2018-11-30 Florian Weimer <fweimer@redhat.com>
6826
6827 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6828 Extend error logging.
6829 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6830 symbol.
6831
6832 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6833
6834 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6835 __sigismember instead of sigismember.
6836 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6837 cancel_handler): New definitions.
6838 (do_system): Use posix_spawn instead of fork and execl and remove
6839 reentracy code.
6840 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6841 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6842 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6843 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6844 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6845 * sysdeps/unix/sysv/linux/system.c: Likewise.
6846
6847 [BZ #22834]
6848 [BZ #17490]
6849 * NEWS: Add new semantic for atfork with popen and system.
6850 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6851 fork and execl.
6852
6853 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6854
6855 [BZ #23690]
6856 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6857 modification order when accessing reloc_result->addr.
6858 * include/link.h (reloc_result): Add field init.
6859 * nptl/Makefile (tests): Add tst-audit-threads.
6860 (modules-names): Add tst-audit-threads-mod1 and
6861 tst-audit-threads-mod2.
6862 Add rules to build tst-audit-threads.
6863 * nptl/tst-audit-threads-mod1.c: New file.
6864 * nptl/tst-audit-threads-mod2.c: Likewise.
6865 * nptl/tst-audit-threads.c: Likewise.
6866 * nptl/tst-audit-threads.h: Likewise.
6867
6868 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6869
6870 * scripts/gen-as-const.py: New file.
6871 * scripts/gen-as-const.awk: Remove.
6872 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6873 gen-as-const.py.
6874 ($(objpfx)test-as-const-%.c): Likewise.
6875
6876 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6877
6878 * elf/dl-exception.c: Include <_itoa.h>.
6879
6880 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6881
6882 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6883 returned by __f_setlk.
6884
6885 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6886 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6887
6888 * elf/Makefile (tests-internal): Add tst-create_format1.
6889 * elf/dl-exception.c (_dl_exception_create_format): Support
6890 %x, %lx and %zx.
6891 * elf/tst-create_format1.c: New file.
6892
6893 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6894
6895 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6896 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6897 gnulib.)
6898 * argp/argp-help.c (__argp_failure): Likewise.
6899
6900 2018-11-29 Mao Han <han_mao@c-sky.com>
6901
6902 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6903 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6904 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6905 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6906 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6907 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6908 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6909 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6910 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6911 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6912 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6913 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6914 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6915 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6916 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6917 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6918 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6919 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6920 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6921 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6922 (R_CKCORE_TLS_TPOFF32): New defines.
6923
6924 2018-11-29 Florian Weimer <fweimer@redhat.com>
6925
6926 * posix/Makefile (before-compile): Remove testcases.h and
6927 ptestcases.h.
6928 (generated): Add testcases.h and ptestcases.h.
6929 (testcases.h, ptestcases.h): Move to $(objpfx).
6930 (runtests.o): Add dependency on testcases.h.
6931 (runptests.o): Add dependency on ptestcases.h.
6932 * posix/testcases.h, posix/ptestcases.h: Remove files.
6933 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6934 not touch posix/testcases.h and posix/ptestcases.h.
6935
6936 2018-11-28 Florian Weimer <fweimer@redhat.com>
6937
6938 support: Add signal support to support_capture_subprocess_check.
6939 * support/capture_subprocess.h (support_capture_subprocess_check):
6940 Adjust comment and rename parameter.
6941 * support/support_capture_subprocess_check.c
6942 (print_actual_status): New function.
6943 (support_capture_subprocess_check): Support negative
6944 status_or_signal. Call print_actual_status.
6945 * support/tst-support_capture_subprocess.c (do_test): Call
6946 support_capture_subprocess_check.
6947 * libio/tst-vtables-common.c (termination_status)
6948 (init_termination_status): Remove.
6949 (check_for_termination): Adjust support_capture_subprocess_check
6950 call.
6951 (do_test): Remove call to init_termination_status.
6952
6953 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6954
6955 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6956 source directory instead of a copy.
6957 (CommandList.create_copy_dir): Remove.
6958
6959 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6960
6961 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6962
6963 2018-11-28 Florian Weimer <fweimer@redhat.com>
6964
6965 * support/support.h (support_quote_string): Do not use str
6966 parameter name.
6967
6968 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6969
6970 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6971 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6972
6973 2018-11-27 Florian Weimer <fweimer@redhat.com>
6974
6975 * support/support.h (support_quote_string): Declare.
6976 * support/support_quote_string.c: New file.
6977 * support/tst-support_quote_string.c: Likewise.
6978 * support/Makefile (libsupport-routines): Add
6979 support_quote_string.
6980 (tests): Add tst-support_quote_string.
6981
6982 2018-11-27 Florian Weimer <fweimer@redhat.com>
6983
6984 [BZ #23927]
6985 CVE-2018-19591
6986 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6987 descriptor leak in case of ENODEV error.
6988
6989 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6990
6991 [BZ #19767]
6992 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6993 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6994 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6995
6996 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6997
6998 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6999 Error for unknown lines.
7000
7001 2018-11-26 Joseph Myers <joseph@codesourcery.com>
7002
7003 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
7004 Touch additional files.
7005
7006 2018-11-26 Florian Weimer <fweimer@redhat.com>
7007
7008 [BZ #23907]
7009 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
7010 double-frees.
7011
7012 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
7013
7014 [BZ #19767]
7015 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
7016 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
7017 SHARED. Include sysdep.h.
7018 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
7019 ALWAYS_USE_VSYSCALL.
7020 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
7021 ALWAYS_USE_VSYSCALL.
7022
7023 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
7024
7025 [BZ #19767]
7026 * nptl/Makefile (tests-static): Add tst-cond11-static.
7027 (tests): Likewise.
7028 * nptl/tst-cond11-static.c: New File.
7029 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
7030 tst-affinity-static.
7031 (tests): Likewise.
7032 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
7033 instead of SHARED.
7034 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
7035 (USE_VSYSCALL): Likewise.
7036 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
7037 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
7038 instead of SHARED.
7039 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
7040 SHARED.
7041 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
7042 New.
7043
7044 2018-11-23 Joseph Myers <joseph@codesourcery.com>
7045
7046 [BZ #23915]
7047 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7048 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
7049 Undefine.
7050
7051 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
7052
7053 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
7054 (tst-cet-legacy-1a-ARGS): New.
7055 ($(objpfx)tst-cet-legacy-1a): New target.
7056 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
7057
7058 2018-11-22 Joseph Myers <joseph@codesourcery.com>
7059
7060 * conform/conformtest.py (CompileSubTest.__init__): Set
7061 self.run_early to False.
7062 (ExecuteSubTest.__init__): Likewise.
7063 (HeaderTests.run): Try running all non-optional, non-XFAILed
7064 compilation tests in a single execution of the compiler.
7065
7066 * conform/conformtest.py (CompileSubTest): New class.
7067 (ExecuteSubTest): Likewise.
7068 (ElementTest.run): Rename to gen_subtests. Append tests to
7069 self.subtests instead of running them.
7070 (ConstantTest.run): Likewise.
7071 (SymbolTest.run): Likewise.
7072 (TypeTest.run): Likewise.
7073 (TagTest.run): Likewise.
7074 (FunctionTest.run): Likewise.
7075 (VariableTest.run): Likewise.
7076 (MacroFunctionTest.run): Likewise.
7077 (MacroStrTest.run): Likewise.
7078 (HeaderTests.handle_test_line): Generate subtests for tests.
7079 (HeaderTests.run): Run subtests for tests.
7080
7081 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7082
7083 * math/Versions (GLIBC_2.29): Add pow.
7084 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7085 symbol.
7086 * math/w_pow.c: New file.
7087 * sysdeps/i386/fpu/w_pow.c: New file.
7088 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7089 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7090 and add necessary aliases.
7091 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7092 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7093 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7094 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7095 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7096 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7097 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7098 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7099 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7100 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7101 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7102 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7103 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7104 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7105 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7110 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7111 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7112 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7113 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7114 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7115 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7116 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7117 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7118 __pow.
7119 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7120 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7121 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7122
7123 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7124
7125 * math/Versions (GLIBC_2.29): Add log2.
7126 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7127 symbol.
7128 * math/w_log2.c: New file.
7129 * sysdeps/i386/fpu/w_log2.c: New file.
7130 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7131 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7132 and add necessary aliases.
7133 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7134 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7135 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7136 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7137 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7138 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7139 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7140 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7141 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7142 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7143 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7144 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7145 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7146 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7147 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7148 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7149 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7150 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7152 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7153 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7154 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7155 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7156 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7157 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7158 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7159
7160 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7161
7162 * math/Versions (GLIBC_2.29): Add log.
7163 * math/w_log_compat.c (__log_compat): Change to versioned compat
7164 symbol.
7165 * math/w_log.c: New file.
7166 * sysdeps/i386/fpu/w_log.c: New file.
7167 * sysdeps/ia64/fpu/e_log.S: Update.
7168 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7169 and add necessary aliases.
7170 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7171 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7172 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7173 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7174 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7175 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7176 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7177 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7178 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7179 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7180 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7181 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7182 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7183 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7184 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7186 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7187 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7189 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7190 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7191 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7192 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7193 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7194 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7195 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7196 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7197 __log.
7198 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7199 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7200 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7201 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7202
7203 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7204
7205 * math/Versions (GLIBC_2.29): Add exp and exp2.
7206 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7207 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7208 * math/w_exp_compat.c (__exp_compat): Likewise.
7209 * math/w_exp.c: New file.
7210 * math/w_exp2.c: New file.
7211 * sysdeps/i386/fpu/w_exp.c: New file.
7212 * sysdeps/i386/fpu/w_exp2.c: New file.
7213 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7214 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7215 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7216 and add necessary aliases.
7217 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7218 and add necessary aliases.
7219 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7220 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7221 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7222 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7223 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7224 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7225 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7226 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7227 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7228 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7229 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7230 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7231 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7232 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7233 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7234 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7235 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7236 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7237 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7238 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7239 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7240 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7241 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7242 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7243 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7244 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7245 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7246 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7247 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7248 (__ieee754_exp): Rename to __exp.
7249 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7250 (__ieee754_exp): Rename to __exp.
7251 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7252 (__ieee754_exp): Rename to __exp.
7253 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7254 __exp.
7255 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7256
7257 2018-11-20 DJ Delorie <dj@redhat.com>
7258
7259 * malloc/malloc.c (tcache_entry): Add key field.
7260 (tcache_put): Set it.
7261 (tcache_get): Likewise.
7262 (_int_free): Check for double free in tcache.
7263 * malloc/tst-tcfree1.c: New.
7264 * malloc/tst-tcfree2.c: New.
7265 * malloc/Makefile: Run the new tests.
7266 * manual/probes.texi: Document memory_tcache_double_free probe.
7267
7268 * dlfcn/dlerror.c (check_free): Prevent double frees.
7269
7270 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7271
7272 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7273
7274 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7275
7276 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7277 in tests. Use names for format arguments.
7278 (ConstantTest.run): Likewise.
7279 (SymbolTest.run): Likewise.
7280 (TypeTest.run): Likewise.
7281 (TagTest.run): Likewise.
7282 (FunctionTest.run): Likewise.
7283 (VariableTest.run): Likewise.
7284 (MacroFunctionTest.run): Likewise.
7285 (MacroStrTest.run): Likewise.
7286 (HeaderTests.__init__): Set self.num_tests.
7287 (HeaderTests.handle_test_line): Set test.num. Increment
7288 self.num_tests.
7289
7290 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7291
7292 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7293 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7294 SEEK_SET.
7295
7296 2018-11-19 Mao Han <han_mao@c-sky.com>
7297
7298 * scripts/config.guess: Update to version 2018-08-29.
7299 * scripts/config.sub: Update to version 2018-08-29.
7300
7301 2018-11-19 Florian Weimer <fweimer@redhat.com>
7302
7303 support: Print timestamps in timeout handler.
7304 * support/support_test_main.c (print_timestamp): New function.
7305 (signal_handler): Use it to print the termination time and the
7306 time of the last write to standard output.
7307
7308 2018-11-16 Zack Weinberg <zackw@panix.com>
7309 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7310
7311 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7312 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7313 argument.
7314 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7315 and add flags argument. Check flags instead of __ldbl_is_dbl when
7316 deciding whether to set is_long_double.
7317 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7318 passing zero for flags argument.
7319 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7320
7321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7322 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7323 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7324 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7325 variable names. Remove libc_hidden_def/libc_hidden_proto from
7326 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7327 longer called from within the library.
7328 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7329 for __nldbl___vstrfmon_l, declare it explicitly.
7330
7331 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7332
7333 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7334
7335 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7336 macros
7337 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7338 F_SETLK64, F_SETLKW64, respectively.
7339 * sysdeps/mach/hurd/f_setlk.c: New file.
7340 * sysdeps/mach/hurd/f_setlk.h: New file.
7341 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7342 f_setlk.
7343 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7344 (__libc_fcntl): Move non-flock operations to...
7345 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7346 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7347
7348 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7349
7350 mktime: DEBUG_MKTIME cleanup
7351 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7352 And it’s no longer needed now that glibc and Gnulib both have
7353 their own testing mechanisms for mktime.
7354 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7355
7356 mktime: fix non-EOVERFLOW errno handling
7357 [BZ#23789]
7358 mktime was not properly reporting failures when the underlying
7359 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7360 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7361 The problem could happen on non-glibc platforms, with Gnulib.
7362 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7363 (tm_diff): ... this simpler function, which does not change errno.
7364 All callers changed to deal with errno themselves.
7365 (ranged_convert, __mktime_internal): Return failure immediately if
7366 the underlying function reports any failure other than EOVERFLOW.
7367 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7368 gap code fails.
7369
7370 mktime: fix bug with Y2038 DST transition
7371 [BZ#23789]
7372 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7373 mishandle a DST transition that jumps over the Y2038 boundary.
7374 No such DST transitions are known so this is only a theoretical
7375 bug, but we might as well do things right.
7376
7377 mktime: make more room for overflow
7378 [BZ#23789]
7379 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7380 This is so that we can add tm_diff results to a previous guess,
7381 which will be useful in a later patch.
7382
7383 mktime: simplify offset guess
7384 [BZ#23789]
7385 * time/mktime.c (__mktime_internal): Omit excess precision.
7386
7387 mktime: new test for mktime failure
7388 [BZ#23789]
7389 Based on a test suggested by Albert Aribaud in:
7390 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7391 * time/Makefile (tests): Add bug-mktime4.
7392 * time/bug-mktime4.c: New file.
7393
7394 mktime: fix EOVERFLOW bug
7395 [BZ#23789]
7396 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7397 Include libc-config.h, not config.h, for __set_errno.
7398 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7399
7400 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7401
7402 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7403 __attribute_copy__ to copy attributes from name. Drop static qualifier
7404 to avoid warnings about leaf attribute not having effect on static
7405 functions.
7406
7407 2018-11-13 Florian Weimer <fweimer@redhat.com>
7408
7409 * malloc/malloc.c (fastbin_push_entry): New function.
7410 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7411 (REMOVE_FB): Remove macro.
7412 (_int_malloc): Use fastbin_pop_entry and reindent.
7413 (_int_free): Use fastbin_push_entry.
7414 (malloc_consolidate): Use atomic_exchange_acquire.
7415
7416 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7417
7418 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7419 alias attribute, not with strong_alias.
7420
7421 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7422 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7423 with additional parameter thread.
7424 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7425 in terms of __hidden_ver2.
7426 (hidden_tls_def): New macro.
7427 (libc_hidden_tls_def): Likewise.
7428 (rtld_hidden_tls_def): Likewise.
7429 (libm_hidden_tls_def): Likewise.
7430 (libmvec_hidden_tls_def): Likewise.
7431 (libresolv_hidden_tls_def): Likewise.
7432 (librt_hidden_tls_def): Likewise.
7433 (libdl_hidden_tls_def): Likewise.
7434 (libnss_files_hidden_tls_def): Likewise.
7435 (libnsl_hidden_tls_def): Likewise.
7436 (libnss_nisplus_hidden_tls_def): Likewise.
7437 (libutil_hidden_tls_def): Likewise.
7438 (libutil_hidden_tls_def): Likweise.
7439 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7440 libc_hidden_tls_def.
7441 (__sim_disabled_exceptions_thread): Likewise.
7442 (__sim_round_mode_thread): Likewise.
7443
7444 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7445 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7446 copy attributes from name.
7447
7448 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7449
7450 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7451 Use __attribute_copy__ to copy attributes from name.
7452
7453 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7454 with __hidden_ver1 call.
7455 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7456 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7457 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7458 (__cosf): Do not declare here.
7459 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7460 (__sincosf): Do not declare here.
7461 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7462 (__sinf): Do not declare here.
7463
7464 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7465 (__BIG_ENDIAN): Likewise.
7466 (__BYTE_ORDER): Likewise.
7467 (strong_alias): Likewise.
7468 (_strong_alias): Likewise.
7469
7470 2018-11-12 Florian Weimer <fweimer@redhat.com>
7471
7472 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7473 function. Move after the definition of in_smallbin_range. Do not
7474 use __builtin_expect for paths that lead to a noreturn function.
7475 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7476 because it is unclear whether this is in fact an unlikely
7477 condition.
7478 (_int_malloc, _int_free): Adjust.
7479 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7480 variables.
7481 * malloc/arena.c (heap_trim): Likewise.
7482
7483 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7484
7485 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7486 it, free it if needed.
7487 (reauthenticate): Test and use ccwdir.
7488 (child_init_port): In non-resetids case, test and use ccwdir.
7489 (child_chdir): New nested function to set ccwdir.
7490 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7491 * hurd/hurd/port.h (_hurd_port_move): New function.
7492 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7493 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7494 * hurd/Versions (_hurd_port_move): Export function.
7495 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7496 symbol.
7497 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7498 of dtablesize for allocating dtable_cloexec.
7499
7500 2018-11-09 Martin Sebor <msebor@redhat.com>
7501
7502 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7503 it's already defined.
7504 (_strong_alias): Use __attribute_copy__.
7505 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7506 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7507 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7508 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7509 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7510 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7511 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7512 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7513 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7514 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7515 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7516 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7517 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7518 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7519 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7520 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7521 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7522 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7523 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7524
7525 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7526
7527 * misc/tst-efgcvt.c: Include support/check.h and
7528 support/test-driver.c. Do not include test-skeleton.c.
7529 (error_count): Remove.
7530 (output_error): Replace increments to error_count with calls to
7531 support_record_failure.
7532 (output_r_error): Likewise.
7533 (special): Likewise.
7534 (do_test): Unconditionally return zero.
7535 (TEST_FUNCTION): Remove.
7536
7537 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7538
7539 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7540 not $(@D)/scratch.
7541 ($(linknamespace-header-tests)): Likewise.
7542
7543 * conform/conformtest.py: New file.
7544 * conform/conformtest.pl: Remove.
7545 * conform/GlibcConform.pm: Likewise.
7546 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7547 (KEYWORDS_C99): Likewise.
7548 (KEYWORDS): Likewise.
7549 * conform/Makefile ($(conformtest-header-tests)): Use
7550 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7551 option. Use --header instead of --headers.
7552 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7553 function entries.
7554 * conform/data/spawn.h-data: Likewise.
7555 * conform/data/fcntl.h-data (openat): Add space after function
7556 name.
7557 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7558 (wcscasecmp_l): Likewise.
7559 * conform/data/termios.h-data (c_cc): Add space after element
7560 name.
7561
7562 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7563
7564 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7565 instead of manually comparing and reporting mismatching strings.
7566 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7567 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7568
7569 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7570
7571 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7572 __ASSUME_SOCKETCALL.
7573 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7574 (__ASSUME_SOCKETCALL): Remove.
7575 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7576 (__ASSUME_SOCKETCALL): Likewise.
7577 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7578 (__ASSUME_SOCKETCALL): Likewise.
7579 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7580 (__ASSUME_SOCKETCALL): Likewise.
7581 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7582 (__ASSUME_SOCKETCALL): Likewise.
7583 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7584 (__ASSUME_SOCKETCALL): Likewise.
7585 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7586 (__ASSUME_SOCKETCALL): Likewise.
7587
7588 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7589
7590 [BZ #23509]
7591 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7592 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7593 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7594 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7595 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7596 lc_unknown.
7597
7598 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7599
7600 [BZ #17630]
7601 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7602
7603 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7604
7605 [BZ #23867]
7606 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7607 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7608 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7609 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7610
7611 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7612
7613 * support/support_test_compare_string.c
7614 (support_test_compare_string): Fix printf format.
7615
7616 2018-11-07 Florian Weimer <fweimer@redhat.com>
7617
7618 Implement TEST_COMPARE_STRING.
7619 * support/check.h (TEST_COMPARE_STRING): Define.
7620 (support_test_compare_string): Declare.
7621 * support/Makefile (libsupport-routines): Add
7622 support_test_compare_string.
7623 (tests): Add tst-test_compare_string.
7624 * support/support_test_compare_string.c: New file.
7625 * support/tst-test_compare_string.c: Likewise.
7626
7627 2018-11-07 Andreas Schwab <schwab@suse.de>
7628
7629 [BZ #23864]
7630 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7631 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7632 Undef.
7633
7634 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7635
7636 [BZ #23862]
7637 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7638 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7639 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7640 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7641 Likewise.
7642
7643 2018-11-06 Florian Weimer <fweimer@redhat.com>
7644
7645 [BZ #17405]
7646 * posix/Makefile (routines): Add spawn_faction_addchdir.
7647 (tests): Add tst-spawn-chdir.
7648 * posix/Versions (GLIBC_2.29): Add
7649 posix_spawn_file_actions_addchdir_np.
7650 * posix/spawn_faction_addchdir.c: New file.
7651 * posix/spawn_faction_destroy.c
7652 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7653 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7654 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7655 chdir_action.
7656 * posix/tst-spawn-chdir.c: New file.
7657 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7658 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7659 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7660 posix_spawn_file_actions_addchdir_np.
7661 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7662 Likewise.
7663 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7664 Likewise.
7665 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7666 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7667 Likewise.
7668 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7669 Likewise.
7670 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7671 Likewise.
7672 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7673 Likewise.
7674 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7675 Likewise.
7676 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7677 Likewise.
7678 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7679 (GLIBC_2.29): Likewise.
7680 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7681 (GLIBC_2.29): Likewise.
7682 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7683 (GLIBC_2.29): Likewise.
7684 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7685 (GLIBC_2.29): Likewise.
7686 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7687 Likewise.
7688 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7689 (GLIBC_2.29): Likewise.
7690 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7691 (GLIBC_2.29): Likewise.
7692 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7693 (GLIBC_2.29): Likewise.
7694 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7695 (GLIBC_2.29): Likewise.
7696 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7697 Likewise.
7698 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7699 Likewise.
7700 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7701 Likewise.
7702 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7703 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7704 Likewise.
7705 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7706 Likewise.
7707 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7708 Likewise.
7709 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7710 Likewise.
7711
7712 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7713
7714 * misc/Makefile (tests): Add tst-ldbl-error.
7715 * misc/tst-ldbl-error.c: New file.
7716
7717 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7718
7719 * misc/Makefile (tests): Add tst-ldbl-warn.
7720 * misc/tst-ldbl-warn.c: New file.
7721
7722 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7723
7724 * argp/Makefile (tests): Add tst-ldbl-argp.
7725 * argp/tst-ldbl-argp.c: New file.
7726
7727 2018-11-05 Arjun Shankar <arjun@redhat.com>
7728
7729 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7730 __gconv_path_elem and call __gconv_get_path unconditionally.
7731
7732 2018-11-05 Andreas Schwab <schwab@suse.de>
7733
7734 [BZ #22927]
7735 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7736 creating the first helper thread failed.
7737
7738 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7739
7740 * sysdeps/mach/hurd/msync.c: New file.
7741
7742 2018-11-02 Florian Weimer <fweimer@redhat.com>
7743
7744 * support/shell-container.c (copy_func): Call
7745 support_copy_file_range instead of copy_file_range to support
7746 cross-device copies.
7747
7748 2018-11-02 Florian Weimer <fweimer@redhat.com>
7749
7750 * support/test-container.c: Include <libc-pointer-arith.h> for
7751 ALIGN_UP.
7752
7753 2018-11-01 Zong Li <zong@andestech.com>
7754
7755 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7756 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7757 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7758 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7759
7760 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7761 variable to avoid overlap arguments.
7762
7763 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7764
7765 * posix/bug-regex22.c (main): Use puts with distinct error
7766 messages for unexpected success of re_compile_pattern, not printf
7767 with NULL argument to %s.
7768
7769 * stdio-common/bug22.c: Include <libc-diag.h>.
7770 (do_test): Disable -Wformat-overflow= warnings around fprintf
7771 calls outputting more than INT_MAX characters.
7772 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7773 around printf call with NULL %s argument.
7774
7775 [BZ #23848]
7776 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7777 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7778 Undefine.
7779 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7780 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7781 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7782 (__ASSUME_SENDTO_SYSCALL): Likewise.
7783 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7784 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7785 [!__arch64__].
7786 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7787 (__ASSUME_CONNECT_SYSCALL): Likewise.
7788 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7789 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7790 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7791 Define.
7792 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7793 Likewise.
7794 [__LINUX_KERNEL_VERSION >= 0x040400]
7795 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7796 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7797 Remove.
7798 (listen): Likewise.
7799 (setsockopt): Likewise.
7800
7801 2018-11-01 Fredrik Noring <noring@nocrew.org>
7802
7803 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7804 with the ISA override.
7805
7806 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7807
7808 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7809 #endif.
7810
7811 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7812
7813 * manual/errno.texi (EIEIO): Document how translators should
7814 translate the error message.
7815 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7816 printing trailing whitespaces refused by git.
7817 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7818 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7819 * hurd/Makefile (user-interfaces): Add pci.
7820
7821 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7822
7823 * conform/linknamespace.py: New file.
7824 * conform/linknamespace.pl: Remove file.
7825 * conform/Makefile ($(linknamespace-header-tests)): Use
7826 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7827 option.
7828
7829 2018-10-30 Florian Weimer <fweimer@redhat.com>
7830
7831 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7832 memory leaks.
7833
7834 2018-10-30 Florian Weimer <fweimer@redhat.com>
7835
7836 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7837
7838 2018-10-30 Florian Weimer <fweimer@redhat.com>
7839
7840 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7841 support_blob_repeat.
7842
7843 2018-10-30 Florian Weimer <fweimer@redhat.com>
7844
7845 Avoid spurious test failures in stdlib/test-bz22786.
7846 * support/Makefile (libsupport-routines): Add blob_repeat.
7847 (tests): Add tst-support_blob_repeat.
7848 * support/blob_repeat.h: New file.
7849 * support/blob_repeat.c: Likewise.
7850 * support/tst-support_blob_repeat.c: Likewise.
7851 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7852 support_blob_repeat_allocate.
7853
7854 2018-10-30 Andreas Schwab <schwab@suse.de>
7855
7856 [BZ #23125]
7857 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7858 Don't use tail call.
7859 * elf/tst-unwind-main.c: New file.
7860 * elf/Makefile (tests): Add tst-unwind-main.
7861 (CFLAGS-tst-unwind-main.c): Define.
7862
7863 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7864
7865 [BZ #23791]
7866 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7867 n_cs_precedes to 0.
7868 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7869
7870 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7871
7872 * conform/glibcconform.py: Do not import shutil.
7873 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7874 of mkdtemp.
7875
7876 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7877 critic_missing for versions before 3.4.
7878 * configure: Regenerated.
7879 * manual/install.texi (Tools for Compilation): Document
7880 requirement for Python to build glibc.
7881 * INSTALL: Regenerated.
7882 * Rules [PYTHON]: Make code unconditional.
7883 * benchtests/Makefile [PYTHON]: Likewise.
7884 * conform/Makefile [PYTHON]: Likewise.
7885 * manual/Makefile [PYTHON]: Likewise.
7886 * math/Makefile [PYTHON]: Likewise.
7887
7888 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7889
7890 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7891 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7892 answer to interrupt_operation, return EIEIO instead of EINTR.
7893 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7894 _hurd_intr_rpc_msg_about_to global point to start of controlled
7895 assembly snippet. Make it check canceled flag.
7896 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7897 the _hurd_intr_rpc_msg_about_to point.
7898 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7899 issue, remove cancel flag check.
7900
7901 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7902
7903 * scripts/build-many-glibcs.py: Remove compatibility for missing
7904 os.cpu_count and re.fullmatch.
7905
7906 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7907
7908 [BZ #23822]
7909 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7910 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7911 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7912
7913 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7914
7915 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7916 macro.
7917
7918 2018-10-25 Florian Weimer <fweimer@redhat.com>
7919
7920 [BZ #23562]
7921 [BZ #23821]
7922 XFAIL siginfo_t si_band conform test on sparc64.
7923 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7924 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7925 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7926 (conformtest-xfail-conds): Add sparc64-linux.
7927 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7928 sparc64.
7929 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7930
7931 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7932
7933 * elf/elf.h (NT_MIPS_DSP): New macro.
7934 (NT_MIPS_FP_MODE): Likewise.
7935
7936 2018-10-25 Zong Li <zong@andestech.com>
7937
7938 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7939 name by adding the file extension (.so).
7940
7941 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7942
7943 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7944 (test-xfail-ISO11/threads.h/linknamespace,
7945 test-xfail-ISO11/threads.h/conform): Add.
7946
7947 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7948
7949 * math/gen-libm-test.py: Import os.
7950 (ALL_FLOATS_MANUAL): New constant.
7951 (ALL_FLOATS_SUFFIX): Likewise.
7952 (Ulps.all_functions): New function.
7953 (real_all_ulps): Likewise.
7954 (generate_err_table_sub): Likewise.
7955 (generate_err_table): Likewise.
7956 (main): Handle -s and -m options.
7957 * manual/libm-err-tab.pl: Remove.
7958 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7959 instead of libm-err-tab.pl.
7960 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7961 != no].
7962 * manual/install.texi (Tools for Compilation): Document
7963 requirement for Python to build manual.
7964 * INSTALL: Regenerated.
7965
7966 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7967
7968 * bits/time64.h: New file.
7969 * include/time.h: Replace internal_time_t with __time64_t.
7970 * posix/bits/types (__time64_t): Add.
7971 * stdlib/Makefile: Add bits/time64.h to includes.
7972 * time/tzfile.c: Replace internal_time_t with __time64_t.
7973
7974 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7975
7976 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7977 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7978 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7979 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7980 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7981 prototype.
7982 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7983 * posix/spawn_faction_addclose.c
7984 (__posix_spawn_file_actions_addclose): Add hidden definition.
7985 * posix/spawn_faction_adddup2.c
7986 (__posix_spawn_file_actions_adddup2): Likewise.
7987 * posix/spawn_faction_destroy.c
7988 (__posix_spawn_file_actions_destroy): Likewise.
7989 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7990 Likewise.
7991 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7992 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7993 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7994 Likewise.
7995 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7996 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7997 Likewise.
7998
7999 2018-10-24 Andreas Schwab <schwab@suse.de>
8000
8001 [BZ #18093]
8002 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
8003 format cache.
8004 * elf/cache.c (print_cache): Likewise.
8005
8006 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
8007
8008 * bits/timesize.h: New file.
8009 * stdlib/Makefile (headers): Add bits/timesize.h.
8010 * sysdeps/unix/sysv/linux/bits/msq-pad.h
8011 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
8012 * sysdeps/unix/sysv/linux/bits/sem-pad.h
8013 (__SEM_PAD_AFTER_TIME): Likewise.
8014 * sysdeps/unix/sysv/linux/bits/shm-pad.h
8015 (__SHM_PAD_AFTER_TIME): Likewise.
8016 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
8017 (__MSQ_PAD_BEFORE_TIME): Likewise.
8018 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
8019 (__SEM_PAD_BEFORE_TIME): Likewise.
8020 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
8021 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8022 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
8023 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
8024 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
8025 (__MSQ_PAD_BEFORE_TIME): Likewise.
8026 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
8027 (__SEM_PAD_BEFORE_TIME): Likewise.
8028 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
8029 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
8030 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
8031 (__MSQ_PAD_BEFORE_TIME): Likewise.
8032 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
8033 (__SEM_PAD_BEFORE_TIME): Likewise.
8034 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
8035 (__SHM_PAD_BEFORE_TIME): Likewise.
8036 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
8037 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8038 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
8039
8040 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
8041
8042 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
8043 USE_RDTSCP is defined.
8044 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
8045 USE_RDTSCP is defined.
8046
8047 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8048
8049 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
8050 defined.
8051
8052 [BZ #23709]
8053 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
8054 independently of other flags.
8055
8056 2018-10-23 Florian Weimer <fweimer@redhat.com>
8057
8058 * time/tst-mktime2.c (N_STRINGS): Remove.
8059 (set_timezone): New function.
8060 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8061 (mktime_test1): Report localtime failure and check errno value.
8062 Use TEST_COMPARE.
8063 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8064 (do_test): Remove alarm call. Use set_timezone and array_length.
8065
8066 2018-10-23 Andreas Schwab <schwab@suse.de>
8067
8068 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8069 (__start_context): Use END instead of PSEUDO_END.
8070
8071 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8072
8073 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8074 version to 4.19.
8075
8076 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8077 version to 4.19.
8078
8079 [BZ #23793]
8080 * wcsmbs/c32rtomb.c: New file.
8081 * wcsmbs/mbrtoc32.c: Likewise.
8082 * wcsmbs/tst-c32-state.c: Likewise.
8083 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8084 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8085 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8086 (tests): Add tst-c32-state.
8087 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8088 $(gen-locales).
8089
8090 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8091
8092 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8093 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8094
8095 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8096
8097 [BZ #23794]
8098 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8099 pair and return 0 in that case, and use saved character to
8100 interpret following character.
8101 * wcsmbs/tst-c16-surrogate.c: New file.
8102 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8103 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8104 Depend on $(gen-locales)
8105
8106 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8107
8108 [BZ #23562]
8109 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8110 (struct siginfo_t): Use correct type for si_band.
8111
8112 2018-10-19 Florian Weimer <fweimer@redhat.com>
8113
8114 [BZ #23689]
8115 * resource/bits/types/struct_rusage.h (struct rusage): Update
8116 comment on struct. Remove extraneous field comment.
8117
8118 2018-10-18 David S. Miller <davem@davemloft.net>
8119
8120 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8121 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8122 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8123 sysdep_routines in subdir elf.
8124 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8125 version for __vdso_clock_gettime.
8126 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8127 Define.
8128 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8129 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8130
8131 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8132
8133 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8134
8135 * sysdeps/i386/init-arch.h: Removed.
8136 * sysdeps/i386/i586/init-arch.h: Likewise.
8137 * sysdeps/i386/i686/init-arch.h: Likewise.
8138 * sysdeps/i386/i686/hp-timing.h: Likewise.
8139 * sysdeps/x86_64/hp-timing.h: Likewise.
8140 * sysdeps/i386/isa.h: New file.
8141 * sysdeps/i386/i586/isa.h: Likewise.
8142 * sysdeps/i386/i686/isa.h: Likewise.
8143 * sysdeps/x86_64/isa.h: Likewise.
8144 * sysdeps/x86/hp-timing.h: New file.
8145 * sysdeps/x86/init-arch.h: Include <isa.h>.
8146
8147 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8148
8149 * math/libm-test-pow.inc (pow_test_data): Do not allow
8150 divide-by-zero exception for pow(+/- 0, -Inf).
8151
8152 2018-10-17 Zack Weinberg <zackw@panix.com>
8153
8154 * manual/job.texi (Job Control is Optional): Remove node, as
8155 job control has not been optional in quite some time.
8156 (Job Control): Mention briefly that systems older than
8157 POSIX.1-2001 might not support job control.
8158 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8159 defined on systems conforming to POSIX.1-2001.
8160
8161 2018-10-17 Arjun Shankar <arjun@redhat.com>
8162
8163 [BZ #22062]
8164 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8165 indentation.
8166 * (__gconv_read_conf): Mark function static.
8167 * (once): New static variable.
8168 * (__gconv_load_conf): New function.
8169 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8170 * iconv/gconv_db.c (once): Remove static variable.
8171 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8172 __gconv_read_conf.
8173 * (__gconv_find_transform): Likewise.
8174 * iconv/tst-iconv-mt.c: New test.
8175 * iconv/Makefile: Add tst-iconv_mt.
8176
8177 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8178
8179 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8180 bits/shm-pad.h.
8181 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8182 (shmatt_t): Define as __syscall_ulong_t.
8183 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8184 and [__SHM_PAD_AFTER_TIME].
8185 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8186 Define shm_segsz and associated padding based on
8187 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8188 Use __syscall_ulong_t instead of unsigned long int.
8189 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8190 unsigned long int.
8191 [__USE_MISC] (struct shm_info): Likewise.
8192 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8193 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8194 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8195 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8196 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8197 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8198 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8199 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8200 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8201 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8202 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8203
8204 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8205 bits/shmlba.h.
8206 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8207 (SHMLBA): Remove macro.
8208 (__getpagesize): Remove function declaration.
8209 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8210 <bits/shmlba.h>.
8211 (SHMLBA): Remove macro.
8212 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8213 <bits/shmlba.h>.
8214 (SHMLBA): Remove macro.
8215 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8216 <bits/shmlba.h>.
8217 (SHMLBA): Remove macro.
8218 (__getpagesize): Remove function declaration.
8219 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8220 <bits/shmlba.h>.
8221 (SHMLBA): Remove macro.
8222 (__getshmlba): Remove function declaration.
8223 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8224 (SHMLBA): Remove macro.
8225 (__getpagesize): Remove function declaration.
8226 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8227 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8228 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8229 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8230 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8231 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8232 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8233 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8234 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8235 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8236
8237 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8238
8239 [BZ #23275]
8240 * nptl/tst-mutex10.c: New File.
8241 * nptl/Makefile (tests): Add tst-mutex10.
8242 (tst-mutex10-ENV): New variable.
8243 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8244 Ensure that elision path is used if elision is available.
8245 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8246 Likewise.
8247 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8248 Likewise.
8249 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8250 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8251 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8252 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8253 Likewise.
8254 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8255 (__pthread_mutex_cond_lock_adjust): Likewise.
8256 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8257 Likewise.
8258 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8259 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8260 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8261 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8262 Add comments.
8263 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8264 Use atomic_load_relaxed and atomic_store_relaxed.
8265 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8266 Use atomic_store_relaxed.
8267
8268 2018-10-17 Andreas Schwab <schwab@suse.de>
8269
8270 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8271 * crypt/badsalttest.c (TIMEOUT): Likewise.
8272 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8273 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8274 * io/test-lfs.c (TIMEOUT): Likewise.
8275 * libio/tst-atime.c (TIMEOUT): Likewise.
8276 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8277 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8278 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8279 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8280 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8281 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8282 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8283 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8284 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8285 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8286 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8287 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8288 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8289 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8290 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8291 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8292 * nptl/tst-once2.c (TIMEOUT): Likewise.
8293 * nptl/tst-once3.c (TIMEOUT): Likewise.
8294 * nptl/tst-once4.c (TIMEOUT): Likewise.
8295 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8296 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8297 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8298 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8299 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8300 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8301 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8302 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8303 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8304 * posix/tst-chmod.c (TIMEOUT): Likewise.
8305 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8306 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8307 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8308 * posix/tst-regex2.c (TIMEOUT): Likewise.
8309 * posix/tst-waitid.c (TIMEOUT): Likewise.
8310 * rt/tst-aio.c (TIMEOUT): Likewise.
8311 * rt/tst-aio10.c (TIMEOUT): Likewise.
8312 * rt/tst-aio4.c (TIMEOUT): Likewise.
8313 * rt/tst-aio5.c (TIMEOUT): Likewise.
8314 * rt/tst-aio6.c (TIMEOUT): Likewise.
8315 * rt/tst-aio64.c (TIMEOUT): Likewise.
8316 * rt/tst-aio7.c (TIMEOUT): Likewise.
8317 * rt/tst-aio9.c (TIMEOUT): Likewise.
8318 * rt/tst-clock.c (TIMEOUT): Likewise.
8319 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8320 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8321 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8322 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8323 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8324 * rt/tst-timer4.c (TIMEOUT): Likewise.
8325 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8326 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8327 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8328 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8329 * time/tst-ftime.c (TIMEOUT): Likewise.
8330 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8331
8332 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8333
8334 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8335 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8336 for thunderX2.
8337
8338 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8339
8340 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8341 bits/sem-pad.h.
8342 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8343 instead of <bits/wordsize.h>.
8344 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8345 and [__SEM_PAD_AFTER_TIME].
8346 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8347 __syscall_ulong_t instead of unsigned long int.
8348 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8349 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8350 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8351 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8352 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8353 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8354 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8355 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8356 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8357 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8358 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8359
8360 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8361
8362 regex: simplify by using intprops.h
8363 [BZ#23744]
8364 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8365 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8366 intprops.h defines them.
8367
8368 regex: __builtin_expect → __glibc_unlikely
8369 [BZ#23744]
8370 This refactoring was prompted by a problem when the regex code is
8371 used as part of Gnulib and when the builder’s compiler does not grok
8372 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8373 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8374 Although this refactoring does not fix the problem directly,
8375 we might as well have Gawk use the now-preferred glibc style for when
8376 __builtin_expect is unavailable.
8377 * posix/regex_internal.h (BE): Remove.
8378 All uses replaced by __glibc_unlikely or __glibc_likely.
8379
8380 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8381
8382 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8383 bits/msq-pad.h.
8384 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8385 instead of <bits/wordsize.h>.
8386 (msgqnum_t): Define as __syscall_ulong_t.
8387 (msglen_t): Likewise.
8388 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8389 and [__MSQ_PAD_AFTER_TIME].
8390 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8391 __syscall_ulong_t instead of unsigned long int.
8392 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8393 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8394 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8395 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8396 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8397 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8398 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8399 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8400 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8401 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8402 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8403
8404 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8405
8406 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8407 (struct shmid_ds): Condition padding after time fields on
8408 [__WORDSIZE == 32].
8409 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8410 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8411 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8412
8413 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8414 (struct semid_ds): Condition padding after time fields on
8415 [__WORDSIZE == 32].
8416 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8417 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8418 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8419 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8420
8421 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8422 (struct msqid_ds): Condition padding after time fields on
8423 [__WORDSIZE == 32].
8424 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8425 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8426 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8427 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8428
8429 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8430
8431 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8432
8433 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8434
8435 * libio/tst-readline.c (TIMEOUT): Define.
8436
8437 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8438
8439 mktime fix for Gnulib + coreutils
8440 [BZ#23745]
8441 This fix affects only Gnulib. Problem discovered when
8442 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8443 * time/mktime.c:
8444 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8445 Do not define since it is not used. Defining an unused static
8446 function prompts a warning from GCC when Coreutils is configured
8447 with --enable-gcc-warnings.
8448
8449 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8450
8451 * benchtests/scripts/compare_bench.py (main): set float type on
8452 threshold argument.
8453
8454 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8455
8456 [BZ #23740]
8457 * localedata/locales/kl_GL (mon): Update, the relative case.
8458 (alt_mon): Add, fill with month names in the nominative case.
8459 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8460 (d_fmt): Set to "%b %d %Y".
8461
8462 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8463
8464 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8465 <bits/mman-linux.h>.
8466 (PROT_READ): Don't define here.
8467 (PROT_WRITE): Likewise.
8468 (PROT_EXEC): Likewise.
8469 (PROT_NONE): Likewise.
8470 (PROT_GROWSDOWN): Likewise.
8471 (PROT_GROWSUP): Likewise.
8472 (MAP_SHARED): Likewise.
8473 (MAP_PRIVATE): Likewise.
8474 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8475 [__USE_MISC] (MAP_FILE): Likewise.
8476 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8477 [__USE_MISC] (MAP_ANON): Likewise.
8478 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8479 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8480 (MCL_CURRENT): Likewise.
8481 (MCL_FUTURE): Likewise.
8482 (MCL_ONFAULT): Likewise.
8483 [__USE_MISC] (MADV_NORMAL): Likewise.
8484 [__USE_MISC] (MADV_RANDOM): Likewise.
8485 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8486 [__USE_MISC] (MADV_WILLNEED): Likewise.
8487 [__USE_MISC] (MADV_DONTNEED): Likewise.
8488 [__USE_MISC] (MADV_FREE): Likewise.
8489 [__USE_MISC] (MADV_REMOVE): Likewise.
8490 [__USE_MISC] (MADV_DONTFORK): Likewise.
8491 [__USE_MISC] (MADV_DOFORK): Likewise.
8492 [__USE_MISC] (MADV_HWPOISON): Likewise.
8493 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8494 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8495 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8496 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8497 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8498 (__MAP_ANONYMOUS): New macro.
8499 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8500 <bits/mman-linux.h> inclusion.
8501 (MAP_FIXED): Likewise.
8502 (MS_SYNC): Likewise.
8503 (MS_ASYNC): Likewise.
8504 (MS_INVALIDATE): Likewise.
8505 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8506 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8507 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8508 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8509 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8510 [__USE_MISC] (MADV_DODUMP): Likewise.
8511 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8512 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8513
8514 [BZ #23735]
8515 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8516 Define.
8517 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8518 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8519 Add test-nldbl-redirect.
8520 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8521 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8522 $(objpfx)libnldbl_nonshared.a.
8523
8524 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8525
8526 * support/support.h (support_objdir_elf_ldso): New variable.
8527 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8528 * support/Makefile (CFLAGS-support_paths.c): Add definition
8529 for OBJDIR_ELF_LDSO_PATH.
8530 * support/test-container.c (main): Search for the ld.so
8531 which is also used by the testsuite.
8532
8533 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8534
8535 [BZ #20209]
8536 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8537 should be "sap" rather than "sab".
8538 (day): Fix spelling of Sunday, should be "sapaat" rather than
8539 "sabaat".
8540
8541 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8542
8543 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8544
8545 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8546
8547 [BZ #19444]
8548 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8549 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8550 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8551
8552 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8553
8554 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8555
8556 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8557
8558 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8559 Add -mrtm.
8560 (CFLAGS-elision-unlock.c): Likewise.
8561 (CFLAGS-elision-timed.c): Likewise.
8562 (CFLAGS-elision-trylock.c): Likewise.
8563 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8564
8565 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8566
8567 [BZ #21037]
8568 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8569 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8570 new fd_to_filename interface.
8571 * libio/freopen64.c (freopen64): Likewise.
8572 * libio/tst-memstream.h: New file.
8573 * libio/tst-memstream4.c: Likewise.
8574 * libio/tst-wmemstream4.c: Likewise.
8575 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8576 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8577 and remove internal dynamic allocation.
8578
8579 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8580
8581 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8582 (MREMAP_MAYMOVE): Do not define here.
8583 [__USE_GNU] (MREMAP_FIXED): Likewise.
8584 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8585 (MREMAP_MAYMOVE): Define here instead.
8586 [__USE_GNU] (MREMAP_FIXED): Likewise.
8587 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8588 (MREMAP_MAYMOVE): Remove.
8589 [__USE_GNU] (MREMAP_FIXED): Likewise.
8590
8591 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8592
8593 * math/fromfp.h: Do not include <math_private.h>.
8594 * math/s_cacosh_template.c: Likewise.
8595 * math/s_casin_template.c: Likewise.
8596 * math/s_casinh_template.c: Likewise.
8597 * math/s_ccos_template.c: Likewise.
8598 * math/s_cproj_template.c: Likewise.
8599 * math/s_fdim_template.c: Likewise.
8600 * math/s_fmaxmag_template.c: Likewise.
8601 * math/s_fminmag_template.c: Likewise.
8602 * math/s_iseqsig_template.c: Likewise.
8603 * math/s_ldexp_template.c: Likewise.
8604 * math/s_nextdown_template.c: Likewise.
8605 * math/w_log1p_template.c: Likewise.
8606 * math/w_scalbln_template.c: Likewise.
8607 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8608 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8609 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8610 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8611 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8612 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8613 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8614 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8615 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8616 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8617 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8618 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8619 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8620 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8621 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8622 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8623 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8624 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8625 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8626 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8627 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8628 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8629 * sysdeps/ieee754/k_standardf.c: Likewise.
8630 * sysdeps/ieee754/k_standardl.c: Likewise.
8631 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8632 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8633 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8634 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8635 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8636 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8637 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8638 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8639 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8640 * sysdeps/ieee754/s_signgam.c: Likewise.
8641 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8642 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8643 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8644 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8645 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8646 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8647 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8648 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8649 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8650 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8651 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8652 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8653 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8654 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8655 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8656 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8657 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8658 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8659 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8660 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8661 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8662 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8663 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8664 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8665 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8666 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8667 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8668 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8669 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8670 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8671 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8672 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8673 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8674 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8675 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8676 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8677 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8678 <math_private.h>.
8679 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8680
8681 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8682
8683 [BZ #23716]
8684 * sysdeps/i386/dl-cet.c: Removed.
8685 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8686 prototype.
8687 (_dl_runtime_profile_shstk): Likewise.
8688 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8689 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8690
8691 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8692
8693 [BZ #23579]
8694 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8695 do_test_with_invalid_iov): New tests.
8696 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8697 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8698 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8699 errno is ENOSYS.
8700 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8701 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8702 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8703
8704 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8705
8706 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8707 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8708 (MATH_REDIRECT_BINARY_ARGS): New macro.
8709 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8710 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8711 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8712 header inclusion.
8713 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8714 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8715 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8716 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8717 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8718 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8719 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8720 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8721 Likewise.
8722 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8723 Likewise.
8724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8725 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8726 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8727 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8728 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8729 Likewise.
8730 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8731 Likewise.
8732 * sysdeps/generic/math_private_calls.h
8733 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8734 Do not declare and define as an inline function.
8735 * math/divtc3.c (__divtc3): Use copysign functions instead of
8736 __copysign variants.
8737 * math/multc3.c (__multc3): Likewise.
8738 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8739 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8740 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8741 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8742 Likewise.
8743 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8744 (__ieee754_yn): Likewise.
8745 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8746 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8747 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8748 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8749 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8750 (__sin): Likewise.
8751 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8752 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8753 Likewise.
8754 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8755 Likewise.
8756 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8757 Likewise.
8758 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8759 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8760 Likewise.
8761 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8762 (__ieee754_ynf): Likewise.
8763 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8764 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8765 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8766 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8767 Likewise.
8768 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8769 (__ieee754_ynl): Likewise.
8770 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8771 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8772 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8773 Likewise.
8774 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8775 (__ieee754_ynl): Likewise.
8776 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8777 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8778 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8779 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8780 Likewise.
8781 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8782 (__ieee754_ynl)
8783 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8784 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8785 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8786 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8787 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8788
8789 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8790 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8791 using MATH_REDIRECT.
8792 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8793 header inclusion.
8794 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8795 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8796 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8797 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8798 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8799 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8800 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8801 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8802 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8804 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8805 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8806 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8807 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8808 (round): Redirect to __round.
8809 (__roundl): Call round instead of __round.
8810 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8811 Remove macro.
8812 [_ARCH_PWR5X] (__roundf): Likewise.
8813 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8814 functions instead of __round variants.
8815 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8816 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8817 Likewise.
8818 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8819 Likewise.
8820 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8821 Likewise.
8822 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8823 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8824 __lroundl.
8825 (__ieee754_expl): Call roundl instead of __roundl.
8826
8827 2018-09-27 Andreas Schwab <schwab@suse.de>
8828
8829 [BZ #23717]
8830 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8831 (do_test): Make st1 static.
8832
8833 2018-09-26 Andreas Schwab <schwab@suse.de>
8834
8835 [BZ #23707]
8836 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8837 * elf/Makefile (tests): Add tst-unwind-ctor.
8838 (modules-names): Add tst-unwind-ctor-lib.
8839 ($(objpfx)tst-unwind-ctor): Depend on
8840 $(objpfx)tst-unwind-ctor-lib.so.
8841
8842 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8843
8844 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8845 file. Most contents moved from ....
8846 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8847 and include <bits/mman-map-flags-generic.h>.
8848 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8849 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8850 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8851 <bits/mman-map-flags-generic.h>.
8852 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8853 macros defined in <bits/mman-map-flags-generic.h>.
8854 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8855 <bits/mman-map-flags-generic.h>.
8856 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8857 defined in <bits/mman-map-flags-generic.h>.
8858
8859 2018-09-26 Andreas Schwab <schwab@suse.de>
8860
8861 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8862 output.
8863
8864 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8865 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8866 Fangrui Song <maskray@google.com>
8867
8868 [BZ #20480]
8869 * config.make.in (have-textrel_ifunc): New define.
8870 * configure.ac: Add check if linker supports textrel relocation with
8871 ifunc.
8872 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8873 tst-ifunc-textrel.
8874 (CFLAGS-tst-ifunc-textrel.c): New rule.
8875 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8876 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8877 * elf/tst-ifunc-textrel.c: New file.
8878
8879 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8880
8881 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8882 <bits/procfs-prregset.h>.
8883 (prgregset_t): Define using __prgregset_t.
8884 (prfpregset_t): Define using __prfpregset_t.
8885 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8886 (sysdep_headers): Add bits/procfs-prregset.h.
8887 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8888 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8889 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8890 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8891
8892 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8893 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8894 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8895 pr_uid and pr_gid.
8896 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8897 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8898 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8899 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8900 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8901 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8902 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8903 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8904 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8905 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8906 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8907 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8908 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8909 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8910 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8911 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8912 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8913 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8914 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8915 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8916 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8917 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8918 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8919 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8920
8921 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8922 AArch64 version. Include <bits/procfs.h>.
8923 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8924 (sysdep_headers): Add bits/procfs.h.
8925 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8926 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8927 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8928 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8929 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8930 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8931 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8932 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8933 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8934 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8935 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8936 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8937 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8938 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8939 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8940 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8941 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8942
8943 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8944
8945 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8946 Use libsupport.
8947
8948 2018-09-25 Arjun Shankar <arjun@redhat.com>
8949
8950 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8951 (__gconv_max_path_elem_len): Likewise.
8952 (__gconv_nmodules): Likewise.
8953 (__gconv_get_path): Likewise.
8954 (path_elem): Move to ...
8955 * iconv/gconv_conf.c: ... here.
8956 (__gconv_get_path): Mark function static.
8957 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8958 * iconv/gconv_open.c: ... here.
8959
8960 2018-09-24 Andreas Schwab <schwab@suse.de>
8961
8962 * scripts/haveversions.awk: New file.
8963 * Makerules ($(common-objpfx)Versions.def)
8964 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8965 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8966 Move rules ...
8967 * Makeconfig ($(common-objpfx)Versions.def)
8968 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8969 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8970 ... here.
8971 ($(common-objpfx)Versions.mk): New rule. Include it.
8972 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8973 Emit error if build-obsolete-nsl = yes.
8974 * manual/install.texi (Configuring and compiling): Describe
8975 --enable-obsolete-nsl as unavaiable after version 2.28.
8976 * INSTALL: Regenerate.
8977
8978 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8979
8980 * NEWS: Add note about new TLE support on powerpc64le.
8981 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8982 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8983 __ununsed1.
8984 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8985 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8986 * sysdeps/powerpc/powerpc32/sysdep.h,
8987 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8988 ABORT_TRANSACTION): Remove macros.
8989 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8990 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8991 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8992 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8993 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8994 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8995 usage.
8996 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8997
8998 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8999
9000 [BZ #10425]
9001 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
9002 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
9003 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
9004 which is the same as in it_IT.
9005 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
9006 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
9007
9008 2018-09-20 Joseph Myers <joseph@codesourcery.com>
9009
9010 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9011 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
9012 using MATH_REDIRECT.
9013 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
9014 header inclusion.
9015 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
9016 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9017 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
9018 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9019 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9020 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
9022 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
9023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
9024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
9025 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9026 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9027 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
9028 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
9029 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
9030 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
9031 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
9032 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9033 (ceil): Redirect to __ceil.
9034 (floor): Redirect to __floor.
9035 (trunc): Redirect to __trunc.
9036 (__truncl): Call trunc instead of __trunc.
9037 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
9038 Remove macro.
9039 [_ARCH_PWR5X] (__truncf): Likewise.
9040 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
9041 trunc functions instead of __trunc variants.
9042 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9043 Likewise.
9044 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9045 Likewise.
9046 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9047 Likewise.
9048 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9049 Likewise.
9050
9051 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
9052 [__i586__ || __pentium__].
9053 [__i486__]: Handle explicitly.
9054 (HAS_CPUID): Define to 1 if above macros are undefined.
9055 (HAS_I586): Likewise.
9056 (HAS_I686): Likewise.
9057
9058 2018-09-20 Florian Weimer <fweimer@redhat.com>
9059
9060 * misc/tst-gethostid.c: New file.
9061 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9062 (tst-gethostid): Link with -ldl.
9063
9064 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9065
9066 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9067 value from gethostbyname_r.
9068
9069 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9070
9071 * stdlib/tst-setcontext9.c (f1): Rename to...
9072 (f1a): ... this.
9073 (f1b): New function implementing lower half of f1 in alternate stack.
9074
9075 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9076
9077 Fix mktime localtime offset confusion
9078 [BZ #23603]
9079 * include/time.h (__mktime_internal): The localtime offset is now
9080 of type long int instead of time_t. This is the longstanding type
9081 in glibc, and it is more than enough to represent difference
9082 between localtime and gmtime even if it is 32 bits and time_t is
9083 64. Changing it now will let us avoid an unnecessary change when
9084 time_t is widened to 64 bits on 32-bit platforms.
9085 * time/mktime-internal.h (mktime_offset_t): Now long int.
9086
9087 Merge mktime, timegm from upstream Gnulib
9088 [BZ #23603][BZ #16346]
9089 This fixes some obscure problems with integer overflow.
9090 Although it looks scary, it is almost all a byte-for-byte copy
9091 from Gnulib, and the Gnulib code has been tested reasonably well.
9092 * include/intprops.h: New file, copied from Gnulib.
9093 * include/verify.h, time/mktime-internal.h:
9094 New tiny files, simplified from Gnulib.
9095 * time/mktime.c: Copy from Gnulib. This has the following changes:
9096 Do not include config.h if DEBUG_MKTIME is nonzero.
9097 Include stdbool.h, intprops.h, verify.h.
9098 Include string.h only if needed.
9099 Include stdlib.h on MS-Windows.
9100 Include mktime-internal.h.
9101 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9102 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9103 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9104 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9105 simplify later conditionals; default the others to zero. Use
9106 these conditionals to express only the code needed on the current
9107 platform. In uses of these conditionals, explicitly spell out how
9108 _LIBC affects things, so it’s easier to review from a glibc
9109 viewpoint.
9110 (WRAPV): Remove; no longer needed now that we have
9111 systematic overflow checking.
9112 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9113 compartmentalize tzset issues. Move system-dependent tzsettish
9114 code here from mktime.
9115 (verify): Remove; now done by verify.h. All uses changed.
9116 (long_int): Use a more-conservative definition, to avoid
9117 integer overflow.
9118 (SHR): Remove, replacing with ...
9119 (shr): New function, which means we needn’t worry about side
9120 effects in args, and conversion analysis is simpler.
9121 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9122 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9123 (time_t_avg, time_t_add_ok): Remove.
9124 (mktime_min, mktime_max): New constants.
9125 (leapyear, isdst_differ): Use bool for booleans.
9126 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9127 Use long_int, not time_t, for mktime differences.
9128 (long_int_avg): New function, replacing time_t_avg.
9129 INT_ADD_WRAPV replaces time_t_add_ok.
9130 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9131 All uses changed.
9132 (convert_time): New function.
9133 (ranged_convert): Use it.
9134 (__mktime_internal): Last arg now points to mktime_offset_t, not
9135 time_t. All uses changed. This is a no-op on glibc, where
9136 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9137 offset guess. Directly check for integer overflow instead of
9138 using a heuristic that works only 99.9...% of the time.
9139 Access *OFFSET only once, to avoid an unlikely race if the
9140 compiler delays a load and if this cascades into a signed integer
9141 overflow.
9142 (mktime): Move tzsettish code to my_tzset, and move
9143 localtime_offset to within mktime so that it doesn’t
9144 need a separate ifdef.
9145 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9146 instead of localtime.
9147 * time/timegm.c: Copy from Gnulib. This has the following changes:
9148 Include mktime-internal.h.
9149 [!_LIBC]: Include config.h and time.h. Do not include
9150 timegm.h or time_r.h. Make __mktime_internal a macro,
9151 and include mktime-internal.h to get its declaration.
9152 (timegm): Temporary is now mktime_offset_t, not time_t.
9153 This affects only Gnulib.
9154
9155 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9156
9157 [BZ #23637]
9158 * string/test-strstr.c (pr23637): New function.
9159 (test_main): Add tests with longer needles.
9160 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9161 * string/strstr.c (AVAILABLE): Likewise.
9162
9163 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9164
9165 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9166
9167 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9168
9169 * NEWS: Mention pow improvements.
9170 * math/Makefile (type-double-routines): Add e_pow_log_data.
9171 * sysdeps/generic/math_private.h (__exp1): Remove.
9172 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9173 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9174 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9175 contraction.
9176 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9177 (exp_inline): Remove.
9178 (__ieee754_exp): Only single double input is handled.
9179 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9180 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9181 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9182 (__pow_log_data): Define.
9183 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9184 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9185 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9186 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9187 contraction.
9188 (CFLAGS-e_pow-fma4.c): Likewise.
9189
9190 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9191
9192 Simplify tzfile fstat failure code
9193 [BZ #21716]
9194 * time/tzfile.c (__tzfile_read): Simplify slightly.
9195
9196 Fix tzfile low-memory assertion failure
9197 [BZ #21716]
9198 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9199 when registering time zone abbreviations.
9200
9201 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9202
9203 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9204 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9205 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9206 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9207 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9208 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9209 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9210 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9211 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9212
9213 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9214 __ceil.
9215 (__ceill): Call ceil instead of __ceil.
9216 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9217 __floor.
9218 (__floorl): Call floor instead of __floor.
9219
9220 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9221
9222 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9223 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9224 using MATH_REDIRECT.
9225 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9226 header inclusion.
9227 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9228 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9229 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9230 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9231 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9232 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9233 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9234 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9235 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9236 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9237 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9238 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9239 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9240 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9241 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9242 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9243 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9244 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9245 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9246 Remove macro.
9247 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9248 functions instead of __ceil variants.
9249 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9250 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9251 Likewise.
9252 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9253 Likewise.
9254 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9255 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9256 Likewise.
9257 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9258 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9259
9260 [BZ #21286]
9261 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9262 constant.
9263 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9264 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9265 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9266 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9267 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9268 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9269 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9270 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9271 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9272 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9273 (ILL_BADIADDR): Remove constant.
9274 (TRAP_BRANCH): Likewise.
9275 (TRAP_HWBKPT): Likewise.
9276
9277 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9278
9279 [BZ #23656]
9280 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9281 Remove [_MIPS_SIM = _ABIN32] conditional case.
9282 (struct elf_prpsinfo): Likewise.
9283
9284 [BZ #23649]
9285 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9286 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9287 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9288 Likewise.
9289 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9290 elf_prpsinfo): Likewise.
9291 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9292 elf_prpsinfo): Likewise.
9293 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9294 Likewise.
9295
9296 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9297 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9298 using MATH_REDIRECT.
9299 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9300 header inclusion.
9301 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9302 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9303 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9304 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9305 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9306 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9307 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9308 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9309 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9310 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9311 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9312 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9313 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9314 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9315 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9316 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9317 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9318 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9319 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9320 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9321 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9322 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9323 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9324 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9325 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9326 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9327 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9328 __rint variants.
9329 * math/e_scalbf.c (invalid_fn): Likewise.
9330 * math/e_scalbl.c (invalid_fn): Likewise.
9331 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9332 Likewise.
9333 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9334 Likewise.
9335 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9336 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9337 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9338 Likewise.
9339 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9340 Likewise.
9341 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9342 Likewise.
9343 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9344 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9345
9346 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9347 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9348 New macro.
9349 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9350 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9351 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9352 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9353 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9354 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9355 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9356 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9357 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9358 && !NO_MATH_REDIRECT] (floor): Likewise.
9359 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9360 header inclusion.
9361 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9362 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9363 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9364 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9365 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9366 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9367 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9368 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9370 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9371 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9372 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9373 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9374 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9375 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9376 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9377 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9378 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9379 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9380 Remove macro.
9381 [_ARCH_PWR5X] (__floorf): Likewise.
9382 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9383 inline function.
9384 [__SSE4_1__] (__floorf): Likewise.
9385 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9386 instead of __floor variants.
9387 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9388 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9389 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9390 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9391 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9392 * math/w_tgamma_compat.c (__tgamma): Likewise.
9393 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9394 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9395 * math/w_tgammal_compat.c (__tgammal): Likewise.
9396 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9397 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9398 Likewise.
9399 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9400 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9401 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9402 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9403 Likewise.
9404 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9405 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9406 Likewise.
9407 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9408 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9409 Likewise.
9410 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9411 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9412 Likewise.
9413 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9414 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9415 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9416 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9417 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9418 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9419
9420 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9421
9422 * elf/Makefile (modules-names-tests): New variable.
9423
9424 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9425
9426 * NEWS: Mention log2 improvements.
9427 * math/Makefile (type-double-routines): Add e_log2_data.
9428 * sysdeps/i386/fpu/e_log2_data.c: New file.
9429 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9430 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9431 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9432 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9433 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9434 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9435
9436 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9437
9438 * NEWS: Mention log improvement.
9439 * math/Makefile (type-double-routines): Add e_log_data.
9440 * sysdeps/i386/fpu/e_log_data.c: New file.
9441 * sysdeps/ia64/fpu/e_log_data.c: New file.
9442 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9443 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9444 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9445 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9446 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9447 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9448
9449 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9450 Xuepeng Guo <xuepeng.guo@intel.com>
9451
9452 [BZ #23606]
9453 * sysdeps/i386/start.S: Include <sysdep.h>
9454 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9455 enabled. Add cfi_undefined (eip).
9456
9457 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9458
9459 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9460 (MOVQ): Likewise.
9461 (EXTRACT_WORDS64): Likewise.
9462 (INSERT_WORDS64): Likewise.
9463 (GET_FLOAT_WORD): Likewise.
9464 (SET_FLOAT_WORD): Likewise.
9465
9466 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9467 argument.
9468 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9469 build, but not for second build if --full-gcc. Use
9470 --enable-languages=all for second build if --full-gcc.
9471 (get_parser): Add --full-gcc option.
9472 (main): Update call to Context.
9473
9474 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9475
9476 [BZ #10797]
9477 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9478 Single Quotation Mark).
9479 (thousands_sep): Likewise.
9480 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9481 * localedata/locales/it_IT (thousands_sep): Use ".".
9482 (grouping): Use "3;3".
9483
9484 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9485
9486 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9487 x86_64 and i686 configs using --enable-obsolete-rpc
9488 --enable-obsolete-nsl.
9489
9490 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9491
9492 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9493
9494 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9495
9496 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9497 Increment size of new_argv by one.
9498
9499 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9500
9501 [BZ #17426]
9502 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9503 * localedata/locales/ar_IN (d_fmt): Likewise.
9504 * localedata/locales/bhb_IN (d_fmt): Likewise.
9505 * localedata/locales/bho_IN (d_fmt): Likewise.
9506 * localedata/locales/bn_BD (d_fmt): Likewise.
9507 * localedata/locales/bn_IN (d_fmt): Likewise.
9508 * localedata/locales/doi_IN (d_fmt): Likewise.
9509 * localedata/locales/gu_IN (d_fmt): Likewise.
9510 * localedata/locales/hi_IN (d_fmt): Likewise.
9511 * localedata/locales/hne_IN (d_fmt): Likewise.
9512 * localedata/locales/kn_IN (d_fmt): Likewise.
9513 * localedata/locales/mag_IN (d_fmt): Likewise.
9514 * localedata/locales/mai_IN (d_fmt): Likewise.
9515 * localedata/locales/mjw_IN (d_fmt): Likewise.
9516 * localedata/locales/ml_IN (d_fmt): Likewise.
9517 * localedata/locales/mni_IN (d_fmt): Likewise.
9518 * localedata/locales/mr_IN (d_fmt): Likewise.
9519 * localedata/locales/pa_IN (d_fmt): Likewise.
9520 * localedata/locales/raj_IN (d_fmt): Likewise.
9521 * localedata/locales/sat_IN (d_fmt): Likewise.
9522 * localedata/locales/sd_IN (d_fmt): Likewise.
9523 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9524 * localedata/locales/ta_IN (d_fmt): Likewise.
9525 * localedata/locales/ta_LK (d_fmt): Likewise.
9526 * localedata/locales/tcy_IN (d_fmt): Likewise.
9527 * localedata/locales/ur_IN (d_fmt): Likewise.
9528
9529 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9530 * localedata/locales/ks_IN (d_fmt): Likewise.
9531 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9532
9533 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9534 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9535 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9536 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9537
9538 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9539
9540 * NEWS: Mention exp and exp2 improvements.
9541 * math/Makefile (libm-support): Remove t_exp.
9542 (type-double-routines): Add math_err and e_exp_data.
9543 * sysdeps/aarch64/libm-test-ulps: Update.
9544 * sysdeps/arm/libm-test-ulps: Update.
9545 * sysdeps/i386/fpu/e_exp_data.c: New file.
9546 * sysdeps/i386/fpu/math_err.c: New file.
9547 * sysdeps/i386/fpu/t_exp.c: Remove.
9548 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9549 * sysdeps/ia64/fpu/math_err.c: New file.
9550 * sysdeps/ia64/fpu/t_exp.c: Remove.
9551 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9552 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9553 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9554 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9555 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9556 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9557 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9558 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9559 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9560 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9561 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9562 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9563 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9564 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9565 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9566 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9567
9568 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9569
9570 * sysdeps/alpha/fpu/math_private.h: Remove.
9571
9572 * sysdeps/generic/math_private.h
9573 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9574 Move this inline function ....
9575 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9576 * include/math.h [!_ISOMAC]: To here....
9577
9578 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9579
9580 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9581 code ....
9582 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9583 * include/fenv.h [!_ISOMAC]: ... to here.
9584 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9585 (feraiseexcept): Likewise.
9586 * math/fromfp.h: Do not include <fenv_private.h>.
9587 * math/s_cexp_template.c: Likewise.
9588 * math/s_csin_template.c: Likewise.
9589 * math/s_csinh_template.c: Likewise.
9590 * math/s_ctan_template.c: Likewise.
9591 * math/s_ctanh_template.c: Likewise.
9592 * math/s_iseqsig_template.c: Likewise.
9593 * math/w_acos_compat.c: Likewise.
9594 * math/w_acosf_compat.c: Likewise.
9595 * math/w_acosl_compat.c: Likewise.
9596 * math/w_asin_compat.c: Likewise.
9597 * math/w_asinf_compat.c: Likewise.
9598 * math/w_asinl_compat.c: Likewise.
9599 * math/w_j0_compat.c: Likewise.
9600 * math/w_j0f_compat.c: Likewise.
9601 * math/w_j0l_compat.c: Likewise.
9602 * math/w_j1_compat.c: Likewise.
9603 * math/w_j1f_compat.c: Likewise.
9604 * math/w_j1l_compat.c: Likewise.
9605 * math/w_jn_compat.c: Likewise.
9606 * math/w_jnf_compat.c: Likewise.
9607 * math/w_log10_compat.c: Likewise.
9608 * math/w_log10f_compat.c: Likewise.
9609 * math/w_log10l_compat.c: Likewise.
9610 * math/w_log2_compat.c: Likewise.
9611 * math/w_log2f_compat.c: Likewise.
9612 * math/w_log2l_compat.c: Likewise.
9613 * math/w_log_compat.c: Likewise.
9614 * math/w_logf_compat.c: Likewise.
9615 * math/w_logl_compat.c: Likewise.
9616 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9617 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9618 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9619 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9620 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9621 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9622 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9623 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9624 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9625 * sysdeps/ieee754/k_standardl.c: Likewise.
9626 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9627 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9628 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9629 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9630 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9631 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9632 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9633 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9634 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9635 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9636 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9637 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9638 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9639 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9640 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9641 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9642 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9643 * math/w_ilogb_template.c: Include <fenv.h> instead of
9644 <fenv_private.h>.
9645 * math/w_llogb_template.c: Likewise.
9646 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9647 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9648
9649 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9650
9651 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9652 * math/fromfp.h: Include <fenv_private.h>.
9653 * math/math-narrow.h: Likewise.
9654 * math/s_cexp_template.c: Likewise.
9655 * math/s_csin_template.c: Likewise.
9656 * math/s_csinh_template.c: Likewise.
9657 * math/s_ctan_template.c: Likewise.
9658 * math/s_ctanh_template.c: Likewise.
9659 * math/s_iseqsig_template.c: Likewise.
9660 * math/w_acos_compat.c: Likewise.
9661 * math/w_acosf_compat.c: Likewise.
9662 * math/w_acosl_compat.c: Likewise.
9663 * math/w_asin_compat.c: Likewise.
9664 * math/w_asinf_compat.c: Likewise.
9665 * math/w_asinl_compat.c: Likewise.
9666 * math/w_ilogb_template.c: Likewise.
9667 * math/w_j0_compat.c: Likewise.
9668 * math/w_j0f_compat.c: Likewise.
9669 * math/w_j0l_compat.c: Likewise.
9670 * math/w_j1_compat.c: Likewise.
9671 * math/w_j1f_compat.c: Likewise.
9672 * math/w_j1l_compat.c: Likewise.
9673 * math/w_jn_compat.c: Likewise.
9674 * math/w_jnf_compat.c: Likewise.
9675 * math/w_llogb_template.c: Likewise.
9676 * math/w_log10_compat.c: Likewise.
9677 * math/w_log10f_compat.c: Likewise.
9678 * math/w_log10l_compat.c: Likewise.
9679 * math/w_log2_compat.c: Likewise.
9680 * math/w_log2f_compat.c: Likewise.
9681 * math/w_log2l_compat.c: Likewise.
9682 * math/w_log_compat.c: Likewise.
9683 * math/w_logf_compat.c: Likewise.
9684 * math/w_logl_compat.c: Likewise.
9685 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9686 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9687 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9688 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9689 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9690 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9691 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9692 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9693 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9694 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9695 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9696 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9697 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9698 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9699 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9700 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9701 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9702 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9703 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9704 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9705 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9706 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9707 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9708 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9709 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9710 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9711 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9712 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9713 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9714 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9715 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9716 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9717 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9718 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9719 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9720 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9721 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9722 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9723 * sysdeps/ieee754/k_standardl.c: Likewise.
9724 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9725 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9726 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9727 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9728 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9729 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9730 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9731 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9732 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9733 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9734 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9735 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9736 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9737 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9738 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9739 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9740 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9741 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9742 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9743 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9744 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9745 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9746 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9747 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9748 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9749 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9750 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9751 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9752 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9753 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9754 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9755 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9756 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9757 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9758 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9759 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9760 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9761 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9762 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9763 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9764 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9765 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9766 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9767 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9768 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9769 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9770 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9771 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9772 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9773 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9774 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9775 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9776 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9777 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9778 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9779 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9780 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9781 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9782 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9783 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9784 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9785 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9786 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9787 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9788 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9789 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9790 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9791 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9792 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9793 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9794 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9795
9796 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9797
9798 [BZ #20271]
9799 * include/stdio.h (__libc_fatal): Mention newline in comment.
9800 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9801 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9802 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9803 * nss/nsswitch.c (__nss_next2): Likewise.
9804 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9805 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9806 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9807 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9808 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9809 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9810 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9811 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9812 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9813 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9814 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9815 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9816 (__netlink_assert_response): Likewise.
9817
9818 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9819
9820 * conform/glibcconform.py: New file.
9821 * conform/list-header-symbols.py: Likewise.
9822 * conform/list-header-symbols.pl: Remove.
9823 * conform/Makefile (tests-special): Only add linknamespace tests
9824 if [PYTHON].
9825 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9826
9827 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9828
9829 [BZ #23597]
9830 * support/Makefile (libsupport-routines): Add
9831 support_copy_file_range and xcopy_file_range.
9832 * support/support.h: Include <sys/types.h>.
9833 (support_copy_file_range): New prototype.
9834 * support/support_copy_file_range.c: New file. Copied and
9835 modified from io/copy_file_range-compat.c.
9836 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9837 instead of copy_file_range.
9838 * support/xcopy_file_range.c: New file.
9839 * support/xunistd.h (xcopy_file_range): New prototype.
9840
9841 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9842
9843 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9844 xpthread_create and xpthread_join.
9845
9846 2018-08-30 Florian Weimer <fweimer@redhat.com>
9847
9848 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9849
9850 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9851
9852 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9853 if malloc fails.
9854
9855 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9856
9857 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9858 and minus_oflow as non-finite.
9859
9860 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9861
9862 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9863 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9864 moved to fenv_private.h except for ...
9865 (TOINT_INTRINSICS): Kept in math_private.h.
9866 (roundtoint): Likewise.
9867 (converttoint): Likewise.
9868 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9869 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9870 * sysdeps/arm/math_private.h: Remove.
9871 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9872 ....
9873 * sysdeps/generic/math_private.h: ... this file. Include
9874 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9875 Include <fenv_private.h>. Remove functions and macros moved to
9876 fenv_private.h.
9877 * sysdeps/i386/fpu/math_private.h: Remove.
9878 * sysdeps/mips/math_private.h: Move to ....
9879 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9880 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9881 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9882 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9883 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9884 * sysdeps/powerpc/fpu/math_private.h: Do not include
9885 <fenv_private.h>.
9886 * sysdeps/riscv/rvf/math_private.h: Move to ....
9887 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9888 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9889 <fenv_private.h>.
9890 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9891 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9892 * sysdeps/sparc/fpu/math_private.h: Remove.
9893 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9894 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9895 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9896 <fenv_private.h>.
9897 * sysdeps/x86_64/fpu/math_private.h: Do not include
9898 <sysdeps/i386/fpu/fenv_private.h>.
9899
9900 2018-08-28 Florian Weimer <fweimer@redhat.com>
9901
9902 [BZ #23578]
9903 * posix/tst-regcomp-truncated.c: New file.
9904 * posix/Makefile (tests): Add it.
9905 (tst-regcomp-truncated.out): Depend on generated locales.
9906
9907 2018-08-28 Florian Weimer <fweimer@redhat.com>
9908
9909 * support/test-container.c (main): Treat unshare failure with
9910 EPERM as an unsupported test.
9911
9912 2018-08-28 Florian Weimer <fweimer@redhat.com>
9913
9914 [BZ #23520]
9915 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9916 * nscd/netgroupcache.c
9917 (addgetnetgrentX): Add tofreep parameter. Do not free
9918 heap-allocated buffer.
9919 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9920 (addgetnetgrentX_ignore): New function.
9921 (addgetnetgrent): Call it.
9922 (readdgetnetgrent): Likewise.
9923
9924 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9925
9926 * string/memmem.c: Use memcmp for first match.
9927
9928 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9929
9930 [BZ #17426]
9931 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9932
9933 2018-08-27 DJ Delorie <dj@redhat.com>
9934
9935 * support/Makefile (others): Don't list programs explicitly as a
9936 dependency of "others".
9937
9938 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9939
9940 * sysdeps/generic/math-tests-trap-force.h: New file.
9941 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9942 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9943 * sysdeps/powerpc/math-tests.h: Remove file.
9944 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9945
9946 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9947 Torvald Riegel <triegel@redhat.com>
9948
9949 [BZ #23538]
9950 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9951 Update r to include the set wake-request flag if waiters are
9952 remaining after spinning.
9953
9954 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9955
9956 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9957
9958 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9959
9960 [BZ #23578]
9961 regex: fix uninitialized memory access
9962 I introduced this bug into gnulib in commit
9963 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9964 eventually it was merged into glibc. The bug was found by
9965 project-repo <bugs@feusi.co> and reported here:
9966 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9967 Diagnosis and draft fix reported by Assaf Gordon here:
9968 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9969 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9970 * posix/regex_internal.c (build_wcs_upper_buffer):
9971 Fix bug when mbrtowc returns 0.
9972
9973 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9974
9975 * po/be.po: Update translation.
9976
9977 2018-08-24 DJ Delorie <dj@delorie.com>
9978
9979 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9980 $(libunwind).
9981
9982 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9983
9984 [BZ #23400]
9985 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9986 create temporary files in source tree.
9987
9988 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9989
9990 * sysdeps/generic/math-tests-trap.h: New file.
9991 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9992 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9993 * sysdeps/aarch64/math-tests.h: Remove file.
9994 * sysdeps/arm/math-tests.h: Likewise.
9995 * sysdeps/riscv/math-tests.h: Likewise.
9996 * sysdeps/aarch64/math-tests-trap.h: New file.
9997 * sysdeps/arm/math-tests-trap.h: Likewise.
9998 * sysdeps/riscv/math-tests-trap.h: Likewise.
9999
10000 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
10001
10002 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
10003 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
10004 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
10005 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
10006 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
10007 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
10008 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
10009 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
10010 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
10011 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
10012 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
10013 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
10014 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
10015 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
10016 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
10017 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
10018 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
10019 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
10020
10021 2018-08-23 Joseph Myers <joseph@codesourcery.com>
10022
10023 * sysdeps/generic/math-tests-exceptions.h: New file.
10024 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
10025 (EXCEPTION_TESTS_float): Do not define here.
10026 (EXCEPTION_TESTS_double): Likewise.
10027 (EXCEPTION_TESTS_long_double): Likewise.
10028 (EXCEPTION_TESTS_float128): Likewise.
10029 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
10030 Likewise.
10031 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
10032 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
10033 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
10034 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
10035 * sysdeps/mips/math-tests.h: Likewise.
10036 * sysdeps/nios2/math-tests.h: Likewise.
10037 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10038 (EXCEPTION_TESTS_float): Do not define here.
10039 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
10040 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
10041 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
10042
10043 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10044
10045 * NEWS: Move optimized sinf entry to 2.29.
10046
10047 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
10048
10049 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
10050
10051 2018-08-22 DJ Delorie <dj@redhat.com>
10052
10053 * Makefile (testroot.pristine): New rules to initialize the
10054 test-in-container "testroot".
10055 * Makerules (all-testsuite): Add tests-container.
10056 * Rules (tests-expected): Add tests-container.
10057 (binaries-all-tests): Likewise.
10058 (tests-container): New, run these tests in the testroot container.
10059 * support/Makefile (others): Add *-container, support_paths.c,
10060 xmkdirp, and links-dso-program.
10061 * support/links-dso-program-c.c: New.
10062 * support/links-dso-program.cc: New.
10063 * support/test-container.c: New.
10064 * support/shell-container.c: New.
10065 * support/echo-container.c: New.
10066 * support/true-container.c: New.
10067 * support/xmkdirp.c: New.
10068 * support/xsymlink.c: New.
10069 * support/support_paths.c: New.
10070 * support/support.h: Add support paths prototypes.
10071 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10072
10073 * nss/tst-nss-test3.c: Convert to test-in-container.
10074 * nss/tst-nss-test3.root/: New.
10075
10076 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10077
10078 regex: port Gnulib code to z/OS POSIX environment
10079 Problem reported by Arnold Robbins in:
10080 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10081 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10082 Undef.
10083
10084 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10085
10086 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10087 (ROUNDING_TESTS_double): Remove.
10088 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10089 (ROUNDING_TESTS_double): Remove.
10090 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10091 (ROUNDING_TESTS_double): Remove.
10092 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10093 (ROUNDING_TESTS_float): Remove.
10094 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10095 (ROUNDING_TESTS_float): Remove.
10096 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10097 (ROUNDING_TESTS_float): Remove.
10098 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10099 !TEST_MATHVEC here.
10100 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10101 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10102
10103 * sysdeps/generic/math-tests-rounding.h: New file.
10104 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10105 (ROUNDING_TESTS_float): Do not define here.
10106 (ROUNDING_TESTS_double): Likewise.
10107 (ROUNDING_TESTS_long_double): Likewise.
10108 (ROUNDING_TESTS_float128): Likewise.
10109 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10110 (ROUNDING_TESTS_double): Undefine before defining.
10111 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10112 (ROUNDING_TESTS_double): Undefine before defining.
10113 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10114 (ROUNDING_TESTS_double): Undefine before defining.
10115 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10116 (ROUNDING_TESTS_float): Undefine before defining.
10117 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10118 (ROUNDING_TESTS_float): Undefine before defining.
10119 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10120 (ROUNDING_TESTS_float): Undefine before defining.
10121 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10122 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10123 not define here.
10124 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10125 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10126 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10127 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10128 (ROUNDING_TESTS_float): Do not define here.
10129 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10130 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10131 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10132 (ROUNDING_TESTS_float): Likewise.
10133 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10134 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10135 * sysdeps/mips/math-tests.h [__mips_soft_float]
10136 (ROUNDING_TESTS_float): Likewise.
10137 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10138 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10139 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10140 (ROUNDING_TESTS_double): Likewise.
10141 (ROUNDING_TESTS_long_double): Likewise.
10142
10143 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10144
10145 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10146 (PF_XDP): New macro.
10147 (AF_XDP): New macro.
10148 (SOL_XDP): New macro.
10149
10150 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10151
10152 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10153 (TCP_INQ): Likewise.
10154 (TCP_CM_INQ): Likewise.
10155 (TCP_REPAIR_ON): Likewise.
10156 (TCP_REPAIR_OFF): Likewise.
10157 (TCP_REPAIR_OFF_NO_WP): Likewise.
10158 (struct tcp_zerocopy_receive): New type.
10159
10160 2018-08-21 Florian Weimer <fweimer@redhat.com>
10161
10162 * support/support.h (support_descriptor_supports_holes): Declare.
10163 * support/Makefile (libsupport-routines): Add
10164 support_descriptor_supports_holes.
10165 * support/support_descriptor_supports_holes.c: New file.
10166 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10167 and stop testing if holes are not supported.
10168 * io/test-lfs.c (do_prepare): Likewise.
10169 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10170 Likewise.
10171 * timezone/tst-tzset.c (create_tz_file): Likewise.
10172 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10173 variable.
10174 (do_prepare): Set it.
10175 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10176
10177 2018-08-21 Florian Weimer <fweimer@redhat.com>
10178
10179 [BZ #17248]
10180 * Makeconfig (+cflags): Do not sort (and deduplicate).
10181
10182 2018-08-21 Florian Weimer <fweimer@redhat.com>
10183
10184 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10185 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10186
10187 2018-08-20 Florian Weimer <fweimer@redhat.com>
10188
10189 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10190 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10191
10192 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10193
10194 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10195 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10196 and ssi_arch members.
10197
10198 * elf/elf.c (NT_VMCOREDD): New macro.
10199 (AT_MINSIGSTKSZ): Likewise.
10200
10201 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10202
10203 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10204 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10205 s_cosf-ppc64 and s_cosf-power8.
10206 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10207 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10208 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10209 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10210 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10212 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10213 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10214 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10215 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10216 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10217 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10218
10219 2018-08-17 Florian Weimer <fweimer@redhat.com>
10220
10221 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10222
10223 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10224
10225 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10226
10227 2018-08-16 Florian Weimer <fweimer@redhat.com>
10228
10229 * configure.ac: Add --with-nonshared-cflags option.
10230 * config.make.in (extra-nonshared-cflags): Set variable.
10231 * Makeconfig (CFLAGS-.oS): Use it.
10232 * manual/install.texi (Configuring and compiling): Document
10233 --with-nonshared-cflags.
10234 * configure: Regenerate.
10235 * INSTALL: Likewise.
10236
10237 2018-08-16 Florian Weimer <fweimer@redhat.com>
10238
10239 * Makeconfig (ASFLAGS): Always append required assembler flags.
10240
10241 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10242
10243 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10244 (malloc_consolidate): Likewise.
10245
10246 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10247
10248 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10249
10250 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10251
10252 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10253 every strlen call.
10254
10255 * benchtests/bench-strlen.c: Print performance numbers in json.
10256
10257 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10258
10259 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10260 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10261 only for little endian.
10262 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10263 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10264 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10265 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10266 Add check for little endian.
10267 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10268 (__strcmp_power9): Add check for little endian.
10269 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10270 Add check for little endian.
10271 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10272 (__strncmp_power9): Add check for little endian.
10273 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10274 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10275 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10276 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10277 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10278
10279 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10280
10281 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10282 [!STRLEN](STRLEN): Set to __strlen.
10283 * sysdeps/aarch64/multiarch/strlen.c: New file.
10284 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10285 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10286 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10287 (__libc_ifunc_impl_list): Add strlen.
10288 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10289 strlen_generic and strlen_asimd.
10290
10291 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10292
10293 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10294 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10295 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10296
10297 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10298
10299 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10300
10301 2018-08-14 Florian Weimer <fweimer@redhat.com>
10302
10303 [BZ #23519]
10304 * include/stdio.h (__vfxprintf): Declare.
10305 * stdio-common/fxprintf.c (__vfxprintf): New function.
10306 (__fxprintf): Call it.
10307 * misc/err.c (convert_and_print): Remove function.
10308 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10309 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10310 * misc/Makefile (tests): Add tst-warn-wide.
10311 * misc/tst-warn-wide.c: New file.
10312
10313 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10314 Szabolcs Nagy <szabolcs.nagy@arm.com>
10315
10316 * NEWS: Mention sinf, cosf, sincosf.
10317 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10318 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10319 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10320 constants rather than including generic sincosf.h.
10321 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10322 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10323 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10324 (reduced_cos): Remove.
10325 (sinf_poly): New function.
10326 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10327
10328 2018-08-14 Florian Weimer <fweimer@redhat.com>
10329
10330 [BZ #23521]
10331 [BZ #23522]
10332 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10333 processing, bail out if no room, and close the stream before
10334 returning ERANGE.
10335 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10336 (tst-nss-files-alias-leak): Link with libdl.
10337 (tst-nss-files-alias-leak.out): Depend on nss_files.
10338
10339 * nss/tst-nss-files-alias-leak.c: New file.
10340
10341 2018-08-14 Florian Weimer <fweimer@redhat.com>
10342
10343 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10344 server_user, stat_user.
10345
10346 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10347
10348 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10349 version to 4.18.
10350 (io_pgetevents): New syscall.
10351 (rseq): Likewise.
10352
10353 * manual/install.texi (Configuring and compiling): Do not list
10354 tools used for testing pretty printers here.
10355 (Tools for Compilation): List Python, PExpect and GDB here.
10356 Update descriptions of uses of Perl and Python.
10357 * INSTALL: Regenerate.
10358
10359 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10360 version to 4.18.
10361
10362 2018-08-13 Florian Weimer <fweimer@redhat.com>
10363
10364 * misc/error.c (error): Add missing va_end call.
10365 (error_at_line): Likewise.
10366
10367 2018-08-13 Florian Weimer <fweimer@redhat.com>
10368
10369 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10370
10371 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10372
10373 * benchtests/scripts/benchout.schema.json (properties): Add
10374 new properties.
10375
10376 * benchtests/bench-skeleton.c (main): Add duration and
10377 iterations attributes.
10378
10379 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10380
10381 regex: Gnulib unibyte RRI uses bytes not chars
10382 Adjust the non-glibc code to agree with what Gawk needs for
10383 rational range interpretation (RRI) for regular expression ranges.
10384 In unibyte locales, Gawk wants ranges to use the underlying byte
10385 rather than the character code point. This change does not affect
10386 glibc proper.
10387 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10388 In unibyte locales, use the byte value rather than
10389 running it through btowc.
10390
10391 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10392
10393 * sysdeps/generic/math-tests-snan.h: New file.
10394 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10395 (SNAN_TESTS_float): Do not define here.
10396 (SNAN_TESTS_double): Likewise.
10397 (SNAN_TESTS_long_double): Likewise.
10398 (SNAN_TESTS_float128): Likewise.
10399 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10400 * sysdeps/i386/fpu/math-tests.h: Remove file.
10401 * sysdeps/ia64/math-tests-snan.h: New file.
10402 * sysdeps/ia64/math-tests.h: Remove file.
10403 * sysdeps/x86/math-tests.h: Likewise.
10404 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10405
10406 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10407 Szabolcs Nagy <szabolcs.nagy@arm.com>
10408
10409 * math/Makefile: Add s_sincosf_data.c.
10410 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10411 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10412 (sincosf_poly): Likewise.
10413 (reduce_small): Likewise.
10414 (reduce_large): Likewise.
10415 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10416 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10417 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10418 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10419
10420 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10421 Szabolcs Nagy <szabolcs.nagy@arm.com>
10422
10423 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10424 (converttoint): Use lround.
10425 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10426 document the semantics when TOINT_INTRINSICS is set.
10427 (converttoint): Likewise.
10428 (TOINT_RINT): Remove.
10429 (TOINT_SHIFT): Remove.
10430 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10431 path.
10432
10433 2018-08-10 Florian Weimer <fweimer@redhat.com>
10434
10435 [BZ #23497]
10436 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10437 function.
10438 (__old_getdents64): Use getdents64. Convert entries without
10439 moving them.
10440 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10441 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10442 tst-readdir64-compat.
10443
10444 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10445
10446 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10447 Fix unwind.
10448
10449 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10450
10451 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10452 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10453 code to s390x-mcount.h and #include it.
10454 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10455 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10456 (__fentry__): Add.
10457
10458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10459
10460 * stdlib/Versions: Remove __fentry__.
10461 * sysdeps/i386/Versions: Add __fentry__.
10462 * sysdeps/x86_64/Versions: Add __fentry__.
10463
10464 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10465
10466 * sysdeps/s390/Makefile: Register the new tests.
10467 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10468 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10469 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10470 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10471 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10472 * sysdeps/s390/tst-dl-runtime.c: New file.
10473
10474 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10475
10476 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10477 Do not clobber R0.
10478
10479 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10480
10481 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10482 Do not clobber R0.
10483
10484 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10485
10486 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10487 Do not clobber R0.
10488
10489 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10490
10491 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10492 Do not clobber R0.
10493
10494 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10495
10496 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10497 Use symbolic offsets for stack variables.
10498
10499 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10500
10501 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10502 Use symbolic offsets for stack variables.
10503
10504 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10505
10506 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10507 Use symbolic offsets for stack variables.
10508
10509 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10510
10511 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10512 Use symbolic offsets for stack variables.
10513
10514 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10515
10516 * math/gen-libm-test.py: New file.
10517 * math/gen-libm-test.pl: Remove.
10518 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10519 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10520 gen-libm-test.pl.
10521 ($(libm-test-c-noauto-obj)): Likewise.
10522 ($(libm-test-c-auto-obj)): Likewise.
10523 ($(libm-test-c-narrow-obj)): Likewise.
10524 (regen-ulps): Likewise.
10525 * math/README.libm-test: Update references to gen-libm-test.pl.
10526 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10527 referencing gen-libm-test.pl.
10528 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10529 * math/libm-test-support.c: Likewise.
10530 * math/libm-test-support.h: Likewise.
10531 * sysdeps/generic/libm-test-ulps: Likewise.
10532
10533 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10534
10535 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10536 Fix value.
10537
10538 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10539
10540 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10541 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10542
10543 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10544
10545 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10546 symbols.
10547 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10548 __pthread_setspecific): Add hidden proto.
10549 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10550 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10551
10552 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10553
10554 * benchtests/bench-string.h (buf1_size, buf2_size): New
10555 variables.
10556 (init_sizes): New function.
10557 (test_init): Use it.
10558 (alloc_buf, exit_error): New functions.
10559 (alloc_bufs): Use ALLOC_BUF.
10560 (realloc_bufs): Remove.
10561 * benchtests/bench-memcmp.c (do_test): Adjust.
10562 * benchtests/bench-memset-large.c (do_test): Likewise.
10563 * benchtests/bench-memset-walk.c (do_test): Likewise.
10564 * benchtests/bench-memset.c (do_test): Likewise.
10565 * benchtests/bench-strncmp.c (do_test): Likewise.
10566
10567 2018-08-06 Andreas Schwab <schwab@suse.de>
10568
10569 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10570 of CONST_THREAD_AREA.
10571
10572 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10573
10574 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10575 (STATE_SAVE_MASK): Likewise.
10576 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10577 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10578 (STATE_SAVE_MASK): Likewise.
10579 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10580 instead of <cpu-features.h>.
10581
10582 2018-08-03 DJ Delorie <dj@redhat.com>
10583
10584 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10585 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10586
10587 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10588
10589 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10590
10591 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10592 after TEST_* calls.
10593 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10594 * math/libm-test-logb.inc (logb_test_data): Likewise.
10595
10596 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10597
10598 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10599 * string/strstr.c (AVAILABLE): Likewise.
10600
10601 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10602
10603 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10604 <init-arch.h>.
10605 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10606 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10607 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10608
10609 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10610
10611 * po/be.po: Update translation.
10612
10613 * po/be.po: Update translation.
10614
10615 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10616
10617 * sysdeps/x86/cpu-features-offsets.sym
10618 (rtld_global_ro_offsetof): Removed.
10619 (CPU_FEATURES_SIZE): Likewise.
10620 (CPUID_OFFSET): Likewise.
10621 (CPUID_SIZE): Likewise.
10622 (CPUID_EAX_OFFSET): Likewise.
10623 (CPUID_EBX_OFFSET): Likewise.
10624 (CPUID_ECX_OFFSET): Likewise.
10625 (CPUID_EDX_OFFSET): Likewise.
10626 (FAMILY_OFFSET): Likewise.
10627 (MODEL_OFFSET): Likewise.
10628 (FEATURE_OFFSET): Likewise.
10629 (FEATURE_SIZ): Likewise.
10630 (COMMON_CPUID_INDEX_1): Likewise.
10631 (COMMON_CPUID_INDEX_7): Likewise.
10632 (FEATURE_INDEX_1): Likewise.
10633 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10634
10635 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10636
10637 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10638 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10639 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10640 (install-locales): Depend on install-locale-archive.
10641 (install-locale-archive): Define.
10642 (install-locale-files): Define.
10643 (build-one-locale): Define macro.
10644 * manual/install.texi (Running make install): Document.
10645 * manual/INSTALL: Regenerate.
10646
10647 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10648
10649 * benchtests/scripts/compare_strings.py: Import traceback.
10650 (parse_file): Pretty-print error.
10651
10652 * NEWS: Mention the change.
10653 * elf/dl-tunables.list: Rename tune namespace to cpu.
10654 * sysdeps/powerpc/dl-tunables.list: Likewise.
10655 * sysdeps/x86/dl-tunables.list: Likewise.
10656 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10657 cpu.name.
10658 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10659 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10660 * manual/README.tunables: Likewise.
10661 * manual/tunables.texi: Likewise.
10662 * sysdeps/powerpc/cpu-features.c: Likewise.
10663 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10664 (init_cpu_features): Likewise.
10665 * sysdeps/x86/cpu-features.c: Likewise.
10666 * sysdeps/x86/cpu-features.h: Likewise.
10667 * sysdeps/x86/cpu-tunables.c: Likewise.
10668 * sysdeps/x86_64/Makefile: Likewise.
10669 * sysdeps/x86/dl-cet.c: Likewise.
10670
10671 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10672
10673 [BZ #23479]
10674 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10675 [__mips_hard_float].
10676 (FE_UNDERFLOW): Likewise.
10677 (FE_OVERFLOW): Likewise.
10678 (FE_DIVBYZERO): Likewise.
10679 (FE_INVALID): Likewise.
10680 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10681 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10682 (FE_UPWARD): Likewise.
10683 (FE_DOWNWARD): Likewise.
10684 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10685 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10686 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10687 [__mips_hard_float].
10688 (FP_ROUNDMODE): Likewise.
10689 (FP_RND_NEAREST): Likewise.
10690 (FP_RND_ZERO): Likewise.
10691 (FP_RND_PINF): Likewise.
10692 (FP_RND_MINF): Likewise.
10693 (FP_EX_INVALID): Likewise.
10694 (FP_EX_OVERFLOW): Likewise.
10695 (FP_EX_UNDERFLOW): Likewise.
10696 (FP_EX_DIVZERO): Likewise.
10697 (FP_EX_INEXACT): Likewise.
10698 (FP_INIT_ROUNDMODE): Likewise.
10699 * sysdeps/mips/nofpu/fesetenv.c: New file.
10700 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10701
10702 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10703
10704 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10705 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10706 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10707 conditional on [FE_UPWARD].
10708
10709 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10710
10711 regex: fix memory leak in Gnulib
10712 Problem and fix reported by Assaf Gordon in:
10713 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10714 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10715 range_ends members too, as they are defined in 'struct
10716 re_charset_t' even if not _LIBC. This affects only Gnulib.
10717
10718 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10719
10720 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10721 ...
10722 (get_common_indices): This.
10723 (init_cpu_features): Updated.
10724
10725 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10726
10727 * sysdeps/generic/math-tests-snan-payload.h: New file.
10728 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10729 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10730 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10731 * sysdeps/generic/math-tests.h: Include
10732 <math-tests-snan-payload.h>.
10733 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10734 * sysdeps/hppa/math-tests.h: Remove file.
10735 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10736 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10737 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10738 Likewise.
10739
10740 * sysdeps/generic/math-tests-snan-cast.h: New file.
10741 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10742 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10743 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10744 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10745
10746 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10747
10748 * version.h (RELEASE): Set to "development".
10749 (VERSION): Set to "2.28.9000".
10750 * NEWS (2.29): New section.
10751
10752 * version.h (RELEASE): Set to "stable".
10753 (VERSION): Set to "2.28".
10754 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10755 * NEWS: Add the list of bugs fixed in 2.28.
10756
10757 * po/ca.po: Update to latest version.
10758 * po/cs.po: Likewise
10759 * po/da.po: Likewise
10760 * po/el.po: Likewise
10761 * po/eo.po: Likewise
10762 * po/es.po: Likewise
10763 * po/fi.po: Likewise
10764 * po/fr.po: Likewise
10765 * po/gl.po: Likewise
10766 * po/hu.po: Likewise
10767 * po/ia.po: Likewise
10768 * po/id.po: Likewise
10769 * po/it.po: Likewise
10770 * po/ja.po: Likewise
10771 * po/ko.po: Likewise
10772 * po/lt.po: Likewise
10773 * po/nb.po: Likewise
10774 * po/nl.po: Likewise
10775 * po/pt_BR.po: Likewise
10776 * po/ru.po: Likewise
10777 * po/rw.po: Likewise
10778 * po/sk.po: Likewise
10779 * po/sl.po: Likewise
10780 * po/tr.po: Likewise
10781 * po/zh_CN.po: Likewise
10782 * po/zh_TW.po: Likewise
10783
10784 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10785
10786 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10787 initialization...
10788 (init): ... before initializing libpthread.
10789
10790 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10791 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10792 (__mach_setup_tls): ... new function.
10793 (mach_setup_tls): New alias.
10794 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10795 __mach_setup_thread.
10796 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10797 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10798 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10799 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10800
10801 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10802
10803 * manual/install.texi: Update versions.
10804 * INSTALL: Regenerate.
10805
10806 * manual/contrib.texi (Contributors): Update contributions.
10807
10808 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10809
10810 * po/be.po: Update translations.
10811
10812 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10813
10814 * sysdeps/sh/libm-test-ulps: Update.
10815
10816 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10817
10818 * po/bg.po: Update translations.
10819 * po/de.po: Likewise.
10820 * po/hr.po: Likewise.
10821 * po/pt_BR.po: Likewise.
10822 * po/sv.po: Likewise.
10823 * po/vi.po: Likewise.
10824
10825 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10826
10827 [BZ #23467]
10828 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10829 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10830 (CFLAGS-tst-cet-property-1.o): New.
10831 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10832 ($(objpfx)tst-cet-property-2): Likewise.
10833 ($(objpfx)tst-cet-property-2.out): Likewise.
10834 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10835 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10836 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10837 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10838 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10839
10840 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10841
10842 [BZ #23458]
10843 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10844
10845 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10846
10847 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10848 __sbrk): Do not set attribute_hidden.
10849 * sysdeps/mach/hurd/not-errno.h: New file.
10850 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10851 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10852
10853 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10854
10855 * po/uk.po: Update translations.
10856 * po/cs.po: Likewise.
10857 * po/pl.po: Likewise.
10858
10859 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10860
10861 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10862 parse beyond the note end.
10863
10864 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10865
10866 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10867 kernel does not support OFD locks.
10868 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10869
10870 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10871
10872 * sysdeps/mach/hurd/Versions (libc): Make __access and
10873 __access_noerrno external so they can override the ld symbols.
10874 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10875 __writev, __open64, __access_noerrno extern so they can be overrided.
10876 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10877 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10878
10879 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10880
10881 * po/libc.pot: Regenerate.
10882
10883 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10884
10885 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10886
10887 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10888
10889 [BZ #23459]
10890 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10891 function.
10892 (init_cpu_features): Call get_extended_indices for both Intel
10893 and AMD CPUs.
10894 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10895 Remove "for AMD" comment.
10896
10897 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10898
10899 [BZ # 23456]
10900 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10901 COMMON_CPUID_INDEX_80000001.
10902
10903 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10904
10905 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10906 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10907
10908 2018-07-26 Florian Weimer <fweimer@redhat.com>
10909
10910 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10911 aliases for symbols not in the implementation namespace.
10912
10913 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10914
10915 [BZ #23393]
10916 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10917 lowercase in LATIN script.
10918 * localedata/Makefile (test-input): Add en_US.UTF-8.
10919 * localedata/en_US.UTF-8.in: New file.
10920 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10921 and restore old tests.
10922 * posix/tst-regexloc.c (do_test): Add back range expression test.
10923
10924 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10925
10926 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10927
10928 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10929
10930 * nptl/threads.h: Move to ...
10931 * sysdeps/nptl/threads.h: ... here.
10932 * sysdeps/hurd/stdc-predef.h: New file.
10933
10934 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10935
10936 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10937 tst-cet-setcontext-1 if CET is enabled.
10938 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10939 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10940
10941 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10942
10943 * include/threads.h: Move to ...
10944 * sysdeps/nptl/threads.h: ... here.
10945 * sysdeps/htl/threads.h: New file.
10946 * conform/Makefile (linknamespace-libs-ISO11): Use
10947 static-thread-library instead of linking libpthread.
10948 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10949
10950 2018-07-25 Florian Weimer <fweimer@redhat.com>
10951
10952 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10953 nanoseconds into seconds.
10954 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10955 (do_test): Likewise.
10956 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10957 (do_test): Likewise. Avoid nanosecond overflow and spurious
10958 timeouts due to system load.
10959 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10960 (child_wait): Increment it.
10961 (do_test): Wait as long as necessary until all expected threads
10962 have arrived.
10963
10964 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10965 H.J. Lu <hongjiu.lu@intel.com>
10966
10967 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10968 __ssp.
10969 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10970 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10971 (__push___start_context): New.
10972 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10973 <asm/prctl.h>.
10974 (__getcontext): Record the current shadow stack base. Save the
10975 caller's shadow stack pointer and base.
10976 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10977 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10978 (__push___start_context): New prototype.
10979 (__makecontext): Call __push___start_context to allocate a new
10980 shadow stack, push __start_context onto the new stack as well
10981 as the new shadow stack.
10982 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10983 <asm/prctl.h>.
10984 (__setcontext): Restore the target shadow stack.
10985 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10986 <asm/prctl.h>.
10987 (__swapcontext): Record the current shadow stack base. Save
10988 the caller's shadow stack pointer and base. Restore the target
10989 shadow stack.
10990 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10991 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10992 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10993
10994 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10995
10996 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10997 tst-setcontext8 and tst-setcontext9.
10998 * stdlib/tst-setcontext6.c: New file.
10999 * stdlib/tst-setcontext7.c: Likewise.
11000 * stdlib/tst-setcontext8.c: Likewise.
11001 * stdlib/tst-setcontext9.c: Likewise.
11002
11003 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11004
11005 * stdlib/Makefile ((tests): Add tst-setcontext5.
11006 * stdlib/tst-setcontext5.c: New file.
11007
11008 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11009
11010 * stdlib/Makefile (tests): Add tst-setcontext4.
11011 * stdlib/tst-setcontext4.c: New file.
11012
11013 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11014
11015 * stdlib/Makefile (tests): Add tst-swapcontext1.
11016 * stdlib/tst-swapcontext1.c: New test.
11017
11018 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11019
11020 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
11021 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
11022 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
11023 and tst-cet-legacy-4c.
11024 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
11025 and tst-cet-legacy-mod-4.
11026 (CFLAGS-tst-cet-legacy-2.c): New.
11027 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
11028 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
11029 (CFLAGS-tst-cet-legacy-3.c): Likewise.
11030 (CFLAGS-tst-cet-legacy-4.c): Likewise.
11031 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
11032 ($(objpfx)tst-cet-legacy-1): Likewise.
11033 ($(objpfx)tst-cet-legacy-2): Likewise.
11034 ($(objpfx)tst-cet-legacy-2.out): Likewise.
11035 ($(objpfx)tst-cet-legacy-2a): Likewise.
11036 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
11037 ($(objpfx)tst-cet-legacy-4): Likewise.
11038 ($(objpfx)tst-cet-legacy-4.out): Likewise.
11039 ($(objpfx)tst-cet-legacy-4a): Likewise.
11040 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
11041 (tst-cet-legacy-4a-ENV): Likewise.
11042 ($(objpfx)tst-cet-legacy-4b): Likewise.
11043 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
11044 (tst-cet-legacy-4b-ENV): Likewise.
11045 ($(objpfx)tst-cet-legacy-4c): Likewise.
11046 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
11047 (tst-cet-legacy-4c-ENV): Likewise.
11048 * sysdeps/x86/tst-cet-legacy-1.c: New file.
11049 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
11050 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
11051 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
11052 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
11053 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
11054 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
11055 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
11056 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
11057 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
11058 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
11059
11060 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11061
11062 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11063 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11064 with ssp_base.
11065 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11066 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11067 with ssp_base.
11068
11069 2018-07-25 Andreas Schwab <schwab@suse.de>
11070
11071 [BZ #23442]
11072 * locale/weightwc.h (findidx): Handle the case where usrc is a
11073 prefix of cp but one character too short.
11074
11075 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11076
11077 * NEWS: Add ISO C threads addition.
11078
11079 2018-07-24 Florian Weimer <fweimer@redhat.com>
11080
11081 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11082 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11083 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11084 4.13.
11085
11086 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11087
11088 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11089 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11090 <sys/prctl.h> and <asm/prctl.h>.
11091 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11092 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11093 and <asm/prctl.h>.
11094 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11095 ARCH_CET_LEGACY_BITMAP.
11096 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11097 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11098 * sysdeps/x86/libc-start.c: Include <startup.h>.
11099
11100 2018-07-24 Florian Weimer <fweimer@redhat.com>
11101
11102 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11103 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11104
11105 2018-07-24 Rical Jasan <rj@2c3t.io>
11106 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11107 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11108
11109 [BZ #14092]
11110 * manual/debug.texi: Update adjacent chapter name.
11111 * manual/probes.texi: Likewise.
11112 * manual/threads.texi (ISO C Threads): New section.
11113 (POSIX Threads): Convert to a section.
11114
11115 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11116 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11117
11118 [BZ# 14092]
11119 * nptl/Makefile (tests): Add new test files.
11120 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11121 * nptl/tst-cnd-basic.c: Likewise.
11122 * nptl/tst-cnd-broadcast.c: Likewise.
11123 * nptl/tst-cnd-timedwait.c: Likewise.
11124 * nptl/tst-mtx-basic.c: Likewise.
11125 * nptl/tst-mtx-recursive.c: Likewise.
11126 * nptl/tst-mtx-timedlock.c: Likewise.
11127 * nptl/tst-mtx-trylock.c: Likewise.
11128 * nptl/tst-thrd-basic.c: Likewise.
11129 * nptl/tst-thrd-detach.c: Likewise.
11130 * nptl/tst-thrd-sleep.c: Likewise.
11131 * nptl/tst-tss-basic.c: Likewise.
11132
11133 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11134
11135 [BZ #14092]
11136 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11137 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11138 symbols.
11139 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11140 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11141 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11142 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11143 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11144 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11145 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11146 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11147 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11148 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11149 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11150 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11151 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11152 Likewise.
11153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11154 Likewise.
11155 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11156 Likewise.
11157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11158 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11159 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11160 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11161 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11162 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11163 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11164 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11165 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11166 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11167 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11168 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11169 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11170 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11171 Likewise.
11172 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11173 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11174 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11175 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11176 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11177 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11178 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11179 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11180 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11181 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11182 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11183 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11184 ikewise.
11185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11187 Likewise.
11188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11189 Likewise.
11190 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11191 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11192 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11193 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11194 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11195 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11196 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11197 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11198
11199 [BZ #14092]
11200 * conform/data/threads.h-data (thread_local): New macro.
11201 (TSS_DTOR_ITERATIONS): Likewise.
11202 (tss_t): New type.
11203 (tss_dtor_t): Likewise.
11204 (tss_create): New function.
11205 (tss_get): Likewise.
11206 (tss_set): Likewise.
11207 (tss_delete): Likewise.
11208 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11209 tss_get, and tss_set objects.
11210 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11211 * nptl/tss_create.c: New file.
11212 * nptl/tss_delete.c: Likewise.
11213 * nptl/tss_get.c: Likewise.
11214 * nptl/tss_set.c: Likewise.
11215 * sysdeps/nptl/threads.h (thread_local): New define.
11216 (TSS_DTOR_ITERATIONS): Likewise.
11217 (tss_t): New typedef.
11218 (tss_dtor_t): Likewise.
11219 (tss_create): New prototype.
11220 (tss_get): Likewise.
11221 (tss_set): Likewise.
11222 (tss_delete): Likewise.
11223
11224 [BZ #14092]
11225 * conform/data/threads.h-data (cnd_t): New type.
11226 (cnd_init): New function.
11227 (cnd_signal): Likewise.
11228 (cnd_broadcast): Likewise.
11229 (cnd_wait): Likewise.
11230 (cnd_timedwait): Likewise.
11231 (cnd_destroy): Likewise.
11232 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11233 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11234 object.
11235 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11236 * nptl/cnd_broadcast.c: New file.
11237 * nptl/cnd_destroy.c: Likewise.
11238 * nptl/cnd_init.c: Likewise.
11239 * nptl/cnd_signal.c: Likewise.
11240 * nptl/cnd_timedwait.c: Likewise.
11241 * nptl/cnd_wait.c: Likewise.
11242 * sysdeps/nptl/threads.h (cnd_t): New type.
11243 (cnd_init): New prototype.
11244 (cnd_signa): Likewise.
11245 (cnd_broadcast): Likewise.
11246 (cnd_wait): Likewise.
11247 (cnd_timedwait): Likewise.
11248 (cnd_destroy): Likewise.
11249
11250 [BZ #14092]
11251 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11252 (once_flag): New type.
11253 (call_once): New function.
11254 * nptl/Makefile (libpthread-routines): Add call_once object.
11255 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11256 * nptl/call_once.c: New file.
11257 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11258 (once_flag): New type.
11259 (call_once): New prototype.
11260
11261 [BZ #14092]
11262 * conform/data/threads.h-data (mtx_plain): New constant.
11263 (mtx_recursive): Likewise.
11264 (mtx_timed): Likewise.
11265 (mtx_t): New type.
11266 (mtx_init): New function.
11267 (mtx_lock): Likewise.
11268 (mtx_timedlock): Likewise.
11269 (mtx_trylock): Likewise.
11270 (mtx_unlock): Likewise.
11271 (mtx_destroy): Likewise.
11272 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11273 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11274 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11275 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11276 * nptl/mtx_destroy.c: New file.
11277 * nptl/mtx_init.c: Likewise.
11278 * nptl/mtx_lock.c: Likewise.
11279 * nptl/mtx_timedlock.c: Likewise.
11280 * nptl/mtx_trylock.c: Likewise.
11281 * nptl/mtx_unlock.c: Likewise.
11282 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11283 (mtx_recursive): Likewise.
11284 (mtx_timed): Likewise.
11285 (mtx_t): New type.
11286 (mtx_init): New prototype.
11287 (mtx_lock): Likewise.
11288 (mtx_timedlock): Likewise.
11289 (mtx_trylock): Likewise.
11290 (mtx_unlock): Likewise.
11291 (mtx_destroy): Likewise.
11292
11293 [BZ #14092]
11294 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11295 (linknamespace-libs-ISO11): Add libpthread.a.
11296 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11297 functions.
11298 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11299 * nptl/Makefile (headers): Add threads.h.
11300 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11301 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11302 thrd_yield.
11303 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11304 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11305 thrd_join, thrd_sleep, and thrd_yield symbols.
11306 * nptl/descr.h (struct pthread): Add c11 field.
11307 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11308 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11309 routine with expected function prototype.
11310 (__pthread_create_2_1): Add C11 threads check based on attribute
11311 value.
11312 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11313 * nptl/thrd_create.c: New file.
11314 * nptl/thrd_current.c: Likewise.
11315 * nptl/thrd_detach.c: Likewise.
11316 * nptl/thrd_equal.c: Likewise.
11317 * nptl/thrd_exit.c: Likewise.
11318 * nptl/thrd_join.c: Likewise.
11319 * nptl/thrd_priv.h: Likewise.
11320 * nptl/thrd_sleep.c: Likewise.
11321 * nptl/thrd_yield.c: Likewise.
11322 * include/threads.h: Likewise.
11323
11324 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11325
11326 * bits/indirect-return.h: New file.
11327 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11328 * sysdeps/x86/bits/indirect-return.h: Likewise.
11329 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11330 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11331 (swapcontext): Add __INDIRECT_RETURN.
11332 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11333 (prepare_test_buffer): Use it.
11334
11335 2018-07-24 Andreas Schwab <schwab@suse.de>
11336
11337 [BZ #23448]
11338 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11339 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11340
11341 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11342
11343 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11344 Redefine if shadow stack is enabled.
11345 (SYSCALL_ERROR_LABEL): Likewise.
11346 (__vfork): Pop shadow stack and jump back to to caller directly
11347 when shadow stack is in use.
11348 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11349 Redefine if shadow stack is enabled.
11350 (SYSCALL_ERROR_LABEL): Likewise.
11351 (__vfork): Pop shadow stack and jump back to to caller directly
11352 when shadow stack is in use.
11353
11354 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11355
11356 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11357 enabled.
11358 (foo): Likewise.
11359 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11360 (foo): Likewise.
11361
11362 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11363
11364 * scripts/build-many-glibcs.py (Context.checkout): Default
11365 binutils version to 2.31 branch.
11366
11367 2018-07-20 Zong Li <zong@andestech.com>
11368
11369 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11370 URL of gcc's tarball.
11371
11372 2018-07-20 Florian Weimer <fweimer@redhat.com>
11373
11374 [BZ #23396]
11375 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11376 not compare an extra byte after the end of the weights.
11377
11378 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11379
11380 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11381 to 1.
11382 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11383 hidden prototypes.
11384 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11385 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11386 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11387 list of libraries whose stack executability is expected.
11388 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11389 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11390 variable.
11391 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11392 libc.so libpthread.so.
11393
11394 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11395
11396 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11397 SOCK_NONBLOCK.
11398 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11399 and SOCK_NONBLOCK.
11400 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11401 implement __pipe2.
11402 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11403
11404 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11405
11406 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11407 library to improve command line parsing.
11408 (__main__): make schema file as optional parameter (--schema),
11409 defaulting to benchtests/scripts/benchout.schema.json.
11410 (main): move out of the parsing stuff to __main_  and leave it
11411 only as caller of main comparison functions.
11412
11413 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11414
11415 * NEWS: Add a note for Intel CET status.
11416 * manual/install.texi: Likewise.
11417 * INSTALL: Regenerated.
11418
11419 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11420
11421 [BZ #23140]
11422 * localedata/locales/oc_FR (mon): Rename to...
11423 (alt_mon): This, then update October (typo fix).
11424 (mon): New content (genitive case, month names preceded by
11425 "de" or "d’").
11426
11427 [BZ #23422]
11428 * localedata/locales/oc_FR (abday): Update all items.
11429 (day): Update Wednesday and Saturday (typo fixes).
11430 (abmon): Update all items, except May.
11431 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11432 (LC_IDENTIFICATION): Bump the revision number and date.
11433 Keep the "category" entries in alphabetic order.
11434 (LC_ADDRESS): Remove no longer needed comment.
11435 (LC_COLLATE): Use “copy "ca_ES"”.
11436 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11437 "name_mrs".
11438
11439 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11440
11441 * grp/tst_fgetgrent.c: Include <unistd.h>.
11442 (main): Use mkstemp instead of tmpnam.
11443 * io/test-utime.c (main): Likewise.
11444 * posix/annexc.c (macrofile): Change to modifiable array.
11445 (main): Remove macrofile here.
11446 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11447 macrofile here.
11448 (check_header): Do not remove macrofile here.
11449 * posix/bug-getopt1.c: Include <stdlib.h>.
11450 (do_test): Use mkstemp instead of tmpnam.
11451 * posix/bug-getopt2.c: Include <stdlib.h>.
11452 (do_test): Use mkstemp instead of tmpnam.
11453 * posix/bug-getopt3.c: Include <stdlib.h>.
11454 (do_test): Use mkstemp instead of tmpnam.
11455 * posix/bug-getopt4.c: Include <stdlib.h>.
11456 (do_test): Use mkstemp instead of tmpnam.
11457 * posix/bug-getopt5.c: Include <stdlib.h>.
11458 (do_test): Use mkstemp instead of tmpnam.
11459 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11460 (main): Use mkstemp instead of tmpnam.
11461 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11462 (main): Use mkstemp instead of tmpnam.
11463 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11464 (main): use mkstemp instead of tmpnam.
11465 * stdlib/isomac.c (macrofile): Change to modifiable array.
11466 (main): Remove macrofile here.
11467 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11468 macrofile here.
11469 (check_header): Do not remove macrofile here.
11470
11471 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11472
11473 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11474 glibc.tune.x86_shstk.
11475
11476 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11477
11478 * NEWS: Mention --enable-cet.
11479 * manual/install.texi: Document --enable-cet.
11480 * INSTALL: Regenerated.
11481
11482 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11483
11484 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11485 Add _CET_NOTRACK before indirect jump to jump table.
11486
11487 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11488
11489 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11490 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11491 to jump table.
11492
11493 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11496 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11497 to jump table.
11498
11499 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11500
11501 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11502 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11503 to jump table.
11504
11505 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11506
11507 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11508 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11509 to jump table.
11510
11511 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11512
11513 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11514 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11515 to jump table.
11516 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11517
11518 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11519
11520 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11521 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11522 to jump table.
11523
11524 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11525
11526 * sysdeps/i386/i686/multiarch/memset-sse2.S
11527 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11528 to jump table.
11529
11530 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11531
11532 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11533 indirect jump to jump table.
11534
11535 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11536
11537 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11538 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11539 to jump table.
11540 (MEMCPY): Likewise.
11541
11542 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11543
11544 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11545 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11546 to jump table.
11547 (MEMCPY): Likewise.
11548
11549 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11550
11551 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11552 _CET_NOTRACK before indirect jump to jump table.
11553
11554 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11555
11556 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
11557 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11558 to jump table.
11559
11560 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11561
11562 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11563 indirect jump to jump table.
11564
11565 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11566
11567 [BZ #22241]
11568 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11569 (LOCALES): Likewise.
11570 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11571 * localedata/locales/sah_RU: New file.
11572 * localedata/sah_RU.UTF-8.in: New file.
11573
11574 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11575
11576 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11577 "sysdep.h".
11578 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11579 _CET_ENDBR to indirect jump targets and adjust jump destination
11580 for _CET_ENDBR.
11581 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11582 "sysdep.h".
11583 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11584 _CET_ENDBR to indirect jump targets and adjust jump destination
11585 for _CET_ENDBR.
11586 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11587 "sysdep.h".
11588 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11589 _CET_ENDBR to indirect jump targets and adjust jump destination
11590 for _CET_ENDBR.
11591
11592 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11593
11594 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11595 _CET_ENDBR.
11596
11597 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11598
11599 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11600 _CET_ENDBR.
11601 (_dl_tlsdesc_undefweak): Likewise.
11602 (_dl_tlsdesc_dynamic): Likewise.
11603 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11604 (_dl_tlsdesc_resolve_rel): Likewise.
11605 (_dl_tlsdesc_resolve_rela): Likewise.
11606 (_dl_tlsdesc_resolve_hold): Likewise.
11607 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11608 (_dl_tlsdesc_undefweak): Likewise.
11609 (_dl_tlsdesc_dynamic): Likewise.
11610 (_dl_tlsdesc_resolve_rela): Likewise.
11611 (_dl_tlsdesc_resolve_hold): Likewise.
11612
11613 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11614
11615 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11616 (_fini): Likewise.
11617 * sysdeps/x86_64/crti.S (_init): Likewise.
11618 (_fini): Likewise.
11619
11620 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11621
11622 [BZ #23140]
11623 * localedata/locales/os_RU (mon): Rename to...
11624 (alt_mon): This.
11625 (mon): Import from CLDR (genitive case).
11626
11627 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11628
11629 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11630 cet-tunables.h> when CET is enabled.
11631
11632 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11633
11634 [BZ #21598]
11635 * configure.ac: Add --enable-cet.
11636 * configure: Regenerated.
11637 * elf/Makefille (all-built-dso): Add a comment.
11638 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11639 Include <dl-prop.h>.
11640 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11641 segment.
11642 * elf/dl-open.c: Include <dl-prop.h>.
11643 (dl_open_worker): Call _dl_open_check.
11644 * elf/rtld.c: Include <dl-prop.h>.
11645 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11646 _rtld_main_check.
11647 * sysdeps/generic/dl-prop.h: New file.
11648 * sysdeps/i386/dl-cet.c: Likewise.
11649 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11650 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11651 * sysdeps/x86/cet-tunables.h: Likewise.
11652 * sysdeps/x86/check-cet.awk: Likewise.
11653 * sysdeps/x86/configure: Likewise.
11654 * sysdeps/x86/configure.ac: Likewise.
11655 * sysdeps/x86/dl-cet.c: Likewise.
11656 * sysdeps/x86/dl-procruntime.c: Likewise.
11657 * sysdeps/x86/dl-prop.h: Likewise.
11658 * sysdeps/x86/libc-start.h: Likewise.
11659 * sysdeps/x86/link_map.h: Likewise.
11660 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11661 _CET_ENDBR.
11662 (_dl_runtime_profile): Likewise.
11663 (_dl_runtime_resolve_shstk): New.
11664 (_dl_runtime_profile_shstk): Likewise.
11665 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11666 if CET is enabled.
11667 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11668 (CFLAGS-.os): Likewise.
11669 (CFLAGS-.op): Likewise.
11670 (CFLAGS-.oS): Likewise.
11671 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11672 is enabled.
11673 (tests-special): Add $(objpfx)check-cet.out.
11674 (cet-built-dso): New.
11675 (+$(cet-built-dso:=.note)): Likewise.
11676 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11677 ($(objpfx)check-cet.out): New.
11678 (generated): Add check-cet.out.
11679 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11680 <cet-tunables.h>.
11681 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11682 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11683 (init_cpu_features): Call get_cet_status to check CET status
11684 and update dl_x86_feature_1 with CET status. Call
11685 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11686 (set_x86_shstk). Disable and lock CET in libc.a.
11687 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11688 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11689 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11690 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11691 (_CET_ENDBR): Define if not defined.
11692 (ENTRY): Add _CET_ENDBR.
11693 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11694 x86_shstk.
11695 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11696 _CET_ENDBR.
11697 (_dl_runtime_profile): Likewise.
11698
11699 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11700
11701 [BZ #21895]
11702 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11703 restore r2 on longjmp.
11704 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11705 test list.
11706 Added rules to build test tst-setjmp-bug21895-static.
11707 Added module setjmp-bug21895 and rules to build a shared object from it.
11708 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11709 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11710
11711 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11712
11713 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11714 * benchtests/bench-strstr.c: Likewise.
11715 * string/memmem.c (FASTSEARCH): Define.
11716 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11717 Add support for FASTSEARCH.
11718 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11719 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11720 (FASTSEARCH): Define.
11721 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11722 * string/test-strstr.c: Likewise.
11723
11724 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11725
11726 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11727 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11728
11729 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11730 H.J. Lu <hongjiu.lu@intel.com>
11731
11732 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11733 (__longjmp): Restore shadow stack pointer if shadow stack is
11734 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11735 isn't defined for __longjmp_cancel.
11736 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11737 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11738 and SHADOW_STACK_POINTER_OFFSET is defined.
11739 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11740 (setjmp): Save shadow stack pointer if shadow stack is enabled
11741 and SHADOW_STACK_POINTER_OFFSET is defined.
11742 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11743 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11744 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11745 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11746 <jmp_buf-ssp.h>.
11747 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11748 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11749 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11750 Remove jmp_buf-ssp.sym.
11751 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11752 <jmp_buf-ssp.h>.
11753 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11754 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11755 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11756 jmp_buf-ssp.sym.
11757 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11758 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11759 (__longjmp): Restore shadow stack pointer if shadow stack is
11760 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11761 isn't defined for __longjmp_cancel.
11762 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11763 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11764 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11765
11766 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11767
11768 [BZ #22563]
11769 * nptl/pthread_create.c: Include <tls-setup.h>.
11770 (__pthread_create_2_1): Call tls_setup_tcbhead.
11771 * sysdeps/generic/tls-setup.h: New file.
11772 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11773 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11774 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11775 Likewise.
11776 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11777 to feature_1.
11778 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11779 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11780 (X86_FEATURE_1_SHSTK): Likewise.
11781 (CET_ENABLED): Likewise.
11782 (IBT_ENABLED): Likewise.
11783 (SHSTK_ENABLED): Likewise.
11784
11785 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11786
11787 [BZ #23208]
11788 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11789 (LOCALES): Likewise.
11790 * localedata/dsb_DE.UTF-8.in: New file.
11791 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11792
11793 2018-07-12 Florian Weimer <fweimer@redhat.com>
11794
11795 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11796 __mprotect, not mprotect.
11797
11798 2018-07-11 Florian Weimer <fweimer@redhat.com>
11799
11800 * io/Makefile (headers): Add bits/statx.h.
11801
11802 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11803
11804 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11805 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11806 and headers.
11807 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11808 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11809 for utf8_gen.py
11810
11811 2018-07-10 Florian Weimer <fweimer@redhat.com>
11812
11813 * io/Makefile (routines): Add statx.
11814 (tests-internal): Add tst-statx.
11815 * io/Versions (GLIBC_2.28): Export statx.
11816 * io/bits/statx.h: New file.
11817 * io/sys/stat.h [__USE_GNU]: Include it.
11818 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11819 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11820 Define.
11821 * io/statx.c: New file.
11822 * io/statx_generic.: Likewise.
11823 * io/tst-statx.: Likewise.
11824 * include/bits/statx.h: Likewise.
11825 * sysdeps/unix/sysv/linux/kernel-features.h
11826 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11827 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11828 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11829 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11830 Undefine.
11831 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11832 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11833 * sysdeps/unix/sysv/linux/statx.c: New file.
11834 * manual/filesys.texi: Note that statx is undocumented.
11835 * sysdeps/**/libc*.abilist: Update.
11836
11837 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11838
11839 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11840 a kernel issue which lead to test failure in some cases.
11841
11842 2018-07-10 Florian Weimer <fweimer@redhat.com>
11843
11844 [BZ #23036]
11845 * posix/regexec.c (check_node_accept_bytes): When comparing
11846 weights, do not compare an extra byte after the end of the
11847 weights.
11848
11849 2018-07-10 Florian Weimer <fweimer@redhat.com>
11850
11851 * libio/readline.c: Fix copyright year.
11852 * libio/tst-readline.c Likewise.
11853 * nss/tst-nss-files-hosts-getent.c: Likewise.
11854
11855 2018-07-06 Florian Weimer <fweimer@redhat.com>
11856
11857 [BZ #18991]
11858 * nss/nss_files/files-XXX.c (internal_getent): Use
11859 __libc_readline_unlocked. Seek back to the start of the line if
11860 parsing failes with ERANGE.
11861 (get_contents_ret, get_contents): Remove.
11862 * nss/tst-nss-files-hosts-getent.c: New file.
11863 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11864 (tst-nss-files-hosts-getent): Link with -ldl.
11865
11866 2018-07-06 Florian Weimer <fweimer@redhat.com>
11867
11868 * include/stdio.h (__libc_readline_unlocked): Declare.
11869 (__ftello64, __fseeko64): Declare aliases.
11870 * libio/readline.c: New file.
11871 * libio/tst-readline.c: Likewise.
11872 (routines): Add readline.
11873 (tests-internal): Add tst-readlime.
11874 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11875 __libc_readline_unlocked.
11876 * libio/fseeko.c (__fseeko): Rename from fseeko.
11877 (fseeko): Add alias.
11878 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11879 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11880 (fseeko64): Add alias.
11881 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11882 * libio/ftello64.c (__ftello64): Rename from ftello64.
11883 (ftello64): Add alias.
11884
11885 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11886
11887 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11888 HWCAP_ATOMICS.
11889
11890 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11891
11892 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11893 Use dl_hwcap without masking.
11894 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11895 Remove HWCAP_CPUID.
11896
11897 2018-07-06 Florian Weimer <fweimer@redhat.com>
11898
11899 * conform/conformtest.pl (checknamespace): Escape literal braces
11900 in regular expressions.
11901
11902 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11903
11904 * sysdeps/x86/cpu-features.c (get_common_indeces):
11905 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11906 * sysdeps/x86/cpu-features.c (init_cpu_features):
11907 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11908
11909 2018-07-05 Florian Weimer <fweimer@redhat.com>
11910
11911 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11912 protector.
11913 (CFLAGS-elf-init.oS): Likewise.
11914
11915 2018-07-05 Florian Weimer <fweimer@redhat.com>
11916 Carlos O'Donell <carlos@redhat.com>
11917
11918 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11919 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11920 with stack protector enabled because there is no risk of infinite
11921 recursion.
11922
11923 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11924
11925 [BZ #19818]
11926 [BZ #23307]
11927 * libc-abis (ABSOLUTE): New ABI.
11928 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11929 * NEWS: Mention the new ABI.
11930
11931 2018-07-05 Florian Weimer <fweimer@redhat.com>
11932
11933 [BZ # 17662]
11934 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11935 (RENAME_WHITEOUT): Define.
11936 [__USE_GNU] (renameat2): Declare.
11937 * stdio-common/Makefile (routines): Add renameat2.
11938 (tests): Add tst-renameat2.
11939 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11940 * stdio-common/renameat2.c: New file.
11941 * stdio-common/tst-renameat2.c: Likewise.
11942 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11943 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11944 undocumented.
11945 * sysdeps/unix/sysv/linux/kernel-features.h
11946 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11947 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11948 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11949 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11950 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11951 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11952 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11953 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11954 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11955 * include/stdio.h (__renameat): Add alias for renameat.
11956 * stdio-common/renameat.c (__renameat): Rename from renameat.
11957 Add hidden definition and alias.
11958 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11959 * sysdeps/mach/hurd/renameat.c: Likewise.
11960 * sysdeps/**/libc*.abilist: Add renameat2.
11961
11962 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11963
11964 * posix/bug-regex33.c: Fix build after regex sync.
11965
11966 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11967
11968 [BZ #23164]
11969 * localedata/tst-langinfo-setlocale.c: New file.
11970 * localedata/tst-langinfo-setlocale-static.c: New file.
11971 * localedata/tst-langinfo-newlocale.c: New file.
11972 * localedata/tst-langinfo-newlocale-static.c: New file.
11973 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11974 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11975 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11976 (tests-static): Remove tst-langinfo-static. Add
11977 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11978 (tests-special): Remove $(objpfx)tst-langinfo.out,
11979 $(objpfx)tst-langinfo-static.out. Add
11980 $(objpfx)tst-langinfo-setlocale.out,
11981 $(objpfx)tst-langinfo-newlocale.out,
11982 $(objpfx)tst-langinfo-setlocale-static.out,
11983 $(objpfx)tst-langinfo-newlocale-static.out.
11984 ($(objpfx)tst-langinfo.out): Remove.
11985 ($(objpfx)tst-langinfo-static.out): Remove.
11986 ($(objpfx)tst-langinfo-newlocale.out): New target.
11987 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11988 (test-xfail-tst-langinfo-newlocale-static): Add.
11989 ($(objpfx)tst-langinfo-setlocale.out): New target.
11990 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11991 * localedata/tst-langinfo.c: Call test_locale.
11992 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11993 data.
11994
11995 2018-07-04 Florian Weimer <fweimer@redhat.com>
11996
11997 testrun.sh: Implement --tool=strace, --tool=valgrind
11998 * Makefile (testrun-script): Define variable.
11999 (testrun.sh): Use variable.
12000 * manual/install.texi (Tools for Compilation): make 4.0 or later
12001 is required.
12002 * configure.ac: Check for make 4.0 or later.
12003 * INSTALL: Regenerate.
12004 * configure: Likewise.
12005
12006 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12007
12008 [BZ #23233]
12009 [BZ #21163]
12010 [BZ #18986]
12011 [BZ #13762]
12012 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
12013 * posix/PCRE.tests: Remove invalid test.
12014 * posix/bug-regex28.c: Fix expected values for used syntax.
12015 * posix/bug-regex37.c: New file.
12016 * posix/bug-regex38.c: Likewise.
12017 * posix/regcomp.c: Sync with gnulib.
12018 * posix/regex.c: Likewise.
12019 * posix/regex.h: Likewise.
12020 * posix/regex_internal.c: Likewise.
12021 * posix/regex_internal.h: Likewise.
12022 * posix/regexec.c: Likewise.
12023
12024 2018-06-26 Mike FABIAN <mfabian@redhat.com>
12025
12026 [BZ #23308]
12027 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
12028 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
12029 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
12030 * localedata/unicode-gen/PropList.txt: likewise.
12031 * localedata/unicode-gen/UnicodeData.txt: likewise.
12032 * localedata/charmaps/UTF-8: Regenerate.
12033 * localedata/locales/i18n_ctype: likewise.
12034 * localedata/locales/tr_TR: likewise.
12035 * localedata/locales/translit_circle: likewise.
12036 * localedata/locales/translit_cjk_compat: likewise.
12037 * localedata/locales/translit_combining: likewise.
12038 * localedata/locales/translit_compat: likewise.
12039 * localedata/locales/translit_font: likewise.
12040 * localedata/locales/translit_fraction: likewise.
12041
12042 2018-07-03 Florian Weimer <fweimer@redhat.com>
12043
12044 [BZ #23363]
12045 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
12046 * stdio-common/tst-printf.sh: Adjust expected output.
12047 * LICENSES: Update.
12048
12049 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12050
12051 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
12052 symbol.
12053
12054 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12055
12056 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
12057 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
12058 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
12059 * stdio-common/tst-printfsz-islongdouble.c: New file.
12060 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12061 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12062 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12063 [subdir == stdio-common] (tests-internal): Add
12064 test-printf-size-ieee128, and test-printf-size-ibm128.
12065 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12066 (CFLAGS-test-printf-size-ibm128.c): New variables.
12067 [subdir == stdio-common] (tests-special): Add
12068 $(objpfx)test-printf-size-ieee128.out and
12069 $(objpfx)test-printf-size-ibm128.out.
12070 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12071 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12072 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12073 __printf_sizeieee128.
12074 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12075 New file.
12076 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12077 Likewise.
12078 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12079 Likewise.
12080
12081 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12082
12083 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12084 (exp2f_inline): Likewise.
12085 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12086 (__math_uflowf): Likewise.
12087 (__math_may_uflowf): Likewise.
12088 (__math_divzerof): Likewise.
12089 (__math_invalidf): Likewise.
12090 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12091 (__math_oflowf): Likewise.
12092 (__math_uflowf): Likewise.
12093 (__math_may_uflowf): Likewise.
12094 (__math_divzerof): Likewise.
12095 (__math_invalidf): Likewise.
12096
12097 2018-06-29 DJ Delorie <dj@redhat.com>
12098 Carlos O'Donell <carlos@redhat.com>
12099
12100 [BZ #23329]
12101 * include/libc-symbols.h: Comment the freeres framework.
12102 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12103 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12104 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12105 * dlfcn/dlerror.c: Include libc-symbols.h
12106 (__dlerror_main_freeres): New function.
12107 * dlfcn/dlfreeres.c: New file.
12108 * dlfcn/sdlfreeres.c: New file.
12109 * include/dlfcn.h: Declare __dlerror_main_freeres.
12110 * malloc/set-freeres.c: Declare __libdl_freeres, and
12111 __libpthread_freeres.
12112 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12113 the releavant libraries are loaded.
12114 * malloc/thread-freeres.c: Add comments.
12115 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12116 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12117 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12118 (__free_stacks): Rename to...
12119 (free_stacks): ...this. Mark static.
12120 (queue_stack): Call free_stacks.
12121 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12122 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12123 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12124 ptr_freeres element from struct.
12125 (pthread_functions): Remove .ptr_freeres from struct initializer.
12126 [SHARED] (nptl_freeres): Remove.
12127 * nptl/nptlfreeres.c: New file.
12128 * nptl/pthreadP.h
12129 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12130 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12131 attribute_hidden.
12132 (__free_stacks): Rename to...
12133 (__nptl_stacks_freeres): ...this.
12134 (__shm_directory_freeres): Declare.
12135 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12136 (__nptl_unwind_freeres): ...this.
12137 * resolv/res-close.c: Add comment.
12138 * resolv/resolv_conf.c: Include libc-symbols.h.
12139 * string/strerror_l.c: Include libc-symbols.h.
12140 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12141 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12142 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12143 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12144
12145 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12146
12147 * stdlib/tst-strfmon_l.c: Add tests for long double.
12148
12149 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12150
12151 [BZ #23208]
12152 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12153 * localedata/locales/dsb_DE: New file.
12154
12155 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12156
12157 [BZ #23140]
12158 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12159 genitive case).
12160 (alt_mon): New entry, import from CLDR (nominative case).
12161
12162 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12163
12164 [BZ #22996]
12165 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12166
12167 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12168
12169 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12170 Use vector registers.
12171
12172 * sysdeps/aarch64/multiarch/memmove_falkor.S
12173 (__memcpy_falkor): Use vector registers.
12174
12175 2018-06-29 Martin Sebor <msebor@redhat.com>
12176
12177 * manual/stdio.texi (Customizing Printf): Mention interaction
12178 with GCC built-ins.
12179
12180 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12181
12182 [BZ #23307]
12183 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12184 `st_value' is 0 if `st_shndx' is SHN_ABS.
12185 * elf/tst-absolute-zero.c: New file.
12186 * elf/tst-absolute-zero-lib.c: New file.
12187 * elf/tst-absolute-zero-lib.lds: New file.
12188 * elf/Makefile (tests): Add `tst-absolute-zero'.
12189 (modules-names): Add `tst-absolute-zero-lib'.
12190 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12191 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12192 ($(objpfx)tst-absolute-zero: New dependency.
12193
12194 2018-06-29 Zack Weinberg <zackw@panix.com>
12195
12196 * configure.ac: New command-line option --disable-crypt.
12197 Force --disable-nss-crypt when --disable-crypt is given, with a
12198 warning if it was explicitly enabled.
12199 * configure: Regenerate.
12200 * config.make.in: New boolean substitution variable $(build-crypt).
12201 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12202 when $(build-crypt).
12203 * manual/install.texi: Document --disable-crypt.
12204 * INSTALL: Regenerate.
12205
12206 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12207 which is never set.
12208 * conform/Makefile: Only include libcrypt.a in
12209 linknamespace-libs-xsi and linknamespace-libs-XPG4
12210 when $(build-crypt).
12211 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12212 USE_CRYPT to 1 when $(build-crypt).
12213 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12214 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12215 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12216
12217 2018-06-29 Zack Weinberg <zackw@panix.com>
12218
12219 * crypt/crypt.h, posix/unistd.h: Update comments and
12220 prototypes for crypt and crypt_r.
12221
12222 * manual/crypt.texi (Cryptographic Functions): New initial
12223 exposition.
12224 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12225 (Unpredictable Bytes): Improve initial exposition. Clarify error
12226 behavior of getentropy and getrandom.
12227 * manual/examples/genpass.c: Generate a salt using getentropy
12228 instead of the current time. Use hash $5$ (SHA-2-256).
12229 * manual/examples/testpass.c: Demonstrate validation against
12230 hashes generated with three different one-way functions.
12231
12232 * manual/intro.texi: crypt.texi does not need an overview
12233 anymore.
12234
12235 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12236 * manual/terminal.texi: Consistently refer to "passphrases"
12237 * instead of "passwords", and to the "user database" instead
12238 * of the "password database".
12239 * manual/users.texi: Similarly. Add notes about how actual
12240 passphrase hashes are now stored in the shadow database.
12241 Remove 20-year-old junk todo note.
12242
12243 2018-06-29 Zack Weinberg <zackw@panix.com>
12244
12245 * manual/crypt.texi: Use a normal top-level @node declaration.
12246 Move most of the introductory text to the 'crypt' section.
12247 Move the example programs below the @deftypefun for 'crypt_r'.
12248 Move the 'getpass' section...
12249 * manual/terminal.texi: ...here.
12250
12251 2018-06-29 Zack Weinberg <zackw@panix.com>
12252 Florian Weimer <fweimer@redhat.com>
12253
12254 * posix/unistd.h: Do not declare encrypt.
12255 (_XOPEN_CRYPT): Remove macro definition.
12256 (crypt): Declare only for _USE_MISC.
12257 * stdlib/stdlib.h: Do not declare setkey.
12258 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12259 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12260
12261 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12262 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12263 into compat symbols. Don't define initial_perm if it's not
12264 going to be used.
12265 * crypt/cert.c: Link explicitly with the expected versions for
12266 setkey and encrypt. If they are not available at all, mark
12267 the test as unsupported.
12268
12269 * sunrpc/des_crypt.c: Unconditionally block linkage with
12270 cbc_crypt and ecb_crypt for new binaries.
12271 * sunrpc/des_soft.c: Unconditionally block linkage with
12272 des_setparity for new binaries.
12273
12274 * manual/crypt.texi: Remove the entire "DES Encryption"
12275 section. Also remove the paragraph talking about FIPS 140-2
12276 from the introduction.
12277 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12278 of libgcrypt for "real" encryption, not DES.
12279 * manual/conf.texi (Constants for Sysconf): Mention that
12280 _XOPEN_CRYPT is no longer impelemented.
12281
12282 * conform/data/unistd.h-data: Remove crypt function declaration.
12283
12284 2018-06-29 Florian Weimer <fweimer@redhat.com>
12285
12286 [BZ #23351]
12287 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12288 (disallow_malloc_check): Remove variable.
12289 (__malloc_check_init): Adjust.
12290 (malloc_set_state): Update comment.
12291 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12292 declarations.
12293
12294 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12295
12296 [BZ #23140]
12297 * localedata/locales/ast_ES (mon): Rename to...
12298 (alt_mon): This.
12299 (mon): Import from CLDR (genitive case).
12300
12301 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12302 Jakub Sitnicki <jkbs@redhat.com>
12303
12304 [BZ #21812]
12305 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12306 on NLM_F_DUMP_INTR.
12307
12308 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12309
12310 * manual/llio.texi: Remove spurious space.
12311
12312 2018-06-28 Florian Weimer <fweimer@redhat.com>
12313
12314 [BZ #23349]
12315 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12316 _STRUCT_TIMESPEC.
12317
12318 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12319
12320 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12321 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12322 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12323 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12324 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12325 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12326 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12327
12328 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12329
12330 [BZ #23266]
12331 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12332 Copy and null-terminate entries that are not terminated, in
12333 addition to empty ones.
12334
12335 2018-06-27 Florian Weimer <fweimer@redhat.com>
12336
12337 [BZ #18023]
12338 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12339 (extend_alloca_account): Remove.
12340 * manual/stdio.texi (Variable Arguments Output): Update comment.
12341
12342 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12343
12344 * nptl/sockperf.c: Remove file.
12345
12346 2018-06-27 Florian Weimer <fweimer@redhat.com>
12347
12348 [BZ #18023]
12349 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12350 scratch_buffer instead of extend_alloca.
12351
12352 2018-06-27 Florian Weimer <fweimer@redhat.com>
12353
12354 [BZ #18023]
12355 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12356 scratch_buffer instead of extend_alloca. Update comments.
12357
12358 2018-06-27 Florian Weimer <fweimer@redhat.com>
12359
12360 [BZ #18023]
12361 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12362 instead of extend_alloca.
12363
12364 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12365
12366 [BZ #13888]
12367 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12368 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12369 /tmp.
12370 * scripts/test-installation.pl: Put temporary files in build
12371 directory, not /tmp.
12372 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12373 (CFLAGS-bug4.c): Likewise.
12374 (CFLAGS-bug5.c): Likewise.
12375 (CFLAGS-test-fseek.c): Likewise.
12376 (CFLAGS-test-popen.c): Likewise.
12377 (CFLAGS-test_rdwr.c): Likewise.
12378 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12379 /tmp.
12380 * stdio-common/bug4.c (main): Likewise.
12381 * stdio-common/bug5.c (main): Likewise.
12382 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12383 * stdio-common/test-popen.c (do_test): Likewise.
12384 * stdio-common/test_rdwr.c (main): Likewise.
12385
12386 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12387
12388 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12389 (sem_open): Set sem.newsem.pad to zero for valgrind.
12390
12391 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12392
12393 [BZ #20251]
12394 * NEWS: Mention fcntl64 addition.
12395 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12396 * login/utmp_file.c: Likewise.
12397 * sysdeps/posix/fdopendir.c: Likewise.
12398 * sysdeps/posix/opendir.c: Likewise.
12399 * sysdeps/unix/pt-fcntl.c: Likewise.
12400 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12401 __fcntl64_nocancel_adjusted): New prototype.
12402 (__fcntl_nocancel_adjusted): Remove prototype.
12403 * io/Makefile (routines): Add fcntl64.
12404 (CFLAGS-fcntl64.c): New rule.
12405 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12406 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12407 * io/fcntl.h (fcntl64): Add prototype and redirect if
12408 __USE_FILE_OFFSET64 is defined.
12409 * io/fcntl64.c: New file.
12410 * manual/llio.text: Add a note for which commands fcntl acts a
12411 cancellation point.
12412 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12413 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12414 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12415 New symbols.
12416 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12417 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12418 non-LFS case.
12419 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12420 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12421 to __fcntl64_nocancel.
12422 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12423 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12424 to __fcntl64_nocancel.
12425 * sysdeps/generic/not-cancel.h: Likewise.
12426 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12427 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12428 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12429 (fcntl64): New symbol.
12430 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12432 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12441 fcntl64): Likewise.
12442 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12444 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12452 Likewise.
12453 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12454 Likewise.
12455 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12458
12459 2018-06-26 Florian Weimer <fweimer@redhat.com>
12460
12461 Run thread shutdown functions in an explicit order.
12462 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12463 definition.
12464 (__libc_thread_freeres): Call thread shutdown functions
12465 explicitly.
12466 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12467 * include/string.h (__strerror_thread_freeres): Declare.
12468 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12469 arena_thread_freeres. No longer static. Remove thread shutdown
12470 hook registration.
12471 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12472 Declare.
12473 * resolv/res-close.c (__res_thread_freeres): Renamed from
12474 res_thread_freeres. No longer static. Remove thread shutdown
12475 hook registration.
12476 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12477 * resolv/resolv_conf.c (freeres): Remove incorrect section
12478 attribute and use libc_freeres_fn.
12479 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12480 strerror_thread_freeres. No longer static. Remove thread
12481 shutdown hook registration.
12482 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12483 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12484 shutdown hook registration.
12485 * Makerules (shlib.lds): Do not provide section boundary symbols
12486 for __libc_thread_subfreeres.
12487 * manual/memory.texi (Basic Allocation): Update comment.
12488
12489 2018-06-26 Florian Weimer <fweimer@redhat.com>
12490
12491 Remove always-defined _RPC_THREAD_SAFE_ macro.
12492 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12493 Do not define _RPC_THREAD_SAFE_.
12494 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12495 conditional.
12496 * sunrpc/clnt_perr.c: Likewise.
12497 * sunrpc/clnt_raw.c: Likewise.
12498 * sunrpc/clnt_simp.c: Likewise.
12499 * sunrpc/key_call.c: Likewise.
12500 * sunrpc/rpc_common.c: Likewise.
12501 * sunrpc/rpc_main.c: Likewise.
12502 * sunrpc/rpc_thread.c: Likewise.
12503 * sunrpc/svc.c: Likewise.
12504 * sunrpc/svc_raw.c: Likewise.
12505 * sunrpc/svc_simple.c: Likewise.
12506 * sumrpc/svcauth_des.c: Likewise.
12507
12508 2018-06-26 Florian Weimer <fweimer@redhat.com>
12509
12510 * libio/Makefile (tests-internal): Add tst-vtables,
12511 tst-vtables-interposed.
12512 * libio/tst-vtables.c: New file.
12513 * libio/tst-vtables-common.c: Likewise.
12514 * libio/tst-vtables-interposed.c: Likewise.
12515
12516 2018-06-26 Florian Weimer <fweimer@redhat.com>
12517
12518 * support/support_test_main.c (support_test_main): Only call
12519 setvbuf if not disables.
12520 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12521 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12522
12523 2018-06-26 Florian Weimer <fweimer@redhat.com>
12524
12525 [BZ #23313]
12526 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12527
12528 2018-06-25 Florian Weimer <fweimer@redhat.com>
12529
12530 [BZ #18023]
12531 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12532 Use struct scratch_buffer instead of extend_alloca.
12533
12534 2018-06-25 Florian Weimer <fweimer@redhat.com>
12535
12536 [BZ #18023]
12537 * nss/getent.c (initgroups_keys): Use dynarray instead of
12538 extend_alloca.
12539
12540 2018-06-25 Florian Weimer <fweimer@redhat.com>
12541
12542 [BZ #18023]
12543 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12544 Use struct scratch_buffer instead of extend_alloca.
12545
12546 2018-06-25 Florian Weimer <fweimer@redhat.com>
12547
12548 [BZ #18023]
12549 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12550 back to malloc directly, without stack allocations.
12551
12552 2018-06-25 Florian Weimer <fweimer@redhat.com>
12553
12554 [BZ #18023]
12555 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12556 of extend_alloca.
12557
12558 2018-06-25 Florian Weimer <fweimer@redhat.com>
12559
12560 [BZ #18023]
12561 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12562 of extend_alloca.
12563 * nscd/hstcache.c (addhstbyX): Likewise.
12564 * nscd/pwdcache.c (addpwbyX): Likewise.
12565 * nscd/servicescache.c (addservbyX): Likewise.
12566
12567 2018-06-25 Florian Weimer <fweimer@redhat.com>
12568
12569 [BZ #18023]
12570 * nscd/connections.c (read_cmdline): New function.
12571 (restart): Use it. Update comment.
12572
12573 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12574
12575 [BZ #23140]
12576 * localedata/locales/csb_PL (mon): Rename to...
12577 (alt_mon): This.
12578 (abmon): Rename to...
12579 (ab_alt_mon): This.
12580 (mon): Add with proper genitive forms, copy from Wikipedia.
12581 (abmon): Likewise.
12582
12583 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12584
12585 [BZ #19485]
12586 * localedata/locales/csb_PL (mon): Fix typos:
12587 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12588 (yesstr): Add, value is "jo".
12589 (nostr): Add, value is "nié".
12590
12591 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12592
12593 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12594 all log1p and significand functions on m680x0.
12595 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12596 of s_significand.c..
12597 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12598 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12599 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12600 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12601 s_log1p.c and include it..
12602
12603 2018-06-21 Vincent Chen <vincentc@andestech.com>
12604
12605 * elf/elf.h (R_NDS32_NONE): New define.
12606 (R_NDS32_32_RELA): Likewise.
12607 (R_NDS32_COPY): Likewise.
12608 (R_NDS32_GLOB_DAT): Likewise.
12609 (R_NDS32_JUMP_SLOT): Likewise.
12610 (R_NDS32_RELATIVE): Likewise.
12611 (R_NDS32_TLS_TPOFF): Likewise.
12612 (R_NDS32_TLS_DESC): Likewise.
12613
12614 2018-06-21 Mark Wielaard <mark@klomp.org>
12615
12616 * elf/elf.h (R_BPF_MAP_FD): Removed.
12617 (R_BPF_64_64, R_BPF_64_32): New.
12618
12619 2018-06-21 Florian Weimer <fweimer@redhat.com>
12620
12621 [BZ #23253]
12622 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12623 Renamed from libc_feholdsetround_ctx.
12624 (default_libc_feresetround_ctx): Renamed from
12625 libc_feresetround_ctx.
12626 (default_libc_feholdsetround_noex_ctx): Renamed from
12627 libc_feholdsetround_noex_ctx.
12628 (default_libc_feresetround_noex_ctx): Renamed from
12629 libc_feresetround_noex_ctx.
12630 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12631 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12632 forwardning to the old implementations under the new names.
12633 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12634 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12635 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12636 (libc_feresetround_ctx): Forward to default implements for i386
12637 and MATH_SET_BOTH_ROUNDING_MODES.
12638 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12639 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12640
12641 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12642
12643 * string/tst-cmp.c: Include <libc-diag.h>.
12644 (strncmp_max): Disable -Wstringop-overflow= around call to
12645 strncmp.
12646 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12647 strncasecmp.
12648
12649 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12650 (main): Disable -Wunused-value around call to strpbrk.
12651 * string/bug-strspn1.c: Include <libc-diag.h>.
12652 (main): Disable -Wunused-value around call to strspn.
12653
12654 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12655 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12656
12657 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12658 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12659
12660 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12661
12662 * math/Makefile (libm-calls): Move s_significandF to...
12663 (gen-libm-calls): ... here.
12664 * math/s_significand_template.c: New file.
12665 * math/s_significand.c: Removed.
12666 * math/s_significandf.c: Removed.
12667 * math/s_significandl.c: Removed.
12668 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12669 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12670
12671 * math/e_exp2_template.c (declare_mgen_finite_alias,
12672 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12673 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12674 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12675
12676 2018-06-20 Florian Weimer <fweimer@redhat.com>
12677
12678 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12679
12680 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12681
12682 [BZ #23280]
12683 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12684 floating-point number to strtod functions rather than possibly
12685 negating result of those functions.
12686 * stdio-common/tst-scanf-round.c: New file.
12687 * stdio-common/Makefile (tests): Add tst-scanf-round.
12688 ($(objpfx)tst-scanf-round): Depend on $(libm).
12689
12690 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12691
12692 * sysdeps/mach/hurd/localplt.data: Move to...
12693 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12694 R_386_GLOB_DAT like on Linux i386.
12695
12696 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12697
12698 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12699 (SHM_STAT_ANY): New macro.
12700 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12701 (SHM_STAT_ANY): Likewise.
12702 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12703 (SHM_STAT_ANY): Likewise.
12704 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12705 (SHM_STAT_ANY): Likewise.
12706 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12707 (SHM_STAT_ANY): Likewise.
12708 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12709 (SHM_STAT_ANY): Likewise.
12710 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12711 (SHM_STAT_ANY): Likewise.
12712 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12713 (SHM_STAT_ANY): Likewise.
12714 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12715 (SHM_STAT_ANY): Likewise.
12716 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12717 (SHM_STAT_ANY): Likewise.
12718 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12719 (SHM_STAT_ANY): Likewise.
12720 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12721 (SHM_STAT_ANY): Likewise.
12722
12723 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12724 (SEM_STAT_ANY): New macro.
12725 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12726 (SEM_STAT_ANY): Likewise.
12727 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12728 (SEM_STAT_ANY): Likewise.
12729 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12730 (SEM_STAT_ANY): Likewise.
12731 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12732 (SEM_STAT_ANY): Likewise.
12733 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12734 (SEM_STAT_ANY): Likewise.
12735 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12736 (SEM_STAT_ANY): Likewise.
12737 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12738 (SEM_STAT_ANY): Likewise.
12739 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12740 (SEM_STAT_ANY): Likewise.
12741 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12742 (SEM_STAT_ANY): Likewise.
12743
12744 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12745 (MSG_STAT_ANY): New macro.
12746 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12747 (MSG_STAT_ANY): Likewise.
12748 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12749 (MSG_STAT_ANY): Likewise.
12750 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12751 (MSG_STAT_ANY): Likewise.
12752 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12753 (MSG_STAT_ANY): Likewise.
12754 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12755 (MSG_STAT_ANY): Likewise.
12756 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12757 (MSG_STAT_ANY): Likewise.
12758 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12759 (MSG_STAT_ANY): Likewise.
12760 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12761 (MSG_STAT_ANY): Likewise.
12762 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12763 (MSG_STAT_ANY): Likewise.
12764
12765 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12766 (MAP_TYPE): Change value to 0x2b.
12767
12768 2018-06-18 Florian Weimer <fweimer@redhat.com>
12769
12770 [BZ #15722]
12771 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12772 socket with SOCK_CLOEXEC.
12773
12774 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12775
12776 [BZ #23303]
12777 * sysdeps/powerpc/powerpc64/le/Makefile
12778 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12779 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12780 (gnulib-tests): Also add $(f128-loader-link) for
12781 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12782
12783 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12784
12785 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12786 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12787 of sendfile.
12788 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12789 (sendfile64): New strong alias.
12790 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12791 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12792 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12793 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12794 attribute.
12795 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12796 ___pthread_get_cleanup_stack.
12797 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12798 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12799 * mach/shortcut.awk: Make syscall stubs include
12800 <mach-shortcuts-hidden.h> and add hidden definition.
12801 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12802 (__mach_msg): Add hidden prototype.
12803 * mach/msg.c: Include <mach.h>.
12804 (__mach_msg): Add hidden definition.
12805 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12806 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12807 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12808 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12809 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12810 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12811 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12812 prototype and definition.
12813 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12814 hidden target for _hurd_self_sigstate.
12815
12816 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12817
12818 [BZ #23007]
12819 * stdlib/tst-strtod-nan-sign-main.c: New file.
12820 * stdlib/tst-strtod-nan-sign.c: Likewise.
12821 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12822 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12823 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12824 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12825 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12826
12827 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12828
12829 [BZ #23007]
12830 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12831 appropriate sign.
12832
12833 2018-06-14 Florian Weimer <fweimer@redhat.com>
12834
12835 [BZ #23290]
12836 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12837 that the result stays within the ISO-8859-1 range.
12838 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12839 characters are defined in IBM273.
12840
12841 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12842
12843 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12844 __mach_task_self): Remove attribute_hidden.
12845
12846 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12847
12848 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12849 ignore -Wrestrict for one test.
12850
12851 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12852 Szabolcs Nagy <szabolcs.nagy@arm.com>
12853
12854 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12855
12856 2018-06-14 Florian Weimer <fweimer@redhat.com>
12857
12858 * scripts/update-abilist.sh: Accept empty list of files to patch.
12859
12860 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12861
12862 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12863 test-xfail-check-abi-libmachuser): Add.
12864 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12865 __libc_read and __libc_write to __read and __write.
12866 * sysdeps/hurd/include/hurd/port.h: New file.
12867 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12868 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12869 __thread_switch, __evc_wait): Move declarations to...
12870 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12871 attribute_hidden.
12872 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12873 use PLT to call _hurd_self_sigstate.
12874
12875 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12876
12877 [BZ #23279]
12878 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12879 MAX_EXP as overflowing.
12880 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12881 overflow flag.
12882 (round_str): Output also whether result overflows in each rounding
12883 mode.
12884 * stdlib/tst-strtod-round-data: Add more tests.
12885 * stdlib/tst-strtod-round-data.h: Regenerated.
12886 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12887 (TEST): Handle extra arguments for overflow flags.
12888 (struct test_overflow): New type.
12889 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12890 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12891 (test_in_one_mode): Take argument with overflow information.
12892 (do_test): Update calls to test_in_one_mode.
12893
12894 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12895
12896 * elf/dl-load (_dl_dst_substitute): Correct comment.
12897 (_dl_dst_count): Likewise.
12898
12899 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12900 lll_futex_timed_wait.
12901
12902 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12903
12904 [BZ #23277]
12905 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12906 attribute.
12907 * math/test-nan-const.c: New file.
12908 * math/Makefile (tests): Add test-nan-const.
12909 (CFLAGS-test-nan-const.c): New variable.
12910
12911 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12912
12913 * benchtests/scripts/compare_strings.py (process_results): Add
12914 funcs argument. Compare only functions which are selected.
12915 (main): Check if base function is among selected functions.
12916 Pass selected functions to process_results.
12917 (__main__): Add -f/--functions argument.
12918
12919 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12920 Hongbo Zhang <hongbo.zhang@linaro.org>
12921
12922 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12923 __memcpy_falkor for phecda core.
12924 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12925 __memmove_falkor for phecda core.
12926 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12927 __memset_falkor for phecda core.
12928 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12929 for phecda core.
12930 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12931 macro to identify phecda core.
12932
12933 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12934 Andreas Schwab <schwab@suse.de>
12935 Dmitry V. Levin <ldv@altlinux.org>
12936 Florian Weimer <fweimer@redhat.com>
12937
12938 [BZ #23102]
12939 [BZ #21942]
12940 [BZ #18018]
12941 [BZ #23259]
12942 CVE-2011-0536
12943 * elf/dl-dst.h: Remove DL_DST_COUNT.
12944 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12945 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12946 (is_dst): Comment. Support ELF gABI.
12947 (_dl_dst_count): Comment. Simplify and count DSTs.
12948 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12949 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12950 locals.
12951
12952 2018-06-12 Zack Weinberg <zackw@panix.com>
12953
12954 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12955 * sysdeps/unix/sysv/linux/dl-sysdep.c
12956 Include not-cancel.h. Use __close_nocancel instead of __close,
12957 __open64_nocancel instead of __open, __read_nocancel instead of
12958 __libc_read, and __write_nocancel instead of __libc_write.
12959
12960 * csu/check_fds.c (check_one_fd)
12961 * sysdeps/posix/fdopendir.c (__fdopendir)
12962 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12963 instead of __fcntl and/or __libc_fcntl.
12964
12965 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12966 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12967 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12968 Use __open64_nocancel instead of __open_nocancel.
12969
12970 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12971 hidden_proto declarations to the end and issue them if either
12972 IS_IN(libc) or IS_IN(rtld).
12973 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12974 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12975 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12976 read_nocancel, waitpid_nocancel, write_nocancel.
12977
12978 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12979 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12980 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12981
12982 * nptl/pt-fcntl.c: New file.
12983 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12984 (libpthread-routines): Add pt-fcntl.
12985 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12986 (__libc_fcntl): Remove attribute_hidden.
12987 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12988 __fcntl_nocancel_adjusted, not fcntl_common.
12989 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12990 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12991 to fcntl_nocancel.c.
12992 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12994 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12995 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12996
12997 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12998 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12999 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
13000 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
13001 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
13002 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
13003 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
13004 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
13005 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
13006 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
13007 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
13008 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
13009 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
13010 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
13011 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
13012 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
13013 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
13014 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
13015 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
13016 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
13017
13018 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
13019 libpthread-routines.
13020 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
13021 defines nothing.
13022
13023 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
13024 __libc_read, and __write instead of __libc_write. Define
13025 __open64 in addition to __open.
13026
13027 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
13028
13029 [BZ #23250]
13030 [BZ #10686]
13031 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
13032 to _private_tm[3] and add __glibc_reserved2.
13033 Add _Static_assert of offset of __private_ss == 0x30.
13034 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
13035 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
13036
13037 2018-06-12 Florian Weimer <fweimer@redhat.com>
13038
13039 x86: Make strncmp usable from rtld.
13040 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
13041 __strncmp_ia32 if in libc (and not in rtld).
13042 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
13043 strncmp if not in libc (and not to __strncmp_sse2).
13044
13045 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
13046
13047 [BZ #23140]
13048 * localedata/locales/gd_GB (mon): Rename to...
13049 (alt_mon): This.
13050 (mon): Import from CLDR (genitive case).
13051 * localedata/locales/hsb_DE (mon): Rename to...
13052 (alt_mon): This.
13053 (mon): Import from CLDR (genitive case).
13054 * localedata/locales/wa_BE (mon): Rename to...
13055 (alt_mon): This.
13056 (mon): Add, fill with the proper genitive forms, but CLDR data
13057 is incomplete; completed according to the comments in this file.
13058 (d_t_fmt): Do not use "di" before the month name, no longer needed.
13059
13060 * localedata/locales/wa_BE (country_name): Reword
13061 "Beljike" -> "Beldjike".
13062
13063 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13064
13065 [BZ #23272]
13066 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13067 cases of non-finite arguments.
13068 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13069
13070 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13071
13072 [BZ #23174]
13073 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13074
13075 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13076
13077 [BZ #23264]
13078 * include/unistd.h (__execvpex): New prototype.
13079 * posix/Makefile (tests): Add tst-spawn4.
13080 (tests-internal): Add tst-spawn4-compat.
13081 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13082 * posix/tst-spawn4-compat.c: New file.
13083 * posix/tst-spawn4.c: Likewise.
13084 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13085 binaries as shell scripts.
13086 * sysdeps/posix/spawni.c (__spawni): Likewise.
13087
13088 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13089
13090 [BZ #23145]
13091 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13092 ($(all-built-dso:=.dynsym): New target.
13093 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13094 ($(objpfx)check-initfini.out): New target.
13095 (generated): Add check-initfini.out.
13096 * scripts/check-initfini.awk: New file.
13097 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13098 (_fini): Likewise.
13099 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13100 (_fini): Likewise.
13101 * sysdeps/arm/crti.S (_init): Mark as hidden.
13102 (_fini): Likewise.
13103 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13104 (_fini): Likewise.
13105 * sysdeps/i386/crti.S (_init): Mark as hidden.
13106 (_fini): Likewise.
13107 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13108 (_fini): Likewise.
13109 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13110 (_fini): Likewise.
13111 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13112 (_fini): Likewise.
13113 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13114 (_fini): Likewise.
13115 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13116 (_fini): Likewise.
13117 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13118 (_fini): Likewise.
13119 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13120 (_fini): Likewise.
13121 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13122 (_fini): Likewise.
13123 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13124 (_fini): Likewise.
13125 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13126 (_fini): Likewise.
13127 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13128 (_fini): Likewise.
13129 * sysdeps/sh/crti.S (_init): Mark as hidden.
13130 (_fini): Likewise.
13131 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13132 (_fini): Likewise.
13133 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13134 (_fini): Likewise.
13135
13136 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13137
13138 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13139 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13140 and TF redirection to KFtype and KF only when the default
13141 long double type is not the IEEE 128-bit floating point type.
13142
13143 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13144
13145 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13146 macro.
13147 (HWCAP_USCAT): Likewise.
13148 (HWCAP_ILRCPC): Likewise.
13149 (HWCAP_FLAGM): Likewise.
13150 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13151 Increase to 28.
13152 (_dl_aarch64_cap_flags): Add new flag names.
13153
13154 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13155 (MAP_FIXED_NOREPLACE): New macro.
13156 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13157 (MAP_FIXED_NOREPLACE): Likewise.
13158 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13159 (MAP_FIXED_NOREPLACE): Likewise.
13160 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13161 (MAP_FIXED_NOREPLACE): Likewise.
13162 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13163 (MAP_FIXED_NOREPLACE): Likewise.
13164 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13165 (MAP_FIXED_NOREPLACE): Likewise.
13166 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13167 (MAP_FIXED_NOREPLACE): Likewise.
13168 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13169 (MAP_FIXED_NOREPLACE): Likewise.
13170 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13171 (MAP_FIXED_NOREPLACE): Likewise.
13172 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13173 (MAP_FIXED_NOREPLACE): Likewise.
13174 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13175 (MAP_FIXED_NOREPLACE): Likewise.
13176 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13177 (MAP_FIXED_NOREPLACE): Likewise.
13178 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13179 (MAP_FIXED_NOREPLACE): Likewise.
13180 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13181 (MAP_FIXED_NOREPLACE): Likewise.
13182 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13183 (MAP_FIXED_NOREPLACE): Likewise.
13184
13185 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13186 version to 4.17.
13187
13188 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13189
13190 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13191 version to 4.17
13192
13193 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13194
13195 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13196 int.
13197 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13198
13199 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13200
13201 * benchtests/scripts/compare_string.py: (process_results) Catch
13202 exception in non-existent base_func and catch exception in
13203 non-existent attribute.
13204 (parse_file) Catch exception if input file does not exist.
13205
13206 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13207
13208 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13209 options to avoid diff calculation and omit header, respectively.
13210 (main): process --no-diff and --no-header
13211
13212 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13213 H.J. Lu <hongjiu.lu@intel.com>
13214
13215 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13216 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13217 wcsncmp-sse2.
13218 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13219 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13220 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13221 and __wcsncmp_sse2.
13222 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13223 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13224 AVX unaligned load is fast and vzeroupper is preferred.
13225 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13226 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13227 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13228 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13229 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13230 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13231 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13232 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13233 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13234 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13235 is undefined.
13236
13237 2018-06-01 Florian Weimer <fweimer@redhat.com>
13238
13239 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13240 configuring with --disable-multi-arch, building with
13241 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13242 Haswell-era CPU.
13243
13244 2018-06-01 Florian Weimer <fweimer@redhat.com>
13245
13246 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13247 results from building with “-march=x86-64 -mtune=generic
13248 -mfpmath=sse” and running on a Haswell-era CPU.
13249
13250 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13251
13252 [BZ #18473]
13253 * soft-fp/sqrttf2.c: Remove file.
13254 * soft-fp/sqrtdf2.c: Move to ....
13255 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13256 <shlib-compat.h>.
13257 (__sqrtdf2): Make conditional on
13258 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13259 symbol.
13260 * soft-fp/sqrtsf2.c: Move to ....
13261 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13262 <shlib-compat.h>.
13263 (__sqrtsf2): Make conditional on
13264 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13265 symbol.
13266 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13267 (gcc-double-routines): Remove sqrtdf2.
13268 (gcc-quad-routines): Remove sqrttf2.
13269 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13270 Do not filter out sqrtsf2 and sqrtdf2.
13271 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13272 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13273
13274 2018-06-01 Florian Weimer <fweimer@redhat.com>
13275
13276 * sysdeps/generic/libcidn.abilist: Remove file.
13277
13278 2018-06-01 Florian Weimer <fweimer@redhat.com>
13279
13280 [BZ #23236]
13281 * libio/strfile.h (struct _IO_str_fields): Rename members to
13282 discourage their use and add comment.
13283 (_IO_STR_DYNAMIC): Remove unused macro.
13284 * libio/strops.c (_IO_str_init_static_internal): Do not use
13285 callback pointers. Call malloc and free.
13286 (_IO_str_overflow): Do not use callback pointers. Call malloc
13287 and free.
13288 (enlarge_userbuf): Likewise.
13289 (_IO_str_finish): Call free.
13290 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13291 _allocate_buffer_unused.
13292 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13293 and free.
13294 (enlarge_userbuf): Likewise.
13295 (_IO_wstr_finish): Call free.
13296 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13297 _allocate_buffer_unused, _free_buffer_unused.
13298 * libio/memstream.c (__open_memstream): Likewise.
13299 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13300 * libio/wmemstream.c (open_wmemstream): Likewise.
13301
13302 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13303
13304 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13305 AMD Ryzen 7 1800X.
13306
13307 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13308
13309 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13310 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13311 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13312 New file.
13313 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13314 Likewise.
13315 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13316
13317 2018-05-29 Florian Weimer <fweimer@redhat.com>
13318
13319 * support/Makefile (libsupport-routines): Add
13320 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13321 xpthread_barrierattr_setpshared.
13322 * support/xpthread_barrierattr_destroy.c: New file.
13323 * support/xpthread_barrierattr_init.c: Likewise.
13324 * support/xpthread_barrierattr_setpshared.c: Likewise.
13325
13326 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13327
13328 [BZ #23206]
13329 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13330 _r_debug and update DT_DEBUG for debugger.
13331
13332 2018-05-29 Florian Weimer <fweimer@redhat.com>
13333
13334 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13335 (tst-strtod5i.out): Likewise.
13336
13337 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13338
13339 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13340 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13341 (sparc64-quad-routines): New variable. Moved from ....
13342 [$(subdir) = soft-fp] (sysdep_routines): Add
13343 $(sparc64-quad-routines). Moved from ....
13344 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13345 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13346 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13347 moved from ....
13348 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13349 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13350 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13351 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13352 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13353 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13354 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13355 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13356 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13357 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13358 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13359 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13360 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13361 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13362 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13363 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13364 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13365 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13366 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13367 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13368 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13369 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13370 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13371 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13372 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13373 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13374 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13375 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13376 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13377 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13378 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13379 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13380 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13381 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13382 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13383 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13384 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13385 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13386 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13387 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13388 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13389 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13390 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13391 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13392 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13393 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13394 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13395 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13396 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13397 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13398 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13399 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13400 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13401 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13402 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13403 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13404 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13405 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13406
13407 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13408 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13409 (sparc32-quad-routines): New variable. Moved from ....
13410 [$(subdir) = soft-fp] (sysdep_routines): Add
13411 $(sparc32-quad-routines). Moved from ....
13412 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13413 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13414 moved from ....
13415 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13416 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13417 * sysdeps/sparc/sparc32/q_add.c: ... here.
13418 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13419 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13420 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13421 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13422 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13423 * sysdeps/sparc/sparc32/q_div.c: ... here.
13424 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13425 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13426 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13427 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13428 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13429 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13430 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13431 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13432 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13433 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13434 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13435 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13436 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13437 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13438 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13439 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13440 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13441 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13442 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13443 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13444 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13445 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13446 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13447 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13448 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13449 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13450 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13451 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13452 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13453 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13454 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13455 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13456 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13457 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13458 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13459 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13460 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13461 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13462 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13463 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13464 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13465 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13466 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13467 * sysdeps/sparc/sparc32/q_util.c: ... here.
13468 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13469 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13470 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13471 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13472
13473 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13474 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13475
13476 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13477 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13478 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13479 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13480
13481 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13482
13483 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13484 powerpc/soft-fp.
13485 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13486 Likewise.
13487 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13488 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13489
13490 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13491
13492 [BZ #23171]
13493 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13494 double version.
13495
13496 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13497
13498 * sysdeps/sh/Implies: Remove sh/soft-fp.
13499 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13500 * sysdeps/sh/sfp-machine.h: ... here.
13501
13502 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13503
13504 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13505 (__mempcpy_erms): Skip zero length.
13506 (__memmove_erms): Likewise.
13507 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13508 (__memset_erms): Likewise.
13509
13510 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13511
13512 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13513 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13514 Add functions moved from ....
13515 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13516 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13517 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13518 from ....
13519 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13520 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13521 * sysdeps/alpha/e_sqrtl.c: ... here.
13522 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13523 * sysdeps/alpha/local-soft-fp.h: ... here.
13524 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13525 * sysdeps/alpha/ots_add.c: ... here.
13526 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13527 * sysdeps/alpha/ots_cmp.c: ... here.
13528 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13529 * sysdeps/alpha/ots_cmpe.c: ... here.
13530 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13531 * sysdeps/alpha/ots_cvtqux.c: ... here.
13532 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13533 * sysdeps/alpha/ots_cvtqx.c: ... here.
13534 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13535 * sysdeps/alpha/ots_cvttx.c: ... here.
13536 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13537 * sysdeps/alpha/ots_cvtxq.c: ... here.
13538 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13539 * sysdeps/alpha/ots_cvtxt.c: ... here.
13540 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13541 * sysdeps/alpha/ots_div.c: ... here.
13542 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13543 * sysdeps/alpha/ots_mul.c: ... here.
13544 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13545 * sysdeps/alpha/ots_nintxq.c: ... here.
13546 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13547 * sysdeps/alpha/ots_sub.c: ... here.
13548 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13549 * sysdeps/alpha/sfp-machine.h: ... here.
13550
13551 2018-05-23 Florian Weimer <fweimer@redhat.com>
13552
13553 [BZ #19728]
13554 [BZ #19729]
13555 [BZ #22247]
13556 CVE-2016-6261
13557 CVE-2016-6263
13558 CVE-2017-14062
13559 Switch to extern IDNA implementation (libidn2).
13560 * libidn: Remove subdirectory.
13561 * LICENSES: Do not mention licensing conditions for the removed
13562 libidn code.
13563 * config.h.in (HAVE_LIBIDN): Remove.
13564 * include/dlfcn.h (__libc_dlopen): Update comment.
13565 * include/idna.h: Remove file.
13566 * inet/Makefile (routines): Add idna.
13567 (tests-static, tests-internal): Add tst-idna_name_classify.
13568 (LOCALES): Generate locales for tests.
13569 (tst-idna_name_classify.out): Depend on generated locales.
13570 * inet/idna_name_classify.c: New file.
13571 * inet/tst-idna_name_classify.c: Likewise.
13572 * inet/net-internal.h (__idna_to_dns_encoding)
13573 (__idna_from_dns_encoding): Declare.
13574 * inet/net-internal.h (enum idna_name_classification): Define.
13575 (__idna_name_classify): Declare.
13576 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13577 __idna_from_dns_encoding.
13578 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13579 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13580 name as a fallback in case of encoding errors.
13581 (getnameinfo): Use DEPRECATED_NI_IDN.
13582 * inet/idna.c: New file.
13583 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13584 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13585 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13586 (modules-names): Add tst-no-libidn2.
13587 (extra-test-objs): Add tst-no-libidn2.os.
13588 (LDFLAGS-tst-no-libidn2.so): Set soname.
13589 (LOCALES): Set, and generate locales.
13590 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13591 (tst-resolv-ai_idn-latin1): Likewise.
13592 (tst-resolv-ai_idn-nolibidn2): Likewise.
13593 (tst-resolv-ai_idn.out): Depend on locales.
13594 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13595 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13596 tst-no-libidn2.so.
13597 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13598 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13599 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13600 * resolv/tst-resolv-ai_idn.c: New file.
13601 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13602 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13603 * resolv/tst-no-libidn2.c: Likewise.
13604 * support/support_format_addrinfo.c (format_ai_flags): Do not
13605 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13606 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13607 (gaih_inet): Call __idna_to_dns_encoding and
13608 __idna_from_dns_encoding, and use the original (punycode) name if
13609 __idna_from_dns_encoding fails due to an encoding error.
13610 (getaddrinfo): Use DEPRECATED_AI_IDN.
13611 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13612 * sysdeps/unix/inet/configure: Remove file.
13613 * sysdeps/unix/inet/configure.ac: Likewise.
13614
13615 2018-05-23 Florian Weimer <fweimer@redhat.com>
13616
13617 Implement allocate_once.
13618 * include/allocate_once.h: New file.
13619 * misc/allocate_once.c: Likewise.
13620 * misc/tst-allocate_once.c: Likewise.
13621 * misc/Makefile (routines): Add allocate_once.
13622 (tests-internal): Add tst-allocate_once.
13623 (generated): Add tst-allocate_once.mtrace,
13624 tst-allocate_once-mem.out.
13625 (tests-special): Add tst-allocate_once-mem.out.
13626 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13627 (tst-allocate_once-mem.out): Call mtrace.
13628 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13629
13630 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13631
13632 [BZ #23196]
13633 * string/test-memcpy.c (do_test1): New function.
13634 (test_main): Call it.
13635
13636 2018-05-23 Andreas Schwab <schwab@suse.de>
13637
13638 [BZ #23196]
13639 CVE-2018-11237
13640 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13641 (L(preloop_large)): Save initial destination pointer in %r11 and
13642 use it instead of %rax after the loop.
13643 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13644
13645 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13646
13647 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13648 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13649 -I../soft-fp. Moved from ....
13650 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13651 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13652 * sysdeps/aarch64/e_sqrtl.c: ... here.
13653 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13654 * sysdeps/aarch64/sfp-machine.h: ... here.
13655
13656 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13657 -Wmaybe-uninitialized around access to fq[0].
13658 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13659 Likewise.
13660
13661 [BZ #18471]
13662 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13663 aliases for non-libc case of versioned symbols.
13664 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13665 (llseek): Define as compat symbol if
13666 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13667 with link warning.
13668 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13669 Make into a compat symbol, disabled for minimum symbol version
13670 GLIBC_2.28 and later.
13671 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13672
13673 2018-05-22 Florian Weimer <fweimer@redhat.com>
13674
13675 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13676 not add -mpreferred-stack-boundary=4.
13677 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13678 (stack-align-test-flags): Likewise.
13679 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13680 Likewise.
13681 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13682 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13683 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13684 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13685 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13686 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13687 (CFLAGS-tst-align2.c): Likewise.
13688
13689 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13690
13691 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13692 (index_arch_Prefer_FSRM): Likewise.
13693 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13694 Also check Prefer_FSRM.
13695 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13696 Also return OPTIMIZE (erms) for Prefer_FSRM.
13697
13698 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13699
13700 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13701 (index_cpu_FSRM): Likewise.
13702 (reg_FSRM): Likewise.
13703
13704 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13705
13706 * math/gen-tgmath-tests.py: Import sys.
13707 (Tests.__init__): Initialize macros_seen.
13708 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13709 if requested to do so for this macro.
13710 (Tests.add_all_tests): Take argument for macro for which to
13711 generate tests.
13712 (Tests.check_macro_list): New function.
13713 (main): Handle check-list argument and argument specifying macro
13714 for which to generate tests.
13715 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13716 [PYTHON] (tgmath3-macro-tests): Likewise.
13717 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13718 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13719 not test-tgmath3.c.
13720 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13721 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13722 to CFLAGS.
13723 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13724 [PYTHON] ($(foreach
13725 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13726 rule.
13727 [PYTHON] (tests-special): Add
13728 $(objpfx)test-tgmath3-macro-list.out.
13729 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13730
13731 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13732 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13733 later.
13734
13735 [BZ #22639]
13736 * time/tzset.c (SECSPERDAY): Cast to time_t.
13737 * time/tst-y2039.c: New file.
13738 * time/Makefile (tests): Add tst-y2039.
13739
13740 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13741
13742 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13743 (PREFETCH_ONE_SET): Remove duplicate line.
13744
13745 2018-05-17 Florian Weimer <fweimer@redhat.com>
13746
13747 * sysdeps/generic/math-type-macros-double.h: Include
13748 <math-nan-payload-double.h> after <libm-alias-double.h>.
13749 * sysdeps/generic/math-type-macros-float.h: Include
13750 <math-nan-payload-float.h> after <libm-alias-float.h>.
13751 * sysdeps/generic/math-type-macros-float128.h: Include
13752 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13753 * sysdeps/generic/math-type-macros-ldouble.h: Include
13754 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13755
13756 2018-05-17 Andreas Schwab <schwab@suse.de>
13757
13758 * resolv/res_send.c (__res_context_send): Don't set errno when
13759 returing error after malloc failure.
13760
13761 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13762
13763 * nptl/allocatestack.c (allocate_stack): Remove the
13764 !__ASSUME_PRIVATE_FUTEX paths.
13765 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13766 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13767 Likewise.
13768 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13769 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13770 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13771 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13772 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13773 !__ASSUME_PRIVATE_FUTEX path.
13774 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13775 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13776 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13777 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13778 !__ASSUME_PRIVATE_FUTEX macros.
13779 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13780 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13781 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13782 * sysdeps/unix/sysv/linux/kernel-features.h
13783 (__ASSUME_PRIVATE_FUTEX): Removed.
13784
13785 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13786
13787 * math/Makefile (libm-narrow-fns): Add div.
13788 (libm-test-funcs-narrow): Likewise.
13789 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13790 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13791 * math/gen-auto-libm-tests.c (test_functions): Add div.
13792 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13793 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13794 (NARROW_DIV_TRIVIAL): Likewise.
13795 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13796 macro.
13797 (__ddivl): Likewise.
13798 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13799 ddiv.
13800 (CFLAGS-nldbl-ddiv.c): New variable.
13801 (CFLAGS-nldbl-fdiv.c): Likewise.
13802 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13803 __nldbl_ddivl.
13804 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13805 prototype.
13806 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13807 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13808 * math/auto-libm-test-in: Add tests of div.
13809 * math/auto-libm-test-out-narrow-div: New generated file.
13810 * math/libm-test-narrow-div.inc: New file.
13811 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13812 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13813 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13814 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13815 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13816 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13817 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13818 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13819 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13820 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13821 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13822 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13823 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13824 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13825 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13826 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13827 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13828 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13829 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13830 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13831 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13832 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13833 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13834 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13835 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13836 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13837 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13838 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13839 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13840 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13841 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13842 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13843 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13845 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13847 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13848 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13849 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13850 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13851 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13852 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13853 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13854 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13855
13856 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13857
13858 [BZ #23178]
13859 * nscd/nscd-client.h (sendfileall): Remove prototype.
13860 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13861 (handle_request): Use writeall instead of sendfileall.
13862 * nscd/aicache.c (addhstaiX): Likewise.
13863 * nscd/grpcache.c (cache_addgr): Likewise.
13864 * nscd/hstcache.c (cache_addhst): Likewise.
13865 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13866 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13867 * nscd/pwdcache.c (cache_addpw): Likewise.
13868 * nscd/servicescache.c (cache_addserv): Likewise.
13869 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13870 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13871 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13872 Remove define.
13873
13874 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13875
13876 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13877 Include <string/strncat.c>.
13878 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13879 alias.
13880 (__GI___strncat): New hidden alias.
13881
13882 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13883
13884 * sysdeps/mips/mips32/libm-test-ulps: Update.
13885 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13886
13887 2018-05-16 Florian Weimer <fweimer@redhat.com>
13888
13889 * support/Makefile (libsupport-routines): Add support_quote_blob,
13890 support_test_compare_blob.
13891 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13892 * support/check.h (TEST_COMPARE_BLOB): Define.
13893 (support_test_compare_blob): Declare.
13894 * support/support.h (support_quote_blob): Declare.
13895 * support/support_quote_blob.c: New file.
13896 * support/support_test_compare_blob.c: Likewise.
13897 * support/tst-support_quote_blob.c: Likewise.
13898 * support/tst-test_compare_blob.c: Likewise.
13899
13900 2018-05-16 Florian Weimer <fweimer@redhat.com>
13901
13902 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13903 of <strtod_nan_double.h>.
13904 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13905 instead of SET_MANTISSA.
13906 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13907 of include <strtod_nan_float.h>.
13908 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13909 instead of <strtod_nan_ldouble.h>.
13910 * stdlib/strtod_nan_double.h: Move to ...
13911 * sysdeps/generic/math-nan-payload-double.h: ... here.
13912 (FLOAT): Remove definition.
13913 (SET_MANTISSA): Rename to ...
13914 (SET_NAN_PAYLOAD): ... this.
13915 * stdlib/strtod_nan_float.h: Move to ...
13916 * sysdeps/generic/math-nan-payload-float.h: ... here.
13917 (FLOAT): Remove definition.
13918 (SET_MANTISSA): Rename to ...
13919 (SET_NAN_PAYLOAD): ... this.
13920 * sysdeps/generic/math-type-macros-double.h: Include
13921 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13922 instead of <math-svid-compat.h>.
13923 * sysdeps/generic/math-type-macros-float.h: Include
13924 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13925 instead of <math-svid-compat.h>.
13926 * sysdeps/generic/math-type-macros-float128.h: Include
13927 <math-nan-payload-float128.h>.
13928 * sysdeps/generic/math-type-macros-ldouble.h: Include
13929 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13930 instead of <math-svid-compat.h>.
13931 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13932 check for definition.
13933 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13934 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13935 Include <ieee754_float128.h>.
13936 (FLOAT): Remove definition.
13937 (SET_MANTISSA): Rename to ...
13938 (SET_NAN_PAYLOAD): ... this.
13939 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13940 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13941 Do not include <float128_private.h>.
13942 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13943 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13944 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13945 (FLOAT): Remove definition.
13946 (SET_MANTISSA): Rename to ...
13947 (SET_NAN_PAYLOAD): ... this.
13948 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13949 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13950 (FLOAT): Remove definition.
13951 (SET_MANTISSA): Rename to ...
13952 (SET_NAN_PAYLOAD): ... this.
13953 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13954 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13955 (FLOAT): Remove definition.
13956 (SET_MANTISSA): Rename to ...
13957 (SET_NAN_PAYLOAD): ... this.
13958 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13959 of "../stdlib/strtod_nan_double.h".
13960 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13961 of "../stdlib/strtod_nan_float.h".
13962 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13963 instead of "../stdlib/strtod_nan_ldouble.h".
13964 * manual/arith.texi (Parsing of Floats): Adjust comment.
13965
13966 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13967
13968 * math/Makefile (libm-narrow-fns): Add mul.
13969 (libm-test-funcs-narrow): Likewise.
13970 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13971 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13972 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13973 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13974 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13975 (NARROW_MUL_TRIVIAL): Likewise.
13976 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13977 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13978 macro.
13979 (__dmull): Likewise.
13980 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13981 dmul.
13982 (CFLAGS-nldbl-dmul.c): New variable.
13983 (CFLAGS-nldbl-fmul.c): Likewise.
13984 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13985 __nldbl_dmull.
13986 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13987 prototype.
13988 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13989 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13990 * math/auto-libm-test-in: Add tests of mul.
13991 * math/auto-libm-test-out-narrow-mul: New generated file.
13992 * math/libm-test-narrow-mul.inc: New file.
13993 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13994 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13995 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13996 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13997 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13998 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13999 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
14000 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
14001 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
14002 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
14003 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
14004 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
14005 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
14006 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
14007 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
14008 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
14009 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
14010 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
14011 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14012 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14013 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14014 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14015 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14016 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14017 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14018 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14019 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14020 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14021 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14022 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14023 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14024 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14025 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14027 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14029 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14030 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14031 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14032 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14033 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14034 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14035 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14036 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14037
14038 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14039
14040 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
14041 with *%eax in call.
14042
14043 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14044
14045 * sysdeps/i386/ldsodefs.h: Removed.
14046 * sysdeps/x86_64/ldsodefs.h: Moved to ...
14047 * sysdeps/x86/ldsodefs.h: This.
14048 (La_i86_regs): New.
14049 (La_i86_retval): Likewise.
14050 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
14051 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
14052
14053 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
14054
14055 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
14056 unnecessary testl.
14057
14058 2018-05-13 Alan Modra <amodra@gmail.com>
14059
14060 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14061 R_PARISC_TLS_DTPOFF32 reloc addend.
14062
14063 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14064
14065 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14066 * math/math.h: Restrict the prototype definition for the functions
14067 issignaling(_Float128) and iszero(_Float128); and template
14068 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14069 __HAVE_FLOAT128_UNLIKE_LDBL.
14070 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14071 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14072 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14073 __f128() constants; define the type _Float128 as long double;
14074 and reuse long double in __CFLOAT128.
14075
14076 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14077
14078 * sysdeps/generic/math_private.h: Do not include
14079 <math-barriers.h>.
14080 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14081 <math_private.h>.
14082 * math/fromfp.h: Include <math-barriers.h>.
14083 * math/math-narrow.h: Likewise.
14084 * math/s_nextafter.c: Likewise.
14085 * math/s_nexttowardf.c: Likewise.
14086 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14087 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14088 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14089 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14090 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14091 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14092 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14093 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14094 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14095 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14096 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14097 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14098 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14099 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14100 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14101 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14102 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14103 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14104 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14105 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14106 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14107 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14108 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14109 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14110 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14111 * sysdeps/ieee754/k_standardl.c: Likewise.
14112 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14113 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14114 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14115 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14116 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14117 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14118 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14119 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14120 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14121 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14122 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14123 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14124 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14125 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14126 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14127 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14128 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14129 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14130 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14131 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14132 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14133 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14134
14135 2018-05-11 Florian Weimer <fweimer@redhat.com>
14136
14137 Use 64-bit epoch values in the time zone file parser.
14138 * include/time.h (internal_time_t): Define.
14139 (__tzfile_compute): Use it.
14140 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14141 member.
14142 (transitions): Switch to internal_time_t.
14143 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14144 types.
14145 (__tzfile_compute): Use internal_time_t for timer argument. Check
14146 for truncation before calling __offtime.
14147
14148 2018-05-11 Florian Weimer <fweimer@redhat.com>
14149
14150 [BZ #23166]
14151 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14152 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14153 Likewise.
14154 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14155 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14156 export without --enable-obsolete-rpc.
14157 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14158 symbol. This should not have been exported, ever.
14159
14160 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14161
14162 [BZ #23152]
14163 * localedata/locales/gd_GB (abmon): Fix typo in May:
14164 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14165
14166 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14167
14168 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14169 Use multiple registers to copy data in loop tail.
14170
14171 * sysdeps/aarch64/multiarch/memmove_falkor.S
14172 (__memmove_falkor): Use multiple registers to move data in
14173 loop tail.
14174
14175 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14176
14177 * math/math-underflow.h: New file.
14178 * sysdeps/generic/math_private.h: Do not include <float.h>.
14179 (fabs_tg): Remove macro. Moved to math-underflow.h.
14180 (min_of_type_f): Likewise.
14181 (min_of_type_): Likewise.
14182 (min_of_type_l): Likewise.
14183 (min_of_type_f128): Likewise.
14184 (min_of_type): Likewise.
14185 (math_check_force_underflow): Likewise.
14186 (math_check_force_underflow_nonneg): Likewise.
14187 (math_check_force_underflow_complex): Likewise.
14188 * math/e_exp2_template.c: Include <math-underflow.h>.
14189 * math/k_casinh_template.c: Likewise.
14190 * math/s_catan_template.c: Likewise.
14191 * math/s_catanh_template.c: Likewise.
14192 * math/s_ccosh_template.c: Likewise.
14193 * math/s_cexp_template.c: Likewise.
14194 * math/s_clog10_template.c: Likewise.
14195 * math/s_clog_template.c: Likewise.
14196 * math/s_csin_template.c: Likewise.
14197 * math/s_csinh_template.c: Likewise.
14198 * math/s_csqrt_template.c: Likewise.
14199 * math/s_ctan_template.c: Likewise.
14200 * math/s_ctanh_template.c: Likewise.
14201 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14202 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14203 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14204 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14205 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14206 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14207 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14208 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14209 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14210 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14211 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14212 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14213 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14214 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14215 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14216 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14217 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14218 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14219 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14220 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14221 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14222 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14223 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14224 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14225 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14226 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14227 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14228 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14229 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14230 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14231 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14232 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14233 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14234 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14235 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14236 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14237 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14238 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14239 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14240 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14241 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14242 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14243 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14244 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14245 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14246 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14247 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14248 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14249 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14250 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14251 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14252 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14253 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14254 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14255 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14256 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14257 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14258 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14259 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14260 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14261 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14262 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14263 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14264 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14265 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14266 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14267 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14268 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14269 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14270 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14271 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14272 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14273 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14274 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14275 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14276 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14277 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14278 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14279 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14280 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14281 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14282 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14283 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14284 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14285
14286 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14287
14288 * sysdeps/generic/math-barriers.h: New file.
14289 * sysdeps/generic/math_private.h [!math_opt_barrier]
14290 (math_opt_barrier): Move to math-barriers.h.
14291 [!math_opt_barrier] (math_force_eval): Likewise.
14292 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14293 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14294 math-barriers.h.
14295 (math_force_eval): Likewise.
14296 * sysdeps/alpha/fpu/math-barriers.h: New file.
14297 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14298 math-barriers.h.
14299 (math_force_eval): Likewise.
14300 * sysdeps/x86/fpu/math-barriers.h: New file.
14301 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14302 math-barriers.h.
14303 (math_force_eval): Likewise.
14304 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14305 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14306 multiple-include guard for rename.
14307 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14308 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14309 math-barriers.h.
14310 (math_force_eval): Likewise.
14311
14312 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14313
14314 [BZ #22786]
14315 CVE-2018-11236
14316 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14317 computation.
14318 * stdlib/Makefile (test-bz22786): New test.
14319 * stdlib/test-bz22786.c: New test.
14320
14321 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14322
14323 * include/math-narrow-eval.h: New file. Contents moved from ....
14324 * sysdeps/generic/math_private.h: ... here.
14325 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14326 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14327 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14328 * stdlib/strtod_l.c: Likewise.
14329 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14330 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14331 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14332 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14333 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14334 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14335 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14336 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14337 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14338 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14339 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14340 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14341 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14342 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14343 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14344 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14345 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14346 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14347 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14348 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14349 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14350 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14351 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14352 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14353 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14354 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14355 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14356 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14357 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14358
14359 2018-05-08 Andreas Schwab <schwab@suse.de>
14360
14361 * sysdeps/nptl/internaltypes.h: Fix comment.
14362
14363 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14364
14365 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14366 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14367 hidden.
14368
14369 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14370
14371 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14372 of I into loop header.
14373 * benchtests/bench-memmove-walk.c
14374 (test_main): Likewise.
14375
14376 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14377
14378 Revert:
14379 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14380 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14381
14382 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14383
14384 [BZ #20419]
14385 * elf/dl-load.c (open_verify): Fix stack overflow.
14386 * elf/Makefile (tst-big-note): New test.
14387 * elf/tst-big-note-lib.S: New.
14388 * elf/tst-big-note.c: New.
14389
14390 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14391
14392 * scripts/abilist.awk: Ignore absolute symbols.
14393 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14394 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14395 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14396 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14397 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14398 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14399 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14400 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14401 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14402 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14403 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14404 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14424 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14425 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14438 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14439 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14466 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14467 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14485 Likewise.
14486 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14487 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14488 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14492 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14493 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14494 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14495 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14496 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14497 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14498 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14499 Likewise.
14500 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14501 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14502 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14503 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14504 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14505 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14506 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14507 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14508 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14509 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14510 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14511 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14512 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14513 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14514 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14515 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14519 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14520 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14521 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14523 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14524 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14526 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14527 Likewise.
14528 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14529 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14531 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14532 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14534 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14535 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14536 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14537 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14539 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14540 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14541 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14542 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14543 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14544 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14545 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14546 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14547 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14548 Likewise.
14549 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14550 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14551 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14556 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14557 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14559 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14560 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14561 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14562 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14563 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14564 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14565 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14566 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14569 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14570 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14571 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14572 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14573 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14574 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14581 Likewise.
14582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14587 Likewise.
14588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14589 Likewise.
14590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14592 Likewise.
14593 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14595 Likewise.
14596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14597 Likewise.
14598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14601 Likewise.
14602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14603 Likewise.
14604 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14605 Likewise.
14606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14610 Likewise.
14611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14617 Likewise.
14618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14620 Likewise.
14621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14622 Likewise.
14623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14624 Likewise.
14625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14626 Likewise.
14627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14630 Likewise.
14631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14632 Likewise.
14633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14634 Likewise.
14635 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14638 Likewise.
14639 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14645 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14646 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14653 Likewise.
14654 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14666 Likewise.
14667 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14670 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14671 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14672 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14673 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14674 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14675 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14684 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14685 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14686 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14687 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14688 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14689 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14690 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14691 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14692 Likewise.
14693 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14694 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14695 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14696 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14697 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14698 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14699 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14700 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14701 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14702 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14703 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14704 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14705 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14706 Likewise.
14707 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14708 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14709 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14710 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14711 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14712 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14713 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14714 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14715 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14716 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14717 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14718 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14719 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14720 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14721 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14722 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14723 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14724 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14725 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14726 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14727 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14728 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14729 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14730 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14731 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14732 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14733 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14734 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14735 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14736 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14737 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14738 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14739 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14740 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14741 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14742 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14743 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14744 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14745
14746 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14747
14748 [BZ #23137]
14749 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14750 Use atomic_load_acquire to load __tid.
14751
14752 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14753
14754 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14755 Restore the pointer into %rdx, after syscall and use %rdx,
14756 instead of %rsi, to restore context.
14757
14758 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14759
14760 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14761 Pop the pointer into %rdx after syscall and use %rdx, instead
14762 of %rsi, to restore context.
14763
14764 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14765
14766 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14767 handlers after setjmp.
14768 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14769 defined.
14770 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14771 <libc-pointer-arith.h>.
14772 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14773 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14774 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14775 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14776 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14777 * sysdeps/x86/__longjmp_cancel.S: New file.
14778 * sysdeps/x86/longjmp.c: Likewise.
14779 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14780
14781 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14782
14783 * NEWS: Add ustat.h deprecation entry.
14784 * bits/ustat.h: Remove file.
14785 * misc/sys/ustat.h: Likewise.
14786 * misc/ustat.h: Likewise.
14787 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14788 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14789 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14790 compatibility mode.
14791 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14792 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14793 generic Linux implementation.
14794
14795 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14796
14797 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14798 * math/w_expl_compat.c: Likewise.
14799 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14800
14801 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14802
14803 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14804
14805 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14806
14807 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14808 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14809 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14810 Remove.
14811 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14812 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14813 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14814 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14815 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14816 and SYSCALL_LL64.
14817
14818 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14819
14820 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14821
14822 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14823 * math/w_asin_template.c: Likewise.
14824 * math/w_atanh_template.c: Likewise.
14825
14826 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14827
14828 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14829 to powerpc/powerpc64/be for big-endian.
14830 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14831 little-endian.
14832
14833 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14834 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14835 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14836 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14837 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14838 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14839 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14840 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14841 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14842 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14843 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14844 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14845 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14846 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14847 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14848 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14849 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14850 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14851 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14852 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14853 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14854 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14855 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14856 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14857 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14858 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14859 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14860 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14861 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14862 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14863 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14864 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14865
14866 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14867 adjusted to imply powerpc64 and older processors on powerpc64/be.
14868 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14869 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14870 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14871 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14872 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14873 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14874 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14875 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14876 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14877 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14878 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14879 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14880 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14881 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14882 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14883 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14884 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14885 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14886 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14887 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14888 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14889 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14890 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14891 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14892 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14893 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14894 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14895 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14896 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14897 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14898 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14899
14900 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14901 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14902 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14903 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14904
14905 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14906 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14907 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14908 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14909
14910 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14911 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14912 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14913 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14914 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14915 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14916 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14917 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14918 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14919 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14920 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14921
14922 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14923 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14924 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14925 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14926 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14927 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14928 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14929 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14930 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14931 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14932 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14933
14934 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14935 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14936 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14937 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14938 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14939 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14940 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14941 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14942 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14943 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14944 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14945 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14946
14947 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14948 and adjusted to imply olders processors.
14949 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14950 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14951 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14952 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14953 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14954 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14955 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14956 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14957 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14958 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14959 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14960
14961 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14962 powerpc64/le.
14963 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14964 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14965
14966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14967 powerpc64le.
14968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14970
14971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14972 powerpc64/be.
14973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14976
14977 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14978 powerpc64 and adjusted.
14979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14980 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14981 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14982 Likewise.
14983
14984 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14985
14986 * sysdeps/tile: Remove.
14987 * sysdeps/unix/sysv/linux/tile: Likewise.
14988 * README (tilegx-*-linux-gnu): Remove from list of supported
14989 configurations.
14990 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14991 contribution of support for generic Linux kernel syscall
14992 interface.
14993 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14994 tilegx configurations.
14995 (Config.install_linux_headers): Do not handle tile.
14996 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14997 in comment.
14998 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14999 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
15000 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15001 conditional undefine and redefine.
15002 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
15003 in comment.
15004 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
15005 conditional undefine and redefine.
15006
15007 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
15008
15009 * signal/tst-sigaction.c: New file to test BZ #23069.
15010 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
15011
15012 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15013
15014 [BZ #22766]
15015 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
15016 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
15017 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
15018 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
15019
15020 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15021
15022 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
15023 _DIRENT_MATCHES_DIRENT64 is not defined.
15024 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
15025 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
15026 is defined.
15027 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
15028 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
15029
15030 2018-04-25 Joseph Myers <joseph@codesourcery.com>
15031
15032 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
15033 version to GCC 8 branch.
15034
15035 2018-04-24 Joseph Myers <joseph@codesourcery.com>
15036
15037 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
15038 (check_no_hidden): Use type of original function when declaring
15039 alias.
15040
15041 * sysdeps/unix/sysv/linux/sys/ptrace.h
15042 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
15043 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
15044 (struct __ptrace_seccomp_metadata): New type.
15045 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
15046 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15047 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
15048 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15049 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
15050 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15051 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
15052 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15053 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
15054 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15055 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
15056 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15057 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
15058 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15059 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
15060 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15061
15062 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15063
15064 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15065 defined.
15066 * dirent/versionsort.c (versionsort): Likewise.
15067 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15068 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15069 * dirent/versionsort64.c (versionsort64): Likewise.
15070 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15071 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15072 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15073 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15074 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15075 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15076 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15077 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15078 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15079 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15080 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15081 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15082 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15083 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15084
15085 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15086
15087 * elf/elf.h (NT_PPC_PKEY): New macro.
15088
15089 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15090
15091 [BZ #23094]
15092 * localedata/locales/hr_HR: fix thousands_sep and
15093 mon_thousands_sep
15094
15095 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15096
15097 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15098 (XTABS): Define to TAB3.
15099
15100 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15101
15102 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15103
15104 * dirent/scandir-tail-common.c: New file.
15105 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15106 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15107 * dirent/scandir.c: Use scandir-tail-common.c.
15108 * dirent/scandirat.c: Likewise.
15109 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15110 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15111 if _DIRENT_MATCHES_DIRENT64 is defined.
15112 * dirent/scandirat64.c (scandirat64): Likewise.
15113 * include/dirent.h (__scandir_tail): Only define iff
15114 _DIRENT_MATCHES_DIRENT64 is not defined.
15115 (__scandir64_tail): Define regardless.
15116 (__scandirat, scandirat64): Remove libc_hidden_proto.
15117 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15118 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15119 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15120 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15121 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15122 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15123 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15124
15125 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15126
15127 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15128 New macro.
15129 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15130 Increase to 24.
15131 (_dl_aarch64_cap_flags): Add asimdfhm.
15132
15133 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15134
15135 * sysdeps/nios2/libm-test-ulps: Update.
15136
15137 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15138
15139 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15140 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15141
15142 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15143 requirements.
15144 (_DIRENT_MATCHES_DIRENT64): Undef
15145 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15146 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15147 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15148 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15149 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15150 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15151 use getdents64 syscalls as base.
15152 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15153 symbol if required.
15154 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15155 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15156 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15157 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15158 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15159 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15160 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15161 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15162 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15163 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15164 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15165
15166 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15167
15168 * scripts/test_printers_common.py (init_test): Disable lock elision.
15169
15170 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15171
15172 * math/test-tgmath.c (count_double, count_float,
15173 count_ldouble, count_cdouble, count_cfloat,
15174 count_cldouble): Use volatile int.
15175
15176 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15177
15178 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15179 (conformtest-xfail-conds): Add i386-gnu.
15180 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15181 i386-gnu.
15182 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15183 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15184 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15185 msqid_ds.msg_lrpid): Likewise.
15186 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15187 Likewise.
15188 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15189 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15190 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15191 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15192 unsigned int.
15193 (struct statvfs64): Likewise.
15194 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15195 Likewise.
15196 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15197 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15198 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15199 instead of wait_queue.
15200 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15201 instead of vm_area_struct.
15202 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15203 struct sched_param definition to it.
15204 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15205 * bits/types/struct_sched_param.h: New file.
15206 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15207 <bits/types/struct_sched_param.h> instead of <sched.h>.
15208 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15209 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15210 generic version but include <bits/pthreadtypes.h> to make struct
15211 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15212 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15213 non-compliant.
15214 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15215 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15216 [__USE_XOPEN] (OFDEL): New macro.
15217 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15218 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15219 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15220 prototypes.
15221 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15222 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15223 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15224 non-compliant.
15225 * sysdeps/i386/sys/ucontext.h: Likewise.
15226 * sysdeps/m68k/sys/ucontext.h: Likewise.
15227 * sysdeps/mips/sys/ucontext.h: Likewise.
15228 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15229 * sysdeps/mach/hurd/i386/Makefile
15230 (test-xfail-POSIX/fcntl.h/conform): Add.
15231 (test-xfail-POSIX/signal.h/conform): Add.
15232 (test-xfail-POSIX/semaphore.h/conform): Add.
15233 (test-xfail-POSIX/regex.h/conform): Add.
15234 (test-xfail-POSIX/aio.h/conform): Add.
15235 (test-xfail-POSIX/mqueue.h/conform): Add.
15236 (test-xfail-POSIX/sys/types.h/conform): Add.
15237 (test-xfail-UNIX98/fcntl.h/conform): Add.
15238 (test-xfail-UNIX98/netdb.h/conform): Add.
15239 (test-xfail-UNIX98/signal.h/conform): Add.
15240 (test-xfail-UNIX98/semaphore.h/conform): Add.
15241 (test-xfail-UNIX98/regex.h/conform): Add.
15242 (test-xfail-UNIX98/aio.h/conform): Add.
15243 (test-xfail-UNIX98/ftw.h/conform): Add.
15244 (test-xfail-UNIX98/mqueue.h/conform): Add.
15245 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15246 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15247 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15248 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15249 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15250 (test-xfail-UNIX98/sys/types.h/conform): Add.
15251 (test-xfail-UNIX98/stdlib.h/conform): Add.
15252 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15253 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15254 (test-xfail-POSIX2008/netdb.h/conform): Add.
15255 (test-xfail-POSIX2008/signal.h/conform): Add.
15256 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15257 (test-xfail-POSIX2008/regex.h/conform): Add.
15258 (test-xfail-POSIX2008/aio.h/conform): Add.
15259 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15260 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15261 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15262 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15263 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15264 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15265 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15266 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15267 (test-xfail-XOPEN2K/signal.h/conform): Add.
15268 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15269 (test-xfail-XOPEN2K/regex.h/conform): Add.
15270 (test-xfail-XOPEN2K/aio.h/conform): Add.
15271 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15272 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15273 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15274 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15275 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15276 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15277 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15278 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15279 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15280 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15281 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15282 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15283 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15284 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15285 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15286 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15287 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15288 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15289 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15290 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15291 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15292 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15293 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15294 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15295 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15296 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15297 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15298 i386-gnu.
15299 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15300 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15301
15302 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15303
15304 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15305 --enable-obsolete for powerpc-linux-gnuspe.
15306
15307 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15308
15309 * conform/data/sys/un.h-data: Allow sun_ prefix.
15310 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15311 prototypes.
15312 * sysdeps/mach/include/mach.h: Likewise.
15313 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15314 * sysdeps/mach/include/mach_error.h: Likewise.
15315
15316 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15317
15318 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15319 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15320 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15321 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15322
15323 2018-04-16 Andreas Schwab <schwab@suse.de>
15324
15325 [BZ #19527]
15326 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15327
15328 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15329
15330 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15331 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15332
15333 2018-04-12 DJ Delorie <dj@redhat.com>
15334
15335 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15336 version to 4.16.
15337
15338 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15339
15340 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15341 (struct kernel_sigaction): Use the same definition on 31bit as is used
15342 on 64bit.
15343
15344 2018-04-09 Florian Weimer <fweimer@redhat.com>
15345
15346 [BZ #23037]
15347 * resolv/res_send.c (send_dg): Use designated initializers instead
15348 of assignment to zero-initialize other fields of struct mmsghdr.
15349
15350 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15351
15352 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15353 __READDIR_ALIAS): Undefine after usage.
15354 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15355 __READDIR_R_ALIAS): Likewise.
15356 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15357 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15358 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15359 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15360 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15361 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15362 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15363 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15364 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15365 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15366 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15367 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15368 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15369 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15370 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15371 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15372 * sysdeps/unix/sysv/linux/readdir.c: New file.
15373 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15374 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15375 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15376
15377 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15378
15379 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15380
15381 * manual/charset.texi (Converting a Character): Fix typo.
15382
15383 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15384
15385 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15386
15387 * sysdeps/arm/libm-test-ulps: Update.
15388
15389 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15390 as base implementation.
15391 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15392 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15393 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15394 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15395 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15396 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15397 remove unrequired definitions and update comments.
15398 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15399 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15400 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15401 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15402 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15403 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15404 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15405 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15406 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15407 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15408 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15409 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15410 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15411 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15412 and RESET_SA_RESTORER hooks.
15413
15414 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15415
15416 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15417
15418 2018-04-05 Florian Weimer <fweimer@redhat.com>
15419
15420 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15421 integer overflow, memory leak on error, and indeterminate errno
15422 value. Add a null wide character to terminate the result string.
15423 * manual/charset.texi (Converting a Character): Mention embedded
15424 null bytes in the mbrtowc input string. Explain what happens in
15425 the -2 result case. Do not claim that mbrtowc is simple or
15426 obvious to use. Adjust the description of the code example. Use
15427 @code, not @var, for concrete variables.
15428
15429 2018-04-05 Florian Weimer <fweimer@redhat.com>
15430
15431 * manual/examples/mbstouwcs.c: New file.
15432 * manual/charset.texi (Converting a Character): Include it.
15433
15434 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15435
15436 * include/dirent.h (dirfd): Add hidden proto.
15437 * dirent/dirfd.c (dirfd): Add hidden def.
15438 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15439 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15440
15441 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15442
15443 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15444 sin, cos and sincos to 1 ULP.
15445
15446 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15447
15448 [BZ #19818]
15449 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15450 symbols.
15451 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15452 * elf/tst-absolute-sym.c: New file.
15453 * elf/tst-absolute-sym-lib.c: New file.
15454 * elf/tst-absolute-sym-lib.lds: New file.
15455 * elf/Makefile (tests): Add `tst-absolute-sym'.
15456 (modules-names): Add `tst-absolute-sym-lib'.
15457 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15458 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15459 ($(objpfx)tst-absolute-sym): New dependency.
15460
15461 [BZ #19818]
15462 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15463 parameter.
15464 (SYMBOL_ADDRESS): New macro.
15465 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15466 SYMBOL_ADDRESS for symbol address calculation.
15467 * elf/dl-runtime.c (_dl_fixup): Likewise.
15468 (_dl_profile_fixup): Likewise.
15469 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15470 * elf/rtld.c (dl_main): Likewise.
15471 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15472 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15473 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15474 (elf_machine_rela): Likewise.
15475 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15476 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15477 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15478 (elf_machine_rela): Likewise.
15479 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15480 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15481 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15482 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15483 Likewise.
15484 (elf_machine_reloc): Likewise.
15485 (elf_machine_got_rel): Likewise.
15486 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15487 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15488 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15489 Likewise.
15490 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15491 Likewise.
15492 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15493 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15494 Likewise.
15495 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15496 Likewise.
15497 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15498 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15499 Likewise.
15500 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15501 Likewise.
15502 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15503 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15504
15505 2018-04-04 Zack Weinberg <zackw@panix.com>
15506
15507 * sysdeps/generic/internal-signals.h: Include signal.h,
15508 sigsetops.h, and stdbool.h.
15509 (__libc_signal_block_all): Actually block all signals.
15510 (__libc_signal_block_app): Likewise.
15511 (__libc_signal_restore_set): Actually restore the signal mask.
15512
15513 2018-04-04 Florian Weimer <fweimer@redhat.com>
15514
15515 inet: Actually build and run tst-deadline.
15516 * inet/Makefile (tests-internal): Add tst-deadline and do not
15517 overwrite the variable.
15518 (tests-static-internal): Remove variable.
15519
15520 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15521
15522 [BZ #22947]
15523 * bits/uio-ext.h (RWF_APPEND): New.
15524 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15525 * manual/llio.texi: Document RWF_APPEND.
15526 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15527 (RWF_SUPPORTED): Add RWF_APPEND.
15528
15529 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15530
15531 [BZ #22391]
15532 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15533 check for internal nptl signals.
15534 * nptl/sigaction.c (__sigaction): Likewise.
15535 * signal/sigaddset.c (sigaddset): Likewise.
15536 * signal/sigdelset.c (sigdelset): Likewise.
15537 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15538 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15539 value.
15540 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15541 to filter out internal nptl signals.
15542 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15543 also check realtime signals using standard macros.
15544 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15545 __is_internal_signal, __libc_signal_block_all,
15546 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15547 * sysdeps/nptl/sigfillset.c: Remove file.
15548 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15549 Change return to bool.
15550 (__clear_internal_signals): Remove SIGTIMER clean since it is
15551 equal to SIGCANEL on Linux.
15552 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15553 signal set was constructed using standard functions.
15554
15555 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15556
15557 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15558 ifname is too long.
15559 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15560 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15561 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15562 hidden def.
15563 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15564 * signal/sigaddset.c: Include <sigsetopts.h>.
15565 * signal/sigdelset.c: Likewise.
15566
15567 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15568
15569 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15570 (__cos): Likewise.
15571 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15572 logic as sin and cos.
15573
15574 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15575
15576 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15577 inputs. Return correct sign.
15578 (do_sincos): Remove small input check before do_sin, let do_sin set
15579 the sign.
15580 (__sin): Likewise.
15581 (__cos): Likewise.
15582
15583 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15584
15585 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15586 (do_cos_slow): Likewise.
15587 (do_sin_slow): Likewise.
15588 (reduce_and_compute): Likewise.
15589 (slow): Likewise.
15590 (slow1): Likewise.
15591 (slow2): Likewise.
15592 (sloww): Likewise.
15593 (sloww1): Likewise.
15594 (sloww2): Likewise.
15595 (bslow): Likewise.
15596 (bslow1): Likewise.
15597 (bslow2): Likewise.
15598 (cslow2): Likewise.
15599
15600 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15601
15602 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15603 (do_cos): Remove corp parameter and calculations.
15604 (do_sin): Likewise.
15605 (do_sincos): Remove cor variable.
15606 (__sin): Use do_sincos for huge inputs.
15607 (__cos): Likewise.
15608 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15609 (reduce_and_compute_sincos): Remove unused function.
15610
15611 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15612
15613 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15614 reduce_sincos, improve accuracy to 136 bits.
15615 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15616 (__sin): Use improved reduction and simplified do_sincos calculation.
15617 (__cos): Likewise.
15618 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15619
15620 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15621
15622 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15623 (do_sincos_2): Likewise.
15624 (__sin): Remove middle range reduction case.
15625 (__cos): Likewise.
15626 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15627 reduction case.
15628
15629 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15630
15631 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15632 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15633 inputs.
15634 (__cos): Likewise.
15635 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15636
15637 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15638
15639 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15640 version to 4.16
15641
15642 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15643
15644 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15645 Remove definitions.
15646 (opendir_oflags): Use O_DIRECTORY regardless.
15647 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15648 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15649
15650 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15651
15652 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15653 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15654 macros.
15655 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15656 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15657 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15658 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15659 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15660 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15661
15662 * htl/Makefile: Bump licence to LGPL 2.1+.
15663 * htl/alloca_cutoff.c: Likewise.
15664 * htl/cthreads-compat.c: Likewise.
15665 * htl/lockfile.c: Likewise.
15666 * htl/pt-alloc.c: Likewise.
15667 * htl/pt-cancel.c: Likewise.
15668 * htl/pt-cleanup.c: Likewise.
15669 * htl/pt-create.c: Likewise.
15670 * htl/pt-dealloc.c: Likewise.
15671 * htl/pt-detach.c: Likewise.
15672 * htl/pt-exit.c: Likewise.
15673 * htl/pt-getattr.c: Likewise.
15674 * htl/pt-initialize.c: Likewise.
15675 * htl/pt-internal.h: Likewise.
15676 * htl/pt-join.c: Likewise.
15677 * htl/pt-self.c: Likewise.
15678 * htl/pt-setcancelstate.c: Likewise.
15679 * htl/pt-setcanceltype.c: Likewise.
15680 * htl/pt-sigmask.c: Likewise.
15681 * htl/pt-spin-inlines.c: Likewise.
15682 * htl/pt-testcancel.c: Likewise.
15683 * htl/pt-yield.c: Likewise.
15684 * htl/tests/test-1.c: Likewise.
15685 * htl/tests/test-10.c: Likewise.
15686 * htl/tests/test-11.c: Likewise.
15687 * htl/tests/test-12.c: Likewise.
15688 * htl/tests/test-13.c: Likewise.
15689 * htl/tests/test-14.c: Likewise.
15690 * htl/tests/test-15.c: Likewise.
15691 * htl/tests/test-16.c: Likewise.
15692 * htl/tests/test-17.c: Likewise.
15693 * htl/tests/test-2.c: Likewise.
15694 * htl/tests/test-3.c: Likewise.
15695 * htl/tests/test-4.c: Likewise.
15696 * htl/tests/test-5.c: Likewise.
15697 * htl/tests/test-6.c: Likewise.
15698 * htl/tests/test-7.c: Likewise.
15699 * htl/tests/test-8.c: Likewise.
15700 * htl/tests/test-9.c: Likewise.
15701 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15702 * sysdeps/htl/bits/cancelation.h: Likewise.
15703 * sysdeps/htl/bits/pthread-np.h: Likewise.
15704 * sysdeps/htl/bits/pthread.h: Likewise.
15705 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15706 * sysdeps/htl/bits/semaphore.h: Likewise.
15707 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15708 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15709 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15710 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15711 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15712 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15713 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15714 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15715 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15716 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15717 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15718 * sysdeps/htl/old_pt-atfork.c: Likewise.
15719 * sysdeps/htl/pt-atfork.c: Likewise.
15720 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15721 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15722 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15723 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15724 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15725 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15726 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15727 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15728 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15729 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15730 * sysdeps/htl/pt-attr-init.c: Likewise.
15731 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15732 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15733 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15734 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15735 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15736 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15737 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15738 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15739 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15740 * sysdeps/htl/pt-attr.c: Likewise.
15741 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15742 * sysdeps/htl/pt-barrier-init.c: Likewise.
15743 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15744 * sysdeps/htl/pt-barrier.c: Likewise.
15745 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15746 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15747 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15748 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15749 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15750 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15751 * sysdeps/htl/pt-cond-init.c: Likewise.
15752 * sysdeps/htl/pt-cond-signal.c: Likewise.
15753 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15754 * sysdeps/htl/pt-cond-wait.c: Likewise.
15755 * sysdeps/htl/pt-cond.c: Likewise.
15756 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15757 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15758 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15759 * sysdeps/htl/pt-condattr-init.c: Likewise.
15760 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15761 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15762 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15763 * sysdeps/htl/pt-equal.c: Likewise.
15764 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15765 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15766 * sysdeps/htl/pt-getschedparam.c: Likewise.
15767 * sysdeps/htl/pt-getspecific.c: Likewise.
15768 * sysdeps/htl/pt-init-specific.c: Likewise.
15769 * sysdeps/htl/pt-key-create.c: Likewise.
15770 * sysdeps/htl/pt-key-delete.c: Likewise.
15771 * sysdeps/htl/pt-key.h: Likewise.
15772 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15773 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15774 * sysdeps/htl/pt-mutex-init.c: Likewise.
15775 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15776 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15777 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15778 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15779 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15780 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15781 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15782 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15783 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15784 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15785 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15786 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15787 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15788 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15789 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15790 * sysdeps/htl/pt-mutexattr.c: Likewise.
15791 * sysdeps/htl/pt-once.c: Likewise.
15792 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15793 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15794 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15795 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15796 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15797 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15798 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15799 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15800 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15801 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15802 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15803 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15804 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15805 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15806 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15807 * sysdeps/htl/pt-setschedparam.c: Likewise.
15808 * sysdeps/htl/pt-setschedprio.c: Likewise.
15809 * sysdeps/htl/pt-setspecific.c: Likewise.
15810 * sysdeps/htl/pt-spin.c: Likewise.
15811 * sysdeps/htl/pt-startup.c: Likewise.
15812 * sysdeps/htl/pthread.h: Likewise.
15813 * sysdeps/htl/sem-close.c: Likewise.
15814 * sysdeps/htl/sem-destroy.c: Likewise.
15815 * sysdeps/htl/sem-getvalue.c: Likewise.
15816 * sysdeps/htl/sem-init.c: Likewise.
15817 * sysdeps/htl/sem-open.c: Likewise.
15818 * sysdeps/htl/sem-post.c: Likewise.
15819 * sysdeps/htl/sem-timedwait.c: Likewise.
15820 * sysdeps/htl/sem-trywait.c: Likewise.
15821 * sysdeps/htl/sem-unlink.c: Likewise.
15822 * sysdeps/htl/sem-wait.c: Likewise.
15823 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15824 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15825 * sysdeps/mach/htl/pt-block.c: Likewise.
15826 * sysdeps/mach/htl/pt-spin.c: Likewise.
15827 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15828 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15829 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15830 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15831 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15832 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15833 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15834 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15835 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15836 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15837 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15838 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15839 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15840 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15841 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15842 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15843 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15844 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15845 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15846 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15847 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15848 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15849 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15850 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15851 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15852 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15853 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15854 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15855 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15856 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15857 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15858 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15859 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15860 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15861 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15862 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15863 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15864 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15865 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15866 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15867 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15868 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15869 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15870
15871 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15872 * README: Remove the mention of out-of-tree patches needed for
15873 GNU/Hurd.
15874
15875 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15876 (UTIME_NOW, UTIME_OMIT): Define macros.
15877
15878 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15879 instead of pthread_detach.
15880 (__cthread_fork): Call __pthread_create instead of pthread_create.
15881 (__cthread_keycreate): Call __pthread_key_create instead of
15882 pthread_key_create.
15883 (__cthread_getspecific): Call __pthread_getspecific instead of
15884 pthread_getspecific.
15885 (__cthread_setspecific): Call __pthread_setspecific instead of
15886 pthread_setspecific.
15887 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15888 __pthread_mutex_unlock instead of pthread_mutex_lock and
15889 pthread_mutex_unlock.
15890 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15891 ___pthread_get_cleanup_stack.
15892 (__pthread_get_cleanup_stack): New strong alias.
15893 * htl/pt-create.c: Include <pthreadP.h>.
15894 (entry_point): Call __pthread_exit instead of pthread_exit.
15895 (pthread_create): Rename to __pthread_create.
15896 (pthread_create): New strong alias.
15897 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15898 (pthread_detach): New strong alias.
15899 (__pthread_detach): Call __pthread_cond_broadcast instead of
15900 pthread_cond_broadcast.
15901 * htl/pt-exit.c: Include <pthreadP.h>.
15902 (__pthread_exit): Call __pthread_setcancelstate and
15903 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15904 __pthread_get_cleanup_stack.
15905 * htl/pt-testcancel.c: Include <pthreadP.h>.
15906 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15907 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15908 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15909 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15910 pthread_attr_getstacksize.
15911 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15912 Rename to __pthread_attr_getstackaddr.
15913 (pthread_attr_getstackaddr): New strong alias.
15914 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15915 Rename to __pthread_attr_getstacksize.
15916 (pthread_attr_getstacksize): New strong alias.
15917 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15918 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15919 (pthread_attr_setstack): New strong alias.
15920 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15921 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15922 pthread_attr_getstacksize, pthread_attr_setstacksize and
15923 pthread_attr_setstackaddr.
15924 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15925 Rename to __pthread_attr_setstackaddr.
15926 (pthread_attr_setstackaddr): New strong alias.
15927 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15928 Rename to __pthread_attr_setstacksize.
15929 (pthread_attr_setstacksize): New strong alias.
15930 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15931 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15932 pthread_exit.
15933 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15934 (__pthread_key_create): New hidden def.
15935 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15936 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15937 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15938 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15939 __pthread_setspecific, __pthread_setcancelstate,
15940 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15941 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15942 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15943 declarations.
15944 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15945 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15946 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15947 (pthread_attr_setstackaddr): New strong alias.
15948 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15949 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15950 (pthread_attr_setstacksize): New strong alias.
15951 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15952 (call_exit): Call __pthread_exit instead of pthread_exit.
15953 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15954 (_pthread_mutex_init): New hidden definition.
15955 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15956 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15957 instead of pthread_attr_init and pthread_attr_setstack.
15958
15959 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15960 __vm_deallocate instead of vm_allocate and vm_deallocate.
15961 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15962 setenv.
15963 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15964 of geteuid.
15965 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15966 strdup.
15967 * hurd/siginfo.c: Include <libioP.h>.
15968 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15969 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15970 munmap.
15971 * mach/devstream.c: Include <libioP.h>.
15972 (dealloc_ref): Call __mach_port_deallocate instead of
15973 mach_port_deallocate.
15974 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15975 Call __mach_port_deallocate instead of mach_port_deallocate.
15976 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15977 pathconf.
15978 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15979 munmap.
15980 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15981 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15982 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15983 of munmap.
15984 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15985 of close.
15986 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15987 instead of sysconf.
15988 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15989 __clock_gettime instead of clock_gettime.
15990 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15991 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15992 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15993 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15994 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15995 tcgetattr.
15996 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15997 __clock_gettime and __nanosleep instead of clock_gettime and
15998 nanosleep.
15999 * hurd/catch-signal.c (hurd_catch_signal): Rename to
16000 __hurd_catch_signal.
16001 (hurd_catch_signal): New strong alias.
16002 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
16003 __hurd_catch_signal instead of hurd_catch_signal.
16004 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
16005 * hurd/hurdexec.c (_hurd_init): Add hidden def.
16006 * hurd/hurdinit.c (_hurd_init): Add hidden def.
16007 * hurd/hurdsig.c: Include <mach/mig_support.h>.
16008 (_hurd_thread_sigstate): Add hidden def.
16009 (_hurd_internal_post_signal): Use __mutex_unlock instead of
16010 mutex_unlock.
16011 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
16012 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
16013 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
16014 __hurd_file_name_path_lookup.
16015 (hurd_file_name_path_lookup): New strong alias.
16016 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
16017 hurd_file_name_path_lookup.
16018 * mach/errstring.c (mach_error_type): Add hidden def.
16019 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
16020 * mach/mutex-init.c (__mutex_init): Add hidden def.
16021 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
16022 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
16023 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
16024 * sysdeps/mach/hurd/getcwd.c
16025 (_hurd_canonicalize_directory_name_internal): Rename to
16026 __hurd_canonicalize_directory_name_internal.
16027 (_hurd_canonicalize_directory_name_internal): New strong alias.
16028 (__canonicalize_directory_name_internal, __getcwd): Call
16029 __hurd_canonicalize_directory_name_internal instead of
16030 _hurd_canonicalize_directory_name_internal.
16031 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
16032 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
16033 hidden defs.
16034 * sysdeps/hurd/include/hurd.h: New file.
16035 * sysdeps/hurd/include/hurd/fd.h: New file.
16036 * sysdeps/hurd/include/hurd/signal.h: New file.
16037 * sysdeps/mach/include/lock-intern.h: New file.
16038 * sysdeps/mach/include/mach.h: New file.
16039 * sysdeps/mach/include/mach/mig_support.h: New file.
16040 * sysdeps/mach/include/mach_error.h: New file.
16041 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
16042 prototype.
16043 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
16044 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
16045 _HEADER_H_HIDDEN_DEF macro.
16046 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
16047 _hurd_fd_error_signal): Add hidden prototype.
16048 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
16049 hidden def.
16050 * libio/iolibio.h (_IO_puts): New hidden prototype.
16051 * libio/ioputs.c (_IO_puts): New hidden def.
16052 * sysdeps/mach/hurd/localplt.data: New file.
16053
16054 2018-04-02 Agustina Arzille <avarzille@riseup.net>
16055 Amos Jeffries <squid3@treenet.co.nz>
16056 David Michael <fedora.dm0@gmail.com>
16057 Marco Gerards <marco@gnu.org>
16058 Marcus Brinkmann <marcus@gnu.org>
16059 Neal H. Walfield <neal@gnu.org>
16060 Pino Toscano <toscano.pino@tiscali.it>
16061 Richard Braun <rbraun@sceen.net>
16062 Roland McGrath <roland@gnu.org>
16063 Samuel Thibault <samuel.thibault@ens-lyon.org>
16064 Thomas DiModica <ricinwich@yahoo.com>
16065 Thomas Schwinge <tschwinge@gnu.org>
16066
16067 * htl: New directory.
16068 * sysdeps/htl: New directory.
16069 * sysdeps/hurd/htl: New directory.
16070 * sysdeps/i386/htl: New directory.
16071 * sysdeps/mach/htl: New directory.
16072 * sysdeps/mach/hurd/htl: New directory.
16073 * sysdeps/mach/hurd/i386/htl: New directory.
16074 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16075 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16076 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16077
16078 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16079
16080 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16081 signals in thread created for runing timers.
16082
16083 2018-04-01 Florian Weimer <fweimer@redhat.com>
16084
16085 * support/support_format_addrinfo.c (support_format_addrinfo):
16086 Include unknown error number in formatted result.
16087
16088 2018-03-29 Florian Weimer <fweimer@redhat.com>
16089
16090 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16091 capture SIGBUS.
16092
16093 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16094
16095 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16096 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16097 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16098 (__ASSUME_CLONE_BACKWARDS): Define.
16099
16100 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16101
16102 [BZ #23024]
16103 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16104 early when linux sentinel value is set.
16105
16106 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16107
16108 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16109
16110 2018-03-27 Andreas Schwab <schwab@suse.de>
16111
16112 [BZ #23005]
16113 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16114 allocation of private copy of nsaddr_list fails.
16115
16116 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16117
16118 [BZ #16552]
16119 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16120 * sysdeps/unix/sysv/linux/umount.c: ... here.
16121 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16122 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16123 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16124 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16126 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16127 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16128
16129 2018-03-26 Andreas Schwab <schwab@suse.de>
16130
16131 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16132 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16133 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16134 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16135 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16136 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16137 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16138 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16139 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16140 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16141 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16142 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16143 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16144 (R_RISCV_NUM): Define.
16145
16146 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16147
16148 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16149 TLS declaration of errno.
16150 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16151 __libc_setup_tls.
16152 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16153 (ARCH_SETUP_TLS): Likewise.
16154 * sysdeps/mach/hurd/libc-start.h: New file copied from
16155 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16156 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16157 instead of __libc_setup_tls.
16158 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16159 __libc_setup_tls before initializing libpthread and running _hurd_init
16160 which starts the signal thread.
16161 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16162 Declare function.
16163 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16164
16165 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16166
16167 [BZ #22998]
16168 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16169 after it is defined.
16170
16171 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16172 Max Horn <max@quendi.de>
16173
16174 [BZ #22644]
16175 CVE-2017-18269
16176 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16177 branch conditions.
16178 * string/test-memmove.c (do_test2): New testcase.
16179
16180 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16181
16182 * sysdeps/generic/frame.h: Remove file.
16183 * sysdeps/arm/frame.h: Likewise.
16184 * sysdeps/hppa/frame.h: Likewise.
16185 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16186 macro.
16187 (GET_FRAME): Likewise.
16188 (GET_STACK): Likewise.
16189 (CALL_SIGHANDLER): Likewise.
16190 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16191 Likewise.
16192 (GET_FRAME): Likewise.
16193 (GET_STACK): Likewise.
16194 (CALL_SIGHANDLER): Likewise.
16195 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16196 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16197 (GET_FRAME): Likewise.
16198 (GET_STACK): Likewise.
16199 (CALL_SIGHANDLER): Likewise.
16200 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16202 (GET_FRAME): Likewise.
16203 (GET_STACK): Likewise.
16204 (ADVANCE_STACK_FRAME): Likewise.
16205 (CALL_SIGHANDLER): Likewise.
16206 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16207 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16208 (GET_FRAME): Likewise.
16209 (GET_STACK): Likewise.
16210 (CALL_SIGHANDLER): Likewise.
16211 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16212 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16213 (GET_FRAME): Likewise.
16214 (GET_STACK): Likewise.
16215 (CALL_SIGHANDLER): Likewise.
16216 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16217 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16218 (GET_FRAME): Likewise.
16219 (GET_STACK): Likewise.
16220 (CALL_SIGHANDLER): Likewise.
16221 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16222 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16223 (GET_FRAME): Likewise.
16224 (GET_STACK): Likewise.
16225 (CALL_SIGHANDLER): Likewise.
16226 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16227 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16228 (GET_FRAME): Likewise.
16229 (GET_STACK): Likewise.
16230 (CALL_SIGHANDLER): Likewise.
16231 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16232 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16233 (GET_FRAME): Likewise.
16234 (GET_STACK): Likewise.
16235 (CALL_SIGHANDLER): Likewise.
16236 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16237 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16238 (GET_FRAME): Likewise.
16239 (GET_STACK): Likewise.
16240 (CALL_SIGHANDLER): Likewise.
16241 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16242 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16243 (GET_FRAME): Likewise.
16244 (GET_STACK): Likewise.
16245 (CALL_SIGHANDLER): Likewise.
16246 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16247 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16248 (GET_FRAME): Likewise.
16249 (GET_STACK): Likewise.
16250 (CALL_SIGHANDLER): Likewise.
16251 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16252 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16253 (FIRST_FRAME_POINTER): Likewise.
16254 (ADVANCE_STACK_FRAME): Likewise.
16255 (GET_STACK): Likewise.
16256 (GET_FRAME): Likewise.
16257 (CALL_SIGHANDLER): Likewise.
16258 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16259 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16260 (ADVANCE_STACK_FRAME): Likewise.
16261 (GET_STACK): Likewise.
16262 (GET_FRAME): Likewise.
16263 (CALL_SIGHANDLER): Likewise.
16264 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16265 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16266 (GET_FRAME): Likewise.
16267 (GET_STACK): Likewise.
16268 (CALL_SIGHANDLER): Likewise.
16269 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16270 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16271 (GET_FRAME): Likewise.
16272 (GET_STACK): Likewise.
16273 (CALL_SIGHANDLER): Likewise.
16274
16275 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16276
16277 * sysdeps/x86_64/backtrace.c: Move to ....
16278 * debug/backtrace.c: ... here.
16279 * sysdeps/aarch64/backtrace.c: Remove file.
16280 * sysdeps/alpha/backtrace.c: Likewise.
16281 * sysdeps/hppa/backtrace.c: Likewise.
16282 * sysdeps/ia64/backtrace.c: Likewise.
16283 * sysdeps/mips/backtrace.c: Likewise.
16284 * sysdeps/nios2/backtrace.c: Likewise.
16285 * sysdeps/riscv/backtrace.c: Likewise.
16286 * sysdeps/sh/backtrace.c: Likewise.
16287 * sysdeps/tile/backtrace.c: Likewise.
16288
16289 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16290
16291 [BZ #22987]
16292 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16293 function.
16294 (fdimf): Likewise.
16295 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16296
16297 [BZ #17343]
16298 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16299 possibly overflowing computations.
16300
16301 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16302
16303 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16304 values from Linux-specific section now that it is in the GNU section.
16305 * sysdeps/gnu/errlist.c: Regenerate.
16306
16307 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16308
16309 * math/Makefile (libm-narrow-fns): Add sub.
16310 (libm-test-funcs-narrow): Likewise.
16311 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16312 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16313 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16314 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16315 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16316 (NARROW_SUB_TRIVIAL): Likewise.
16317 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16318 macro.
16319 (__dsubl): Likewise.
16320 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16321 dsub.
16322 (CFLAGS-nldbl-dsub.c): New variable.
16323 (CFLAGS-nldbl-fsub.c): Likewise.
16324 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16325 __nldbl_dsubl.
16326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16327 prototype.
16328 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16329 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16330 * math/auto-libm-test-in: Add tests of sub.
16331 * math/auto-libm-test-out-narrow-sub: New generated file.
16332 * math/libm-test-narrow-sub.inc: New file.
16333 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16334 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16335 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16336 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16337 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16338 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16339 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16340 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16341 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16342 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16343 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16344 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16345 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16346 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16347 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16348 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16349 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16350 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16351 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16352 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16353 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16354 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16355 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16356 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16357 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16358 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16359 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16360 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16361 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16362 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16363 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16364 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16365 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16366 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16367 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16368 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16369 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16370 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16371 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16372 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16373 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16374 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16375 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16376 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16377 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16378 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16379
16380 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16381
16382 [BZ #20079]
16383 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16384
16385 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16386
16387 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16388
16389 2018-03-18 Richard Braun <rbraun@sceen.net>
16390
16391 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16392 thread reference.
16393
16394 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16395
16396 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16397 (__libc_cleanup_fct): Define function.
16398 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16399 __libc_cleanup_end): Rewrite implementation using
16400 __attribute__ ((__cleanup__)).
16401 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16402 * hurd/Makefile (routines): Add hurdlock.
16403 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16404 interface.
16405 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16406 * hurd/hurdpid.c: Include <lowlevellock.h>
16407 (_S_msg_proc_newids): Use lll_wait to synchronize.
16408 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16409 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16410 * mach/Makefile (lock-headers): Remove machine-lock.h.
16411 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16412 <machine-lock.h>.
16413 (__spin_lock_t): New type.
16414 (__SPIN_LOCK_INITIALIZER): New macro.
16415 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16416 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16417 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16418 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16419 (__mutex_init): Initialize with lll.
16420 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16421 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16422 needing lll.
16423 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16424 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16425 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16426 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16427 (__setpgid): Use lll for synchronization.
16428 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16429 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16430 instead of <cthreads.h>.
16431 (_IO_lock_inexpensive): New macro
16432 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16433 (__libc_lock_self0): New declaration.
16434 (__libc_lock_owner_self): New macro.
16435 (__libc_key_t): Remove type.
16436 (_LIBC_LOCK_INITIALIZER): New macro.
16437 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16438 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16439 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16440 __libc_lock_define_initialized_recursive,
16441 __rtld_lock_define_initialized_recursive,
16442 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16443 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16444 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16445 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16446 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16447 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16448 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16449 New macros.
16450 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16451 * hurd/hurdlock.c: New file.
16452 * hurd/hurdlock.h: New file.
16453 * mach/lowlevellock.h: New file
16454
16455 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16456
16457 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16458 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16459 when opening a symlink with O_NOFOLLOW.
16460 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16461 path when flags contains O_NOFOLLOW.
16462 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16463 if flags contains O_DIRECTORY and the result is a directory.
16464 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16465 oneself when the pointer given in D is nul (as set by ext2fs).
16466 * sysdeps/mach/hurd/mlockall.c: New file.
16467 * sysdeps/mach/hurd/munlockall.c: New file.
16468
16469 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16470
16471 * hurd/hurdsig.c: Include <pthread.h>.
16472 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16473 get the signal thread stack layout.
16474 * hurd/Makefile (headers): Remove threadvar.h.
16475 (inline-headers): Remove threadvar.h.
16476 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16477 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16478 __hurd_threadvar_max, __hurd_errno_location.
16479 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16480 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16481 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16482 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16483 unless TLS is not initialized yet, in which case we do not need a
16484 critical section yet anyway.
16485 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16486 <machine-sp.h>.
16487 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16488 declarations.
16489 (__hurd_threadvar_index): Remove enum.
16490 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16491 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16492 inlines.
16493 (__hurd_reply_port0): New variable declaration.
16494 (__hurd_local_reply_port): New macro.
16495 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16496 (interrupted_reply_port_location): Add thread_t parameter. Use it
16497 with THREAD_TCB to access thread-local variables.
16498 (_hurdsig_abort_rpcs): Pass ss->thread to
16499 interrupted_reply_port_location.
16500 (_hurd_internal_post_signal): Likewise.
16501 (_hurdsig_init): Use presence of cthread_fork instead of
16502 __hurd_threadvar_stack_mask to start signal thread by hand.
16503 Remove signal thread threadvar initialization.
16504 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16505 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16506 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16507 of threadvar.
16508 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16509 __libc_lock_self0.
16510 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16511 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16512 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16513 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16514 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16515 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16516 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16517 define variables.
16518 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16519 <hurd/threadvar.h>.
16520 [IS_IN(rtld)] (rtld_errno): New variable.
16521 [IS_IN(rtld)] (__errno_location): New weak function.
16522 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16523 * sysdeps/mach/hurd/errno.c: Remove file.
16524 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16525 (__fork): Remove THREADVAR_SPACE macro and its use.
16526 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16527 variable.
16528 (init): Do not initialize threadvar.
16529 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16530 symbol.
16531 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16532 __hurd_local_reply_port instead of threadvar.
16533 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16534 _hurd_sigstate fields.
16535 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16536 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16537 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16538 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16539 instead of threadvar.
16540 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16541 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16542 (use_threadvar, global_reply_port): Remove variables.
16543 (__hurd_reply_port0): New variable.
16544 (__mig_get_reply_port): Use __hurd_local_reply_port and
16545 __hurd_reply_port0 instead of threadvar.
16546 (__mig_dealloc_reply_port): Likewise.
16547 (__mig_init): Do not initialize threadvar.
16548 * sysdeps/mach/hurd/profil.c: Fix comment.
16549 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16550 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16551 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16552 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16553 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16554 __cthread_setspecific.
16555 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16556 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16557 __cthread_t instead of cthread_fork, cthread_detach,
16558 pthread_getattr_np, pthread_attr_getstack.
16559 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16560 __cthread_keycreate.
16561 (cthread_getspecific): Rename to __cthread_getspecific.
16562 (cthread_setspecific): Rename to __cthread_setspecific.
16563 (__libc_getspecific): Use __cthread_getspecific instead of
16564 cthread_getspecific.
16565 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16566 __cthread_keycreate instead of cthread_keycreate.
16567 (__libc_setspecific): Use __cthread_setspecific instead of
16568 cthread_setspecific.
16569 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16570 Likewise.
16571 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16572 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16573 testing whether it is defined.
16574
16575 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16576
16577 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16578 Define macro.
16579 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16580 * sysdeps/mach/i386/thread_state.h
16581 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16582 i386_THREAD_STATE.
16583 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16584 i386_THREAD_STATE.
16585 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16586
16587 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16588 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16589
16590 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16591 macros.
16592 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16593 descriptor instead of creating a new one.
16594 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16595
16596 * mach/setup-thread.c: Include <ldsodefs.h>.
16597 (__mach_setup_thread): Call _dl_allocate_tls, pass
16598 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16599 MACHINE_THREAD_STATE_FLAVOR, before getting
16600 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16601 MACHINE_THREAD_STATE_FLAVOR with the result.
16602 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16603 MACHINE_THREAD_STATE_FIX_NEW.
16604 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16605 too. Add original thread parameter.
16606
16607 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16608
16609 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16610 Remove inline function.
16611
16612 * sysdeps/i386/fpu/libm-test-ulps: Update.
16613 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16614
16615 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16616
16617 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16618 commit.
16619
16620 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16621
16622 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16623 (__sincos_code): Remove define and undefine.
16624 [__FAST_MATH__] (__sincos): Remove inline function.
16625 [__FAST_MATH__] (__sincosf): Remove inline function.
16626 [__FAST_MATH__] (__sincosl): Remove inline function.
16627 (__atan2l): Remove inline functions.
16628 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16629 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16630 function.
16631 (floor): Remove inline function.
16632 (ceil): Likewise.
16633 [__FAST_MATH__] (__ldexp_code): Remove macro.
16634 [__FAST_MATH__] (ldexp): Remove inline function.
16635 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16636 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16637 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16638 [__USE_ISOC99] (__lrint_code): Remove macro.
16639 [__USE_ISOC99] (__llrint_code): Likewise.
16640 [__USE_ISOC99] (lrintf): Remove inline function.
16641 [__USE_ISOC99] (lrint): Likewise.
16642 [__USE_ISOC99] (lrintl): Likewise.
16643 [__USE_ISOC99] (llrint): Likewise.
16644 [__USE_ISOC99] (llrintf): Likewise.
16645 [__USE_ISOC99] (llrintl): Likewise.
16646
16647 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16648
16649 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16650 (__ieee754_sqrtf): Remove.
16651 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16652 (__ieee754_sqrtf): Remove.
16653 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16654 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16655 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16656 (__ieee754_sqrtf): Remove.
16657 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16658 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16659 (sqrtf): Remove.
16660 (sqrtl): Remove.
16661 (__ieee754_sqrt): Remove.
16662 (__ieee754_sqrtf): Remove.
16663 (__ieee754_sqrtl): Remove.
16664 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16665 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16666 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16667 (__ieee754_sqrtf): Remove.
16668 (__ieee754_sqrtl): Remove.
16669
16670 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16671
16672 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16673 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16674 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16675 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16676 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16677 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16678 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16679 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16680 Likewise.
16681 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16682 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16683 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16684 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16685 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16686 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16687 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16688 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16689 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16690 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16691 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16692 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16693 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16694 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16695 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16696 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16697 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16698 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16699 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16700 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16701 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16702 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16703 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16704 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16705 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16706 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16707 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16708 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16709 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16710 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16711 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16712 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16713 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16714 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16715 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16716 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16717 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16718 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16719 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16720 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16721
16722 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16723
16724 * include/math.h (sqrt): Declare with asm redirect.
16725 (sqrtf): Likewise.
16726 (sqrtl): Likewise.
16727 (sqrtf128): Likewise.
16728 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16729 nonlib and libnldbl with -fmath-errno.
16730 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16731 * math/w_sqrt_template.c: Likewise.
16732 * math/w_sqrtf_compat.c: Likewise.
16733 * math/w_sqrtl_compat.c: Likewise.
16734 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16735 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16736 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16737 complex.h.
16738
16739 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16740
16741 * benchtests/Makefile: Define _ISOMAC.
16742 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16743 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16744 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16745 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16746 * benchtests/bench-timing.h: Define attribute_hidden.
16747
16748 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16749
16750 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16751 mov + lsr.
16752
16753 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16754
16755 [BZ #22963]
16756 * localedata/locales/cs_CZ (mon): Rename to...
16757 (alt_mon): This.
16758 (mon): Import from CLDR (genitive case).
16759
16760 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16761
16762 [BZ #22937]
16763 * localedata/locales/el_CY (abmon): Rename to...
16764 (ab_alt_mon): This.
16765 (abmon): Import from CLDR (abbreviated genitive case).
16766 * localedata/locales/el_GR (abmon): Rename to...
16767 (ab_alt_mon): This.
16768 (abmon): Import from CLDR (abbreviated genitive case).
16769
16770 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16771
16772 [BZ #22932]
16773 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16774
16775 2018-03-15 Robert Buj <robert.buj@gmail.com>
16776
16777 [BZ #22848]
16778 * localedata/locales/ca_ES (abmon): Rename to...
16779 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16780 (mon): Rename to...
16781 (alt_mon): This.
16782 (abmon): Import from CLDR (genitive case, month names preceded by
16783 "de" or "d’").
16784 (mon): Likewise.
16785 (abday): Synchronize with CLDR.
16786 (d_t_fmt): Likewise.
16787 (d_fmt): Likewise.
16788 (am_pm): Likewise.
16789
16790 (LC_TIME): Improve indentation.
16791 (LC_TELEPHONE): Likewise.
16792 (LC_NAME): Likewise.
16793 (LC_ADDRESS): Likewise.
16794
16795 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16796
16797 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16798 (lrintf): Remove definitions used only with old GCC.
16799 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16800 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16801 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16802 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16803 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16804 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16805 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16806 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16807 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16808 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16809 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16810 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16811 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16812 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16813 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16814 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16815 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16816 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16817 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16818 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16819 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16820 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16821 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16822 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16823 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16824 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16825 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16826 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16827
16828 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16829
16830 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16831 instruction to unbreak builds with binutils 2.26 and older.
16832
16833 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16834
16835 * sysdeps/aarch64/strncmp.S (count): New macro.
16836 (strncmp): Store misaligned length in SRC1 in COUNT.
16837 (mutual_align): Adjust.
16838 (misaligned8): Load dword at a time when it is safe.
16839
16840 2018-03-12 Zack Weinberg <zackw@panix.com>
16841
16842 [BZ #1190]
16843 [BZ #19476]
16844 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16845 if the _IO_EOF_SEEN bit is already set; update commentary.
16846 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16847 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16848
16849 * support/support_openpty.c, support/tty.h: New files.
16850 * support/Makefile (libsupport-routines): Add support_openpty.
16851
16852 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16853 New test cases.
16854 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16855 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16856
16857 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16858
16859 * po/pt_BR.po: Update translations.
16860
16861 2018-03-12 David Michael <fedora.dm0@gmail.com>
16862
16863 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16864 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16865 get a port to the startup server.
16866
16867 2018-03-11 Zack Weinberg <zackw@panix.com>
16868
16869 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16870 before nldbl-compat.h.
16871
16872 2018-03-10 Zack Weinberg <zackw@panix.com>
16873
16874 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16875 math.h or math_private.h.
16876
16877 * sysdeps/alpha/fpu/s_isnan.c
16878 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16879 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16880 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16881 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16882 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16883 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16884 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16885 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16886 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16887 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16888 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16889 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16890 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16891 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16892 Include math_private.h.
16893
16894 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16895 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16896 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16897 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16898 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16899 * sysdeps/powerpc/power7/fpu/s_logb.c:
16900 Include math.h and math_private.h.
16901
16902 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16903 uses of $at in .set noat / .set at.
16904
16905 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16906
16907 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16908 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16909 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16910 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16911 Likewise.
16912
16913 2018-03-09 Florian Weimer <fweimer@redhat.com>
16914
16915 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16916 in comment.
16917
16918 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16919
16920 [BZ #22919]
16921 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16922 Add nop before __startcontext, add explaining comments.
16923
16924 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16925
16926 [BZ #22926]
16927 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16928 empty for __SPE__.
16929 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16930 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16931 Do not build hardware transactional code for __SPE__.
16932 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16933 (__lll_trylock_elision): Likewise.
16934 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16935 (__lll_unlock_elision): Likewise.
16936
16937 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16938 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16939 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16940 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16941 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16942 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16943 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16944 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16945 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16946 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16947 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16948 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16949 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16950 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16951 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16952 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16953 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16954 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16955 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16956 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16957 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16958 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16959 (__ASSUME_CLONE_BACKWARDS): Define.
16960 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16961 __clone2 if __NR_clone2 is defined.
16962 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16963 (__ASSUME_CLONE_BACKWARDS): Likewise.
16964 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16965 (__ASSUME_CLONE_BACKWARDS): Likewise.
16966 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16967 (__ASSUME_CLONE2): Likewise.
16968 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16969 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16970 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16971 variants and the define architecture can use.
16972 (__ASSUME_CLONE_DEFAULT): Define as default.
16973 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16974 (__ASSUME_CLONE_BACKWARDS): Likewise.
16975 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16976 (__ASSUME_CLONE_BACKWARDS): Likewise.
16977 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16978 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16979
16980 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16981
16982 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16983
16984 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16985 time.
16986
16987 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16988 (do_test_limit): Likewise.
16989
16990 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16991 for every implementation.
16992 (do_test): Likewise.
16993
16994 * benchtests/bench-strncmp.c: Convert output to json.
16995
16996 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16997
16998 * io/futimens.c: Add missing start-of-file descriptive comment.
16999 * io/utime.c: Likewise.
17000 * misc/futimesat.c: Likewise.
17001 * misc/utimes.c: Likewise.
17002 * sysdeps/mach/hurd/futimesat.c: Likewise.
17003 * sysdeps/mach/hurd/utimes.c: Likewise.
17004 * sysdeps/posix/utime.c: Likewise.
17005 * sysdeps/posix/utimes.c: Likewise.
17006 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
17007 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
17008 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
17009 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
17010
17011 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17012
17013 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
17014 hurd_futimes.
17015 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
17016 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
17017 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
17018 (__futimens): Move implementation to...
17019 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
17020 utime_tvalue_from_tspec): ... new helper functions.
17021 (hurd_futimens): New function.
17022 * sysdeps/mach/hurd/futimesat.c: New file.
17023 * sysdeps/mach/hurd/utimensat.c: New file.
17024
17025 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
17026
17027 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
17028 UTIME_OMIT): New macros.
17029 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
17030 before reverting to converting time spec to time value and calling
17031 __file_utimes.
17032 * sysdeps/mach/hurd/utime-helper.c: New file.
17033 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
17034 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
17035 reverting to utime_tvalue_from_tval and __file_utimes.
17036 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
17037 (__lutimes): Just call hurd_futimens after lookup.
17038 * sysdeps/mach/hurd/utimes.c: Likewise.
17039
17040 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
17041
17042 * bits/sigaction.h: Add include guard.
17043 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
17044 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
17045 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
17046 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
17047 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
17048 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
17049 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
17050 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
17051 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
17052
17053 2018-03-05 Joseph Myers <joseph@codesourcery.com>
17054
17055 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
17056 -Wmaybe-uninitialized for -Os.
17057 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
17058 this disabling.
17059
17060 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17061
17062 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17063 __INO_T_MATCHES_INO64_T is defined.
17064 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17065 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17066 of definition.
17067 * dirent/alphasort64.c: Likewise.
17068 * dirent/scandir.c: Likewise.
17069 * dirent/scandir64-tail.c: Likewise.
17070 * dirent/scandir64.c: Likewise.
17071 * dirent/scandirat.c: Likewise.
17072 * dirent/scandirat64.c: Likewise.
17073 * dirent/versionsort.c: Likewise.
17074 * dirent/versionsort64.c: Likewise.
17075 * include/dirent.h: Likewise.
17076
17077 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17078 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17079 for socketpair endpoint.
17080 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17081 WRITE_BUFFER_SIZE as buffer size for sending socket.
17082 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17083 issue on system where send is implemented with sendto syscall.
17084 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17085 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17086 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17087 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17088
17089 [BZ #21269]
17090 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17091 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17092 sa_restorer for vDSO case.
17093 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17094
17095 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17096
17097 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17098 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17099 * hurd/hurd/ioctl.h: Include <mach/port.h>
17100 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17101 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17102 <mach/mach_types.h> and <mach/message.h>.
17103 (headers): Move mach/param.h to bits/mach/param.h.
17104 * sysdeps/mach/i386/mach/param.h: Move file to ...
17105 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17106 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17107 of <mach/param.h>.
17108 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17109 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17110 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17111 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17112 trivial, for C++ conformity.
17113 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17114 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17115 Process mig output through $(migheadersed).
17116 * hurd/Makefile (migheadersed): Define variable.
17117 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17118 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17119 headers.
17120 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17121 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17122 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17123 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17124 <bits/types/sigset_t.h>.
17125 [!defined __USE_GNU]: Do not #error out.
17126 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17127 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17128 Include <stddef.h> and <bits/types/sigset_t.h>
17129 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17130 instead of sighandler_t.
17131 * stdlib/errno.h (error_t): Move definition to...
17132 * bits/types/error_t.h: ... new header.
17133 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17134 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17135 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17136 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17137 * hurd/hurd.h: Include <bits/types/error_t.h>
17138 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17139 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17140 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17141 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17142 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17143 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17144 * sysdeps/mach/hurd/futimens.c: New file.
17145
17146 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17147
17148 [BZ #22918]
17149 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17150 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17151 * nscd/gai.c (__nss_hosts_database): Readd definition.
17152 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17153 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17154 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17155
17156 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17157
17158 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17159 (ifunc_one): Likewise.
17160
17161 2018-03-01 DJ Delorie <dj@delorie.com>
17162
17163 [BZ #22342]
17164 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17165 key value.
17166
17167 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17168
17169 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17170 `match_pid' parameter.
17171 (td_ta_thr_iter): Update accordingly.
17172
17173 2018-03-01 Florian Weimer <fweimer@redhat.com>
17174
17175 * nptl/Makefile (install-lib-ldscripts): Remove.
17176 (install): Remove rule.
17177 ($(inst_libdir)/libpthread.so): Likewise.
17178
17179 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17180
17181 [BZ #22896]
17182 * localedata/locales/an_ES: update month and day names,
17183 improve d_fmt, improve postal_fmt, add country_post,
17184 add country_isbn
17185
17186 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17187
17188 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17189 Ukrainian instead of Bulgarian.
17190
17191 2018-03-01 Florian Weimer <fweimer@redhat.com>
17192
17193 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17194 reference.
17195
17196 2018-03-01 Florian Weimer <fweimer@redhat.com>
17197
17198 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17199 * nptl/Makefile (routines): Add pthread_atfork.
17200 (static-only-routines): Set to pthread_atfork.
17201 (libpthread-routines): Remove pthread_atfork.
17202 (libpthread-static-only-routines): Remove.
17203 (install): Update comment.
17204 (libpthread.so): Do not install libpthread_nonshared.a.
17205 (tests): Do not link with libpthread_nonshared.a.
17206 (generated): Remove libpthread_nonshared.a.
17207 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17208 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17209 with libpthread_nonshared.a.
17210
17211 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17212
17213 [BZ #22902]
17214 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17215 (libc_feholdexcept_setroundf128): New macro.
17216 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17217
17218 [BZ #15105]
17219 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17220 libc_hidden_def.
17221 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17222 * include/inttypes.h: New file.
17223
17224 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17225
17226 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17227 -Os in two more places.
17228
17229 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17230
17231 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17232 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17233 be sorted correctly at the moment because of a bug.
17234
17235 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17236
17237 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17238 treat ñ as a primary different character, sync the collation
17239 for Spanish with CLDR.
17240 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17241 * localedata/Makefile: Add new test files.
17242 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17243 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17244 collation order.
17245 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17246 * localedata/am_ET.UTF-8.in: New test file.
17247 * localedata/az_AZ.UTF-8.in: Likewise.
17248 * localedata/be_BY.UTF-8.in: Likewise.
17249 * localedata/ber_DZ.UTF-8.in: Likewise.
17250 * localedata/ber_MA.UTF-8.in: Likewise.
17251 * localedata/bg_BG.UTF-8.in: Likewise.
17252 * localedata/br_FR.UTF-8.in: Likewise.
17253 * localedata/cmn_TW.UTF-8.in: Likewise.
17254 * localedata/crh_UA.UTF-8.in: Likewise.
17255 * localedata/csb_PL.UTF-8.in: Likewise.
17256 * localedata/cv_RU.UTF-8.in: Likewise.
17257 * localedata/cy_GB.UTF-8.in: Likewise.
17258 * localedata/dz_BT.UTF-8.in: Likewise.
17259 * localedata/eo.UTF-8.in: Likewise.
17260 * localedata/es_ES.UTF-8.in: Likewise.
17261 * localedata/fa_IR.UTF-8.in: Likewise.
17262 * localedata/fi_FI.UTF-8.in: Likewise.
17263 * localedata/fil_PH.UTF-8.in: Likewise.
17264 * localedata/fur_IT.UTF-8.in: Likewise.
17265 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17266 * localedata/ha_NG.UTF-8.in: Likewise.
17267 * localedata/ig_NG.UTF-8.in: Likewise.
17268 * localedata/ik_CA.UTF-8.in: Likewise.
17269 * localedata/kk_KZ.UTF-8.in: Likewise.
17270 * localedata/ku_TR.UTF-8.in: Likewise.
17271 * localedata/ky_KG.UTF-8.in: Likewise.
17272 * localedata/ln_CD.UTF-8.in: Likewise.
17273 * localedata/mi_NZ.UTF-8.in: Likewise.
17274 * localedata/ml_IN.UTF-8.in: Likewise.
17275 * localedata/mn_MN.UTF-8.in: Likewise.
17276 * localedata/mr_IN.UTF-8.in: Likewise.
17277 * localedata/mt_MT.UTF-8.in: Likewise.
17278 * localedata/nb_NO.UTF-8.in: Likewise.
17279 * localedata/om_KE.UTF-8.in: Likewise.
17280 * localedata/os_RU.UTF-8.in: Likewise.
17281 * localedata/ps_AF.UTF-8.in: Likewise.
17282 * localedata/ro_RO.UTF-8.in: Likewise.
17283 * localedata/ru_RU.UTF-8.in: Likewise.
17284 * localedata/sc_IT.UTF-8.in: Likewise.
17285 * localedata/se_NO.UTF-8.in: Likewise.
17286 * localedata/sq_AL.UTF-8.in: Likewise.
17287 * localedata/sv_SE.UTF-8.in: Likewise.
17288 * localedata/szl_PL.UTF-8.in: Likewise.
17289 * localedata/tg_TJ.UTF-8.in: Likewise.
17290 * localedata/tk_TM.UTF-8.in: Likewise.
17291 * localedata/tt_RU.UTF-8.in: Likewise.
17292 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17293 * localedata/ug_CN.UTF-8.in: Likewise.
17294 * localedata/uz_UZ.UTF-8.in: Likewise.
17295 * localedata/vi_VN.UTF-8.in: Likewise.
17296 * localedata/yi_US.UTF-8.in: Likewise.
17297 * localedata/yo_NG.UTF-8.in: Likewise.
17298 * localedata/zh_CN.UTF-8.in: Likewise.
17299 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17300 file and fix bugs in the collation.
17301 * localedata/locales/az_AZ: Likewise.
17302 * localedata/locales/be_BY: Likewise.
17303 * localedata/locales/ber_DZ: Likewise.
17304 * localedata/locales/ber_MA: Likewise.
17305 * localedata/locales/bg_BG: Likewise.
17306 * localedata/locales/br_FR: Likewise.
17307 * localedata/locales/br_FR@euro: Likewise.
17308 * localedata/locales/ca_ES: Likewise.
17309 * localedata/locales/cns11643_stroke: Likewise.
17310 * localedata/locales/crh_UA: Likewise.
17311 * localedata/locales/cs_CZ: Likewise.
17312 * localedata/locales/csb_PL: Likewise.
17313 * localedata/locales/cv_RU: Likewise.
17314 * localedata/locales/cy_GB: Likewise.
17315 * localedata/locales/da_DK: Likewise.
17316 * localedata/locales/dz_BT: Likewise.
17317 * localedata/locales/en_CA: Likewise.
17318 * localedata/locales/eo: Likewise.
17319 * localedata/locales/es_CU: Likewise.
17320 * localedata/locales/es_EC: Likewise.
17321 * localedata/locales/es_ES: Likewise.
17322 * localedata/locales/es_US: Likewise.
17323 * localedata/locales/et_EE: Likewise.
17324 * localedata/locales/fa_IR: Likewise.
17325 * localedata/locales/fi_FI: Likewise.
17326 * localedata/locales/fil_PH: Likewise.
17327 * localedata/locales/fur_IT: Likewise.
17328 * localedata/locales/gez_ER@abegede: Likewise.
17329 * localedata/locales/ha_NG: Likewise.
17330 * localedata/locales/hr_HR: Likewise.
17331 * localedata/locales/hsb_DE: Likewise.
17332 * localedata/locales/hu_HU: Likewise.
17333 * localedata/locales/ig_NG: Likewise.
17334 * localedata/locales/ik_CA: Likewise.
17335 * localedata/locales/is_IS: Likewise.
17336 * localedata/locales/iso14651_t1_pinyin: Likewise.
17337 * localedata/locales/kk_KZ: Likewise.
17338 * localedata/locales/ku_TR: Likewise.
17339 * localedata/locales/ky_KG: Likewise.
17340 * localedata/locales/ln_CD: Likewise.
17341 * localedata/locales/lt_LT: Likewise.
17342 * localedata/locales/lv_LV: Likewise.
17343 * localedata/locales/mi_NZ: Likewise.
17344 * localedata/locales/ml_IN: Likewise.
17345 * localedata/locales/mn_MN: Likewise.
17346 * localedata/locales/mr_IN: Likewise.
17347 * localedata/locales/mt_MT: Likewise.
17348 * localedata/locales/nb_NO: Likewise.
17349 * localedata/locales/om_KE: Likewise.
17350 * localedata/locales/os_RU: Likewise.
17351 * localedata/locales/pl_PL: Likewise.
17352 * localedata/locales/ps_AF: Likewise.
17353 * localedata/locales/ro_RO: Likewise.
17354 * localedata/locales/ru_RU: Likewise.
17355 * localedata/locales/ru_UA: Likewise.
17356 * localedata/locales/sc_IT: Likewise.
17357 * localedata/locales/se_NO: Likewise.
17358 * localedata/locales/si_LK: Likewise.
17359 * localedata/locales/sq_AL: Likewise.
17360 * localedata/locales/sv_FI: Likewise.
17361 * localedata/locales/sv_FI@euro: Likewise.
17362 * localedata/locales/sv_SE: Likewise.
17363 * localedata/locales/szl_PL: Likewise.
17364 * localedata/locales/tg_TJ: Likewise.
17365 * localedata/locales/ti_ER: Likewise.
17366 * localedata/locales/tk_TM: Likewise.
17367 * localedata/locales/tl_PH: Likewise.
17368 * localedata/locales/tr_TR: Likewise.
17369 * localedata/locales/tt_RU: Likewise.
17370 * localedata/locales/tt_RU@iqtelif: Likewise.
17371 * localedata/locales/ug_CN: Likewise.
17372 * localedata/locales/uk_UA: Likewise.
17373 * localedata/locales/uz_UZ: Likewise.
17374 * localedata/locales/uz_UZ@cyrillic: Likewise.
17375 * localedata/locales/vi_VN: Likewise.
17376 * localedata/locales/yi_US: Likewise.
17377 * localedata/locales/yo_NG: Likewise.
17378
17379 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17380
17381 * gen-locales.mk: Make test files which contain @ modifiers in their
17382 name work.
17383 * localedata/gen-locale.sh: Likewise.
17384
17385 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17386
17387 * posix/tst-fnmatch.input: Fix results for range expressions
17388 for non C locales.
17389 * posix/tst-regexloc.c: Do not use a range expression for
17390 de_DE.ISO-8859-1 locale.
17391
17392 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17393
17394 * posix/bug-regex5.c: Fix test case because with the new
17395 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17396 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17397 file.
17398
17399 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17400
17401 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17402 downloaded from ISO, the collation order of @-. and space has changed.
17403 Therefore, this test file needed to be adapted.
17404 * localedata/fr_CA.UTF-8.in: Likewise.
17405 * localedata/fr_FR.UTF-8.in: Likewise.
17406 * localedata/uk_UA.UTF-8.in: Likewise.
17407
17408 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17409
17410 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17411 order of ȥ in the new iso14651_t1_common file.
17412 * localedata/pl_PL.UTF-8.in: Likewise.
17413
17414 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17415
17416 * localedata/locales/iso14651_t1_common: Add sections for various
17417 scripts to the iso14651_t1_common file.
17418
17419 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17420
17421 * localedata/locales/iso14651_t1_common: Use the code point of a
17422 character in the fourth collation level instead of IGNORE for all
17423 entries which have IGNORE on all 4 levels.
17424
17425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17426
17427 * localedata/locales/iso14651_t1_common: Add some convenient collation
17428 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17429 rules similar to those in CLDR.
17430
17431 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17432
17433 * localedata/locales/iso14651_t1_common: The new version of this
17434 file downloaded from ISO contained several syntax errors which
17435 are fixed by this patch.
17436
17437 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17438
17439 * localedata/locales/iso14651_t1_common: replace all <U.....>
17440 with <U000.....> because glibc understands only 4 digit or 8 digit
17441
17442 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17443
17444 * localedata/locales/iso14651_t1_common: Necessary changes
17445 to make the file downloaded from ISO usable by glibc.
17446
17447 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17448
17449 [BZ #14095]
17450 * localedata/locales/iso14651_t1_common: Update file to
17451 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17452
17453 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17454
17455 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17456 of <nptl/pthreadP.h>
17457 (thread_attr_compare): Move function to...
17458 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17459 * sysdeps/nptl/timer_routines.h: ... new header.
17460 * sysdeps/mach/hurd/gai_misc.h: New file.
17461
17462 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17463
17464 * string/strcoll_l.c: Include <libc-diag.h>.
17465 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17466 declarations of seq1 and seq2.
17467
17468 [BZ #15105]
17469 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17470 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17471
17472 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17473
17474 [BZ #22433]
17475 [BZ #22807]
17476 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17477 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17478 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17479 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17480 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17481 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17482
17483 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17484
17485 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17486 macros used in __ptrace_request.
17487
17488 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17489
17490 [BZ #22792]
17491 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17492 to $(CC).
17493 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17494 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17495 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17496 <tcb-offsets.h>.
17497
17498 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17499
17500 [BZ #15105]
17501 * ctype/ctype.c (tolower): Use libc_hidden_def.
17502 (toupper): Likewise.
17503 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17504 [!_ISOMAC] (toupper): Likewise.
17505
17506 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17507
17508 * localedata/Makefile: Remove --quiet argument when
17509 installing locales
17510
17511 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17512
17513 [BZ #17438]
17514 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17515 in d_fmt.
17516 * localedata/locales/pt_PT (LC_TIME): likewise
17517
17518 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17519
17520 [BZ #22646]
17521 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17522 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17523 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17524
17525 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17526
17527 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17528
17529 * nptl/Makefile (routines): Remove unregister-atfork.
17530 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17531 (fork_handler_alloc): Remove function.
17532 (fork_handlers, fork_handler_init): New variables.
17533 (__fork_lock): Rename to atfork_lock.
17534 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17535 to use a dynamic array to add/remove atfork handlers.
17536 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17537 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17538 Remove declaration.
17539 (fork_handler): Remove next, refcntr, and need_signal member.
17540 (__run_fork_handler_type): New enum.
17541 (__run_fork_handlers): New prototype.
17542 * nptl/register-atfork.c: Remove file.
17543 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17544
17545 * sysdeps/nptl/nptl-signals.h: Move to ...
17546 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17547 comments.
17548 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17549 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17550 unnecessary check for SIGTIMER.
17551 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17552 remove unnecessary removal of SIGTIMER.
17553 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17554 include-signals.h rename.
17555 * nptl/pthreadP.h: Likewise.
17556 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17557 __is_internal_signal instead of __nptl_is_internal_signal.
17558
17559 2018-02-22 Andrew Waterman <andrew@sifive.com>
17560
17561 [BZ # 22884]
17562 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17563 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17564 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17565 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17566
17567 2018-02-22 DJ Delorie <dj@delorie.com>
17568
17569 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17570
17571 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17572
17573 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17574 do_misaligned, not misaligned8.
17575
17576 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17577
17578 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17579 Add memcpy_thunderx2.
17580 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17581 Increment to 4.
17582 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17583 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17584 and IS_THUNDERX2PA checks.
17585 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17586 Use macro to set name appropriately.
17587 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17588 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17589 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17590 New macro.
17591 (IS_THUNDERX2): New macro.
17592
17593 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17594
17595 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17596
17597 2018-02-21 Zack Weinberg <zackw@panix.com>
17598
17599 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17600 Define here, unconditionally.
17601 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17602 * libio/libioP.h: Remove #if 0 blocks.
17603 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17604 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17605 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17606
17607 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17608 Assume weak_alias is always defined.
17609
17610 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17611 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17612 Remove #if 0 and #ifdef TODO blocks.
17613 Assume text_set_element is always defined.
17614
17615 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17616 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17617 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17618
17619 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17620 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17621 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17622 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17623 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17624 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17625 Reformat bit flags for _flags field to make occupancy clearer.
17626 Update commentary.
17627 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17628 Keep definitions consistent with those in libio/libio.h.
17629
17630 * libio/libio.h (_IO_file_flags): Remove macro.
17631 All uses changed to _flags.
17632
17633 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17634 (__HAVE_COLUMN, _IO_BE): Don't define.
17635 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17636 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17637 * libio/libioP.h (EOF): Don't define.
17638 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17639 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17640 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17641 testing _IO_UNIFIED_JUMPTABLES.
17642
17643 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17644 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17645 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17646 (_IO_size_t): Delete; all uses changed to size_t.
17647 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17648 (_IO_off_t): Delete; all uses changed to off_t.
17649 (_IO_off64_t): Delete; all uses changed to off64_t.
17650 (_IO_pid_t): Delete; all uses changed to pid_t.
17651 (_IO_uid_t): Delete; all uses changed to uid_t.
17652 (_IO_wint_t): Delete; all uses changed to wint_t.
17653 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17654 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17655 (_IO_cookie_io_functions_t): Delete; all uses changed to
17656 cookie_io_functions_t.
17657 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17658 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17659 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17660 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17661
17662 * libio/iofopncook.c: Remove unnecessary forward declarations.
17663 * libio/iolibio.h: Correct outdated commentary.
17664 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17665 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17666 Remove unnecessary casts.
17667 * stdio-common/getline.c: Use _IO_getdelim directly.
17668 Don't redefine ssize_t.
17669 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17670 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17671 Remove outdated comments.
17672 * stdio-common/vfscanf.c: Don't redefine va_list.
17673
17674 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17675 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17676 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17677 which are always true, and __cplusplus, which is always false.
17678
17679 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17680
17681 [BZ #15105]
17682 [BZ #19463]
17683 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17684 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17685 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17686 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17687 libc_hidden_proto.
17688 [!_ISOMAC] (putc_unlocked): Likewise.
17689 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17690 define inline if [__USE_EXTERN_INLINES].
17691 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17692 putc_unlocked.
17693
17694 [BZ #15105]
17695 [BZ #19463]
17696 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17697 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17698 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17699 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17700 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17701 getc_unlocked.
17702 * time/tzfile.c (__tzfile_read): Likewise.
17703
17704 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17705
17706 [BZ #22517]
17707 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17708
17709 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17710
17711 * io/fcntl.h: Fix a typo in a comment.
17712
17713 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17714
17715 [BZ #22862]
17716 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17717 define _DEFAULT_SOURCE.
17718 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17719
17720 2018-02-21 Florian Weimer <fweimer@redhat.com>
17721
17722 [BZ #20890]
17723 * elf/cache.c (save_cache): Call fsync on temporary file before
17724 renaming it.
17725 (save_aux_cache): Call fdatasync on temporary file before renaming
17726 it.
17727
17728 2018-02-21 Florian Weimer <fweimer@redhat.com>
17729
17730 [BZ #22787]
17731 * include/caller.h: Remove file.
17732 * elf/dl-caller.c: Likewise.
17733 * elf/Makefile (dl-routines): Remove dl-caller.
17734 (shared-only-routines): Do not add dl-caller.
17735 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17736 __check_caller.
17737 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17738 member.
17739 (dl_open_worker): Do not call __check_caller.
17740 (_dl_open): Do not set caller_dl_open member.
17741 * elf/rtld.c (_rtld_global_ro): Do not initialize
17742 _dl_check_caller member.
17743 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17744 _dl_check_caller member.
17745 (_dl_check_caller): Remove declaration.
17746 * sysdeps/unix/sysv/linux/dl-execstack.c
17747 (_dl_make_stack_executable): Do not call __check_caller.
17748
17749 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17750
17751 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17752 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17753
17754 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17755
17756 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17757 description.
17758
17759 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17760
17761 [BZ #16335]
17762 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17763 of 199606L, 200112L, and 200809L.
17764 (_XOPEN_SOURCE): Document special values of 600 and 700.
17765 (_ISOC11_SOURCE): Document macro.
17766 (_ATFILE_SOURCE): Likewise.
17767 (_FORTIFY_SOURCE): Likewise.
17768
17769 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17770
17771 [BZ #15105]
17772 [BZ #19463]
17773 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17774 and define as weak alias of __ferror_unlocked. Use
17775 libc_hidden_weak.
17776 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17777 libc_hidden_proto.
17778 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17779 function if [__USE_EXTERN_INLINES].
17780 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17781 ferror_unlocked.
17782
17783 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17784
17785 [BZ #6889]
17786 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17787
17788 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17789
17790 [BZ #22818]
17791 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17792 the GLIBC_2.1 version.
17793
17794 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17795
17796 [BZ #21508]
17797 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17798 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17799 intl/tst-gettext-de.po from po/de.po by removing the
17800 POT-Creation-Date line.
17801 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17802 ../po/de.po.
17803 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17804 ../po/de.po.
17805
17806 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17807
17808 * mach/Makefile (headers): Add mach/param.h.
17809 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17810 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17811 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17812 (__ptsname_r): Move implementation to...
17813 (__ptsname_internal): ... new function. Add filling the STP
17814 structure.
17815
17816 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17817
17818 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17819 idouble to 1 ULP.
17820
17821 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17822
17823 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17824 syntax.
17825
17826 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17827
17828 * nptl/Makefile (tst-mutex8-ENV): Delete.
17829 * nptl/tst-mutex8.c (check_type):
17830 Add runtime check if mutex will be elided.
17831
17832 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17833
17834 [BZ #20980]
17835 [BZ #21234]
17836 * manual/install.texi (Configuring and compiling): Describe
17837 passing CC and CFLAGS on configure command line, not as
17838 environment variables. Use @code markup on those variables.
17839 Specify what options go in CC and what go in CFLAGS. Note the
17840 requirement to compile with optimization.
17841 * INSTALL: Regenerated.
17842
17843 [BZ #18124]
17844 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17845 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17846 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17847 __sigprocmask instead of sigprocmask.
17848 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17849 Likewise.
17850 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17851 __sigsetjmp and sigprocmask.
17852
17853 [BZ #15105]
17854 * include/argz.h (argz_next): Use libc_hidden_proto.
17855 (__argz_next): Likewise.
17856 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17857 (argz_next): Use libc_hidden_weak.
17858
17859 [BZ #15105]
17860 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17861 libc_hidden_proto.
17862 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17863 libc_hidden_def.
17864
17865 [BZ #15105]
17866 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17867 libc_hidden_proto.
17868 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17869
17870 [BZ #15105]
17871 [BZ #19463]
17872 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17873 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17874 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17875 (__feof_unlocked): New declaration, and inline function if
17876 [__USE_EXTERN_INLINES].
17877 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17878 instead of feof_unlocked.
17879 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17880 * nss/nsswitch.c (nss_parse_file): Likewise.
17881 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17882 Likewise.
17883 * time/getdate.c (__getdate_r): Likewise.
17884 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17885 Define as macro to call __feof_unlocked.
17886
17887 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17888
17889 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17890
17891 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17892
17893 * math/Makefile: Remove mpexp.c and mplog.c
17894 * sysdeps/i386/fpu/mpexp.c: Delete file.
17895 * sysdeps/i386/fpu/mplog.c: Likewise.
17896 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17897 * sysdeps/ia64/fpu/mplog.c: Likewise.
17898 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17899 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17900 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17901 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17902 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17903 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17904 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17905 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17906 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17907 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17908 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17909 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17910 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17911 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17912 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17913 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17914
17915 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17916
17917 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17918
17919 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17920
17921 * sysdeps/sh/libm-test-ulps: Update.
17922
17923 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17924
17925 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17926 idouble to 1 ULP.
17927
17928 2018-02-12 Zack Weinberg <zackw@panix.com>
17929
17930 [BZ #19239]
17931 * posix/sys/types.h: Don't include sys/sysmacros.h.
17932 * misc/sys/sysmacros.h: Remove the conditional deprecation
17933 warnings for the macros defined by this header.
17934
17935 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17936
17937 * manual/probes.texi: Remove slowexp probes.
17938 * math/Makefile: Remove slowexp.
17939 * sysdeps/generic/math_private.h (__slowexp): Remove.
17940 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17941 document error bounds.
17942 * sysdeps/i386/fpu/slowexp.c: Remove.
17943 * sysdeps/ia64/fpu/slowexp.c: Remove.
17944 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17945 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17946 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17947 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17948 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17949 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17950 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17951 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17952 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17953 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17954 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17955
17956 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17957
17958 [BZ #13932]
17959 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17960 * benchtests/pow-inputs: Update comment for slow path cases.
17961 * manual/probes.texi (slowpow_p10): Delete removed probe.
17962 (slowpow_p10): Likewise.
17963 * math/Makefile: Remove halfulp.c and slowpow.c.
17964 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17965 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17966 (__halfulp): Remove.
17967 (__slowpow): Remove.
17968 * sysdeps/i386/fpu/halfulp.c: Delete file.
17969 * sysdeps/i386/fpu/slowpow.c: Likewise.
17970 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17971 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17972 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17973 improve comments and add error analysis.
17974 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17975 (power1): Remove function:
17976 (log1): Remove error argument, add error analysis.
17977 (my_log2): Remove function.
17978 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17979 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17980 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17981 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17982 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17983 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17984 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17985 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17986 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17987 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17988 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17989 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17990 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17991 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17992
17993 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17994
17995 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17996 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17997
17998 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17999
18000 [BZ #22433]
18001 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
18002 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
18003 and PTRACE_SETHBPREGS.
18004
18005 2018-02-10 Zack Weinberg <zackw@panix.com>
18006
18007 [BZ #22830]
18008 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
18009 correctly.
18010 * malloc/tst-malloc-stats-cancellation.c: New test case.
18011 * malloc/Makefile: Add new test case.
18012
18013 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
18014
18015 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
18016
18017 2018-02-10 Joseph Myers <joseph@codesourcery.com>
18018
18019 * math/Makefile (libm-narrow-fns): Add add.
18020 (libm-test-funcs-narrow): Likewise.
18021 * math/Versions (GLIBC_2.28): Add narrowing add functions.
18022 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
18023 * math/gen-auto-libm-tests.c (test_functions): Add add.
18024 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
18025 (NARROW_ADD_ROUND_TO_ODD): Likewise.
18026 (NARROW_ADD_TRIVIAL): Likewise.
18027 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
18028 macro.
18029 (__daddl): Likewise.
18030 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
18031 dadd.
18032 (CFLAGS-nldbl-dadd.c): New variable.
18033 (CFLAGS-nldbl-fadd.c): Likewise.
18034 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
18035 __nldbl_daddl.
18036 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
18037 prototype.
18038 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
18039 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
18040 * math/auto-libm-test-in: Add tests of add.
18041 * math/auto-libm-test-out-narrow-add: New generated file.
18042 * math/libm-test-narrow-add.inc: New file.
18043 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
18044 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
18045 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
18046 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
18047 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
18048 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
18049 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
18050 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
18051 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
18052 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
18053 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
18054 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
18055 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
18056 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
18057 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
18058 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
18059 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
18060 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18061 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18062 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18063 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18064 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18065 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18066 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18067 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18068 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18069 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18070 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18071 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18072 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18073 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18074 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18078 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18079 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18080 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18081 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18082 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18083 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18084 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18085 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18086 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18087 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18088 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18089
18090 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18091 (f128-pairs): New variable.
18092 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18093 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18094 to CFLAGS.
18095 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18096 Also make tests add $(f128-loader-link) to gnulib-tests.
18097
18098 2018-02-09 DJ Delorie <dj@redhat.com>
18099
18100 [BZ #22827]
18101 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18102 64-bit ELF type for 64-bit ELF objects.
18103
18104 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18105
18106 * math/libm-test-driver.c (snan_tests_arg): New variable.
18107 * math/libm-test-support.h (snan_tests_arg): New declaration.
18108 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18109
18110 * math/Makefile (test-type-pairs): New variable.
18111 (test-type-pairs-f64xf128-yes): Likewise.
18112 (tests): Add test-narrow-macros.
18113 (libm-test-funcs-narrow): New variable.
18114 (libm-test-c-narrow): Likewise.
18115 (generated): Add $(libm-test-c-narrow).
18116 (libm-tests-base-narrow): New variable.
18117 (libm-tests-narrow): Likewise.
18118 (libm-tests): Add $(libm-tests-narrow).
18119 (libm-tests-for-type): Handle $(libm-tests-narrow).
18120 (libm-test-c-narrow-obj): New variable.
18121 ($(libm-test-c-narrow-obj)): New rule.
18122 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18123 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18124 $(o-iterator) to set dependencies and CFLAGS.
18125 * math/gen-auto-libm-tests.c: Document use for narrowing
18126 functions.
18127 (output_for_one_input_case): Take argument NARROW.
18128 (generate_output): Likewise. Update call to
18129 output_for_one_input_case.
18130 (main): Take --narrow option. Update call to generate_output.
18131 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18132 (apply_lit): Update call to _apply_lit.
18133 (apply_arglit): New function.
18134 (parse_args): Handle "a" arguments.
18135 (parse_auto_input): Handle format names using ":".
18136 * math/README.libm-test: Document "a" parameter type.
18137 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18138 (ARG_TYPE_TRUE_MIN): Likewise.
18139 (ARG_TYPE_MAX): Likwise.
18140 (ARG_MIN_EXP): Likewise.
18141 (ARG_MAX_EXP): Likewise.
18142 (ARG_MANT_DIG): Likewise.
18143 (TEST_COND_arg_ibm128): Likewise.
18144 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18145 (TEST_COND_arg_fmt): New macro.
18146 (init_max_error): Update prototype.
18147 * math/libm-test-support.c (test_ibm128): New variable.
18148 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18149 instead of using [TEST_COND_ibm128] conditional.
18150 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18151 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18152 [TEST_NARROW] (TEST_MSG): New definition.
18153 (arg_plus_zero): New macro.
18154 (arg_minus_zero): Likewise.
18155 (arg_plus_infty): Likewise.
18156 (arg_minus_infty): Likewise.
18157 (arg_qnan_value_pl): Likewise.
18158 (arg_qnan_value): Likewise.
18159 (arg_snan_value_pl): Likewise.
18160 (arg_snan_value): Likewise.
18161 (arg_max_value): Likewise.
18162 (arg_min_value): Likewise.
18163 (arg_min_subnorm_value): Likewise.
18164 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18165 (RUN_TEST_LOOP_aa_f): New macro.
18166 (TEST_SUFF): New macro.
18167 (TEST_SUFF_STR): Likewise.
18168 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18169 (TEST_COND_any_ibm128): New macro.
18170 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18171 this_func. Update call to init_max_error.
18172 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18173 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18174 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18175 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18176 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18177 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18178 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18179 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18180 * math/test-math-vector.h (TEST_NARROW): Likewise.
18181 * math/test-arg-double.h: New file.
18182 * math/test-arg-float128.h: Likewise.
18183 * math/test-arg-float32x.h: Likewise.
18184 * math/test-arg-float64.h: Likewise.
18185 * math/test-arg-float64x.h: Likewise.
18186 * math/test-arg-ldouble.h: Likewise.
18187 * math/test-math-narrow.h: Likewise.
18188 * math/test-narrow-macros.c: Likewise.
18189 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18190 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18191 test-narrow-macros-ldbl-64.
18192 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18193
18194 * math/bits/mathcalls-narrow.h: New file.
18195 * include/bits/mathcalls-narrow.h: Likewise.
18196 * math/math-narrow.h: Likewise.
18197 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18198 (__MATHCALL_NARROW_ARGS_2): Likewise.
18199 (__MATHCALL_NARROW_ARGS_3): Likewise.
18200 (__MATHCALL_NARROW_NORMAL): Likewise.
18201 (__MATHCALL_NARROW_REDIR): Likewise.
18202 (__MATHCALL_NARROW): Likewise.
18203 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18204 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18205 defined.
18206 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18207 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18208 (libm-narrow-fns): New variable.
18209 (libm-narrow-types-basic): Likewise.
18210 (libm-narrow-types-ldouble-yes): Likewise.
18211 (libm-narrow-types-float128-yes): Likewise.
18212 (libm-narrow-types-float128-alias-yes): Likewise.
18213 (libm-narrow-types): Likewise.
18214 (libm-routines): Add narrowing functions.
18215 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18216 (libc_feholdexcept_setroundf128): New macro.
18217 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18218 * sysdeps/ieee754/float128/float128_private.h: Include
18219 <math/math-narrow.h>.
18220 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18221 Undefine and redefine.
18222 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18223 (libm_alias_float_ldouble): Undefine and redefine.
18224 (libm_alias_double_ldouble): Likewise.
18225
18226 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18227
18228 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18229
18230 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18231 FPCR/FPSR.
18232
18233 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18234
18235 * manual/creature.texi: Convert references to gcc.info to gcc.
18236 * manual/stdio.texi: Likewise.
18237 * manual/string.texi: Likewise.
18238
18239 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18240
18241 [BZ #17979]
18242 * posix/bits/types.h (__int_least8_t): New typedef.
18243 (__uint_least8_t): Likewise.
18244 (__int_least16_t): Likewise.
18245 (__uint_least16_t): Likewise.
18246 (__int_least32_t): Likewise.
18247 (__uint_least32_t): Likewise.
18248 (__int_least64_t): Likewise.
18249 (__uint_least64_t): Likewise.
18250 * sysdeps/generic/stdint.h (int_least8_t): Define using
18251 __int_least8_t.
18252 (int_least16_t): Define using __int_least16_t.
18253 (int_least32_t): Define using __int_least32_t.
18254 (int_least64_t): Define using __int_least64_t.
18255 (uint_least8_t): Define using __uint_least8_t.
18256 (uint_least16_t): Define using __uint_least16_t.
18257 (uint_least32_t): Define using __uint_least32_t.
18258 (uint_least64_t): Define using __uint_least64_t.
18259 * wcsmbs/uchar.h: Include <bits/types.h>.
18260 (char16_t): Define using __uint_least16_t conditional only on
18261 [!__USE_ISOCXX11].
18262 (char32_t): Define using __uint_least32_t conditional only on
18263 [!__USE_ISOCXX11].
18264 * wcsmbs/test-char-types.c: New file.
18265 * wcsmbs/Makefile (tests): Add test-char-types.
18266
18267 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18268 version to 4.0.1.
18269
18270 2018-02-07 Zack Weinberg <zackw@panix.com>
18271
18272 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18273 Delete all contents except for definitions of _G_HAVE_MMAP and
18274 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18275 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18276 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18277 change as above.
18278
18279 * libio/libio.h: Don't include bits/_G_config.h here.
18280 Include stddef.h with __need_wchar_t defined. Include
18281 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18282 Define _IO_iconv_t here, directly.
18283 Don't define _IO_HAVE_ST_BLKSIZE.
18284 * libio/libioP.h: Include _G_config.h here. Move include of
18285 shlib-compat.h up with rest of includes. Simplify conditionals
18286 controlling definition of _IO_JUMPS_OFFSET.
18287
18288 * csu/init.c: Remove always-true #if around entire file.
18289 Don't include stdio.h. Set _IO_stdin_used to hardwired
18290 constant 0x20001, and update commentary.
18291 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18292 Replace all uses of _G_va_list with __gnuc_va_list.
18293 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18294 instead of #if _IO_HAVE_ST_BLKSIZE.
18295 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18296 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18297 not #ifdef.
18298
18299 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18300 multiple-include guard to match.
18301 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18302 into this file.
18303 Remove preprocessor conditionals that are always true and/or
18304 redundant to other preprocessor conditionals in the same nest.
18305 Include shlib-compat.h unconditionally.
18306 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18307 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18308 defined after including stdio.h.
18309 Use __BEGIN_DECLS/__END_DECLS.
18310
18311 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18312 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18313 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18314
18315 2018-02-07 Zack Weinberg <zackw@panix.com>
18316
18317 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18318 New single-type headers split from _G_config.h.
18319 * libio/bits/types/cookie_io_functions_t.h
18320 * libio/bits/types/struct_FILE.h
18321 New single-type headers split from libio.h.
18322
18323 * libio/Makefile: Install the above new headers. Don't install
18324 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18325 bits/libio-ldbl.h.
18326 * libio/_G_config.h, libio/libio.h: Delete file.
18327
18328 * libio/bits/libio.h: Remove improper-inclusion guard.
18329 Include stdio.h and don't repeat anything that it does.
18330 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18331 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18332 __io_read_fn as cookie_read_function_t,
18333 __io_write_fn as cookie_write_function_t,
18334 __io_seek_fn as cookie_seek_function_t,
18335 __io_close_fn as cookie_close_function_t,
18336 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18337 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18338 here, in the "compatibility defines" section. Remove an #if 0
18339 block. Use the "body" macros from bits/types/struct_FILE.h to
18340 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18341 and _IO_ferror_unlocked.
18342 Move prototypes of __uflow and __overflow...
18343
18344 * libio/stdio.h: ...here. Don't include bits/libio.h.
18345 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18346 directly from stdarg.h. Include bits/types/__fpos_t.h,
18347 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18348 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18349 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18350 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18351 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18352 __ssize_t, not _IO_ssize_t. Unconditionally define
18353 BUFSIZ as 8192 and EOF as (-1).
18354
18355 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18356 macros from bits/types/struct_FILE.h instead of _IO_* macros
18357 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18358 instead of _IO_ssize_t.
18359 * libio/bits/stdio2.h: Similarly.
18360
18361 * libio/iolibio.h: Add multiple-include guard.
18362 Include bits/libio.h after stdio.h.
18363 * libio/libioP.h: Add multiple-include guard.
18364 Include stdio.h and bits/libio.h before iolibio.h.
18365
18366 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18367 * include/bits/types/cookie_io_functions_t.h
18368 * include/bits/types/struct_FILE.h: New wrappers.
18369
18370 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18371 Get definitions of _G_fpos_t and _G_fpos64_t from
18372 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18373 respectively. Remove improper-inclusion guards.
18374
18375 * conform/data/stdio.h-data: Update expectations of va_list.
18376 * scripts/check-installed-headers.sh: Remove special case for
18377 libio.h and _G_config.h.
18378
18379 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18380
18381 [BZ #15105]
18382 [BZ #19463]
18383 * include/sys/sysmacros.h [!_ISOMAC]
18384 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18385 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18386 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18387 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18388 libc_hidden_proto.
18389 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18390 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18391 Likewise.
18392 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18393 Undefine and redefine to add use __gnu_dev_ prefix.
18394 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18395 Likewise.
18396 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18397 and define as hidden inline function.
18398 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18399 Likewise.
18400 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18401 Likewise.
18402 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18403 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18404 (gnu_dev_minor): Likewise.
18405 (gnu_dev_makedev): Likewise.
18406 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18407 makedev.
18408 * posix/wordexp.c (exec_comm_child): Likewise.
18409 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18410 instead of minor and __gnu_dev_major instead of major.
18411 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18412 __gnu_dev_major instead of major.
18413 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18414 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18415 instead of gnu_dev_minor.
18416 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18417 (SLAVE_P): Likewise.
18418 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18419 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18420 instead of major.
18421
18422 [BZ #21313]
18423 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18424 in another place.
18425 * locale/weightwc.h (findidx): Likewise.
18426
18427 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18428
18429 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18430 (slowlog_inexact): Likewise
18431 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18432 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18433
18434 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18435
18436 [BZ #22797]
18437 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18438 missing second underscore to parameter name.
18439
18440 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18441
18442 [BZ #14508]
18443 [BZ #15512]
18444 [BZ #17082]
18445 [BZ #20530]
18446 * bits/byteswap.h: Update file comment. Do not include
18447 <bits/byteswap-16.h>.
18448 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18449 constant.
18450 (__bswap_16): Define as inline function.
18451 (__bswap_constant_32): Reformat definition.
18452 (__bswap_32): Always define as inline function, not macro, using
18453 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18454 otherwise __bswap_constant_32.
18455 (__bswap_constant_64): Reformat definition. Do not use
18456 __extension__ here.
18457 (__bswap_64): Always define as inline function, not macro. Use
18458 __extension__ on function definition. Use __builtin_bswap64 if
18459 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18460 * string/test-endian-file-scope.c: New file.
18461 * string/test-endian-sign-conversion.c: Likewise.
18462 * string/Makefile (headers): Remove bits/byteswap-16.h.
18463 (tests): Add test-endian-file-scope and
18464 test-endian-sign-conversion.
18465 (CFLAGS-test-endian-sign-conversion.c): New variable.
18466 * bits/byteswap-16.h: Remove file.
18467 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18468 * sysdeps/ia64/bits/byteswap.h: Likewise.
18469 * sysdeps/m68k/bits/byteswap.h: Likewise.
18470 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18471 * sysdeps/s390/bits/byteswap.h: Likewise.
18472 * sysdeps/tile/bits/byteswap.h: Likewise.
18473 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18474 * sysdeps/x86/bits/byteswap.h: Likewise.
18475
18476 [BZ #17721]
18477 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18478 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18479 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18480 199901L] (__restrict): Define to restrict.
18481
18482 [BZ #19667]
18483 * string/testcopy.c: Include <support/support.h>. Do not include
18484 <malloc.h>. Use <support/test-driver.c>.
18485 (main): Rename to do_test. Make static. Use xmalloc instead of
18486 malloc.
18487
18488 [BZ #13575]
18489 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18490 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18491 (SSIZE_MAX): Define to INT_MAX.
18492 * posix/test-ssize-max.c: New file.
18493 * posix/Makefile (tests): Add test-ssize-max.
18494
18495 [BZ #19668]
18496 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18497 <support/support.h>. Do not include <malloc.h>.
18498 (query_auxv): Use xmalloc instead of malloc.
18499
18500 [BZ #14553]
18501 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18502 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18503 instead of loff_t.
18504
18505 2018-02-06 Florian Weimer <fweimer@redhat.com>
18506
18507 [BZ #18023]
18508 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18509 Use scratch_buffer instead of extend_alloca.
18510
18511 2018-02-06 Zack Weinberg <zackw@panix.com>
18512
18513 * libio/stdio.h: Don't define getc or putc as macros.
18514 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18515 not _IO_getc and _IO_putc.
18516
18517 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18518 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18519
18520 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18521
18522 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18523 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18524
18525 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18526
18527 [BZ #14890]
18528 * elf/elf.h (NT_PRFPREG): New macro.
18529 (NT_S390_VXRS_LOW): Likewise.
18530 (NT_S390_VXRS_HIGH): Likewise.
18531 (NT_S390_GS_CB): Likewise.
18532 (NT_S390_GS_BC): Likewise.
18533 (NT_S390_RI_CB): Likewise.
18534
18535 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18536 (MAP_SYNC): New macro.
18537 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18538 Likewise.
18539 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18540 (MAP_SYNC): Likewise.
18541 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18542 (MAP_SYNC): Likewise.
18543 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18544 (MAP_SYNC): Likewise.
18545 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18546 (MAP_SYNC): Likewise.
18547 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18548 (MAP_SYNC): Likewise.
18549 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18550 (MAP_SYNC): Likewise.
18551 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18552 Likewise.
18553 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18554 Likewise.
18555
18556 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18557 (MAP_SHARED_VALIDATE): New macro.
18558 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18559 (MAP_SHARED_VALIDATE): Likewise.
18560
18561 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18562
18563 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18564 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18565 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18566
18567 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18568
18569 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18570 (DT_NUM): Updated to 35.
18571
18572 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18573
18574 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18575 __builtin_expect with __glibc_likely and __glibc_unlikely.
18576 (elf_machine_rela): Likewise.
18577 (elf_machine_lazy_rel): Likewise.
18578
18579 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18580
18581 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18582 __builtin_expect with __glibc_likely and __glibc_unlikely.
18583 (elf_machine_lazy_rel): Likewise.
18584
18585 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18586
18587 [BZ #22638]
18588 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18589 SHARED.
18590 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18591
18592 2018-02-05 Andreas Schwab <schwab@suse.de>
18593
18594 [BZ #22761]
18595 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18596 string.
18597
18598 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18599
18600 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18601 not check against PTHREAD_STACK_MIN.
18602
18603 2018-02-02 Sean McKean <smckean83@gmail.com>
18604
18605 [BZ #22735]
18606 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18607
18608 2018-02-02 Florian Weimer <fweimer@redhat.com>
18609
18610 [BZ #22753]
18611 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18612 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18613 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18614 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18615 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18616 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18617 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18618 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18619 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18620 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18621 * misc/tst-preadvwritev2.c (do_test): Call it.
18622 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18623
18624 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18625
18626 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18627
18628 * benchtests/bench-memcmp.c: Print json instead of plain text.
18629
18630 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18631 every test run.
18632
18633 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18634
18635 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18636 version to 4.15.
18637 (s390_sthyi): New syscall.
18638
18639 * sysdeps/generic/ldbl-classify-compat.h: New file.
18640 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18641 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18642 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18643 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18644 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18645 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18646 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18647 <ldbl-classify-compat.h>.
18648 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18649 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18650 <ldbl-classify-compat.h>.
18651 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18652 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18653 <ldbl-classify-compat.h>.
18654 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18655 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18656 <ldbl-classify-compat.h>.
18657 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18658 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18659 <ldbl-classify-compat.h>.
18660 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18661 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18662 <ldbl-classify-compat.h>.
18663 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18664 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18665 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18666 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18667 * sysdeps/microblaze/math_private.h: Likewise.
18668 * sysdeps/nios2/math_private.h: Likewise.
18669 * sysdeps/sh/math_private.h: Likewise.
18670
18671 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18672 * sysdeps/m68k/coldfire/math_private.h: ... here.
18673 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18674 * sysdeps/tile/math_private.h: Likewise.
18675 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18676 Remove macro.
18677 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18678 Likewise.
18679
18680 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18681 Remove macro.
18682 (libc_fetestexcept): Likewise.
18683 (libc_feupdateenv_test): Likewise.
18684 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18685 (libc_fetestexcept): Likewise.
18686 (libc_feupdateenv_test): Likewise.
18687 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18688 (libc_fetestexcept): Likewise.
18689 (libc_feupdateenv_test): Likewise.
18690 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18691 (libc_fetestexcept): Likewise.
18692 (libc_feupdateenv_test): Likewise.
18693
18694 * sysdeps/generic/math_private.h
18695 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18696 New inline function.
18697 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18698 Likewise.
18699
18700 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18701 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18702 * sysdeps/generic/math_private.h
18703 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18704 inline function.
18705 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18706 Likewise.
18707 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18708 Likewise.
18709 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18710 Likewise.
18711 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18712 Likewise.
18713 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18714 Likewise.
18715 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18716 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18717 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18718 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18719 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18720 (__fegetenv): Likewise.
18721 (fesetenv): Likewise.
18722 (__fesetenv): Likewise.
18723 (feupdateenv): Likewise.
18724 (__feupdateenv): Likewise.
18725 (fegetround): Likewise.
18726 (__fegetround): Likewise.
18727 (fesetround): Likewise.
18728 (__fesetround): Likewise.
18729
18730 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18731 (feraiseexcept): New macro.
18732 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18733 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18734 Remove macro.
18735 (__feraiseexcept): Likewise.
18736 (feclearexcept): Likewise.
18737 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18738 (__feraiseexcept): Likewise.
18739 (feclearexcept): Likewise.
18740 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18741 (__feraiseexcept): Likewise.
18742 (feclearexcept): Likewise.
18743 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18744 (__feraiseexcept): Likewise.
18745 (feclearexcept): Likewise.
18746 (fetestexcept): Likewise.
18747
18748 * sysdeps/m68k/coldfire/math-tests.h: New file.
18749
18750 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18751 * sysdeps/m68k/bits/fenv.h: ... here.
18752 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18753 not define.
18754 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18755 Likewise.
18756 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18757 Likewise.
18758 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18759 Likewise.
18760 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18761 Likewise.
18762 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18763 Define to 0.
18764 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18765 (__FE_UNDEFINED): New enum constant.
18766 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18767 Do not define.
18768 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18769 Likewise.
18770 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18771 Likewise.
18772 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18773 to match generic bits/fenv.h.
18774 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18775 Do not define.
18776
18777 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18778 packed on bits.
18779 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18780 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18781 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18782 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18783
18784 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18785 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18786 Joseph Myers <joseph@codesourcery.com>
18787
18788 [BZ #21314]
18789 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18790 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18791 computation using c.
18792 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18793 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18794 computation using c.
18795
18796 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18797
18798 * version.h (RELEASE): Set to "development".
18799 (VERSION): Set to "2.27.9000".
18800 * NEWS (2.28): New section.
18801
18802 * version.h (RELEASE): Set to "stable".
18803 (VERSION): Set to "2.27".
18804 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18805
18806 * NEWS: Add the list of bugs fixed in 2.27.
18807
18808 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18809
18810 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18811 against PTHREAD_STACK_MIN.
18812
18813 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18814
18815 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18816 New entries.
18817 (Rafal Luzynski, Andreas Schwab): Update.
18818
18819 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18820
18821 [BZ #10871]
18822 * NEWS: List the languages which actually use the alternative
18823 months feature in this release. Also explain that "alt_mon" and
18824 "ab_alt_mon" are optional.
18825
18826 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18827
18828 [BZ #22765]
18829 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18830
18831 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18832
18833 * manual/install.texi (Tools for Compilation): Update the newest
18834 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18835 * INSTALL: Regenerated.
18836
18837 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18838
18839 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18840 instead of __builtin_expect.
18841
18842 2018-01-30 Florian Weimer <fweimer@redhat.com>
18843
18844 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18845 data.
18846 * nss/tst-nss-getpwent.c (do_test): Likewise.
18847
18848 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18849
18850 [BZ #10871]
18851 * localedata/locales/hr_HR (mon): Rename to...
18852 (alt_mon): This.
18853 (mon): Import from CLDR (genitive case).
18854 (d_t_fmt): Update the comment.
18855
18856 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18857
18858 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18859 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18860 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18861
18862 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18863
18864 * mach/Versions: Fix version when __mach_host_self_ was added.
18865 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18866 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18867 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18868 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18869 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18870 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18871 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18872 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18873 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18874 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18875 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18876 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18877 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18878 || to respect codestyle.
18879 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18880 (do_test_bz20181): Rename accordingly.
18881 * malloc/malloc.c: Include <assert.h>.
18882 (assert): Do not define.
18883 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18884 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18885 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18886 * sysdeps/mach/hurd/hp-timing.h: New file.
18887 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18888
18889 2018-01-29 Darius Rad <darius@bluespec.com>
18890
18891 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18892
18893 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18894
18895 * sysdeps/init_array/crti.S (.section .init_array): Add
18896 PREINIT_FUNCTION when defined.
18897 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18898 * config.h.in: Regenerate.
18899 * manual/platform.texi: Add RISC-V documenation for
18900 __riscv_flush_icache.
18901 * sysdeps/riscv/__longjmp.S: New file.
18902 * sysdeps/riscv/backtrace.c: Likewise.
18903 * sysdeps/riscv/bits/endian.h: Likewise.
18904 * sysdeps/riscv/bits/setjmp.h: Likewise.
18905 * sysdeps/riscv/bits/wordsize.h: Likewise.
18906 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18907 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18908 * sysdeps/riscv/dl-trampoline.S: Likewise.
18909 * sysdeps/riscv/gccframe.h: Likewise.
18910 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18911 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18912 * sysdeps/riscv/machine-gmon.h: Likewise.
18913 * sysdeps/riscv/memusage.h: Likewise.
18914 * sysdeps/riscv/setjmp.S: Likewise.
18915 * sysdeps/riscv/sys/asm.h: Likewise.
18916 * sysdeps/riscv/tls-macros.h: Likewise.
18917 * sysdeps/riscv/dl-tls.h: New file.
18918 * sysdeps/riscv/libc-tls.c: Likewise.
18919 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18920 * sysdeps/riscv/nptl/tls.h: Likewise.
18921 * sysdeps/riscv/stackinfo.h: Likewise.
18922 * sysdeps/riscv/bits/fenv.h: New file.
18923 * sysdeps/riscv/e_sqrtl.c: Likewise.
18924 * sysdeps/riscv/fpu_control.h: Likewise.
18925 * sysdeps/riscv/math-tests.h: Likewise.
18926 * sysdeps/riscv/nofpu/Implies: Likewise.
18927 * sysdeps/riscv/sfp-machine.h: Likewise.
18928 * sysdeps/riscv/tininess.h: Likewise.
18929 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18930 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18931 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18932 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18933 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18934 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18935 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18936 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18937 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18938 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18939 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18940 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18941 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18942 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18943 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18944 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18945 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18946 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18947 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18948 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18949 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18950 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18951 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18952 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18953 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18954 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18955 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18956 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18957 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18958 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18959 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18960 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18961 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18962 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18963 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18964 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18965 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18966 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18967 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18968 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18969 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18970 * sysdeps/riscv/rvf/math_private.h: Likewise.
18971 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18972 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18973 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18974 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18975 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18976 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18977 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18978 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18979 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18980 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18981 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18982 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18983 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18984 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18985 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18986 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18987 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18988 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18989 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18990 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18991 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18992 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18993 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18994 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18995 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18996 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18997 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18998 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18999 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
19000 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
19001 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
19002 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
19003 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
19004 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
19005 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
19006 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
19007 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
19008 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
19009 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
19010 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
19011 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
19012 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
19013 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
19014 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
19015 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
19016 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
19017 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
19018 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
19019 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
19020 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
19021 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
19022 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
19023 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
19024 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
19025 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
19026 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
19027 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
19028 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
19029 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
19030 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
19031 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
19032 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
19033 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
19034 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
19035 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
19036 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
19037 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
19038 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
19039 * sysdeps/riscv/Implies: New file.
19040 * sysdeps/riscv/Makefile: Likewise.
19041 * sysdeps/riscv/configure: Likewise.
19042 * sysdeps/riscv/configure.ac: Likewise.
19043 * sysdeps/riscv/nptl/Makefile: Likewise.
19044 * sysdeps/riscv/preconfigure: Likewise.
19045 * sysdeps/riscv/rv64/Implies-after: Likewise.
19046 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
19047 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
19048 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
19049 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
19050 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
19051 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
19052 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
19053 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
19054 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
19055 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
19056 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
19057 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
19058 (Config): Likewise.
19059
19060 2018-01-29 Florian Weimer <fweimer@redhat.com>
19061
19062 [BZ #22701]
19063 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19064 libnsl_hidden_proto.
19065 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19066 libnsl_hidden_proto.
19067 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19068 * nis/Makefile (libnsl-routines): Add nss-default only for
19069 build-obsolete-nsl.
19070 * nis/nis_defaults.c (__nis_default_ttl): Add
19071 libnsl_hidden_nolink_def.
19072 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19073 declaration.
19074 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19075 * nis/ypclnt.c (yp_maplist): Likewise.
19076
19077 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19078
19079 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19080 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19081
19082 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19083
19084 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19085 clean -dxfq for git updates when replacing sources.
19086
19087 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19088 --disable-libcilkrts unconditionally, not just for the final GCC
19089 build for Hurd.
19090
19091 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19092 version to 4.15.
19093
19094 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19095
19096 [BZ #10871]
19097 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19098 case).
19099
19100 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19101
19102 [BZ #10871]
19103 * localedata/locales/be_BY (mon): Rename to...
19104 (alt_mon): This, then synchronize with CLDR (nominative case).
19105 (abmon): Rename to...
19106 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19107 (mon): Import from CLDR (genitive case).
19108 (abmon): Likewise.
19109 * localedata/locales/be_BY@latin (mon): Rename to...
19110 (alt_mon): This.
19111 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19112
19113 * localedata/locales/be_BY@latin (lang_name): Reworded to
19114 "biełaruskaja mova".
19115
19116 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19117
19118 [BZ #10871]
19119 * localedata/locales/el_CY (mon): Renamed to...
19120 (alt_mon): This.
19121 (mon): Import from CLDR (genitive case).
19122 * localedata/locales/el_GR: Likewise.
19123
19124 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19125
19126 [BZ #10871]
19127 * localedata/locales/ru_RU (mon): Rename to...
19128 (alt_mon): This.
19129 (abmon): Rename to...
19130 (ab_alt_mon): This.
19131 (mon): Import from CLDR (genitive case).
19132 (abmon): Copy from the old content except the 5th month which is
19133 now in the genitive case, even when abbreviated.
19134 * localedata/locales/ru_UA: Likewise.
19135 * time/tst-strptime.c (day_tests): Add an actual example of
19136 a difference between %b and %Ob in Russian.
19137
19138 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19139
19140 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19141 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19142 a `c' variable.
19143 * resolv/res-close.c: Include <stdlib.h>.
19144 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19145 <sys/wait.h>, <time.h>, <sys/uio.h>.
19146 (NOT_CANCEL_H): Add inclusion guard.
19147 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19148 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19149 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19150 return 0.
19151 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19152 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19153 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19154 instead of void *.
19155 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19156 timer_ptr2id to cast struct timer_node * to void *.
19157 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19158 --disable-libcilkrts to gcc configure.
19159 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19160 and make them the default for now.
19161 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19162 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19163 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19164 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19165 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19166 MACH_IPC_COMPAT.
19167 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19168 __task_terminate would ever return successfully.
19169 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19170 to global scope.
19171 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19172 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19173 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19174 critical section to make code simpler and avoid warning.
19175 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19176 critical section to make code simpler and avoid warning.
19177 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19178 const char * instead of char *.
19179 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19180 __hurd_file_name_split, hurd_file_name_split,
19181 __hurd_directory_name_split, hurd_directory_name_split,
19182 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19183 hurd_file_name_path_lookup): Make lookup function parameter take a
19184 const char *name instead of char *name.
19185 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19186 __hurd_directory_name_split): Likewise.
19187 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19188 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19189 * sysdeps/mach/hurd/check_native.c: New file.
19190 * sysdeps/mach/hurd/check_pf.c: New file.
19191 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19192 (__freeifaddrs): Define macro to freeifaddrs.
19193 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19194 * sysdeps/mach/libmachuser.abilist: New file.
19195 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19196 (do_test_bz20181): Rename accordingly.
19197 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19198 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19199 <sys/mount.h>.
19200 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19201 version only if __USE_EXTERN_INLINES is defined.
19202 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19203 __hurd_sockfail): Likewise.
19204 (_hurd_fd_get): Always declare functions, and provide inline versions
19205 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19206 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19207 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19208 _hurd_port_set): Always declare functions, and provide inline versions
19209 only if __USE_EXTERN_INLINES and _LIBC are defined and
19210 IS_IN(libc).
19211 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19212 _hurd_critical_section_unlock): Likewise.
19213 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19214 * __hurd_threadvar_location): Likewise.
19215 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19216 _hurd_userlink_clear): Likewise.
19217 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19218 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19219 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19220 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19221 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19222 __spin_lock_locked): Likewise.
19223 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19224 __spin_lock_locked): Likewise.
19225 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19226 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19227 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19228 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19229 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19230 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19231 _POSIX_NO_TRUNC): Define to 0.
19232 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19233 check size against PTHREAD_STACK_MIN.
19234 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19235 IS_IN(libpthread)]: Include <sigsetops.h>.
19236 * mach/Makefile (user-interfaces): Add mach/gnumach.
19237 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19238 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19239 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19240 instead of invalid -1.
19241 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19242 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19243 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19244 <net/ppp_defs.h>.
19245
19246 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19247
19248 * hurd/fcntl-internal.h: New file.
19249
19250 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19251
19252 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19253
19254 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19255
19256 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19257
19258 [BZ #22701]
19259 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19260 Build only shared objects.
19261
19262 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19263
19264 * README: Update for hppa.
19265
19266 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19267
19268 * sysdeps/sparc/fpu/libm-test-ulps: Update
19269 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19270
19271 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19272
19273 Revert:
19274
19275 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19276
19277 [BZ #22563]
19278 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19279 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19280 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19281 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19282 to feature_1.
19283
19284 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19285
19286 [BZ #22563]
19287 * bits/types/__cancel_jmp_buf_tag.h: New file.
19288 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19289 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19290 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19291 * nptl/Makefile (headers): Add
19292 bits/types/__cancel_jmp_buf_tag.h.
19293 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19294 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19295 * sysdeps/nptl/pthread.h: Include
19296 <bits/types/__cancel_jmp_buf_tag.h>.
19297 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19298 __cancel_jmp_buf.
19299 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19300
19301 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19302
19303 [BZ #10871]
19304 * localedata/locales/uk_UA (mon): Renamed to...
19305 (alt_mon): This.
19306 (alt_digits): "0" removed and then renamed to...
19307 (mon): This.
19308 (date_fmt): Definition changed not to use the alternative
19309 digits hack.
19310
19311 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19312
19313 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19314 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19315 * elf/elf.h (EF_RISCV_RVC): New define.
19316 (EF_RISCV_FLOAT_ABI): Likewise.
19317 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19318 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19319 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19320 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19321 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19322 define.
19323 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19324
19325 2018-01-25 Andreas Schwab <schwab@suse.de>
19326
19327 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19328 single quotes.
19329 * sysdeps/gnu/configure: Regenerate.
19330 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19331 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19332 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19333 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19334 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19335 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19336 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19337 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19338
19339 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19340
19341 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19342 URL, and run autoconf, make it the default for now.
19343
19344 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19345
19346 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19347 soft-float ColdFire configuration.
19348
19349 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19350 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19351 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19352
19353 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19354 MicroBlaze file.
19355
19356 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19357 ....
19358 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19359 ... here.
19360 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19361 New file.
19362
19363 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19364 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19365 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19366 file.
19367
19368 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19369
19370 [BZ #22742]
19371 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19372 Rename to __reserved and add comment.
19373 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19374 Rename to __reserved.
19375
19376 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19377
19378 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19379 i686-gnu configurations.
19380 (Context.run_builds): Include mig, gnumach and hurd in components
19381 considered.
19382 (Context.checkout): Add mig, gnumach and hurd to components.
19383 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19384 hurd.
19385 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19386 (Config.build): Install gnumach headers, build mig and install
19387 hurd headers for 'gnu' OS.
19388 (Config.install_gnumach_headers): New function.
19389 (Config.install_hurd_headers): Likewise.
19390 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19391 when building for 'gnu' OS.
19392
19393 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19394
19395 * manual/tunables.texi (Hardware Capability Tunables): Fix
19396 spelling.
19397
19398 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19399
19400 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19401 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19402 (ALTMON_11, ALTMON_12): Improve documentation.
19403 * manual/time.texi (strftime): Likewise.
19404
19405 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19406
19407 [BZ #10871]
19408 * localedata/locales/pl_PL: Alternative month names added,
19409 primary month names are genitive now.
19410 * time/tst-strptime.c (day_tests): Actually use a genitive case
19411 of a month name in Polish language.
19412
19413 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19414
19415 [BZ #10871]
19416 * manual/locale.texi: Document ALTMON_1..12 constants for
19417 nl_langinfo. Specify when to use ALTMON instead of MON.
19418 * manual/time.texi (strftime, strptime): Document GNU extension
19419 permitting O modifier with %B and %b. Specify when to use
19420 %OB instead of %B.
19421
19422 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19423
19424 [BZ #10871]
19425 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19426 names, define them as the same as abbreviated month names explicitly.
19427 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19428 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19429 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19430 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19431 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19432 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19433 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19434 _NL_WABALTMON_12): New enum constants.
19435 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19436 wab_alt_mon, and ab_alt_mon_defined members.
19437 (time_output): Output ab_alt_mon and wab_alt_mon members.
19438 (time_read): Read them, initialize them as copies of abmon and wabmon
19439 respectively if they are missing, initialize ab_alt_mon_defined.
19440 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19441 * locale/programs/locfile-kw.h: Regenerate.
19442 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19443 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19444 and ru_RU.UTF-8.
19445 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19446 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19447 (__strftime_internal): Handle %Ob and %Oh formats.
19448 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19449 (__strptime_internal): Handle %Ob and %Oh formats.
19450 * time/tst-strptime.c (day_tests): Add more tests to parse different
19451 forms of month names including the new %Ob format specifier.
19452
19453 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19454
19455 [BZ #10871]
19456 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19457 define them as the same as primary full month names explicitly.
19458 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19459 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19460 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19461 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19462 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19463 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19464 _NL_WALTMON_12): New enum constants.
19465 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19466 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19467 macros.
19468 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19469 walt_mon, and alt_mon_defined members.
19470 (time_output): Output alt_mon and walt_mon members.
19471 (time_read): Read them, initialize them as copies of mon and wmon
19472 respectively if they are missing, initialize alt_mon_defined.
19473 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19474 * locale/programs/locfile-kw.h: Regenerate.
19475 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19476 * localedata/tst-langinfo.c (map): Add tests for the new constants
19477 ALTMON_1 .. ALTMON_12.
19478 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19479 and pl_PL.UTF-8.
19480 * time/strftime_l.c (f_altmonth): New macro.
19481 (__strftime_internal): Handle %OB format.
19482 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19483 (__strptime_internal): Handle %OB format.
19484 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19485 of month names including the new %OB format specifier.
19486
19487 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19488
19489 [BZ #22685]
19490 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19491 from ABORT_TRANSACTION.
19492 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19493 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19494 ABORT_TRANSACTION_IMPL): Likewise.
19495 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19496 Linux code, but remove the code that aborts transactions.
19497
19498 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19499
19500 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19501
19502 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19503
19504 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19505 in date: "2004-14-09" should be "2004-09-14".
19506 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19507 "2003-15-09" should be "2003-09-15".
19508
19509 2018-01-18 Arjun Shankar <arjun@redhat.com>
19510
19511 [BZ #22343]
19512 [BZ #22774]
19513 CVE-2018-6485
19514 CVE-2018-6551
19515 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19516 after padding.
19517 (_int_memalign): check for integer overflow before calling
19518 _int_malloc.
19519 * malloc/tst-malloc-too-large.c: New test.
19520 * malloc/Makefile: Add tst-malloc-too-large.
19521
19522 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19523
19524 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19525 in date: "2017-24-07" should be "2017-07-24".
19526 * localedata/locales/mai_IN: Likewise.
19527 * localedata/locales/mai_NP: Likewise.
19528
19529 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19530
19531 * po/ru.po: Update translations.
19532
19533 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19534
19535 [BZ #22719]
19536 * sysdeps/hppa/backtrace.c: New file.
19537
19538 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19539
19540 [BZ #22715]
19541 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19542 align La_x86_64_retval to VEC_SIZE.
19543
19544 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19545
19546 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19547 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19548
19549 2018-01-16 Florian Weimer <fweimer@redhat.com>
19550
19551 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19552 Move tst-thread-exit-clobber ...
19553 [$(CXX)] (tests-unsupported): ... to here.
19554
19555 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19556
19557 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19558 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19559 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19560 (_dl_aarch64_cap_flags): Update.
19561 (_DL_HWCAP_COUNT): Update.
19562
19563 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19564
19565 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19566 (_DL_HWCAP_LAST): Remove.
19567 (_DL_HWCAP_COUNT): Move to ...
19568 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19569 (_DL_HWCAP_COUNT): ... here.
19570
19571 2018-01-16 Florian Weimer <fweimer@redhat.com>
19572
19573 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19574 mode with GNU extensions.
19575
19576 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19577
19578 * elf/elf.h (NT_ARM_SVE): Define.
19579
19580 2018-01-15 Florian Weimer <fweimer@redhat.com>
19581
19582 [BZ #22636]
19583 * nptl/tst-minstack-throw.cc: New file.
19584 * nptl/Makefile (tests): Add tst-minstack-throw.
19585 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19586 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19587
19588 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19589
19590 * scripts/build-many-glibcs.py (Context.checkout): Default
19591 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19592 version to 1.1.0.
19593
19594 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19595
19596 [BZ #22707]
19597 * elf/elf.h (DF_1_STUB): Define.
19598 (DF_1_PIE): Define.
19599
19600 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19601
19602 [BZ #22697]
19603 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19604 Do not add 0.5 to integer or out-of-range arguments.
19605
19606 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19607
19608 * po/bg.po: Update translations.
19609 * po/cs.po: Likewise.
19610 * po/de.po: Likewise.
19611 * po/ko.po: Likewise.
19612 * po/pl.po: Likewise.
19613 * po/sv.po: Likewise.
19614 * po/uk.po: Likewise.
19615 * po/vi.po: Likewise.
19616
19617 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19618
19619 * aarch64/start.S (_start): Use __wrap_main.
19620 (__wrap_main): New local symbol.
19621
19622 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19623
19624 [BZ #22679]
19625 CVE-2018-1000001
19626 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19627 generic_getcwd if the path returned by getcwd syscall is not absolute.
19628 * io/tst-getcwd-abspath.c: New test.
19629 * io/Makefile (tests): Add tst-getcwd-abspath.
19630
19631 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19632
19633 * malloc/malloc.c (malloc_consolidate): Add size check.
19634
19635 2018-01-12 Florian Weimer <fweimer@redhat.com>
19636
19637 * support/write_message.c (write_message): Preserve errno.
19638 * support/check.c (print_failure): Likewise.
19639 * support/support_test_verify_impl.c (support_test_verify_impl):
19640 Likewise.
19641 * support/support_test_compare_failure.c
19642 (support_test_compare_failure): Likewise.
19643
19644 2018-01-12 Florian Weimer <fweimer@redhat.com>
19645
19646 [BZ #22701]
19647 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19648 Prevent installation of libnsl.so.
19649 (libnsl-inhibit-o): Do not build (or install) static libraries.
19650
19651 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19652
19653 [BZ #22657]
19654 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19655 before the day number which may produce a double space.
19656 (date_fmt): Likewise.
19657
19658 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19659
19660 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19661 instead of fegetenv.
19662
19663 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19664
19665 [BZ #22702]
19666 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19667 comment to say exceptions are discarded.
19668 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19669 __fegetenv.
19670 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19671 be enabled.
19672
19673 2018-01-11 Florian Weimer <fweimer@redhat.com>
19674
19675 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19676 and error message.
19677
19678 2018-01-11 Florian Weimer <fweimer@redhat.com>
19679
19680 [BZ #22636]
19681 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19682 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19683
19684 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19685
19686 [BZ #22693]
19687 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19688 negative arguments in test for NaN or infinity argument.
19689
19690 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19691
19692 * po/libc.pot: Regenerate.
19693
19694 2018-01-10 Florian Weimer <fweimer@redhat.com>
19695
19696 [BZ #22636]
19697 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19698 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19699
19700 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19701
19702 * hurd/hurd/fd.h: Include <fcntl.h>
19703 (__hurd_at_flags): New function.
19704 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19705 with call to __hurd_at_flags.
19706 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19707 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19708 __faccessat
19709 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19710 (__access_noerrno): Use __faccessat_common instead of access_common.
19711 (__access): Likewise.
19712 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19713 with a call to __faccessat.
19714 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19715 (__faccessat_common): ... this. Move implementation of __access into it when
19716 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19717 reauthenticate_cwdir_at helper to implement AT mechanism.
19718 (__faccessat_noerrno): New function, just calls __faccessat_common.
19719 (__faccessat): New function, just calls __faccessat_common.
19720 (faccessat): Define weak alias.
19721
19722 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19723
19724 [BZ #22691]
19725 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19726 (CFLAGS-s_fmaxmagl.c): New variable.
19727 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19728
19729 [BZ #22690]
19730 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19731 long int for arguments of possibly overflowing addition or
19732 subtraction.
19733 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19734
19735 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19736
19737 [BZ #22688]
19738 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19739 (CFLAGS-e_remainderl.c): New variable.
19740
19741 [BZ #22687]
19742 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19743 variable.
19744 (CFLAGS-s_cacoshl.c): Likewise.
19745 (CFLAGS-s_casinhl.c): Likewise.
19746 (CFLAGS-s_catanl.c): Likewise.
19747 (CFLAGS-s_catanhl.c): Likewise.
19748 (CFLAGS-s_cexpl.c): Likewise.
19749 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19750 (CFLAGS-s_csinhl.c): Likewise.
19751 (CFLAGS-s_clogl.c): Likewise.
19752 (CFLAGS-s_clog10l.c): Likewise.
19753 (CFLAGS-s_csinl.c): Likewise.
19754 (CFLAGS-s_csqrtl.c): Likewise.
19755
19756 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19757 2017-01-09 Svante Signell <svante.signell@gmail.com>
19758
19759 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19760 (_hurd_exec_paths): New function.
19761 * hurd/hurd.h (_hurd_exec): Deprecate function.
19762 (_hurd_exec_paths): Declare function.
19763 * hurd/Versions: Export _hurd_exec_paths.
19764 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19765 (__execve): Use __getcwd to build absolute path, and use
19766 _hurd_exec_paths instead of _hurd_exec.
19767 * sysdeps/mach/hurd/spawni.c: Likewise.
19768 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19769 _hurd_exec.
19770
19771 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19772
19773 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19774 test instead of failing in case of ENOENT returned by posix_openpt.
19775
19776 2018-01-08 Florian Weimer <fweimer@redhat.com>
19777
19778 resolv: Support binary labels in test framework.
19779 * support/resolv_test.c (struct to_be_freed): Remove.
19780 (struct compressed_name): New.
19781 (allocate_compressed_name, ascii_tolower)
19782 (compare_compressed_name): New functions.
19783 (struct resolv_response_builder): Update type of
19784 compression_offsets for use with tsearch. Rempve to_be_freed.
19785 (response_push_pointer_to_free): Remove function.
19786 (resolv_response_add_name): Rewrite using struct compressed_name
19787 and tsearch instead of hsearch_r.
19788 (response_builder_allocate): Remove initialization of
19789 compression_offsets.
19790 (response_builder_free): Update for removal of to_be_freed. Use
19791 tdestroy instead of hdestroy_r.
19792 * resolv/Makefile (tests): Add tst-resolv-binary.
19793 (tst-resolv-binary): Link with -lresolv -lpthread.
19794
19795 2018-01-08 Florian Weimer <fweimer@redhat.com>
19796
19797 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19798 time. Pass positive flag instead of negative flag to
19799 support_test_compare_failure.
19800 (support_test_compare_failure): Change negative parameter to
19801 positive.
19802 * support/support_test_compare_failure.c (report)
19803 (support_test_compare_failure): Likewise.
19804 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19805 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19806
19807 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19808
19809 [BZ #22637]
19810 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19811 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19812 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19813 stacksize.
19814 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19815
19816 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19817
19818 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19819 Add s_sincosf-sse2 and s_sincosf-fma.
19820 (CFLAGS-s_sincosf-fma.c): New.
19821 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19822 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19823 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19824 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19825 __sincosf is defined.
19826
19827 2018-01-08 Florian Weimer <fweimer@redhat.com>
19828
19829 * nptl/tst-thread-exit-clobber.cc: New file.
19830 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19831 C++11 mode.
19832 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19833 (tests): Add tst-thread-exit-clobber.
19834 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19835
19836 2018-01-08 Florian Weimer <fweimer@redhat.com>
19837
19838 * support/check.h (support_static_assert): Define.
19839 (TEST_COMPARE): Use it.
19840
19841 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19842
19843 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19844 [!__RLIM_T_MATCHES_RLIM64_T]
19845 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19846 __getrlimit64. Add libc_hidden_weak.
19847
19848 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19849
19850 * elf/elf.h (R_RISCV_NONE): New define.
19851 (R_RISCV_32): Likewise.
19852 (R_RISCV_64): Likewise.
19853 (R_RISCV_RELATIVE): Likewise.
19854 (R_RISCV_COPY): Likewise.
19855 (R_RISCV_JUMP_SLOT): Likewise.
19856 (R_RISCV_TLS_DTPMOD32): Likewise.
19857 (R_RISCV_TLS_DTPMOD64): Likewise.
19858 (R_RISCV_TLS_DTPREL32): Likewise.
19859 (R_RISCV_TLS_DTPREL64): Likewise.
19860 (R_RISCV_TLS_TPREL32): Likewise.
19861 (R_RISCV_TLS_TPREL64): Likewise.
19862 * Makerules (make-link-multidir): Make directories before linking into
19863 them.
19864 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19865 define.
19866 (VDSO_HASH_LINUX_4_15): Likewise.
19867 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19868 in subdirectories of lib.
19869 * nptl/Makefile (/librt.so): Always depend on
19870 "$(shared-thread-library)".
19871
19872 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19873
19874 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19875 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19876 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19877 (___tls_get_addr).
19878 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19879 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19880 "-O2 -march=i686".
19881 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19882 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19883 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19884 * sysdeps/gnu/glob-lstat-compat.c: New file.
19885 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19886 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19887
19888 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19889
19890 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19891 Reserve 16 chars to reloc_addr before calling _itoa_word.
19892
19893 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19894
19895 [BZ #22678]
19896 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19897 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19898
19899 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19900 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19901
19902 * resource/tst-getrlimit.c: Add copyright header.
19903
19904 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19905 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19906
19907 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19908 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19909 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19910 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19911 instead.
19912 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19913 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19914 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19915 RLIM64_INFINITY): Fix values to match the kernel ones.
19916 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19917 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19918 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19919 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19920 getrlimit64@@GLIBC_2_27.
19921 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19922 and setrlimit64.
19923 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19924 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19925 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19926 setrlimit, getrlimit64 and setrlimit64.
19927
19928 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19929
19930 [BZ #22648]
19931 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19932 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19933
19934 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19935
19936 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19937 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19938 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19939
19940 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19941
19942 [BZ #15479]
19943 [BZ #22666]
19944 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19945 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19946
19947 [BZ #15479]
19948 [BZ #22665]
19949 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19950 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19951 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19952 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19953
19954 2018-01-04 Florian Weimer <fweimer@redhat.com>
19955
19956 [BZ #22667]
19957 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19958 Align the stack before calling exit.
19959 * stdlib/tst-makecontext-align.c: New file.
19960 * stdlib/Makefile (tests): Add tst-makecontext-align.
19961
19962 2018-01-04 Florian Weimer <fweimer@redhat.com>
19963
19964 Add support for calling dlvsym from libc.so.
19965 * include/dlfcn.h (__libc_dlvsym): Declare.
19966 * elf/Makefile (tests-static-internal): Add
19967 tst-libc_dlvsym-static.
19968 (tests-internal): Add tst-libc_dlvsym.
19969 (modules-names): Add tst-libc_dlvsym-dso.
19970 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19971 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19972 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19973 object tst-libc_dlvsym-dso.so needs to be built before running
19974 these tests.
19975 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19976 * elf/Versions: Export __libc_dlvsym.
19977 * elf/dl-libc.c (struct do_dlvsym_args): New.
19978 (do_dlvsym, __libc_dlvsym): New functions.
19979 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19980 (_dl_open_hook2): New variable.
19981 (__libc_register_dl_open_hook): Set it.
19982 * elf/tst-libc_dlvsym-dso.c: New file.
19983 * elf/tst-libc_dlvsym-static.c: Likewise.
19984 * elf/tst-libc_dlvsym.c: Likewise.
19985 * elf/tst-libc_dlvsym.h: Likewise.
19986
19987 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19988
19989 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19990 include <sys/mount.h>.
19991
19992 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19993
19994 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19995 Add __NO_MATH_ERRNO__ check.
19996
19997 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19998
19999 * sysdeps/mips/mips32/libm-test-ulps: Update.
20000 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
20001
20002 2018-01-02 Florian Weimer <fweimer@redhat.com>
20003
20004 * misc/tst-pselect.c: Add copyright header.
20005
20006 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20007
20008 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
20009 comment.
20010 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
20011 comment.
20012 (settrlimit): Rename into setrlimit.
20013 (__sttrlimit): Rename into __setrlimit.
20014
20015 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
20016 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
20017 never defined in that case.
20018
20019 2018-01-02 Joseph Myers <joseph@codesourcery.com>
20020
20021 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
20022
20023 * sysdeps/arm/libm-test-ulps: Update.
20024
20025 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
20026 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
20027
20028 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20029
20030 * NEWS: Add cosf and sincosf to list of optimized functions.
20031
20032 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
20033
20034 [BZ #22660]
20035 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
20036 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
20037 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
20038 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
20039
20040 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
20041
20042 [BZ #22433]
20043 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
20044
20045 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
20046 making a copy of it.
20047
20048 2018-01-01 Joseph Myers <joseph@codesourcery.com>
20049
20050 * manual/texinfo.tex: Update to version 2017-12-26.21 with
20051 trailing whitespace removed.
20052 * scripts/config.guess: Update to version 2018-01-01.
20053 * scripts/config.sub: Update to version 2018-01-01.
20054 * scripts/move-if-change: Update from gnulib.
20055
20056 * NEWS: Update copyright dates.
20057 * catgets/gencat.c (print_version): Likewise.
20058 * csu/version.c (banner): Likewise.
20059 * debug/catchsegv.sh: Likewise.
20060 * debug/pcprofiledump.c (print_version): Likewise.
20061 * debug/xtrace.sh (do_version): Likewise.
20062 * elf/ldconfig.c (print_version): Likewise.
20063 * elf/ldd.bash.in: Likewise.
20064 * elf/pldd.c (print_version): Likewise.
20065 * elf/sotruss.sh: Likewise.
20066 * elf/sprof.c (print_version): Likewise.
20067 * iconv/iconv_prog.c (print_version): Likewise.
20068 * iconv/iconvconfig.c (print_version): Likewise.
20069 * locale/programs/locale.c (print_version): Likewise.
20070 * locale/programs/localedef.c (print_version): Likewise.
20071 * login/programs/pt_chown.c (print_version): Likewise.
20072 * malloc/memusage.sh (do_version): Likewise.
20073 * malloc/memusagestat.c (print_version): Likewise.
20074 * malloc/mtrace.pl: Likewise.
20075 * manual/libc.texinfo: Likewise.
20076 * nptl/version.c (banner): Likewise.
20077 * nscd/nscd.c (print_version): Likewise.
20078 * nss/getent.c (print_version): Likewise.
20079 * nss/makedb.c (print_version): Likewise.
20080 * posix/getconf.c (main): Likewise.
20081 * scripts/test-installation.pl: Likewise.
20082 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20083
20084 * All files with FSF copyright notices: Update copyright dates
20085 using scripts/update-copyrights.
20086 * locale/programs/charmap-kw.h: Regenerated.
20087 * locale/programs/locfile-kw.h: Likewise.
20088
20089 2017-12-31 Zack Weinberg <zackw@panix.com>
20090
20091 * libio/bits/libio-ldbl.h: Correct check for improper
20092 inclusion. Add own multiple include guard.
20093
20094 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20095 Dmitry V. Levin <ldv@altlinux.org>
20096
20097 [BZ #22625]
20098 CVE-2017-16997
20099 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20100 string token expansion. Check for NULL pointer or empty string possibly
20101 returned by expand_dynamic_string_token.
20102 (decompose_rpath): Check for empty path after dynamic string
20103 token expansion.
20104
20105 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20106
20107 [BZ #22433]
20108 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20109
20110 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20111 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20112 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20113 and PTRACE_SYSCALL.
20114 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20115 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20116 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20117 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20118 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20119 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20120
20121 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20122 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20123 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20124 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20125 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20126 bits/ptrace-shared.h.
20127 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20128 <bits/ptrace-shared.h>.
20129 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20130 __ptrace_peeksiginfo_flags, ptrace): Remove.
20131 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20132 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20133 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20134 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20135 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20136
20137 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20138
20139 [BZ #17804]
20140 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20141 end of the loop. Improve comments.
20142
20143 2017-12-29 Zack Weinberg <zackw@panix.com>
20144
20145 [BZ #22615]
20146 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20147 might be set on success.
20148
20149 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20150
20151 [BZ #22611]
20152 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20153 is unchanged on success.
20154
20155 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20156
20157 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20158 updated.
20159 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20160 expand_dynamic_string_token): Likewise.
20161 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20162 is_path argument.
20163
20164 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20165 contains ':'.
20166
20167 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20168 is set and name contains ':', and all code depending on these checks.
20169
20170 2017-12-24 Zack Weinberg <zackw@panix.com>
20171
20172 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20173 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20174 respectively.
20175 * libio/libio.h: Rename the original version of this file to
20176 libio/bits/libio.h. Error out if not included by stdio.h or the
20177 stub libio.h.
20178 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20179 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20180 if not included by bits/libio.h or the stub _G_config.h.
20181 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20182 sysdeps/unix/sysv/linux/bits. Error out if not included by
20183 bits/libio.h or the stub _G_config.h.
20184 * libio/stdio.h: Include bits/libio.h, not libio.h.
20185 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20186 well as libio.h and _G_config.h.
20187
20188 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20189 * libio/strfile.h, stdio-common/vfscanf.c
20190 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20191 Include stdio.h, not _G_config.h nor libio.h.
20192 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20193 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20194
20195 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20196
20197 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20198
20199 [BZ #22347]
20200 * stdlib/getrandom.c (getrandom): Fix comment.
20201 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20202
20203 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20204
20205 [BZ #21161]
20206 * manual/arith.texi (strtoul): Fix a typo.
20207
20208 [BZ #22596]
20209 * manual/arith.texi (finite): Fix the description of the return
20210 value.
20211
20212 2017-12-22 Eric Blake <ebb9@byu.net>
20213
20214 Avoid gcc warnings on cygwin
20215 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20216 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20217 Avoid unused variable.
20218
20219 2017-12-22 Florian Weimer <fweimer@redhat.com>
20220
20221 * io/Makefile (routines): Add copy_file_range.
20222 (tests): Add tst-copy_file_range.
20223 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20224 * io/Versions (GLIBC_2.27): Export copy_file_range.
20225 * io/copy_file_range-compat.c: New file.
20226 * io/copy_file_range.c: Likewise.
20227 * io/tst-copy_file_range-compat.c: Likewise.
20228 * io/tst-copy_file_range.c: Likewise.
20229 * manual/llio.texi (Copying File Data): New section.
20230 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20231 * support/Makefile (libsupport-routines): Add support-xfstat,
20232 xftruncate, xlseek.
20233 * support/support-xfstat.c: New file.
20234 * support/xftruncate.c: Likewise.
20235 * support/xlseek.c: Likewise.
20236 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20237 * sysdeps/unix/sysv/linux/**.abilist: Update.
20238 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20239
20240 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20241
20242 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20243 disable-multi-arch variant to aarch64-linux-gnu.
20244
20245 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20246
20247 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20248 trailing whitespace removed.
20249 * scripts/config.guess: Update to version 2017-12-17.
20250 * scripts/config.sub: Update to version 2017-11-23.
20251 * scripts/install-sh: Update to version 2017-09-23.17.
20252 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20253
20254 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20255
20256 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20257 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20258 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20259 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20260 * sysdeps/tile/crtn.S: Likewise.
20261 * sysdeps/tile/dl-start.S (_start): Likewise.
20262 * sysdeps/tile/dl-trampoline.S: Likewise.
20263 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20264 * sysdeps/tile/start.S (_start): Likewise.
20265 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20266 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20267 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20268 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20269 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20270 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20271 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20272
20273 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20274 comment.
20275 * sysdeps/tile/preconfigure: Remove tilegx folder.
20276 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20277 * sysdeps/tile/Implies: ... here.
20278 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20279 * sysdeps/tile/Makefile: ... here.
20280 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20281 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20282 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20283 * sysdeps/tile/bits/wordsize.h: ... here.
20284 * sysdeps/tile/tilegx/*: Move to ...
20285 * sysdeps/tile/*: ... here.
20286 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20287 * sysdeps/tile/tilegx32/Implies: ... here.
20288 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20289 * sysdeps/tile/tilegx64/Implies: ... here.
20290 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20291 to ...
20292 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20293 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20294 * sysdeps/unix/sysv/linux/tile/*: ... here.
20295 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20296 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20297 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20298 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20299
20300 * README: Remove tilepro-*-linux-gnu from supported architecture.
20301 * scripts/build-many-glibcs.py: Likewise.
20302 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20303 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20304 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20305 elf_machine_matches_host, elf_machine_dynamic,
20306 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20307 howto, elf_machine_rela): Likewise.
20308 * sysdeps/tile/dl-start.S (_start): Likewise.
20309 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20310 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20311 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20312 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20313 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20314 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20315 Likewise.
20316 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20317 * sysdeps/tile/preconfigure: Likewise.
20318 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20319 POINTER_CHK_GUARD): Likewise.
20320 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20321 * sysdeps/tile/start.S (_start): Likewise.
20322 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20323 Likewise.
20324 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20325 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20326 CMOVNEZ): Remove.
20327 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20328 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20329 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20330 Likewise.
20331 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20332 * sysdeps/tile/tilepro/Implies: Remove file.
20333 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20334 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20335 * sysdeps/tile/tilepro/memchr.c: Likewise.
20336 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20337 * sysdeps/tile/tilepro/memset.c: Likewise.
20338 * sysdeps/tile/tilepro/memusage.h: Likewise.
20339 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20340 * sysdeps/tile/tilepro/strchr.c: Likewise.
20341 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20342 * sysdeps/tile/tilepro/strlen.c: Likewise.
20343 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20344 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20345 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20346 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20347 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20348 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20349 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20350 Likewise.
20351 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20352 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20353 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20354 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20355 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20356 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20357 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20358 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20359 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20360 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20361 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20362 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20363 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20364 tilepro mention in comment.
20365
20366 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20367 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20368 * nptl/pthread_join_common.c: New file: common function used on
20369 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20370 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20371 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20372 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20373 (cleanup): Move definition to pthread_join_common.c.
20374 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20375 Remove superflous checks.
20376 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20377 Likewise.
20378
20379 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20380
20381 * sysdeps/aarch64/libm-test-ulps: Update.
20382
20383 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20384
20385 * sysdeps/aarch64/memset.S (MEMSET): Define.
20386
20387 2017-12-20 Florian Weimer <fweimer@redhat.com>
20388
20389 [BZ #22635]
20390 nptl: Provide full implementation of pthread_self in libc.so.
20391 * nptl/Makefile (routines): Add pthread_self.
20392 (libpthread-routines): Replace pthread_self with
20393 compat-pthread_self.
20394 * nptl/forward.c (pthread_self): Remove.
20395 * nptl/nptl-init.c (pthread_functions): Do not initialize
20396 ptr_pthread_self.
20397 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20398 * nptl/compat-pthread_self.c: New file.
20399 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20400 Remove ptr_pthread_self.
20401
20402 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20403
20404 * posix/regcomp.c: Fix spelling in comments.
20405 * posix/regex.h: Likewise.
20406 * posix/regex_internal.c: Likewise.
20407 * posix/regexec.c: Likewise.
20408
20409 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20410
20411 [BZ #22377]
20412 * math/Makefile [C++] (tests): Add test for iseqsig.
20413 * math/math.h [C++] (iseqsig): New implementation, which does
20414 not rely on __MATH_TG/__builtin_types_compatible_p.
20415 * math/test-math-iseqsig.cc: New file.
20416 * sysdeps/powerpc/powerpc64le/Makefile
20417 (CFLAGS-test-math-iseqsig.cc): New variable.
20418
20419 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20420
20421 * elf/dl-load.c (is_trusted_path): Remove.
20422 (fillin_rpath): Remove check_trusted argument and its use,
20423 all callers changed.
20424
20425 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20426
20427 [BZ #22630]
20428 * Makeconfig (link-pie-before-libc): Replace -pie with
20429 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20430 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20431 (tst-dlopen-aout-no-pie): New.
20432 (LDFLAGS-tst-prelink): Removed.
20433 (tst-prelink-no-pie): New.
20434 (LDFLAGS-tst-main1): Removed.
20435 (tst-main1-no-pie): New.
20436 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20437 (tst-gmon-no-pie): New.
20438
20439 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20440
20441 * manual/install.texi: Document that --enable-static-pie
20442 implies PIE.
20443 * INSTALL: Regenerated.
20444
20445 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20446
20447 [BZ #21309]
20448 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20449 unsigned.
20450
20451 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20452
20453 Revert:
20454
20455 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20456
20457 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20458
20459 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20460
20461 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20462 <errno.h>. Include "eexp.tbl".
20463 (half): New constant.
20464 (one): Likewise.
20465 (__ieee754_exp): Rewrite.
20466 (__slowexp): Remove prototype.
20467 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20468 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20469 * sysdeps/i386/fpu/slowexp.c: Likewise.
20470 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20471 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20472 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20473 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20474 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20475 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20476 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20477 comment.
20478 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20479 (CPPFLAGS-slowexp.c): Remove variable.
20480 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20481 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20482 (CFLAGS-slowexp-fma.c): Remove variable.
20483 (CFLAGS-slowexp-fma4.c): Likewise.
20484 (CFLAGS-slowexp-avx.c): Likewise.
20485 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20486 define as macro.
20487 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20488 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20489 * math/Makefile (type-double-routines): Remove slowexp.
20490 * manual/probes.texi (slowexp_p6): Remove.
20491 (slowexp_p32): Likewise.
20492
20493 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20494
20495 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20496 arithmetic.
20497
20498 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20499
20500 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20501
20502 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20503
20504 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20505
20506 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20507 <errno.h>. Include "eexp.tbl".
20508 (half): New constant.
20509 (one): Likewise.
20510 (__ieee754_exp): Rewrite.
20511 (__slowexp): Remove prototype.
20512 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20513 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20514 * sysdeps/i386/fpu/slowexp.c: Likewise.
20515 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20516 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20517 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20518 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20519 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20520 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20521 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20522 comment.
20523 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20524 (CPPFLAGS-slowexp.c): Remove variable.
20525 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20526 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20527 (CFLAGS-slowexp-fma.c): Remove variable.
20528 (CFLAGS-slowexp-fma4.c): Likewise.
20529 (CFLAGS-slowexp-avx.c): Likewise.
20530 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20531 define as macro.
20532 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20533 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20534 * math/Makefile (type-double-routines): Remove slowexp.
20535 * manual/probes.texi (slowexp_p6): Remove.
20536 (slowexp_p32): Likewise.
20537
20538 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20539 James Clarke <jrtc27@jrtc27.com>
20540
20541 [BZ #22603]
20542 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20543 addition.
20544
20545 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20546
20547 [BZ #22605]
20548 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20549 code.
20550
20551 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20552
20553 [BZ #22563]
20554 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20555 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20556 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20557 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20558 to feature_1.
20559
20560 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20561
20562 [BZ #22563]
20563 * bits/types/__cancel_jmp_buf_tag.h: New file.
20564 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20565 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20566 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20567 * nptl/Makefile (headers): Add
20568 bits/types/__cancel_jmp_buf_tag.h.
20569 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20570 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20571 * sysdeps/nptl/pthread.h: Include
20572 <bits/types/__cancel_jmp_buf_tag.h>.
20573 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20574 __cancel_jmp_buf.
20575 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20576
20577 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20578
20579 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20580 --enable-static-pie variants to x86_64, x32 and i686.
20581
20582 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20583
20584 [BZ #22631]
20585 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20586 argument for attrubutes. All callers changed.
20587 (__inline_mathop1): Likewise. All callers changed.
20588 (__inline_mathop): Likewise. All callers changed.
20589 [__USE_MISC] (scalbn): Use __inline_forward instead of
20590 __inline_forward_c.
20591 [__USE_ISOC99] (scalbln): Likewise.
20592 [__USE_ISOC99] (nearbyint): Likewise.
20593 [__USE_ISOC99] (lrint): Likewise.
20594 [__USE_MISC] (scalbnf): Likewise.
20595 [__USE_ISOC99] (scalblnf): Likewise.
20596 [__USE_ISOC99] (nearbyintf): Likewise.
20597 [__USE_ISOC99] (lrintf): Likewise.
20598 [__USE_MISC] (scalbnl): Likewise.
20599 [__USE_ISOC99] (scalblnl): Likewise.
20600 [__USE_ISOC99] (nearbyintl): Likewise.
20601 [__USE_ISOC99] (lrintl): Likewise.
20602 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20603 __inline_mathop and __m81_defun changed.
20604
20605 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20606 CPU or FPU for ARM hard-float configurations.
20607
20608 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20609
20610 * nptl/tst-attr3.c: Include <libc-diag.h>.
20611 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20612
20613 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20614
20615 * string/tester.c (test_strncat): Also disable -Warray-bounds
20616 warnings for two tests.
20617
20618 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20619
20620 [BZ #22614]
20621 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20622 $(cc-pie-default) == yes.
20623 * config.make.in (cc-pie-default): New.
20624 * configure.ac (libc_cv_pie_default): Renamed to ...
20625 (libc_cv_cc_pie_default): This.
20626 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20627 * configure: Regenerated.
20628
20629 2017-12-18 Florian Weimer <fweimer@redhat.com>
20630
20631 [BZ #20204]
20632 ld.so: Harden dl-libc/libdl hooks.
20633 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20634 (rtld_active): New function.
20635 * dlfcn/dladdr.c (__dladdr): Call it.
20636 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20637 * dlfcn/dlclose.c (__dlcose): Likewise.
20638 * dlfcn/dlerror.c (__dlerror): Likewise.
20639 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20640 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20641 * dlfcn/dlopen.c (__dlopen): Likewise.
20642 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20643 * dlfcn/dlsym.c (__dlsym): Likewise.
20644 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20645 * libio/vtables.c (_IO_vtable_check): Likewise.
20646 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20647 (__libc_dlclose): Likewise.
20648 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20649 assignment.
20650
20651 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20652
20653 [BZ #22446]
20654 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20655 buffers for readlink input and output.
20656
20657 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20658
20659 [BZ #22624]
20660 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20661 inhibit_stack_protector.
20662
20663 [BZ #22624]
20664 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20665 inhibit_stack_protector.
20666
20667 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20668
20669 [BZ #22627]
20670 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20671 code and invocation.
20672
20673 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20674
20675 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20676
20677 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20678
20679 [BZ #22505]
20680 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20681
20682 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20683
20684 * sysdeps/s390/fpu/libm-test-ulps: Update.
20685
20686 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20687
20688 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20689
20690 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20691
20692 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20693 constants to s_sincosf.h file.
20694 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20695 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20696 implementation.
20697 * sysdeps/ieee754/flt-32/s_sincosf.h:
20698 New file.
20699
20700 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20701
20702 [BZ #14681]
20703 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20704 before mtrace.
20705
20706 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20707
20708 [BZ #19574]
20709 * INSTALL: Regenerated.
20710 * Makeconfig (real-static-start-installed-name): New.
20711 (pic-default): Updated for --enable-static-pie.
20712 (pie-default): New for --enable-static-pie.
20713 (default-pie-ldflag): Likewise.
20714 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20715 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20716 Replace $(static-start-installed-name) with
20717 $(real-static-start-installed-name).
20718 (+prectorT): Updated for --enable-static-pie.
20719 (+postctorT): Likewise.
20720 (CFLAGS-.o): Add $(pie-default).
20721 (CFLAGS-.op): Likewise.
20722 * NEWS: Mention --enable-static-pie.
20723 * config.h.in (ENABLE_STATIC_PIE): New.
20724 * configure.ac (--enable-static-pie): New configure option.
20725 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20726 (have-static-pie): Likewise.
20727 Enable static PIE if linker supports --no-dynamic-linker.
20728 (ENABLE_STATIC_PIE): New AC_DEFINE.
20729 (enable-static-pie): New LIBC_CONFIG_VAR.
20730 * configure: Regenerated.
20731 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20732 gr$(start-installed-name) for --enable-static-pie.
20733 (extra-objs): Likewise.
20734 (install-lib): Likewise.
20735 (extra-objs): Add static-reloc.o and static-reloc.os
20736 ($(objpfx)$(start-installed-name)): Also depend on
20737 $(objpfx)static-reloc.o.
20738 ($(objpfx)r$(start-installed-name)): New.
20739 ($(objpfx)g$(start-installed-name)): Also depend on
20740 $(objpfx)static-reloc.os.
20741 ($(objpfx)gr$(start-installed-name)): New.
20742 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20743 in libc.a.
20744 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20745 initimage.
20746 * csu/static-reloc.c: New file.
20747 * elf/Makefile (routines): Add dl-reloc-static-pie.
20748 (elide-routines.os): Likewise.
20749 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20750 (tst-tls1-static-non-pie-no-pie): New.
20751 * elf/dl-reloc-static-pie.c: New file.
20752 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20753 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20754 STATIC_PIE_BOOTSTRAP.
20755 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20756 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20757 (tests-static): Likewise.
20758 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20759 (tst-gmon-static-no-pie): New.
20760 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20761 (CRT-tst-gmon-static-pie): Likewise.
20762 (tst-gmon-static-pie-ENV): Likewise.
20763 (tests-special): Likewise.
20764 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20765 (clean-tst-gmon-static-pie-data): Likewise.
20766 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20767 * gmon/tst-gmon-static-pie.c: New file.
20768 * manual/install.texi: Document --enable-static-pie.
20769 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20770 (_dl_get_dl_main_map): Likewise.
20771 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20772 * sysdeps/x86_64/configure.ac: Likewise.
20773 * sysdeps/i386/configure: Regenerated.
20774 * sysdeps/x86_64/configure: Likewise.
20775 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20776 (ASFLAGS-.op): Likewise.
20777
20778 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20779
20780 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20781 * posix/tst-mmap-offset.c (fname): Use /tmp.
20782 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20783
20784 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20785
20786 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20787
20788 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20789
20790 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20791 errno.
20792
20793 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20794
20795 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20796 --with-float=hard for arm-linux-gnueabihf configurations.
20797
20798 [BZ #14121]
20799 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20800 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20801 ($(mo-installed)): Use $(objpfx)%.mo.
20802 (realclean): Remove rule.
20803
20804 * po/Makefile (linguas): Remove rule and dependencies.
20805 (linguas.mo): Likewise.
20806 (.PHONY): Do not depend on linguas and linguas.mo.
20807 (podir): Remove variable.
20808 (pofiles): Likewise.
20809 [$(pofiles)] (%.po): Remove rule.
20810
20811 * sysdeps/sparc/sparc32/Makefile
20812 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20813 start-of-line whitespace in argument of echo.
20814 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20815 with whitespace. Generate __wrap_.udiv alias.
20816 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20817 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20818 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20819 * sysdeps/sparc/sparc32/urem.S: Likewise.
20820
20821 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20822
20823 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20824 for aligned inputs.
20825
20826 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20827
20828 * benchtests/bench-strcmp.c: Print output in JSON format.
20829
20830 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20831
20832 2017-12-14 Florian Weimer <fweimer@redhat.com>
20833
20834 [BZ #22607]
20835 CVE-2017-1000409
20836 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20837 the expanded path string.
20838
20839 2017-12-14 Florian Weimer <fweimer@redhat.com>
20840
20841 [BZ #22606]
20842 CVE-2017-1000408
20843 * elf/dl-load.c (system_dirs): Update comment.
20844 (nsystem_dirs_len): Use array_length.
20845 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20846
20847 2017-12-14 Florian Weimer <fweimer@redhat.com>
20848
20849 Simplify compiling most of support/ outside of glibc.
20850 * support/check_addrinfo.c: Include <string.h>.
20851 * support/check_dns_packet.c: Likewise.
20852 * support/check_hostent.c: Likewise.
20853 * support/support_can_chroot.c: Include <support/xunistd.h>.
20854 * support/support_format_addrinfo.c: Include <stdlib.h>
20855 * support/support_format_dns_packet.c: Include <stdbool.h>.
20856 * support/support_format_hostent.c: Include <stdlib.h>.
20857 * support/support_format_netent.c: Likewise.
20858 * support/support_write_string.c: Include <support/xunistd.h>.
20859 * support/xdlfcn.c: Include <stddef.h>.
20860
20861 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20862
20863 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20864
20865 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20866 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20867
20868 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20869 (sysdeps_routines): Add memset-niagara7.
20870 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20871 Likewise.
20872 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20873 file.
20874 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20875 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20876 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20877 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20878 Add niagara7 option.
20879 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20880 memset.
20881
20882 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20883 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20884 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20885 Likewise.
20886 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20887 New file.
20888 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20889 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20890 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20891 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20892 and __memmove_niagara7.
20893 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20894 Add niagara7 option.
20895 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20896 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20897 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20898 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20899 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20900
20901 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20902
20903 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20904 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20905 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20906 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20907
20908 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20909 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20910 _dl_sparc_cap_flags array.
20911 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20912
20913 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20914
20915 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20916 time whenever possible.
20917
20918 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20919
20920 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20921 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20922
20923 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20924
20925 * soft-fp/fmadf4.c: Move to ....
20926 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20927 * soft-fp/fmasf4.c: Move to ....
20928 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20929 * soft-fp/fmatf4.c: Move to ....
20930 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20931 * sysdeps/ieee754/soft-fp/Makefile: New file.
20932 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20933 * sysdeps/arm/preconfigure: Regenerated.
20934 * sysdeps/arm/nofpu/Implies: New file.
20935 * sysdeps/arm/s_fma.c: Remove file.
20936 * sysdeps/arm/s_fmaf.c: Likewise.
20937 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20938 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20939 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20940 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20941 * sysdeps/microblaze/s_fma.c: Remove file.
20942 * sysdeps/microblaze/s_fmaf.c: Likewise.
20943 * sysdeps/mips/mips32/nofpu/Implies: New file.
20944 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20945 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20946 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20947 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20948 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20949 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20950 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20951 implementation.
20952 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20953 * sysdeps/nios2/s_fma.c: Remove file.
20954 * sysdeps/nios2/s_fmaf.c: Likewise.
20955 * sysdeps/sh/nofpu/Implies: New file.
20956 * sysdeps/sh/s_fma.c: Remove file.
20957 * sysdeps/sh/s_fmaf.c: Likewise.
20958 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20959 * sysdeps/tile/s_fma.c: Remove file.
20960 * sysdeps/tile/s_fmaf.c: Likewise.
20961
20962 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20963
20964 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20965 Add s_cosf-sse2 and s_cosf-fma.
20966 (CFLAGS-s_cosf-fma.c): New.
20967 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20968 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20969 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20970
20971 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20972
20973 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20974
20975 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20976
20977 * libio/Makefile (tests): Add tst-bz22415.
20978 (tst-bz22415-ENV): New rule.
20979 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20980 (tests-special): Add tst-bz22415-mem.out.
20981 ($(objpfx)tst-bz22415-mem.out): New rule.
20982 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20983 in case of a successful seek operation.
20984 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20985 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20986 buffer is required.
20987 * libio/tst-bz22415.c: New test.
20988
20989 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20990
20991 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20992
20993 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20994 __IPC_64 to 0 to avoid IPC_64 being set.
20995
20996 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20997
20998 [BZ #22593]
20999 * math/bits/mathcalls.h (nextafter): Remove const.
21000 (nexttoward): Likewise.
21001
21002 2017-12-12 Joseph Myers <joseph@codesourcery.com>
21003
21004 * configure.ac (--with-fp): Remove configure option.
21005 (with_fp_cond): New variable.
21006 (libc_cv_with_fp): New configure test. Use this variable instead
21007 of with_fp.
21008 * configure: Regenerated.
21009 * config.make.in (with-fp): Use @libc_cv_with_fp@.
21010 * manual/install.texi (Configuring and compiling): Remove
21011 --without-fp.
21012 * INSTALL: Regenerated.
21013 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
21014 * sysdeps/mips/preconfigure (with_fp_cond): Define.
21015 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
21016 * sysdeps/sh/preconfigure (with_fp_cond): Define.
21017 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
21018 use --without-fp to configure glibc.
21019
21020 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
21021
21022 * manual/locale.texi (nl_langinfo): Fix a typo.
21023
21024 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
21025
21026 [BZ #22588]
21027 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
21028
21029 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21030
21031 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
21032 (CFLAGS-argp-parse.c): Likewise.
21033 (CFLAGS-argp-fmtstream.c): Likewise.
21034 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
21035 (CPPFLAGS-sha512-crypt.c): Likewise.
21036 (CPPFLAGS-md5-crypt.c): Likewise.
21037 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
21038 (CFLAGS-stack_chk_fail_local.c): Likewise.
21039 (CFLAGS-backtrace.c): Likewise.
21040 (CFLAGS-sprintf_chk.c): Likewise.
21041 (CFLAGS-snprintf_chk.c): Likewise.
21042 (CFLAGS-vsprintf_chk.c): Likewise.
21043 (CFLAGS-vsnprintf_chk.c): Likewise.
21044 (CFLAGS-asprintf_chk.c): Likewise.
21045 (CFLAGS-vasprintf_chk.c): Likewise.
21046 (CFLAGS-obprintf_chk.c): Likewise.
21047 (CFLAGS-dprintf_chk.c): Likewise.
21048 (CFLAGS-vdprintf_chk.c): Likewise.
21049 (CFLAGS-printf_chk.c): Likewise.
21050 (CFLAGS-fprintf_chk.c): Likewise.
21051 (CFLAGS-vprintf_chk.c): Likewise.
21052 (CFLAGS-vfprintf_chk.c): Likewise.
21053 (CFLAGS-gets_chk.c): Likewise.
21054 (CFLAGS-fgets_chk.c): Likewise.
21055 (CFLAGS-fgets_u_chk.c): Likewise.
21056 (CFLAGS-fread_chk.c): Likewise.
21057 (CFLAGS-fread_u_chk.c): Likewise.
21058 (CFLAGS-swprintf_chk.c): Likewise.
21059 (CFLAGS-vswprintf_chk.c): Likewise.
21060 (CFLAGS-wprintf_chk.c): Likewise.
21061 (CFLAGS-fwprintf_chk.c): Likewise.
21062 (CFLAGS-vwprintf_chk.c): Likewise.
21063 (CFLAGS-vfwprintf_chk.c): Likewise.
21064 (CFLAGS-fgetws_chk.c): Likewise.
21065 (CFLAGS-fgetws_u_chk.c): Likewise.
21066 (CFLAGS-read_chk.c): Likewise.
21067 (CFLAGS-pread_chk.c): Likewise.
21068 (CFLAGS-pread64_chk.c): Likewise.
21069 (CFLAGS-recv_chk.c): Likewise.
21070 (CFLAGS-recvfrom_chk.c): Likewise.
21071 (CFLAGS-tst-longjmp_chk.c): Likewise.
21072 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21073 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21074 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21075 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21076 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21077 (CFLAGS-tst-chk1.c): Likewise.
21078 (CFLAGS-tst-chk2.c): Likewise.
21079 (CFLAGS-tst-chk3.c): Likewise.
21080 (CFLAGS-tst-chk4.cc): Likewise.
21081 (CFLAGS-tst-chk5.cc): Likewise.
21082 (CFLAGS-tst-chk6.cc): Likewise.
21083 (CFLAGS-tst-lfschk1.c): Likewise.
21084 (CFLAGS-tst-lfschk2.c): Likewise.
21085 (CFLAGS-tst-lfschk3.c): Likewise.
21086 (CFLAGS-tst-lfschk4.cc): Likewise.
21087 (CFLAGS-tst-lfschk5.cc): Likewise.
21088 (CFLAGS-tst-lfschk6.cc): Likewise.
21089 (CFLAGS-tst-ssp-1.c): Likewise.
21090 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21091 (CFLAGS-scandir64.c): Likewise.
21092 (CFLAGS-scandir-tail.c): Likewise.
21093 (CFLAGS-scandir64-tail.c): Likewise.
21094 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21095 (CFLAGS-dl-tunables.c): Likewise.
21096 (CFLAGS-dl-runtime.c): Likewise.
21097 (CFLAGS-dl-lookup.c): Likewise.
21098 (CFLAGS-dl-iterate-phdr.c): Likewise.
21099 (CFLAGS-vismain.c): Likewise.
21100 (CFLAGS-tst-linkall-static.c): Likewise.
21101 (CFLAGS-tst-linkall-static.c): Likewise.
21102 (CPPFLAGS-dl-load.c): Likewise.
21103 (CFLAGS-ldconfig.c): Likewise.
21104 (CFLAGS-dl-cache.c): Likewise.
21105 (CFLAGS-cache.c): Likewise.
21106 (CFLAGS-rtld.c): Likewise.
21107 (CFLAGS-multiload.c): Likewise.
21108 (CFLAGS-filtmod1.c): Likewise.
21109 (CFLAGS-tst-align.c): Likewise.
21110 (CFLAGS-tst-align2.c): Likewise.
21111 (CFLAGS-tst-alignmod.c): Likewise.
21112 (CFLAGS-tst-alignmod2.c): Likewise.
21113 (CPPFLAGS-tst-execstack.c): Likewise.
21114 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21115 (CFLAGS-tst-latepthreadmod.c): Likewise.
21116 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21117 (CFLAGS-getgrnam_r.c): Likewise.
21118 (CFLAGS-getgrent_r.c): Likewise.
21119 (CFLAGS-getgrent.c): Likewise.
21120 (CFLAGS-fgetgrent.c): Likewise.
21121 (CFLAGS-fgetgrent_r.c): Likewise.
21122 (CFLAGS-putgrent.c): Likewise.
21123 (CFLAGS-initgroups.c): Likewise.
21124 (CFLAGS-getgrgid.c): Likewise.
21125 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21126 (CFLAGS-getsgent.c): Likewise.
21127 (CFLAGS-fgetsgent.c): Likewise.
21128 (CFLAGS-fgetsgent_r.c): Likewise.
21129 (CFLAGS-putsgent.c): Likewise.
21130 (CFLAGS-getsgnam.c): Likewise.
21131 (CFLAGS-getsgnam_r.c): Likewise.
21132 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21133 (CFLAGS-iconv_charmap.c): Likewise.
21134 (CFLAGS-dummy-repertoire.c): Likewise.
21135 (CFLAGS-charmap.c): Likewise.
21136 (CFLAGS-linereader.c): Likewise.
21137 (CFLAGS-simple-hash.c): Likewise.
21138 (CFLAGS-gconv_conf.c): Likewise.
21139 (CFLAGS-iconvconfig.c): Likewise.
21140 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21141 (CFLAGS-gethstbyad.c): Likewise.
21142 (CFLAGS-gethstbynm_r.c): Likewise.
21143 (CFLAGS-gethstbynm.c): Likewise.
21144 (CFLAGS-gethstbynm2_r.c): Likewise.
21145 (CFLAGS-gethstbynm2.c): Likewise.
21146 (CFLAGS-gethstent_r.c): Likewise.
21147 (CFLAGS-gethstent.c): Likewise.
21148 (CFLAGS-rcmd.c): Likewise.
21149 (CFLAGS-getnetbynm_r.c): Likewise.
21150 (CFLAGS-getnetbynm.c): Likewise.
21151 (CFLAGS-getnetbyad_r.c): Likewise.
21152 (CFLAGS-getnetbyad.c): Likewise.
21153 (CFLAGS-getnetent_r.c): Likewise.
21154 (CFLAGS-getnetent.c): Likewise.
21155 (CFLAGS-getaliasent_r.c): Likewise.
21156 (CFLAGS-getaliasent.c): Likewise.
21157 (CFLAGS-getrpcent_r.c): Likewise.
21158 (CFLAGS-getrpcent.c): Likewise.
21159 (CFLAGS-getservent_r.c): Likewise.
21160 (CFLAGS-getservent.c): Likewise.
21161 (CFLAGS-getprtent_r.c): Likewise.
21162 (CFLAGS-getprtent.c): Likewise.
21163 (CFLAGS-either_ntoh.c): Likewise.
21164 (CFLAGS-either_hton.c): Likewise.
21165 (CFLAGS-getnetgrent.c): Likewise.
21166 (CFLAGS-getnetgrent_r.c): Likewise.
21167 (CFLAGS-tst-checks-posix.c): Likewise.
21168 (CFLAGS-tst-sockaddr.c): Likewise.
21169 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21170 (CFLAGS-tst-translit.c): Likewise.
21171 (CFLAGS-tst-gettext2.c): Likewise.
21172 (CFLAGS-tst-codeset.c): Likewise.
21173 (CFLAGS-tst-gettext3.c): Likewise.
21174 (CFLAGS-tst-gettext4.c): Likewise.
21175 (CFLAGS-tst-gettext5.c): Likewise.
21176 (CFLAGS-tst-gettext6.c): Likewise.
21177 * io/Makefile (CFLAGS-open.c): Likewise.
21178 (CFLAGS-open64.c): Likewise.
21179 (CFLAGS-creat.c): Likewise.
21180 (CFLAGS-creat64.c): Likewise.
21181 (CFLAGS-fcntl.c): Likewise.
21182 (CFLAGS-poll.c): Likewise.
21183 (CFLAGS-ppoll.c): Likewise.
21184 (CFLAGS-lockf.c): Likewise.
21185 (CFLAGS-statfs.c): Likewise.
21186 (CFLAGS-fstatfs.c): Likewise.
21187 (CFLAGS-statvfs.c): Likewise.
21188 (CFLAGS-fstatvfs.c): Likewise.
21189 (CFLAGS-fts.c): Likewise.
21190 (CFLAGS-fts64.c): Likewise.
21191 (CFLAGS-ftw.c): Likewise.
21192 (CFLAGS-ftw64.c): Likewise.
21193 (CFLAGS-lockf.c): Likewise.
21194 (CFLAGS-posix_fallocate.c): Likewise.
21195 (CFLAGS-posix_fallocate64.c): Likewise.
21196 (CFLAGS-fallocate.c): Likewise.
21197 (CFLAGS-fallocate64.c): Likewise.
21198 (CFLAGS-read.c): Likewise.
21199 (CFLAGS-write.c): Likewise.
21200 (CFLAGS-test-stat.c): Likewise.
21201 (CFLAGS-test-lfs.c): Likewise.
21202 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21203 (CFLAGS-fputc.c): Likewise.
21204 (CFLAGS-fputwc.c): Likewise.
21205 (CFLAGS-freopen64.c): Likewise.
21206 (CFLAGS-freopen.c): Likewise.
21207 (CFLAGS-fseek.c): Likewise.
21208 (CFLAGS-fseeko64.c): Likewise.
21209 (CFLAGS-fseeko.c): Likewise.
21210 (CFLAGS-ftello64.c): Likewise.
21211 (CFLAGS-ftello.c): Likewise.
21212 (CFLAGS-fwide.c): Likewise.
21213 (CFLAGS-genops.c): Likewise.
21214 (CFLAGS-getc.c): Likewise.
21215 (CFLAGS-getchar.c): Likewise.
21216 (CFLAGS-getwc.c): Likewise.
21217 (CFLAGS-getwchar.c): Likewise.
21218 (CFLAGS-iofclose.c): Likewise.
21219 (CFLAGS-iofflush.c): Likewise.
21220 (CFLAGS-iofgetpos64.c): Likewise.
21221 (CFLAGS-iofgetpos.c): Likewise.
21222 (CFLAGS-iofgets.c): Likewise.
21223 (CFLAGS-iofgetws.c): Likewise.
21224 (CFLAGS-iofputs.c): Likewise.
21225 (CFLAGS-iofputws.c): Likewise.
21226 (CFLAGS-iofread.c): Likewise.
21227 (CFLAGS-iofsetpos64.c): Likewise.
21228 (CFLAGS-iofsetpos.c): Likewise.
21229 (CFLAGS-ioftell.c): Likewise.
21230 (CFLAGS-iofwrite.c): Likewise.
21231 (CFLAGS-iogetdelim.c): Likewise.
21232 (CFLAGS-iogetline.c): Likewise.
21233 (CFLAGS-iogets.c): Likewise.
21234 (CFLAGS-iogetwline.c): Likewise.
21235 (CFLAGS-ioputs.c): Likewise.
21236 (CFLAGS-ioseekoff.c): Likewise.
21237 (CFLAGS-ioseekpos.c): Likewise.
21238 (CFLAGS-iosetbuffer.c): Likewise.
21239 (CFLAGS-iosetvbuf.c): Likewise.
21240 (CFLAGS-ioungetc.c): Likewise.
21241 (CFLAGS-ioungetwc.c): Likewise.
21242 (CFLAGS-oldfileops.c): Likewise.
21243 (CFLAGS-oldiofclose.c): Likewise.
21244 (CFLAGS-oldiofgetpos64.c): Likewise.
21245 (CFLAGS-oldiofgetpos.c): Likewise.
21246 (CFLAGS-oldiofsetpos64.c): Likewise.
21247 (CFLAGS-oldiofsetpos.c): Likewise.
21248 (CFLAGS-peekc.c): Likewise.
21249 (CFLAGS-putc.c): Likewise.
21250 (CFLAGS-putchar.c): Likewise.
21251 (CFLAGS-putwc.c): Likewise.
21252 (CFLAGS-putwchar.c): Likewise.
21253 (CFLAGS-rewind.c): Likewise.
21254 (CFLAGS-wfileops.c): Likewise.
21255 (CFLAGS-wgenops.c): Likewise.
21256 (CFLAGS-oldiofopen.c): Likewise.
21257 (CFLAGS-iofopen.c): Likewise.
21258 (CFLAGS-iofopen64.c): Likewise.
21259 (CFLAGS-oldtmpfile.c): Likewise.
21260 (CFLAGS-tst_putwc.c): Likewise.
21261 * locale/Makefile (CFLAGS-md5.c): Likewise.
21262 (CFLAGS-charmap.c): Likewise.
21263 (CFLAGS-locfile.c): Likewise.
21264 (CFLAGS-charmap-dir.c): Likewise.
21265 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21266 (CFLAGS-getpt.c): Likewise.
21267 (CFLAGS-pt_chown.c): Likewise.
21268 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21269 (CFLAGS-obstack.c): Likewise.
21270 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21271 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21272 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21273 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21274 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21275 (CFLAGS-test-tgmath.c): Likewise.
21276 (CFLAGS-test-tgmath2.c): Likewise.
21277 (CFLAGS-test-tgmath-ret.c): Likewise.
21278 (CFLAGS-test-powl.c): Likewise.
21279 (CFLAGS-test-snan.c): Likewise.
21280 (CFLAGS-test-signgam-finite.c): Likewise.
21281 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21282 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21283 (CFLAGS-test-signgam-uchar.c): Likewise.
21284 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21285 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21286 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21287 (CFLAGS-test-signgam-uint.c): Likewise.
21288 (CFLAGS-test-signgam-uint-init.c): Likewise.
21289 (CFLAGS-test-signgam-uint-static.c): Likewise.
21290 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21291 (CFLAGS-test-signgam-ullong.c): Likewise.
21292 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21293 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21294 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21295 (CFLAGS-test-math-cxx11.cc): Likewise.
21296 (CFLAGS-test-math-isinff.cc): Likewise.
21297 (CFLAGS-test-math-iszero.cc): Likewise.
21298 (CFLAGS-test-math-issignaling.cc): Likewise.
21299 (CFLAGS-test-math-iscanonical.cc): Likewise.
21300 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21301 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21302 (CFLAGS-test-flt-eval-method.c): Likewise.
21303 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21304 (CFLAGS-test-finite-macros.c): Likewise.
21305 * misc/Makefile (CFLAGS-select.c): Likewise.
21306 (CFLAGS-tsearch.c): Likewise.
21307 (CFLAGS-lsearch.c): Likewise.
21308 (CFLAGS-pselect.c): Likewise.
21309 (CFLAGS-readv.c): Likewise.
21310 (CFLAGS-writev.c): Likewise.
21311 (CFLAGS-preadv.c): Likewise.
21312 (CFLAGS-preadv64.c): Likewise.
21313 (CFLAGS-pwritev.c): Likewise.
21314 (CFLAGS-pwritev64.c): Likewise.
21315 (CFLAGS-preadv2.c): Likewise.
21316 (CFLAGS-preadv64v2.c): Likewise.
21317 (CFLAGS-pwritev2.c): Likewise.
21318 (CFLAGS-pwritev64v2.c): Likewise.
21319 (CFLAGS-usleep.c): Likewise.
21320 (CFLAGS-syslog.c): Likewise.
21321 (CFLAGS-error.c): Likewise.
21322 (CFLAGS-getpass.c): Likewise.
21323 (CFLAGS-mkstemp.c): Likewise.
21324 (CFLAGS-mkstemp64.c): Likewise.
21325 (CFLAGS-getsysstats.c): Likewise.
21326 (CFLAGS-getusershell.c): Likewise.
21327 (CFLAGS-err.c): Likewise.
21328 (CFLAGS-tst-tsearch.c): Likewise.
21329 (CFLAGS-msync.c): Likewise.
21330 (CFLAGS-fdatasync.c): Likewise.
21331 (CFLAGS-fsync.c): Likewise.
21332 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21333 (CFLAGS-unwind.c): Likewise.
21334 (CFLAGS-unwind-forcedunwind.c): Likewise.
21335 (CFLAGS-pthread_cancel.c): Likewise.
21336 (CFLAGS-pthread_setcancelstate.c): Likewise.
21337 (CFLAGS-pthread_setcanceltype.c): Likewise.
21338 (CFLAGS-cancellation.c): Likewise.
21339 (CFLAGS-libc-cancellation.c): Likewise.
21340 (CFLAGS-pthread_exit.c): Likewise.
21341 (CFLAGS-forward.c): Likewise.
21342 (CFLAGS-pthread_testcancel.c): Likewise.
21343 (CFLAGS-pthread_join.c): Likewise.
21344 (CFLAGS-pthread_timedjoin.c): Likewise.
21345 (CFLAGS-pthread_once.c): Likewise.
21346 (CFLAGS-pthread_cond_wait.c): Likewise.
21347 (CFLAGS-sem_wait.c): Likewise.
21348 (CFLAGS-sem_timedwait.c): Likewise.
21349 (CFLAGS-fcntl.c): Likewise.
21350 (CFLAGS-lockf.c): Likewise.
21351 (CFLAGS-pread.c): Likewise.
21352 (CFLAGS-pread64.c): Likewise.
21353 (CFLAGS-pwrite.c): Likewise.
21354 (CFLAGS-pwrite64.c): Likewise.
21355 (CFLAGS-wait.c): Likewise.
21356 (CFLAGS-waitpid.c): Likewise.
21357 (CFLAGS-sigwait.c): Likewise.
21358 (CFLAGS-msgrcv.c): Likewise.
21359 (CFLAGS-msgsnd.c): Likewise.
21360 (CFLAGS-tcdrain.c): Likewise.
21361 (CFLAGS-open.c): Likewise.
21362 (CFLAGS-open64.c): Likewise.
21363 (CFLAGS-pause.c): Likewise.
21364 (CFLAGS-recv.c): Likewise.
21365 (CFLAGS-send.c): Likewise.
21366 (CFLAGS-accept.c): Likewise.
21367 (CFLAGS-sendto.c): Likewise.
21368 (CFLAGS-connect.c): Likewise.
21369 (CFLAGS-recvfrom.c): Likewise.
21370 (CFLAGS-recvmsg.c): Likewise.
21371 (CFLAGS-sendmsg.c): Likewise.
21372 (CFLAGS-close.c): Likewise.
21373 (CFLAGS-read.c): Likewise.
21374 (CFLAGS-write.c): Likewise.
21375 (CFLAGS-nanosleep.c): Likewise.
21376 (CFLAGS-sigsuspend.c): Likewise.
21377 (CFLAGS-msync.c): Likewise.
21378 (CFLAGS-fdatasync.c): Likewise.
21379 (CFLAGS-fsync.c): Likewise.
21380 (CFLAGS-pt-system.c): Likewise.
21381 (CFLAGS-tst-cleanup2.c): Likewise.
21382 (CFLAGS-tst-cleanupx2.c): Likewise.
21383 (CFLAGS-flockfile.c): Likewise.
21384 (CFLAGS-ftrylockfile.c): Likewise.
21385 (CFLAGS-funlockfile.c): Likewise.
21386 (CFLAGS-tst-initializers1.c): Likewise.
21387 (CFLAGS-tst-initializers1-c89.c): Likewise.
21388 (CFLAGS-tst-initializers1-c99.c): Likewise.
21389 (CFLAGS-tst-initializers1-c11.c): Likewise.
21390 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21391 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21392 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21393 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21394 (CFLAGS-nscd_getgr_r.c): Likewise.
21395 (CFLAGS-nscd_gethst_r.c): Likewise.
21396 (CFLAGS-nscd_getai.c): Likewise.
21397 (CFLAGS-nscd_initgroups.c): Likewise.
21398 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21399 (CFLAGS-pause.c): Likewise.
21400 (CFLAGS-pread.c): Likewise.
21401 (CFLAGS-pread64.c): Likewise.
21402 (CFLAGS-pwrite.c): Likewise.
21403 (CFLAGS-pwrite64.c): Likewise.
21404 (CFLAGS-sleep.c): Likewise.
21405 (CFLAGS-wait.c): Likewise.
21406 (CFLAGS-waitid.c): Likewise.
21407 (CFLAGS-waitpid.c): Likewise.
21408 (CFLAGS-getopt.c): Likewise.
21409 (CFLAGS-wordexp.c): Likewise.
21410 (CFLAGS-sysconf.c): Likewise.
21411 (CFLAGS-pathconf.c): Likewise.
21412 (CFLAGS-fpathconf.c): Likewise.
21413 (CFLAGS-spawn.c): Likewise.
21414 (CFLAGS-spawnp.c): Likewise.
21415 (CFLAGS-spawni.c): Likewise.
21416 (CFLAGS-glob.c): Likewise.
21417 (CFLAGS-glob64.c): Likewise.
21418 (CFLAGS-getconf.c): Likewise.
21419 (CFLAGS-nanosleep.c): Likewise.
21420 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21421 (CFLAGS-getpwent.c): Likewise.
21422 (CFLAGS-getpw.c): Likewise.
21423 (CFLAGS-fgetpwent_r.c): Likewise.
21424 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21425 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21426 (CFLAGS-mq_timedreceive.c): Likewise.
21427 (CFLAGS-mq_timedsend.c): Likewise.
21428 (CFLAGS-clock_nanosleep.c): Likewise.
21429 (CFLAGS-librt-cancellation.c): Likewise.
21430 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21431 (CFLAGS-getspent.c): Likewise.
21432 (CFLAGS-fgetspent.c): Likewise.
21433 (CFLAGS-fgetspent_r.c): Likewise.
21434 (CFLAGS-putspent.c): Likewise.
21435 (CFLAGS-getspnam.c): Likewise.
21436 (CFLAGS-getspnam_r.c): Likewise.
21437 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21438 (CFLAGS-sigsuspend.c): Likewise.
21439 (CFLAGS-sigtimedwait.c): Likewise.
21440 (CFLAGS-sigwait.c): Likewise.
21441 (CFLAGS-sigwaitinfo.c): Likewise.
21442 (CFLAGS-sigreturn.c): Likewise.
21443 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21444 (CFLAGS-vfwprintf.c): Likewise.
21445 (CFLAGS-tmpfile.c): Likewise.
21446 (CFLAGS-tmpfile64.c): Likewise.
21447 (CFLAGS-tempname.c): Likewise.
21448 (CFLAGS-psignal.c): Likewise.
21449 (CFLAGS-vprintf.c): Likewise.
21450 (CFLAGS-cuserid.c): Likewise.
21451 (CFLAGS-errlist.c): Likewise.
21452 (CFLAGS-siglist.c): Likewise.
21453 (CFLAGS-scanf15.c): Likewise.
21454 (CFLAGS-scanf17.c): Likewise.
21455 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21456 (CFLAGS-msort.c): Likewise.
21457 (CFLAGS-qsort.c): Likewise.
21458 (CFLAGS-system.c): Likewise.
21459 (CFLAGS-fmtmsg.c): Likewise.
21460 (CFLAGS-strfmon.c): Likewise.
21461 (CFLAGS-strfmon_l.c): Likewise.
21462 (CFLAGS-strfromd.c): Likewise.
21463 (CFLAGS-strfromf.c): Likewise.
21464 (CFLAGS-strfroml.c): Likewise.
21465 (CFLAGS-tst-bsearch.c): Likewise.
21466 (CFLAGS-tst-qsort.c): Likewise.
21467 (CFLAGS-tst-makecontext2.c): Likewise.
21468 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21469 (CFLAGS-xnlm_prot.c): Likewise.
21470 (CFLAGS-xrstat.c): Likewise.
21471 (CFLAGS-xyppasswd.c): Likewise.
21472 (CFLAGS-xklm_prot.c): Likewise.
21473 (CFLAGS-xrex.c): Likewise.
21474 (CFLAGS-xsm_inter.c): Likewise.
21475 (CFLAGS-xmount.c): Likewise.
21476 (CFLAGS-xrusers.c): Likewise.
21477 (CFLAGS-xspray.c): Likewise.
21478 (CFLAGS-xnfs_prot.c): Likewise.
21479 (CFLAGS-xrquota.c): Likewise.
21480 (CFLAGS-xkey_prot.c): Likewise.
21481 (CFLAGS-auth_unix.c): Likewise.
21482 (CFLAGS-key_call.c): Likewise.
21483 (CFLAGS-pmap_rmt.c): Likewise.
21484 (CFLAGS-clnt_perr.c): Likewise.
21485 (CFLAGS-openchild.c): Likewise.
21486 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21487 (CFLAGS-msgsnd.c): Likewise.
21488 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21489 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21490 (CFLAGS-tzset.c): Likewise.
21491 (CFLAGS-getdate.c): Likewise.
21492 (CFLAGS-test_time.c): Likewise.
21493 (CPPFLAGS-tst-tzname.c): Likewise.
21494 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21495 (CFLAGS-zic.c): Likewise.
21496 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21497 (CFLAGS-wcswidth.c): Likewise.
21498 (CFLAGS-wcstol.c): Likewise.
21499 (CFLAGS-wcstoul.c): Likewise.
21500 (CFLAGS-wcstoll.c): Likewise.
21501 (CFLAGS-wcstoull.c): Likewise.
21502 (CFLAGS-wcstod.c): Likewise.
21503 (CFLAGS-wcstold.c): Likewise.
21504 (CFLAGS-wcstof128.c): Likewise.
21505 (CFLAGS-wcstof.c): Likewise.
21506 (CFLAGS-wcstol_l.c): Likewise.
21507 (CFLAGS-wcstoul_l.c): Likewise.
21508 (CFLAGS-wcstoll_l.c): Likewise.
21509 (CFLAGS-wcstoull_l.c): Likewise.
21510 (CFLAGS-wcstod_l.c): Likewise.
21511 (CFLAGS-wcstold_l.c): Likewise.
21512 (CFLAGS-wcstof128_l.c): Likewise.
21513 (CFLAGS-wcstof_l.c): Likewise.
21514 (CPPFLAGS-tst-wchar-h.c): Likewise.
21515 (CPPFLAGS-wcstold_l.c): Likewise.
21516
21517 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21518
21519 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21520
21521 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21522 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21523
21524 * manual/tunables.texi (Hardware Capability Tunables): Document
21525 glibc.tune.cached_memopt.
21526 * sysdeps/powerpc/cpu-features.c: New file.
21527 * sysdeps/powerpc/cpu-features.h: New file.
21528 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21529 _dl_powerpc_cpu_features.
21530 * sysdeps/powerpc/dl-tunables.list: New file.
21531 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21532 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21533 (INIT_ARCH): Initialize use_aligned_memopt.
21534 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21535 IS_IN(rtld))]: Restrict dl_platform_init availability and
21536 initialize CPU features used by tunables.
21537 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21538 Add memcpy-power8-cached.
21539 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21540 __memcpy_power8_cached.
21541 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21542 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21543 New file.
21544
21545 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21546
21547 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21548 (CFLAGS-noinl-tester.c): Likewise.
21549 (CFLAGS-tst-strlen.c): Likewise.
21550 (CFLAGS-stratcliff.c): Likewise.
21551 (CFLAGS-test-ffs.c): Likewise.
21552 (CFLAGS-tst-inlcall.c): Likewise.
21553 (CFLAGS-tst-xbzero-opt.c): Likewise.
21554 (CFLAGS-memcpy.c): Likewise.
21555 (CFLAGS-wordcopy.c): Likewise.
21556
21557 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21558
21559 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21560 Store r15 on stack and add cfi rule.
21561 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21562 Likewise.
21563
21564 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21565
21566 [BZ #22577]
21567 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21568 call.
21569
21570 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21571
21572 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21573 Add s_sinf-sse2 and s_sinf-fma.
21574 (CFLAGS-s_sinf-fma.c): New.
21575 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21576 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21577 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21578
21579 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21580
21581 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21582
21583 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21584
21585 [BZ #22568]
21586 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21587 part of result to imaginary part of argument if it is zero and the
21588 real part of the argument is not finite.
21589 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21590 of result to real part of argument if it is zero and the imaginary
21591 part of the argument is not finite.
21592
21593 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21594
21595 [BZ #22524]
21596 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21597 and to the list of locales to be built for testing.
21598 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21599 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21600 and build the collation rules upon that.
21601
21602 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21603
21604 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21605 * manual/math.texi (Mathematics): Document support for _Float32.
21606 * math/Makefile (test-types): Add float32.
21607 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21608 * stdlib/Versions (GLIBC_2.27): Likewise.
21609 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21610 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21611 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21612 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21613 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21614 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21615 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21616 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21617 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21618 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21619 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21620 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21621 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21622 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21623 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21624 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21625 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21626 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21627 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21628 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21629 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21630 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21631 Likewise.
21632 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21633 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21634 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21635 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21636 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21638 Likewise.
21639 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21640 Likewise.
21641 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21642 Likewise.
21643 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21644 Likewise.
21645
21646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21647 Likewise.
21648 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21649 Likewise.
21650 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21651 Likewise.
21652 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21653 Likewise.
21654 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21655 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21656 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21657 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21658 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21659 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21660 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21661 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21662 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21663 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21664 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21665 Likewise.
21666 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21667 Likewise.
21668 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21669 Likewise.
21670 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21671 Likewise.
21672 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21673 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21674 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21675 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21676 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21677 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21678 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21679 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21680
21681 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21682
21683 * stdlib/strtof.c: Include <bits/floatn.h>
21684 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21685 and later undefine as macro. Define as weak alias if
21686 [!USE_WIDE_CHAR].
21687 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21688 and later undefine as macro. Define as weak alias if
21689 [USE_WIDE_CHAR].
21690 * stdlib/strtof_l.c: Include <bits/floatn.h>
21691 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21692 and later undefine as macro. Define as weak alias if
21693 [!USE_WIDE_CHAR].
21694 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21695 and later undefine as macro. Define as weak alias if
21696 [USE_WIDE_CHAR].
21697
21698 * stdlib/strfromf.c: Include <bits/floatn.h>.
21699 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21700 and later undefine as macro and define as weak alias.
21701
21702 * math/test-float32.h: New file.
21703
21704 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21705 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21706 (libm_alias_float_other_r): Create f32 alias.
21707 (libm_alias_float_r): Use semicolon before call to
21708 libm_alias_float_other_r.
21709
21710 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21711 second argument to libm_alias_float_other.
21712 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21713 second argument to libm_alias_float_other.
21714 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21715 argument to libm_alias_float_other.
21716
21717 [BZ #22561]
21718 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21719 real part of result for argument 0 + i * NaN.
21720 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21721 results for tests of 0 + i * NaN.
21722
21723 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21724
21725 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21726
21727 2017-12-06 David S. Miller <davem@davemloft.net>
21728
21729 * sysdeps/sparc/fpu/libm-test-ulps: Update
21730 exp_{downward,towardzero,upward} ulps.
21731
21732 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21733
21734 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21735 variables static.
21736
21737 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21738 (Y0_2D): Likewise.
21739 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21740 (Y0_2D): Likewise.
21741 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21742 (Y0_2D): Likewise.
21743 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21744 (Y0_2D): Likewise.
21745
21746 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21747
21748 [BZ #22515]
21749 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21750 and to the list of locales to be built for testing.
21751 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21752 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21753 and build the collation rules upon that.
21754
21755 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21756
21757 * NEWS: Add sinf to list of optimized functions.
21758
21759 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21760
21761 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21762 (__HAVE_FLOAT32X): Likewise.
21763 * manual/math.texi (Mathematics): Document support for _Float64
21764 and _Float32x.
21765 * math/Makefile (test-types): Add float64 and float32x.
21766 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21767 functions.
21768 * stdlib/Versions (GLIBC_2.27): Likewise.
21769 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21770 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21771 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21772 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21773 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21774 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21775 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21776 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21777 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21778 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21779 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21780 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21781 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21782 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21783 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21784 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21785 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21786 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21787 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21788 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21789 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21790 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21791 Likewise.
21792 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21793 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21794 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21795 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21796 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21798 Likewise.
21799 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21800 Likewise.
21801 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21802 Likewise.
21803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21804 Likewise.
21805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21806 Likewise.
21807 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21808 Likewise.
21809 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21810 Likewise.
21811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21812 Likewise.
21813 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21814 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21815 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21816 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21817 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21818 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21819 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21820 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21821 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21822 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21823 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21824 Likewise.
21825 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21826 Likewise.
21827 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21828 Likewise.
21829 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21830 Likewise.
21831 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21832 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21833 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21834 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21835 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21836 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21837 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21838 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21839
21840 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21841
21842 * bits/floatn-common.h: Include <bits/long-double.h>.
21843 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21844 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21845 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21846 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21847 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21848 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21849 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21850 (__builtin_huge_valf64): Use __builtin_huge_vall.
21851 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21852 (__builtin_inff64): Use __builtin_infl.
21853 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21854 (__builtin_nanf64): Use __builtin_nanl.
21855 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21856 (__builtin_nansf64): Use __builtin_nansl.
21857
21858 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21859 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21860 Carlos O'Donnell <carlos@redhat.com>
21861
21862 * elf/dl-tunables.list: Add elision parameters.
21863 * manual/tunables.texi: Add entries about elision tunable.
21864 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21865 Add callback functions to dynamically enable/disable elision.
21866 Add multiple callbacks functions to set elision parameters.
21867 Deleted __libc_enable_secure check.
21868 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21869 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21870 * configure: Regenerated.
21871 * configure.ac: Option enable_lock_elision was deleted.
21872 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21873 * config.make.in: Remove references to enable_lock_elision.
21874 * manual/install.texi: Elision configure option was removed.
21875 * INSTALL: Regenerated to remove enable_lock_elision.
21876 * nptl/Makefile:
21877 Disable elision so it can verify error case for destroying a mutex.
21878 * sysdeps/powerpc/nptl/elide.h:
21879 Cleanup ENABLE_LOCK_ELISION check.
21880 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21881 * sysdeps/s390/configure: Regenerated.
21882 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21883 * nptl/tst-mutex8.c:
21884 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21885 * sysdeps/powerpc/powerpc32/sysdep.h:
21886 Deleted all ENABLE_LOCK_ELISION checks.
21887 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21888 * sysdeps/powerpc/sysdep.h: Likewise.
21889 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21890 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21891 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21892 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21893 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21894 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21895 enable-lock-elision.
21896
21897 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21898
21899 * stdlib/strtod.c: Include <bits/floatn.h>.
21900 (BUILD_DOUBLE): New macro.
21901 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21902 (strtof64): Define and later undefine as macro. Define as weak
21903 alias if [!USE_WIDE_CHAR].
21904 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21905 (wcstof64): Define and later undefine as macro. Define as weak
21906 alias if [USE_WIDE_CHAR].
21907 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21908 (strtof32x): Define and later undefine as macro. Define as weak
21909 alias if [!USE_WIDE_CHAR].
21910 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21911 (wcstof32x): Define and later undefine as macro. Define as weak
21912 alias if [USE_WIDE_CHAR].
21913 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21914 (BUILD_DOUBLE): New macro.
21915 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21916 (strtof64_l): Define and later undefine as macro. Define as weak
21917 alias if [!USE_WIDE_CHAR].
21918 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21919 (wcstof64_l): Define and later undefine as macro. Define as weak
21920 alias if [USE_WIDE_CHAR].
21921 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21922 (strtof32x_l): Define and later undefine as macro. Define as weak
21923 alias if [!USE_WIDE_CHAR].
21924 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21925 (wcstof32x_l): Define and later undefine as macro. Define as weak
21926 alias if [USE_WIDE_CHAR].
21927
21928 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21929
21930 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21931 (reduced): Use ones as double instead of integer.
21932
21933 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21934
21935 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21936
21937 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21938
21939 * stdlib/strfromd.c: Include <bits/floatn.h>.
21940 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21941 and later undefine as macro and define as weak alias.
21942 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21943 Likewise.
21944
21945 * math/test-float32x.h: New file.
21946 * math/test-float64.h: Likewise.
21947
21948 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21949 (libm_alias_double_other_r_f64): New macro.
21950 (libm_alias_double_other_r_f32x): Likewise.
21951 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21952 libm_alias_double_other_r_f32x.
21953 (libm_alias_double_r): Use semicolon before call to
21954 libm_alias_double_other_r.
21955 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21956 <bits/floatn.h>.
21957 (libm_alias_double_other_r_f64): New macro.
21958 (libm_alias_double_other_r_f32x): Likewise.
21959 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21960 libm_alias_double_other_r_f32x.
21961
21962 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21963
21964 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21965 int.
21966 (SINF_FUNC): Likewise. Replace floor with simple casts.
21967
21968 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21969
21970 [BZ #22517]
21971 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21972 and to the list of locales to be built for testing.
21973 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21974 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21975 and build the collation rules upon that.
21976
21977 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21978
21979 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21980 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21981 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21982 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21983 instead of __insn__xxx.
21984 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21985 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21986 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21987 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21988 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21989 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21990
21991 2017-12-05 Florian Weimer <fweimer@redhat.com>
21992
21993 Linux: Implement interfaces for memory protection keys
21994 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21995 xsignal, xsysconf.
21996 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21997 * support/xunistd.h (xsysconf): Declare.
21998 * support/xraise.c: New file.
21999 * support/xsigaction.c: Likewise.
22000 * support/xsignal.c: Likewise.
22001 * support/xsysconf.c: Likewise.
22002 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
22003 pkey_set, pkey_get, pkey_mprotect.
22004 [misc] (tests): Add tst-pkey.
22005 (tst-pkey): Link with -lpthread.
22006 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
22007 pkey_free, pkey_set, pkey_get, pkey_mprotect.
22008 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
22009 (PKEY_DISABLE_WRITE): Define.
22010 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
22011 Declare.
22012 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
22013 (SEGV_PKUERR): Add.
22014 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
22015 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
22016 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
22017 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
22018 Add.
22019 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
22020 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
22021 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
22022 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
22023 * sysdeps/unix/sysv/linux/**.abilist: Update.
22024
22025 2017-12-05 Florian Weimer <fweimer@redhat.com>
22026
22027 * support/tst-test_compare.c (subprocess): Use long long instead
22028 of long argument for consistent type width across 32-bit and
22029 64-bit architectures.
22030 (do_test): Adjust expected output.
22031
22032 2017-12-05 Joseph Myers <joseph@codesourcery.com>
22033
22034 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
22035 (cosf): Define using libm_alias_float.
22036 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
22037 (fabsf): Define using libm_alias_float.
22038 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
22039 (fmaf): Define using libm_alias_float.
22040 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
22041 (rintf): Define using libm_alias_float.
22042 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
22043 (sinf): Define using libm_alias_float.
22044 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
22045 <libm-alias-float.h>.
22046 (modff): Define using libm_alias_float.
22047 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
22048 <libm-alias-float.h>.
22049 (logbf): Define using libm_alias_float.
22050 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
22051 <libm-alias-float.h>.
22052 (ceilf): Define using libm_alias_float.
22053 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22054 <libm-alias-float.h>.
22055 (copysignf): Define using libm_alias_float.
22056 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
22057 <libm-alias-float.h>.
22058 (floorf): Define using libm_alias_float.
22059 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
22060 <libm-alias-float.h>.
22061 (llrintf): Define using libm_alias_float.
22062 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22063 <libm-alias-float.h>.
22064 (llroundf): Define using libm_alias_float.
22065 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22066 <libm-alias-float.h>.
22067 (lrintf): Define using libm_alias_float.
22068 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22069 <libm-alias-float.h>.
22070 (lroundf): Define using libm_alias_float.
22071 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22072 <libm-alias-float.h>.
22073 (nearbyintf): Define using libm_alias_float.
22074 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22075 <libm-alias-float.h>.
22076 (rintf): Define using libm_alias_float.
22077 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22078 <libm-alias-float.h>.
22079 (roundf): Define using libm_alias_float.
22080 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22081 <libm-alias-float.h>.
22082 (truncf): Define using libm_alias_float.
22083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22084 Include <libm-alias-float.h>.
22085 (ceilf): Define using libm_alias_float.
22086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22087 Include <libm-alias-float.h>.
22088 (copysignf): Define using libm_alias_float.
22089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22090 Include <libm-alias-float.h>.
22091 (floorf): Define using libm_alias_float.
22092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22093 Include <libm-alias-float.h>.
22094 (llrintf): Define using libm_alias_float.
22095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22096 Include <libm-alias-float.h>.
22097 (llroundf): Define using libm_alias_float.
22098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22099 Include <libm-alias-float.h>.
22100 (logbf): Define using libm_alias_float.
22101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22102 Include <libm-alias-float.h>.
22103 (lrintf): Define using libm_alias_float.
22104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22105 Include <libm-alias-float.h>.
22106 (lroundf): Define using libm_alias_float.
22107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22108 Include <libm-alias-float.h>.
22109 (modff): Define using libm_alias_float.
22110 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22111 Include <libm-alias-float.h>.
22112 (roundf): Define using libm_alias_float.
22113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22114 Include <libm-alias-float.h>.
22115 (truncf): Define using libm_alias_float.
22116 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22117 <libm-alias-float.h>.
22118 (llrintf): Define using libm_alias_float.
22119 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22120 <libm-alias-float.h>.
22121 (llroundf): Define using libm_alias_float.
22122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22123 <libm-alias-float.h>.
22124 (ceilf): Define using libm_alias_float.
22125 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22126 <libm-alias-float.h>.
22127 (floorf): Define using libm_alias_float.
22128 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22129 <libm-alias-float.h>.
22130 (llroundf): Define using libm_alias_float.
22131 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22132 <libm-alias-float.h>.
22133 (lroundf): Define using libm_alias_float.
22134 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22135 <libm-alias-float.h>.
22136 (roundf): Define using libm_alias_float.
22137 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22138 <libm-alias-float.h>.
22139 (truncf): Define using libm_alias_float.
22140 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22141 <libm-alias-float.h>.
22142 (copysignf): Define using libm_alias_float.
22143 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22144 <libm-alias-float.h>.
22145 (llrintf): Define using libm_alias_float.
22146 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22147 <libm-alias-float.h>.
22148 (llroundf): Define using libm_alias_float.
22149 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22150 <libm-alias-float.h>.
22151 (lrintf): Define using libm_alias_float.
22152 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22153 <libm-alias-float.h>.
22154 (lroundf): Define using libm_alias_float.
22155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22156 <libm-alias-float.h>.
22157 (ceilf): Define using libm_alias_float.
22158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22159 <libm-alias-float.h>.
22160 (copysignf): Define using libm_alias_float.
22161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22162 <libm-alias-float.h>.
22163 (cosf): Define using libm_alias_float.
22164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22165 <libm-alias-float.h>.
22166 (floorf): Define using libm_alias_float.
22167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22168 <libm-alias-float.h>.
22169 (llrintf): Define using libm_alias_float.
22170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22171 <libm-alias-float.h>.
22172 (llroundf): Define using libm_alias_float.
22173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22174 <libm-alias-float.h>.
22175 (logbf): Define using libm_alias_float.
22176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22177 <libm-alias-float.h>.
22178 (modff): Define using libm_alias_float.
22179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22180 <libm-alias-float.h>.
22181 (roundf): Define using libm_alias_float.
22182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22183 <libm-alias-float.h>.
22184 (sinf): Define using libm_alias_float.
22185 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22186 <libm-alias-float.h>.
22187 (truncf): Define using libm_alias_float.
22188 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22189 <libm-alias-float.h>.
22190 (ceilf): Define using libm_alias_float.
22191 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22192 <libm-alias-float.h>.
22193 (copysignf): Define using libm_alias_float.
22194 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22195 <libm-alias-float.h>.
22196 (floorf): Define using libm_alias_float.
22197 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22198 <libm-alias-float.h>.
22199 (llrintf): Define using libm_alias_float.
22200 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22201 <libm-alias-float.h>.
22202 (llroundf): Define using libm_alias_float.
22203 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22204 <libm-alias-float.h>.
22205 (nearbyintf): Define using libm_alias_float.
22206 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22207 <libm-alias-float.h>.
22208 (rintf): Define using libm_alias_float.
22209 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22210 <libm-alias-float.h>.
22211 (roundf): Define using libm_alias_float.
22212 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22213 <libm-alias-float.h>.
22214 (truncf): Define using libm_alias_float.
22215 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22216 <libm-alias-float.h>.
22217 (ceilf): Define using libm_alias_float.
22218 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22219 <libm-alias-float.h>.
22220 (floorf): Define using libm_alias_float.
22221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22222 <libm-alias-float.h>.
22223 (llroundf): Define using libm_alias_float.
22224 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22225 <libm-alias-float.h>.
22226 (roundf): Define using libm_alias_float.
22227 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22228 <libm-alias-float.h>.
22229 (truncf): Define using libm_alias_float.
22230 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22231 <libm-alias-float.h>.
22232 (copysignf): Define using libm_alias_float.
22233 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22234 <libm-alias-float.h>.
22235 (llrintf): Define using libm_alias_float.
22236 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22237 <libm-alias-float.h>.
22238 (llroundf): Define using libm_alias_float.
22239 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22240 <libm-alias-float.h>.
22241 (cosf): Define using libm_alias_float.
22242 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22243 <libm-alias-float.h>.
22244 (llrintf): Define using libm_alias_float.
22245 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22246 <libm-alias-float.h>.
22247 (llroundf): Define using libm_alias_float.
22248 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22249 <libm-alias-float.h>.
22250 (sinf): Define using libm_alias_float.
22251
22252 2017-12-04 Florian Weimer <fweimer@redhat.com>
22253
22254 * support/check.h (TEST_COMPARE): Define.
22255 (support_test_compare_failure): Declare.
22256 * support/Makefile (libsupport-routines): Add
22257 support_test_compare_failure.
22258 (tests): Add tst-test_compare.
22259 * support /support_test_compare_failure.c: New file.
22260 * support/tst-test_compare.c: Likewise.
22261
22262 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22263
22264 [BZ #22527]
22265 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22266 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22267 available, this rewrite of the collation rules does reproduce
22268 the test file in the same order.
22269
22270 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22271
22272 [BZ #10580]
22273 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22274 digraphs in the month and day names. Using single code points for
22275 digraphs is deprecated. While there are dedicated Unicode
22276 codepoints, for the digraphs, these are included for backwards
22277 compatibility and modern texts use a sequence of Basic Latin
22278 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22279 This makes the month and day names agree exactly with CLDR now,
22280 CLDR does not use the single code points for the digraphs either.
22281
22282 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22283
22284 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22285
22286 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22287
22288 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22289 of floor.
22290
22291 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22292
22293 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22294 Define only for libc.so.
22295
22296 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22297
22298 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22299 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22300 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22301 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22302 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22303
22304 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22305
22306 [BZ #5997]
22307 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22308
22309 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22310
22311 [BZ libc/19170]
22312 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22313 PREINIT_FUNCTION_WEAK is nonzero.
22314 (gmon_initializer): New function. Put procedure label for it in
22315 .init_array section.
22316 (_init): Don't call PREINIT_FUNCTION.
22317 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22318 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22319 value when map argument is null.
22320
22321 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22322 depi instruction from PIC pc-relative sequence.
22323 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22324 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22325 (elf_machine_load_address): Likewise.
22326 (elf_machine_runtime_setup): Likewise.
22327
22328 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22329
22330 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22331 <libm-alias-double.h>.
22332 (logb): Define using libm_alias_double.
22333 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22334 <libm-alias-double.h>.
22335 (copysign): Define using libm_alias_double.
22336 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22337 <libm-alias-double.h>.
22338 (llrint): Define using libm_alias_double.
22339 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22340 <libm-alias-double.h>.
22341 (llround): Define using libm_alias_double.
22342 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22343 <libm-alias-double.h>.
22344 (lrint): Define using libm_alias_double.
22345 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22346 <libm-alias-double.h>.
22347 (lround): Define using libm_alias_double.
22348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22349 Include <libm-alias-double.h>.
22350 (copysign): Define using libm_alias_double.
22351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22352 Include <libm-alias-double.h>.
22353 (llrint): Define using libm_alias_double.
22354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22355 Include <libm-alias-double.h>.
22356 (llround): Define using libm_alias_double.
22357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22358 <libm-alias-double.h>.
22359 (logb): Define using libm_alias_double.
22360 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22361 Include <libm-alias-double.h>.
22362 (lrint): Define using libm_alias_double.
22363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22364 Include <libm-alias-double.h>.
22365 (lround): Define using libm_alias_double.
22366 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22367 <libm-alias-double.h>.
22368 (llrint): Define using libm_alias_double.
22369 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22370 <libm-alias-double.h>.
22371 (llround): Define using libm_alias_double.
22372 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22373 <libm-alias-double.h>.
22374 (llround): Define using libm_alias_double.
22375 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22376 <libm-alias-double.h>.
22377 (lround): Define using libm_alias_double.
22378 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22379 <libm-alias-double.h>.
22380 (copysign): Define using libm_alias_double.
22381 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22382 <libm-alias-double.h>.
22383 (llrint): Define using libm_alias_double.
22384 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22385 <libm-alias-double.h>.
22386 (llround): Define using libm_alias_double.
22387 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22388 <libm-alias-double.h>.
22389 (lrint): Define using libm_alias_double.
22390 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22391 <libm-alias-double.h>.
22392 (lround): Define using libm_alias_double.
22393 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22394 <libm-alias-double.h>.
22395 (copysign): Define using libm_alias_double.
22396 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22397 <libm-alias-double.h>.
22398 (llrint): Define using libm_alias_double.
22399 (lrint): Likewise.
22400 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22401 <libm-alias-double.h>.
22402 (llround): Define using libm_alias_double.
22403 (lround): Likewise.
22404 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22405 <libm-alias-double.h>.
22406 (logb): Define using libm_alias_double.
22407 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22408 <libm-alias-double.h>.
22409 (copysign): Define using libm_alias_double.
22410 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22411 <libm-alias-double.h>.
22412 (llrint): Define using libm_alias_double.
22413 (lrint): Likewise.
22414 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22415 <libm-alias-double.h>.
22416 (llround): Define using libm_alias_double.
22417 (lround): Likewise.
22418 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22419 <libm-alias-double.h>.
22420 (llround): Define using libm_alias_double.
22421 (lround): Likewise.
22422 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22423 <libm-alias-double.h>.
22424 (copysign): Define using libm_alias_double.
22425 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22426 <libm-alias-double.h>.
22427 (llrint): Define using libm_alias_double.
22428 (lrint): Likewise.
22429 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22430 <libm-alias-double.h>.
22431 (llround): Define using libm_alias_double.
22432 (lround): Likewise.
22433 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22434 <libm-alias-double.h>.
22435 (llrint): Define using libm_alias_double.
22436 (lrint): Likewise.
22437 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22438 <libm-alias-double.h>.
22439 (llround): Define using libm_alias_double.
22440 (lround): Likewise.
22441
22442 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22443
22444 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22445 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22446 compat symbol based on llround.
22447
22448 * sysdeps/powerpc/power7/fpu/s_logb.c
22449 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22450 symbol based on __logb, not on logb.
22451 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22452 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22453 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22454 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22455
22456 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22457 (rint): Define using libm_alias_double.
22458 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22459 <libm-alias-double.h>.
22460 (modf): Define using libm_alias_double.
22461 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22462 <libm-alias-double.h>.
22463 (ceil): Define using libm_alias_double.
22464 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22465 <libm-alias-double.h>.
22466 (floor): Define using libm_alias_double.
22467 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22468 <libm-alias-double.h>.
22469 (nearbyint): Define using libm_alias_double.
22470 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22471 <libm-alias-double.h>.
22472 (rint): Define using libm_alias_double.
22473 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22474 <libm-alias-double.h>.
22475 (round): Define using libm_alias_double.
22476 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22477 <libm-alias-double.h>.
22478 (trunc): Define using libm_alias_double.
22479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22480 <libm-alias-double.h>.
22481 (ceil): Define using libm_alias_double.
22482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22483 Include <libm-alias-double.h>.
22484 (floor): Define using libm_alias_double.
22485 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22486 <libm-alias-double.h>.
22487 (modf): Define using libm_alias_double.
22488 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22489 Include <libm-alias-double.h>.
22490 (round): Define using libm_alias_double.
22491 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22492 Include <libm-alias-double.h>.
22493 (trunc): Define using libm_alias_double.
22494 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22495 <libm-alias-double.h>.
22496 (ceil): Define using libm_alias_double.
22497 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22498 <libm-alias-double.h>.
22499 (floor): Define using libm_alias_double.
22500 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22501 <libm-alias-double.h>.
22502 (round): Define using libm_alias_double.
22503 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22504 <libm-alias-double.h>.
22505 (trunc): Define using libm_alias_double.
22506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22507 <libm-alias-double.h>.
22508 (ceil): Define using libm_alias_double.
22509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22510 <libm-alias-double.h>.
22511 (floor): Define using libm_alias_double.
22512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22513 <libm-alias-double.h>.
22514 (modf): Define using libm_alias_double.
22515 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22516 <libm-alias-double.h>.
22517 (round): Define using libm_alias_double.
22518 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22519 <libm-alias-double.h>.
22520 (trunc): Define using libm_alias_double.
22521 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22522 <libm-alias-double.h>.
22523 (ceil): Define using libm_alias_double.
22524 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22525 <libm-alias-double.h>.
22526 (floor): Define using libm_alias_double.
22527 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22528 <libm-alias-double.h>.
22529 (nearbyint): Define using libm_alias_double.
22530 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22531 <libm-alias-double.h>.
22532 (rint): Define using libm_alias_double.
22533 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22534 <libm-alias-double.h>.
22535 (round): Define using libm_alias_double.
22536 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22537 <libm-alias-double.h>.
22538 (trunc): Define using libm_alias_double.
22539 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22540 <libm-alias-double.h>.
22541 (ceil): Define using libm_alias_double.
22542 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22543 <libm-alias-double.h>.
22544 (floor): Define using libm_alias_double.
22545 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22546 <libm-alias-double.h>.
22547 (round): Define using libm_alias_double.
22548 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22549 <libm-alias-double.h>.
22550 (trunc): Define using libm_alias_double.
22551
22552 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22553 (fabs): Define using libm_alias_double.
22554 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22555 (fma): Define using libm_alias_double.
22556 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22557 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22558 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22559 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22560
22561 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22562
22563 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22564
22565 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22566 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22567 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22568
22569 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22570 due redirect macro.
22571
22572 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22573
22574 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22575
22576 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22577
22578 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22579 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22580 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22581 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22582
22583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22584 (libm-sysdep_routines): Add s_nearbyintf-generic and
22585 s_nearbyint-generic.
22586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22587 New file.
22588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22590 Likewise.
22591 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22592 Likewise.
22593 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22594 file.
22595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22596 Likewise.
22597
22598 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22599 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22601 file.
22602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22604 Likewise.
22605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22606 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22607 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22608
22609 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22610 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22611 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22612 file.
22613 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22615 Likewise.
22616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22617 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22619
22620 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22621 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22623 file.
22624 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22626 Likewise.
22627 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22628 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22629 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22630
22631 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22632 (sysdep_calls): New rule.
22633 (sysdep_routines): Use sysdep_calls as base.
22634 (libm-sysdep_routines): Add generic rule for symbols shared with
22635 libc. Add s_copysign-generic and s_copysign-generic objects.
22636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22637 New file.
22638 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22639 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22640 Likewise.
22641 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22642 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22643 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22644
22645 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22646
22647 [BZ #22519]
22648 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22649 the list of locales to be built for testing.
22650 * localedata/is_IS.UTF-8.in: New file.
22651 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22652 on iso14651_t1.
22653
22654 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22655
22656 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22657 <libm-alias-float.h>.
22658 (fabsf): Define using libm_alias_float.
22659
22660 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22661
22662 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22663
22664 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22665
22666 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22667 <libm-alias-float.h>.
22668 (fabsf): Define using libm_alias_float.
22669 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22670 <libm-alias-float.h>.
22671 (lrintf): Define using libm_alias_float.
22672 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22673 <libm-alias-float.h>.
22674 (rintf): Define using libm_alias_float.
22675
22676 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22677 <libm-alias-double.h>.
22678 (fabs): Define using libm_alias_double.
22679 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22680 <libm-alias-double.h>.
22681 (lrint): Define using libm_alias_double.
22682 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22683 <libm-alias-double.h>.
22684 (rint): Define using libm_alias_double.
22685
22686 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22687 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22688 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22689 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22690 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22691 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22692 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22693 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22694 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22695 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22696 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22697 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22698 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22699 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22700 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22701 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22702 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22703 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22704 s_atan_template.c.
22705 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22706 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22707 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22708 s_ceil_template.c.
22709 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22710 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22711 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22712 s_cos_template.c.
22713 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22714 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22715 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22716 s_expm1_template.c.
22717 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22718 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22719 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22720 s_fabs_template.c.
22721 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22722 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22723 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22724 s_floor_template.c.
22725 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22726 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22727 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22728 s_frexp_template.c.
22729 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22730 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22731 s_lrint_template.c.
22732 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22733 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22734 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22735 s_modf_template.c.
22736 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22737 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22738 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22739 s_nearbyint_template.c.
22740 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22741 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22742 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22743 s_remquo_template.c.
22744 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22745 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22746 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22747 s_rint_template.c.
22748 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22749 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22750 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22751 s_sin_template.c.
22752 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22753 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22754 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22755 s_sincos_template.c.
22756 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22757 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22758 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22759 s_tan_template.c.
22760 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22761 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22762 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22763 s_tanh_template.c.
22764 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22765 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22766 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22767 s_trunc_template.c.
22768 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22769 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22770 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22771 s_atan.c instead of including s_atan.c.
22772 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22773 s_atanf.c instead of including s_atanf.c.
22774 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22775 s_atanl.c instead of including s_atanl.c.
22776 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22777 instead of s_atan.c.
22778 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22779 instead of s_atanf.c.
22780 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22781 instead of s_atanl.c.
22782
22783 * scripts/update-copyrights: Do not handle intl/plural.c
22784 specially.
22785
22786 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22787
22788 [BZ #22432]
22789 * configure.ac (BISON): Require to be present.
22790 * configure: Regenerated.
22791 * intl/Makefile (generated): Add plural.c.
22792 [$(BISON) != no]: Make code unconditional.
22793 (plural.c): Change rule to $(objpfx)plural.c.
22794 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22795 * intl/plural.c: Remove.
22796 * manual/install.texi (Tools for Compilation): Document bison as
22797 required.
22798 * INSTALL: Regenerated.
22799
22800 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22801
22802 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22803 <libm-alias-double.h>.
22804 (llrint): Define using libm_alias_double.
22805 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22806 <libm-alias-float.h>.
22807 (llrintf): Define using libm_alias_float.
22808 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22809 <libm-alias-ldouble.h>.
22810 (llrintl): Define using libm_alias_ldouble.
22811
22812 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22813 declare_mgen_alias instead of weak_alias.
22814 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22815 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22816 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22817
22818 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22819
22820 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22821 Add add_n-generic.
22822 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22823 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22824 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22825
22826 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22827 Add submul_1-generic.
22828 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22829 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22830 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22831
22832 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22833 Add addmul_1-generic.
22834 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22835 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22836 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22837
22838 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22839 Add sub_n-generic.
22840 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22841 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22842 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22843
22844 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22845 Add mul_1-generic.
22846 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22847 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22848 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22849
22850 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22851
22852 According to CLDR, collation rules for Serbian and Bosnian
22853 should be the same as for Croatian.
22854
22855 [BZ #22534]
22856 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22857 and to the list of locales to be built for testing.
22858 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22859 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22860 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22861 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22862
22863 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22864
22865 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22866 to make test case pass.
22867 * localedata/hr_HR.UTF-8.in: Add more test strings.
22868
22869 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22870
22871 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22872
22873 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22874
22875 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22876 the list of locales to built for testing.
22877 * localedata/hr_HR.UTF-8.in: New file.
22878
22879 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22880
22881 [BZ #10580]
22882 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22883 iso14651_t1.
22884 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22885 CLDR (except use ligatures for the digraphs, CLDR does not use
22886 the ligatures), add first_workday, some fixes in the date and time
22887 formats.
22888 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22889 for Đ and đ.
22890 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22891 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22892 Add int_p_cs_precedes and int_n_cs_precedes.
22893 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22894 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22895 LC_MONETARY now).
22896 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22897 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22898 name_miss.
22899 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22900 and lang_lib. Change postal_fmt.
22901
22902 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22903
22904 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22905 <setjmp.h>.
22906 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22907 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22908 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22909 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22910 * sysdeps/generic/setjmpP.h: New file.
22911 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22912 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22913 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22914 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22915 Add jmp_buf-ssp.sym.
22916 (tests): Add tst-saved_mask-1.
22917
22918 2017-11-30 Arjun Shankar <arjun@redhat.com>
22919
22920 [BZ #22375]
22921 CVE-2017-17426
22922 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22923 instead of request2size.
22924
22925 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22926
22927 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22928 (__lllrint): Remove alias.
22929 (lllrint): Likewise.
22930 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22931 (__lllrintf): Likewise.
22932 (lllrintf): Likewise.
22933
22934 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22935 <libm-alias-float.h>.
22936 (copysignf): Define using libm_alias_float.
22937 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22938 <libm-alias-float.h>.
22939 (fabsf): Define using libm_alias_float.
22940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22941 Include <libm-alias-float.h>.
22942 (copysignf): Define using libm_alias_float.
22943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22944 <libm-alias-float.h>.
22945 (fabsf): Define using libm_alias_float.
22946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22947 <libm-alias-float.h>.
22948 (fdimf): Define using libm_alias_float.
22949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22950 <libm-alias-float.h>.
22951 (fmaf): Define using libm_alias_float.
22952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22953 <libm-alias-float.h>.
22954 (llrintf): Define using libm_alias_float.
22955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22956 Include <libm-alias-float.h>.
22957 (nearbyintf): Define using libm_alias_float.
22958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22959 <libm-alias-float.h>.
22960 (rintf): Define using libm_alias_float.
22961 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22962 <libm-alias-float.h>.
22963 (llrintf): Define using libm_alias_float.
22964 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22965 <libm-alias-float.h>.
22966 (lrintf): Define using libm_alias_float.
22967 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22968 <libm-alias-float.h>.
22969 (nearbyintf): Define using libm_alias_float.
22970 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22971 <libm-alias-float.h>.
22972 (rintf): Define using libm_alias_float.
22973 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22974 <libm-alias-float.h>.
22975 (ceilf): Define using libm_alias_float.
22976 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22977 <libm-alias-float.h>.
22978 (floorf): Define using libm_alias_float.
22979 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22980 <libm-alias-float.h>.
22981 (fmaf): Define using libm_alias_float.
22982 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22983 <libm-alias-float.h>.
22984 (lrintf): Define using libm_alias_float.
22985 (llrintf): Likewise.
22986 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22987 <libm-alias-float.h>.
22988 (nearbyintf): Define using libm_alias_float.
22989 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22990 <libm-alias-float.h>.
22991 (rintf): Define using libm_alias_float.
22992 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22993 <libm-alias-float.h>.
22994 (truncf): Define using libm_alias_float.
22995 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22996 <libm-alias-float.h>.
22997 (copysignf): Define using libm_alias_float.
22998 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22999 <libm-alias-float.h>.
23000 (fabsf): Define using libm_alias_float.
23001 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
23002 <libm-alias-float.h>.
23003 (lrintf): Define using libm_alias_float.
23004 (llrintf): Likewise.
23005 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
23006 <libm-alias-float.h>.
23007 (nearbyintf): Define using libm_alias_float.
23008 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
23009 <libm-alias-float.h>.
23010 (rintf): Define using libm_alias_float.
23011
23012 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23013
23014 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
23015 <libm-alias-double.h>.
23016 (copysign): Define using libm_alias_double.
23017 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
23018 <libm-alias-double.h>.
23019 (fabs): Define using libm_alias_double.
23020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23021 Include <libm-alias-double.h>.
23022 (copysign): Define using libm_alias_double.
23023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
23024 <libm-alias-double.h>.
23025 (fabs): Define using libm_alias_double.
23026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
23027 <libm-alias-double.h>.
23028 (fdim): Define using libm_alias_double.
23029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
23030 <libm-alias-double.h>.
23031 (fma): Define using libm_alias_double.
23032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
23033 <libm-alias-double.h>.
23034 (llrint): Define using libm_alias_double.
23035 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
23036 Include <libm-alias-double.h>.
23037 (nearbyint): Define using libm_alias_double.
23038 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
23039 <libm-alias-double.h>.
23040 (rint): Define using libm_alias_double.
23041 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23042 <libm-alias-double.h>.
23043 (fabs): Define using libm_alias_double.
23044 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
23045 <libm-alias-double.h>.
23046 (llrint): Define using libm_alias_double.
23047 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
23048 <libm-alias-double.h>.
23049 (nearbyint): Define using libm_alias_double.
23050 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
23051 <libm-alias-double.h>.
23052 (rint): Define using libm_alias_double.
23053 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
23054 <libm-alias-double.h>.
23055 (ceil): Define using libm_alias_double.
23056 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
23057 <libm-alias-double.h>.
23058 (floor): Define using libm_alias_double.
23059 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
23060 <libm-alias-double.h>.
23061 (fma): Define using libm_alias_double.
23062 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23063 <libm-alias-double.h>.
23064 (lrint): Define using libm_alias_double.
23065 (llrint): Likewise.
23066 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23067 <libm-alias-double.h>.
23068 (nearbyint): Define using libm_alias_double.
23069 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23070 <libm-alias-double.h>.
23071 (rint): Define using libm_alias_double.
23072 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23073 <libm-alias-double.h>.
23074 (trunc): Define using libm_alias_double.
23075 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23076 <libm-alias-double.h>.
23077 (copysign): Define using libm_alias_double.
23078 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23079 <libm-alias-double.h>.
23080 (fabs): Define using libm_alias_double.
23081 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23082 <libm-alias-double.h>.
23083 (lrint): Define using libm_alias_double.
23084 (llrint): Likewise.
23085 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23086 <libm-alias-double.h>.
23087 (nearbyint): Define using libm_alias_double.
23088 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23089 <libm-alias-double.h>.
23090 (rint): Define using libm_alias_double.
23091
23092 [BZ #22229]
23093 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23094 <math_ldbl_opt.h>.
23095 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23096
23097 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23098 SPARC --disable-multi-arch glibc variants.
23099
23100 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23101 <libm-alias-float.h>.
23102 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23103 if [SHARED].
23104 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23105 <libm-alias-float.h>.
23106 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23107 if [SHARED].
23108 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23109 <libm-alias-float.h>.
23110 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23111 if [SHARED].
23112 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23113 <libm-alias-float.h>.
23114 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23115 if [SHARED].
23116 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23117 <libm-alias-float.h>.
23118 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23119 if [SHARED].
23120 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23121 <libm-alias-float.h>.
23122 (ceilf): Define using libm_alias_float.
23123 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23124 <libm-alias-float.h>.
23125 (floorf): Define using libm_alias_float.
23126 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23127 <libm-alias-float.h>.
23128 (fmaf): Define using libm_alias_float.
23129 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23130 <libm-alias-float.h>.
23131 (nearbyintf): Define using libm_alias_float.
23132 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23133 <libm-alias-float.h>.
23134 (rintf): Define using libm_alias_float.
23135 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23136 <libm-alias-float.h>.
23137 (truncf): Define using libm_alias_float.
23138 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23139 (copysignf): Define using libm_alias_float.
23140 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23141 (cosf): Define using libm_alias_float.
23142 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23143 (fabsf): Define using libm_alias_float.
23144 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23145 (fmaxf): Define using libm_alias_float.
23146 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23147 (fminf): Define using libm_alias_float.
23148 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23149 (llrintf): Define using libm_alias_float.
23150 [!__ILP32__] (lrintf): Likewise.
23151 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23152 (sincosf): Define using libm_alias_float.
23153 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23154 (sinf): Define using libm_alias_float.
23155 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23156 (lrintf): Define using libm_alias_float.
23157
23158 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23159 <libm-alias-double.h>.
23160 (atan): Define using libm_alias_double.
23161 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23162 <libm-alias-double.h>.
23163 (ceil): Define using libm_alias_double.
23164 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23165 <libm-alias-double.h>.
23166 (floor): Define using libm_alias_double.
23167 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23168 <libm-alias-double.h>.
23169 (fma): Define using libm_alias_double.
23170 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23171 <libm-alias-double.h>.
23172 (nearbyint): Define using libm_alias_double.
23173 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23174 <libm-alias-double.h>.
23175 (rint): Define using libm_alias_double.
23176 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23177 <libm-alias-double.h>.
23178 (sin): Define using libm_alias_double.
23179 (cos): Likewise.
23180 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23181 <libm-alias-double.h>.
23182 (tan): Define using libm_alias_double.
23183 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23184 <libm-alias-double.h>.
23185 (trunc): Define using libm_alias_double.
23186 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23187 (copysign): Define using libm_alias_double.
23188 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23189 (fabs): Define using libm_alias_double.
23190 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23191 (fmax): Define using libm_alias_double.
23192 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23193 (fmin): Define using libm_alias_double.
23194 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23195 (llrint): Define using libm_alias_double.
23196 [!__ILP32__] (lrint): Likewise.
23197 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23198 (lrint): Define using libm_alias_double.
23199
23200 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23201
23202 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23203 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23204 objects.
23205 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23206 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23207 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23208 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23209 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23210 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23211
23212 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23213 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23214 objects.
23215 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23216 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23217 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23218 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23219 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23220 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23221
23222 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23223 (libm-sysdep_routines): Add s_nearbyint-generic and
23224 s_nearbyintf-generic objects.
23225 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23226 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23227 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23228 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23229 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23230 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23231
23232 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23233 Add s_finitef-generic and s_finite-generic objects.
23234 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23235 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23236 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23237 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23238 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23239 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23240
23241 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23242 Add s_isinff-generic and s_isinf-generic objects.
23243 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23244 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23245 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23246 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23247 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23248 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23249
23250 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23251 Add s_isnanf-generic and s_isnan-generic objects.
23252 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23253 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23254 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23255 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23256 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23257 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23258
23259 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23260 macro.
23261 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23262 rule.
23263 (sysdep_routines): Use sysdep_calls as base.
23264 (libm-sysdep_routines): Add generic rule for symbols shared with
23265 libc. Add s_signbit-generic and s_signbitf-generic objects.
23266 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23267 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23268 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23269 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23270 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23271 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23272
23273 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23274
23275 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23276 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23277 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23278 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23279 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23280 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23281 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23282 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23283 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23284 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23285 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23286 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23287 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23288 libm_alias_float_r.
23289 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23290 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23291 (logf): Likewise.
23292 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23293 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23294 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23295 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23296 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23297 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23298 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23299 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23300 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23301 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23302 libm_alias_float.
23303 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23304 (cosf): Likewise.
23305 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23306 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23307 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23308 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23309 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23310 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23311 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23312 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23313 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23314 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23315 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23316 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23317 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23318 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23319 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23320 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23321 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23322 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23323 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23324 libm_alias_float.
23325 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23326 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23327 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23328 * sysdeps/ia64/fpu/w_lgammaf_main.c
23329 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23330 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23331
23332 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23333 Alexandre Oliva <aoliva@redhat.com>
23334
23335 [BZ #17750]
23336 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23337 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23338 accents sorting.
23339 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23340 sorting.
23341 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23342 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23343 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23344 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23345 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23346 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23347 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23348 instead of “ifdef DIACRIT_BACKWARD”.
23349
23350 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23351
23352 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23353 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23354 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23355 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23356 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23357 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23358 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23359 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23360 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23361 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23362 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23363 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23364 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23365 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23366 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23367 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23368 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23369 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23370 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23371 ($(have-as-vis3) == yes): Remove conditional.
23372 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23373 Likewise.
23374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23375 file.
23376 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23377 file.
23378 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23379 file.
23380 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23381 file.
23382 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23383 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23384 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23385 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23386 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23387 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23388 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23389 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23390
23391 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23392
23393 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23394 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23395 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23396 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23397 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23398 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23399 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23400 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23401 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23402 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23403 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23404 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23405 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23406 libm_alias_double_r.
23407 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23408 (log): Likewise.
23409 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23410 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23411 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23412 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23413 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23414 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23415 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23416 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23417 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23418 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23419 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23420 libm_alias_double.
23421 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23422 (cos): Likewise.
23423 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23424 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23425 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23426 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23427 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23428 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23429 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23430 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23431 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23432 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23433 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23434 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23435 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23436 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23437 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23438 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23439 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23440 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23441 libm_alias_double.
23442 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23443 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23444 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23445 * sysdeps/ia64/fpu/w_lgamma_main.c
23446 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23447 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23448
23449 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23450
23451 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23452 address of $global$ into %dp register earlier. Use pc-relative
23453 instruction sequence for PIC case.
23454
23455 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23456
23457 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23458 (asinhf): Define using libm_alias_float.
23459 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23460 (atanf): Define using libm_alias_float.
23461 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23462 (cbrtf): Define using libm_alias_float.
23463 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23464 (ceilf): Define using libm_alias_float.
23465 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23466 (copysignf): Define using libm_alias_float.
23467 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23468 (expm1f): Define using libm_alias_float.
23469 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23470 (fabsf): Define using libm_alias_float.
23471 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23472 (floorf): Define using libm_alias_float.
23473 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23474 (fmaxf): Define using libm_alias_float.
23475 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23476 (fminf): Define using libm_alias_float.
23477 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23478 (frexpf): Define using libm_alias_float.
23479 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23480 (llrintf): Define using libm_alias_float.
23481 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23482 (logbf): Define using libm_alias_float.
23483 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23484 (lrintf): Define using libm_alias_float.
23485 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23486 (nearbyintf): Define using libm_alias_float.
23487 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23488 (remquof): Define using libm_alias_float.
23489 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23490 (rintf): Define using libm_alias_float.
23491 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23492 (truncf): Define using libm_alias_float.
23493 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23494 <libm-alias-float.h>.
23495 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23496 if [SHARED].
23497 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23498 <libm-alias-float.h>.
23499 (expf): Define using libm_alias_float, or libm_alias_float_other
23500 if [SHARED].
23501 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23502 <libm-alias-float.h>.
23503 (log2f): Define using libm_alias_float, or libm_alias_float_other
23504 if [SHARED].
23505 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23506 <libm-alias-float.h>.
23507 (logf): Define using libm_alias_float, or libm_alias_float_other
23508 if [SHARED].
23509 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23510 <libm-alias-float.h>.
23511 (powf): Define using libm_alias_float, or libm_alias_float_other
23512 if [SHARED].
23513 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23514 <libm-alias-float.h>.
23515 (cosf): Define using libm_alias_float.
23516 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23517 <libm-alias-float.h>.
23518 (sincosf): Define using libm_alias_float.
23519 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23520 <libm-alias-float.h>.
23521 (sinf): Define using libm_alias_float.
23522 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23523 (fmaxf): Define using libm_alias_float.
23524 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23525 (fminf): Define using libm_alias_float.
23526 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23527 <libm-alias-float.h>.
23528 (fmaf): Define using libm_alias_float.
23529
23530 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23531 (asinh): Define using libm_alias_double.
23532 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23533 (atan): Define using libm_alias_double.
23534 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23535 (cbrt): Define using libm_alias_double.
23536 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23537 (ceil): Define using libm_alias_double.
23538 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23539 (copysign): Define using libm_alias_double.
23540 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23541 (expm1): Define using libm_alias_double.
23542 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23543 (fabs): Define using libm_alias_double.
23544 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23545 (fdim): Define using libm_alias_double.
23546 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23547 (floor): Define using libm_alias_double.
23548 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23549 (fmax): Define using libm_alias_double.
23550 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23551 (fmin): Define using libm_alias_double.
23552 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23553 (frexp): Define using libm_alias_double.
23554 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23555 (llrint): Define using libm_alias_double.
23556 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23557 (logb): Define using libm_alias_double.
23558 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23559 (lrint): Define using libm_alias_double.
23560 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23561 (nearbyint): Define using libm_alias_double.
23562 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23563 (remquo): Define using libm_alias_double.
23564 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23565 (rint): Define using libm_alias_double.
23566 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23567 (trunc): Define using libm_alias_double.
23568 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23569 (fmax): Define using libm_alias_double.
23570 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23571 (fmin): Define using libm_alias_double.
23572 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23573 (fma): Define using libm_alias_double.
23574
23575 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23576
23577 [BZ #22370]
23578 * elf/dl-hwcaps.c (ROUND): Removed.
23579 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23580 and ELF_NOTE_NEXT_OFFSET.
23581 * elf/dl-load.c (ROUND): Removed.
23582 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23583 * elf/readelflib.c (ROUND): Removed.
23584 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23585 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23586 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23587 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23588
23589 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23590
23591 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23592 [!__fmaf] (fmaf): Define using libm_alias_float.
23593
23594 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23595 [!__fma] (fma): Define using libm_alias_double.
23596 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23597
23598 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23599
23600 [BZ #22336]
23601 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23602 and implement the collation rules for cs from CLDR on top of that.
23603 * Makefile: Add cs_CZ.UTF-8 to test-input.
23604 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23605
23606 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23607
23608 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23609
23610 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23611 Icarus Sparry <icarus.w.sparry@intel.com>
23612
23613 * benchtests/Makefile:Add BENCHSET to allow subsets of
23614 benchmarks to be run.
23615 * benchtests/README: Add documentation for: Running subsets of
23616 benchmarks.
23617
23618 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23619
23620 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23621 range of tests names.
23622
23623 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23624 result from property and remove "max", min" and "mean" from
23625 required properties based on benchtests/bench-skeleton.c.
23626
23627 2017-11-28 Florian Weimer <fweimer@redhat.com>
23628
23629 [BZ #20826]
23630 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23631 due to Internet requirement.
23632 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23633 tst-getaddrinfo5.
23634 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23635
23636 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23637
23638 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23639 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23640 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23641 (sysdep_routines): Add memset-ultra1.
23642 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23643 file.
23644 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23645 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23646 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23647 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23648 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23649 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23650 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23651 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23652
23653 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23654 file.
23655 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23656 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23657 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23658 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23659 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23660 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23661 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23662 macro.
23663 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23664 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23665 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23666 (sysdep_routines): Add memcpy-ultra1.
23667 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23668 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23669
23670 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23671
23672 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23673 (cfloat_versions): Take function argument without trailing 'f'.
23674 Call libm_alias_float_other.
23675 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23676 * sysdeps/alpha/fpu/cargf.c: Likewise.
23677 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23678 * sysdeps/alpha/fpu/conjf.c: Likewise.
23679 * sysdeps/alpha/fpu/crealf.c: Likewise.
23680 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23681 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23682 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23683 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23684 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23685 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23686 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23687 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23688 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23689 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23690 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23691 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23692 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23693 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23694 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23695 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23696 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23697 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23698 (clog10f): Use libm_alias_float_other.
23699 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23700 (ceilf): Define using libm_alias_float.
23701 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23702 (copysignf): Define using libm_alias_float.
23703 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23704 (fabsf): Define using libm_alias_float.
23705 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23706 (floorf): Define using libm_alias_float.
23707 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23708 (fmaxf): Define using libm_alias_float.
23709 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23710 (fminf): Define using libm_alias_float.
23711 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23712 (lrintf): Define using libm_alias_float.
23713 (llrintf): Likewise.
23714 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23715 (lroundf): Define using libm_alias_float.
23716 (llroundf): Likewise.
23717 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23718 (rintf): Define using libm_alias_float.
23719 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23720 (truncf): Define using libm_alias_float.
23721
23722 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23723 (ceilf): Define using libm_alias_float.
23724 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23725 (floorf): Define using libm_alias_float.
23726 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23727 (fmaf): Define using libm_alias_float.
23728 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23729 (fmaxf): Define using libm_alias_float.
23730 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23731 (fminf): Define using libm_alias_float.
23732 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23733 (llrintf): Define using libm_alias_float.
23734 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23735 (llroundf): Define using libm_alias_float.
23736 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23737 (lrintf): Define using libm_alias_float.
23738 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23739 (lroundf): Define using libm_alias_float.
23740 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23741 <libm-alias-float.h>.
23742 (nearbyintf): Define using libm_alias_float.
23743 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23744 (rintf): Define using libm_alias_float.
23745 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23746 (roundf): Define using libm_alias_float.
23747 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23748 (truncf): Define using libm_alias_float.
23749
23750 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23751 (ceil): Define using libm_alias_double.
23752 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23753 (copysign): Define using libm_alias_double.
23754 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23755 (fabs): Define using libm_alias_double.
23756 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23757 (floor): Define using libm_alias_double.
23758 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23759 (fmax): Define using libm_alias_double.
23760 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23761 (fmin): Define using libm_alias_double.
23762 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23763 (lrint): Define using libm_alias_double.
23764 (llrint): Likewise.
23765 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23766 (lround): Define using libm_alias_double.
23767 (llround): Likewise.
23768 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23769 (rint): Define using libm_alias_double.
23770 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23771 (trunc): Define using libm_alias_double.
23772
23773 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23774 (libm_alias_double_r): Add semicolon after weak_alias call.
23775
23776 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23777
23778 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23779 (ceil): Define using libm_alias_double.
23780 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23781 (floor): Define using libm_alias_double.
23782 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23783 (fma): Define using libm_alias_double.
23784 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23785 (fmax): Define using libm_alias_double.
23786 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23787 (fmin): Define using libm_alias_double.
23788 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23789 (llrint): Define using libm_alias_double.
23790 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23791 (llround): Define using libm_alias_double.
23792 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23793 (lrint): Define using libm_alias_double.
23794 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23795 (lround): Define using libm_alias_double.
23796 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23797 (nearbyint): Define using libm_alias_double.
23798 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23799 (rint): Define using libm_alias_double.
23800 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23801 (round): Define using libm_alias_double.
23802 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23803 (trunc): Define using libm_alias_double.
23804
23805 2017-11-27 Florian Weimer <fweimer@redhat.com>
23806
23807 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23808 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23809 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23810 (tests): Add tst-mlock2.
23811 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23812 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23813 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23814 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23815 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23816 for mlock. Document mlock2.
23817
23818 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23819
23820 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23821 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23822 Likewise.
23823 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23824 Likewise.
23825 * sysdeps/x86/Makeconfig: New file.
23826 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23827 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23828 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23829 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23830 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23831 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23832 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23833 Likewise.
23834 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23835 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23836 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23837 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23838 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23839 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23840 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23841 * manual/math.texi (Mathematics): Document support for _Float64x.
23842 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23843 * stdlib/Versions (GLIBC_2.27): Likewise.
23844 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23845 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23846 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23847 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23848 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23849 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23850 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23851 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23852 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23853 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23854 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23855 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23856 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23857 Likewise.
23858 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23859 Likewise.
23860 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23861 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23862 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23863 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23864 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23865 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23866 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23867 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23868 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23869 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23870 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23871 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23872 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23873 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23874
23875 2017-11-27 Andreas Schwab <schwab@suse.de>
23876
23877 * elf/Makefile (dl-routines): Add dl-sort-maps.
23878 * elf/dl-sort-maps.c: New file.
23879 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23880 (_dl_sort_maps): Declare.
23881 * elf/dl-fini.c (_dl_sort_fini): Remove.
23882 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23883 * elf/dl-close.c (_dl_close_worker): Likewise.
23884 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23885 open-coding it.
23886 * elf/dl-open.c (dl_open_worker): Likewise.
23887
23888 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23889
23890 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23891 using libm_alias_float128.
23892 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23893 Likewise.
23894 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23895 Likewise.
23896 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23897 (setpayloadsigf128): Likewise.
23898 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23899 Likewise.
23900 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23901 Likewise.
23902
23903 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23904 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23905 -mfloat128 to CFLAGS.
23906 ($(foreach
23907 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23908 Likewise.
23909 (CFLAGS-libm-test-support-float64x.c): New variable.
23910 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23911 $(f128-loader-link) to gnulib-tests.
23912
23913 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23914 (libm_alias_float128_other_r): If
23915 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23916 alias.
23917 (libm_alias_float128_r): Add semicolon after weak_alias call.
23918 * sysdeps/generic/libm-alias-ldouble.h
23919 (libm_alias_ldouble_other_r_f128): New macro.
23920 (libm_alias_ldouble_other_r_f64x): Likewise.
23921 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23922 and libm_alias_ldouble_other_r_f64x.
23923 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23924 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23925 (libm_alias_ldouble_other_r_f128): New macro.
23926 (libm_alias_ldouble_other_r_f64x): Likewise.
23927 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23928 and libm_alias_ldouble_other_r_f64x.
23929
23930 * stdlib/strfroml.c: Always include <stdlib.h>.
23931 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23932 undefine as macro and define as weak alias.
23933 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23934 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23935 <stdlib.h>.
23936 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23937 Define and later undefine as macro and define as weak alias.
23938
23939 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23940 Define and later undefine as macro. Define as weak alias if
23941 [!USE_WIDE_CHAR].
23942 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23943 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23944 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23945 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23946 Define and later undefine as macro. Define as weak alias if
23947 [!USE_WIDE_CHAR].
23948 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23949 Define and later undefine as macro. Define as weak alias if
23950 [USE_WIDE_CHAR].
23951 * sysdeps/ieee754/float128/strtof128_l.c
23952 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23953 Define and later undefine as macro. Define as weak alias if
23954 [!USE_WIDE_CHAR].
23955 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23956 Define and later undefine as macro. Define as weak alias if
23957 [USE_WIDE_CHAR].
23958 * sysdeps/ieee754/ldbl-128/strtold_l.c
23959 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23960 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23961 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23962 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23963 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23964 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23965 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23966 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23967 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23968 * sysdeps/ieee754/ldbl-96/strtold_l.c
23969 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23970 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23971 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23972 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23973
23974 * math/test-float64x.h: New file.
23975 * math/Makefile (type-float64x-yes): New variable.
23976 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23977
23978 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23979 function-like macro.
23980 (min_of_type_): Likewise.
23981 (min_of_type_l): Likewise.
23982 (min_of_type_f128): Likewise.
23983 (min_of_type): Pass () as last argument of __MATH_TG.
23984
23985 * stdlib/tst-strtod-round-skeleton.c
23986 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23987 headers.
23988
23989 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23990 for combinations of long double with _Float64 and _Float64x.
23991
23992 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23993 (__DECL_SIMD_cosf32): Likewise.
23994 (__DECL_SIMD_cosf64): Likewise.
23995 (__DECL_SIMD_cosf32x): Likewise.
23996 (__DECL_SIMD_cosf64x): Likewise.
23997 (__DECL_SIMD_cosf128x): Likewise.
23998 (__DECL_SIMD_sinf16): Likewise.
23999 (__DECL_SIMD_sinf32): Likewise.
24000 (__DECL_SIMD_sinf64): Likewise.
24001 (__DECL_SIMD_sinf32x): Likewise.
24002 (__DECL_SIMD_sinf64x): Likewise.
24003 (__DECL_SIMD_sinf128x): Likewise.
24004 (__DECL_SIMD_sincosf16): Likewise.
24005 (__DECL_SIMD_sincosf32): Likewise.
24006 (__DECL_SIMD_sincosf64): Likewise.
24007 (__DECL_SIMD_sincosf32x): Likewise.
24008 (__DECL_SIMD_sincosf64x): Likewise.
24009 (__DECL_SIMD_sincosf128x): Likewise.
24010 (__DECL_SIMD_logf16): Likewise.
24011 (__DECL_SIMD_logf32): Likewise.
24012 (__DECL_SIMD_logf64): Likewise.
24013 (__DECL_SIMD_logf32x): Likewise.
24014 (__DECL_SIMD_logf64x): Likewise.
24015 (__DECL_SIMD_logf128x): Likewise.
24016 (__DECL_SIMD_expf16): Likewise.
24017 (__DECL_SIMD_expf32): Likewise.
24018 (__DECL_SIMD_expf64): Likewise.
24019 (__DECL_SIMD_expf32x): Likewise.
24020 (__DECL_SIMD_expf64x): Likewise.
24021 (__DECL_SIMD_expf128x): Likewise.
24022 (__DECL_SIMD_powf16): Likewise.
24023 (__DECL_SIMD_powf32): Likewise.
24024 (__DECL_SIMD_powf64): Likewise.
24025 (__DECL_SIMD_powf32x): Likewise.
24026 (__DECL_SIMD_powf64x): Likewise.
24027 (__DECL_SIMD_powf128x): Likewise.
24028
24029 * stdlib/Versions (libc): Move entries for wcstof128 and
24030 wcstof128_l to ....
24031 * wcsmbs/Versions (libc): ... here.
24032 Include <float128-abi.h>.
24033
24034 2017-11-24 Florian Weimer <fweimer@redhat.com>
24035
24036 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24037 bits/mman-shared.h.
24038 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
24039 <bits/mman-shared.h>.
24040 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
24041 to ...
24042 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
24043 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
24044 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
24045 <bits/mman-shared.h>.
24046
24047 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24048
24049 [BZ #22457]
24050 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
24051 posix_memalign/free.
24052 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
24053
24054 2017-11-22 Mike FABIAN <mfabian@redhat.com>
24055
24056 [BZ #22469]
24057 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
24058 and implement the collation rules for pl from CLDR on top of that.
24059 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
24060 of locales to be built for testing.
24061 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24062
24063 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24064
24065 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24066 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24067 libm_alias_ldouble_other.
24068 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24069 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24070 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24071 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24072 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24073 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24074 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24075 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24076 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24077 libm_alias_ldouble_r.
24078 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24079 libm_alias_ldouble_other.
24080 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24081 (log10l): Likewise.
24082 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24083 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24084 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24085 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24086 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24087 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24088 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24089 (atan2l): Likewise.
24090 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24091 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24092 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24093 libm_alias_ldouble.
24094 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24095 (cosl): Likewise.
24096 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24097 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24098 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24099 (expl): Likewise.
24100 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24101 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24102 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24103 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24104 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24105 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24106 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24107 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24108 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24109 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24110 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24111 libm_alias_ldouble.
24112 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24113 libm_alias_ldouble_other.
24114 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24115 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24116 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24117 libm_alias_ldouble.
24118 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24119 libm_alias_ldouble_other.
24120 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24121 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24122 * sysdeps/ia64/fpu/w_lgammal_main.c
24123 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24124 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24125
24126 2017-11-23 Florian Weimer <fweimer@redhat.com>
24127
24128 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24129 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24130 alike. Remove freeres marker.
24131 * malloc/arena.c (arena_thread_freeres): Call
24132 tcache_thread_shutdown.
24133
24134 2017-11-23 Florian Weimer <fweimer@redhat.com>
24135
24136 [BZ #22459]
24137 Export nscd hash function as __nss_hash.
24138 * include/nss.h (__nss_hash): Declare.
24139 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24140 symbol.
24141 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24142 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24143 of __nscd_hash.
24144 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24145 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24146 * nss/Makefiles (routines): Add nss_hash.
24147 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24148 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24149 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24150 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24151
24152 2017-11-23 Florian Weimer <fweimer@redhat.com>
24153
24154 [BZ #22478]
24155 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24156 Return error code, not -1.
24157 * signal/tst-sigwait-eintr.c: New file.
24158 * signal/Makefile (tests): Add tst-sigwait-eintr.
24159
24160 2017-11-23 Florian Weimer <fweimer@redhat.com>
24161
24162 Linux: Add memfd_create system call wrapper
24163 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24164 tst-memfd_create.
24165 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24166 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24167 [__USE_GNU] (memfd_create): Declare.
24168 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24169 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24170 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24171 * sysdeps/unix/sysv/linux/**.abilist: Update.
24172 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24173
24174 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24175
24176 * localedata/gen-locale.sh: Fix typo in variable name.
24177
24178 * resolv/res_debug.c (p_secstodate): Condition definition on
24179 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24180 directly as __p_secstodate, and as a compat symbol. Do not use
24181 libresolv_hidden_def.
24182 * resolv/resolv.h (p_secstodate): Remove macro and function
24183 declaration.
24184 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24185 using p_secstodate.
24186 * include/resolv.h (__p_secstodate): Do not use
24187 libresolv_hidden_proto.
24188 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24189 (tests-internal): ... here.
24190 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24191 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24192 and declare and use __p_secstodate and use compat_symbol_reference
24193 in that case.
24194 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24195 implementation returning 77.
24196
24197 [BZ #22463]
24198 * resolv/res_debug.c: Include <libc-diag.h>.
24199 (p_secstodate): Assert time_t at least as wide as u_long. On
24200 overflow, use integer seconds since the epoch as output, or use
24201 "<overflow>" as output and set errno to EOVERFLOW if integer
24202 seconds since the epoch would be 14 or more characters.
24203 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24204 for sprintf call.
24205 * resolv/tst-p_secstodate.c: New file.
24206 * resolv/Makefile (tests): Add tst-p_secstodate.
24207 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24208
24209 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24210 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24211 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24212
24213 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24214
24215 * posix/regcomp.c (init_word_char): Add comments.
24216
24217 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24218
24219 [BZ #22447]
24220 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24221 strlen to compute length of ut_user and set trailing NUL byte of
24222 result explicitly.
24223
24224 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24225
24226 [BZ #15537]
24227 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24228 using “copy "iso14651_t1"” and then implementing the
24229 collation rules for lv from CLDR on top of that.
24230 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24231 of locales to be built for testing.
24232 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24233 sorting.
24234
24235 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24236
24237 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24238 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24239 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24240 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24241 [__USE_MISC] (MADV_HWPOISON): New macro.
24242 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24243
24244 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24245
24246 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24247 -Wmissing-braces on GCC 4.9.
24248
24249 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24250
24251 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24252 * sysdeps/s390/s390-32/start.S (_start): Likewise
24253 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24254 (thread_start): Likewise.
24255 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24256 (thread_start): Likewise.
24257 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24258 (__makecontext_ret): Likewise.
24259 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24260 (__makecontext_ret): Likewise.
24261
24262 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24263
24264 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24265 __wcschrnul): Remove attribute_hidden.
24266
24267 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24268
24269 regex: don't assume uint64_t or uint32_t
24270 This avoids -Werror=overflow errors for 32-bit systems in
24271 the 64-bit case. Problem reported by Joseph Myers in:
24272 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24273 Also, when this code is used in Gnulib it ports to platforms
24274 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24275 them, and on some 32-bit compilers there is no uint64_t.
24276 Problem reported by Gianluigi Tiesi in:
24277 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24278 * posix/regcomp.c (init_word_char): Don't assume that the types
24279 uint64_t and uint32_t exist. Adapted from Gnulib patch
24280 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24281 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24282
24283 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24284
24285 * sysdeps/aarch64/memset-reg.h: New file.
24286 * sysdeps/aarch64/memset.S: Use it.
24287 (__memset): Rename to MEMSET macro.
24288 [ZVA_MACRO]: Use zva_macro.
24289 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24290 Add memset_generic and memset_falkor.
24291 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24292 (__libc_ifunc_impl_list): Add memset ifuncs.
24293 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24294 local variable zva_size.
24295 * sysdeps/aarch64/multiarch/memset.c: New file.
24296 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24297 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24298 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24299 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24300 (DCZID_DZP_MASK): New macro.
24301 (DCZID_BS_MASK): Likewise.
24302 (init_cpu_features): Read and set zva_size.
24303 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24304 (struct cpu_features): New member zva_size.
24305
24306 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24307 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24308 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24309
24310 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24311 backwards. Fix timing computation.
24312 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24313 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24314 on memset by N at a time. Fix timing computation.
24315
24316 2017-11-20 Florian Weimer <fweimer@redhat.com>
24317
24318 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24319 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24320
24321 2017-11-19 Florian Weimer <fweimer@redhat.com>
24322
24323 manual: Document mprotect
24324 * manual/memory.texi (Memory Protection): New section.
24325 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24326 documentation of PROT_* flags and reference the Memory Protection
24327 section instead.
24328
24329 2017-11-19 Florian Weimer <fweimer@redhat.com>
24330
24331 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24332 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24333 (Scatter-Gather): ... to here. Remove misleading comment.
24334
24335 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24336
24337 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24338 style.
24339
24340 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24341 when /proc/<pid>/setgroups does not exist.
24342
24343 2017-11-18 Florian Weimer <fweimer@redhat.com>
24344
24345 * sysdeps/unix/sysv/linux/tst-ttyname.c
24346 (become_root_in_mount_ns): Remove.
24347 (do_in_chroot_1): Call support_enter_mount_namespace.
24348 (do_in_chroot_2): Likewise.
24349 (do_test): Call support_become_root early.
24350
24351 2017-11-18 Florian Weimer <fweimer@redhat.com>
24352
24353 * support/namespace.h (support_enter_mount_namespace): Declare.
24354 * support/support_enter_mount_namespace.c: New file.
24355 * support/Makefile (libsupport-routines): Add
24356 support_enter_mount_namespace.
24357
24358 2017-11-18 Florian Weimer <fweimer@redhat.com>
24359
24360 * support/temp_file.c (support_create_temp_directory): Use
24361 test_dir and do not rely on the presence of the XXXXXX suffix.
24362 * support/temp_file.h (support_create_temp_directory): Update
24363 comment.
24364 * support/tst-xreadlink.c (do_test): Adjust.
24365 * support/support_chroot.c (support_chroot_create): Likewise.
24366
24367 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24368
24369 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24370 macro.
24371 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24372 htm-no-suspend.
24373
24374 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24375
24376 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24377 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24378 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24379 (ceill): Define using libm_alias_ldouble.
24380 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24381 <libm-alias-ldouble.h>.
24382 (copysignl): Define using libm_alias_ldouble.
24383 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24384 (fabsl): Define using libm_alias_ldouble.
24385 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24386 (floorl): Define using libm_alias_ldouble.
24387 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24388 (fmaxl): Define using libm_alias_ldouble.
24389 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24390 (fminl): Define using libm_alias_ldouble.
24391 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24392 (llrintl): Define using libm_alias_ldouble.
24393 (lrintl): Likewise.
24394 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24395 <libm-alias-ldouble.h>.
24396 (nearbyintl): Define using libm_alias_ldouble.
24397 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24398 (truncl): Define using libm_alias_ldouble.
24399 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24400 <libm-alias-ldouble.h>.
24401 (lrintl): Define using libm_alias_ldouble.
24402
24403 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24404 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24405 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24406 (asinhl): Define using libm_alias_ldouble.
24407 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24408 (atanl): Define using libm_alias_ldouble.
24409 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24410 (cbrtl): Define using libm_alias_ldouble.
24411 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24412 (ceill): Define using libm_alias_ldouble.
24413 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24414 (copysignl): Define using libm_alias_ldouble.
24415 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24416 (fabsl): Define using libm_alias_ldouble.
24417 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24418 (floorl): Define using libm_alias_ldouble.
24419 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24420 (fmaxl): Define using libm_alias_ldouble.
24421 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24422 (fminl): Define using libm_alias_ldouble.
24423 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24424 (frexpl): Define using libm_alias_ldouble.
24425 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24426 (llrintl): Define using libm_alias_ldouble.
24427 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24428 (logbl): Define using libm_alias_ldouble.
24429 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24430 (lrintl): Define using libm_alias_ldouble.
24431 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24432 (nearbyintl): Define using libm_alias_ldouble.
24433 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24434 (nextafterl): Define using libm_alias_ldouble.
24435 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24436 (remquol): Define using libm_alias_ldouble.
24437 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24438 (rintl): Define using libm_alias_ldouble.
24439 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24440 (truncl): Define using libm_alias_ldouble.
24441 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24442 (fmaxl): Define using libm_alias_ldouble.
24443 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24444 (fminl): Define using libm_alias_ldouble.
24445
24446 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24447 to C syntax instead of availability and properties of types.
24448 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24449 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24450 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24451 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24452 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24453 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24454
24455 2017-11-17 Florian Weimer <fweimer@redhat.com>
24456
24457 support_become_root: Enable file creation in namespaces.
24458 * support/support_become_root.c (setup_mapping): New function.
24459 (support_become_root): Call it.
24460
24461 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24462
24463 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24464 macro.
24465
24466 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24467
24468 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24469 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24470
24471 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24472
24473 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24474
24475 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24476 version to 4.14.
24477
24478 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24479
24480 * INSTALL: Fix botched up regeneration.
24481
24482 * NEWS: Update sourceare link to https.
24483 * configure.ac: Likewise.
24484 * crypt/md5test-giant.c: Likewise.
24485 * dlfcn/bug-atexit1.c: Likewise.
24486 * dlfcn/bug-atexit2.c: Likewise.
24487 * localedata/README: Likewise.
24488 * malloc/tst-mallocfork.c: Likewise.
24489 * manual/install.texi: Likewise.
24490 * nptl/tst-pthread-getattr.c: Likewise.
24491 * stdio-common/tst-fgets.c: Likewise.
24492 * stdio-common/tst-fwrite.c: Likewise.
24493 * sunrpc/Makefile: Likewise.
24494 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24495 * wcsmbs/tst-mbrtowc2.c: Likewise.
24496 * configure: Regenerate.
24497 * INSTALL: Regenerate.
24498
24499 2017-11-15 Martin Sebor <msebor@redhat.com>
24500
24501 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24502 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24503 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24504
24505 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24506
24507 [BZ #22145]
24508 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24509 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24510
24511 [BZ #22145]
24512 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24513 Defer is_pty check until end of the function.
24514 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24515
24516 [BZ #22145]
24517 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24518 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24519 (ttyname): Likewise.
24520 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24521 (__ttyname_r): Likewise.
24522
24523 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24524 int to bool.
24525
24526 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24527
24528 * manual/terminal.texi (Is It a Terminal):
24529 Mention ENODEV for ttyname and ttyname_r.
24530
24531 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24532
24533 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24534 constant and macro.
24535
24536 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24537 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24538 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24539 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24540 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24541 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24542
24543 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24544
24545 * signal/sigrelse.c (sigrelse): Optimize implementation.
24546
24547 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24548 (__sigpause): Rely on __sigsuspend to implement single thread
24549 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24550
24551 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24552
24553 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24554 kernel version to 4.14.
24555
24556 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24557
24558 [BZ #22442]
24559 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24560 Check if ifname is too long.
24561
24562 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24563
24564 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24565
24566 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24567
24568 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24569 was accidentally lost.
24570
24571 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24572
24573 * localedata/locales/az_IR: Add standard copyright header.
24574
24575 2017-11-15 Florian Weimer <fweimer@redhat.com>
24576
24577 [BZ #22439]
24578 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24579 not just the top one. Output a new "subheaps" statistic.
24580
24581 2017-11-15 Florian Weimer <fweimer@redhat.com>
24582
24583 [BZ #22408]
24584 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24585 under the per-arena lock.
24586 * malloc/Makefile (tests): Add tst-malloc_info.
24587 (tst-malloc_info): Link with libpthread.
24588 * malloc/tst-malloc_info.c: New file.
24589
24590 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24591
24592 [BZ #21660]
24593 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24594 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24595 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24596 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24597 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24598 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24599 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24600 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24601 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24602 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24603 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24604 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24605 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24606 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24607 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24608 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24609 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24610 (__floating_type): Likewise.
24611 (__real_integer_type): Likewise.
24612 (__complex_integer_type): Likewise.
24613 (__expr_is_real): Likewise.
24614 (__tgmath_real_type_sub): Likewise.
24615 (__tgmath_real_type): Likewise.
24616 (__tgmath_complex_type_sub): Likewise.
24617 (__tgmath_complex_type): Likewise.
24618 (__TGMATH_F128): Likewise.
24619 (__TGMATH_CF128): Likewise.
24620 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24621 new macros.
24622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24623 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24624 Likewise.
24625 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24626 Likewise.
24627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24628 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24629 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24630 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24631 Likewise.
24632 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24633 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24634 Likewise.
24635 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24636 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24637 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24638 Likewise.
24639 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24640 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24641 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24642 (cimag): Likewise.
24643 (creal): Likewise.
24644
24645 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24646
24647 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24648 for stpncpy calls for GCC 8.
24649 (test_strncat): Disable -Wstringop-truncation warning for strncat
24650 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24651 strncat call for GCC 7.
24652 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24653 calls for GCC 8.
24654 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24655 trailing NUL.
24656
24657 * string/bug-strncat1.c: Include <libc-diag.h>.
24658 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24659
24660 2017-11-13 Claude Paroz <claude@2xlibre.net>
24661
24662 [BZ #22387]
24663 * localedata/locales/aa_DJ: Improved readibility by replacing
24664 <Uxxxx> sequences in the ASCII printable range by their ASCII
24665 character equivalents.
24666 * localedata/locales/aa_ER: Likewise.
24667 * localedata/locales/aa_ER@saaho: Likewise.
24668 * localedata/locales/aa_ET: Likewise.
24669 * localedata/locales/af_ZA: Likewise.
24670 * localedata/locales/agr_PE: Likewise.
24671 * localedata/locales/ak_GH: Likewise.
24672 * localedata/locales/am_ET: Likewise.
24673 * localedata/locales/anp_IN: Likewise.
24674 * localedata/locales/ar_AE: Likewise.
24675 * localedata/locales/ar_BH: Likewise.
24676 * localedata/locales/ar_DZ: Likewise.
24677 * localedata/locales/ar_EG: Likewise.
24678 * localedata/locales/ar_IN: Likewise.
24679 * localedata/locales/ar_IQ: Likewise.
24680 * localedata/locales/ar_JO: Likewise.
24681 * localedata/locales/ar_KW: Likewise.
24682 * localedata/locales/ar_LB: Likewise.
24683 * localedata/locales/ar_LY: Likewise.
24684 * localedata/locales/ar_MA: Likewise.
24685 * localedata/locales/ar_OM: Likewise.
24686 * localedata/locales/ar_QA: Likewise.
24687 * localedata/locales/ar_SA: Likewise.
24688 * localedata/locales/ar_SD: Likewise.
24689 * localedata/locales/ar_SS: Likewise.
24690 * localedata/locales/ar_SY: Likewise.
24691 * localedata/locales/ar_TN: Likewise.
24692 * localedata/locales/ar_YE: Likewise.
24693 * localedata/locales/as_IN: Likewise.
24694 * localedata/locales/ast_ES: Likewise.
24695 * localedata/locales/ayc_PE: Likewise.
24696 * localedata/locales/az_AZ: Likewise.
24697 * localedata/locales/az_IR: Likewise.
24698 * localedata/locales/be_BY: Likewise.
24699 * localedata/locales/be_BY@latin: Likewise.
24700 * localedata/locales/bem_ZM: Likewise.
24701 * localedata/locales/ber_DZ: Likewise.
24702 * localedata/locales/ber_MA: Likewise.
24703 * localedata/locales/bg_BG: Likewise.
24704 * localedata/locales/bhb_IN: Likewise.
24705 * localedata/locales/bho_IN: Likewise.
24706 * localedata/locales/bi_VU: Likewise.
24707 * localedata/locales/bn_BD: Likewise.
24708 * localedata/locales/bn_IN: Likewise.
24709 * localedata/locales/bo_CN: Likewise.
24710 * localedata/locales/bo_IN: Likewise.
24711 * localedata/locales/br_FR: Likewise.
24712 * localedata/locales/brx_IN: Likewise.
24713 * localedata/locales/bs_BA: Likewise.
24714 * localedata/locales/byn_ER: Likewise.
24715 * localedata/locales/ca_AD: Likewise.
24716 * localedata/locales/ca_ES: Likewise.
24717 * localedata/locales/ca_FR: Likewise.
24718 * localedata/locales/ca_IT: Likewise.
24719 * localedata/locales/ce_RU: Likewise.
24720 * localedata/locales/chr_US: Likewise.
24721 * localedata/locales/cmn_TW: Likewise.
24722 * localedata/locales/crh_UA: Likewise.
24723 * localedata/locales/cs_CZ: Likewise.
24724 * localedata/locales/csb_PL: Likewise.
24725 * localedata/locales/cv_RU: Likewise.
24726 * localedata/locales/cy_GB: Likewise.
24727 * localedata/locales/da_DK: Likewise.
24728 * localedata/locales/de_AT: Likewise.
24729 * localedata/locales/de_BE: Likewise.
24730 * localedata/locales/de_CH: Likewise.
24731 * localedata/locales/de_DE: Likewise.
24732 * localedata/locales/de_IT: Likewise.
24733 * localedata/locales/de_LI: Likewise.
24734 * localedata/locales/de_LU: Likewise.
24735 * localedata/locales/doi_IN: Likewise.
24736 * localedata/locales/dv_MV: Likewise.
24737 * localedata/locales/dz_BT: Likewise.
24738 * localedata/locales/el_CY: Likewise.
24739 * localedata/locales/el_GR: Likewise.
24740 * localedata/locales/en_AG: Likewise.
24741 * localedata/locales/en_AU: Likewise.
24742 * localedata/locales/en_BW: Likewise.
24743 * localedata/locales/en_CA: Likewise.
24744 * localedata/locales/en_DK: Likewise.
24745 * localedata/locales/en_GB: Likewise.
24746 * localedata/locales/en_HK: Likewise.
24747 * localedata/locales/en_IE: Likewise.
24748 * localedata/locales/en_IL: Likewise.
24749 * localedata/locales/en_IN: Likewise.
24750 * localedata/locales/en_NG: Likewise.
24751 * localedata/locales/en_NZ: Likewise.
24752 * localedata/locales/en_PH: Likewise.
24753 * localedata/locales/en_SG: Likewise.
24754 * localedata/locales/en_US: Likewise.
24755 * localedata/locales/en_ZA: Likewise.
24756 * localedata/locales/en_ZM: Likewise.
24757 * localedata/locales/en_ZW: Likewise.
24758 * localedata/locales/eo: Likewise.
24759 * localedata/locales/es_AR: Likewise.
24760 * localedata/locales/es_BO: Likewise.
24761 * localedata/locales/es_CL: Likewise.
24762 * localedata/locales/es_CO: Likewise.
24763 * localedata/locales/es_CR: Likewise.
24764 * localedata/locales/es_CU: Likewise.
24765 * localedata/locales/es_DO: Likewise.
24766 * localedata/locales/es_EC: Likewise.
24767 * localedata/locales/es_ES: Likewise.
24768 * localedata/locales/es_GT: Likewise.
24769 * localedata/locales/es_HN: Likewise.
24770 * localedata/locales/es_MX: Likewise.
24771 * localedata/locales/es_NI: Likewise.
24772 * localedata/locales/es_PA: Likewise.
24773 * localedata/locales/es_PE: Likewise.
24774 * localedata/locales/es_PR: Likewise.
24775 * localedata/locales/es_PY: Likewise.
24776 * localedata/locales/es_SV: Likewise.
24777 * localedata/locales/es_US: Likewise.
24778 * localedata/locales/es_UY: Likewise.
24779 * localedata/locales/es_VE: Likewise.
24780 * localedata/locales/et_EE: Likewise.
24781 * localedata/locales/eu_ES: Likewise.
24782 * localedata/locales/eu_ES@euro: Likewise.
24783 * localedata/locales/fa_IR: Likewise.
24784 * localedata/locales/ff_SN: Likewise.
24785 * localedata/locales/fi_FI: Likewise.
24786 * localedata/locales/fil_PH: Likewise.
24787 * localedata/locales/fo_FO: Likewise.
24788 * localedata/locales/fr_BE: Likewise.
24789 * localedata/locales/fr_CA: Likewise.
24790 * localedata/locales/fr_CH: Likewise.
24791 * localedata/locales/fr_FR: Likewise.
24792 * localedata/locales/fr_LU: Likewise.
24793 * localedata/locales/fur_IT: Likewise.
24794 * localedata/locales/fy_DE: Likewise.
24795 * localedata/locales/fy_NL: Likewise.
24796 * localedata/locales/ga_IE: Likewise.
24797 * localedata/locales/gd_GB: Likewise.
24798 * localedata/locales/gez_ER: Likewise.
24799 * localedata/locales/gez_ET: Likewise.
24800 * localedata/locales/gl_ES: Likewise.
24801 * localedata/locales/gu_IN: Likewise.
24802 * localedata/locales/gv_GB: Likewise.
24803 * localedata/locales/ha_NG: Likewise.
24804 * localedata/locales/hak_TW: Likewise.
24805 * localedata/locales/he_IL: Likewise.
24806 * localedata/locales/hi_IN: Likewise.
24807 * localedata/locales/hif_FJ: Likewise.
24808 * localedata/locales/hne_IN: Likewise.
24809 * localedata/locales/hr_HR: Likewise.
24810 * localedata/locales/hsb_DE: Likewise.
24811 * localedata/locales/ht_HT: Likewise.
24812 * localedata/locales/hu_HU: Likewise.
24813 * localedata/locales/hy_AM: Likewise.
24814 * localedata/locales/i18n: Likewise.
24815 * localedata/locales/ia_FR: Likewise.
24816 * localedata/locales/id_ID: Likewise.
24817 * localedata/locales/ig_NG: Likewise.
24818 * localedata/locales/ik_CA: Likewise.
24819 * localedata/locales/is_IS: Likewise.
24820 * localedata/locales/it_CH: Likewise.
24821 * localedata/locales/it_IT: Likewise.
24822 * localedata/locales/iu_CA: Likewise.
24823 * localedata/locales/ja_JP: Likewise.
24824 * localedata/locales/ka_GE: Likewise.
24825 * localedata/locales/kk_KZ: Likewise.
24826 * localedata/locales/kl_GL: Likewise.
24827 * localedata/locales/kn_IN: Likewise.
24828 * localedata/locales/ko_KR: Likewise.
24829 * localedata/locales/kok_IN: Likewise.
24830 * localedata/locales/ks_IN: Likewise.
24831 * localedata/locales/ks_IN@devanagari: Likewise.
24832 * localedata/locales/ku_TR: Likewise.
24833 * localedata/locales/kw_GB: Likewise.
24834 * localedata/locales/ky_KG: Likewise.
24835 * localedata/locales/lb_LU: Likewise.
24836 * localedata/locales/lg_UG: Likewise.
24837 * localedata/locales/li_BE: Likewise.
24838 * localedata/locales/li_NL: Likewise.
24839 * localedata/locales/lij_IT: Likewise.
24840 * localedata/locales/ln_CD: Likewise.
24841 * localedata/locales/lo_LA: Likewise.
24842 * localedata/locales/lt_LT: Likewise.
24843 * localedata/locales/lv_LV: Likewise.
24844 * localedata/locales/lzh_TW: Likewise.
24845 * localedata/locales/mag_IN: Likewise.
24846 * localedata/locales/mai_IN: Likewise.
24847 * localedata/locales/mg_MG: Likewise.
24848 * localedata/locales/mhr_RU: Likewise.
24849 * localedata/locales/mi_NZ: Likewise.
24850 * localedata/locales/mk_MK: Likewise.
24851 * localedata/locales/ml_IN: Likewise.
24852 * localedata/locales/mn_MN: Likewise.
24853 * localedata/locales/mni_IN: Likewise.
24854 * localedata/locales/mr_IN: Likewise.
24855 * localedata/locales/ms_MY: Likewise.
24856 * localedata/locales/mt_MT: Likewise.
24857 * localedata/locales/my_MM: Likewise.
24858 * localedata/locales/nan_TW: Likewise.
24859 * localedata/locales/nan_TW@latin: Likewise.
24860 * localedata/locales/nb_NO: Likewise.
24861 * localedata/locales/nds_DE: Likewise.
24862 * localedata/locales/nds_NL: Likewise.
24863 * localedata/locales/ne_NP: Likewise.
24864 * localedata/locales/nhn_MX: Likewise.
24865 * localedata/locales/niu_NU: Likewise.
24866 * localedata/locales/niu_NZ: Likewise.
24867 * localedata/locales/nl_AW: Likewise.
24868 * localedata/locales/nl_BE: Likewise.
24869 * localedata/locales/nl_NL: Likewise.
24870 * localedata/locales/nn_NO: Likewise.
24871 * localedata/locales/nr_ZA: Likewise.
24872 * localedata/locales/nso_ZA: Likewise.
24873 * localedata/locales/oc_FR: Likewise.
24874 * localedata/locales/om_ET: Likewise.
24875 * localedata/locales/om_KE: Likewise.
24876 * localedata/locales/or_IN: Likewise.
24877 * localedata/locales/os_RU: Likewise.
24878 * localedata/locales/pa_IN: Likewise.
24879 * localedata/locales/pa_PK: Likewise.
24880 * localedata/locales/pap_AW: Likewise.
24881 * localedata/locales/pap_CW: Likewise.
24882 * localedata/locales/pl_PL: Likewise.
24883 * localedata/locales/ps_AF: Likewise.
24884 * localedata/locales/pt_BR: Likewise.
24885 * localedata/locales/pt_PT: Likewise.
24886 * localedata/locales/quz_PE: Likewise.
24887 * localedata/locales/raj_IN: Likewise.
24888 * localedata/locales/ro_RO: Likewise.
24889 * localedata/locales/ru_RU: Likewise.
24890 * localedata/locales/ru_UA: Likewise.
24891 * localedata/locales/rw_RW: Likewise.
24892 * localedata/locales/sa_IN: Likewise.
24893 * localedata/locales/sat_IN: Likewise.
24894 * localedata/locales/sc_IT: Likewise.
24895 * localedata/locales/sd_IN: Likewise.
24896 * localedata/locales/sd_IN@devanagari: Likewise.
24897 * localedata/locales/se_NO: Likewise.
24898 * localedata/locales/sgs_LT: Likewise.
24899 * localedata/locales/shs_CA: Likewise.
24900 * localedata/locales/si_LK: Likewise.
24901 * localedata/locales/sid_ET: Likewise.
24902 * localedata/locales/sk_SK: Likewise.
24903 * localedata/locales/sl_SI: Likewise.
24904 * localedata/locales/sm_WS: Likewise.
24905 * localedata/locales/so_DJ: Likewise.
24906 * localedata/locales/so_ET: Likewise.
24907 * localedata/locales/so_KE: Likewise.
24908 * localedata/locales/so_SO: Likewise.
24909 * localedata/locales/sq_AL: Likewise.
24910 * localedata/locales/sq_MK: Likewise.
24911 * localedata/locales/sr_ME: Likewise.
24912 * localedata/locales/sr_RS: Likewise.
24913 * localedata/locales/sr_RS@latin: Likewise.
24914 * localedata/locales/ss_ZA: Likewise.
24915 * localedata/locales/st_ZA: Likewise.
24916 * localedata/locales/sv_FI: Likewise.
24917 * localedata/locales/sv_SE: Likewise.
24918 * localedata/locales/sw_KE: Likewise.
24919 * localedata/locales/sw_TZ: Likewise.
24920 * localedata/locales/szl_PL: Likewise.
24921 * localedata/locales/ta_IN: Likewise.
24922 * localedata/locales/ta_LK: Likewise.
24923 * localedata/locales/tcy_IN: Likewise.
24924 * localedata/locales/te_IN: Likewise.
24925 * localedata/locales/tg_TJ: Likewise.
24926 * localedata/locales/th_TH: Likewise.
24927 * localedata/locales/the_NP: Likewise.
24928 * localedata/locales/ti_ER: Likewise.
24929 * localedata/locales/ti_ET: Likewise.
24930 * localedata/locales/tig_ER: Likewise.
24931 * localedata/locales/tk_TM: Likewise.
24932 * localedata/locales/tl_PH: Likewise.
24933 * localedata/locales/tn_ZA: Likewise.
24934 * localedata/locales/to_TO: Likewise.
24935 * localedata/locales/tpi_PG: Likewise.
24936 * localedata/locales/tr_CY: Likewise.
24937 * localedata/locales/tr_TR: Likewise.
24938 * localedata/locales/ts_ZA: Likewise.
24939 * localedata/locales/tt_RU: Likewise.
24940 * localedata/locales/tt_RU@iqtelif: Likewise.
24941 * localedata/locales/ug_CN: Likewise.
24942 * localedata/locales/uk_UA: Likewise.
24943 * localedata/locales/unm_US: Likewise.
24944 * localedata/locales/ur_IN: Likewise.
24945 * localedata/locales/ur_PK: Likewise.
24946 * localedata/locales/uz_UZ: Likewise.
24947 * localedata/locales/uz_UZ@cyrillic: Likewise.
24948 * localedata/locales/ve_ZA: Likewise.
24949 * localedata/locales/vi_VN: Likewise.
24950 * localedata/locales/wa_BE: Likewise.
24951 * localedata/locales/wae_CH: Likewise.
24952 * localedata/locales/wal_ET: Likewise.
24953 * localedata/locales/wo_SN: Likewise.
24954 * localedata/locales/xh_ZA: Likewise.
24955 * localedata/locales/yi_US: Likewise.
24956 * localedata/locales/yo_NG: Likewise.
24957 * localedata/locales/yue_HK: Likewise.
24958 * localedata/locales/yuw_PG: Likewise.
24959 * localedata/locales/zh_CN: Likewise.
24960 * localedata/locales/zh_HK: Likewise.
24961 * localedata/locales/zh_SG: Likewise.
24962 * localedata/locales/zh_TW: Likewise.
24963 * localedata/locales/zu_ZA: Likewise.
24964
24965 2017-11-13 Florian Weimer <fweimer@redhat.com>
24966
24967 * support/next_to_fault.h, support/next_to_fault.c: New files.
24968 * support/Makefile (libsupport-routines): Add next_to_fault.
24969 * resolv/tst-inet_pton.c (struct next_to_fault)
24970 (next_to_fault_allocate, next_to_fault_free): Remove.
24971 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24972
24973 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24974
24975 * elf/dl-support.c: Include <dl-procruntime.c>.
24976 * include/link.h: Include <link_map.h>.
24977 * sysdeps/generic/dl-procruntime.c: New file.
24978 * sysdeps/generic/link_map.h: Likewise.
24979 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24980 the writable ld.so namespace.
24981
24982 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24983
24984 timezone: pacify GCC -Wstringop-truncation
24985 Problem reported by Martin Sebor in:
24986 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24987 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24988
24989 2017-11-12 Florian Weimer <fweimer@redhat.com>
24990
24991 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24992 tst-xreadlink.
24993 (tests): Add tst-xreadlink.
24994 * support/support.h (xstrndup): Declare.
24995 * support/xunistd.h (xunlink, xreadlink): Declare.
24996 * support/temp_file.h (support_create_temp_directory): Declare.
24997 * support/temp_file.c (support_create_temp_directory): New function.
24998 * support/support_chroot.c (support_chroot_create): Use it.
24999 * support/xreadlink.c: New file.
25000 * support/xstrndup.c: Likewise.
25001 * support/xunlink.c: Likewise.
25002 * support/tst-xreadlink.c: Likewise.
25003
25004 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
25005
25006 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
25007
25008 2017-11-11 Florian Weimer <fweimer@redhat.com>
25009
25010 [BZ #22409]
25011 [BZ #22412]
25012 * resolv/res_comp.c (printable_string, binary_hnok)
25013 (binary_leading_dash): New functions.
25014 (res_hnok): Reimplement using these functions and ns_name_pton.
25015 (res_ownok): Likewise.
25016 (res_mailok): Reimplement using printable_string, ns_name_pton and
25017 binary_hnok.
25018 (res_dnok): Reimplement using printable_string and ns_name_pton.
25019 * resolv/tst-res_hnok.c (tests): Add additional tests.
25020 (LETTERDIGITS, PRINTABLE): Define.
25021 (do_test): Adjust one_char results.
25022
25023 2017-11-11 Florian Weimer <fweimer@redhat.com>
25024
25025 [BZ #22413]
25026 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
25027 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
25028
25029 2017-11-11 Florian Weimer <fweimer@redhat.com>
25030
25031 * resolv/tst-ns_name_pton.c: New file.
25032 * resolv/Makefile (tests): Add tst-ns_name_pton.
25033 (tst-ns_name_pton): Link against libresolv.
25034
25035 2017-11-11 Florian Weimer <fweimer@redhat.com>
25036
25037 * resolv/tst-res_hnok.c: New file.
25038 * resolv/Makefile (tests): Add tst-res_hnok.
25039 (tst-res_hnok): Link against libresolv.
25040
25041 2017-11-11 Florian Weimer <fweimer@redhat.com>
25042
25043 * resolv/tst-resolv-network.c: Use test framework instead explicit
25044 main function.
25045
25046 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
25047
25048 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
25049 <jmp_buf-macros.h>.
25050 [!_ISOMAC] (STR_HELPER): New.
25051 [!_ISOMAC] (STR): Likewise.
25052 [!_ISOMAC] (TEST_SIZE): Likewise.
25053 [!_ISOMAC] (TEST_ALIGN): Likewise.
25054 [!_ISOMAC] (TEST_OFFSET): Likewise.
25055 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
25056 field offsets of jmp_buf as well as sigjmp_buf.
25057 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
25058 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
25059 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
25060 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25061 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25062 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25063 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25064 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25065 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25066 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25067 Likewise.
25068 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25069 Likewise.
25070 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25072 Likewise.
25073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25074 Likewise.
25075 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25076 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25077 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25078 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25079 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25080 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25081 Likewise.
25082 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25083 Likewise.
25084 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25085 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25086 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25087
25088 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25089
25090 * include/float.h
25091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25092 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25094 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25096 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25098 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25100 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25101 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25102 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25103 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25104 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25105 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25106 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25107 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25108 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25109 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25110 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25112 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25114 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25116 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25118 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25120 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25122 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25124 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25126 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25128 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25130 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25132 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25134 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25136 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25138 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25140 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25142 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25144 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25146 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25148 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25150 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25152 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25153 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25154 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25155 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25156 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25157 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25158 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25159 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25160 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25161 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25162 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25163 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25164 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25166 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25168 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25170 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25172 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25173 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25174 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25175 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25176 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25177 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25178 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25179
25180 * stdlib/tst-strtod.h (F16): New macro.
25181 (F32): Likewise.
25182 (F64): Likewise.
25183 (F32X): Likewise.
25184 (F64X): Likewise.
25185 (F128X): Likewise.
25186 (IF_FLOAT16): Likewise.
25187 (IF_FLOAT32): Likewise.
25188 (IF_FLOAT64): Likewise.
25189 (IF_FLOAT32X): Likewise.
25190 (IF_FLOAT64X): Likewise.
25191 (IF_FLOAT128X): Likewise.
25192 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25193 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25194 (STRTOD_TEST_FOREACH): Likewise.
25195 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25196 (CHOOSE_f64): Likewise.
25197 (CHOOSE_f32x): Likewise.
25198 (CHOOSE_f64x): Likewise.
25199
25200 2017-11-07 Andreas Schwab <schwab@suse.de>
25201
25202 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25203
25204 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25205
25206 [BZ #22403]
25207 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25208 to be escaped.
25209 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25210 to be escaped.
25211
25212 2017-11-07 Claude Paroz <claude@2xlibre.net>
25213
25214 [BZ #22403]
25215 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25216 to be escaped.
25217 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25218 to be escaped.
25219 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25220 to be escaped.
25221
25222 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25223
25224 [BZ #22298]
25225 * nptl/allocatestack.c (allocate_stack): Check if
25226 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25227 __PTHREAD_MUTEX_HAVE_PREV is defined.
25228 * nptl/descr.h (pthread): Likewise.
25229 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25230 Likewise.
25231 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25232 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25233 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25234 * sysdeps/nptl/bits/thread-shared-types.h
25235 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25236 defines.
25237 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25238 of __WORDSIZE for internal layout.
25239 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25240 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25241 instead of __WORDSIZE whether to use an union for __spins and __list
25242 fields.
25243 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25244 case.
25245 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25246 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25247 defines.
25248 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25249 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25250 Likewise.
25251 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25252 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25253 Likewise.
25254 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25255 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25256 Likewise.
25257 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25258 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25259 Likewise.
25260 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25261 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25262 Likewise.
25263 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25264 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25265 Likewise.
25266 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25267 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25268 Likewise.
25269 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25270 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25271 Likewise.
25272 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25273 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25274 Likewise.
25275 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25276 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25277 Likewise.
25278 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25279 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25280 Likewise.
25281 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25282 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25283 Likewise.
25284 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25285 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25286 Likewise.
25287 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25288 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25289 Likewise.
25290
25291 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25292 New macros.
25293 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25294 checks for expected input type size.
25295 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25296 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25297 Likewise.
25298 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25299 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25300 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25301 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25302 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25303 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25304 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25305 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25306 superflous runtime assert check.
25307 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25308 Likewise.
25309 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25310 Likewise.
25311 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25312 Likewise.
25313 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25314 Likewise.
25315 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25316 Likewise.
25317 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25318 Likewise.
25319 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25320 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25321 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25322 Likewise.
25323 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25324 Likewise.
25325 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25326 Likewise.
25327 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25328 Likewise.
25329 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25330 Likewise.
25331 * nptl/pthread_attr_setinheritsched.c
25332 (__pthread_attr_setinheritsched): Likewise.
25333 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25334 Likewise.
25335 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25336 Likewise.
25337 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25338 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25339 __old_pthread_attr_setstack): Likewise.
25340 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25341 Likewise.
25342 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25343 Likewise.
25344 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25345 Likewise.
25346 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25347 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25348 Likewise.
25349 * nptl/tst-typesizes.c: Remove file.
25350
25351 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25352 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25353 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25354 checks for internal pthread_mutex_t offsets.
25355 * sysdeps/aarch64/nptl/pthread-offsets.h
25356 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25357 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25358 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25359 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25360 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25361 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25362 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25363 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25364 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25365 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25366 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25367 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25368 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25369 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25370 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25371 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25372 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25373 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25374
25375 2017-11-07 Florian Weimer <fweimer@redhat.com>
25376
25377 * bits/mman-linux.h: Move ...
25378 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25379 comment.
25380 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25381 outdated comment.
25382
25383 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25384
25385 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25386 Redefine STRNLEN as __strnlen_power8.
25387
25388 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25389
25390 * signal/sighold.c (sighold): Optimize implementation.
25391
25392 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25393 __NR_rt_sigqueueinfo.
25394
25395 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25396 __sigtimedwait.
25397 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25398 assume __NR_rt_sigtimedwait.
25399 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25400 and add LIBC_CANCEL_HANDLED for cancellation marking.
25401 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25402
25403 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25404 (sysdeps_routines): Add memchr_noneon.
25405 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25406 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25407 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25408 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25409 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25410 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25411 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25412
25413 * sysdeps/arm/arm-ifunc.h: New file.
25414 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25415 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25416 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25417 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25418 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25419 (__memcpy_neon): Avoid create hidden alias.
25420 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25421 (__memcpy_vfp): Likewise.
25422 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25423 (sysdep_routines): Add memcpy_arm.
25424 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25425
25426 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25427
25428 [BZ #22362]
25429 * Makerules (make-link-multidir): New.
25430 * config.make.in (multidir): New.
25431 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25432 * configure: Regenerated.
25433 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25434 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25435 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25436 New target.
25437
25438 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25439
25440 [BZ #22402]
25441 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25442 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25443
25444 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25445
25446 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25447 to be escaped.
25448
25449 2017-11-04 Florian Weimer <fweimer@redhat.com>
25450
25451 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25452
25453 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25454
25455 * math/math.h [__HAVE_DISTINCT_FLOAT16
25456 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25457 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25458 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25459 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25460 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25461 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25462 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25463 (__MATH_TG_F32): New macro.
25464 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25465 (__MATH_TG_F64X): Likewise.
25466 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25467 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25468
25469 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25470
25471 * po/de.po: Update translations.
25472 * po/ru.po: Likewise.
25473
25474 2017-11-03 Florian Weimer <fweimer@redhat.com>
25475
25476 * manual/filesys.texi (Hard Links): Document linkat.
25477
25478 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25479
25480 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25481 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25482 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25483 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25484 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25485 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25486 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25487 the same as _Float128.
25488 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25489 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25490 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25491
25492 * stdlib/stdlib.h
25493 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25494 Declare.
25495 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25496 Likewise.
25497 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25498 Likewise.
25499 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25500 (strtof32x): Likewise.
25501 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25502 (strtof64x): Likewise.
25503 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25504 (strtof128x): Likewise.
25505 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25506 (strfromf16): Likewise.
25507 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25508 (strfromf32): Likewise.
25509 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25510 (strfromf64): Likewise.
25511 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25512 (strfromf32x): Likewise.
25513 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25514 (strfromf64x): Likewise.
25515 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25516 (strfromf128x): Likewise.
25517 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25518 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25519 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25520 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25521 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25522 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25523
25524 2017-11-03 Richard Henderson <rth@twiddle.net>
25525
25526 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25527
25528 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25529
25530 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25531
25532 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25533
25534 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25535 DT_TLSDESC_GOT initialization.
25536 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25537 (_dl_tlsdesc_resolve_hold): Likewise.
25538 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25539 (_dl_tlsdesc_resolve_hold): Likewise.
25540 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25541 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25542
25543 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25544
25545 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25546
25547 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25548
25549 [BZ #18572]
25550 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25551 non-lazily for R_ARM_TLS_DESC.
25552
25553 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25554
25555 [BZ #17078]
25556 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25557 R_ARM_TLS_DESC case.
25558 (elf_machine_lazy_rel): Remove the prelink check.
25559
25560 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25561
25562 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25563 DT_TLSDESC_GOT initialization.
25564 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25565 (_dl_tlsdesc_resolve_rela): Likewise.
25566 (_dl_tlsdesc_resolve_hold): Likewise.
25567 (_dl_tlsdesc_undefweak): Remove ldar.
25568 (_dl_tlsdesc_dynamic): Likewise.
25569 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25570 (_dl_tlsdesc_resolve_rela): Likewise.
25571 (_dl_tlsdesc_resolve_hold): Likewise.
25572 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25573 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25574 (_dl_tlsdesc_resolve_rela): Likewise.
25575 (_dl_tlsdesc_resolve_hold): Likewise.
25576
25577 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25578
25579 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25580 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25581
25582 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25583
25584 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25585 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25586
25587 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25588
25589 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25590 Declare.
25591 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25592 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25593 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25594 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25595 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25596 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25597 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25598 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25599 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25600 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25601 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25602
25603 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25604
25605 [BZ #22382]
25606 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25607 * localedata/locales/tpi_PG: Add standard header.
25608
25609 2017-11-02 Florian Weimer <fweimer@redhat.com>
25610
25611 test-errno-linux: quotactl can fail with EPERM in containers.
25612 * sysdeps/unix/sysv/linux/test-errno-linux.c
25613 (LIST, LIST_FORWARD): New macros.
25614 (check_error_in_list): New function.
25615 (test_wrp_rv): Accept list of permitted error codes.
25616 (test_wrp_rv2): Remove.
25617 (test_wrp): Call test_wrp_rv with list of error codes.
25618 (test_wrp2): Accept list of error codes.
25619 (do_test): Adjust. Allow EPERM for quotactl.
25620
25621 2017-11-02 Florian Weimer <fweimer@redhat.com>
25622
25623 * stdio-common/bug16.c (do_test): Use array_length.
25624 * stdio-common/errlist.c (_sys_nerr): Likewise.
25625 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25626 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25627 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25628 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25629 (do_test): Use array_length.
25630 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25631 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25632 * stdio-common/tst-printf-round.c (do_test): Likewise.
25633 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25634 (CHECK): Use array_length.
25635 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25636 * stdio-common/tstscanf.c (main): Likewise.
25637 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25638
25639 2017-11-02 Florian Weimer <fweimer@redhat.com>
25640
25641 Add array_length and array_end macros.
25642 * include/array_length.h: New file.
25643
25644 2017-11-02 Florian Weimer <fweimer@redhat.com>
25645
25646 [BZ #22332]
25647 * posix/tst-glob-tilde.c (do_noescape): New variable.
25648 (one_test): Process it.
25649 (do_test): Set do_noescape. Add unescaping test case.
25650
25651 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25652
25653 * math/complex.h
25654 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25655 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25656 with appropriate macros defined and undefined.
25657 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25658 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25659 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25660 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25661 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25662 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25663 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25664 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25665 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25666 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25667
25668 * math/complex.h
25669 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25670 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25671 that for long double. Do not condition define and undefine of
25672 _Mdouble_complex_ on [__CFLOAT128].
25673
25674 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25675
25676 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25677 of <sysdeps/generic/sysdep.h>.
25678 (ALIGNARG): Removed.
25679 (ASM_SIZE_DIRECTIVE): Likewise.
25680 (ENTRY): Likewise.
25681 (END): Likewise.
25682 (ENTRY_CHK): Likewise.
25683 (END_CHK): Likewise.
25684 (syscall_error): Likewise.
25685 (mcount): Likewise.
25686 (PSEUDO_END): Likewise.
25687 (L): Likewise.
25688 (atom_text_section): Likewise.
25689 * sysdeps/x86/sysdep.h: New file.
25690 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25691 of <sysdeps/generic/sysdep.h>.
25692 (ALIGNARG): Removed.
25693 (ASM_SIZE_DIRECTIVE): Likewise.
25694 (ENTRY): Likewise.
25695 (END): Likewise.
25696 (ENTRY_CHK): Likewise.
25697 (END_CHK): Likewise.
25698 (syscall_error): Likewise.
25699 (mcount): Likewise.
25700 (PSEUDO_END): Likewise.
25701 (L): Likewise.
25702 (atom_text_section): Likewise.
25703
25704 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25705
25706 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25707 category of LC_CTYPE set to "i18n:2012".
25708 * localedata/locales/i18n_ctype: Regenerate.
25709
25710 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25711
25712 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25713 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25714 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25715 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25716
25717 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25718 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25719 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25720 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25721
25722 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25723
25724 * math/complex.h
25725 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25726 New macro.
25727 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25728 Likewise.
25729 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25730 Likewise.
25731 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25732 (CMPLXF32X): Likewise.
25733 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25734 (CMPLXF64X): Likewise.
25735 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25736 (CMPLXF128X): Likewise.
25737
25738 * math/math.h
25739 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25740 (__MATH_EVAL_FMT2): Define to add 0.0f.
25741
25742 2017-10-31 Alan Modra <amodra@gmail.com>
25743
25744 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25745 include sysdep.h.
25746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25760 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25761 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25762 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25763 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25764 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25765 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25766 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25767 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25768 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25769 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25770 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25771 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25772 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25773 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25774 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25775 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25776 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25777 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25778 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25779 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25780 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25781 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25782 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25783 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25784 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25785 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25786 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25787 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25788 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25789 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25790 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25791 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25792 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25793 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25794 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25795 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25796 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25797 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25798 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25799 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25800 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25801 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25802 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25803 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25804 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25805 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25806 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25807 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25808 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25809 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25810 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25811 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25812 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25813 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25814 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25815
25816 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25817 include sysdep.h and math_ldbl_opt.h.
25818
25819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25820 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25839 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25840 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25841 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25842 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25843 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25844 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25845
25846 2017-10-31 Alan Modra <amodra@gmail.com>
25847
25848 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25849 string/strncase_l.c, not string/strncase.c.
25850 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25851 (libc_hidden_def): Redefine.
25852
25853 2017-10-31 Alan Modra <amodra@gmail.com>
25854
25855 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25856 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25857 (__strcasecmp): Don't define.
25858
25859 2017-10-31 Alan Modra <amodra@gmail.com>
25860
25861 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25862 IS_IN (libc).
25863 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25864 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25865 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25866
25867 2017-10-31 Alan Modra <amodra@gmail.com>
25868
25869 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25870 USE_AS_STPNCPY.
25871
25872 2017-10-31 Alan Modra <amodra@gmail.com>
25873
25874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25875 Redefine only when SHARED.
25876
25877 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25878
25879 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25880 Include <bits/math-finite.h> with appropriate macros defined and
25881 undefined.
25882 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25883 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25884 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25885 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25886 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25887
25888 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25889 [!_Mlong_double_] (_Mlong_double_): Likewise.
25890 [!_Mfloat16_] (_Mfloat16_): Likewise.
25891 [!_Mfloat32_] (_Mfloat32_): Likewise.
25892 [!_Mfloat64_] (_Mfloat64_): Likewise.
25893 [!_Mfloat128_] (_Mfloat128_): Likewise.
25894 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25895 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25896 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25897 (_Mdouble_): Define without indirection through those macros.
25898 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25899 [!_Mfloat128_] (_Mfloat128_): Likewise.
25900 [_Mlong_double_] (_Mlong_double_): Likewise.
25901 (_Mdouble_): Define without indirection through those macros.
25902 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25903 not add -D_Mlong_double_=double.
25904 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25905 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25906
25907 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25908
25909 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25910
25911 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25912
25913 * sysdeps/x86/libc-start.c: Reformat.
25914
25915 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 [BZ #22353]
25918 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25919 (1): Renamed to ...
25920 (L(Src0)): This.
25921 (L(Src1)): New.
25922 (L(Src2)): Likewise.
25923 (L(1)): Renamed to ...
25924 (L(Src3)): This.
25925
25926 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25927
25928 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25929 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25930 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25931 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25932 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25933 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25934 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25935 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25936 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25937 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25938 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25939 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25940 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25941 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25942 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25943 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25944 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25945 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25946 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25947 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25948 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25949 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25950 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25951 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25952 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25953 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25954 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25955 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25956 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25957 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25958 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25959 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25960 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25961 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25962 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25963 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25964 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25965 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25966 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25967 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25968 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25969 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25970 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25971 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25972 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25973 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25974 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25975 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25976 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25977 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25978 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25979 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25980 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25981 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25982 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25983 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25984 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25985 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25986 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25987 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25988 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25989 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25990 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25991 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25992 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25993 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25994
25995 2017-10-30 Florian Weimer <fweimer@redhat.com>
25996
25997 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25998 always defined.
25999 * io/tst-mkdirat.c (do_test): Likewise.
26000 * io/tst-mkfifoat.c (do_test): Likewise.
26001 * io/tst-mknodat.c (do_test): Likewise.
26002 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
26003 * locale/programs/locale.c (select_dirs): Likewise.
26004 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
26005 * posix/bug-glob2.c (my_readdir): Likewise.
26006 * posix/tst-dir.c (main): Likewise.
26007 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
26008 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
26009
26010 2017-10-30 Florian Weimer <fweimer@redhat.com>
26011
26012 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
26013 just __USE_GNU.
26014
26015 2017-10-30 Florian Weimer <fweimer@redhat.com>
26016
26017 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
26018 Convert to support/test-driver.c.
26019 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
26020 New macro parameters.
26021 (PRINTF): Remove macro. Use test_verbose conditionals instead.
26022 * posix/tst-gnuglob.c: New file.
26023 * posix/tst-gnuglob64.c: Likewise.
26024 * posix/Makefile (tests): Add tst-gnuglob64.
26025
26026 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
26027
26028 [BZ #19485]
26029 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
26030 and use a better translation for March in “mon”.
26031 * localedata/locales/csb_PL: Use more ASCII to improve the
26032 readability of the source.
26033
26034 2017-10-30 Mike FABIAN <mfabian@redhat.com>
26035
26036 [BZ #13953]
26037 * localedata/locales/km_KH: Use ASCII as much
26038 as possible for better readability of the source and
26039 remove useless comments.
26040 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
26041 was commented out and apparently wrong anyway because it was
26042 using Lao characters. If Buddhist era should be used
26043 for km_KH, a native speaker should write the correct formaat
26044 for Khmer.
26045 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
26046 (According to CLDR, the first weekday for Cambodia is Sunday).
26047 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
26048 (These were using Lao characters which must be wrong. If we get
26049 the correct data from a native speaker, we could add it back, until
26050 then it is better not to have name_mr and name_mrs at all than
26051 having it wrong).
26052
26053 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
26054
26055 * locale/loadlocale.c: Correct size of
26056 _nl_value_type_LC_<category> arrays.
26057
26058 2017-10-27 Joseph Myers <joseph@codesourcery.com>
26059
26060 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26061 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26062 with appropriate macros defined and undefined.
26063 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26064 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26065 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26066 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26067 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26068
26069 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26070
26071 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26072 "-O2 -march=i586".
26073
26074 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26075
26076 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26077 with lowercase letters to make it agree with CLDR.
26078
26079 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26080
26081 [BZ #15260]
26082 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26083 first letters of yesstr and nostr in yesexpr and noexpr,
26084 not for the full words.
26085 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26086 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26087 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26088 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26089 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26090 first letters of yesstr and nostr in yesexpr and noexpr,
26091 until now only English was matched in yesexpr and noexpr.
26092 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26093 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26094 fil but not for tl. As tl and fil are very similar, using fil
26095 is probably better than using English.
26096
26097 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26098
26099 [BZ #21706]
26100 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26101 in yesstr and nostr.
26102
26103 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26104
26105 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26106 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26107 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26108 Likewise.
26109 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26110 Likewise.
26111 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26112 Likewise.
26113 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26114 Likewise.
26115 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26116 (SNANF128X): Likewise.
26117
26118 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26119 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26120 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26121 (HUGE_VAL_F32): Likewise.
26122 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26123 (HUGE_VAL_F64): Likewise.
26124 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26125 (HUGE_VAL_F32X): Likewise.
26126 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26127 (HUGE_VAL_F64X): Likewise.
26128 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26129 (HUGE_VAL_F128X): Likewise.
26130
26131 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26132
26133 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26134 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26135 for the br_FR locale.
26136
26137 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26138
26139 [BZ #21706]
26140 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26141
26142 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26143
26144 * locale/programs/record-status.h: Define globals, and function
26145 prototypes. Move function bodies...
26146 * locale/programs/record-status.c: ... to here. New file.
26147 * iconv/Makefile (iconv_prog-modules): Add record-status.
26148 * locale/Makefile (lib-modules): Likewise.
26149 * iconv/iconv_prog.c: Remove verbose.
26150 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26151 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26152 record a warning about ASCII compatibility.
26153 * locale/programs/ld-monetary.c (monetary_finish): If
26154 warn_int_curr_symbol is true then record a warning about the symbol
26155 not being in our ISO 4217 list.
26156 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26157 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26158 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26159 (OPT_NO_WARN): Define.
26160 (OPT_WARN): Define.
26161 (options): Add entry for --no-warnings, and --warnings.
26162 (set_warnings): New function to enable/disable warnings.
26163 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26164 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26165 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26166 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26167 Pass flags to generate_locale.
26168 (generate_locale): Accept new flag argument and pass it to localedef
26169 invocation.
26170 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26171 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26172
26173 * localedata/Makefile (test-input-data): Use full file name.
26174 * localedata/da_DK.in: Rename to...
26175 * localedata/da_DK.ISO-8859-1.in: ...this.
26176 * localedata/de_DE.in: Rename to...
26177 * localedata/de_DE.ISO-8859-1.in: ...this.
26178 * localedata/en_US.in: Rename to...
26179 * localedata/en_US.ISO-8859-1.in: ...this.
26180 * localedata/fr_FR.in: Rename to...
26181 * localedata/fr_FR.UTF-8.in: ... this.
26182 * localedata/hr_HR.in: Rename to...
26183 * localedata/hr_HR.ISO-8859-2.in: ...this.
26184 * localedata/hu_HU.in: Rename to...
26185 * localedata/hu_HU.UTF-8.in: ...this.
26186 * localedata/si_LK.in: Rename to...
26187 * localedata/si_LK.UTF-8.in: ...this.
26188 * localedata/sv_SE.in: Rename to...
26189 * localedata/sv_SE.ISO-8859-1.in: ...this.
26190 * localedata/tr_TR.in: Rename to...
26191 * localedata/tr_TR.UTF-8.in: ...this.
26192 * localedata/uk_UA.in: Rename to...
26193 * localedata/uk_UA.UTF-8.in: ...this.
26194 * localedata/sort-test.sh: Test file is locale name with the
26195 suffix.
26196
26197 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26198 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26199 file.
26200 * localedata/locales/i18n_ctype: Regenerate.
26201 * localedata/locales/tr_TR: Likewise.
26202 * localedata/locales/translit_circle: Likewise.
26203 * localedata/locales/translit_cjk_compat: Likewise.
26204 * localedata/locales/translit_combining: Likewise.
26205 * localedata/locales/translit_compat: Likewise.
26206 * localedata/locales/translit_font: Likewise.
26207 * localedata/locales/translit_fraction: Likewise.
26208
26209 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26210
26211 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26212 lxvd2x/stxvd2x with lvx/stvx.
26213 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26214
26215 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26216
26217 * include/alloc_buffer.h: Replace "if if " with "if " in
26218 comments.
26219 * sysdeps/mips/memcpy.S: Likkewise.
26220 * sysdeps/mips/memset.S: Likewise.
26221 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26222 Likewise.
26223 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26224 Likewise.
26225 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26226 Likewise.
26227
26228 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26229
26230 [BZ #15261]
26231 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26232 yesexpr and noexpr.
26233 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26234 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26235 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26236 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26237 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26238 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26239 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26240
26241 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26242
26243 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26244 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26245 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26246 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26247 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26248 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26249 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26250 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26251 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26252 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26253 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26254 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26255
26256 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26257
26258 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26259 as possible for better readability of the source.
26260 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26261 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26262 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26263 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26264 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26265 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26266 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26267 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26268 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26269 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26270 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26271 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26272 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26273 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26274 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26275 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26276 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26277 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26278 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26279 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26280 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26281 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26282 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26283 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26284 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26285 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26286 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26287 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26288 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26289 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26290 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26291 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26292 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26293 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26294 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26295 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26296 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26297 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26298 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26299 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26300 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26301 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26302 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26303 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26304 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26305 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26306 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26307 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26308 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26309 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26310 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26311 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26312 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26313 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26314 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26315 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26316 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26317 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26318 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26319 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26320 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26321 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26322 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26323 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26324 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26325 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26326 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26327 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26328 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26329 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26330 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26331 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26332 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26333 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26334 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26335 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26336 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26337 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26338 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26339 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26340 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26341 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26342 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26343 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26344 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26345 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26346 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26347 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26348 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26349 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26350 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26351 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26352 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26353 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26354 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26355 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26356 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26357 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26358 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26359 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26360 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26361 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26362 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26363 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26364 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26365 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26366 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26367 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26368 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26369 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26370 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26371 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26372 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26373 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26374 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26375 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26376 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26377 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26378 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26379 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26380 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26381 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26382 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26383 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26384 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26385 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26386 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26387 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26388 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26389 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26390 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26391 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26392 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26393 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26394 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26395 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26396 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26397 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26398 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26399 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26400 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26401 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26402 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26403 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26404 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26405 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26406 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26407 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26408 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26409 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26410 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26411 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26412 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26413 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26414 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26415 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26416 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26417 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26418 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26419 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26420 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26421 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26422 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26423 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26424 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26425 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26426 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26427 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26428 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26429 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26430 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26431 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26432 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26433 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26434
26435 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26436
26437 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26438 (Use first letters of yesstr and nostr correctly instead of using
26439 full words).
26440
26441 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26442
26443 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26444 (Use first letters of yesstr and nostr correctly).
26445
26446 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26447
26448 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26449 also check for the first characters of yesstr and nostr.
26450 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26451 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26452
26453 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26454
26455 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26456 also check for Chinese characters.
26457
26458 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26459
26460 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26461 match also for the contents of yesstr and nostr. As the first letter
26462 of yesstr and nostr is equal, checking only for the first letter
26463 is not enough.
26464
26465 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26466
26467 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26468 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26469
26470 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26471
26472 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26473 of main contributor.
26474
26475 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26476
26477 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26478 instead of using English.
26479
26480 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26481
26482 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26483 by including the first letters of nostr and yesexpr in the regexp.
26484 Also make it more readable by using ASCII where possible.
26485
26486 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26487
26488 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26489 the first letter of nostr in the regexp. It agrees with CLDR now.
26490 Also make it more readable by using ASCII where possible.
26491
26492 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26493
26494 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26495 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26496 these strings contain a U+17D6 (which somewhat looks like a colon)
26497 instead of a real colon to separate the full words for “yes”
26498 and “no” from the single letter responses.
26499
26500 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26501
26502 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26503 it agree with CLDR (include the first letter of yesstr).
26504 Also make it more readable by using ASCII where possible.
26505
26506 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26507
26508 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26509 and improve yesexpr and noexpr. The yesstr and nostr apparently
26510 came from CLDR. And CLDR has a bug there: these strings contain
26511 a U+0903 (which looks like a colon) instead of a real colon
26512 to separate the full words for “yes” and “no” from the single
26513 letter responses.
26514
26515 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26516
26517 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26518 letters of the full yesstr and nostr in yesexpr and noexpr.
26519
26520 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26521
26522 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26523 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26524 * localedata/locales/an_ES: Make source more readable by using ASCII
26525 where possible.
26526
26527 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26528
26529 [BZ #20952]
26530 * localedata/locales/yuw_PG: New file.
26531 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26532 * locale/iso-639.def: Add Yau (Uruwa).
26533
26534 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26535
26536 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26537
26538 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26539
26540 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26541 (__libc_realloc): Likewise.
26542 (_mid_memalign): Likewise.
26543 (__libc_calloc): Likewise.
26544
26545 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26546
26547 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26548 by adding the generic +1 and -0 as in all other locales.
26549 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26550 day names and make it more readable by using ASCII where possible.
26551
26552 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26553
26554 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26555 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26556
26557 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26558
26559 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26560 WNOHANG in waitpid call.
26561
26562 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26563
26564 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26565 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26566
26567 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26568 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26569 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26570 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26571 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26572 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26573 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26574 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26575 variables.
26576
26577 2017-10-23 Michael Collison <michael.collison@arm.com>
26578
26579 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26580 with __builtin_sqrt.
26581 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26582 with __builtin_sqrtf.
26583 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26584 with __builtin_ceil.
26585 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26586 with __builtin_ceilf.
26587 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26588 with __builtin_floor.
26589 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26590 with __builtin_floorf.
26591 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26592 with __builtin_fma.
26593 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26594 with __builtin_fmaf.
26595 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26596 with __builtin_fmax.
26597 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26598 with __builtin_fmaxf.
26599 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26600 with __builtin_fmin.
26601 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26602 with __builtin_fminf.
26603 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26604 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26605 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26606 with builtin_rint and conversion to int.
26607 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26608 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26609 with builtin_llround.
26610 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26611 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26612 with builtin_rint and conversion to long int.
26613 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26614 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26615 with builtin_lround.
26616 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26617 with builtin_lroundf.
26618 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26619 statements with __builtin_nearbyint.
26620 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26621 statements with __builtin_nearbyintf.
26622 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26623 with __builtin_rint.
26624 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26625 with __builtin_rintf.
26626 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26627 with __builtin_round.
26628 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26629 with __builtin_roundf.
26630 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26631 with __builtin_trunc.
26632 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26633 with __builtin_truncf.
26634 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26635 and s_l[l]round[f].c too.
26636
26637 2017-10-23 Alan Modra <amodra@gmail.com>
26638
26639 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26640 Adjust stack after restoring regs. Add missing LR cfi_restore.
26641
26642 2017-10-23 Alan Modra <amodra@gmail.com>
26643
26644 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26645 Move LR save and frame setup/teardown and LR restore to
26646 immediately around memset call. Provide cfi.
26647
26648 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26649
26650 * sysdeps/i386/fpu/e_powf.S: Removed.
26651 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26652 * sysdeps/i386/fpu/w_powf.c: Likewise.
26653 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26654 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26655 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26656 Add e_powf-sse2.
26657 (CFLAGS-e_powf-sse2.c): New.
26658 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26659 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26660
26661 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26662
26663 * sysdeps/i386/fpu/e_log2f.S: Removed.
26664 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26665 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26666 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26667 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26668 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26669 Add e_log2f-sse2.
26670 (CFLAGS-e_log2f-sse2.c): New.
26671 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26672 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26673
26674 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26675
26676 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26677 Add e_powf-fma.
26678 (CFLAGS-e_powf-fma.c): New.
26679 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26680 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26681
26682 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26685 Add e_log2f-fma.
26686 (CFLAGS-e_log2f-fma.c): New.
26687 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26688 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26689
26690 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26691
26692 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26693 Add e_logf-fma.
26694 (CFLAGS-e_logf-fma.c): New.
26695 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26696 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26697
26698 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26699
26700 * sysdeps/i386/fpu/e_logf.S: Removed.
26701 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26702 * sysdeps/i386/fpu/w_logf.c: Likewise.
26703 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26704 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26705 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26706 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26707 Add e_logf-sse2.
26708 (CFLAGS-e_logf-sse2.c): New.
26709 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26710 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26711
26712 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26713
26714 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26715 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26716 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26717 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26718 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26719 Add e_exp2f-sse2.
26720 (CFLAGS-e_exp2f-sse2.c): New.
26721 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26722 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26723
26724 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26725
26726 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26727 Add e_exp2f-fma.
26728 (CFLAGS-e_exp2f-fma.c): New.
26729 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26730 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26731
26732 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26733
26734 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26735 * sysdeps/i386/fpu/e_expf.S: Likewise.
26736 * sysdeps/i386/fpu/math_errf.c: Likewise.
26737 * sysdeps/i386/fpu/w_expf.c: Likewise.
26738 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26739 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26740 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26741 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26742 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26743 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26744 Remove e_expf-ia32.
26745 (CFLAGS-e_expf-sse2.c): New.
26746 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26747 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26748
26749 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26750
26751 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26752 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26753 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26754 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26755 e_expf.c.
26756 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26757 New.
26758 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26759 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26760 Renamed to ...
26761 (__redirect_expf): This.
26762 (SYMBOL_NAME): Changed to expf.
26763 (__ieee754_expf): Renamed to ...
26764 (__expf): This.
26765 (__GI___expf): This.
26766 (__ieee754_expf): Add strong_alias.
26767 (__expf_finite): Likewise.
26768 (__expf): New.
26769 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26770
26771 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26772
26773 [BZ #22332]
26774 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26775 unescaping.
26776
26777 2017-10-21 Florian Weimer <fweimer@redhat.com>
26778
26779 * posix/Makefile (tests): Add tst-glob-tilde.
26780 (tests-special): Add tst-glob-tilde-mem.out
26781 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26782 (tst-glob-tilde-mem.out): Add mtrace check.
26783 * posix/tst-glob-tilde.c: New file.
26784
26785 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26786
26787 * bits/floatn-common.h: New file.
26788 * math/Makefile (headers): Add bits/floatn-common.h.
26789 * bits/floatn.h: Include <bits/floatn-common.h>.
26790 * sysdeps/ia64/bits/floatn.h: Likewise.
26791 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26792 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26793 * sysdeps/powerpc/bits/floatn.h: Likewise.
26794 * sysdeps/x86/bits/floatn.h: Likewise.
26795
26796 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26797
26798 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26799 indicates whether compiler emits an warning for alias for
26800 functions with incompatible types.
26801
26802 [BZ #22273]
26803 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26804 the auxiliary process is terminated by a signal before calling _exit
26805 or execve.
26806
26807 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 [BZ #21265]
26810 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26811 New.
26812 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26813 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26814 and bit_arch_XSAVEC_Usable if needed.
26815 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26816 and bit_arch_Use_dl_runtime_resolve_opt.
26817 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26818 Removed.
26819 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26820 (bit_arch_Prefer_No_AVX512): Updated.
26821 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26822 (bit_arch_XSAVEC_Usable): New.
26823 (STATE_SAVE_OFFSET): Likewise.
26824 (STATE_SAVE_MASK): Likewise.
26825 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26826 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26827 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26828 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26829 (index_arch_XSAVEC_Usable): New.
26830 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26831 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26832 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26833 is enabled.
26834 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26835 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26836 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26837 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26838 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26839 _dl_runtime_resolve_xsavec.
26840 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26841 Removed.
26842 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26843 instead of VEC_SIZE.
26844 (REGISTER_SAVE_BND0): Removed.
26845 (REGISTER_SAVE_BND1): Likewise.
26846 (REGISTER_SAVE_BND3): Likewise.
26847 (REGISTER_SAVE_RAX): Always defined to 0.
26848 (VMOV): Removed.
26849 (_dl_runtime_resolve_avx): Likewise.
26850 (_dl_runtime_resolve_avx_slow): Likewise.
26851 (_dl_runtime_resolve_avx_opt): Likewise.
26852 (_dl_runtime_resolve_avx512): Likewise.
26853 (_dl_runtime_resolve_avx512_opt): Likewise.
26854 (_dl_runtime_resolve_sse): Likewise.
26855 (_dl_runtime_resolve_sse_vex): Likewise.
26856 (USE_FXSAVE): New.
26857 (_dl_runtime_resolve_fxsave): Likewise.
26858 (USE_XSAVE): Likewise.
26859 (_dl_runtime_resolve_xsave): Likewise.
26860 (USE_XSAVEC): Likewise.
26861 (_dl_runtime_resolve_xsavec): Likewise.
26862 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26863 Removed.
26864 (_dl_runtime_resolve_avx512_opt): Likewise.
26865 (_dl_runtime_resolve_avx): Likewise.
26866 (_dl_runtime_resolve_avx_opt): Likewise.
26867 (_dl_runtime_resolve_sse): Likewise.
26868 (_dl_runtime_resolve_sse_vex): Likewise.
26869 (_dl_runtime_resolve_fxsave): New.
26870 (_dl_runtime_resolve_xsave): Likewise.
26871 (_dl_runtime_resolve_xsavec): Likewise.
26872
26873 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26874
26875 [BZ #22320]
26876 CVE-2017-15670
26877 * posix/glob.c (__glob): Fix one-byte overflow.
26878
26879 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26880
26881 * malloc/malloc.c (sysdep-cancel.h): Add include.
26882
26883 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26884
26885 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26886
26887 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26888
26889 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26890 (tests): Remove $(objpfx)ga_test depdendency.
26891 * resolv/ga_test.c: Remove file.
26892
26893 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26894
26895 [BZ #18812]
26896 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26897 * localedata/locales/kab_DZ: New file.
26898
26899 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26902 _dl_relocate_static_pie instead of _dl_start to compute load
26903 address in static PIE.
26904
26905 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26906
26907 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26908
26909 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26910
26911 [BZ #13605]
26912 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26913 * localedata/locales/shn_MM: New file.
26914
26915 2017-10-20 Florian Weimer <fweimer@redhat.com>
26916
26917 [BZ #22321]
26918 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26919 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26920 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26921 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26922 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26923 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26924
26925 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26926
26927 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26928
26929 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26930
26931 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26932
26933 [BZ #22322]
26934 * sysdeps/mips/bits/long-double.h: Move to ....
26935 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26936
26937 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26938
26939 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26940
26941 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26942 H.J. Lu <hongjiu.lu@intel.com>
26943
26944 [BZ #22299]
26945 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26946 GLRO(dl_platform) to NULL.
26947 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26948 (modules-names): Add tst-platformmod-1 and
26949 x86_64/tst-platformmod-2.
26950 (CFLAGS-tst-platform-1.c): New.
26951 (CFLAGS-tst-platformmod-1.c): Likewise.
26952 (CFLAGS-tst-platformmod-2.c): Likewise.
26953 (LDFLAGS-tst-platformmod-2.so): Likewise.
26954 ($(objpfx)tst-platform-1): Likewise.
26955 ($(objpfx)tst-platform-1.out): Likewise.
26956 (tst-platform-1-ENV): Likewise.
26957 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26958 * sysdeps/x86_64/tst-platform-1.c: New file.
26959 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26960 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26961
26962 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26963
26964 [BZ #13994]
26965 * locale/iso-639.def: Add Karbi.
26966 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26967 * localedata/locales/mjw_IN: New file.
26968
26969 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26970
26971 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26972 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26973 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26974 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26975 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26976 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26977 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26978 <bits/floatn.h>.
26979 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26980 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26981 * manual/math.texi (Mathematics): Document additional architecture
26982 support for _Float128.
26983 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26984 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26985 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26986 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26987 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26988 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26989 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26990 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26991 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26992 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26993 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26994 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26995 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26996 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26997 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26998
26999 2017-10-18 Renlin Li <renlin.li@arm.com>
27000
27001 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
27002 _DYNAMIC symbol to calculate load address.
27003
27004 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
27005
27006 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
27007 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
27008 summary bits.
27009 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
27010 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
27011
27012 2017-10-18 Mike FABIAN <mfabian@redhat.com>
27013
27014 [BZ #16777]
27015 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
27016 and improve readability by using more ASCII.
27017 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
27018 and improve readability by using more ASCII.
27019
27020 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
27021
27022 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
27023 not all targets support atomics on bool.
27024
27025 2017-10-17 Joseph Myers <joseph@codesourcery.com>
27026
27027 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
27028 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
27029 __f128.
27030 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27031 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
27032 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27033 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
27034 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
27035 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
27036
27037 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27038
27039 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
27040 defines.
27041
27042 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27043
27044 [BZ #22159]
27045 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
27046 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
27047 (do_check_remalloced_chunk): Fix build bug.
27048 (do_check_malloc_state): Add assert that checks arena->top.
27049 (malloc_consolidate): Remove initialization.
27050 (int_mallinfo): Remove call to malloc_consolidate.
27051 (__libc_mallopt): Clarify why malloc_consolidate is needed.
27052
27053 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27054
27055 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
27056 (have_fastchunks): Remove.
27057 (clear_fastchunks): Remove.
27058 (set_fastchunks): Remove.
27059 (malloc_state): Add have_fastchunks.
27060 (malloc_init_state): Use have_fastchunks.
27061 (do_check_malloc_state): Remove incorrect invariant checks.
27062 (_int_malloc): Use have_fastchunks.
27063 (_int_free): Likewise.
27064 (malloc_consolidate): Likewise.
27065
27066 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27067
27068 * malloc/malloc.c (tcache_put): Inline.
27069 (tcache_get): Inline.
27070
27071 2017-10-17 Jordi Mallach <jordi@gnu.org>
27072
27073 Aurelien Jarno <aurelien@aurel32.net>
27074 [BZ #2522]
27075 * localedata/locales/ca_ES@valencia: New file.
27076 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27077
27078 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27079
27080 [BZ #22296]
27081 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27082 < 6.x
27083
27084 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27085
27086 * scripts/build-many-glibcs.py (Context.add_all_configs):
27087 Add arm-linux-gnueabihf multiarch extra_glibcs.
27088
27089 * sysdeps/generic/ifunc-init.h: New file.
27090 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27091
27092 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27093
27094 [BZ #22019]
27095 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27096 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27097 * stdlib/tst-strfmon_l.c: adapt test case.
27098
27099 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27100
27101 * sysdeps/generic/float128-abi.h: New file.
27102 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27103 non-__prefixed symbols to ....
27104 * math/Versions: ... here. Include <float128-abi.h>.
27105 * stdlib/Versions ... and here. Include <float128-abi.h>
27106
27107 2017-10-16 Florian Weimer <fweimer@redhat.com>
27108
27109 * version.h (VERSION): Switch to ".9000" as the development
27110 version suffix.
27111
27112 2017-10-16 Florian Weimer <fweimer@redhat.com>
27113
27114 [BZ #22050]
27115 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27116 compat_symbol_reference to access non-default version.
27117
27118 2017-10-16 Florian Weimer <fweimer@redhat.com>
27119
27120 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27121
27122 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27123
27124 * include/shlib-compat.h (compat_symbol_reference): Update
27125 comment.
27126
27127 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27128
27129 * math/Makefile (test-types): Add
27130 $(type-float128-$(float128-alias-fcts)).
27131 * math/test-float128.h (TYPE_STR): Define conditional on
27132 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27133 (ULP_IDX): Likewise.
27134 (ULP_I_IDX): Likewise.
27135
27136 * stdlib/strtold.c: Include <bits/floatn.h>
27137 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27138 and later undefine as macro. Define as weak alias if
27139 [!USE_WIDE_CHAR].
27140 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27141 and later undefine as macro. Define as weak alias if
27142 [USE_WIDE_CHAR].
27143 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27144 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27145 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27146 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27147 Define and later undefine as macro. Define as weak alias if
27148 [USE_WIDE_CHAR].
27149 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27150 <bits/floatn.h>.
27151 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27152 Define and later undefine as macro. Define as weak alias if
27153 [!USE_WIDE_CHAR].
27154 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27155 Define and later undefine as macro. Define as weak alias if
27156 [USE_WIDE_CHAR].
27157
27158 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27159
27160 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27161 record_verbose messages.
27162
27163 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27164
27165 [BZ #22052]
27166 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27167 to silence -O3 -Wall warning with GCC 7.
27168
27169 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27170
27171 * Makeconfig (+link-static-before-libc): Use the first of
27172 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27173 * gmon/Makefile (tests): Add tst-gmon-static.
27174 (tests-static): Likewise.
27175 (CFLAGS-tst-gmon-static.c): New.
27176 (CRT-tst-gmon-static): Likewise.
27177 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27178 (tst-gmon-static-ENV): Likewise.
27179 (tests-special): Likewise.
27180 ($(objpfx)tst-gmon-static.out): Likewise.
27181 (clean-tst-gmon-static-data): Likewise.
27182 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27183 * gmon/tst-gmon-static-gprof.sh: New file.
27184 * gmon/tst-gmon-static.c: Likewise.
27185
27186 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27187
27188 [BZ #22295]
27189 * locale/programs/linereader.c (get_string): Don't warn on
27190 non-symbolic character.
27191
27192 [BZ #22294]
27193 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27194 int_curr_symbol.
27195
27196 [BZ #22292]
27197 * locale/programs/record-status.h: New file
27198 * locale/programs/locale.c: Add comment.
27199 * locale/programs/charmap-dir.c: Don't include error.h.
27200 (charmap_opendir): Use record_error.
27201 * locale/programs/charmap.c: Don't include error.h.
27202 (charmap_read): Use record_error, and record_warning.
27203 (parse_charmap): Likewise.
27204 * locale/programs/ld-address.c: Don't include error.h.
27205 (address_finish): Use record_error, and record_warning.
27206 * locale/programs/ld-collate.c: Don't include error.h.
27207 (collate_finish): Use record_error, and record_error_at_line.
27208 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27209 (ctype_class_new): Likewise.
27210 (ctype_map_new): Likewise.
27211 (set_one_default): Likewise.
27212 (set_class_defaults): Likewise.
27213 (translit_flatten): Likewise.
27214 (allocate_arrays): Use record_error, and record_verbose.
27215 * locale/programs/ld-identification.c: Don't include error.h.
27216 (indentation_finish): Use record_error and record_warning.
27217 * locale/programs/ld-measurement.c: Don't include error.h.
27218 (measurement_finish): Use record_error.
27219 * locale/programs/ld-messages.c
27220 (message_finish): Likewise.
27221 * locale/programs/ld-monetary.c
27222 (monetary_finish): Likewise.
27223 * locale/programs/ld-name.c (name_finish): Use record_error
27224 and record_warning.
27225 * locale/programs/ld-numeric.c
27226 (numeric_finish): Use record_error.
27227 * locale/programs/ld-paper.c: Don't include error.h.
27228 (paper_finish): Use record_error.
27229 * locale/programs/ld-telephone.c: Don't include error.h.
27230 (telephone_finish): Use record_error.
27231 * locale/programs/ld-time.c (time_finish): Likewise.
27232 * locale/programs/linereader.h (lr_error): Make inline func.
27233 * locale/programs/localedef.c: Define recorded_warning_count,
27234 and recorded_error_count.
27235 (main): Use record_error. Use recorded_error_count and
27236 recorded_warning_count to issue correct error returns.
27237 (add_to_readlist): Use record_error.
27238 (find_locale): Likewise.
27239 (load_locale): Likewise.
27240 * locale/programs/localedef.h: Remove be_quiet
27241 and WITH_CUR_LOCALE.
27242 * locale/programs/locarchive.c (compare_from_file): Use
27243 record_error.
27244 * locale/programs/locfile.c (write_locale_data): Use
27245 record_error.
27246 * locale/programs/repertoire.c: Dont include error.h.
27247 (repertoire_complain): Use record_error.
27248 * localedata/tst-fmon.sh: Expect failures from localedef.
27249 * localedata/tst-locale.sh: Likewise.
27250 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27251
27252 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27253 (REPORTS): Likewise.
27254 (check): Likewise.
27255 (i18n): Rename to...
27256 (i18n_ctype): ...this.
27257 (i18n-report): Rename to...
27258 (i18n_ctype-report): ...this.
27259 * localedata/locales/i18n_ctype: Regenerate.
27260 * localedata/locales/i18n: copy i18n_ctype.
27261
27262 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27263
27264 * stdlib/strfroml.c: Include <bits/floatn.h>.
27265 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27266 Define before include of <stdlib.h> and undefine afterwards, then
27267 define as weak alias.
27268
27269 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27270 Undefine and restore default definition. Use
27271 libm_alias_ldouble_other.
27272
27273 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27274
27275 [BZ #22153]
27276 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27277 in coredumps.
27278
27279 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27280
27281 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27282 Assign sym_map to be map for local symbols, as TLS relocations
27283 use sym_map to determine whether the symbol is defined and to
27284 extract the TLS information.
27285 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27286 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27287
27288 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27289
27290 [BZ #22189]
27291 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27292 (math_force_eval): Add powerpc version.
27293
27294 [BZ #22142]
27295 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27296 -DBL_MAX.
27297 (do_test): Likewise.
27298 * stdio-common/tst-printf.sh: Likewise.
27299 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27300 ifdef clause in order to set the carry bit right. Replace r0 by
27301 0 without changing the behavior.
27302
27303 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27304
27305 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27306 <libm-alias-ldouble.h>.
27307 (fabsl): Define using libm_alias_ldouble.
27308 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27309 <libm-alias-ldouble.h>.
27310 (fabsl): Define using libm_alias_ldouble.
27311
27312 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27313 Remove conditional code.
27314
27315 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27316 Rename to __clog10_internal_l.
27317 (__clog10_internal_l): Define aliases using
27318 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27319 with __clog10.
27320
27321 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27322
27323 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27324 * benchtests/sincosf-inputs: New file.
27325 * benchtests/cosf-inputs: New file.
27326 * benchtests/sinf-inputs: New file.
27327
27328 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27329
27330 * posix/tst-spawn.c (do_test): Wait for both children.
27331
27332 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27333
27334 [BZ #22284]
27335 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27336 tests-pie): Add tst-gmon-pie.
27337 (CFLAGS-tst-gmon-pie.c): New.
27338 (CRT-tst-gmon-pie): Likewise.
27339 (tst-gmon-pie-ENV): Likewise.
27340 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27341 ($(objpfx)tst-gmon-pie.out): Likewise.
27342 (clean-tst-gmon-pie-data): Likewise.
27343 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27344 * gmon/gmon.c [PIC]: Include <link.h>.
27345 [PIC] (callback): New function.
27346 (write_hist): Add an argument for load address. Subtract load
27347 address from PCs.
27348 (write_call_graph): Likewise.
27349 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27350 it to write_hist and write_call_graph.
27351 * gmon/tst-gmon-pie.c: New file.
27352
27353 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27354
27355 * math/Makefile (test-types-basic): New variable.
27356 (test-types): Likewise.
27357 (libm-test-support): Use $(test-types) instead of $(types).
27358 (libm-tests-base-normal): Likewise.
27359 (libm-tests-base-finite): Likewise.
27360 (libm-tests-base-inline): Likewise.
27361 (generated): Likewise.
27362 ($(objpfx)libm-test-support-$(t).c): Likewise.
27363 (libm-tests-for-type iterator): Likewise.
27364 (libm-test-support iterator): Likewise.
27365 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27366 (ulp_idx): Use ULP_IDX.
27367 * math/test-ldouble.h: Include <float.h>.
27368 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27369 (ULP_IDX): New macro.
27370 (ULP_I_IDX): Likewise.
27371 * math/test-double.h (ULP_IDX): Likewise.
27372 (ULP_I_IDX): Likewise.
27373 * math/test-float.h (ULP_IDX): Likewise.
27374 (ULP_I_IDX): Likewise.
27375 * math/test-float128.h (ULP_IDX): Likewise.
27376 (ULP_I_IDX): Likewise.
27377
27378 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27379
27380 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27381 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27382 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27383 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27384 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27385 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27386 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27387 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27388 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27389 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27390 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27391 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27392 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27393 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27394 (SINGLE_THREAD_BY_GLOBAL): Define.
27395 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27396 Likewise.
27397 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27398 Likewise.
27399 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27400 Likewise.
27401 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27402 Likewise.
27403 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27404 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27405 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27406 Likewise.
27407
27408 2017-10-11 Andreas Schwab <schwab@suse.de>
27409
27410 * nis/Makefile (aux): Remove.
27411 * nscd/Makefile (aux): Add nscd_hash.
27412 (nscd-modules): Likewise.
27413 ($(objpfx)nscd): Don't depend on libnsl.
27414 * nscd/nscd_hash.c: New file.
27415 * nscd/nscd_hash.h: Likewise.
27416 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27417 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27418 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27419 instead of <nis/rpcsvc/nis.h>.
27420 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27421
27422 2017-10-11 Florian Weimer <fweimer@redhat.com>
27423
27424 [BZ #22078]
27425 Avoid large NSS buffers with many addresses, aliases.
27426 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27427 using dynarrays and struct alloc_buffer.
27428 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27429 (tst-nss-files-hosts-multi): Link with -ldl.
27430 * nss/tst-nss-files-hosts-multi.c: New file.
27431
27432 2017-10-11 Florian Weimer <fweimer@redhat.com>
27433
27434 [BZ #18023]
27435 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27436 scratch_buffer. Eliminate gotos.
27437
27438 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27439
27440 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27441 libm_alias_ldouble_other.
27442 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27443 undefine and redefine.
27444 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27445 (exp10l): Do not define here.
27446 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27447 (weak_alias): Undefine and redefine.
27448 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27449 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27450 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27451 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27452
27453 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27454 [!__fma] (fma): Define using libm_alias_double.
27455 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27456 [!__fmaf] (fmaf): Define using libm_alias_float.
27457 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27458 (fmal): Define using libm_alias_ldouble.
27459
27460 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27461
27462 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27463 New macro.
27464 (libm_alias_double_other): Likewise.
27465 (libm_alias_double_r): Use libm_alias_double_other_r.
27466 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27467 New macro.
27468 (libm_alias_float_other): Likewise.
27469 (libm_alias_float_r): Use libm_alias_float_other_r.
27470 * sysdeps/generic/libm-alias-float128.h
27471 (libm_alias_float128_other_r): New macro.
27472 (libm_alias_float128_other): Likewise.
27473 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27474 * sysdeps/generic/libm-alias-ldouble.h
27475 (libm_alias_ldouble_other_r): New macro.
27476 (libm_alias_ldouble_other): Likewise.
27477 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27478 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27479 (libm_alias_double_other_r): New macro.
27480 (libm_alias_double_other): Likewise.
27481 (libm_alias_double_r): Use libm_alias_double_other_r.
27482 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27483 (libm_alias_ldouble_other_r): New macro.
27484 (libm_alias_ldouble_other): Likewise.
27485 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27486 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27487 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27488 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27489 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27490 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27491 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27492 * math/w_exp2f.c: Use libm_alias_float_other.
27493 * math/w_expf.c: Likewise.
27494 * math/w_log2f.c: Likewise.
27495 * math/w_logf.c: Likewise.
27496 * math/w_powf.c: Likewise.
27497 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27498 [!__exp2f]: Use libm_alias_float_other.
27499 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27500 [!__expf]: Use libm_alias_float_other.
27501 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27502 [!__log2f]: Use libm_alias_float_other.
27503 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27504 [!__logf]: Use libm_alias_float_other.
27505 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27506 [!__powf]: Use libm_alias_float_other.
27507
27508 2017-10-10 Florian Weimer <fweimer@redhat.com>
27509
27510 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27511 function.
27512 (_nss_files_gethostbyname3_r): Call it.
27513
27514 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27515
27516 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27517 error. Remove default definition of declare_mgen_alias.
27518 [!declare_mgen_alias_r]: Likewise.
27519 * sysdeps/generic/math-type-macros-double.h
27520 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27521 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27522 (declare_mgen_alias_r): Likewise.
27523 * sysdeps/generic/math-type-macros-float128.h
27524 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27525 * sysdeps/generic/math-type-macros-ldouble.h
27526 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27527 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27528 macro.
27529 (declare_mgen_alias_r_s): Likewise.
27530 (declare_mgen_alias_r): Likewise.
27531 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27532 (lgamma_r): Define using libm_alias_double_r.
27533 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27534 (lgammaf_r): Define using libm_alias_float_r.
27535 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27536 (lgammal_r): Define using libm_alias_ldouble_r.
27537 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27538 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27539
27540 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27541
27542 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27543 extern declaration.
27544
27545 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27546
27547 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27548
27549 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27550
27551 [BZ #21326]
27552 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27553 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27554 * math/Makefile (test-math-cxx11): New test.
27555 * math/test-math-cxx11.cc: New file.
27556
27557 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27558
27559 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27560
27561 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27562 call to allocate the slave pty file descriptor.
27563
27564 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27565
27566 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27567 [!__fma] (fma): Define using libm_alias_double.
27568 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27569 [!__fma] (fma): Define using libm_alias_double.
27570
27571 * sysdeps/ieee754/float128/float128_private.h: Include
27572 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27573 (libm_alias_ldouble_r): Undefine and redefine.
27574 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27575 <libm-alias-ldouble.h>.
27576 (asinhl): Define using libm_alias_ldouble.
27577 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27578 <libm-alias-ldouble.h>.
27579 (atanl): Define using libm_alias_ldouble.
27580 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27581 <libm-alias-ldouble.h>.
27582 (cbrtl): Define using libm_alias_ldouble.
27583 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27584 <libm-alias-ldouble.h>.
27585 (ceill): Define using libm_alias_ldouble.
27586 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27587 <libm-alias-ldouble.h>.
27588 (copysignl): Define using libm_alias_ldouble.
27589 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27590 <libm-alias-ldouble.h>.
27591 (cosl): Define using libm_alias_ldouble.
27592 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27593 <libm-alias-ldouble.h>.
27594 (erfl): Define using libm_alias_ldouble.
27595 (erfcl): Likewise.
27596 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27597 <libm-alias-ldouble.h>.
27598 (expm1l): Define using libm_alias_ldouble.
27599 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27600 <libm-alias-ldouble.h>.
27601 (fabsl): Define using libm_alias_ldouble.
27602 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27603 <libm-alias-ldouble.h>.
27604 (floorl): Define using libm_alias_ldouble.
27605 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27606 <libm-alias-ldouble.h>.
27607 (fmal): Define using libm_alias_ldouble.
27608 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27609 <libm-alias-ldouble.h>.
27610 (frexpl): Define using libm_alias_ldouble.
27611 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27612 libm_alias_ldouble.
27613 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27614 <libm-alias-ldouble.h>.
27615 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27616 libm_alias_ldouble.
27617 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27618 <libm-alias-ldouble.h>.
27619 (getpayloadl): Define using libm_alias_ldouble.
27620 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27621 <libm-alias-ldouble.h>.
27622 (llrintl): Define using libm_alias_ldouble.
27623 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27624 <libm-alias-ldouble.h>.
27625 (llroundl): Define using libm_alias_ldouble.
27626 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27627 <libm-alias-ldouble.h>.
27628 (logbl): Define using libm_alias_ldouble.
27629 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27630 <libm-alias-ldouble.h>.
27631 (lrintl): Define using libm_alias_ldouble.
27632 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27633 <libm-alias-ldouble.h>.
27634 (lroundl): Define using libm_alias_ldouble.
27635 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27636 <libm-alias-ldouble.h>.
27637 (modfl): Define using libm_alias_ldouble.
27638 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27639 <libm-alias-ldouble.h>.
27640 (nearbyintl): Define using libm_alias_ldouble.
27641 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27642 <libm-alias-ldouble.h>.
27643 (nextafterl): Define using libm_alias_ldouble.
27644 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27645 <libm-alias-ldouble.h>.
27646 (nextupl): Define using libm_alias_ldouble.
27647 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27648 <libm-alias-ldouble.h>.
27649 (remquol): Define using libm_alias_ldouble.
27650 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27651 <libm-alias-ldouble.h>.
27652 (rintl): Define using libm_alias_ldouble.
27653 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27654 <libm-alias-ldouble.h>.
27655 (roundevenl): Define using libm_alias_ldouble.
27656 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27657 <libm-alias-ldouble.h>.
27658 (roundl): Define using libm_alias_ldouble.
27659 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27660 using libm_alias_ldouble.
27661 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27662 <libm-alias-ldouble.h>.
27663 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27664 Define using libm_alias_ldouble.
27665 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27666 <libm-alias-ldouble.h>.
27667 (sincosl): Define using libm_alias_ldouble.
27668 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27669 <libm-alias-ldouble.h>.
27670 (sinl): Define using libm_alias_ldouble.
27671 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27672 <libm-alias-ldouble.h>.
27673 (tanhl): Define using libm_alias_ldouble.
27674 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27675 <libm-alias-ldouble.h>.
27676 (tanl): Define using libm_alias_ldouble.
27677 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27678 <libm-alias-ldouble.h>.
27679 (totalorderl): Define using libm_alias_ldouble.
27680 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27681 <libm-alias-ldouble.h>.
27682 (totalordermagl): Define using libm_alias_ldouble.
27683 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27684 <libm-alias-ldouble.h>.
27685 (truncl): Define using libm_alias_ldouble.
27686 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27687 libm_alias_ldouble.
27688 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27689 libm_alias_ldouble.
27690 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27691 <libm-alias-ldouble.h>.
27692 (weak_alias): Do not undefine and redefine.
27693 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27694 (copysignl): Define with long_double_symbol only if [IS_IN
27695 (libc)].
27696 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27697 <libm-alias-ldouble.h>.
27698 (weak_alias): Do not undefine and redefine.
27699 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27700 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27701 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27702 <libm-alias-ldouble.h>.
27703 (weak_alias): Do not undefine and redefine.
27704 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27705 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27706 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27707 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27708 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27709 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27710 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27711 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27712 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27713 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27714 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27715 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27716 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27717 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27718 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27719 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27720 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27721 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27722 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27723 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27724 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27725 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27726 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27727 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27728 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27729 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27730
27731 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27732
27733 [BZ #22111]
27734 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27735 (tcache_thread_freeres): Set tcache_shutting_down before
27736 freeing the tcache.
27737 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27738 * malloc/tst-malloc-tcache-leak.c: New file.
27739
27740 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27741
27742 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27743 back to powerpc32 file.
27744 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27745 (memrchr): Add __memrchr_power8 to ifunc list.
27746 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27747 extra bytes for unaligned inputs.
27748
27749 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27750
27751 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27752 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27753 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27754 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27755 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27756
27757 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27758
27759 * sysdeps/arm/libm-test-ulps: Update.
27760
27761 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27762 <libm-alias-ldouble.h>.
27763 (asinhl): Define using libm_alias_ldouble.
27764 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27765 <libm-alias-ldouble.h>.
27766 (cbrtl): Define using libm_alias_ldouble.
27767 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27768 <libm-alias-ldouble.h>.
27769 (copysignl): Define using libm_alias_ldouble.
27770 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27771 <libm-alias-ldouble.h>.
27772 (cosl): Define using libm_alias_ldouble.
27773 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27774 <libm-alias-ldouble.h>.
27775 (erfl): Define using libm_alias_ldouble.
27776 (erfcl): Likewise.
27777 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27778 <libm-alias-ldouble.h>.
27779 (fmal): Define using libm_alias_ldouble.
27780 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27781 <libm-alias-ldouble.h>.
27782 (frexpl): Define using libm_alias_ldouble.
27783 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27784 libm_alias_ldouble.
27785 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27786 <libm-alias-ldouble.h>.
27787 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27788 libm_alias_ldouble.
27789 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27790 <libm-alias-ldouble.h>.
27791 (getpayloadl): Define using libm_alias_ldouble.
27792 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27793 <libm-alias-ldouble.h>.
27794 (llrintl): Define using libm_alias_ldouble.
27795 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27796 <libm-alias-ldouble.h>.
27797 (llroundl): Define using libm_alias_ldouble.
27798 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27799 <libm-alias-ldouble.h>.
27800 (lrintl): Define using libm_alias_ldouble.
27801 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27802 <libm-alias-ldouble.h>.
27803 (lroundl): Define using libm_alias_ldouble.
27804 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27805 <libm-alias-ldouble.h>.
27806 (modfl): Define using libm_alias_ldouble.
27807 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27808 <libm-alias-ldouble.h>.
27809 (nextupl): Define using libm_alias_ldouble.
27810 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27811 <libm-alias-ldouble.h>.
27812 (remquol): Define using libm_alias_ldouble.
27813 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27814 <libm-alias-ldouble.h>.
27815 (roundevenl): Define using libm_alias_ldouble.
27816 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27817 <libm-alias-ldouble.h>.
27818 (roundl): Define using libm_alias_ldouble.
27819 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27820 using libm_alias_ldouble.
27821 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27822 <libm-alias-ldouble.h>.
27823 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27824 <libm-alias-ldouble.h>.
27825 (setpayloadsigl): Define using libm_alias_ldouble.
27826 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27827 <libm-alias-ldouble.h>.
27828 (sincosl): Define using libm_alias_ldouble.
27829 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27830 <libm-alias-ldouble.h>.
27831 (sinl): Define using libm_alias_ldouble.
27832 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27833 <libm-alias-ldouble.h>.
27834 (tanhl): Define using libm_alias_ldouble.
27835 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27836 <libm-alias-ldouble.h>.
27837 (tanl): Define using libm_alias_ldouble.
27838 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27839 <libm-alias-ldouble.h>.
27840 (totalorderl): Define using libm_alias_ldouble.
27841 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27842 <libm-alias-ldouble.h>.
27843 (totalordermagl): Define using libm_alias_ldouble.
27844 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27845 libm_alias_ldouble.
27846 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27847 libm_alias_ldouble.
27848
27849 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27850
27851 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27852 memmove_falkor.
27853 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27854 (__libc_ifunc_impl_list): Likewise.
27855 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27856 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27857
27858 * benchtests/bench-memmove-walk.c: New file.
27859 * benchtests/Makefile (string-benchset): Add it.
27860
27861 * benchtests/bench-memset-walk.c: New file.
27862 * benchtests/Makefile (string-benchset): Add it.
27863
27864 * benchtests/bench-memcpy-walk.c: New file.
27865 * benchtests/Makefile (string-benchset): Add it.
27866
27867 2017-10-05 Florian Weimer <fweimer@redhat.com>
27868
27869 nscd: Eliminate compilation time dependency in the build output.
27870 * nscd/nscd_stat.c (STATDATA_VERSION)
27871 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27872 (STATDATA_VERSION_FULL): New macro definitions.
27873 (compilation): Remove.
27874 (struct statdata): Adjust version member.
27875 (send_stats): Set version from STATDATA_VERSION_FULL.
27876 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27877
27878 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27879
27880 * configure.ac (--enable-add-ons): Remove option.
27881 (machine): Do not mention add-ons in comment.
27882 (LIBC_PRECONFIGURE): Likewise.
27883 (add_ons): Remove variable and sanity checks and logic to locate
27884 add-ons.
27885 (add_ons_automatic): Remove variable.
27886 (configured_add_ons): Likewise.
27887 (add_ons_sfx): Likewise.
27888 (add_ons_pfx): Likewise.
27889 (add_on_subdirs): Likewise.
27890 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27891 consideration of add-ons in Implies handling.
27892 (sysdeps_add_ons): Likewise.
27893 * configure: Regenerated.
27894 * libidn/configure.ac: Remove.
27895 * libidn/configure: Likewise.
27896 * sysdeps/unix/inet/configure.ac: New file.
27897 * sysdeps/unix/inet/configure: New generated file.
27898 * sysdeps/unix/inet/Subdirs: Add libidn.
27899 * Makeconfig (sysdeps-srcdirs): Remove variable.
27900 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27901 ($(common-objpfx)config.status): Do not depend on add-on files.
27902 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27903 comment.
27904 (all-subdirs): Do not include $(add-on-subdirs).
27905 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27906 * config.make.in (add-ons): Remove variable.
27907 (add-on-subdirs): Likewise.
27908 (sysdeps-add-ons): Likewise.
27909 * manual/Makefile (add-chapters): Remove.
27910 ($(objpfx)texis): Do not depend on $(add-chapters).
27911 (nonexamples): Do not handle $(add-chapters).
27912 (examples): Do not handle $(add-ons).
27913 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27914 libc-texinfo.sh.
27915 * manual/install.texi (Installation): Do not mention add-ons.
27916 (--enable-add-ons): Do not document configure option.
27917 * INSTALL: Regenerated.
27918 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27919 * manual/maint.texi (Hierarchy Conventions): Do not mention
27920 add-ons.
27921 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27922 --enable-add-ons.
27923 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27924 add-ons.
27925 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27926 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27927
27928 2017-10-05 Andreas Schwab <schwab@suse.de>
27929
27930 [BZ #15142]
27931 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27932 (_IO_flush_all_lockp): Always lock list_all_lock.
27933 (_IO_flush_all_linebuffered): Likewise.
27934 (_IO_unbuffer_all): Likewise.
27935
27936 2017-10-05 Florian Weimer <fweimer@redhat.com>
27937
27938 [BZ #15436]
27939 Do not flush stdio streams on abort.
27940 * stdlib/abort.c (fflush): Remove macro definition.
27941 (abort): Remove stages related to stdio flushing.
27942
27943 2017-10-05 Florian Weimer <fweimer@redhat.com>
27944
27945 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27946
27947 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27948
27949 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27950
27951 2017-10-05 Florian Weimer <fweimer@redhat.com>
27952
27953 * support/support_format_hostent.c (support_format_hostent): Add
27954 more error information for NETDB_INTERNAL.
27955
27956 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27957
27958 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27959 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27960 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27961 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27962 AC_DEFINE if multi-arch is enabled.
27963 * sysdeps/i386/configure: Regenerated.
27964
27965 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27966
27967 * Makeconfig (+link-static-before-libc): Use
27968 $(DEFAULT-LDFLAGS-$(@F)).
27969 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27970 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27971 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27972
27973 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27974
27975 * elf/Makefile (tests): Add tst-main1.
27976 (modules-names): Add tst-main1mod.
27977 ($(objpfx)tst-main1): New.
27978 (CRT-tst-main1): Likewise.
27979 (LDFLAGS-tst-main1): Likewise.
27980 (LDLIBS-tst-main1): Likewise.
27981 (tst-main1mod.so-no-z-defs): Likewise.
27982 * elf/tst-main1.c: New file.
27983 * elf/tst-main1mod.c: Likewise.
27984
27985 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27986
27987 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27988
27989 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27990
27991 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27992 (fma): Define using libm_alias_double.
27993 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27994 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27995 <math_ldbl_opt.h>.
27996 (fmal): Do not define as compat symbol here.
27997 * sysdeps/alpha/fpu/s_fma.c: New file.
27998
27999 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28000
28001 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
28002
28003 2017-10-04 Joseph Myers <joseph@codesourcery.com>
28004
28005 [BZ #22229]
28006 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
28007 <math_ldbl_opt.h>
28008 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28009 and libc.
28010 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
28011 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28012 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
28013 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
28014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
28015 Include <math_ldbl_opt.h>
28016 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
28017 and libc.
28018 (compat_symbol): Undefine and redefine.
28019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
28020 <math_ldbl_opt.h>
28021 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
28022 (compat_symbol): Undefine and redefine.
28023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
28024 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
28025 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
28026 GLIBC_2_1 for libm.
28027 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
28028 GLIBC_2.0 copysignl symbol.
28029 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
28030 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
28031
28032 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
28033
28034 2017-10-04 Florian Weimer <fweimer@redhat.com>
28035
28036 * scripts/check-local-headers.sh: Ignore nspr4 header file
28037 directory in addition to nspr.
28038
28039 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
28040
28041 [BZ #17956]
28042 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
28043 * configure: Regenerate.
28044 * crypt/Makefile (nss-cpp-flags): New variable.
28045 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
28046 (CPPFLAGS-md5-crypt.c): Use it.
28047 * scripts/check-local-headers.sh: Ignore nspr header file
28048 directory.
28049
28050 2017-10-04 Andreas Schwab <schwab@suse.de>
28051
28052 * nis/Makefile (services): Remove compat.
28053 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
28054 ($(objpfx)libnss_compat.so): Remove rule.
28055 * nis/Versions (libnss_compat): Remove.
28056 * nss/Makefile (services): Add compat.
28057 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
28058 * nss/Versions (libnss_compat): Define.
28059 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
28060 Don't include <rpc/types.h>. Replace bool_t by bool.
28061 * nss/nss_compat/compat-initgroups.c: Likewise.
28062 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28063 instead of <rpcsrv/ypclnt.h>.
28064 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28065 yp_get_default_domain.
28066 * nss/nss_compat/compat-pwd.c: Likewise.
28067 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28068 yp_get_default_domain.
28069 * nss/nss_compat/nisdomain.c: New file.
28070 * nss/nss_compat/nisdomain.h: Likewise.
28071
28072 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28073
28074 [BZ #22244]
28075 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28076 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28077
28078 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28079
28080 [BZ #22243]
28081 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28082 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28083
28084 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28085
28086 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28087 "movl main@GOTOFF(%ebx), %eax".
28088
28089 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28090
28091 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28092 allow undefined _DYNAMIC in PIE libc.a.
28093 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28094 Likewse.
28095
28096 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28097
28098 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28099 check _DYNAMIC.
28100
28101 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28102
28103 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28104 check _DYNAMIC.
28105
28106 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28107
28108 * math/test-math-iscanonical.cc (error): Replace bool with int.
28109
28110 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28111
28112 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28113 (modf): Define using libm_alias_double, only if [!__modf].
28114 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28115 <libm-alias-double.h>.
28116 (modf): Define using libm_alias_double, only if [!__modf].
28117 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28118 compat symbol here.
28119 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28120 (weak_alias): Do not undefine and redefine.
28121 (strong_alias): Likewise.
28122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28123 (weak_alias): Likewise.
28124 (strong_alias): Likewise.
28125
28126 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28127 (logb): Define using libm_alias_double, only if [!__logb].
28128 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28129 <libm-alias-double.h>.
28130 (logb): Define using libm_alias_double, only if [!__logb].
28131 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28132 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28133 (weak_alias): Do not undefine and redefine.
28134 (strong_alias): Likewise.
28135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28136 (weak_alias): Likewise.
28137 (strong_alias): Likewise.
28138
28139 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28140
28141 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28142 Check SHARED instead PIC.
28143
28144 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28145
28146 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28147 [!__fmaf] (fmaf): Define using libm_alias_float.
28148
28149 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28150 (frexp): Define using libm_alias_double.
28151 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28152 <libm-alias-double.h>.
28153 (frexp): Define using libm_alias_double.
28154 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28155 compat symbol here.
28156
28157 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28158
28159 [BZ #22235]
28160 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28161 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28162 (CFLAGS-test-math-iscanonical.cc): New variable.
28163 * math/test-math-iscanonical.cc: New file.
28164 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28165 Provide a C++ implementation based on function overloading,
28166 rather than using __MATH_TG, which uses C-only builtins.
28167 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28168 Likewise.
28169 * sysdeps/powerpc/powerpc64le/Makefile
28170 (CFLAGS-test-math-iscanonical.cc): New variable.
28171
28172 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28173
28174 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28175 (ceil): Define using libm_alias_double.
28176 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28177 (floor): Define using libm_alias_double.
28178 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28179 <libm-alias-double.h>.
28180 (llround): Define using libm_alias_double.
28181 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28182 <libm-alias-double.h>.
28183 (lround): Define using libm_alias_double.
28184 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28185 <libm-alias-double.h>.
28186 (nearbyint): Define using libm_alias_double.
28187 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28188 <libm-alias-double.h>.
28189 (remquo): Define using libm_alias_double.
28190 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28191 (rint): Define using libm_alias_double.
28192 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28193 (round): Define using libm_alias_double.
28194 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28195 (trunc): Define using libm_alias_double.
28196 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28197 <libm-alias-double.h>.
28198 (ceil): Define using libm_alias_double.
28199 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28200 <libm-alias-double.h>.
28201 (floor): Define using libm_alias_double.
28202 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28203 <libm-alias-double.h>.
28204 (llround): Define using libm_alias_double.
28205 [_LP64] (lround): Likewise.
28206 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28207 <libm-alias-double.h>.
28208 [!_LP64] (lround): Define using libm_alias_double.
28209 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28210 <libm-alias-double.h>.
28211 (nearbyint): Define using libm_alias_double.
28212 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28213 <libm-alias-double.h>.
28214 (remquo): Define using libm_alias_double.
28215 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28216 <libm-alias-double.h>.
28217 (rint): Define using libm_alias_double.
28218 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28219 <libm-alias-double.h>.
28220 (round): Define using libm_alias_double.
28221 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28222 <libm-alias-double.h>.
28223 (trunc): Define using libm_alias_double.
28224 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28225 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28226 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28227 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28228 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28229 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28230 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28231 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28233
28234 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28235
28236 * math/w_remainder.c: New file.
28237 * math/w_remainderf.c: New file.
28238 * math/w_remainderl.c: New file.
28239
28240 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28241
28242 * elf/rtld.c (BOOTSTRAP_MAP): New.
28243 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28244 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28245 Likewise.
28246 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28247 Likewise.
28248 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28249 Likewise.
28250
28251 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28252
28253 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28254 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28255 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28256 rtld_hidden_data_ver): Define to empty.
28257 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28258 __assert_perror_fail): Likewise.
28259 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28260 (__rewinddir): Likewise.
28261 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28262 (__profile_frequency): Likewise.
28263 * include/setjmp.h (__sigsetjmp): Likewise.
28264 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28265 __libc_sigaction): Likewise.
28266 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28267 not set hidden attribute.
28268 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28269 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28270 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28271 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28272 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28273 __fxstatat64): Likewise.
28274 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28275 (__uname): Likewise.
28276 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28277 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28278 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28279 (NO_RTLD_HIDDEN): Set.
28280 * sysdeps/mach/hurd/configure: Refresh.
28281 * config.h.in: Refresh.
28282
28283 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28284
28285 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28286 (atan): Define using libm_alias_double.
28287 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28288 (tan): Define using libm_alias_double.
28289 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28290 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28291
28292 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28293 define as weak alias of __atan. Do not define any aliases if
28294 [__atan].
28295 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28296 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28297 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28298 as weak alias of __tan. Do not define any aliases if [__tan].
28299 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28300 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28301 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28302 __atan.
28303 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28304 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28305 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28306 and define as weak alias of __atan.
28307 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28308 __atan.
28309 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28310 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28311 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28312 define as weak alias of __tan.
28313
28314 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28315
28316 * math/w_lgamma.c: New file.
28317 * math/w_lgammaf.c: New file.
28318 * math/w_lgammal.c: New file.
28319
28320 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28321
28322 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28323 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28324 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28325 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28326 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28327 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28328 * sysdeps/i386/fpu/w_log2f.c: New file.
28329 * sysdeps/i386/fpu/w_logf.c: New file.
28330 * sysdeps/i386/fpu/w_powf.c: New file.
28331 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28332 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28333 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28334
28335 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28336 H.J. Lu <hongjiu.lu@intel.com>
28337
28338 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28339 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28340 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28341 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28342 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28343 the new expf code.
28344 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28345 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28346 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28347 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28348 * sysdeps/i386/fpu/w_exp2f.c: New file.
28349 * sysdeps/i386/fpu/w_expf.c: New file.
28350 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28351 * sysdeps/x86_64/fpu/w_expf.c: New file.
28352
28353 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28354
28355 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28356 (log2f): Likewise.
28357 (powf): Likewise.
28358 * math/w_log2f.c: New file.
28359 * math/w_logf.c: New file.
28360 * math/w_powf.c: New file.
28361 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28362 * math/w_logf_compat.c (__logf_compat): Likewise.
28363 * math/w_powf_compat.c (__powf_compat): Likewise.
28364 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28365 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28366 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28367 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28368 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28369 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28370 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28371 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28372 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28373 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28374 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28375 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28376 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28377 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28378 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28379 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28380 Likewise.
28381 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28382 Likewise.
28383 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28384 Likewise.
28385 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28386 Likewise.
28387 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28388 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28389 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28390 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28391 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28392 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28393 Likewise.
28394 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28395 Likewise.
28396 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28397 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28398 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28399
28400 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28401
28402 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28403 (sysdep_routines): Add memrchr_power8.
28404 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28405 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28406 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28407 New file.
28408 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28409 (memrchr): Add __memrchr_power8 to ifunc list.
28410 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28411
28412 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28413
28414 [BZ #18822]
28415 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28416 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28417 libc_hidden_def.
28418 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28419 (__posix_fallocate64_l64): Likewise.
28420
28421 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28422
28423 [BZ #18822]
28424 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28425 (__sched_setaffinity_new): Add libc_hidden_proto and
28426 libc_hidden_def.
28427
28428 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28429
28430 [BZ #18822]
28431 * include/glob.h (__glob64): Add libc_hidden_proto.
28432 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28433 libc_hidden_def.
28434
28435 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28436
28437 [BZ #18822]
28438 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28439 attribute_hidden.
28440
28441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28442
28443 [BZ #18822]
28444 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28445
28446 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28447
28448 [BZ #18822]
28449 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28450 libc_hidden_def.
28451
28452 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28453
28454 [BZ #18822]
28455 * csu/version.c (__libc_print_version): Add attribute_hidden.
28456
28457 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28458
28459 [BZ #18822]
28460 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28461
28462 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28463
28464 [BZ #18822]
28465 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28466
28467 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28468
28469 [BZ #18822]
28470 * nscd/nscd_helper.c (__nis_hash): New prototype.
28471
28472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28473
28474 [BZ #18822]
28475 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28476 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28477 libc_hidden_def.
28478 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28479 * termios/tcgetattr.c (__tcgetattr): Likewise.
28480
28481 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28482
28483 [BZ #18822]
28484 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28485 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28486 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28487 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28488 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28489
28490 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28491
28492 [BZ #18822]
28493 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28494
28495 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28496
28497 [BZ #18822]
28498 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28499 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28500
28501 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28502
28503 [BZ #18822]
28504 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28505
28506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28507
28508 [BZ #18822]
28509 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28510 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28511
28512 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28513
28514 [BZ #18822]
28515 * include/ifreq.h: New file.
28516 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28517 (__ifreq): Likewise.
28518 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28519 (__ifreq): Likewise.
28520
28521 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28522
28523 [BZ #18822]
28524 * include/idna.h: New file.
28525 * inet/getnameinfo.c: Include <idna.h> instead of
28526 <libidn/idna.h>.
28527 (__idna_to_unicode_lzlz): Removed.
28528 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28529 <libidn/idna.h>.
28530 (__idna_to_ascii_lz): Removed.
28531 (__idna_to_unicode_lzlz): Likewise.
28532
28533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28534
28535 [BZ #18822]
28536 * include/plural-exp.h: New file.
28537 * intl/plural-exp.c: Include <plural-exp.h> instead of
28538 "plural-exp.h".
28539
28540 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28541
28542 [BZ #18822]
28543 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28544 "getsourcefilter.h".
28545 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28546 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28547 "getsourcefilter.h".
28548 (__get_sol): Removed.
28549
28550 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28551
28552 [BZ #18822]
28553 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28554 to ...
28555 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28556
28557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28558
28559 [BZ #18822]
28560 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28561 attribute_hidden.
28562
28563 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28564
28565 [BZ #18822]
28566 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28567
28568 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28569
28570 [BZ #18822]
28571 * include/search.h (__tdestroy): Add libc_hidden_proto.
28572 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28573
28574 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28575
28576 [BZ #18822]
28577 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28578
28579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28580
28581 [BZ #18822]
28582 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28583 attribute_hidden.
28584
28585 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28586
28587 [BZ #18822]
28588 * include/signal.h (__kill): Add libc_hidden_proto.
28589 (__sigblock): Likewise.
28590 (__sigprocmask): Likewise.
28591 (__sigaltstack): Likewise.
28592 * signal/kill.c (__kill): Add libc_hidden_def.
28593 * signal/sigblock.c (__sigblock): Likewise.
28594 * signal/sigprocmask.c (__sigprocmask): Likewise.
28595 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28596 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28597 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28598 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28599 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28600 Likewise.
28601 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28602 Likewise.
28603 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28604 (__sigprocmask): Likewise.
28605 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28606 Likewise.
28607 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28608 (__sigprocmask): Likewise.
28609 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28610 Likewise.
28611
28612 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28613
28614 [BZ #18822]
28615 * include/string.h (__strsep): Add libc_hidden_proto.
28616 * string/strsep.c (__strsep): Add libc_hidden_def.
28617
28618 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28619
28620 [BZ #18822]
28621 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28622 attribute_hidden.
28623 (__spawni): Likewise.
28624
28625 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28626
28627 [BZ #18822]
28628 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28629 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28630 libc_hidden_def.
28631
28632 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28633
28634 [BZ #18822]
28635 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28636
28637 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28638
28639 [BZ #18822]
28640 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28641 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28642 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28643 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28644 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28645 Likewise.
28646 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28647 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28648
28649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28650
28651 [BZ #18822]
28652 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28653 (__dcigettext): Likewise.
28654
28655 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28656
28657 [BZ #18822]
28658 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28659 libc_hidden_proto.
28660 (__get_nprocs): Likewise.
28661 (__get_phys_pages): Likewise.
28662 (__get_avphys_pages): Likewise.
28663 (__get_child_max): Add attribute_hidden.
28664 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28665 (__get_nprocs): Likewise.
28666 (__get_phys_pages): Likewise.
28667 (__get_avphys_pages): Likewise.
28668 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28669 libc_hidden_def.
28670 (__get_nprocs): Likewise.
28671 (__get_phys_pages): Likewise.
28672 (__get_avphys_pages): Likewise.
28673 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28674 libc_hidden_def.
28675 (__get_nprocs_conf): Likewise.
28676 (__get_phys_pages): Likewise.
28677 (__get_avphys_pages): Likewise.
28678
28679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28680
28681 [BZ #18822]
28682 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28683 attribute_hidden.
28684 (__netlink_close): Likewise.
28685 (__netlink_free_handle): Likewise.
28686 (__netlink_request): Likewise.
28687
28688 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28689
28690 [BZ #18822]
28691 * include/rpc/rpc.h (__rpc_thread_variables): Add
28692 attribute_hidden.
28693 (__rpc_thread_svc_cleanup): Likewise.
28694 (__rpc_thread_clnt_cleanup): Likewise.
28695 (__rpc_thread_key_cleanup): Likewise.
28696
28697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28698
28699 [BZ #18822]
28700 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28701 (__writev): Likewise.
28702 * misc/readv.c (__readv): Add libc_hidden_def.
28703 * misc/writev.c (__writev): Likewise.
28704 * sysdeps/posix/readv.c (__readv): Likewise.
28705 * sysdeps/posix/writev.c (__writev): Likewise.
28706 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28707 (__readv): Likewise.
28708 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28709 (__writev): Likewise.
28710
28711 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28712
28713 [BZ #18822]
28714 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28715 (__regcomp): Add libc_hidden_proto.
28716 (__regexec): Likewise.
28717 (__regfree): Likewise.
28718 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28719 (__regfree): Likewise.
28720 * posix/regexec.c (__regexec): Likewise.
28721
28722 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28723
28724 [BZ #18822]
28725 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28726 (__getutent): Likewise.
28727 (__getutid): Likewise.
28728 (__getutline): Likewise.
28729 (__pututline): Likewise.
28730 (__getutent_r): Likewise.
28731 (__getutid_r): Likewise.
28732 (__getutline_r): Likewise.
28733 (__utmpname): Add attribute_hidden.
28734 (__setutent): Likewise.
28735 (__endutent): Likewise.
28736 * login/getutent.c (__getutent): Add libc_hidden_def.
28737 * login/getutent_r.c (__getutent_r): Likewise.
28738 (__pututline): Likewise.
28739 * login/getutid.c (__getutid): Likewise.
28740 * login/getutid_r.c (__getutid_r): Likewise.
28741 * login/getutline.c (__getutline): Likewise.
28742 * login/getutline_r.c (__getutline_r): Likewise.
28743 * login/updwtmp.c (__updwtmp): Likewise.
28744
28745 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28746
28747 [BZ #18822]
28748 * include/dirent.h (__opendir): Always add attribute_hidden.
28749 (__fdopendir): Likewise.
28750 (__closedir): Likewise.
28751 (__readdir): Likewise.
28752 (__readdir64): Add libc_hidden_proto.
28753 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28754 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28755 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28756 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28757 New alias.
28758
28759 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28760
28761 [BZ #18822]
28762 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28763 * include/netdb.h (__gethostbyaddr_r): Likewise.
28764 (__gethostbyname_r): Likewise.
28765 (__gethostbyname2_r): Likewise.
28766 (__getnetbyaddr_r): Likewise.
28767 (__getnetbyname_r): Likewise.
28768 (__getservbyname_r): Likewise.
28769 (__getservbyport_r): Likewise.
28770 (__getprotobyname_r): Likewise.
28771 (__getprotobynumber_r): Likewise.
28772 (__getnetgrent_r): Likewise.
28773 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28774 (__getrpcbynumber_r): Likewise.
28775 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28776
28777 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28778
28779 [BZ #18822]
28780 * include/stdio.h (__fcloseall): Add attribute_hidden.
28781 (__getline): Likewise.
28782 (__path_search): Likewise.
28783 (__gen_tempname): Likewise.
28784 (__libc_message): Likewise.
28785 (__flockfile): Likewise.
28786 (__funlockfile): Likewise.
28787 (__fxprintf): Likewise.
28788 (__fxprintf_nocancel): Likewise.
28789
28790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28791
28792 [BZ #18822]
28793 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28794 (__sgetsgent_r): Likewise.
28795
28796 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28797
28798 [BZ #18822]
28799 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28800 (__statfs64): Likewise.
28801 (__fstatfs64): Likewise.
28802 * include/sys/statvfs.h (__statvfs64): Likewise.
28803 (__fstatvfs64): Likewise.
28804 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28805 (__statfs_filesize_max): Likewise.
28806 (__statfs_symlinks): Likewise.
28807 (__statfs_chown_restricted): Likewise.
28808
28809 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28810
28811 [BZ #18822]
28812 * include/time.h (__tzstring): Add attribute_hidden.
28813 (__tzfile_read): Likewise.
28814 (__tzfile_compute): Likewise.
28815 (__tzfile_default): Likewise.
28816 (__tzset_parse_tz): Likewise.
28817 (__offtime): Likewise.
28818 (__asctime_r): Likewise.
28819 (__tzset): Likewise.
28820 (__tz_convert): Likewise.
28821 (__getdate_r): Likewise.
28822 (__getclktck): Likewise.
28823
28824 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28825
28826 [BZ #18822]
28827 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28828 (__nscd_unmap): Likewise.
28829 (__nscd_cache_search): Likewise.
28830 (__nscd_get_nl_timestamp): Likewise.
28831 (__nscd_getpwnam_r): Likewise.
28832 (__nscd_getpwuid_r): Likewise.
28833 (__nscd_getgrnam_r): Likewise.
28834 (__nscd_getgrgid_r): Likewise.
28835 (__nscd_gethostbyname_r): Likewise.
28836 (__nscd_gethostbyname2_r): Likewise.
28837 (__nscd_gethostbyaddr_r): Likewise.
28838 (__nscd_getai): Likewise.
28839 (__nscd_getgrouplist): Likewise.
28840 (__nscd_getservbyname_r): Likewise.
28841 (__nscd_getservbyport_r): Likewise.
28842 (__nscd_innetgr): Likewise.
28843 (__nscd_setnetgrent): Likewise.
28844
28845 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28846
28847 [BZ #18822]
28848 * include/gmp.h: Declare internal functions only if _ISOMAC is
28849 undefined.
28850 (__mpn_extract_double): Add attribute_hidden.
28851 (__mpn_extract_long_double): Likewise.
28852 (__mpn_extract_float128): Likewise.
28853 (__mpn_construct_float): Likewise.
28854 (__mpn_construct_double): Likewise.
28855 (__mpn_construct_long_double): Likewise.
28856 (__mpn_construct_float128): Likewise.
28857 (mpn_add_1): Likewise.
28858 (mpn_addmul_1): Likewise.
28859 (mpn_add_n): Likewise.
28860 (mpn_cmp): Likewise.
28861 (mpn_divrem): Likewise.
28862 (mpn_lshift): Likewise.
28863 (mpn_mul): Likewise.
28864 (mpn_mul_1): Likewise.
28865 (mpn_rshift): Likewise.
28866 (mpn_sub_1): Likewise.
28867 (mpn_submul_1): Likewise.
28868 (mpn_sub_n): Likewise.
28869
28870 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28871
28872 [BZ #18822]
28873 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28874 (__wcscat): Likewise.
28875 (__btowc): Likewise.
28876 (__wcrtomb): Likewise.
28877 (__mbsrtowcs): Likewise.
28878 (__wcsrtombs): Likewise.
28879 (__mbsnrtowcs): Likewise.
28880 (__wcsnrtombs): Likewise.
28881 (__wcsncpy): Likewise.
28882 (__wcpncpy): Likewise.
28883 (__wmemcpy): Likewise.
28884 (__wmempcpy): Likewise.
28885 (__wmemmove): Likewise.
28886 (__wcschrnul): Likewise.
28887 (__vfwscanf): Likewise.
28888 (__vswprintf): Likewise.
28889 (__fwprintf): Likewise.
28890 (__vfwprintf): Likewise.
28891
28892 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28893
28894 [BZ #18822]
28895 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28896 (__getgrgid_r): Likewise.
28897 (__getgrnam_r): Likewise.
28898 * include/pwd.h (__getpwuid_r): Likewise.
28899 (__getpwnam_r): Likewise.
28900 (__fgetpwent_r): Likewise.
28901 * include/shadow.h (__getspnam_r): Likewise.
28902 (__sgetspent_r): Likewise.
28903 (__fgetspent_r): Likewise.
28904
28905 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28906
28907 [BZ #18822]
28908 * include/unistd.h (__access): Add attribute_hidden.
28909 (__lseek64): Likewise.
28910 (__libc_pread64): Likewise.
28911 (__pipe2): Likewise.
28912 (__sleep): Likewise.
28913 (__chdir): Likewise.
28914 (__fchdir): Likewise.
28915 (__getcwd): Likewise.
28916 (__rmdir): Likewise.
28917 (__execvpe): Likewise.
28918 (__execve): Likewise.
28919 (__setsid): Likewise.
28920 (__getuid): Likewise.
28921 (__geteuid): Likewise.
28922 (__getgid): Likewise.
28923 (__getegid): Likewise.
28924 (__getgroups): Likewise.
28925 (__group_member): Likewise.
28926 (__ttyname_r): Likewise.
28927 (__isatty): Likewise.
28928 (__readlink): Likewise.
28929 (__unlink): Likewise.
28930 (__gethostname): Likewise.
28931 (__profil): Likewise.
28932 (__getdtablesize): Likewise.
28933 (__brk): Likewise.
28934 (__ftruncate): Likewise.
28935 (__ftruncate64): Likewise.
28936
28937 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28938
28939 [BZ #18822]
28940 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28941 * argp/argp-fs-xinl.c: Likewise.
28942 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28943 * argp/argp-parse.c: Include <argp.h>.
28944 * argp/argp-xinl.c: Likewise.
28945 * include/argp-fmtstream.h: New file.
28946 * include/argp.h (__argp_error): Add attribute_hidden.
28947 (__argp_failure): Likewise.
28948 (__argp_input): Likewise.
28949 (__argp_state_help): Likewise.
28950
28951 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28952
28953 [BZ #18822]
28954 * include/wchar.h (____wcstof_l_internal): New prototype.
28955 (____wcstod_l_internal): Likewise.
28956 (____wcstold_l_internal): Likewise.
28957 (____wcstol_l_internal): Likewise.
28958 (____wcstoul_l_internal): Likewise.
28959 (____wcstoll_l_internal): Likewise.
28960 (____wcstoull_l_internal): Likewise.
28961 (____wcstof128_l_internal): Likewise.
28962 * sysdeps/ieee754/float128/wcstof128.c
28963 (____wcstof128_l_internal): Removed.
28964 * sysdeps/ieee754/float128/wcstof128_l.c
28965 (____wcstof128_l_internal): Likewise.
28966 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28967 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28968 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28969 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28970 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28971 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28972 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28973 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28974 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28975 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28976
28977 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28978
28979 [BZ #18822]
28980 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28981 instead of <sys/statvfs.h>.
28982 (__internal_statvfs): Removed.
28983 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28984 instead of <sys/statvfs.h>.
28985 (__internal_statvfs64): Removed.
28986 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28987 "internal_statvfs.h" instead of <sys/statvfs.h>.
28988 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28989 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28990 instead of <sys/statvfs.h>.
28991 (__internal_statvfs): Removed.
28992 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28993 instead of <sys/statvfs.h>.
28994 (__internal_statvfs64): Removed.
28995
28996 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28997
28998 [BZ #18822]
28999 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
29000 (__gconv_close): Likewise.
29001 (__gconv): Likewise.
29002 (__gconv_find_transform): Likewise.
29003 (__gconv_lookup_cache): Likewise.
29004 (__gconv_compare_alias_cache): Likewise.
29005 (__gconv_load_cache): Likewise.
29006 (__gconv_get_path): Likewise.
29007 (__gconv_close_transform): Likewise.
29008 (__gconv_release_cache): Likewise.
29009 (__gconv_find_shlib): Likewise.
29010 (__gconv_release_shlib): Likewise.
29011 (__gconv_get_builtin_trans): Likewise.
29012 (__gconv_compare_alias): Likewise.
29013 * include/dlfcn.h (_dlerror_run): Likewise.
29014 * include/stdio.h (__fortify_fail_abort): Likewise.
29015 * include/time.h (__tz_compute): Likewise.
29016 (__strptime_internal): Likewise.
29017 * intl/gettextP.h (_nl_find_domain): Likewise.
29018 (_nl_load_domain): Likewise.
29019 (_nl_find_msg): Likewise.
29020 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
29021 (EXTRACT_PLURAL_EXPRESSION): Likewise.
29022 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
29023 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
29024 (__gai_find_request): Likewise.
29025 (__gai_remove_request): Likewise.
29026 (__gai_notify): Likewise.
29027 (__gai_notify_only): Likewise.
29028 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29029 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
29030 (_dl_non_dynamic_init): Likewise.
29031 (_dl_aux_init): Likewise.
29032 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
29033 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29034 Likewise.
29035 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
29036 (__wcsmbs_clone_conv): Likewise.
29037 (__wcsmbs_named_conv): Likewise.
29038
29039 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29040
29041 [BZ #18822]
29042 * include/stdlib.h (__random): Add attribute_hidden.
29043 (__random_r): Likewise.
29044 (__srandom_r): Likewise.
29045 (__initstate_r): Likewise.
29046 (__setstate_r): Likewise.
29047 (__erand48_r): Likewise.
29048 (__nrand48_r): Likewise.
29049 (__jrand48_r): Likewise.
29050 (__srand48_r): Likewise.
29051 (__seed48_r): Likewise.
29052 (__lcong48_r): Likewise.
29053 (__drand48_iterate): Likewise.
29054 (__setenv): Likewise.
29055 (__unsetenv): Likewise.
29056 (__clearenv): Likewise.
29057 (__ptsname_r): Likewise.
29058 (__posix_openpt): Likewise.
29059 (__add_to_environ): Likewise.
29060 (__realpath): Add libc_hidden_proto.
29061 (__ecvt_r): Likewise.
29062 (__fcvt_r): Likewise.
29063 (__qecvt_r): Likewise.
29064 (__qfcvt_r): Likewise.
29065 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29066 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29067
29068 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29069
29070 [BZ #18822]
29071 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29072 * include/time.h (__mktime_internal): Likewise.
29073 * libio/iolibio.h (__fopen_internal): Likewise.
29074
29075 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29076
29077 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29078 pointer in frame.
29079 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29080 Correct offset used to restore PIC register.
29081
29082 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29083
29084 [BZ libc/22165]
29085 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29086 code to load address of __getcontext_ret when generating PIC code.
29087
29088 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29089
29090 * elf/Makefile (tests-static-internal): Add
29091 tst-tls1-static-non-pie.
29092 (LDFLAGS-tst-tls1-static-non-pie): New.
29093 * elf/tst-tls1-static-non-pie.c: New file.
29094
29095 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29096
29097 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29098 (asinh): Define using libm_alias_double.
29099 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29100 (cbrt): Define using libm_alias_double.
29101 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29102 <libm-alias-double.h>.
29103 (copysign): Define using libm_alias_double.
29104 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29105 (erf): Define using libm_alias_double.
29106 (erfc): Likewise.
29107 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29108 (expm1): Define using libm_alias_double.
29109 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29110 (fabs): Define using libm_alias_double.
29111 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29112 libm_alias_double.
29113 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29114 <libm-alias-double.h>.
29115 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29116 libm_alias_double.
29117 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29118 <libm-alias-double.h>.
29119 (getpayload): Define using libm_alias_double.
29120 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29121 <libm-alias-double.h>.
29122 (llrint): Define using libm_alias_double.
29123 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29124 (lrint): Define using libm_alias_double.
29125 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29126 <libm-alias-double.h>.
29127 (nextup): Define using libm_alias_double.
29128 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29129 <libm-alias-double.h>.
29130 (roundeven): Define using libm_alias_double.
29131 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29132 libm_alias_double.
29133 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29134 <libm-alias-double.h>.
29135 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29136 using libm_alias_double.
29137 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29138 (cos): Define using libm_alias_double.
29139 (sin): Likewise.
29140 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29141 <libm-alias-double.h>.
29142 (sincos): Define using libm_alias_double.
29143 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29144 (tanh): Define using libm_alias_double.
29145 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29146 <libm-alias-double.h>.
29147 (totalorder): Define using libm_alias_double.
29148 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29149 <libm-alias-double.h>.
29150 (totalordermag): Define using libm_alias_double.
29151 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29152 libm_alias_double.
29153 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29154 libm_alias_double.
29155 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29156 <libm-alias-double.h>.
29157 (getpayload): Define using libm_alias_double.
29158 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29159 <libm-alias-double.h>.
29160 (roundeven): Define using libm_alias_double.
29161 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29162 <libm-alias-double.h>.
29163 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29164 <libm-alias-double.h>.
29165 (totalorder): Define using libm_alias_double.
29166 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29167 <libm-alias-double.h>.
29168 (totalordermag): Define using libm_alias_double.
29169 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29170 libc compat symbol here.
29171 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29172 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29173 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29174 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29175 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29176 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29177 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29178 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29179 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29180 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29181
29182 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29183
29184 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29185 _dl_relocate_static_pie instead of _dl_start to compute load
29186 address in static PIE. Return 0 if _DYNAMIC is undefined for
29187 static executable.
29188
29189 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29190
29191 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29192 _DYNAMIC is undefined for static executable.
29193
29194 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29195
29196 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29197
29198 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29199
29200 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29201
29202 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29203
29204 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29205 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29206 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29207 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29208 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29209 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29210 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29211 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29212 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29213 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29214 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29215 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29216 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29217 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29218 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29219 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29220 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29221
29222 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29223
29224 * math/bits/cmathcalls.h (cimag): Remove inline.
29225 (creal): Remove inline.
29226 (conj): Remove inline.
29227
29228 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29229
29230 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29231 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29232 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29233 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29234 (issignalingf_inline): Likewise.
29235 (POWF_LOG2_TABLE_BITS): Likewise.
29236 (POWF_LOG2_POLY_ORDER): Likewise.
29237 (POWF_SCALE_BITS): Likewise.
29238 (POWF_SCALE): Likewise.
29239 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29240 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29241 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29242
29243 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29244
29245 * math/Makefile (type-float-routines): Add e_log2f_data.
29246 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29247 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29248 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29249 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29250 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29251 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29252 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29253
29254 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29255
29256 * math/Makefile (type-float-routines): Add e_logf_data.
29257 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29258 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29259 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29260 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29261 * sysdeps/i386/fpu/e_logf_data.c: New file.
29262 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29263 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29264
29265 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29266
29267 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29268 undefined _DYNAMIC in PIE libc.a.
29269 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29270 Likewse.
29271
29272 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29273
29274 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29275 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29276 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29277 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29278 (__signbit): Remove.
29279 (__signbitl): Remove.
29280 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29281 (__signbit): Remove.
29282 (__signbitl): Remove.
29283 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29284 (__signbit): Remove.
29285 (__signbitl): Remove.
29286 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29287 (__signbit): Remove.
29288 (__signbitl): Remove.
29289 * sysdeps/tile/bits/mathinline.h: Delete file.
29290 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29291 (__signbit): Remove.
29292 (__signbitl): Remove.
29293
29294 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29295
29296 * math/math.h: Improve handling of C99 isgreater macros.
29297 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29298 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29299 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29300 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29301 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29302
29303 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29304
29305 * sysdeps/aarch64/libm-test-ulps: Update.
29306
29307 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29308
29309 [BZ #22225]
29310 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29311 math_opt_barrier on argument when doing arithmetic on it.
29312 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29313 Likewise. Use math_force_eval not math_opt_barrier after
29314 arithmetic.
29315 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29316 math_opt_barrier on argument when doing arithmetic on it.
29317 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29318 Likewise.
29319
29320 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29321
29322 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29323 libc_hidden_def.
29324 (__freeifaddrs): Likewise.
29325
29326 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29327
29328 * include/dirent.h (__dirfd): New declaration.
29329 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29330 alias.
29331 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29332 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29333 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29334 * include/unistd.h (__revoke): New declaration.
29335 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29336 alias.
29337 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29338 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29339 revoke.
29340 * include/dirent.h (__seekdir): New declaration.
29341 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29342 redefine as weak alias.
29343 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29344 of seekdir.
29345 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29346 and use libc_hidden_def on them.
29347 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29348 them.
29349 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29350 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29351 instead of getifaddrs and freeifaddrs.
29352
29353 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29354
29355 [BZ #18822]
29356 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29357 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29358 (__dso_handle): Remove declaration.
29359 * dlfcn/tstatexit.c (__dso_handle): Removed.
29360 (main): Don't check __dso_handle.
29361 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29362 (main): Don't check __dso_handle.
29363 * include/dso_handle.h: New file.
29364 * malloc/mtrace.c: Include <dso_handle.h>.
29365 (mtrace): Pass __dso_handle directly.
29366 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29367 (__dso_handle): Remove declaration.
29368 (__pthread_atfork): Pass __dso_handle directly.
29369 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29370 (__dso_handle): Removed.
29371 * posix/wordexp-test.c: Include <dso_handle.h>.
29372 (__dso_handle): Remove declaration.
29373 (__app_register_atfork): Pass __dso_handle directly.
29374 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29375 (__dso_handle): Remove declaration.
29376 (at_quick_exit): Pass __dso_handle directly.
29377 * stdlib/atexit.c: Include <dso_handle.h>.
29378 (__dso_handle): Remove declaration.
29379 (atexit): Pass __dso_handle directly.
29380 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29381 (__dso_handle): Removed.
29382
29383 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29384
29385 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29386 using VDSO.
29387
29388 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29389
29390 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29391 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29392 values to correct default value for given type.
29393
29394 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29395
29396 [BZ #22101]
29397 * elf/Makefile (tests): Add tst-debug1.
29398 ($(objpfx)tst-debug1): New.
29399 ($(objpfx)tst-debug1.out): Likewise.
29400 ($(objpfx)tst-debug1mod1.so): Likewise.
29401 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29402 with p_filesz == 0.
29403 * elf/tst-debug1.c: New file.
29404
29405 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29406
29407 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29408 Define using __ifunc.
29409
29410 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29411
29412 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29413 exp2f() values.
29414
29415 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29416
29417 [BZ #22156]
29418 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29419
29420 2017-09-26 Florian Weimer <fweimer@redhat.com>
29421
29422 * resolv/Makefile (tests-internal): Fix typo in comment.
29423
29424 2017-09-26 Florian Weimer <fweimer@redhat.com>
29425
29426 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29427
29428 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29429
29430 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29431 Use an union instead of a max_align_t array for __space,
29432 so that __space is the same size on all platforms.
29433 * malloc/scratch_buffer_grow_preserve.c
29434 (__libc_scratch_buffer_grow_preserve): Likewise.
29435
29436 [BZ #22183]
29437 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29438 version to 2.
29439 * posix/Makefile (routines): Add glob-lstat-compat and
29440 glob64-lstat-compat.
29441 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29442 * posix/glob-lstat-compat.c: New file.
29443 * posix/glob64-lstat-compat.c: Likewise.
29444 * posix/tst-glob_lstat_compat.c: Likewise.
29445 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29446 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29447 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29448 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29449 Likewise.
29450 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29451 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29452 * posix/glob.c (glob_lstat): New function.
29453 (glob): Rename to __glob and add versioned symbol to 2.27.
29454 (glob_in_dir): Use glob_lstat.
29455 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29456 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29457 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29458 2.27.
29459 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29460 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29461 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29462 gl_lstat on glob call.
29463 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29464 and glob64 symbols.
29465 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29466 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29467 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29468 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29469 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29470 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29471 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29472 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29473 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29474 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29475 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29476 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29478 Likewise.
29479 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29481 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29482 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29483 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29484 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29485 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29486 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29487 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29488 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29489 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29490 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29491
29492 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29493
29494 * configure.ac (AS): Require binutils 2.25 or later.
29495 * configure: Regenerated.
29496
29497 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29498
29499 [BZ #22207]
29500 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29501 VM size.
29502
29503 2017-09-25 DJ Delorie <dj@redhat.com>
29504
29505 [BZ #22161]
29506 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29507 resetting timeout.
29508
29509 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29510
29511 * sysdeps/ieee754/dbl-64/sincos32.h
29512 [SINCCOS32_H]: Remove define.
29513 [SINCOS32_H]: Define.
29514
29515 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29516
29517 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29518 (exp2f): Likewise.
29519 * math/w_exp2f.c: New file.
29520 * math/w_expf.c: New file.
29521 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29522 * math/w_expf_compat.c (__expf_compat): Likewise.
29523 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29524 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29525 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29526 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29527 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29528 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29529 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29530 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29531 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29532 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29533 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29534 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29535 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29536 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29538 Likewise.
29539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29540 Likewise.
29541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29542 Likewise.
29543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29544 Likewise.
29545 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29546 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29547 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29548 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29549 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29550 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29551 Likewise.
29552 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29553 Likewise.
29554 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29555 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29556 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29557
29558 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29559
29560 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29561 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29562 (roundtoint, converttoint): Likewise.
29563 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29564 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29565 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29566 * sysdeps/ieee754/flt-32/math_config.h: New file.
29567 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29568 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29569 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29570 * sysdeps/i386/fpu/math_errf.c: New file.
29571 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29572 * sysdeps/ia64/fpu/math_errf.c: New file.
29573 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29574 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29575
29576 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29577
29578 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29579 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29580 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29581 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29582 to make sure that these symbols are defined.
29583 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29584 of <limits.h>
29585 (__need_NULL): Do not define.
29586 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29587 alignment.
29588 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29589 CMGROUP_MAX, cmsgcred): Do not define.
29590 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29591 NULL.
29592 * bits/socket.h: Likewise.
29593 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29594 __gettimeofday instead of gettimeofday.
29595 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29596 instead of settimeofday.
29597
29598 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29599
29600 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29601 (asinhf): Define using libm_alias_float.
29602 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29603 (atanf): Define using libm_alias_float.
29604 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29605 (cbrtf): Define using libm_alias_float.
29606 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29607 (ceilf): Define using libm_alias_float.
29608 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29609 <libm-alias-float.h>.
29610 (copysignf): Define using libm_alias_float.
29611 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29612 (cosf): Define using libm_alias_float.
29613 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29614 (erff): Define using libm_alias_float.
29615 (erfcf): Likewise.
29616 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29617 (expm1f): Define using libm_alias_float.
29618 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29619 (fabsf): Define using libm_alias_float.
29620 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29621 (floorf): Define using libm_alias_float.
29622 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29623 (frexpf): Define using libm_alias_float.
29624 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29625 libm_alias_float.
29626 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29627 <libm-alias-float.h>.
29628 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29629 libm_alias_float.
29630 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29631 <libm-alias-float.h>.
29632 (getpayloadf): Define using libm_alias_float.
29633 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29634 <libm-alias-float.h>.
29635 (llrintf): Define using libm_alias_float.
29636 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29637 <libm-alias-float.h>.
29638 (llroundf): Define using libm_alias_float.
29639 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29640 (logbf): Define using libm_alias_float.
29641 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29642 (lrintf): Define using libm_alias_float.
29643 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29644 (lroundf): Define using libm_alias_float.
29645 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29646 (modff): Define using libm_alias_float.
29647 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29648 <libm-alias-float.h>.
29649 (nearbyintf): Define using libm_alias_float.
29650 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29651 <libm-alias-float.h>.
29652 (nextafterf): Define using libm_alias_float.
29653 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29654 <libm-alias-float.h>.
29655 (nextupf): Define using libm_alias_float.
29656 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29657 <libm-alias-float.h>.
29658 (remquof): Define using libm_alias_float.
29659 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29660 (rintf): Define using libm_alias_float.
29661 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29662 <libm-alias-float.h>.
29663 (roundevenf): Define using libm_alias_float.
29664 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29665 (roundf): Define using libm_alias_float.
29666 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29667 using libm_alias_float.
29668 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29669 <libm-alias-float.h>.
29670 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29671 Define using libm_alias_float.
29672 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29673 <libm-alias-float.h>.
29674 (sincosf): Define using libm_alias_float.
29675 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29676 (sinf): Define using libm_alias_float.
29677 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29678 (tanf): Define using libm_alias_float.
29679 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29680 (tanhf): Define using libm_alias_float.
29681 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29682 <libm-alias-float.h>.
29683 (totalorderf): Define using libm_alias_float.
29684 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29685 <libm-alias-float.h>.
29686 (totalordermagf): Define using libm_alias_float.
29687 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29688 (truncf): Define using libm_alias_float.
29689 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29690 libm_alias_float.
29691 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29692 libm_alias_float.
29693
29694 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29695
29696 [BZ #22146]
29697 math/math.h: Let fpclassify use the builtin in C++ mode, even
29698 when optimazing for size.
29699
29700 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29701
29702 * csu/Makefile (generated): Do not add version-info.h.
29703 (before-compile): Likewise.
29704 (all-Banner-files): Remove variable.
29705 ($(objpfx)version-info.h): Remove rule.
29706 * csu/version.c (banner): Do not include "version-info.h".
29707 * libidn/Banner: Remove.
29708 * manual/contrib.texi (Simon Josefsson): New entry.
29709
29710 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29711
29712 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29713 Remove conditionals on LDBL_MANT_DIG.
29714 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29715 (__ieee754_lgammal_r): Likewise.
29716
29717 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29718
29719 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29720 _Float128 and L().
29721 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29722 _Float128 and L(). Replace _Float128 with long double and L(x)
29723 with xL, throughout the file.
29724 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29725 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29726 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29727 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29728
29729 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29730
29731 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29732 sysdeps/ieee754/ldbl-128ibm.
29733 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29734 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29735 of including it. Keep _Float128 and L() intact. These will be
29736 reviewed by a separate patch.
29737 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29738 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29739 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29740 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29741
29742 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29743
29744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29745 (__finitef128): Define to __redirect___finitef128.
29746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29747 (__isinff128): Define to __redirect___isinff128.
29748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29749 (__isnanf128): Define to __redirect___isnanf128.
29750
29751 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29752
29753 * sysdeps/powerpc/powerpc64le/Makefile
29754 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29755 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29756
29757 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29758 Carlos O'Donell <carlos@redhat.com>
29759
29760 [BZ #22180]
29761 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29762 * stdlib/test-dlclose-exit-race.c: New file.
29763 * stdlib/test-dlclose-exit-race-helper.c: New file.
29764 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29765
29766 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29767
29768 * crypt/Banner: Remove file.
29769 * nptl/Banner: Likewise.
29770 * resolv/Banner: Likewise.
29771 * soft-fp/Banner: Likewise.
29772 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29773 ($(objpfx)version.d): Remove dependency on banner.h.
29774 ($(objpfx)version.os): Likewise.
29775 * nptl/version.c (banner): Do not include banner.h.
29776 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29777 Jelinek and BIND code.
29778
29779 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29780 Carlos O'Donell <carlos@redhat.com>
29781
29782 * support/xdlfcn.h: New file.
29783 * support/xdlfcn.c: New file.
29784 * support/Makefile (libsupport-routines): Add xdlfcn.
29785 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29786
29787 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29788
29789 [BZ #20142]
29790 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29791 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29792 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29793 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29794 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29795 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29796 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29797 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29798
29799 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29800 Ricky Zhou <rickyz@google.com>
29801 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29802
29803 [BZ #14333]
29804 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29805 Remove atomics.
29806 (__new_exitfn): Fail registration when we finished at_exit processing.
29807 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29808 * stdlib/on_exit.c (__on_exit): Likewise.
29809 * stdlib/exit.c (__exit_funcs_done): New variable.
29810 (__run_exit_handlers): Use __exit_funcs_lock.
29811 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29812 declarations.
29813 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29814 (test-cxa_atexit-race, test-on_exit-race): New tests.
29815 * stdlib/test-atexit-race-common.c: New file.
29816 * stdlib/test-atexit-race.c: New file.
29817 * stdlib/test-at_quick_exit-race.c: New file.
29818 * stdlib/test-cxa_atexit-race.c: New file.
29819 * stdlib/test-on_exit-race.c: New file.
29820
29821 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29822
29823 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29824 * benchtests/exp2f-inputs: Copy of expf-inputs.
29825 * benchtests/log2f-inputs: Copy of logf-inputs.
29826
29827 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29828
29829 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29830 Explicitly take address of first element of array arguments in
29831 call to INLINE_SYSCALL.
29832
29833 2017-09-19 Andreas Schwab <schwab@suse.de>
29834
29835 [BZ #22134]
29836 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29837 execveat first.
29838 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29839 unimplemented.
29840 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29841 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29842 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29843 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29844 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29845 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29846 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29847 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29848 * posix/Makefile (tests): Add tst-fexecve.
29849 * posix/tst-fexecve.c: New file.
29850
29851 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29852
29853 * benchtests/Makefile: Add logf benchmark.
29854 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29855
29856 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29857
29858 * benchtests/Makefile: Add expf benchmark.
29859 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29860
29861 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29862
29863 * csu/Makefile: Add -funwind-tables to libc-start.c.
29864 * debug/Makefile: Add -funwind-tables to backtrace.c.
29865 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29866 * sysdeps/arm/Makefile: Likewise.
29867 * sysdeps/i386/Makefile: Likewise.
29868 * sysdeps/m68k/Makefile: Likewise.
29869 * sysdeps/mips/Makefile: Likewise.
29870 * sysdeps/nios2/Makefile: Likewise.
29871 * sysdeps/sh/Makefile: Likewise.
29872 * sysdeps/sparc/Makefile: Likewise.
29873
29874 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29875
29876 * benchtests/Makefile (bench-math): Add trunc and truncf.
29877 (CFLAGS-bench-trunc.c): New variable.
29878 (CFLAGS-bench-truncf.c): Likewise.
29879 * benchtests/trunc-inputs: New file.
29880 * benchtests/truncf-inputs: Likewise.
29881
29882 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29883
29884 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29885
29886 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29887
29888 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29889 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29890 redefine.
29891 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29892 (exp10l): Define as weak alias.
29893 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29894 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29895 and redefine.
29896 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29897 (remainderl): Define as weak alias.
29898
29899 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29900 (fmal): Define using libm_alias_ldouble.
29901 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29902 (acoshl): Define using libm_alias_ldouble.
29903 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29904 (acosl): Define using libm_alias_ldouble.
29905 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29906 (asinl): Define using libm_alias_ldouble.
29907 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29908 (atan2l): Define using libm_alias_ldouble.
29909 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29910 (atanhl): Define using libm_alias_ldouble.
29911 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29912 (coshl): Define using libm_alias_ldouble.
29913 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29914 (exp10l): Define using libm_alias_ldouble.
29915 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29916 (exp2l): Define using libm_alias_ldouble.
29917 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29918 (expl): Define using libm_alias_ldouble.
29919 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29920 (fmodl): Define using libm_alias_ldouble.
29921 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29922 (hypotl): Define using libm_alias_ldouble.
29923 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29924 (j0l): Define using libm_alias_ldouble.
29925 (y0l): Likewise.
29926 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29927 (j1l): Define using libm_alias_ldouble.
29928 (y1l): Likewise.
29929 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29930 (jnl): Define using libm_alias_ldouble.
29931 (ynl): Likewise.
29932 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29933 (log10l): Define using libm_alias_ldouble.
29934 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29935 (log2l): Define using libm_alias_ldouble.
29936 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29937 (logl): Define using libm_alias_ldouble.
29938 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29939 (powl): Define using libm_alias_ldouble.
29940 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29941 (remainderl): Define using libm_alias_ldouble.
29942 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29943 (sinhl): Define using libm_alias_ldouble.
29944 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29945 (sqrtl): Define using libm_alias_ldouble.
29946 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29947 (tgammal): Define using libm_alias_ldouble.
29948 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29949 (exp10l): Do not use long_double_symbol here.
29950 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29951 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29952 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29953 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29954 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29955 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29956 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29957 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29958 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29959 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29960 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29961 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29962 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29963 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29964 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29965 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29966 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29967 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29968 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29969 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29970 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29971 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29972
29973 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29974
29975 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29976 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29977
29978 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29979
29980 * io/read.c (read): Add libc_hidden_weak.
29981 * sysdeps/mach/hurd/read.c (read): Likewise.
29982 * io/write.c (write): Likewise.
29983 * sysdeps/mach/hurd/write.c (write): Likewise.
29984 * io/pread64.c (__pread64): Likewise.
29985 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29986 * posix/pread64.c (__pread64): Add libc_hidden_def.
29987
29988 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29989
29990 * benchtests/scripts/compare_strings.py: New option -g.
29991 (draw_graph): Print a message that a graph is being generated.
29992 (process_results): Generate graph only if -g is passed.
29993 (main): Process option -g.
29994
29995 * benchtests/scripts/compare_strings.py (process_results):
29996 Better spacing for output.
29997
29998 * benchtests/scripts/compare_strings.py: Use argparse.
29999 * benchtests/README: Document existence of compare_strings.py.
30000
30001 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30002
30003 * math/s_fma.c: Include <libm-alias-double.h>.
30004 (fma): Define using libm_alias_double.
30005 * math/s_nextafter.c: Include <libm-alias-double.h>.
30006 (nextafter): Define using libm_alias_double.
30007 * math/w_acos_compat.c: Include <libm-alias-double.h>.
30008 (acos): Define using libm_alias_double.
30009 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
30010 (aocsh): Define using libm_alias_double.
30011 * math/w_asin_compat.c: Include <libm-alias-double.h>.
30012 (asin): Define using libm_alias_double.
30013 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
30014 (atan2): Define using libm_alias_double.
30015 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
30016 (atanh): Define using libm_alias_double.
30017 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
30018 (cosh): Define using libm_alias_double.
30019 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
30020 (exp10): Define using libm_alias_double.
30021 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
30022 (exp2): Define using libm_alias_double.
30023 * math/w_exp_compat.c: Include <libm-alias-double.h>.
30024 (exp): Define using libm_alias_double.
30025 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
30026 (fmod): Define using libm_alias_double.
30027 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
30028 (hypot): Define using libm_alias_double.
30029 * math/w_j0_compat.c: Include <libm-alias-double.h>.
30030 (j0): Define using libm_alias_double.
30031 (y0): Likewise.
30032 * math/w_j1_compat.c: Include <libm-alias-double.h>.
30033 (j1): Define using libm_alias_double.
30034 (y1): Likewise.
30035 * math/w_jn_compat.c: Include <libm-alias-double.h>.
30036 (jn): Define using libm_alias_double.
30037 (yn): Likewise.
30038 * math/w_log10_compat.c: Include <libm-alias-double.h>.
30039 (log10): Define using libm_alias_double.
30040 * math/w_log2_compat.c: Include <libm-alias-double.h>.
30041 (log2): Define using libm_alias_double.
30042 * math/w_log_compat.c: Include <libm-alias-double.h>.
30043 (log): Define using libm_alias_double.
30044 * math/w_pow_compat.c: Include <libm-alias-double.h>.
30045 (pow): Define using libm_alias_double.
30046 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
30047 (remainder): Define using libm_alias_double.
30048 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
30049 (sinh): Define using libm_alias_double.
30050 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
30051 (sqrt): Define using libm_alias_double.
30052 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
30053 (tgamma): Define using libm_alias_double.
30054 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
30055 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
30056 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
30057 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
30058 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
30059 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
30060 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30061 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30062 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30063 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30064 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30065 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30066 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30067 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30068 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30069 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30070 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30071 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30072 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30073 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30074 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30075 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30076 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30077 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30078 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30079
30080 * math/e_acoshl.c: Remove.
30081 * math/e_acosl.c: Likewise.
30082 * math/e_asinl.c: Likewise.
30083 * math/e_atan2l.c: Likewise.
30084 * math/e_atanhl.c: Likewise.
30085 * math/e_coshl.c: Likewise.
30086 * math/e_expl.c: Likewise.
30087 * math/e_fmodl.c: Likewise.
30088 * math/e_gammal_r.c: Likewise.
30089 * math/e_hypotl.c: Likewise.
30090 * math/e_j0l.c: Likewise.
30091 * math/e_j1l.c: Likewise.
30092 * math/e_jnl.c: Likewise.
30093 * math/e_lgammal_r.c: Likewise.
30094 * math/e_log10l.c: Likewise.
30095 * math/e_log2l.c: Likewise.
30096 * math/e_logl.c: Likewise.
30097 * math/e_powl.c: Likewise.
30098 * math/e_rem_pio2l.c: Likewise.
30099 * math/e_sinhl.c: Likewise.
30100 * math/e_sqrtf128.c: Likewise.
30101 * math/e_sqrtl.c: Likewise.
30102 * math/k_cosl.c: Likewise.
30103 * math/k_sinl.c: Likewise.
30104 * math/k_tanl.c: Likewise.
30105 * math/s_asinhl.c: Likewise.
30106 * math/s_atanl.c: Likewise.
30107 * math/s_cbrtl.c: Likewise.
30108 * math/s_erfl.c: Likewise.
30109 * math/s_expm1l.c: Likewise.
30110 * math/s_log1pl.c: Likewise.
30111 * math/s_tanhl.c: Likewise.
30112
30113 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30114
30115 [BZ #21745]
30116 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30117 [$(subdir) = math] (sysdep_calls): New variable. Has the
30118 previous contents of sysdep_routines, but re-sorted..
30119 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30120 sysdep_calls.
30121 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30122 defined in sysdep_calls and replace by the respective m_* names.
30123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30124 (compat_symbol): Undefine to avoid duplicated compat symbols in
30125 libc.
30126
30127 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30128
30129 * math/s_fmaf.c: Include <libm-alias-float.h>.
30130 (fmaf): Define using libm_alias_float.
30131 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30132 (acosf): Define using libm_alias_float.
30133 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30134 (acoshf): Define using libm_alias_float.
30135 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30136 (asinf): Define using libm_alias_float.
30137 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30138 (atan2f): Define using libm_alias_float.
30139 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30140 (atanhf): Define using libm_alias_float.
30141 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30142 (coshf): Define using libm_alias_float.
30143 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30144 (exp10f): Define using libm_alias_float.
30145 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30146 (fmodf): Define using libm_alias_float.
30147 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30148 (hypotf): Define using libm_alias_float.
30149 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30150 (j0f): Define using libm_alias_float.
30151 (y0f): Likewise.
30152 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30153 (j1f): Define using libm_alias_float.
30154 (y1f): Likewise.
30155 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30156 (jnf): Define using libm_alias_float.
30157 (ynf): Likewise.
30158 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30159 (log10f): Define using libm_alias_float.
30160 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30161 (log2f): Define using libm_alias_float.
30162 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30163 (logf): Define using libm_alias_float.
30164 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30165 (powf): Define using libm_alias_float.
30166 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30167 (remainderf): Define using libm_alias_float.
30168 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30169 (sinhf): Define using libm_alias_float.
30170 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30171 (sqrtf): Define using libm_alias_float.
30172 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30173 (tgammaf): Define using libm_alias_float.
30174
30175 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30176
30177 * include/math.h (roundeven): Change hidden_proto call to
30178 __roundeven.
30179 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30180 alias.
30181 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30182 (y0): Rename to __y0 and define as weak alias.
30183 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30184 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30185 alias.
30186 (y0f): Rename to __y0f and define as weak alias.
30187 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30188 alias.
30189 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30190 (y1): Rename to __y1 and define as weak alias.
30191 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30192 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30193 alias.
30194 (y1f): Rename to __y1f and define as weak alias.
30195 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30196 alias.
30197 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30198 (yn): Rename to __yn and define as weak alias.
30199 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30200 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30201 alias.
30202 (ynf): Rename to __ynf and define as weak alias.
30203 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30204 (fromfp): Define as weak alias.
30205 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30206 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30207 (fromfpx): Define as weak alias.
30208 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30209 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30210 __getpayload and define as weak alias.
30211 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30212 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30213 __roundeven and define as weak alias.
30214 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30215 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30216 __setpayload.
30217 (setpayload): Define as weak alias.
30218 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30219 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30220 __setpayloadsig.
30221 (setpayloadsig): Define as weak alias.
30222 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30223 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30224 __totalorder and define as weak alias.
30225 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30226 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30227 to __totalordermag and define as weak alias.
30228 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30229 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30230 (ufromfp): Define as weak alias.
30231 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30232 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30233 __ufromfpx.
30234 (ufromfpx): Define as weak alias.
30235 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30236 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30237 Rename to __getpayload and define as weak alias.
30238 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30239 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30240 Rename to __roundeven and define as weak alias.
30241 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30242 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30243 Rename to __totalorder and define as weak alias.
30244 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30245 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30246 (totalordermag): Rename to __totalordermag and define as weak
30247 alias.
30248 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30249 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30250 macro.
30251 (__roundevenl): Likewise.
30252 (__totalorderl): Likewise.
30253 (__totalordermagl): Likewise
30254 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30255 __fromfpf128.
30256 (fromfpf128): Define as weak alias.
30257 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30258 __fromfpxf128.
30259 (fromfpxf128): Define as weak alias.
30260 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30261 __setpayloadf128.
30262 (setpayloadf128): Define as weak alias.
30263 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30264 __setpayloadsigf128.
30265 (setpayloadsigf128): Define as weak alias.
30266 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30267 __ufromfpf128.
30268 (ufromfpf128): Define as weak alias.
30269 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30270 __ufromfpxf128.
30271 (ufromfpxf128): Define as weak alias.
30272 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30273 (fromfpf): Define as weak alias.
30274 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30275 __fromfpxf.
30276 (fromfpxf): Define as weak alias.
30277 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30278 __getpayloadf and define as weak alias.
30279 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30280 __roundevenf and define as weak alias.
30281 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30282 __setpayloadf.
30283 (setpayloadf): Define as weak alias.
30284 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30285 __setpayloadsigf.
30286 (setpayloadsigf): Define as weak alias.
30287 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30288 __totalorderf and define as weak alias.
30289 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30290 Rename to __totalordermagf and define as weak alias.
30291 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30292 __ufromfpf.
30293 (ufromfpf): Define as weak alias.
30294 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30295 __ufromfpxf.
30296 (ufromfpxf): Define as weak alias.
30297 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30298 __fromfpl.
30299 (fromfpl): Define as weak alias.
30300 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30301 __fromfpxl.
30302 (fromfpxl): Define as weak alias.
30303 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30304 to __getpayloadl and define as weak alias.
30305 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30306 __roundevenl and define as weak alias.
30307 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30308 __setpayloadl.
30309 (setpayloadl): Define as weak alias.
30310 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30311 __setpayloadsigl.
30312 (setpayloadsigl): Define as weak alias.
30313 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30314 to __totalorderl and define as weak alias.
30315 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30316 Rename to __totalordermagl and define as weak alias.
30317 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30318 __ufromfpl.
30319 (ufromfpl): Define as weak alias.
30320 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30321 __ufromfpxl.
30322 (ufromfpxl): Define as weak alias.
30323 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30324 __fromfpl.
30325 (fromfpl): Define as weak alias.
30326 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30327 __fromfpxl.
30328 (fromfpxl): Define as weak alias.
30329 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30330 Rename to __getpayloadl and define as weak alias.
30331 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30332 to __roundevenl and define as weak alias. Call __roundeven
30333 instead of roundeven.
30334 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30335 __setpayloadl.
30336 (setpayloadl): Define as weak alias.
30337 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30338 __setpayloadsigl.
30339 (setpayloadsigl): Define as weak alias.
30340 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30341 Rename to __totalorderl and define as weak alias.
30342 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30343 Rename to __totalordermagl and define as weak alias.
30344 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30345 __ufromfpl.
30346 (ufromfpl): Define as weak alias.
30347 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30348 __ufromfpxl.
30349 (ufromfpxl): Define as weak alias.
30350 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30351 __fromfpl.
30352 (fromfpl): Define as weak alias.
30353 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30354 __fromfpxl.
30355 (fromfpxl): Define as weak alias.
30356 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30357 __getpayloadl and define as weak alias.
30358 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30359 __roundevenl and define as weak alias.
30360 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30361 __setpayloadl.
30362 (setpayloadl): Define as weak alias.
30363 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30364 __setpayloadsigl.
30365 (setpayloadsigl): Define as weak alias.
30366 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30367 __totalorderl and define as weak alias.
30368 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30369 Rename to __totalordermagl and define as weak alias.
30370 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30371 __ufromfpl.
30372 (ufromfpl): Define as weak alias.
30373 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30374 __ufromfpxl.
30375 (ufromfpxl): Define as weak alias.
30376
30377 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30378
30379 * benchtests/bench-string.h (realloc_bufs): New function.
30380 (test_init): Call it.
30381 * benchtests/bench-memset-large.c (do_test): Likewise.
30382 * benchtests/bench-memset.c (do_test): Likewise.
30383
30384 * benchtests/bench-memset-large.c: Print output in JSON
30385 format.
30386 * benchtests/bench-memset.c: Likewise.
30387
30388 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30389
30390 [BZ #21084]
30391 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30392 * iconvdata/Makefile: Add IBM858.
30393 * iconvdata/gconv-modules: Likewise.
30394 * iconvdata/tst-tables.sh: Likewise.
30395 * iconvdata/ibm858.c: New file.
30396 * localedata/charmaps/IBM858: Likewise.
30397
30398 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30399
30400 [BZ #22023]
30401 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30402 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30403
30404 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30405
30406 [BZ #22112]
30407 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30408 and add tel_int_fmt.
30409
30410 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30411
30412 * sysdeps/generic/libm-alias-float128.h: New file.
30413 * sysdeps/generic/math-type-macros-float128.h: Include
30414 <libm-alias-float128.h>.
30415 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30416
30417 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30418
30419 * sysdeps/generic/libm-alias-ldouble.h: New file.
30420 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30421 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30422 * sysdeps/generic/math-type-macros-ldouble.h: Include
30423 <libm-alias-ldouble.h>.
30424 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30425 libm_alias_ldouble.
30426
30427 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30428
30429 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30430 * math/w_exp_compat.c: ... here.
30431 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30432 * math/w_expf_compat.c: ... here.
30433 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30434 * math/w_expl_compat.c: ... here.
30435 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30436 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30437 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30438 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30439
30440 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30441
30442 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30443 redefine.
30444 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30445 macro.
30446 (ldexpl): Only define as compat symbol for libc, not libm.
30447 (scalbnl): Define as compat symbol for libc here.
30448 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30449 define for [IS_IN (libc)].
30450 (__ldexpl_2): Remove alias.
30451 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30452 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30453 name in long_double_symbol call.
30454 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30455 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30456 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30457 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30458 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30459 Remove macro.
30460 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30461 Define as compat symbol.
30462
30463 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30464
30465 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30466 * sysdeps/unix/sysv/linux/alpha/Makefile
30467 [$(subdir) = csu] (sysdep_routines): Remove rule.
30468
30469 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30470
30471 * sysdeps/generic/libm-alias-double.h: New file.
30472 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30473 * sysdeps/generic/math-type-macros-double.h: Include
30474 <libm-alias-double.h>.
30475 [declare_mgen_alias] (declare_mgen_alias): Define to use
30476 libm_alias_double.
30477 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30478 (M_LIBM_NEED_COMPAT): Remove macro.
30479 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30480 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30481 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30482 code.
30483 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30484 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30485 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30486 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30487 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30488 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30489 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30490 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30491 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30492 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30493 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30494 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30495 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30496 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30497 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30498 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30499 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30500 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30501 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30502 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30503 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30504 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30505 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30506 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30507 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30508 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30509 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30510 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30511 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30512 macro.
30513 (declare_mgen_alias): New macro.
30514 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30515 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30516 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30517 (M_LIBM_NEED_COMPAT): Remove macro.
30518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30519 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30520 <first-versions.h>.
30521 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30522 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30523
30524 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30525
30526 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30527 (declare_mgen_alias_2): Remove.
30528 * sysdeps/generic/math-type-macros-double.h
30529 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30530 Likewise.
30531 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30532 alias.
30533 (ldexp): Define with declare_mgen_alias.
30534 (scalbn): Likewise.
30535
30536 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30537
30538 * grp/initgroups.c: Include config.h.
30539 (DEFAULT_CONFIG): New macro.
30540 (internal_getgrouplist): Use DEFAULT_CONFIG.
30541 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30542 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30543 (DEFAULT_DEFCONFIG): New macro.
30544 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30545 * nss/grp-lookup.c: Include config.h
30546 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30547 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30548 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30549 * manual/nss.texi: Update default values section.
30550
30551 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30552
30553 [BZ #21967]
30554 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30555 New.
30556 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30557 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30558 Handle MathVec_Prefer_No_AVX512.
30559 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30560 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30561 is set.
30562
30563 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30564
30565 * posix/sched_primax.c (__sched_get_priority_max): Add
30566 libc_hidden_def.
30567 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30568 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30569 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30570 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30571 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30572 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30573 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30574 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30575 Add aliases.
30576
30577 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30578
30579 * sysdeps/generic/libm-alias-float.h: New file.
30580 * sysdeps/generic/math-type-macros-float.h: Include
30581 <libm-alias-float.h>.
30582 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30583
30584 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30585
30586 [BZ #22093]
30587 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30588 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30589 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30590 (HWCAP_IMPORTANT): Likewise.
30591 (HWCAP_X86_64): New enum.
30592 (HWCAP_X86_AVX512_1): Updated.
30593 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30594 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30595 (modules-names): Add x86_64/tst-x86_64mod-1.
30596 (LDFLAGS-tst-x86_64mod-1.so): New.
30597 ($(objpfx)tst-x86_64-1): Likewise.
30598 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30599 (tst-x86_64-1-clean): Likewise.
30600 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30601 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30602
30603 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30604
30605 * po/sv.po: Update translations.
30606 * po/fr.po: Likewise.
30607
30608 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30609
30610 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30611 seconds.
30612 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30613 seconds.
30614 * elf/rtld-Rules: Fix $(error) use.
30615
30616 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30617
30618 [BZ #14925]
30619 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30620 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30621 * localedata/locales/bn_BD: “Bengali” was still used in some
30622 comments. Change it to “Bangla”.
30623
30624 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30625
30626 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30627
30628 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30629
30630 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30631 thunderx2t99p1 to list of cpu names.
30632 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30633 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30634
30635 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30636
30637 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30638 Use strcmp instead of tunable_is_name.
30639
30640 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30641
30642 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30643 (F_GET_RW_HINT): New macro.
30644 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30645 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30646 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30647 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30648 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30649 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30650 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30651 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30652 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30653
30654 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30655 (F_ADD_SEALS): New macro.
30656 [__USE_GNU] (F_GET_SEALS): Likewise.
30657 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30658 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30659 [__USE_GNU] (F_SEAL_GROW): Likewise.
30660 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30661
30662 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30663
30664 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30665 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30666 * posix/glob_internal.h (__glob_pattern_type):
30667 * posix/glob.c (glob):
30668 * posix/glob_pattern_p.c (__glob_pattern_p):
30669 Use them.
30670
30671 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30672 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30673 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30674 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30675 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30676 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30677 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30678 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30679 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30680 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30681 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30682 * sysdeps/wordsize-64/glob.c: Likewise.
30683 * sysdeps/wordsize-64/glob64.c: Likewise.
30684 * sysdeps/wordsize-64/globfree.c: Likewise.
30685 * sysdeps/wordsize-64/globfree64.c: Likewise.
30686 * sysdeps/unix/sysv/linux/glob.c: New file.
30687 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30688 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30689 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30690 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30691 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30692 adds !GLOB_NO_OLD_VERSION as an extra condition.
30693 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30694 using relative path instead of absolute one.
30695 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30696 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30697 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30698 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30699 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30700 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30701
30702 [BZ #1062]
30703 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30704 (glob): Use the same scratch buffer for both getlogin_r and
30705 getpwnam_r. Don’t require preallocation of the login name. This
30706 simplifies storage allocation, and corrects the handling of
30707 long login names.
30708
30709 [BZ #1062]
30710 * posix/glob.c (glob): Port recent patches to platforms
30711 lacking getpwnam_r.
30712 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30713 returns an error number rather than setting errno.
30714
30715 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30716 instead of GCC extension.
30717 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30718 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30719 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30720
30721 [BZ #866]
30722 [BZ #1062]
30723 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30724 * posix/bug-glob1.c: Remove file.
30725 * posix/tst-glob_symlinks.c: New file.
30726 * posix/glob.c (__lstat64): New macro.
30727 (is_dir): New function.
30728 (glob, glob_in_dir): Match symlinks even if they are dangling.
30729 (link_stat, link_exists_p): Remove. All uses removed.
30730
30731 [BZ #1062]
30732 [BZ #19971]
30733 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30734 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30735 All uses removed.
30736
30737 [BZ #1062]
30738 CVE-2017-15671
30739 * posix/Makefile (routines): Add globfree, globfree64, and
30740 glob_pattern_p.
30741 * posix/flexmember.h: New file.
30742 * posix/glob_internal.h: Likewise.
30743 * posix/glob_pattern_p.c: Likewise.
30744 * posix/globfree.c: Likewise.
30745 * posix/globfree64.c: Likewise.
30746 * sysdeps/gnu/globfree64.c: Likewise.
30747 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30748 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30749 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30750 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30751 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30752 * sysdeps/wordsize-64/globfree.c: Likewise.
30753 * sysdeps/wordsize-64/globfree64.c: Likewise.
30754 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30755 [NDEBUG): Remove comments.
30756 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30757 (dirent_type): New type. Use uint_fast8_t not
30758 uint8_t, as C99 does not require uint8_t.
30759 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30760 (struct readdir_result): Use dirent_type. Do not define skip_entry
30761 unless it is needed; this saves a byte on platforms lacking d_ino.
30762 (readdir_result_type, readdir_result_skip_entry):
30763 New functions, replacing ...
30764 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30765 these functions, which were removed. This makes the callers
30766 easier to read. All callers changed.
30767 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30768 (size_add_wrapv, glob_use_alloca): New static functions.
30769 (glob, glob_in_dir): Check for size_t overflow in several places,
30770 and fix some size_t checks that were not quite right.
30771 Remove old code using SHELL since Bash no longer
30772 uses this.
30773 (glob, prefix_array): Separate MS code better.
30774 (glob_in_dir): Remove old Amiga and VMS code.
30775 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30776 separate files.
30777 (glob_in_dir): Do not rely on undefined behavior in accessing
30778 struct members beyond their bounds. Use a flexible array member
30779 instead
30780 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30781 0/1. Caller changed.
30782 (glob): Fix memory leaks.
30783 * posix/glob64 (globfree64): Move to separate file.
30784 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30785 (globfree64): Remove hidden alias.
30786 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30787 oldglob.
30788 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30789 separate file.
30790 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30791 define.
30792 Move compat code to separate file.
30793 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30794 separate file.
30795
30796 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30797
30798 * resolv/tst-resolv-qtypes.c (domain): Changed to
30799 "const char domain[] =".
30800
30801 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30802
30803 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30804 version to 3.1.6.
30805
30806 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30807 (TCP_MD5SIG_EXT): Likewise.
30808 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30809 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30810 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30811
30812 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30813
30814 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30815
30816 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30817
30818 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30819
30820 [BZ #22100]
30821 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30822
30823 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30824
30825 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30826 before assuming that the file is empty. Avoid testing buffer content
30827 when nread == 0.
30828
30829 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30830
30831 [BZ #18858]
30832 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30833 Remove define.
30834 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30835 Likewise.
30836 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30837 Likewise.
30838 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30839 Likewise.
30840 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30841 Likewise.
30842 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30843 Likewise.
30844 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30845 Likewise.
30846
30847 2017-09-06 Florian Weimer <fweimer@redhat.com>
30848
30849 * malloc/dynarray_emplace_enlarge.c
30850 (__libc_dynarray_emplace_enlarge): Add missing else.
30851
30852 2017-09-06 Florian Weimer <fweimer@redhat.com>
30853
30854 [BZ #22096]
30855 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30856 case of failure to obtain the global conf object.
30857
30858 2017-09-06 Florian Weimer <fweimer@redhat.com>
30859
30860 [BZ #22095]
30861 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30862 dynarray allocation failure.
30863
30864 2017-09-06 Florian Weimer <fweimer@redhat.com>
30865
30866 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30867 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30868 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30869 New functions.
30870 (response): Call them. Add 'p', '6' flag processing.
30871 (test_reverse): New function.
30872 (test_get2_any): Call it.
30873 (test_no_inet6): Add 'p' test.
30874 (test_inet6): Likewise.
30875
30876 2017-09-06 Florian Weimer <fweimer@redhat.com>
30877
30878 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30879 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30880 the QNAME.
30881 (test_gai): Adjust query names. Add additional tests.
30882 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30883 test_get2. Adjust query names. Add additional tests.
30884 (test_no_inet6): New function, extracted from threadfunc.
30885 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30886 Add additional tests.
30887
30888 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30889
30890 [BZ #22070]
30891 * localedata/unicode-gen/utf8_gen.py: Set the width for
30892 characters with Prepended_Concatenation_Mark property to 1
30893 * localedata/charmaps/UTF-8: Updated using the improved script.
30894
30895 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30896
30897 [BZ #21750]
30898 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30899 use the range notation for all ranges of neighbouring characters
30900 with the same width.
30901
30902 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30903
30904 * sysdeps/generic/math-type-macros-double.h: Include
30905 <math-svid-compat.h>.
30906 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30907 * sysdeps/generic/math-type-macros-float.h: Include
30908 <math-svid-compat.h>.
30909 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30910 * sysdeps/generic/math-type-macros-ldouble.h: Include
30911 <math-svid-compat.h>.
30912 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30913 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30914 condition.
30915 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30916 * math/w_acosf_compat.c: Likewise.
30917 * math/w_acosh_compat.c: Likewise.
30918 * math/w_acoshf_compat.c: Likewise.
30919 * math/w_acoshl_compat.c: Likewise.
30920 * math/w_acosl_compat.c: Likewise.
30921 * math/w_asin_compat.c: Likewise.
30922 * math/w_asinf_compat.c: Likewise.
30923 * math/w_asinl_compat.c: Likewise.
30924 * math/w_atan2_compat.c: Likewise.
30925 * math/w_atan2f_compat.c: Likewise.
30926 * math/w_atan2l_compat.c: Likewise.
30927 * math/w_atanh_compat.c: Likewise.
30928 * math/w_atanhf_compat.c: Likewise.
30929 * math/w_atanhl_compat.c: Likewise.
30930 * math/w_cosh_compat.c: Likewise.
30931 * math/w_coshf_compat.c: Likewise.
30932 * math/w_coshl_compat.c: Likewise.
30933 * math/w_exp10_compat.c: Likewise.
30934 * math/w_exp10f_compat.c: Likewise.
30935 * math/w_exp10l_compat.c: Likewise.
30936 * math/w_exp2_compat.c: Likewise.
30937 * math/w_exp2f_compat.c: Likewise.
30938 * math/w_exp2l_compat.c: Likewise.
30939 * math/w_fmod_compat.c: Likewise.
30940 * math/w_fmodf_compat.c: Likewise.
30941 * math/w_fmodl_compat.c: Likewise.
30942 * math/w_hypot_compat.c: Likewise.
30943 * math/w_hypotf_compat.c: Likewise.
30944 * math/w_hypotl_compat.c: Likewise.
30945 * math/w_j0_compat.c: Likewise.
30946 * math/w_j0f_compat.c: Likewise.
30947 * math/w_j0l_compat.c: Likewise.
30948 * math/w_j1_compat.c: Likewise.
30949 * math/w_j1f_compat.c: Likewise.
30950 * math/w_j1l_compat.c: Likewise.
30951 * math/w_jn_compat.c: Likewise.
30952 * math/w_jnf_compat.c: Likewise.
30953 * math/w_jnl_compat.c: Likewise.
30954 * math/w_lgamma_r_compat.c: Likewise.
30955 * math/w_lgammaf_r_compat.c: Likewise.
30956 * math/w_lgammal_r_compat.c: Likewise.
30957 * math/w_log10_compat.c: Likewise.
30958 * math/w_log10f_compat.c: Likewise.
30959 * math/w_log10l_compat.c: Likewise.
30960 * math/w_log2_compat.c: Likewise.
30961 * math/w_log2f_compat.c: Likewise.
30962 * math/w_log2l_compat.c: Likewise.
30963 * math/w_log_compat.c: Likewise.
30964 * math/w_logf_compat.c: Likewise.
30965 * math/w_logl_compat.c: Likewise.
30966 * math/w_pow_compat.c: Likewise.
30967 * math/w_powf_compat.c: Likewise.
30968 * math/w_powl_compat.c: Likewise.
30969 * math/w_remainder_compat.c: Likewise.
30970 * math/w_remainderf_compat.c: Likewise.
30971 * math/w_remainderl_compat.c: Likewise.
30972 * math/w_sinh_compat.c: Likewise.
30973 * math/w_sinhf_compat.c: Likewise.
30974 * math/w_sinhl_compat.c: Likewise.
30975 * math/w_sqrt_compat.c: Likewise.
30976 * math/w_sqrtf_compat.c: Likewise.
30977 * math/w_sqrtl_compat.c: Likewise.
30978 * math/w_tgamma_compat.c: Likewise.
30979 * math/w_tgammaf_compat.c: Likewise.
30980 * math/w_tgammal_compat.c: Likewise.
30981 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30982 [LIBM_SVID_COMPAT].
30983 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30984 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30985 [LIBM_SVID_COMPAT].
30986 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30987 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30988 [LIBM_SVID_COMPAT].
30989 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30990 * sysdeps/i386/fpu/w_sqrt.c: New file.
30991 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30992 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30993 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30994 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30995 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30996 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30997 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30998 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30999 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
31000 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
31001 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
31002 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
31003 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
31004 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
31005 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
31006 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
31007 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
31008 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
31009 * sysdeps/ia64/fpu/w_exp.c: Likewise.
31010 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
31011 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
31012 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
31013 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
31014 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
31015 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
31016 * sysdeps/ia64/fpu/w_expf.c: Likewise.
31017 * sysdeps/ia64/fpu/w_expl.c: Likewise.
31018 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
31019 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
31020 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
31021 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
31022 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
31023 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
31024 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
31025 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
31026 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
31027 * sysdeps/ia64/fpu/w_log.c: Likewise.
31028 * sysdeps/ia64/fpu/w_log10.c: Likewise.
31029 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
31030 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
31031 * sysdeps/ia64/fpu/w_log2.c: Likewise.
31032 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
31033 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
31034 * sysdeps/ia64/fpu/w_logf.c: Likewise.
31035 * sysdeps/ia64/fpu/w_logl.c: Likewise.
31036 * sysdeps/ia64/fpu/w_pow.c: Likewise.
31037 * sysdeps/ia64/fpu/w_powf.c: Likewise.
31038 * sysdeps/ia64/fpu/w_powl.c: Likewise.
31039 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
31040 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
31041 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
31042 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
31043 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
31044 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
31045 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
31046 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
31047 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
31048 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
31049 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
31050 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
31051 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
31052 [LIBM_SVID_COMPAT].
31053 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31054 * sysdeps/ieee754/k_standard.c: Likewise.
31055 * sysdeps/ieee754/k_standardf.c: Likewise.
31056 * sysdeps/ieee754/k_standardl.c: Likewise.
31057 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31058 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31059 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31060 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31061 long_double_symbol call on [LIBM_SVID_COMPAT].
31062 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31063 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31064 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31065 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31066 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31067 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31068 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31069 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31070 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31071 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31072 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31073 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31074 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31075 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31076 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31077 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31078 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31079 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31080 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31081 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31082 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31083 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31084
31085 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31086
31087 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31088 * malloc/tst-mallocstate.c: Convert from test-skeleton
31089 to test-driver. Ifdef code using TEST_COMPAT macro.
31090 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31091 * math/test-matherr.c: Likewise.
31092
31093 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31094
31095 [BZ #22086]
31096 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31097 comparing word with byte-swapped constant.
31098
31099 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31100
31101 [BZ #20498]
31102 * locale/iso-639.def: add Miskito.
31103 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31104 * localedata/locales/miq_NI: New file.
31105
31106 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31107
31108 [BZ #18822]
31109 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31110 (__mkdir): Likewise.
31111 * io/chmod.c (__chmod): Add libc_hidden_def.
31112 * io/mkdir.c (__mkdir): Likewise.
31113 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31114 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31115 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31116 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31117
31118 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31119
31120 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31121 version to 4.13.
31122
31123 [BZ #22082]
31124 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31125 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31126
31127 2017-09-04 Florian Weimer <fweimer@redhat.com>
31128
31129 * math/math.h: Issue warning if log is defined.
31130
31131 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31132
31133 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31134 kernel version to 4.13.
31135
31136 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31137
31138 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31139 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31140 parameter.
31141 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31142 just <bits/types.h>.
31143 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31144 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31145 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31146 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31147 * misc/preadv2.c: Include <errno.h>.
31148 * misc/preadv64v2.c: Include <errno.h>.
31149 * misc/pwritev2.c: Include <errno.h>.
31150 * misc/pwritev64v2.c: Include <errno.h>.
31151 * sysdeps/posix/preadv2.c: Include <errno.h>.
31152 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31153 Fix <unistd.h> inclusion.
31154 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31155 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31156 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31157 __strtoul_internal): New functions.
31158 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31159 * sysdeps/posix/system.c: Include <sigsetops.h>.
31160 * sysdeps/mach/hurd/i386/Makefile
31161 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31162 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31163 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31164 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31165 __feraiseexcept_renamed to feraiseexcept instead of
31166 __GI_feraiseexcept.
31167 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31168 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31169 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31170 RWF_NOWAIT): Define to 0 if undefined already.
31171 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31172 boils down to 0.
31173 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31174 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31175
31176 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31177
31178 * manual/math.texi (pow10): Do not document.
31179 (pow10f): Likewise.
31180 (pow10l): Likewise.
31181 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31182 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31183 * math/libm-test-exp10.inc (pow10_test): Remove.
31184 (do_test): Do not call pow10.
31185 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31186 [NO_LONG_DOUBLE] (pow10l): Likewise.
31187 * math/w_exp10f_compat.c (pow10f): Likewise.
31188 * math/w_exp10l_compat.c (pow10l): Likewise.
31189 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31190 (pow10): Make into compat symbol.
31191 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31192 (pow10f): Make into compat symbol.
31193 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31194 (pow10l): Make into compat symbol.
31195 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31196 pow10.
31197 (CFLAGS-nldbl-pow10.c): Remove variable..
31198 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31199 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31200 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31201 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31202 Undefine and redefine.
31203 (pow10l): Make into compat symbol.
31204 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31205 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31206 * sysdeps/arm/libm-test-ulps: Likewise.
31207 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31208 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31209 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31210 * sysdeps/microblaze/libm-test-ulps: Likewise.
31211 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31212 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31213 * sysdeps/nios2/libm-test-ulps: Likewise.
31214 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31215 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31216 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31217 * sysdeps/sh/libm-test-ulps: Likewise.
31218 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31219 * sysdeps/tile/libm-test-ulps: Likewise.
31220 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31221
31222 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31223
31224 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31225
31226 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31227
31228 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31229 "../ChangeLog.old/ChangeLog.8".
31230 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31231 "../ChangeLog.old/ChangeLog.14".
31232
31233 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31234
31235 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31236 Threads Library.
31237
31238 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31239
31240 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31241
31242 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31243
31244 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31245 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31246
31247 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31248
31249 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31250 32 atexit handlers.
31251
31252 2017-09-01 Zack Weinberg <zackw@panix.com>
31253
31254 * math/math.h (HUGE_VAL): Improve commentary.
31255
31256 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31257 Andreas Schwab <schwab@suse.de>
31258
31259 [BZ #21530]
31260 * include/stdio.h (__gen_tempfd): New function.
31261 * stdio-common/Makefile (routines): Add gentempfd.
31262 * stdio-common/gentempfd.c: New file.
31263 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31264 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31265 unnamed file first.
31266
31267 2017-09-01 Florian Weimer <fweimer@redhat.com>
31268
31269 [BZ #21915]
31270 [BZ #21922]
31271 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31272 result to determine success or failure, not the errno value.
31273 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31274 (tst-nss-files-hosts-erange): Link with -ldl.
31275 * nss/tst-nss-files-hosts-erange.c: New file.
31276 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31277 (do_test): Add NO_DATA tests.
31278 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31279 (do_test): Call it.
31280
31281 2017-09-01 Florian Weimer <fweimer@redhat.com>
31282
31283 [BZ #21922]
31284 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31285 coming from gethostbyname2_r.
31286
31287 2017-09-01 Florian Weimer <fweimer@redhat.com>
31288
31289 * support/namespace.h (struct support_chroot_configuration): Add
31290 hosts, host_conf.
31291 (struct support_chroot): Add path_hosts, path_host_conf.
31292 * support/support_chroot.c (write_file): New function.
31293 (support_chroot_create): Call it to process /etc/resolv.conf,
31294 /etc/hosts, /etc/host.conf.
31295 (support_chroot_free): Update.
31296
31297 2017-09-01 Florian Weimer <fweimer@redhat.com>
31298
31299 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31300 status indicates it is set.
31301
31302 2017-09-01 Florian Weimer <fweimer@redhat.com>
31303
31304 [BZ #20532]
31305 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31306 function lookup failures more reliable.
31307
31308 2017-09-01 Florian Weimer <fweimer@redhat.com>
31309
31310 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31311 (getcanonname): Likewise.
31312 (gaih_inet): Likewise.
31313
31314 2017-09-01 Florian Weimer <fweimer@redhat.com>
31315
31316 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31317 (getcanonname): Likewise.
31318 (gaih_inet): Likewise.
31319
31320 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31321 Richard Henderson <rth@twiddle.net>
31322
31323 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31324 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31325 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31326 (IREG_SIZE, OREG_SIZE): New macros.
31327 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31328 (IREG_SIZE, OREG_SIZE): New macros.
31329 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31330 (IREG_SIZE): New macro.
31331 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31332 (IREG_SIZE): New macro.
31333 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31334 New includes.
31335 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31336 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31337 (__CONCATX): Handle exceptions correctly on large values that may
31338 set FE_INVALID.
31339 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31340 Initialize if not already set.
31341 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31342
31343 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31344
31345 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31346 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31347 Likewise.
31348 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31349 Likewise.
31350 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31351 Likewise.
31352 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31353 Likewise.
31354 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31355 Likewise.
31356 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31357 Likewise.
31358 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31359 Likewise.
31360 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31361 (NO_CANCELLATION): Likewise.
31362 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31363 Likewise.
31364 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31365 Likewise.
31366 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31367 Likewise.
31368 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31369 (NO_CANCELLATION): Likewise.
31370 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31371 (NO_CANCELLATION): Likewise.
31372 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31373 Likewise
31374 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31375 Likewise.
31376 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31377 Likewise.
31378 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31379 Likewise.
31380 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31381 hidden prototype.
31382 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31383 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31384
31385 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31386
31387 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31388 in resolver call.
31389
31390 2017-08-31 Florian Weimer <fweimer@redhat.com>
31391
31392 * include/libc-symbols.h (internal_function): Remove.
31393
31394 2017-08-31 Florian Weimer <fweimer@redhat.com>
31395
31396 * stdlib/fmtmsg.c (internal_addseverity): Remove
31397 internal_function.
31398
31399 2017-08-31 Florian Weimer <fweimer@redhat.com>
31400
31401 * stdio-common/printf_fp.c (group_number): Remove
31402 internal_function.
31403 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31404
31405 2017-08-31 Florian Weimer <fweimer@redhat.com>
31406
31407 * posix/fnmatch.c (internal_function): Remove definition.
31408 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31409 * posix/regcomp.c (peek_token, init_word_char)
31410 (duplicate_node_closure, fetch_token, peek_token)
31411 (peek_token_bracket, build_range_exp, build_collating_symbol):
31412 Likewise.
31413 * posix/regex_internal.c (re_string_construct_common)
31414 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31415 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31416 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31417 (re_string_translate_buffer, re_string_reconstruct)
31418 (re_string_peek_byte_case, re_string_fetch_byte_case)
31419 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31420 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31421 (re_node_set_add_intersect, re_node_set_init_union)
31422 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31423 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31424 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31425 (re_acquire_state_context): Likewise.
31426 * posix/regex_internal.h (internal_function): Remove definition.
31427 (re_string_realloc_buffers, build_wcs_buffer)
31428 (build_wcs_upper_buffer, build_upper_buffer)
31429 (re_string_translate_buffer, re_string_context_at)
31430 (re_string_char_size_at, re_string_wchar_at)
31431 (re_string_elem_size_at): Likewise.
31432 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31433 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31434 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31435 (re_search_internal, re_search_2_stub, re_search_stub)
31436 (re_copy_regs, prune_impossible_nodes, check_matching)
31437 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31438 (free_fail_stack_return, sift_states_iter_mb)
31439 (sift_states_backward, build_sifted_states)
31440 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31441 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31442 (check_subexp_limits, sift_states_bkref, merge_state_array)
31443 (find_recover_state, transit_state, merge_state_with_log)
31444 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31445 (transit_state_mb, transit_state_bkref, get_subexp)
31446 (get_subexp_sub, find_subexp_node, check_arrival)
31447 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31448 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31449 (check_node_accept_bytes, find_collation_sequence_value)
31450 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31451 (acquire_init_state_context, check_halt_node_context)
31452 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31453 (sub_epsilon_src_nodes): Likewise.
31454 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31455 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31456 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31457 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31458 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31459 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31460 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31461 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31462 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31463 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31464 (PREADV): Likewise.
31465 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31466 (PREADV): Likewise.
31467 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31468 (PWRITEV): Likewise.
31469 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31470 (PWRITEV): Likewise.
31471 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31472 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31473
31474 2017-08-31 Florian Weimer <fweimer@redhat.com>
31475
31476 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31477 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31478 Remove internal_function.
31479 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31480 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31481 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31482 (__deallocate_stack, __libc_pthread_init)
31483 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31484 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31485 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31486 Likewise.
31487 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31488 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31489 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31490 Likewise.
31491 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31492 (__pthread_mutex_unlock_usercnt): Likewise.
31493
31494 2017-08-31 Florian Weimer <fweimer@redhat.com>
31495
31496 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31497 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31498 (fts_safe_changedir): Remove internal_function.
31499 * io/ftw.c (internal_function): Remove definition.
31500 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31501
31502 2017-08-31 Florian Weimer <fweimer@redhat.com>
31503
31504 * inet/deadline.c (__deadline_current_time)
31505 (__deadline_from_timeval, __deadline_to_ms): Remove
31506 internal_function.
31507 * inet/getnameinfo.c (nrl_domainname): Likewise.
31508 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31509 * inet/inet6_option.c (add_pad): Likewise.
31510 * inet/net-internal.h (__deadline_current_time)
31511 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31512 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31513 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31514 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31515
31516 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31517
31518 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31519 include <bits/nan.h>.
31520 * math/Makefile (headers): Remove bits/nan.h.
31521 * bits/nan.h: Remove.
31522 * sysdeps/ieee754/bits/nan.h: Likewise.
31523 * sysdeps/mips/bits/nan.h: Likewise.
31524
31525 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31526 not include <bits/inf.h>.
31527 * math/Makefile (headers): Remove bits/inf.h.
31528 * bits/inf.h: Remove.
31529 * sysdeps/ieee754/bits/inf.h: Likewise.
31530
31531 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31532 bits/huge_vall.h or bits/huge_val_flt128.h.
31533 (HUGE_VAL): Define directly here.
31534 [__USE_ISOC99] (HUGE_VALF): Likewise.
31535 [__USE_ISOC99] (HUGE_VALL): Likewise.
31536 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31537 (HUGE_VAL_F128): Likewise.
31538 * math/Makefile (headers): Remove bits/huge_val.h,
31539 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31540 * bits/huge_val.h: Remove.
31541 * bits/huge_val_flt128.h: Likewise.
31542 * bits/huge_valf.h: Likewise.
31543 * bits/huge_vall.h: Likewise.
31544 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31545 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31546 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31547 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31548 * sysdeps/sh/bits/huge_val.h: Likewise.
31549 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31550 * sysdeps/x86/bits/huge_vall.h: Likewise.
31551
31552 2017-08-31 Florian Weimer <fweimer@redhat.com>
31553
31554 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31555 internal_function.
31556 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31557 Likewise.
31558 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31559 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31560 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31561 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31562 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31563 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31564 * elf/dl-libc.c (dlerror_run): Likewise.
31565 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31566 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31567 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31568 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31569 Likewise.
31570 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31571 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31572 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31573 * elf/dl-profile.c (_dl_start_profile): Likewise.
31574 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31575 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31576 Likewise.
31577 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31578 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31579 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31580 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31581 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31582 (_dl_allocate_tls_storage): Likewise.
31583 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31584 (_dl_check_all_versions): Likewise.
31585 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31586 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31587 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31588 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31589 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31590 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31591 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31592 internal_function from __dl_start.
31593 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31594 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31595 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31596 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31597 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31598 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31599 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31600 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31601 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31602 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31603 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31604 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31605 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31606 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31607 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31608 Likewise.
31609 (struct rtld_global_ro): Remove internal_function from the
31610 _dl_lookup_symbol_x member.
31611 (_dl_symbol_value): Remove. No longer defined anywhere.
31612 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31613 internal_function.
31614 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31615 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31616 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31617 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31618 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31619 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31620 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31621 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31622 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31623 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31624 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31625 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31626
31627 2017-08-31 Florian Weimer <fweimer@redhat.com>
31628
31629 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31630 Remove internal_function.
31631 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31632 Likewise.
31633 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31634 Likewise.
31635
31636 2017-08-31 Florian Weimer <fweimer@redhat.com>
31637
31638 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31639 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31640 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31641
31642 2017-08-31 Florian Weimer <fweimer@redhat.com>
31643
31644 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31645 (__gai_enqueue_request): Remove internal_function.
31646 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31647 (__gai_remove_request, __gai_notify, __gai_notify_only)
31648 (__gai_sigqueue): Likewise.
31649 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31650 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31651 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31652 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31653 Likewise.
31654
31655 2017-08-31 Florian Weimer <fweimer@redhat.com>
31656
31657 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31658 * include/dirent.h (__opendirat, __getdents, __getdents64)
31659 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31660 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31661 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31662 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31663 Likewise.
31664 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31665
31666 2017-08-31 Florian Weimer <fweimer@redhat.com>
31667
31668 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31669 internal_function.
31670 (GETCWD_RETURN_TYPE): Likewise.
31671
31672 2017-08-31 Florian Weimer <fweimer@redhat.com>
31673
31674 * include/time.h (__tz_compute, __strptime_internal): Remove
31675 internal_function.
31676 * time/strptime_l.c (__strptime_internal): Likewise.
31677 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31678
31679 2017-08-31 Florian Weimer <fweimer@redhat.com>
31680
31681 * iconv/gconv.c (__gconv): Remove internal_function.
31682 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31683 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31684 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31685 (__gconv_release_cache): Likewise.
31686 * iconv/gconv_close.c (__gconv_close): Likewise.
31687 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31688 (read_conf_file, __gconv_get_path): Likewise.
31689 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31690 (__gconv_release_step, gen_steps, increment_counter)
31691 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31692 (__gconv_close_transform, free_modules_db): Likewise.
31693 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31694 Likewise.
31695 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31696 (__gconv_find_transform, __gconv_lookup_cache)
31697 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31698 (__gconv_close_transform, __gconv_release_cache)
31699 (__gconv_loaded_object, __gconv_release_shlib)
31700 (__gconv_compare_alias): Likewise.
31701 * iconv/gconv_open.c (__gconv_open): Likewise.
31702 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31703 * iconv/iconvconfig.c (add_module): Likewise.
31704 * intl/dcigettext.c (plural_lookup, guess_category_value)
31705 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31706 * intl/eval-plural.h (plural_eval): Likewise.
31707 * intl/finddomain.c (_nl_find_domain): Likewise.
31708 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31709 (_nl_load_domain, _nl_find_msg): Likewise.
31710 (internal_function): Remove definition.
31711 * intl/loadinfo.h (internal_function): Likewise.
31712 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31713 internal_function.
31714 * intl/localealias.c (internal_function): Remove definition.
31715 (read_alias_file): Remove internal_function.
31716 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31717 * intl/plural-exp.h (internal_function): Remove definition.
31718 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31719 internal_function.
31720 * intl/plural.c: Regenerate.
31721 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31722 * locale/coll-lookup.c (__collidx_table_lookup)
31723 (__collseq_table_lookup): Likewise.
31724 * locale/coll-lookup.h (__collidx_table_lookup)
31725 (__collseq_table_lookup): Likewise.
31726 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31727 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31728 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31729 (_nl_unload_locale): Likewise.
31730 * locale/localeinfo.h (struct __locale_data): Remove
31731 internal_function from cleanup member.
31732 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31733 (_nl_remove_locale, _nl_load_locale_from_archive)
31734 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31735 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31736 (_nl_cleanup_time): Remove internal_function.
31737 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31738 (_nl_parse_alt_digit): Likewise.
31739 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31740 (_nl_select_era_entry): Likewise.
31741 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31742 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31743 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31744 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31745 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31746
31747 2017-08-31 Florian Weimer <fweimer@redhat.com>
31748
31749 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31750 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31751 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31752 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31753 Likewise.
31754 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31755 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31756 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31757 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31758 Likewise.
31759 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31760
31761 2017-08-31 Florian Weimer <fweimer@redhat.com>
31762
31763 * misc/getttyent.c (skip, value): Remove internal_function.
31764 * misc/syslog.c (openlog_internal): Likewise.
31765 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31766
31767 2017-08-31 Florian Weimer <fweimer@redhat.com>
31768
31769 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31770 (__nss_rewrite_field): Remove internal_function.
31771 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31772 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31773 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31774 * nss/nsswitch.c (nss_parse_file, nss_getline)
31775 (nss_parse_service_list, nss_new_service): Likewise.
31776 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31777 * nss/valid_field.c (__nss_valid_field): Likewise.
31778 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31779
31780 2017-08-31 Florian Weimer <fweimer@redhat.com>
31781
31782 * malloc/arena.c (__malloc_fork_lock_parent)
31783 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31784 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31785 internal_function from defintions.
31786 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31787 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31788 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31789 internal_function from declarations.
31790 * malloc/malloc.c (internal_function): Do not define.
31791 (mem2mem_check): Remove internal_function from declaration.
31792 (munmap_chunk, mremap_chunk): Remove internal_function.
31793 * malloc/mtrace.c (tr_where): Likewise.
31794
31795 2017-08-31 Florian Weimer <fweimer@redhat.com>
31796
31797 * include/rpc/pmap_clnt.h (__get_socket): Remove
31798 internal_function.
31799 * sunrpc/auth_des.c (synchronize): Likewise.
31800 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31801 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31802 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31803 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31804 (key_call): Likewise.
31805 * sunrpc/pm_getport.c (__get_socket): Likewise.
31806 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31807 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31808 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31809 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31810 (invalidate): Likewise.
31811 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31812 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31813 (set_input_fragment, get_input_bytes): Likewise.
31814
31815 2017-08-31 Florian Weimer <fweimer@redhat.com>
31816
31817 * malloc/malloc.c (_int_free): Remove locked variable and related
31818 asserts.
31819
31820 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31821
31822 [BZ #22051]
31823 * Makerules (build-module-helper-objlist): Filter out
31824 $(elf-objpfx)sofini.os.
31825 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31826 needed.
31827
31828 2017-08-31 Florian Weimer <fweimer@redhat.com>
31829
31830 * libio/fcloseall.c: Assume weak_alias is defined.
31831 * libio/feof.c: Likewise.
31832 * libio/fileno.c: Likewise.
31833 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31834 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31835 definitions.
31836 (_IO_file_open): Call __open directly.
31837 (_IO_new_file_sync): Assume ESPIPE is defined.
31838 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31839 (_IO_new_file_write): Call __write directly.
31840 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31841 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31842 * libio/genops.c: Assume _LIBC is defined.
31843 (save_for_backup): Remove internal_function.
31844 * libio/getc.c: Assume weak_alias is defined.
31845 * libio/getwc.c: Likewise.
31846 * libio/iofclose.c: Assume _LIBC is defined.
31847 * libio/iofdopen.c: Likewise.
31848 (_IO_fcntl): Remove macro definition.
31849 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31850 Call __fcntl directly.
31851 * libio/iofflush.c: Assume weak_alias is defined.
31852 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31853 defined.
31854 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31855 * libio/iofgets.c: Likewise.
31856 * libio/iofopen.c: Assume _LIBC is defined.
31857 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31858 * libio/iofputs.c: Assume weak_alias is defined.
31859 * libio/iofread.c: Likewise.
31860 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31861 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31862 * libio/ioftell.c: Assume weak_alias is defined.
31863 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31864 * libio/iofwide.c: Assume _LIBC is defined.
31865 (_IO_fwide): Drop SHARED conditional because it is implied by
31866 SHLIB_COMPAT.
31867 * libio/iofwrite.c: Assume weak_alias is defined.
31868 * libio/iogetdelim.c: Likewise.
31869 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31870 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31871 (_IO_getwline): Call __wmemcpy directly.
31872 * libio/iopopen.c: Assume _LIBC is defined.
31873 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31874 (_IO_close): Remove macro definitions.
31875 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31876 _exit directly.
31877 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31878 directly.
31879 * libio/ioputs.c: Assume weak_alias is defined.
31880 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31881 * libio/iosetbuffer.c: Assume weak_alias is defined.
31882 * libio/iosetvbuf.c: Likewise.
31883 * libio/ioungetc.c: Likewise.
31884 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31885 libc_hidden_def, libc_hidden_weak, NULL are defined.
31886 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31887 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31888 defined.
31889 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31890 definitions.
31891 (_IO_old_file_init_internal): Drop SHARED conditional because it
31892 is implied by SHLIB_COMPAT.
31893 (_IO_old_file_fopen): Call __open directly.
31894 (_IO_old_file_sync): Assume ESPIPE is defined.
31895 (_IO_old_file_write): Call __write directly.
31896 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31897 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31898 Call __fcntl directly.
31899 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31900 (_IO_old_fgetpos): Assume EIO is defined.
31901 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31902 (_IO_old_fgetpos64): Assume EIO is defined.
31903 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31904 (_IO_old_fsetpos): Assume EIO is defined.
31905 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31906 (_IO_old_fsetpos64): Assume EIO is defined.
31907 * libio/oldiopopen.c: Assume _LIBC is defined.
31908 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31909 (_IO_close): Remove macro definitions.
31910 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31911 directly.
31912 (_IO_old_proc_close): Call __close, __waitpid directly.
31913 * libio/put.c: Assume weak_alias is defined.
31914 * libio/stdfiles.c: Assume _LIBC is defined.
31915 * libio/stdio.c: Likewise.
31916 * libio/wfileops.c: Likewise.
31917 (_IO_wfile_sync): Assume ESPIPE is defined.
31918 * libio/wgenops.c: Assume _LIBC is defined.
31919 (save_for_wbackup): Remove internal_function.
31920
31921 2017-08-31 Florian Weimer <fweimer@redhat.com>
31922
31923 * malloc/malloc.c (top_check): Change return type to void. Remove
31924 internal_function.
31925 * malloc/hooks.c (top_check): Likewise.
31926 (malloc_check, realloc_check, memalign_check): Adjust.
31927
31928 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31929
31930 [BZ #21457]
31931 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31932 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31933 sigcontext and namespace requirements.
31934 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31935 * sysdeps/m68k/sys/ucontext.h: Likewise.
31936 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31937 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31938 <bits/sigcontext.h>.
31939 (__ctx): Define earlier.
31940 (mcontext_t): Define structure contents rather than using struct
31941 sigcontext.
31942 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31943 __glibc_reserved1 instead of __reserved.
31944 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31945 <bits/sigcontext.h>.
31946 (__ctx): Define earlier.
31947 (mcontext_t): Define structure contents rather than using struct
31948 sigcontext.
31949 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31950 mcontext_t instead of struct sigcontext.
31951 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31952 <bits/sigcontext.h>.
31953 (__ctx): Define earlier.
31954 (mcontext_t): Define structure contents rather than using struct
31955 sigcontext.
31956 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31957 <bits/sigcontext.h>.
31958 (__ctx): Define earlier.
31959 (mcontext_t): Define structure contents rather than using struct
31960 sigcontext.
31961 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31962 mcontext_t instead of struct sigcontext.
31963 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31964 mcontext_t instead of struct sigcontext.
31965 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31966 <bits/sigcontext.h>.
31967 (__ctx): New macro.
31968 (struct __ia64_fpreg_mcontext): New type.
31969 (mcontext_t): Define structure contents rather than using struct
31970 sigcontext.
31971 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31972 (uc_sigmask): Define using __ctx.
31973 (uc_stack): Likewise.
31974 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31975 <bits/sigcontext.h>.
31976 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31977 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31978 <bits/sigcontext.h>.
31979 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31980 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31981 <bits/sigcontext.h>.
31982 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31983 <bits/sigcontext.h>.
31984 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31985 <bits/sigcontext.h>.
31986 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31987 <bits/sigcontext.h>.
31988 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31989 <bits/sigcontext.h>.
31990 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31991 <bits/sigcontext.h>.
31992 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31993 <bits/sigcontext.h>.
31994 (__ctx): Define earlier.
31995 (mcontext_t): Define structure contents rather than using struct
31996 sigcontext.
31997 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31998 <bits/sigcontext.h>. Include <bits/types.h>.
31999 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
32000 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
32001 (test-xfail-XPG42/ucontext.h/conform): Likewise.
32002 (test-xfail-UNIX98/signal.h/conform): Likewise.
32003 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
32004 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
32005 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
32006 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
32007 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
32008 (test-xfail-POSIX2008/signal.h/conform): Likewise.
32009 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
32010 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
32011 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
32012
32013 2017-08-30 Florian Weimer <fweimer@redhat.com>
32014
32015 * malloc/dynarray_emplace_enlarge.c
32016 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
32017 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
32018 * malloc/tst-dynarray.c (test_long_overflow): New function.
32019 (do_test): Call it.
32020
32021 2017-08-30 Florian Weimer <fweimer@redhat.com>
32022
32023 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
32024 (set_arena_corrupt): Remove definitions.
32025 (mtrim): Do not check for corrupt arena.
32026 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
32027 Likewise.
32028
32029 2017-08-30 Florian Weimer <fweimer@redhat.com>
32030
32031 [BZ #21754]
32032 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
32033 check_action.
32034 (ptmalloc_init): Do not set or use check_action.
32035 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
32036 call to malloc_printerr. Remove return statement.
32037 (free_check): Likewise. Remove arena unlock.
32038 (top_check): Update comment. Adjust call to malloc_printerr.
32039 Remove heap repair code.
32040 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
32041 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
32042 (sysmalloc): Adjust call to malloc_printerr.
32043 (munmap_chunk, __libc_realloc): Likewise. Remove return
32044 statement.
32045 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
32046 Remove errout label and corresponding gotos.
32047 (_int_free): Likewise. Remove arena unlock.
32048 (do_set_mallopt_check): Do not set check_action.
32049 (malloc_printerr): Adjust parameter list. Do not mark arena as
32050 corrupt.
32051 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
32052 comment.
32053 * manual/probes.texi (Memory Allocation Probes): Remove
32054 memory_mallopt_check_action.
32055
32056 2017-08-30 Steve Ellcey <sellcey@cavium.com>
32057
32058 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
32059 Use pointer to uint64_t instead of long int for sp.
32060
32061 2017-08-30 Florian Weimer <fweimer@redhat.com>
32062
32063 [BZ #21754]
32064 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32065 without printing a backtrace. Do not leak any information in the
32066 error message.
32067 * manual/memory.texi (Heap Consistency Checking): Update.
32068 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32069
32070 2017-08-30 Florian Weimer <fweimer@redhat.com>
32071
32072 Do not scale NPTL tests with available number of CPUs.
32073 * nptl/tst-cond16.c (count): Set to constant value of 8.
32074 * nptl/tst-cond18.c (count): Likewise.
32075
32076 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32077
32078 [BZ #22035]
32079 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32080 Define to take a second argument that is a macro that
32081 concatentates a suffix, not the suffix itself.
32082 (__CONCAT_d): New macro.
32083 (__CONCAT_f): Likewise.
32084 (__CONCAT_l): Likewise.
32085
32086 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32087
32088 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32089 by child.
32090
32091 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32092 Aurelien Jarno <aurelien@aurel32.net>
32093 Maciej W. Rozycki <macro@imgtec.com>
32094
32095 [BZ #21956]
32096 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32097 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32098 `mips16-syscall6' and `mips16-syscall7'.
32099 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32100 (CFLAGS-mips16-syscall7.c): Remove.
32101 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32102 Remove `__mips16_syscall5', `__mips16_syscall6' and
32103 `__mips16_syscall7'.
32104 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32105 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32106 `__mips_syscall_return'.
32107 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32108 (__mips16_syscall1): Likewise.
32109 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32110 (__mips16_syscall2): Likewise.
32111 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32112 (__mips16_syscall3): Likewise.
32113 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32114 (__mips16_syscall4): Likewise.
32115 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32116 Remove.
32117 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32118 Remove.
32119 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32120 Remove.
32121 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32122 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32123 `__mips16_syscall5'. Remove prototype.
32124 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32125 `__mips16_syscall6'. Remove prototype.
32126 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32127 `__mips16_syscall7'. Remove prototype.
32128 (__nomips16, __mips16_syscall_return): Move to...
32129 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32130 (__nomips16, __mips_syscall_return): ... here.
32131 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32132 `__mips16_syscall_return' to `__mips_syscall_return'.
32133 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32134 `internal_syscall##nr'.
32135 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32136 `internal_syscall##nr'.
32137 (FORCE_FRAME_POINTER): Remove.
32138 (__mips_syscall5): New prototype.
32139 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32140 (__mips_syscall6): New prototype.
32141 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32142 (__mips_syscall7): New prototype.
32143 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32144 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32145 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32146 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32147 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32148 (sysdep_routines): Add libc-do-syscall.
32149 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32150 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32151
32152 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32153
32154 [BZ #21672]
32155 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32156 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32157 (advise_stack_range): New function.
32158 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32159 stack non required to advise_stack_range at allocatestack.c
32160
32161 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32162
32163 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32164
32165 2017-08-29 Florian Weimer <fweimer@redhat.com>
32166
32167 [BZ #22026]
32168 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32169 __end_fct. Mangle __end_fct after setting it to NULL.
32170 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32171 (modules-names, modules-names-tests): Add
32172 tst-gconv-init-failure-mod.
32173 (gconv-modules): New target.
32174 (tst-gconv-init-failure-mod.so): Link against libsupport.
32175 (tst-gconv-init-failure): Depend on gconv-modules,
32176 tst-gconv-init-failure-mod.so.
32177 * iconv/tst-gconv-init-failure-mod.c: New file.
32178 * iconv/tst-gconv-init-failure.c: Likewise.
32179 * iconv/test-gconv-modules: Likewise.
32180
32181 2017-08-29 Florian Weimer <fweimer@redhat.com>
32182
32183 [BZ #22025]
32184 * iconv/gconv_db.c (free_derivation): Remove redundant
32185 parentheses.
32186 (gen_steps): Unconditionally mangle __btowc_fct after
32187 initialization.
32188 (increment_counter): Likewise. Do not call init_fct for internal
32189 modules.
32190
32191 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32192
32193 [BZ #22028]
32194 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32195 (_MSUF_): Remove macro.
32196 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32197 Likewise.
32198 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32199 (__REDIRFROM_X): New macro.
32200 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32201 Likewise.
32202 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32203 (__REDIRTO_X): Likewise.
32204 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32205 arguments.
32206 (__MATH_REDIRCALL_2): Likewise.
32207 (__MATH_REDIRCALL_INTERNAL): Likewise.
32208 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32209 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32210 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32211 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32212 * math/test-finite-macros.c: New file.
32213 * math/Makefile (tests): Add test-finite-macros.
32214 (CFLAGS-test-finite-macros.c): New variable.
32215
32216 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32217 Jeff Law <law@redhat.com>
32218
32219 [BZ #22025]
32220 Mangle NULL pointers in iconv/gconv.
32221 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32222 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32223 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32224 is non-NULL before demangling the end_fct. Check for NULL
32225 end_fct after demangling.
32226 (__gconv_release_step): Demangle the end_fct before checking
32227 it for NULL. Remove assert on __shlibc_handle != NULL.
32228 (gen_steps): Don't check btowc_fct for NULL before mangling.
32229 Demangle init_fct before checking for NULL.
32230 (increment_counter): Likewise.
32231 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32232 end_fct for NULL before mangling.
32233 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32234 for NULL.
32235
32236 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32237
32238 [BZ #21971]
32239 * locale/iso-639.def: add Morisyen.
32240
32241 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32242
32243 [BZ #21930]
32244 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32245 (iszero): New C++ implementation that does not use
32246 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32247 signaling nans are enabled, since __builtin_types_compatible_p
32248 is a C-only feature.
32249 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32250 defined, include ieee754_float128.h for access to the union and
32251 member ieee854_float128.ieee.
32252 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32253 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32254 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32255 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32256 options of test-math-zero on powerpc64le.
32257
32258 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32259
32260 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32261 Change double to float.
32262
32263 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32264
32265 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32266 unconditional.
32267 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32268 conditional code; define contents only for [LIBM_SVID_COMPAT].
32269
32270 2017-08-28 Florian Weimer <fweimer@redhat.com>
32271
32272 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32273 (abi-lp64_be-options): Remove.
32274 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32275 (abi-hard-options): Likewise.
32276 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32277 (abi-o32_hard-options, abi-o32_soft_2008-options)
32278 (abi-o32_hard_2008-options, abi-n32_soft-options)
32279 (abi-n32_hard-options, abi-n32_soft_2008-options)
32280 (abi-n32_hard_2008-options, abi-n64_soft-options)
32281 (abi-n64_hard-options, abi-n64_soft_2008-options)
32282 (abi-n64_hard_2008-options): Likewise.
32283 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32284 (abi-64-v1-options, abi-64-v2-options): Likewise.
32285 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32286 (abi-64-options): Likewise.
32287 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32288 (abi-64-options): Likewise.
32289 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32290 (abi-64-options): Likewise.
32291 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32292 (abi-64-options, abi-x32-options): Likewise.
32293
32294 2017-08-28 Florian Weimer <fweimer@redhat.com>
32295
32296 Store supported list of SYS_* system calls in the source tree.
32297 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32298 (bits/syscall.h): Generate from list file.
32299 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32300 [$(subdir) = misc] (tests): Add tst-syscall-list.
32301 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32302 [$(subdir) = misc] (tst-syscall-list-macros.list)
32303 [$(subdir) = misc] (tst-syscall-list-nr.list)
32304 (tst-syscall-list-sys.list): Helper targets for new
32305 tst-syscall-list test.
32306 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32307 tst-syscall-list.sh.
32308 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32309 target. Do not include bits/syscall.d.
32310 [$(subdir) = misc] (generated): Do not update.
32311 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32312 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32313 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32314 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32315
32316 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32317
32318 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32319 (tst-cxa_atexit, tst-on_exit): Likewise.
32320 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32321 tst-cxa_atexit, and tst-on_exit.
32322 * stdlib/tst-atexit-common.c: New file.
32323 * stdlib/tst-atexit.c: New file.
32324 * stdlib/tst-at_quick_exit.c: New file.
32325 * stdlib/tst-cxa_atexit.c: New file.
32326 * stdlib/tst-on_exit.c: New file.
32327
32328 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32329
32330 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32331 * mach/stack_chk_fail_local.c: New file.
32332 * hurd/stack_chk_fail_local.c: New file.
32333 * mach/Machrules ($(interface-library)-routines): Add
32334 stack_chk_fail_local.
32335 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32336 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32337 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32338 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32339 * hurd/Makefile (CFLAGS-hurdstartup.o,
32340 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32341
32342 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32343
32344 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32345 (index_cpu_*, index_arch_*): Removed.
32346
32347 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32348
32349 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32350 Use uint64_t instead of unsigned long.
32351
32352 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32353
32354 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32355 [__HAVE_DISTINCT_FLOAT128].
32356
32357 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32358 of <bits/math-finite.h>.
32359 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32360 inclusion of <bits/math-finite.h>.
32361 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32362 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32363 __NO_LONG_DOUBLE_MATH].
32364 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32365 (__MATH_REDIRCALL_2): Likewise.
32366 (__MATH_REDIRCALL_INTERNAL): Likewise.
32367 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32368 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32369 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32370
32371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32372 Remove file.
32373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32374 Likewise.
32375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32376 Likewise.
32377 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32378 Likewise.
32379 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32380 Likewise.
32381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32382 Likewise.
32383 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32384 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32385 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32386 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32387 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32388 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32389 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32390 w_sqrtf_compat-ppc32.
32391
32392 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32393
32394 * math/math.h [defined __cplusplus] (issignaling): In the long
32395 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32396 is not defined. Call __issignaling, otherwise.
32397
32398 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32399
32400 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32401 syscall definitions and replace __builtin_expect with __glibc_likely.
32402 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32403 syscall.
32404 (SYSCALL_CANCELLABLE): Removedefinition
32405 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32406 definition.
32407 (PSEUDO_END): Likewise.
32408 [IS_IN (libpthread)] (CENABLE): Likewise.
32409 [IS_IN (libpthread)] (CDISABLE): Likewise.
32410 [IS_IN (libc)] (CENABLE): Likewise.
32411 [IS_IN (libc)] (CENABLE): Likewise.
32412 [IS_IN (librt)] (CDISABLE): Likewise.
32413 [IS_IN (librt)] (CDISABLE): Likewise.
32414 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32415 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32416 definition.
32417 (PSEUDO_END): Likewise.
32418 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32419 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32420 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32421 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32422 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32423 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32424 (CENABLE): Likewise.
32425 (CDISABLE): Likewise.
32426 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32427 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32428 defintion.
32429 (PSEUDO_END): Likewise.
32430 [IS_IN (libpthread)] (CENABLE): Likewise.
32431 [IS_IN (libpthread)] (CDISABLE): Likewise.
32432 [IS_IN (libc)] (CENABLE): Likewise.
32433 [IS_IN (libc)] (CENABLE): Likewise.
32434 [IS_IN (librt)] (CDISABLE): Likewise.
32435 [IS_IN (librt)] (CDISABLE): Likewise.
32436 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32437 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32438 definition.
32439 (PSEUDO_END): Likewise.
32440 [IS_IN (libpthread)] (CENABLE): Likewise.
32441 [IS_IN (libpthread)] (CDISABLE): Likewise.
32442 [IS_IN (libc)] (CENABLE): Likewise.
32443 [IS_IN (libc)] (CENABLE): Likewise.
32444 [IS_IN (librt)] (CDISABLE): Likewise.
32445 [IS_IN (librt)] (CDISABLE): Likewise.
32446 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32447 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32448 definition.
32449 (PSEUDO_END): Likewise.
32450 [IS_IN (libpthread)] (CENABLE): Likewise.
32451 [IS_IN (libpthread)] (CDISABLE): Likewise.
32452 [IS_IN (libc)] (CENABLE): Likewise.
32453 [IS_IN (libc)] (CENABLE): Likewise.
32454 [IS_IN (librt)] (CDISABLE): Likewise.
32455 [IS_IN (librt)] (CDISABLE): Likewise.
32456 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32457 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32458 definition.
32459 (PSEUDO_END): Likewise.
32460 [IS_IN (libpthread)] (CENABLE): Likewise.
32461 [IS_IN (libpthread)] (CDISABLE): Likewise.
32462 [IS_IN (libc)] (CENABLE): Likewise.
32463 [IS_IN (libc)] (CENABLE): Likewise.
32464 [IS_IN (librt)] (CDISABLE): Likewise.
32465 [IS_IN (librt)] (CDISABLE): Likewise.
32466 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32467 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32468 definition.
32469 (PSEUDO_END): Likewise.
32470 [IS_IN (libpthread)] (CENABLE): Likewise.
32471 [IS_IN (libpthread)] (CDISABLE): Likewise.
32472 [IS_IN (libc)] (CENABLE): Likewise.
32473 [IS_IN (libc)] (CENABLE): Likewise.
32474 [IS_IN (librt)] (CDISABLE): Likewise.
32475 [IS_IN (librt)] (CDISABLE): Likewise.
32476 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32477 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32478 definition.
32479 (PSEUDO_END): Likewise.
32480 [IS_IN (libpthread)] (CENABLE): Likewise.
32481 [IS_IN (libpthread)] (CDISABLE): Likewise.
32482 [IS_IN (libc)] (CENABLE): Likewise.
32483 [IS_IN (libc)] (CENABLE): Likewise.
32484 [IS_IN (librt)] (CDISABLE): Likewise.
32485 [IS_IN (librt)] (CDISABLE): Likewise.
32486 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32487 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32488 Remove definition.
32489 (PSEUDO_END): Likewise.
32490 [IS_IN (libpthread)] (CENABLE): Likewise.
32491 [IS_IN (libpthread)] (CDISABLE): Likewise.
32492 [IS_IN (libc)] (CENABLE): Likewise.
32493 [IS_IN (libc)] (CENABLE): Likewise.
32494 [IS_IN (librt)] (CDISABLE): Likewise.
32495 [IS_IN (librt)] (CDISABLE): Likewise.
32496 (SINGLE_THREAD_P): Likewise.
32497 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32498 definition.
32499 (PSEUDO_END): Likewise.
32500 [IS_IN (libpthread)] (CENABLE): Likewise.
32501 [IS_IN (libpthread)] (CDISABLE): Likewise.
32502 [IS_IN (libc)] (CENABLE): Likewise.
32503 [IS_IN (libc)] (CENABLE): Likewise.
32504 [IS_IN (librt)] (CDISABLE): Likewise.
32505 [IS_IN (librt)] (CDISABLE): Likewise.
32506 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32507 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32508 definition.
32509 (PSEUDO_END): Likewise.
32510 [IS_IN (libpthread)] (CENABLE): Likewise.
32511 [IS_IN (libpthread)] (CDISABLE): Likewise.
32512 [IS_IN (libc)] (CENABLE): Likewise.
32513 [IS_IN (libc)] (CENABLE): Likewise.
32514 [IS_IN (librt)] (CDISABLE): Likewise.
32515 [IS_IN (librt)] (CDISABLE): Likewise.
32516 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32517 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32518 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32519 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32520 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32521 definition.
32522 (PSEUDO_END): Likewise.
32523 [IS_IN (libpthread)] (CENABLE): Likewise.
32524 [IS_IN (libpthread)] (CDISABLE): Likewise.
32525 [IS_IN (libc)] (CENABLE): Likewise.
32526 [IS_IN (libc)] (CENABLE): Likewise.
32527 [IS_IN (librt)] (CDISABLE): Likewise.
32528 [IS_IN (librt)] (CDISABLE): Likewise.
32529 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32530 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32531 definition.
32532 (PSEUDO_END): Likewise.
32533 [IS_IN (libpthread)] (CENABLE): Likewise.
32534 [IS_IN (libpthread)] (CDISABLE): Likewise.
32535 [IS_IN (libc)] (CENABLE): Likewise.
32536 [IS_IN (libc)] (CENABLE): Likewise.
32537 [IS_IN (librt)] (CDISABLE): Likewise.
32538 [IS_IN (librt)] (CDISABLE): Likewise.
32539 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32540 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32541 definition.
32542 (PSEUDO_END): Likewise.
32543 [IS_IN (libpthread)] (CENABLE): Likewise.
32544 [IS_IN (libpthread)] (CDISABLE): Likewise.
32545 [IS_IN (libc)] (CENABLE): Likewise.
32546 [IS_IN (libc)] (CENABLE): Likewise.
32547 [IS_IN (librt)] (CDISABLE): Likewise.
32548 [IS_IN (librt)] (CDISABLE): Likewise.
32549 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32550 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32551 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32552 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32553 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32554 definition.
32555 (PSEUDO_END): Likewise.
32556 [IS_IN (libpthread)] (CENABLE): Likewise.
32557 [IS_IN (libpthread)] (CDISABLE): Likewise.
32558 [IS_IN (libc)] (CENABLE): Likewise.
32559 [IS_IN (libc)] (CENABLE): Likewise.
32560 [IS_IN (librt)] (CDISABLE): Likewise.
32561 [IS_IN (librt)] (CDISABLE): Likewise.
32562 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32563 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32564 definition.
32565 (PSEUDO_END): Likewise.
32566 [IS_IN (libpthread)] (CENABLE): Likewise.
32567 [IS_IN (libpthread)] (CDISABLE): Likewise.
32568 [IS_IN (libc)] (CENABLE): Likewise.
32569 [IS_IN (libc)] (CENABLE): Likewise.
32570 [IS_IN (librt)] (CDISABLE): Likewise.
32571 [IS_IN (librt)] (CDISABLE): Likewise.
32572 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32573
32574 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32575
32576 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32577
32578 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32579
32580 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32581
32582 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32583
32584 [BZ #21982]
32585 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32586 middle and outer with size_t instead of int. Repleace %d and
32587 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32588 "MAX (outer, nchars - 64)" to support unsigned outer and
32589 nchars. Also exit loop when outer == 0.
32590
32591 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32592
32593 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32594 * include/signal.h (__sigsuspend_nocancel): Likewise.
32595 * include/time.h (__nanosleep_nocancel): Likewise.
32596 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32597 * login/utmp_file.c: Include non cancellable syscall header.
32598 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32599 prototype.
32600
32601 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32602
32603 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32604 .byte sequences with AVX512F instructions.
32605 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32606 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32607 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32609 Likewise.
32610 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32611 Likewise.
32612
32613 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32614 Steve Ellcey <sellcey@cavium.com>
32615
32616 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32617 Use PTR_REG macro in cmp instruction.
32618
32619 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32620
32621 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32622 Change the return type of the ifunc resolver to match the return
32623 type of the target function.
32624
32625 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32626
32627 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32628 (preadv64): Likewise.
32629 (pwrite64(: Likewise.
32630 (pwritev64): Likewise.
32631
32632 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32633 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32634 (LOAD_ARGS_0): Likewise.
32635 (LOAD_ARGS_1): Likewise.
32636 (LOAD_ARGS_2): Likewise.
32637 (LOAD_ARGS_3): Likewise.
32638 (LOAD_ARGS_4): Likewise.
32639 (LOAD_ARGS_5): Likewise.
32640 (LOAD_ARGS_6): Likewise.
32641 (LOAD_REGS_0): Likewise.
32642 (LOAD_REGS_1): Likewise.
32643 (LOAD_REGS_2): Likewise.
32644 (LOAD_REGS_3): Likewise.
32645 (LOAD_REGS_4): Likewise.
32646 (LOAD_REGS_5): Likewise.
32647 (LOAD_REGS_6): Likewise.
32648 (ASM_ARGS_0): Likewise.
32649 (ASM_ARGS_1): Likewise.
32650 (ASM_ARGS_2): Likewise.
32651 (ASM_ARGS_3): Likewise.
32652 (ASM_ARGS_4): Likewise.
32653 (ASM_ARGS_5): Likewise.
32654 (ASM_ARGS_6): Likewise.
32655 (LOAD_ARGS_TYPES_1): Likewise.
32656 (LOAD_ARGS_TYPES_2): Likewise.
32657 (LOAD_ARGS_TYPES_3): Likewise.
32658 (LOAD_ARGS_TYPES_4): Likewise.
32659 (LOAD_ARGS_TYPES_5): Likewise.
32660 (LOAD_ARGS_TYPES_6): Likewise.
32661 (LOAD_REGS_TYPES_1): Likewise.
32662 (LOAD_REGS_TYPES_2): Likewise.
32663 (LOAD_REGS_TYPES_3): Likewise.
32664 (LOAD_REGS_TYPES_4): Likewise.
32665 (LOAD_REGS_TYPES_5): Likewise.
32666 (LOAD_REGS_TYPES_6): Likewise.
32667 (TYPEFY): New define.
32668 (ARGIFY): Likewise.
32669 (internal_syscall0): Likewise.
32670 (internal_syscall1): Likewise.
32671 (internal_syscall2): Likewise.
32672 (internal_syscall3): Likewise.
32673 (internal_syscall4): Likewise.
32674 (internal_syscall5): Likewise.
32675 (internal_syscall6): Likewise.
32676 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32677 (INTERNAL_SYSCALL_NCS): Remove define.
32678 (internal_syscall1): Add define.
32679
32680 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32681
32682 * math/w_remainder_compat.c: Remove duplicate inclusion of
32683 math-svid-compat.h.
32684 * math/w_remainderf_compat.c: Likewise.
32685 * math/w_remainderl_compat.c: Likewise.
32686
32687 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32688
32689 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32690
32691 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32692
32693 [BZ #21684]
32694 * math/tgmath.h (__floating_type): Simplify definitions.
32695 (__real_integer_type): New macro.
32696 (__complex_integer_type): Likewise.
32697 (__expr_is_real): Likewise.
32698 (__tgmath_real_type_sub): Update comment to describe handling of
32699 complex types.
32700 (__tgmath_complex_type_sub): New macro.
32701 (__tgmath_complex_type): Likewise.
32702 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32703 (__TGMATH_CF128): Use __expr_is_real.
32704 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32705 __expr_is_real.
32706 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32707 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32708 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32709 integer types.
32710
32711 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32712
32713 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32714 macro.
32715 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32716 alias.
32717 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32718 Likewise.
32719
32720 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32721 nanosleep_not_cancel with __nanosleep_nocancel.
32722 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32723 (__nanosleep_nocancel): New macro.
32724 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32725 function.
32726 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32727 macro.
32728 (__nanosleep_nocancel): New prototype.
32729
32730 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32731 pause_not_cancel with __pause_nocancel.
32732 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32733 (__pause_nocancel): New macro.
32734 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32735 macro.
32736 (__pause_nocancel): New prototype.
32737 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32738
32739 2017-08-22 Martin Sebor <msebor@redhat.com>
32740
32741 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32742 to return a pointer to the same type as the target function.
32743
32744 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32745
32746 [BZ #18822]
32747 [BZ #21986]
32748 * include/printf.h (__printf_fphex): Add attribute_hidden.
32749 (__guess_grouping): New prototype.
32750 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32751 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32752 libc_hidden_proto and libc_hidden_def.
32753 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32754 (__vstrfmon_l): Remove the third argument passed to
32755 __guess_grouping.
32756
32757 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32758
32759 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32760 definition for issignaling that does not rely on __MATH_TG,
32761 since __MATH_TG uses __builtin_types_compatible_p, which is only
32762 available in C mode.
32763 (CFLAGS-test-math-issignaling.cc): New variable.
32764 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32765 * math/test-math-issignaling.cc: New test for C++ implementation
32766 of type-generic issignaling.
32767 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32768 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32769 options of test-math-issignaling on powerpc64le.
32770
32771 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32772
32773 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32774 building libc.a.
32775 (hidden_proto): Likewise.
32776 (hidden_tls_proto): Likewise.
32777 (__hidden_proto): Likewise.
32778
32779 2017-08-22 Florian Weimer <fweimer@redhat.com>
32780
32781 math: Statically link tests of internal functionality.
32782 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32783 atest-exp2.
32784 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32785 (gmp-objs): Remove assignment.
32786 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32787
32788 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32789
32790 [BZ #21987]
32791 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32792 and copy to ...
32793 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32794 ... here.
32795 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32796 ... and here.
32797
32798 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32799 variable definitions above inclusion of ../Rules.
32800
32801 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32802
32803 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32804 case calling __builtin_unreachable.
32805
32806 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32807
32808 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32809 __waitpid_nocancel.
32810 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32811 (__waitpid_nocancel): New macro.
32812 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32813 macro.
32814 (__waitpid_nocancel): Replace macro with a function.
32815 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32816 function.
32817
32818 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32819 __fcntl_nocancel.
32820 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32821 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32822
32823 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32824 __writev_nocancel_nostatus.
32825 (write_call_graph): Likewise.
32826 (write_bb_counts): Likewise.
32827 * resolv/herror.c (herror): Likewise.
32828 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32829 macro.
32830 (__writev_nocancel_nostatus): New macro.
32831 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32832 Remove macro.
32833 (__writev_nocancel_nostatus): New function.
32834
32835 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32836
32837 Revert:
32838 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32839
32840 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32841 building libc.a.
32842 (hidden_proto): Likewise.
32843 (hidden_tls_proto): Likewise.
32844 (__hidden_proto): Likewise.
32845
32846 [BZ #21973]
32847 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32848 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32850 Likewise.
32851 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32852 Likewise.
32853 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32854 Likewise.
32855 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32856 Likewise.
32857 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32858 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32859 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32860 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32861 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32862 GLIBC_2.0 sqrtl symbol.
32863
32864 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32865 [__USE_MISC] (_LIB_VERSION): Likewise.
32866 [__USE_MISC] (struct exception): Likewise.
32867 [__USE_MISC] (matherr): Likewise.
32868 [__USE_MISC] (DOMAIN): Likewise.
32869 [__USE_MISC] (SING): Likewise.
32870 [__USE_MISC] (OVERFLOW): Likewise.
32871 [__USE_MISC] (UNDERFLOW): Likewise.
32872 [__USE_MISC] (TLOSS): Likewise.
32873 [__USE_MISC] (PLOSS): Likewise.
32874 [__USE_MISC] (HUGE): Likewise.
32875 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32876 * math/math-svid-compat.h: New file.
32877 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32878 and matherrl.
32879 * include/math.h [!_ISOMAC] (__matherr): Remove.
32880 * manual/arith.texi (FP Exceptions): Do not document matherr.
32881 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32882 (tests-internal): New variable.
32883 (install-lib): Do not add libieee.a.
32884 (non-lib.a): Likewise.
32885 (extra-objs): Do not add libieee.a and ieee-math.o.
32886 (CPPFLAGS-s_lib_version.c): Remove variable.
32887 ($(objpfx)libieee.a): Remove rule.
32888 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32889 * math/ieee-math.c: Remove.
32890 * math/libm-test-support.c (matherr): Remove.
32891 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32892 and license notices. Include <math-svid-compat.h> and
32893 <shlib-compat.h>.
32894 (matherr): Undefine as macro. Use compat_symbol_reference.
32895 (_LIB_VERSION): Likewise.
32896 * math/test-matherr-2.c: New file.
32897 * math/test-matherr-3.c: Likewise.
32898 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32899 declaration.
32900 (__kernel_standard_f): Likewise.
32901 (__kernel_standard_l): Likewise.
32902 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32903 <math_private.h>. Include <math-svid-compat.h>.
32904 (_LIB_VERSION): Undefine as macro.
32905 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32906 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32907 [LIBM_SVID_COMPAT], use compat_symbol.
32908 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32909 <math_private.h>. Include <math-svid-compat.h>.
32910 (matherr): Undefine as macro.
32911 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32912 compat_symbol.
32913 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32914 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32915 compat_symbol_reference.
32916 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32917 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32918 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32919 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32920 (MATHERR_D): Remove declaration.
32921 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32922 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32923 [LIBM_BUILD] (pmatherrf): Likewise.
32924 [LIBM_BUILD] (pmatherr): Likewise.
32925 [LIBM_BUILD] (pmatherrl): Likewise.
32926 (DOMAIN): Likewise.
32927 (SING): Likewise.
32928 (OVERFLOW): Likewise.
32929 (UNDERFLOW): Likewise.
32930 (TLOSS): Likewise.
32931 (PLOSS): Likewise.
32932 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32933 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32934 compat_symbol.
32935 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32936 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32937 compat_symbol.
32938 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32939 * math/w_acos_compat.c: Likewise.
32940 * math/w_acosf_compat.c: Likewise.
32941 * math/w_acosh_compat.c: Likewise.
32942 * math/w_acoshf_compat.c: Likewise.
32943 * math/w_acoshl_compat.c: Likewise.
32944 * math/w_acosl_compat.c: Likewise.
32945 * math/w_asin_compat.c: Likewise.
32946 * math/w_asinf_compat.c: Likewise.
32947 * math/w_asinl_compat.c: Likewise.
32948 * math/w_atan2_compat.c: Likewise.
32949 * math/w_atan2f_compat.c: Likewise.
32950 * math/w_atan2l_compat.c: Likewise.
32951 * math/w_atanh_compat.c: Likewise.
32952 * math/w_atanhf_compat.c: Likewise.
32953 * math/w_atanhl_compat.c: Likewise.
32954 * math/w_cosh_compat.c: Likewise.
32955 * math/w_coshf_compat.c: Likewise.
32956 * math/w_coshl_compat.c: Likewise.
32957 * math/w_exp10_compat.c: Likewise.
32958 * math/w_exp10f_compat.c: Likewise.
32959 * math/w_exp10l_compat.c: Likewise.
32960 * math/w_exp2_compat.c: Likewise.
32961 * math/w_exp2f_compat.c: Likewise.
32962 * math/w_exp2l_compat.c: Likewise.
32963 * math/w_fmod_compat.c: Likewise.
32964 * math/w_fmodf_compat.c: Likewise.
32965 * math/w_fmodl_compat.c: Likewise.
32966 * math/w_hypot_compat.c: Likewise.
32967 * math/w_hypotf_compat.c: Likewise.
32968 * math/w_hypotl_compat.c: Likewise.
32969 * math/w_j0_compat.c: Likewise.
32970 * math/w_j0f_compat.c: Likewise.
32971 * math/w_j0l_compat.c: Likewise.
32972 * math/w_j1_compat.c: Likewise.
32973 * math/w_j1f_compat.c: Likewise.
32974 * math/w_j1l_compat.c: Likewise.
32975 * math/w_jn_compat.c: Likewise.
32976 * math/w_jnf_compat.c: Likewise.
32977 * math/w_jnl_compat.c: Likewise.
32978 * math/w_lgamma_main.c: Likewise.
32979 * math/w_lgamma_r_compat.c: Likewise.
32980 * math/w_lgammaf_main.c: Likewise.
32981 * math/w_lgammaf_r_compat.c: Likewise.
32982 * math/w_lgammal_main.c: Likewise.
32983 * math/w_lgammal_r_compat.c: Likewise.
32984 * math/w_log10_compat.c: Likewise.
32985 * math/w_log10f_compat.c: Likewise.
32986 * math/w_log10l_compat.c: Likewise.
32987 * math/w_log2_compat.c: Likewise.
32988 * math/w_log2f_compat.c: Likewise.
32989 * math/w_log2l_compat.c: Likewise.
32990 * math/w_log_compat.c: Likewise.
32991 * math/w_logf_compat.c: Likewise.
32992 * math/w_logl_compat.c: Likewise.
32993 * math/w_pow_compat.c: Likewise.
32994 * math/w_powf_compat.c: Likewise.
32995 * math/w_powl_compat.c: Likewise.
32996 * math/w_remainder_compat.c: Likewise.
32997 * math/w_remainderf_compat.c: Likewise.
32998 * math/w_remainderl_compat.c: Likewise.
32999 * math/w_scalb_compat.c: Likewise.
33000 * math/w_scalbf_compat.c: Likewise.
33001 * math/w_scalbl_compat.c: Likewise.
33002 * math/w_sinh_compat.c: Likewise.
33003 * math/w_sinhf_compat.c: Likewise.
33004 * math/w_sinhl_compat.c: Likewise.
33005 * math/w_sqrt_compat.c: Likewise.
33006 * math/w_sqrtf_compat.c: Likewise.
33007 * math/w_sqrtl_compat.c: Likewise.
33008 * math/w_tgamma_compat.c: Likewise.
33009 * math/w_tgammaf_compat.c: Likewise.
33010 * math/w_tgammal_compat.c: Likewise.
33011 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
33012 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
33013 * sysdeps/ieee754/k_standard.c: Likewise.
33014 * sysdeps/ieee754/k_standardf.c: Likewise.
33015 * sysdeps/ieee754/k_standardl.c: Likewise.
33016 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
33017 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
33018 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
33019 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
33020 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
33021 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
33022 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
33023 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
33024 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
33025 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
33026 Likewise.
33027 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
33028 Likewise.
33029 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
33030 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
33031 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
33032 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
33033
33034 2017-08-21 Florian Weimer <fweimer@redhat.com>
33035
33036 [BZ #21864]
33037 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
33038 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
33039 Move before inclusion of ../Rules.
33040
33041 2017-08-21 Florian Weimer <fweimer@redhat.com>
33042
33043 [BZ #21972]
33044 * assert/assert.h (assert): Use static_cast (bool) for C++.
33045 Use the ternary operator in the warning branch for GNU C.
33046 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
33047 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
33048 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
33049 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
33050 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
33051
33052 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33053
33054 [BZ #18822]
33055 * sysdeps/unix/sysv/linux/x86_64/init-first.c
33056 (__syscall_clock_gettime): Add attribute_hidden.
33057 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
33058 (__start_context): Likewise.
33059
33060 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33061
33062 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33063 building libc.a.
33064 (hidden_proto): Likewise.
33065 (hidden_tls_proto): Likewise.
33066 (__hidden_proto): Likewise.
33067
33068 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33069
33070 * include/libc-symbols.h (attribute_hidden): Enable hidden
33071 visibility in libc.a compiled with PIE.
33072
33073 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33074
33075 [BZ #18822]
33076 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33077 Add attribute_hidden.
33078
33079 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33080
33081 [BZ #21864]
33082 * Makerules (all-nonlib): Add $(others-extras).
33083 * catgets/Makefile (others-extras): New.
33084 * elf/Makefile (others-extras): Likewise.
33085 * nss/Makefile (others-extras): Likewise.
33086
33087 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33088
33089 [BZ #18822]
33090 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33091 * elf/dl-open.c: Include <libc-internal.h>.
33092 (__libc_multiple_libcs): Removed.
33093 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33094 <hp-timing.h>.
33095 * include/libc-internal.h (__libc_multiple_libcs): New.
33096 * misc/sbrk.c: Include <libc-internal.h>.
33097 (__libc_multiple_libcs): Removed.
33098
33099 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33100
33101 [BZ #18822]
33102 * grp/initgroups.c (__nss_group_database): Removed.
33103 (__nss_initgroups_database): Likewise.
33104 * nscd/gai.c (__nss_hosts_database): Likewise.
33105 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33106 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33107 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33108 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33109 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33110 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33111 attribute_hidden.
33112 * nss/nsswitch.c (__nss_database_custom): Define only if
33113 USE_NSCD is defined.
33114 (__nss_configure_lookup): Use __nss_database_custom only if
33115 USE_NSCD is defined.
33116 * nss/nsswitch.h (__nss_database_custom): Declare only if
33117 USE_NSCD is defined. Add attribute_hidden.
33118 (__nss_setent): Add attribute_hidden.
33119 (__nss_endent): Likewise.
33120 (__nss_getent_r): Likewise.
33121 (__nss_getent): Likewise.
33122 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33123
33124 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33125
33126 [BZ #18822]
33127 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33128 libc_hidden_proto and libc_hidden_def.
33129
33130 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33131
33132 [BZ #18822]
33133 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33134 Add libc_hidden_proto.
33135 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33136 Add libc_hidden_def.
33137
33138 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33139
33140 [BZ #21974]
33141 * gmon/Makefile (routines): Remove bb_init_func and
33142 bb_exit_func.
33143 (elide-routines.os): Removed.
33144 * gmon/bb_exit_func.c: Likewise.
33145 * gmon/bb_init_func.c: Likewise.
33146 * include/sys/gmon.h (__bb): Likewise.
33147 (__bb_init_func): Likewise.
33148 (__bb_exit_func): Likewise.
33149 * sysdeps/alpha/bb_init_func.S: Likewise.
33150
33151 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33152
33153 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33154 * include/setjmp.h (____longjmp_chk): Here. Add
33155 attribute_hidden.
33156
33157 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33158
33159 [BZ #18822]
33160 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33161 attribute_hidden.
33162 (__strspn_sse2): Likewise.
33163
33164 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33165
33166 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33167 (close_not_cancel_no_status): Likewise.
33168 (__close_nocancel): New macro.
33169 (__close_nocancel_nostatus): Likewise.
33170 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33171 macro.
33172 (close_not_cancel): Likewise.
33173 (close_not_cancel_no_status): Likewise.
33174 (__close_nocancel): New prototype.
33175 (__close_nocancel_nostatus): New function.
33176 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33177 * catgets/open_catalog.c (__open_catalog): Replace
33178 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33179 * gmon/gmon.c (write_gmon): Likewise.
33180 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33181 * intl/loadmsgcat.c (close): Likewise.
33182 * io/ftw.c (open_dir_stream): Likewise.
33183 (ftw_startup): Likewise.
33184 * libio/fileops.c (_IO_file_open): Likewise.
33185 (_IO_file_close_mmap): Likewise.
33186 (_IO_file_close): Likewise.
33187 * libio/iopopen.c (_IO_dup2): Likewise.
33188 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33189 * locale/loadlocale.c (_nl_load_locale): Likewise.
33190 * login/utmp_file.c (pututline_file): Likewise.
33191 (endutent_file): Likewise.
33192 * misc/daemon.c (daemon): Likewise.
33193 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33194 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33195 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33196 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33197 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33198 * nscd/nscd_helper.c (open_socket): Likewise.
33199 (__nscd_open_socket): Likewise.
33200 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33201 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33202 (__nscd_innetgr): Likewise.
33203 * nss/nss_db/db-open.c (internal_setent): Likewise.
33204 * resolv/res-close.c (__res_iclose): Likewise.
33205 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33206 * sysdeps/posix/closedir.c (__closedir): Likewise.
33207 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33208 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33209 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33210 (opendir_tail): Likewise.
33211 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33212 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33213 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33214 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33215 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33216 (gethostid): Likewise.
33217 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33218 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33219 Likewise.
33220 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33221 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33222 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33223 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33224 Likewise.
33225 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33226 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33227 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33228 Likewise.
33229 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33230 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33231 Likewise.
33232 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33233 Likewise.
33234 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33235 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33236 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33237 __close_nocancel.
33238
33239 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33240 (openat_not_cancel_3): Likewise.
33241 (openat64_not_cancel_3): Likewise).
33242 (openat_not_cancel_3): Likewise).
33243 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33244 macro.
33245 (openat_not_cancel_3): Likewise.
33246 (openat64_not_cancel): Likewise.
33247 (openat64_not_cancel_3): Likewise.
33248 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33249 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33250 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33251 __open{64}_nocancel.
33252 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33253 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33254 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33255
33256 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33257
33258 [BZ #18822]
33259 * include/argz.h (__argz_create_sep): New function prototype.
33260 (__argz_append): Likewise.
33261 (__argz_add): Likewise.
33262 (__argz_add_sep): Likewise.
33263 (__argz_delete): Likewise.
33264 (__argz_insert): Likewise.
33265 (__argz_replace): Likewise.
33266 * string/argz.h (__argz_create_sep): Removed.
33267 (__argz_append): Likewise.
33268 (__argz_add): Likewise.
33269 (__argz_add_sep): Likewise.
33270 (__argz_delete): Likewise.
33271 (__argz_insert): Likewise.
33272 (__argz_replace): Likewise.
33273
33274 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33275
33276 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33277 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33278 (GNU_PROPERTY_STACK_SIZE): Likewie.
33279 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33280 (GNU_PROPERTY_LOPROC): Likewise.
33281 (GNU_PROPERTY_HIPROC): Likewise.
33282 (GNU_PROPERTY_LOUSER): Likewise.
33283 (GNU_PROPERTY_HIUSER): Likewise.
33284 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33285 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33286 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33287 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33288 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33289 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33290 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33291 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33292 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33293 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33294 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33295 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33296 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33297 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33298 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33299 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33300 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33301 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33302 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33303 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33304 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33305 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33306 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33307
33308 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33309
33310 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33311 in C++ mode.
33312
33313 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33314
33315 [BZ #21930]
33316 * math/math.h (isinf): Check if in C or C++ mode before using
33317 __builtin_types_compatible_p, since this is a C mode feature.
33318
33319 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33320
33321 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33322 (__write_nocancel): New macro.
33323 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33324 Rewrite as a function prototype.
33325 (write_not_cancel): Remove macro.
33326 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33327 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33328 (write_gmon): Likewise.
33329 * libio/fileops.c (_IO_new_file_write): Likewise.
33330 * login/utmp_file.c (pututline_file): Likewise.
33331 (updwtmp_file): Likewise.
33332 * stdio-common/psiginfo.c (psiginfo): Likewise.
33333 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33334 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33335 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33336 Likewise.
33337 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33338 Likewise.
33339
33340 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33341 (__read_nocancel): New macro.
33342 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33343 __read_nocancel.
33344 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33345 macro.
33346 (__read_nocancel): New prototype.
33347 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33348 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33349 with __read_nocancel.
33350 * intl/loadmsgcat.c (read): Likewise.
33351 * libio/fileops.c (_IO_file_read): Likewise.
33352 * locale/loadlocale.c (_nl_load_locale): Likewise.
33353 * login/utmp_file.c (getutent_r_file): Likewise.
33354 (internal_getut_r): Likewise.
33355 (getutline_r_file): Likewise.
33356 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33357 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33358 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33359 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33360 Likewise.
33361 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33362 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33363 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33364 Likewise.
33365 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33366 Likewise.
33367 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33368 Likewise.
33369 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33370 Likewise.
33371 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33372
33373 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33374
33375 [BZ #21966]
33376 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33377 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33378 usable.
33379
33380 2017-08-17 DJ Delorie <dj@redhat.com>
33381
33382 * bug17079.c: Update to new test harness.
33383 * test-digits-dots.c: Likewise.
33384 * test-netdb.c: Likewise.
33385 * tst-field.c: Likewise.
33386 * tst-nss-getpwent.c: Likewise.
33387 * tst-nss-static.c: Likewise.
33388 * tst-nss-test1.c: Likewise.
33389 * tst-nss-test2.c: Likewise.
33390 * tst-nss-test3.c: Likewise.
33391 * tst-nss-test4.c: Likewise.
33392 * tst-nss-test5.c: Likewise.
33393
33394 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33395
33396 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33397 (open_not_cancel_2): Likewise.
33398 (open_nocancel): New macro.
33399 (open64_nocancel): Likewise.
33400 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33401 (open_not_cancel_2): Likewise.
33402 (__open_nocancel): New prototype.
33403 (__open64_nocancel): Likewise.
33404 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33405 __open_nocancel.
33406 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33407 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33408 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33409 with __open_nocancel.
33410 * csu/check_fds.c (check_one_fd): Likewise.
33411 * gmon/gmon.c (write_gmon): Likewise.
33412 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33413 * intl/loadmsgcat.c (open): Likewise.
33414 * libio/fileops.c (_IO_file_open): Likewise.
33415 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33416 * locale/loadlocale.c (_nl_load_locale): Likewise.
33417 * login/utmp_file.c (setutent_file): Likewise.
33418 * misc/daemon.c (daemon): Likewise.
33419 * nss/nss_db/db-open.c (internal_setent): Likewise.
33420 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33421 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33422 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33423 (__opendir): Likewise.
33424 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33425 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33426 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33427 (gethostid): Likewise.
33428 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33429 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33430 Likewise.
33431 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33432 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33433 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33434 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33435 Likewise.
33436 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33437 Likewise.
33438 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33439 Likewise.
33440 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33441 Likewise.
33442 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33443 Likewise.
33444 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33445 Likewise.
33446 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33447 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33448
33449 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33450
33451 * benchtests/bench-skeleton.c (main): Add support for
33452 latency benchmarking.
33453 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33454
33455 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33456
33457 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33458 the startup object.
33459
33460 2017-08-17 Florian Weimer <fweimer@redhat.com>
33461
33462 * include/sys/socket.h (__opensock): Remove internal_function.
33463 * socket/opensock.c (__opensock): Likewise.
33464 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33465
33466 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33467
33468 [BZ #21944]
33469 * signal/bits/types/__sigval_t.h: New file.
33470 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33471 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33472 and define sigval_t using __sigval_t.
33473 * include/bits/types/__sigval_t.h: New file.
33474 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33475 instead of <bits/types/__sigval_t.h>.
33476 (struct sigevent): Use __sigval_t instead of sigval_t.
33477 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33478 instead of <bits/types/__sigval_t.h>.
33479 (siginfo_t): Use __sigval_t instead of sigval_t.
33480 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33481 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33482 (struct sigevent): Use __sigval_t instead of sigval_t.
33483 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33484 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33485 (siginfo_t): Use __sigval_t instead of sigval_t.
33486 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33487
33488 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33489
33490 * NEWS: Remove "[Add new features here]" for 2.27.
33491
33492 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33493
33494 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33495 libc.so.
33496
33497 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33498
33499 * NEWS: Mention x86-64 FMA optimization.
33500
33501 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33502
33503 [BZ #21912]
33504 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33505 Add e_expf-fma.
33506 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33507 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33508 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33509
33510 2017-08-16 Andreas Schwab <schwab@suse.de>
33511
33512 [BZ #16750]
33513 CVE-2009-5064
33514 * elf/ldd.bash.in: Never run file directly.
33515
33516 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33517
33518 [BZ #21955]
33519 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33520 (L(SP_INF_0)): Likewise.
33521
33522 2017-08-15 Florian Weimer <fweimer@redhat.com>
33523
33524 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33525 run-built-tests.
33526
33527 2017-08-15 Florian Weimer <fweimer@redhat.com>
33528
33529 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33530 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33531 BROKEN_THREAD_SIGNALS code.
33532 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33533 request_list): Remove caller_pid member used for
33534 BROKEN_THREAD_SIGNALS.
33535 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33536 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33537 Remove BROKEN_THREAD_SIGNALS support.
33538 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33539 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33540
33541 2017-08-15 Florian Weimer <fweimer@redhat.com>
33542
33543 * gmon/Makefile (tests): Add tst-gmon.
33544 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33545 Set.
33546 (tests-special): Add tst-gmon-prof.out.
33547 (tst-gmon.out): Depend on clean-tst-gmon-data.
33548 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33549 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33550 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33551 startup object.
33552 * aclocal.m4 (GPROF): Set and substitute.
33553 * config.amke.in (GPROF): Set.
33554 * configure: Regenerate.
33555
33556 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33557
33558 * elf/elf.h A (NT_PPC_TAR): New macro.
33559 (NT_PPC_PPR): Likewise.
33560 (NT_PPC_DSCR): Likewise.
33561 (NT_PPC_EBB): Likewise.
33562 (NT_PPC_PMU): Likewise.
33563 (NT_PPC_TM_CGPR): Likewise.
33564 (NT_PPC_TM_CFPR): Likewise.
33565 (NT_PPC_TM_CVMX): Likewise.
33566 (NT_PPC_TM_CVSX): Likewise.
33567 (NT_PPC_TM_SPR): Likewise.
33568 (NT_PPC_TM_CTAR): Likewise.
33569 (NT_PPC_TM_CPPR): Likewise.
33570 (NT_PPC_TM_CDSCR): Likewise.
33571
33572 2017-08-15 Florian Weimer <fweimer@redhat.com>
33573
33574 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33575 regparm (2) instead of internal_function.
33576 (_MCOUNT_DECL): Adjust.
33577
33578 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33579
33580 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33581 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33582
33583 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33584
33585 * conform/data/sys/wait.h-data (si_value): Do not expect for
33586 XPG42.
33587
33588 2017-08-14 Florian Weimer <fweimer@redhat.com>
33589
33590 [BZ #21962]
33591 NSS: Create stubs for accidentally exported lookup functions.
33592 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33593 Remove declaration.
33594 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33595 (ether_hostton): Call __nss_ethers_lookup2 instead.
33596 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33597 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33598 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33599 (setup): Call __nss_netgroup_lookup2 instead.
33600 * nss/Makefile (routines): Add compat-lookup.
33601 * nss/Versions (GLIBC_2.27): Add symbol version.
33602 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33603 (DB_COMPAT_FCT): Remove.
33604 * nss/compat-lookup.c: New file.
33605 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33606 from databases.def.
33607 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33608 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33609 (netname2user): Call __nss_publickey_lookup2 instead.
33610 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33611 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33612 instead.
33613
33614 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33615 Sergei Trofimovich <slyfox@inbox.ru>
33616
33617 [BZ #21908]
33618 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33619 Rename to MMAP2_PAGE_UNIT.
33620 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33621 __OFF_T_MATCHES_OFF64_T is not defined.
33622 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33623 uint64_t.
33624 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33625 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33626
33627 2017-08-14 Florian Weimer <fweimer@redhat.com>
33628
33629 i386: Do not set internal_function.
33630 * config.h.in (USE_REGPARMS, internal_function): Remove.
33631 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33632 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33633
33634 2017-08-14 Florian Weimer <fweimer@redhat.com>
33635
33636 * elf/dl-init.c (_dl_init): Remove internal_function.
33637 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33638 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33639
33640 2017-08-14 Florian Weimer <fweimer@redhat.com>
33641
33642 * elf/rtld.c (_dl_start): Remove internal_function.
33643 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33644 _dl_start.
33645
33646 2017-08-14 Florian Weimer <fweimer@redhat.com>
33647
33648 * elf/dl-fini.c (_dl_fini): Remove internal_function
33649 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33650
33651 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33652
33653 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33654 (bit_cpu_SHSTK): Likewise.
33655 (index_cpu_IBT): Likewise.
33656 (index_cpu_SHSTK): Likewise.
33657 (reg_IBT): Likewise.
33658 (reg_SHSTK): Likewise.
33659 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33660 Handle index_cpu_IBT and index_cpu_SHSTK.
33661
33662 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33663
33664 [BZ #19982]
33665 * po/fr.po: Fix spelling mistake.
33666
33667 2017-08-13 Florian Weimer <fweimer@redhat.com>
33668
33669 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33670 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33671 (_dl_catch_error, _dl_receive_error): Likewise.
33672 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33673 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33674 (_dl_deallocate_tls): Likewise.
33675 * include/dlfcn.h (_dl_addr): Likewise.
33676 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33677 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33678 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33679 Likewise.
33680
33681 2017-08-13 Florian Weimer <fweimer@redhat.com>
33682
33683 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33684 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33685 internal_function.
33686 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33687
33688 2017-08-13 Florian Weimer <fweimer@redhat.com>
33689
33690 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33691 internal_function.
33692 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33693 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33694 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33695 internal_function from _dl_make_stack_executable_hook member.
33696 (_dl_make_stack_executable): Remove internal_function.
33697 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33698 Likewise.
33699 * sysdeps/unix/sysv/linux/dl-execstack.c
33700 (_dl_make_stack_executable): Likewise.
33701
33702 2017-08-13 Florian Weimer <fweimer@redhat.com>
33703
33704 * sysdeps/unix/sysv/linux/netlinkaccess.h
33705 (__netlink_assert_response): Remove internal_function.
33706 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33707 (__netlink_assert_response): Likewise.
33708
33709 2017-08-13 Florian Weimer <fweimer@redhat.com>
33710
33711 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33712 internal_function.
33713 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33714
33715 2017-08-13 Florian Weimer <fweimer@redhat.com>
33716
33717 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33718 internal_function.
33719 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33720 * inet/netgroup.h (__internal_setnetgrent)
33721 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33722 * inet/getnetgrent_r.c (__internal_setnetgrent)
33723 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33724 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33725 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33726 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33727 * nss/nsswitch.h (db_lookup_function): Likewise.
33728
33729 2017-08-13 Florian Weimer <fweimer@redhat.com>
33730
33731 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33732 Remove internal_function.
33733 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33734 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33735 message argument on the stack.
33736 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33737 Likeweise.
33738
33739 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33740
33741 Adapt test case data to the changes in the thousands
33742 separators.
33743
33744 [BZ #20756]
33745 * localedata/tst-langinfo.sh: Adapt test case data.
33746 * stdlib/tst-strfmon_l.c: Likewise.
33747 * stdlib/tst-strtod4.c: Likewise.
33748 * stdlib/tst-strtod5i.c: Likewise.
33749
33750 2017-08-11 Florian Weimer <fweimer@redhat.com>
33751
33752 [BZ #21242]
33753 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33754 Suppress pedantic warning resulting from statement expression.
33755 (__ASSERT_FUNCTION): Add missing __extension__.
33756
33757 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33758
33759 * benchtests/bench-memmove-large.c: Print output in JSON
33760 format.
33761 * benchtests/bench-memmove.c: Likewise.
33762
33763 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33764 * benchtests/bench-memchr.c (do_one_test): Likewise.
33765 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33766 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33767 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33768 * benchtests/bench-memmove.c (do_one_test): Likewise.
33769 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33770 * benchtests/bench-memset.c (do_one_test): Likewise.
33771 * benchtests/bench-string.h (test_init): Remove memsets.
33772
33773 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33774
33775 * manual/lang.texi
33776 (Computing the Width of an Integer Data Type): Rename section to
33777 "Width of an Integer Type". Remove inaccurate statement regarding
33778 lack of C language facilities for determining width of integer
33779 types, and reorder content to improve flow and context of
33780 discussion.
33781
33782 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33783
33784 * lang.texi (va_copy): Change standard from ISO to C99.
33785 (__va_copy): Add standard and header annotation.
33786 Update description for clarity of origins and current use.
33787
33788 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33789
33790 [BZ #21941]
33791 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33792 xssqrtqp requires operands to be in Vector Registers
33793 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33794 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33795 (__ieee754_sqrtf128): Likewise.
33796
33797 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33798
33799 * sysdeps/aarch64/memcmp.S (memcmp):
33800 Rewrite of optimized memcmp.
33801
33802 2017-08-10 Florian Weimer <fweimer@redhat.com>
33803
33804 Introduce ld.so exceptions.
33805 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33806 (_dl_exception_create, _dl_exception_create_format)
33807 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33808 (_dl_catch_exception): Declare.
33809 (_dl_catch_error): Update comment.
33810 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33811 errstring, malloced members with exception member.
33812 (_dl_out_of_memory): Remove.
33813 (fatal_error): New function, extracted from _dl_signal_error.
33814 (_dl_signal_exception, _dl_signal_cexception): New functions.
33815 (_dl_signal_error): Call _dl_exception_create to allocate an
33816 exception object.
33817 (_dl_catch_exception): New function, based on _dl_catch_error.
33818 (_dl_catch_error): Implement using _dl_catch_exception.
33819 * elf/dl-exception.c: New file.
33820 * elf/Makefile (dl-routines): Add dl-exception.
33821 (elide-routines.os): Likewise.
33822 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33823 _dl_exception_create_format, _dl_exception_free.
33824 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33825 _dl_signal_exception.
33826 * elf/dl-lookup.c (make_string): Remove.
33827 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33828 _dl_signal_cexception, _dl_exception_free.
33829 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33830 _dl_signal_exception.
33831 * elf/dl-sym.c (do_sym): Likewise.
33832 * elf/dl-version.c (make_string): Remove.
33833 (match_symbol): Use _dl_exception_create_format,
33834 _dl_signal_cexception, _dl_exception_free.
33835 (_dl_check_map_versions): Likewise.
33836 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33837 _dl_catch_exception.
33838 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33839 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33840 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33841 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33842 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33843 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33844 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33845 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33846 Likewise.
33847 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33848 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33849 (ld.so): Likewise.
33850 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33851 (ld.so): Likewise.
33852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33853 Likewise.
33854 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33855 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33856 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33857 Likewise.
33858 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33859 Likewise.
33860 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33861
33862 2017-08-10 Florian Weimer <fweimer@redhat.com>
33863
33864 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33865 attribute_hidden, internal_function.
33866 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33867 internal_function.
33868
33869 2017-08-10 Florian Weimer <fweimer@redhat.com>
33870
33871 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33872 function which calls __builtin_unreachable.
33873
33874 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33875
33876 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33877 Indian monetary formatting
33878 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33879 test cases.
33880
33881 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33882
33883 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33884 Fix typo in comment.
33885
33886 [BZ #21928]
33887 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33888 PTRACE_SEIZE_DEVEL): Remove.
33889 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33890 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33891 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33892 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33893 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33894
33895 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33896
33897 * posix/bits/types.h (__qaddr_t): Remove.
33898
33899 [BZ #21457]
33900 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33901 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33902 __glibc_reserved1.
33903 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33904 (ucontext_t): Use __ctx with uc_flags.
33905 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33906 (__ctxt): Likewise.
33907 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33908 __glibc_reserved1.
33909 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33910 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33911 __glibc_reserved1.
33912 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33913 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33914 __glibc_reserved1.
33915 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33916 macro.
33917 (ucontext_t): Use __ctx with uc_flags.
33918 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33919 (ucontext_t): Use __ctx with uc_flags.
33920 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33921 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33922 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33923 (ucontext_t): Use __ctx with uc_flags.
33924 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33925 undefine further down.
33926 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33927 __glibc_reserved1.
33928 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33929 undefine further down.
33930 (ucontext_t): Use __ctx with uc_flags.
33931 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33932 undefine further down.
33933 (ucontext_t): Use __ctx with uc_flags.
33934 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33935 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33936 Rename uc_pad to __glibc_reserved1.
33937 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33938 undefine further down.
33939 (ucontext_t): Use __ctx with uc_flags.
33940 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33941 further down.
33942 (ucontext_t): Use __ctx with uc_flags.
33943 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33944 __ctx with uc_flags.
33945 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33946 (ucontext_t): Use __ctx with uc_flags.
33947 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33948 __ctx with uc_flags.
33949
33950 2017-08-09 Florian Weimer <fweimer@redhat.com>
33951
33952 [BZ #21932]
33953 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33954 before early return.
33955
33956 2017-08-09 Andreas Schwab <schwab@suse.de>
33957
33958 [BZ #21041]
33959 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33960 renamed alias.
33961
33962 [BZ #21041]
33963 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33964 tst-compat-forwarder.
33965 (modules-names): Add tst-compat-forwarder-mod.
33966 ($(objpfx)tst-compat-forwarder): Depend on
33967 $(objpfx)tst-compat-forwarder-mod.so.
33968 * nptl/tst-compat-forwarder.c: New file.
33969 * nptl/tst-compat-forwarder-mod.c: New file.
33970
33971 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33972
33973 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33974 comments.
33975
33976 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33977 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33978 memcpy_falkor.
33979 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33980 Bump.
33981 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33982 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33983 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33984 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33985 Add falkor.
33986 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33987 New macro.
33988
33989 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33990
33991 [BZ #759]
33992 * manual/setjmp.texi (getcontex): Document uc_stack value
33993 compatibility differences.
33994
33995 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33996
33997 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33998 (old_malloc_hook): Likewise.
33999 (old_memalign_hook): Likewise.
34000 (old_realloc_hook): Likewise.
34001 (struct hdr): Likewise.
34002 (flood): Likewise.
34003 (freehook): Likewise.
34004 (mallochook): Likewise.
34005 (memalignhook): Likewise.
34006 (reallochook): Likewise.
34007 (mprobe): Likewise.
34008 * malloc/mtrace.c (mallwatch): Likewise.
34009 (tr_old_free_hook): Likewise.
34010 (tr_old_malloc_hook): Likewise.
34011 (tr_old_realloc_hook): Likewise.
34012 (tr_old_memalign_hook): Likewise.
34013 (tr_where): Likewise.
34014 (lock_and_info): Likewise.
34015 (tr_freehook): Likewise.
34016 (tr_mallochook): Likewise.
34017 (tr_reallochook): Likewise.
34018 (tr_memalignhook): Likewise.
34019 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
34020 * misc/mmap.c (__mmap): Likewise.
34021 * misc/mmap64.c (__mmap64): Likewise.
34022 * misc/mprotect.c (__mprotect): Likewise.
34023 * misc/msync.c (msync): Likewise.
34024 * misc/munmap.c (__munmap): Likewise.
34025 * posix/posix_madvise.c (posix_madvise): Likewise.
34026 * socket/send.c (__send): Likewise.
34027 * socket/sendto.c (__sendto): Likewise.
34028 * socket/setsockopt.c (__setsockopt): Likewise.
34029 * string/memcmp.c (__ptr_t): Remove macro.
34030 (MEMCMP): Use void * instead of ptr_t.
34031 * string/memrchr.c (__ptr_t): Remove macro.
34032 (__memrchr): Use void * instead of ptr_t.
34033 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
34034 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
34035 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
34036 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
34037 * sysdeps/mach/msync.c (msync): Likewise.
34038 * sysdeps/mach/munmap.c (__munmap): Likewise.
34039 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
34040 Likewise.
34041 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
34042 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
34043 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
34044 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
34045 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
34046 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
34047 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
34048 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
34049 Likewise.
34050 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
34051 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
34052 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
34053 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
34054 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
34055 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
34056 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
34057 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
34058 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
34059 Likewise.
34060 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34061 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34062 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34063 (MEMCMP): Use void * instead of ptr_t.
34064 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34065 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34066
34067 2017-08-08 Florian Weimer <fweimer@redhat.com>
34068
34069 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34070 return statement.
34071
34072 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34073
34074 [BZ #21913]
34075 * csu/libc-tls.c: Include <startup.h> first.
34076 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34077 * elf/dl-tunables.c: Include <startup.h> first.
34078 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34079 * sysdeps/generic/startup.h: New file.
34080 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34081 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34082 (I386_USE_SYSENTER): New. Defined to 0.
34083
34084 2017-08-08 Andreas Schwab <schwab@suse.de>
34085
34086 [BZ #21041]
34087 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34088 * nptl/pt-system.c (system): Likewise.
34089
34090 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34091
34092 [BZ #21780]
34093 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34094 EOPNOTSUPP.
34095 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34096 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34097 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34098 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34099 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34100 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34101 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34102
34103 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34104
34105 [BZ #21899]
34106 * bits/sigaction.h (struct sigaction): Define sa_handler and
34107 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34108 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34109 [__USE_XOPEN_EXTENDED].
34110 (SA_RESTART): Likewise.
34111 (SA_NODEFER): Likewise.
34112 (SA_RESETHAND): Likewise.
34113 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34114 (struct sigaction): Define sa_handler and sa_sigaction using union
34115 also for [__USE_XOPEN_EXTENDED].
34116 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34117 [__USE_XOPEN_EXTENDED].
34118 (SA_RESTART): Likewise.
34119 (SA_NODEFER): Likewise.
34120 (SA_RESETHAND): Likewise.
34121 * sysdeps/unix/sysv/linux/bits/sigaction.h
34122 (struct sigaction): Define sa_handler and sa_sigaction using union
34123 also for [__USE_XOPEN_EXTENDED].
34124 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34125 [__USE_XOPEN_EXTENDED].
34126 (SA_RESTART): Likewise.
34127 (SA_NODEFER): Likewise.
34128 (SA_RESETHAND): Likewise.
34129 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34130 (struct sigaction): Define sa_handler and sa_sigaction using union
34131 also for [__USE_XOPEN_EXTENDED].
34132 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34133 [__USE_XOPEN_EXTENDED].
34134 (SA_RESTART): Likewise.
34135 (SA_NODEFER): Likewise.
34136 (SA_RESETHAND): Likewise.
34137 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34138 (struct sigaction): Define sa_handler and sa_sigaction using union
34139 also for [__USE_XOPEN_EXTENDED].
34140 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34141 [__USE_XOPEN_EXTENDED].
34142 (SA_RESTART): Likewise.
34143 (SA_NODEFER): Likewise.
34144 (SA_RESETHAND): Likewise.
34145 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34146 (struct sigaction): Define sa_handler and sa_sigaction using union
34147 also for [__USE_XOPEN_EXTENDED].
34148 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34149 [__USE_XOPEN_EXTENDED].
34150 (SA_RESTART): Likewise.
34151 (SA_NODEFER): Likewise.
34152 (SA_RESETHAND): Likewise.
34153 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34154 (struct sigaction): Define sa_handler and sa_sigaction using union
34155 also for [__USE_XOPEN_EXTENDED].
34156 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34157 [__USE_XOPEN_EXTENDED].
34158 (SA_RESTART): Likewise.
34159 (SA_NODEFER): Likewise.
34160 (SA_RESETHAND): Likewise.
34161 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34162 (struct sigaction): Define sa_handler and sa_sigaction using union
34163 also for [__USE_XOPEN_EXTENDED].
34164 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34165 [__USE_XOPEN_EXTENDED].
34166 (SA_RESTART): Likewise.
34167 (SA_NODEFER): Likewise. Define directly rather than as alias.
34168 (SA_RESETHAND): Likewise.
34169 (SA_INTERRUPT): Define only for [__USE_MISC].
34170 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34171 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34172 [__USE_MISC].
34173 (SA_STACK): Define only for [__USE_MISC].
34174 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
34175 (struct sigaction): Define sa_handler and sa_sigaction using union
34176 also for [__USE_XOPEN_EXTENDED].
34177 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34178 [__USE_XOPEN_EXTENDED].
34179 (SA_RESTART): Likewise.
34180 (SA_NODEFER): Likewise.
34181 (SA_RESETHAND): Likewise.
34182 (SA_NOPTRACE): Define only for [__USE_MISC].
34183
34184 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34185 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34186 (struct catalog_info): Likewise.
34187 * inet/htontest.c (lo): Likewise.
34188 (foo): Likewise.
34189 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34190 * inet/inet_net.c (inet_network): Likewise.
34191 * inet/inet_netof.c (inet_netof): Likewise.
34192 * inet/rcmd.c (__ivaliduser): Likewise.
34193 (iruserok): Likewise.
34194 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34195 * locale/programs/locale-spec.c (locale_special): Likewise.
34196 * nis/nis_findserv.c (struct findserv_req): Likewise.
34197 (__nis_findfastest_with_timeout): Likewise.
34198 * nss/test-netdb.c (test_network): Likewise.
34199 * resolv/inet_neta.c (inet_neta): Likewise.
34200 * resolv/ns_date.c (ns_datetosecs): Likewise.
34201 (SECS_PER_DAY): Likewise.
34202 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34203 Likewise.
34204 * resolv/res_comp.c (__putlong): Likewise.
34205 (__putshort): Likewise.
34206 (_getlong): Likewise.
34207 (_getshort): Likewise.
34208 * resolv/res_debug.c (p_time): Likewise.
34209 (precsize_ntoa): Likewise.
34210 (precsize_aton): Likewise.
34211 (latlon2ul): Likewise.
34212 (loc_aton): Likewise.
34213 (loc_ntoa): Likewise.
34214 * resolv/res_hconf.c (struct netaddr): Likewise.
34215 (_res_hconf_reorder_addrs): Likewise.
34216 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34217 (clnttcp_control): Likewise.
34218 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34219 (clntudp_control): Likewise.
34220 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34221 (clntunix_control): Likewise.
34222 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34223 * sunrpc/rpc/auth.h (union des_block): Likewise.
34224 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34225 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34226 (xdrrec_create): Likewise.
34227 (xdrrec_endofrecord): Likewise.
34228 (flush_out): Likewise.
34229 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34230 (xdrstdio_putlong): Likewise.
34231 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34232 Likewise.
34233
34234 * misc/sys/cdefs.h (__long_double_t): Remove.
34235 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34236 instead of __long_double_t,
34237 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34238
34239 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34240
34241 * benchtests/scripts/compare_strings.py: Avoid display error when
34242 running on a text terminal.
34243
34244 * benchtests/scripts/compare_strings.py (main): Add an
34245 optional -base option.
34246 (process_results): New argument base_func.
34247
34248 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34249 hardcoding memcpy.
34250 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34251 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34252
34253 2017-08-07 Andreas Schwab <schwab@suse.de>
34254
34255 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34256 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34257 * intl/Makefile ($(objpfx)tst-gettext.out)
34258 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34259 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34260 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34261 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34262 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34263 * posix/Makefile ($(objpfx)globtest.out)
34264 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34265 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34266 ($(objpfx)tst-printf.out): Likewise.
34267 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34268 ($(objpfx)tst-setcontext3.out): Likewise.
34269
34270 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34271
34272 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34273 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34274 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34275 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34276 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34277 and mptan-fma.
34278 (CFLAGS-doasin-fma.c): New.
34279 (CFLAGS-dosincos-fma.c): Likewise.
34280 (CFLAGS-e_asin-fma.c): Likewise.
34281 (CFLAGS-e_atan2-fma.c): Likewise.
34282 (CFLAGS-e_exp-fma.c): Likewise.
34283 (CFLAGS-e_log-fma.c): Likewise.
34284 (CFLAGS-e_pow-fma.c): Likewise.
34285 (CFLAGS-halfulp-fma.c): Likewise.
34286 (CFLAGS-mpa-fma.c): Likewise.
34287 (CFLAGS-mpatan-fma.c): Likewise.
34288 (CFLAGS-mpatan2-fma.c): Likewise.
34289 (CFLAGS-mpexp-fma.c): Likewise.
34290 (CFLAGS-mplog-fma.c): Likewise.
34291 (CFLAGS-mpsqrt-fma.c): Likewise.
34292 (CFLAGS-mptan-fma.c): Likewise.
34293 (CFLAGS-s_atan-fma.c): Likewise.
34294 (CFLAGS-sincos32-fma.c): Likewise.
34295 (CFLAGS-slowexp-fma.c): Likewise.
34296 (CFLAGS-slowpow-fma.c): Likewise.
34297 (CFLAGS-s_sin-fma.c): Likewise.
34298 (CFLAGS-s_tan-fma.c): Likewise.
34299 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34300 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34301 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34302 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34303 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34304 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34305 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34306 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34307 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34308 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34309 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34310 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34311 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34312 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34313 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34314 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34315 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34316 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34317 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34318 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34319 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34320 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34321 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34322 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34323 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34324 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34325 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34326 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34327 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34328 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34329 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34330
34331 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34332
34333 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34334 (min_of_type_f): New macro.
34335 (min_of_type_): Likewise.
34336 (min_of_type_l): Likewise.
34337 (min_of_type_f128): Likewise.
34338 (min_of_type): Define using __MATH_TG and taking an expression
34339 argument.
34340 (math_check_force_underflow): Pass expression instead of type to
34341 min_of_type.
34342 (math_check_force_underflow_nonneg): Likewise.
34343
34344 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34345
34346 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34347 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34348 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34349
34350 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34351
34352 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34353 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34354 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34355 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34356 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34357 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34358 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34359 memmove_chk-nonshared and memset_chk-nonshared
34360 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34361 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34362 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34363 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34364 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34365 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34366 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34367 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34368 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34369 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34370 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34371 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34372 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34373 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34374 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34375 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34376 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34377 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34378 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34379 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34380 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34381 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34382 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34383 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34384 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34385 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34386 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34387 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34388 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34389 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34390 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34391 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34392 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34393 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34394 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34395 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34396 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34397 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34398 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34399 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34400 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34401 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34402 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34403 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34404 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34405 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34406 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34407 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34408 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34409 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34410 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34411 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34412 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34413 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34414 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34415 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34416 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34417 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34418 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34419 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34420 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34421 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34422 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34423 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34424 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34425 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34426 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34427 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34428 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34429 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34430 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34431 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34432 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34433 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34434 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34435 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34436 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34437 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34438 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34439 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34440 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34441 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34442 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34443 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34444 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34445 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34446 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34447 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34448 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34449 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34450 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34451 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34452 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34453 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34454 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34455 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34456 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34457 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34458 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34459 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34460 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34461 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34462 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34463 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34464 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34465 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34466 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34467 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34468
34469 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34470
34471 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34472 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34473 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34474 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34475 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34476 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34477 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34478 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34479 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34480 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34481 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34482 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34483 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34484 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34485 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34486 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34487 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34488 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34489 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34490 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34491 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34492 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34493 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34494 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34495 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34496 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34497 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34498 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34499 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34500 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34501 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34502 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34503 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34504 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34505 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34506 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34507 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34508 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34509 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34510 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34511 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34512 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34513 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34514 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34515 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34516 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34517 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34518 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34519 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34520 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34521 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34522 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34523 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34524 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34525 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34526 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34527 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34528 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34529 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34530 ...
34531 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34532 Don't include <sysdep.h> nor <init-arch.h>.
34533 (_ZGVbN2v_cos): Removed.
34534 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34535 ...
34536 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34537 Don't include <sysdep.h> nor <init-arch.h>.
34538 (_ZGVdN4v_cos): Removed.
34539 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34540 ...
34541 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34542 Don't include <sysdep.h> nor <init-arch.h>.
34543 (_ZGVeN8v_cos): Removed.
34544 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34545 ...
34546 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34547 Don't include <sysdep.h> nor <init-arch.h>.
34548 (_ZGVbN2v_exp): Removed.
34549 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34550 ...
34551 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34552 Don't include <sysdep.h> nor <init-arch.h>.
34553 (_ZGVdN4v_exp): Removed.
34554 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34555 ...
34556 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34557 Don't include <sysdep.h> nor <init-arch.h>.
34558 (_ZGVeN8v_exp): Removed.
34559 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34560 ...
34561 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34562 Don't include <sysdep.h> nor <init-arch.h>.
34563 (_ZGVbN2v_log): Removed.
34564 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34565 ...
34566 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34567 Don't include <sysdep.h> nor <init-arch.h>.
34568 (_ZGVdN4v_log): Removed.
34569 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34570 ...
34571 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34572 Don't include <sysdep.h> nor <init-arch.h>.
34573 (_ZGVeN8v_log): Removed.
34574 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34575 ...
34576 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34577 Don't include <sysdep.h> nor <init-arch.h>.
34578 (_ZGVbN2vv_pow): Removed.
34579 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34580 ...
34581 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34582 Don't include <sysdep.h> nor <init-arch.h>.
34583 (_ZGVdN4vv_pow): Removed.
34584 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34585 ...
34586 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34587 Don't include <sysdep.h> nor <init-arch.h>.
34588 (_ZGVeN8vv_pow): Removed.
34589 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34590 ...
34591 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34592 Don't include <sysdep.h> nor <init-arch.h>.
34593 (_ZGVbN2v_sin): Removed.
34594 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34595 ...
34596 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34597 Don't include <sysdep.h> nor <init-arch.h>.
34598 (_ZGVbN4v_sin): Removed.
34599 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34600 ...
34601 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34602 Don't include <sysdep.h> nor <init-arch.h>.
34603 (_ZGVbN8v_sin): Removed.
34604 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34605 ...
34606 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34607 Don't include <sysdep.h> nor <init-arch.h>.
34608 (_ZGVbN2vvv_sincos): Removed.
34609 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34610 ...
34611 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34612 Don't include <sysdep.h> nor <init-arch.h>.
34613 (_ZGVdN4vvv_sincos): Removed.
34614 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34615 ...
34616 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34617 Don't include <sysdep.h> nor <init-arch.h>.
34618 (_ZGVeN8vvv_sincos): Removed.
34619 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34620 ...
34621 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34622 Don't include <sysdep.h> nor <init-arch.h>.
34623 (_ZGVeN16v_cosf): Removed.
34624 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34625 ...
34626 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34627 Don't include <sysdep.h> nor <init-arch.h>.
34628 (_ZGVbN4v_cosf): Removed.
34629 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34630 ...
34631 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34632 Don't include <sysdep.h> nor <init-arch.h>.
34633 (_ZGVdN8v_cosf): Removed.
34634 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34635 ...
34636 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34637 Don't include <sysdep.h> nor <init-arch.h>.
34638 (_ZGVeN16v_expf): Removed.
34639 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34640 ...
34641 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34642 Don't include <sysdep.h> nor <init-arch.h>.
34643 (_ZGVbN4v_expf): Removed.
34644 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34645 ...
34646 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34647 Don't include <sysdep.h> nor <init-arch.h>.
34648 (_ZGVdN8v_expf): Removed.
34649 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34650 ...
34651 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34652 Don't include <sysdep.h> nor <init-arch.h>.
34653 (_ZGVeN16v_logf): Removed.
34654 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34655 ...
34656 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34657 Don't include <sysdep.h> nor <init-arch.h>.
34658 (_ZGVbN4v_logf): Removed.
34659 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34660 ...
34661 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34662 Don't include <sysdep.h> nor <init-arch.h>.
34663 (_ZGVdN8v_logf): Removed.
34664 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34665 ...
34666 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34667 Don't include <sysdep.h> nor <init-arch.h>.
34668 (_ZGVeN16vv_powf): Removed.
34669 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34670 ...
34671 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34672 Don't include <sysdep.h> nor <init-arch.h>.
34673 (_ZGVbN4vv_powf): Removed.
34674 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34675 ...
34676 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34677 Don't include <sysdep.h> nor <init-arch.h>.
34678 (_ZGVdN8vv_powf): Removed.
34679 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34680 ...
34681 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34682 Don't include <sysdep.h> nor <init-arch.h>.
34683 (_ZGVeN16vvv_sincosf): Removed.
34684 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34685 ...
34686 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34687 Don't include <sysdep.h> nor <init-arch.h>.
34688 (_ZGVbN4vvv_sincosf): Removed.
34689 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34690 ...
34691 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34692 Don't include <sysdep.h> nor <init-arch.h>.
34693 (_ZGVdN8vvv_sincosf): Removed.
34694 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34695 ...
34696 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34697 Don't include <sysdep.h> nor <init-arch.h>.
34698 (_ZGVeN16v_sinf): Removed.
34699 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34700 ...
34701 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34702 Don't include <sysdep.h> nor <init-arch.h>.
34703 (_ZGVbN4v_sinf): Removed.
34704 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34705 ...
34706 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34707 Don't include <sysdep.h> nor <init-arch.h>.
34708 (_ZGVdN8v_sinf): Removed.
34709
34710 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34711
34712 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34713 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34714 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34715 s_rint-sse4_1 and s_rintf-sse4_1.
34716 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34717 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34718 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34719 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34720 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34721 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34722 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34723 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34724 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34725 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34726 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34727 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34728 (__ceil): Removed.
34729 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34730 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34731 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34732 (__ceilf): Removed.
34733 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34734 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34735 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34736 (__floor): Removed.
34737 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34738 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34739 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34740 (__floorf): Removed.
34741 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34742 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34743 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34744 (__nearbyint): Removed.
34745 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34746 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34747 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34748 (__nearbyintf): Removed.
34749 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34750 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34751 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34752 (__rint): Removed.
34753 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34754 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34755 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34756 (__rintf): Removed.
34757
34758 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34759
34760 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34761 SHARED. Avoid dynamic relocation against main in static PIE.
34762
34763 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34764
34765 [BZ #21815]
34766 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34767 (LDFLAGS-tst-prelink): Likewise.
34768
34769 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34770
34771 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34772 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34773 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34774 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34775 (INTERNAL_SYSCALL_NCS): Likewise.
34776 (LOADARGS_1): Likewise.
34777 (LOADARGS_5): Likewise.
34778 (RESTOREARGS_1): Likewise.
34779 (RESTOREARGS_5): Likewise.
34780
34781 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34782
34783 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34784 (MEMPCPY_SYMBOL): Likewise.
34785 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34786 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34787 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34788 in libc.a.
34789 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34790 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34791 Likewise.
34792 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34793 (__hidden_ver1): Don't use in libc.a.
34794 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34795 (__mempcpy): Don't create a weak alias in libc.a.
34796 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34797 libc.a.
34798 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34799 (__hidden_ver1): Don't use in libc.a.
34800
34801 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34802
34803 * config.make.in (have-insert): New.
34804 * configure.ac (libc_cv_insert): New. Set to yes if linker
34805 supports INSERT in linker script.
34806 (AC_SUBST(libc_cv_insert): New.
34807 * configure: Regenerated.
34808 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34809 if $(have-insert) == yes.
34810
34811 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34812
34813 * elf/Makefile (tests): Add vismain only if
34814 $(have-protected-data) == yes.
34815 (tests-pie): Likewise.
34816
34817 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34818
34819 [BZ #21871]
34820 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34821 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34822
34823 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34824
34825 [BZ #21790]
34826 * sysdeps/i386/i586/memset.S
34827 (__memset_zero_constant_len_parameter): Removed.
34828 * sysdeps/i386/i686/memset.S
34829 (__memset_zero_constant_len_parameter): Likewise.
34830 * sysdeps/i386/i686/multiarch/memset_chk.S
34831 (__memset_zero_constant_len_parameter): Likewise.
34832 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34833 Likewise.
34834
34835 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34836
34837 * stdlib/getentropy.c (getentropy): Change return type to int.
34838
34839 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34840
34841 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34842
34843 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34844
34845 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34846 u_intN_t.
34847 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34848 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34849 Likewise.
34850 (ieee_float_shape_type): Likewise.
34851 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34852 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34853 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34854 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34855 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34856 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34857 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34858 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34859 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34860 Likewise.
34861 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34862 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34863 (__ieee754_yn): Likewise.
34864 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34865 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34866 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34867 Likewise.
34868 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34869 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34870 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34871 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34872 (__erfc): Likewise.
34873 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34874 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34875 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34876 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34877 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34878 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34879 Likewise.
34880 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34881 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34882 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34883 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34884 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34885 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34886 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34887 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34888 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34889 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34890 (__issignaling): Likewise.
34891 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34892 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34893 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34894 Likewise.
34895 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34896 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34897 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34898 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34899 Likewise.
34900 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34901 Likewise.
34902 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34903 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34904 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34905 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34906 (__erfcf): Likewise.
34907 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34908 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34909 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34910 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34911 Likewise.
34912 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34913 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34914 Likewise.
34915 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34916 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34917 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34918 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34919 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34920 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34921 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34922 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34923 Likewise.
34924 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34925 Likewise.
34926 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34927 Likewise.
34928 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34929 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34930 Likewise.
34931 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34932 Likewise.
34933 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34934 (__ieee754_ynl): Likewise.
34935 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34936 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34937 Likewise.
34938 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34939 Likewise.
34940 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34941 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34942 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34943 Likewise.
34944 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34945 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34946 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34947 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34948 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34949 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34950 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34951 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34952 Likewise.
34953 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34954 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34955 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34956 Likewise.
34957 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34958 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34959 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34960 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34961 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34962 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34963 Likewise.
34964 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34965 Likewise.
34966 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34967 Likewise.
34968 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34969 Likewise.
34970 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34971 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34972 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34973 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34974 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34975 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34976 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34977 Likewise.
34978 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34979 Likewise.
34980 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34981 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34982 Likewise.
34983 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34984 (__ieee754_remainderl): Likewise.
34985 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34986 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34987 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34988 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34989 Likewise.
34990 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34991 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34992 Likewise.
34993 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34994 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34995 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34996 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34997 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34998 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34999 Likewise.
35000 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
35001 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
35002 (__ieee754_y0l): Likewise.
35003 (pzero): Likewise.
35004 (qzero): Likewise.
35005 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
35006 (__ieee754_y1l): Likewise.
35007 (pone): Likewise.
35008 (qone): Likewise.
35009 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
35010 (__ieee754_ynl): Likewise.
35011 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
35012 (__ieee754_lgammal_r): Likewise.
35013 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
35014 Likewise.
35015 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
35016 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
35017 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
35018 (__erfcl): Likewise.
35019 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
35020 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
35021 Likewise.
35022 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
35023 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
35024 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
35025 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
35026 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
35027 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
35028 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
35029 Likewise.
35030 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
35031 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
35032 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
35033 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
35034 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
35035 Likewise.
35036 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
35037 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
35038 Likewise.
35039 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
35040 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
35041 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
35042 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
35043 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
35044
35045 2017-08-03 Florian Weimer <fweimer@redhat.com>
35046
35047 [BZ #21885]
35048 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
35049 on memory allocation failure.
35050
35051 2017-08-03 Alan Modra <amodra@gmail.com>
35052
35053 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
35054 tst-tlsopt-powerpc.c with function name change and no test harness.
35055 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
35056 Call tls_get_addr_opt_test.
35057 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
35058 (modules-names): Add mod-tlsopt-powerpc.
35059 (mod-tlsopt-powerpc.so-no-z-defs): Define.
35060 (tst-tlsopt-powerpc): Depend on .so.
35061 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35062 define. Expand use in TLS_GD and TLS_LD.
35063
35064 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35065
35066 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35067 function.
35068 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35069
35070 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35071
35072 [BZ #21686]
35073 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35074 comparing size with that of double.
35075 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35076 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35077 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35078 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35079 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35080 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35081 unsigned __int128 types.
35082
35083 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35084
35085 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35086 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35087 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35088 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35089 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35090
35091 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35092
35093 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35094
35095 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35096
35097 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35098 of SHARED.
35099 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35100 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35101 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35102 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35103 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35104 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35105 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35106
35107 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35108
35109 [BZ #21685]
35110 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35111 bit-field expressions passed to sizeof or typeof.
35112 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35113 (__TGMATH_F128): Likewise.
35114 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35115 (__TGMATH_CF128): Likewise.
35116 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35117 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35118 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35119 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35120 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35121 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35122 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35123 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35124 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35125 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35126 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35127 (__TGMATH_UNARY_IMAG): Likewise.
35128 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35129 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35130 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35131 type.
35132 (define_vars_for_type): Handle bit_field type specially.
35133 (Tests.__init__): Declare structure with bit-field element.
35134
35135 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35136
35137 [BZ #21791]
35138 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35139 (MEMCPY_CHK): Define only if SHARED is defined.
35140 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35141 Likewise.
35142 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35143 Likewise.
35144
35145 See ChangeLog.18 for earlier changes.