]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
<sys/stat.h>: Use Linux UAPI header for statx if available and useful
[thirdparty/glibc.git] / ChangeLog
1 2019-06-12 Florian Weimer <fweimer@redhat.com>
2
3 Linux: Use kernel headers for statx definitions if available.
4 * include/bits/statx-generic.h: New file.
5 * include/bits/types/struct_statx.h: Likewise.
6 * include/bits/types/struct_statx_timestamp.h: Likewise.
7 * io/Makefile (headers): Add bits/statx-generic.h.
8 * io/bits/statx-generic.h: New file. Partly copied from
9 io/bits/statx.h.
10 * io/statx_generic.c: Include <bits/types/struct_statx.h> to
11 define original_statx.
12 * io/bits/types/struct_statx.h: Likewise.
13 * io/bits/types/struct_statx_timestamp.h: Likewise.
14 (statx_generic): Use original_statx.
15 * io/bits/statx.h: Rewrite to include <bits/statx-generic.h>.
16 * sysdeps/unix/sysv/linux/bits/statx.h: New file.
17
18 2019-06-12 Florian Weimer <fweimer@redhat.com>
19
20 * misc/sys/cdefs.h (__glibc_has_include): Define.
21
22 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
23
24 * string/memmem.c (__memmem): Rewrite to improve performance.
25
26 2019-06-12 Wilco Dijkstra <wdijkstr@arm.com>
27
28 * string/str-two-way.h (two_way_short_needle): Add inline to avoid
29 warning.
30 (two_way_long_needle): Block inlining.
31 * string/strstr.c (strstr2): Add new function.
32 (strstr3): Likewise.
33 (STRSTR): Completely rewrite strstr to improve performance.
34
35 2019-06-11 Wilco Dijkstra <wdijkstr@arm.com>
36
37 * benchtests/bench-strstr.c (test_hard_needle): New function.
38
39 2019-06-10 Joseph Myers <joseph@codesourcery.com>
40
41 * malloc/tst-calloc.c: Include <libc-diag.h>.
42 (null_test): Ignore -Wunused-result around calls to calloc.
43 * malloc/tst-mallocfork.c: Include <libc-diag.h>.
44 (do_test): Ignore -Wunused-result around call to malloc.
45
46 2019-06-07 Florian Weimer <fweimer@redhat.com>
47
48 Linux: Add getdents64 system call.
49 * include/dirnent.h (getdents): Add comment and change buffer
50 argument type to void *.
51 (getdents64): Likewise. Add hidden prototype.
52 * sysdeps/unix/sysv/linux/bits/Versions (GLIBC_2.30): Export
53 getdents64.
54 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == dirent] (tests):
55 Add tst-getdents64.
56 * sysdeps/unix/sysv/linux/bits/unistd_ext.h (getdents64): Declare.
57 * sysdeps/unix/sysv/linux/getdents.c (__getdents): Change buffer
58 argument type to void *.
59 * sysdeps/unix/sysv/linux/getdents64.c (__getdents64): Likewise.
60 Add hidden definition and getdents64 alias.
61 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
62 Likewise.
63 * sysdeps/unix/sysv/linux/tst-getdents64.c: New file.
64 * manual/filesys.texi (Accessing Directories): Add Low-level
65 Directory Access node reference.
66 (Opening a Directory): Cross-reference it.
67 (Low-level Directory Access): New node.
68 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
69 getdents64.
70 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
71 Likewise.
72 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
73 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
74 Likewise.
75 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
76 Likewise.
77 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
78 Likewise.
79 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
80 Likewise.
81 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
82 Likewise.
83 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
84 Likewise.
85 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
86 Likewise.
87 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
88 (GLIBC_2.30): Likewise.
89 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
90 (GLIBC_2.30): Likewise.
91 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
92 (GLIBC_2.30): Likewise.
93 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
94 (GLIBC_2.30): Likewise.
95 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
96 Likewise.
97 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
98 (GLIBC_2.30): Likewise.
99 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
100 (GLIBC_2.30): Likewise.
101 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
102 (GLIBC_2.30): Likewise.
103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
104 (GLIBC_2.30): Likewise.
105 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
106 Likewise.
107 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
108 Likewise.
109 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
110 Likewise.
111 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
112 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
113 Likewise.
114 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
115 Likewise.
116 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
117 Likewise.
118 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
119 Likewise.
120
121 2019-06-06 Paul A. Clarke <pc@us.ibm.com>
122
123 * sysdeps/powerpc/fpu_control.h (_FPU_MASK_RC): New.
124 (__FPU_MFFS): New.
125 (__FPU_MFFSL): New.
126 (_FPU_GET_RC): New.
127 (_FPU_GETCW): Use __FPU_MFFS().
128 * sysdeps/powerpc/fpu/get-rounding-mode.h: New file.
129
130 2019-06-06 Florian Weimer <fweimer@redhat.com>
131
132 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Do not use
133 internal GCC preprocessor identifier __has_include__.
134
135 2019-06-05 Paul A. Clarke <pc@us.ibm.com>
136
137 * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Replace code
138 with call to equivalent function.
139
140 2019-06-04 Florian Weimer <fweimer@redhat.com>
141
142 * iconv/gconv_dl.c (release_handle): Remove file-level definition.
143 (do_release_shlib): Adjust for __twalk_r.
144 (__gconv_release_shlib): Call __twalk_r.
145
146 2019-06-04 Andreas Schwab <schwab@suse.de>
147
148 [BZ #18830]
149 * iconv/skeleton.c (FUNCTION_NAME): Use RESET_INPUT_BUFFER only if
150 no irreversible characters occurred.
151 * iconv/gconv_simple.c (internal_ucs4_loop)
152 (internal_ucs4_loop_unaligned, internal_ucs4_loop_single)
153 (ucs4_internal_loop, ucs4_internal_loop_unaligned)
154 (ucs4_internal_loop_single, internal_ucs4le_loop)
155 (internal_ucs4le_loop_unaligned, internal_ucs4le_loop_single)
156 (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
157 (ucs4le_internal_loop_single): Add const to outend.
158 * sysdeps/s390/multiarch/gconv_simple.c (internal_ucs4le_loop)
159 (ucs4_internal_loop, ucs4le_internal_loop): Likewise.
160 * iconv/Makefile (tests): Add tst-iconv7.
161 * iconv/tst-iconv7.c: New file.
162
163 2019-06-03 Joseph Myers <joseph@codesourcery.com>
164
165 * inet/netinet/in.h (INADDR_ALLSNOOPERS_GROUP): New macro.
166
167 2019-06-01 Florian Weimer <fweimer@redhat.com>
168
169 arm: Remove ioperm/iopl/inb/inw/inl/outb/outw/outl support.
170 * sysdeps/unix/sysv/linux/arm/Makefile
171 [$(subdir) == misc] (sysdep_headers): Remove sys/io.h.
172 * sysdeps/unix/sysv/linux/arm/sys/io.h: Remove file.
173 * sysdeps/unix/sysv/linux/arm/ioperm.c: Rewrite file.
174 (ioperm, iopl, inb, inw, inl, outb, outw, outl): Turn into
175 compatibility symbols.
176
177 2019-05-31 Florian Weimer <fweimer@redhat.com>
178
179 * sysdeps/unix/sysv/linux/syscall-names.list: Add oddly named
180 system calls for the arm architecture: breakpoint, get_tls,
181 set_tls, usr26, usr32.
182
183 2019-05-30 Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
184
185 * sysdeps/powerpc/Makefile
186 [$(subdir) == misc] (CFLAGS-tst-set_ppr.c): New variable.
187 * sysdeps/powerpc/powerpc64/power4/memcmp.S [__LITTLE_ENDIAN__]:
188 Declare '.machine power7' to get support for ldbrx.
189 * sysdeps/powerpc/powerpc64/power7/strncmp.S: Declare '.machine'
190 directive based on the directory of the file.
191 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Likewise.
192 * sysdeps/powerpc/powerpc64/power8/strcmp.S: Likewise.
193 * sysdeps/powerpc/powerpc64/power8/strcasecmp.S: Update
194 '.machine' directive.
195 (VCLZD_V8_v7, MFVRD_R3_V1, VSUBUDM_V9_V8, VPOPCNTD_V8_V8)
196 (VADDUQM_V7_V8): Remove.
197 (__STRCASECMP): Replace macros with actual instructions.
198 * sysdeps/powerpc/powerpc64/power8/strcasestr.S: Update
199 '.machine' directive.
200 (VCLZD_V8_v7): Remove.
201 (STRCASESTR): Replace VCLZD_V8_v7 with actual instruction.
202
203 2019-05-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
204
205 * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/get_clockfreq.c:
206 Remove file.
207 * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: Likewise.
208
209 2019-05-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
210
211 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
212 NEARBYINT handling.
213 * sysdeps/powerpc/fpu/s_nearbyint.c: New file.
214 * sysdeps/powerpc/fpu/s_nearbyintf.c: Likewise.
215 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Remove file.
216 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Likewise.
217 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Likewise.
218 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
219
220 2019-05-28 mansayk <6688000@gmail.com>
221
222 [BZ #24370]
223 * localedata/locales/tt_RU (lang_name): Add from CLDR-35.1.
224
225 2019-05-28 mansayk <6688000@gmail.com>
226
227 [BZ #24369]
228 * localedata/locales/tt_RU (mon): Update from CLDR-35.1, fix errors.
229 (abmon): Likewise, but remove the trailing dots.
230
231 2019-05-28 Joseph Myers <joseph@codesourcery.com>
232
233 * inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
234
235 2019-05-27 Florian Weimer <fweimer@redhat.com>
236
237 * nptl/nptl-init.c: Add comment.
238
239 2019-05-24 Florian Weimer <fweimer@redhat.com>
240
241 * resolv/nss_dns/dns-host.c (getanswer_r): Be more explicit about
242 struct in_addr/struct in6_addr alignment.
243
244 2019-05-23 Joseph Myers <joseph@codesourcery.com>
245
246 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
247 (F_SEAL_FUTURE_WRITE): New macro.
248
249 2019-05-23 Alexandra Hajkova <ahajkova@redhat.com>
250
251 * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
252 * elf/tst-ldconfig-bad-aux-cache.c: New file.
253 * elf/tst-ldconfig_aux-cache.root: New directory.
254 * elf/tst-ldconfig-bad-aux-cache.root/postclean.req: New file.
255 * elf/tst-ldconfig-bad-aux-cache.root/etc: New directory.
256 * elf/tst-ldconfig-bad-aux-cache.root/etc/ld.so.conf: New file.
257
258 2019-05-22 Zack Weinberg <zackw@panix.com>
259
260 * sysdeps/powerpc/preconfigure: Error out on powerpc-*-*gnuspe*
261 host type.
262 * scripts/build-many-glibcs.py: Remove powerpc-*-linux-gnuspe
263 and powerpc-*-linux-gnuspe-e500v1 from list of build configurations.
264
265 * sysdeps/powerpc/powerpc32/e500: Recursively delete.
266 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500: Recursively delete.
267 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/context-e500.h:
268 Delete.
269
270 * sysdeps/powerpc/fpu_control.h: Remove SPE variant.
271 Issue an #error if used with a compiler in SPE-float mode.
272 * sysdeps/powerpc/powerpc32/__longjmp_common.S
273 * sysdeps/powerpc/powerpc32/setjmp_common.S
274 * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
275 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/getcontext.S
276 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/setcontext.S
277 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/swapcontext.S
278 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
279 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
280 Remove code to preserve SPE register state.
281
282 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c
283 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
284 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c:
285 Remove __SPE__ ifndefs.
286
287 2019-05-21 Wilco Dijkstra <wdijkstr@arm.com>
288
289 * benchtests/bench-memcpy-random.c (do_one_test): Use medium iterations.
290 * benchtests/bench-memcpy-walk.c (test_main): Reduce alignment tests.
291 * benchtests/bench-memmem.c (do_one_test): Use small iterations.
292 * benchtests/bench-memmove-walk.c (test_main): Reduce alignment tests.
293 * benchtests/bench-memset-walk.c (test_main): Reduce alignment tests.
294 * benchtests/bench-strcasestr.c (do_one_test): Use small iterations.
295 * benchtests/bench-string.h (INNER_LOOP_ITERS): Increase iterations.
296 (INNER_LOOP_ITERS_MEDIUM): New define.
297 (INNER_LOOP_ITERS_SMALL): New define.
298 * benchtests/bench-strpbrk.c (do_one_test): Use medium iterations.
299 * benchtests/bench-strsep.c (do_one_test): Use small iterations.
300 * benchtests/bench-strspn.c (do_one_test): Use medium iterations.
301 * benchtests/bench-strstr.c (do_one_test): Use small iterations.
302 * benchtests/bench-strtok.c (do_one_test): Use small iterations.
303
304 2019-05-21 Adhemeval Zanella <adhemerval.zanella@linaro.org>
305
306 * sysdeps/unix/sysv/linux/powerpc/ipc_priv.h (SEMTIMEDOP_IPC_ARGS):
307 New define.
308 * sysdeps/unix/sysv/linux/sparc/sparc64/ipc_priv.h
309 (SEMTIMEDOP_IPC_ARGS): Likewise.
310
311 2019-05-21 Florian Weimer <fweimer@redhat.com>
312
313 [BZ #24584]
314 * wcsmbs/wcsmbsload.c (__wcsmbs_clone_conv): Acquire __gconv_lock
315 before updating __counter field and release it afterwards. Add
316 overflow check.
317 * iconv/gconv.h (struct __gconv_step): Mention synchronization
318 requirement for __counter member.
319
320 2019-05-21 Florian Weimer <fweimer@redhat.com>
321
322 [BZ #24583]
323 * wcsmbs/wcsmbsload.h (__wcsmbs_close_conv): Declare.
324 * wcsmbs/wcsmbsload.c (__wcsmbs_close_conv): Define.
325 * libio/iofclose.c (_IO_new_fclose): Call __wcsmbs_close_conv
326 instead of __gconv_release_step.
327 * libio/Makefile (tests): Add tst-wfile-gconv.
328 (tests-container): Add tst-wfile-ascii.
329 (tst-wfile-gconv-ENV): Enable mtrace.
330 (generated): Add tst-wfile-gconv.mtrace, tst-wfile-gconv.check.
331 (tests-special): Add tst-wfile-gconv-mem.out.
332 (tst-wfile-gconv.out): Depend on locales.
333 (tst-wfile-gconv-mem.out): Add mtrace rule.
334 * libio/tst-wfile-ascii.c: New file.
335 * libio/tst-wfile-gconv.c: Likewise.
336
337 2019-05-20 Florian Weimer <fweimer@redhat.com>
338
339 [BZ #24588]
340 libio: Remove codecvt vtable.
341 * libio/fileops.c ( _IO_new_file_fopen): Do not copy
342 __libio_codecvt.
343 * libio/iofgetpos.c (_IO_new_fgetpos): Call
344 __libio_codecvt_encoding.
345 * libio/iofgetpos64.c (_IO_new_fgetpos): Likewise.
346 * libio/iofsetpos.c (_IO_new_fsetpos): Likewise.
347 * libio/iofsetpos64.c (_IO_new_fsetpos): Likewise.
348 * libio/iofwide.c (__libio_codecvt): Remove variable.
349 (_IO_fwide): Do not copy __libio_codecvt.
350 (__libio_codecvt_out): Rename from do_out and export.
351 (do_unshift): Remove function.
352 (__libio_codecvt_in): Rename from do_in and export.
353 (__libio_codecvt_encoding): Rename from do_encoding and export.
354 (do_always_noconv): Remove function.
355 (__libio_codecvt_length): Rename from do_length and export.
356 (do_max_length): Remove function.
357 * libio/libio.h (enum __codecvt_result): Remove definition; moved
358 to libioP.h.
359 (struct _IO_codecvt): Remove fields __codecvt_destr,
360 __codecvt_do_out, __codecvt_do_unshift, __codecvt_do_in,
361 __codecvt_do_encoding, __codecvt_do_always_noconv,
362 __codecvt_do_length, __codecvt_do_max_length.
363 * libio/libioP.h (enum __codecvt_result): Define; moved from
364 libio.h.
365 (__libio_codecvt_out, __libio_codecvt_in)
366 (__libio_codecvt_encoding, __libio_codecvt_length): Declare
367 functions.
368 * libio/wfileops.c (_IO_wdo_write): Call __libio_codecvt_out.
369 (_IO_wfile_underflow): Call __libio_codecvt_in.
370 (_IO_wfile_underflow): Likewise.
371 (_IO_wfile_underflow_mmap): Likewise.
372 (_IO_wfile_sync): Call __libio_codecvt_encoding,
373 __libio_codecvt_length.
374 (adjust_wide_data): Call __libio_codecvt_encoding,
375 __libio_codecvt_in.
376 (do_ftell_wide): Call __libio_codecvt_length, __libio_codecvt_out.
377 (_IO_wfile_seekoff): Call __libio_codecvt_encoding,
378 __libio_codecvt_length.
379
380 2019-05-20 Florian Weimer <fweimer@redhat.com>
381
382 * support/support.h (support_sbindir_prefix): Declare.
383 (support_install_rootsbindir): Update comment.
384 * support/Makefile (CFLAGS-support_paths.c): Define SBINDIR_PATH.
385 * support/support_paths.c (support_sbindir_prefix): Define.
386
387 2019-05-20 Mike Crowe <mac@mcrowe.com>
388
389 * support/timespec.c: Add backslash to correct newline in failure
390 message.
391
392 * support/timespec.h: Correct confusing comment.
393
394 2019-05-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
395
396 * sysdeps/unix/sysv/linux/ipc_priv.h (SEMTIMEDOP_IPC_ARGS): New
397 define.
398 * sysdpes/unix/sysv/linux/s390/ipc_priv.h: New file.
399 * sysdeps/unix/sysv/linux/s390/semtimedop.c: Remove file.
400 * sysdeps/unix/sysv/linux/semtimedop.c (semtimedop): Use
401 SEMTIMEDOP_IPC_ARGS for calls with __NR_ipc.
402
403 [BZ #24570]
404 * sysdeps/unix/sysv/linux/msgctl.c (__old_msgctl): Remove __IPC_64
405 usage.
406
407 2019-05-20 Joseph Myers <joseph@codesourcery.com>
408
409 * elf/elf.h (NT_ARM_PACA_KEYS): New macro.
410 (NT_ARM_PACG_KEYS): Likewise.
411
412 2019-05-17 Wilco Dijkstra <wdijkstr@arm.com>
413
414 * malloc/malloc.c (MAX_TCACHE_COUNT): Increase to UINT16_MAX.
415 (tcache_put): Remove redundant assert.
416 (tcache_get): Remove redundant asserts.
417 (__libc_malloc): Check tcache count is not zero.
418 * manual/tunables.texi (glibc.malloc.tcache_count): Update maximum.
419
420 2019-05-17 Florian Weimer <fweimer@redhat.com>
421
422 * manual/llio.texi (Open-time Flags): Document O_DIRECTORY.
423
424 2019-05-16 Joseph Myers <joseph@codesourcery.com>
425
426 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
427 (__ASSUME_STATFS64): Only undefine if [__LINUX_KERNEL_VERSION <
428 0x050100].
429 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
430 Likewise.
431 * sysdeps/unix/sysv/linux/sh/kernel-features.h
432 (__ASSUME_STATX): Likewise.
433
434 2019-05-16 Florian Weimer <fweimer@redhat.com>
435
436 * nis/nss_nis/nis-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL): Remove
437 flags argument.
438 (LINE_PARSER): Do not map IPv4 addresses.
439 (internal_nis_gethostent_r): Remove flags argument. Adjust call
440 to parse_line.
441 (_nss_nis_gethostent_r): Always pass AF_INET to
442 internal_nis_gethostent_r.
443 (internal_gethostbyname2_r): Remove flags argument. Adjust call
444 to parse_line.
445 (_nss_nis_gethostbyname2_r): Adjust call to
446 internal_nis_gethostent_r.
447 (_nss_nis_gethostbyname_r): Do not attempt IPv6 query. Adjust
448 call to internal_nis_gethostent_r.
449 (_nss_nis_gethostbyaddr_r): Do not request IPv4 address mapping
450 from parse_line.
451 (_nss_nis_gethostbyname4_r):Adjust call to parse_line.
452 * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_parse_hostent):
453 Remove flags argument. Do not map IPv4 addresses.
454 (internal_nisplus_gethostent_r): Adjust call to
455 _nss_nisplus_parse_hostent.
456 (internal_gethostbyname2_r): Remove flags argument. Adjust call
457 to _nss_nisplus_parse_hostent.
458 (_nss_nisplus_gethostbyname2_r): Adjust call to
459 internal_gethostbyname2_r.
460 (_nss_nisplus_gethostbyname_r): Do not perform IPv6 lookup.
461 Adjust call to internal_gethostbyname2_r.
462 (_nss_nisplus_gethostbyaddr_r): Adjust call to
463 _nss_nisplus_parse_hostent.
464 (_nss_nisplus_gethostbyname4_r): Adjust call to
465 internal_gethostbyname2_r.
466
467 2019-05-16 Florian Weimer <fweimer@redhat.com>
468
469 * nss/nss_files/files-hosts.c (EXTRA_ARGS, EXTRA_ARGS_DECL):
470 Remove flags.
471 (LINE_PARSER): Remove address mapping.
472 (EXTRA_ARGS_VALUE): Remove flags argument.
473 (gethostbyname3_multi): Likewise. Adjust call to internal_getent.
474 (_nss_files_gethostbyname3_r): Adjust calls to internal_getent and
475 gethostbyname3_multi.
476 (_nss_files_gethostbyname_r): Always use AF_INET. Adjust call to
477 _nss_files_gethostbyname3_r.
478 (_nss_files_gethostbyname4_r): Adjust call to internal_getent.
479
480 2019-05-16 Florian Weimer <fweimer@redhat.com>
481
482 * support/support_test_compare_blob.c (report_blob): Report
483 incorrect NULL blobs.
484
485 2019-05-15 Mark Wielaard <mark@klomp.org>
486
487 [BZ# 24476]
488 * dlfcn/dlerror.c (__dlerror_main_freeres): Guard using
489 __libc_once_get (once) and static_buf == NULL.
490 (__dlerror): Check we have a valid key, set result to static_buf
491 otherwise.
492
493 2019-05-15 Andreas Schwab <schwab@suse.de>
494
495 [BZ #20568]
496 * libio/wfileops.c (_IO_wfile_sync): Correct last argument to
497 __codecvt_do_length.
498 * libio/Makefile (tests): Add tst-wfile-sync.
499 ($(objpfx)tst-wfile-sync.out): Depend on $(gen-locales).
500 * libio/tst-wfile-sync.c: New file.
501 * libio/tst-wfile-sync.input: New file.
502
503 2019-05-15 Florian Weimer <fweimer@redhat.com>
504
505 nss: Turn __nss_database_lookup into a compatibility symbol.
506 * nss/nsswitch.h (__nss_database_lookup2): Renamed from
507 __nss_database_lookup.
508 * nss/nsswitch.c (__nss_database_lookup2): Likewise.
509 (nss_load_all_libraries): Call __nss_database_lookup2 instead of
510 __nss_database_lookup.
511 (__nss_next): Move to …
512 * nss/compat-lookup.c (nss_next): … here. Change it to fail
513 unconditionally.
514 (__nss_database_lookup): New function.
515 * nss/Versions (GLIBC_2.0): Update comment.
516 (GLIBC_PRIVATE): Export __nss_database_lookup2.
517 * grp/initgroups.c (internal_getgrouplist): Call
518 __nss_database_lookup2 instead of __nss_database_lookup.
519 * nscd/aicache.c (addhstaiX): Likewise.
520 * nscd/initgrcache.c (addinitgroupsX): Likewise.
521 * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
522 * nss/XXX-lookup.c (DB_LOOKUP_FCT): Likewise.
523 * nss/nss_compat/compat-grp.c (init_nss_interface): Likewise.
524 * nss/nss_compat/compat-initgroups.c (init_nss_interface):
525 Likewise.
526 * nss/nss_compat/compat-pwd.c (init_nss_interface): Likewise.
527 * nss/nss_compat/compat-spwd.c (init_nss_interface): Likewise.
528 * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
529
530 2019-05-15 Alexandra Hajkova <ahajkova@redhat.com>
531
532 * support/support.h (support_install_rootsbindir): New variable.
533 * support/support_paths.c: Likewise.
534 * support/Makefile (CFLAGS-support_paths.c): Add -DROOTSBINDIR_PATH.
535
536 2019-05-15 Florian Weimer <fweimer@redhat.com>
537
538 * iconv/gconv.h (__gconv_transliterate): Move declaration …
539 * iconv/gconv_int.h (__gconv_transliterate): … here.
540 * iconv/loop.c: Include <iconv/gconv_int.h> instead of <gconv.h>.
541 * iconv/skeleton.c: Likewise.
542
543 2019-05-14 Florian Weimer <fweimer@redhat.com>
544
545 Linux: Add the tgkill function.
546 * bits/signal_ext.h: New file.
547 * manual/signal.texi (Signaling Another Process): Document tgkill.
548 * signal/Makefile (headers): Add bits/signal_ext.h.
549 * signal/signal.h: Include <bits/signal_ext.h>.
550 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-tgkill.
551 (tst-tgkill): Link with libpthread.
552 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.30): Export tgkill.
553 * sysdeps/unix/sysv/linux/bits/signal_ext.h: New file.
554 * sysdeps/unix/sysv/linux/bits/tst-tgkill.c: Likewise.
555 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30): Add
556 tgkill.
557 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
558 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
559 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
560 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
561 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
562 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
563 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
564 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
565 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
566 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
567 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
568 Likewise.
569 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
570 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
571 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
573 Likewise.
574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
575 Likewise.
576 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist:
577 Likewise.
578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist:
579 Likewise.
580 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
581 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
582 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
583 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
584 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
585 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
586 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
587 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
588
589 2019-05-14 Carlos O'Donell <carlos@redhat.com>
590
591 * manual/search.texi (Tree Search Function): Adjust twalk_r
592 documentation.
593
594 2019-05-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
595
596 [BZ #24544]
597 * elf/tst-pldd.c (do_test): Use support_bindir_prefix instead of
598 pre-defined value.
599
600 * support/Makefile (CFLAGS-support_paths.c): Add -DBINDIR_PATH.
601 * support/support.h (support_bindir_prefix): New variable.
602 * support/support_paths.c [BINDIR_PATH] (support_bindir_prefix):
603
604 * config.make.in (bindir): New variable.
605
606 * sysdeps/nptl/lowlevellock.h (__lll_trylock): New macro.
607 (lll_trylock): Call __lll_trylock.
608 * sysdeps/unix/sysv/linux/i386/libc-lowlevellock.S: Remove file.
609 * sysdeps/unix/sysv/linux/i386/lll_timedlock_wait.c: Likewise.
610 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
611 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
612 * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Likewise.
613 * sysdeps/unix/sysv/linux/x86_64/lll_timedlock_wait.c: Likewise.
614 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
615 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
616 * sysdeps/unix/sysv/linux/x86/lowlevellock.h: New file.
617 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Include
618 lowlevellock-futex.h.
619
620 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
621 initialization for LLL_LOCK_INITIALIZER different than 0.
622 * nptl/old_pthread_cond_broadcast.c (__pthread_cond_broadcast_2_0):
623 Assume LLL_LOCK_INITIALIZER being 0.
624 * nptl/old_pthread_cond_signal.c (__pthread_cond_signal_2_0): Likewise.
625 * nptl/old_pthread_cond_timedwait.c (__pthread_cond_timedwait_2_0):
626 Likewise.
627 * nptl/old_pthread_cond_wait.c (__pthread_cond_wait_2_0): Likewise.
628 * sysdeps/nptl/libc-lockP.h (__libc_lock_define_initialized): Likewise.
629
630 * nptl/lowlevellock.c (__lll_lock_wait, __lll_lock_wait_private):
631 Optimize futex call and add systemtap probe.
632
633 * nptl/pthreadP.h (CANCEL_ASYNC, CANCEL_RESET, LIBC_CANCEL_ASYNC,
634 LIBC_CANCEL_RESET, __libc_enable_asynccancel,
635 __libc_disable_asynccancel, __librt_enable_asynccancel,
636 __libc_disable_asynccancel, __librt_enable_asynccancel,
637 __librt_disable_asynccancel): Move to ...
638 * sysdeps/unix/sysv/linux/sysdep-cancel.h: ... here.
639 (SINGLE_THREAD_P, RTLD_SINGLE_THREAD_P): Move to ...
640 * sysdeps/unix/sysv/linux/single-thread.h: ... here.
641 * sysdeps/generic/single-thread.h: New file.
642 * sysdeps/unix/sysdep.h: Include single-thread.h.
643 * sysdeps/unix/sysv/linux/futex-internal.h: Include sysdep-cancel.h.
644 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
645
646 2019-05-08 Mike FABIAN <mfabian@redhat.com>
647
648 [BZ #24535]
649 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.1.0.
650 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
651 Unicode 12.1.0.
652 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
653 * localedata/unicode-gen/PropList.txt: Likewise.
654 * localedata/unicode-gen/UnicodeData.txt: Likewise.
655 * localedata/charmaps/UTF-8: Regenerate.
656 * localedata/locales/i18n_ctype: Likewise.
657 * localedata/locales/tr_TR: Likewise.
658 * localedata/locales/translit_circle: Likewise.
659 * localedata/locales/translit_cjk_compat: Likewise.
660 * localedata/locales/translit_combining: Likewise.
661 * localedata/locales/translit_compat: Likewise.
662 * localedata/locales/translit_font: Likewise.
663 * localedata/locales/translit_fraction: Likewise.
664
665 2019-05-10 Wilco Dijkstra <wdijkstr@arm.com>
666
667 [BZ #24531]
668 * malloc/malloc.c (MAX_TCACHE_COUNT): New define.
669 (do_set_tcache_count): Only update if count is small enough.
670 * manual/tunables.texi (glibc.malloc.tcache_count): Document max value.
671
672 2019-05-10 Florian Weimer <fweimer@redhat.com>
673
674 * nptl/sem_close.c (struct walk_closure): Define.
675 (walker): Adjust for __twalk_r.
676 (sem_close): Call __twalk_r.
677
678 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
679
680 * support/timespec.c (test_timespec_before_impl,
681 test_timespec_equal_or_after_impl): print timespec member as intmax_t
682 insted of long int.
683
684 2019-05-09 Mike Crowe <mac@mcrowe.com>
685
686 * nptl/tst-abstime.c: Use libsupport.
687
688 * nptl/tst-rwlock6.c: Use libsupport. This also happens to fix a
689 small bug where only tv.tv_usec was checked which could cause an
690 erroneous pass if pthread_rwlock_timedrdlock incorrectly took more
691 than a second.
692
693 * nptl/tst-rwlock7.c, nptl/tst-rwlock9.c, nptl/tst-rwlock14.c: Use
694 libsupport.
695
696 * nptl/tst-sem5.c (do_test): Use xclock_gettime, timespec_add and
697 TEST_TIMESPEC_NOW_OR_AFTER from libsupport.
698
699 * nptl/tst-cond11.c: Use libsupport.
700
701 * support/timespec.h: New file. Provide timespec helper functions
702 along with macros in the style of those in check.h.
703 * support/timespec.c: New file. Implement check functions declared
704 in support/timespec.h.
705 * support/timespec-add.c: New file from gnulib containing
706 timespec_add implementation that handles overflow.
707 * support/timespec-sub.c: New file from gnulib containing
708 timespec_sub implementation that handles overflow.
709 * support/README: Mention timespec.h.
710
711 2019-05-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
712
713 [BZ #24537]
714 * nptl/Makefile: Move tst-eintr1 to xtests.
715
716 2019-05-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
717
718 * sysdeps/powerpc/fpu/trunc_to_integer.h (set_fenv_mode): Add
719 TRUNC handling.
720 (round_mode): Add definition for TRUNC.
721 * sysdeps/powerpc/fpu/s_trunc.c: New file.
722 * sysdeps/powerpc/fpu/s_truncf.c: New file.
723 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Remove file.
724 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
725 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.S:
726 Likewise.
727 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.S:
728 Likewise.
729 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.S:
730 Likewise.
731 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.S:
732 Likewise.
733 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-power5+.c: New
734 file.
735 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_trunc-ppc32.c:
736 Likewise.
737 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-power5+.c:
738 Likewise.
739 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_truncf-ppc32.c:
740 Likewise.
741 * sysdep/powerpc/powerpc32/power5+/fpu/s_trunc.S: Remove file.
742 * sysdep/powerpc/powerpc32/power5+/fpu/s_truncf.S: Likewise.
743 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
744 (libm-sysdep_routines): Add s_trunc-power5+, s_trunc-ppc64,
745 s_truncf-power5+, and s_truncf-ppc64.
746 (CFLAGS-s_trunc-power5+.c, CFLAGS-s_truncf-power5+.c): New rule.
747 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-power5+.c: New
748 file.
749 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_trunc-ppc64.c: Likewise.
750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Move to ...
751 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_trunc.c: ... here.
752 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-power5+.c: New
753 file.
754 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_truncf-ppc64.c:
755 Likewise.
756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Move to ...
757 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_truncf.c: ... here.
758 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
759 (libm-sysdep_routines): Remove s_trunc-power5+, s_trunc-ppc64,
760 s_truncf-power5+, and s_truncf-ppc64.
761 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Remove
762 file.
763 * sysdep/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
764 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S:
765 Likewise.
766 * sysdep/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
767 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
768 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
769 * sysdep/powerpc/powerpc64/power5+/fpu/s_trunc.S: Likewise.
770 * sysdep/powerpc/powerpc64/power5+/fpu/s_truncf.S: Likewise.
771
772 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode): Add
773 ROUND handling.
774 (round_mode): Add definition for ROUND.
775 (round_to_integer_float): Likewise.
776 * sysdeps/powerpc/fpu/s_round.c: New file.
777 * sysdeps/powerpc/fpu/s_roundf.c: New file.
778 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Remove file.
779 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
780 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.S:
781 Likewise.
782 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.S:
783 Likewise.
784 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.S:
785 Likewise.
786 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.S:
787 Likewise.
788 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-power5+.c: New
789 file.
790 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_round-ppc32.c:
791 Likewise.
792 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-power5+.c:
793 Likewise.
794 * sysdep/powerpc/powepc32/power4/fpu/multiarch/s_roundf-ppc32.c:
795 Likewise.
796 * sysdep/powerpc/powerpc32/power5+/fpu/s_round.S: Remove file.
797 * sysdep/powerpc/powerpc32/power5+/fpu/s_roundf.S: Likewise.
798 * sysdep/powerpc/powerpc64/be/fpu/multiarch/Makefile
799 (libm-sysdep_routines): Add s_round-power5+, s_round-ppc64,
800 s_roundf-power5+, and s_roundf-ppc64.
801 (CFLAGS-s_round-power5+.c, CFLAGS-s_roundf-power5+.c): New rule.
802 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-power5+.c: New
803 file.
804 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_round-ppc64.c: Likewise.
805 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Move to ...
806 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_round.c: ... here.
807 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-power5+.c: New
808 file.
809 * sysdep/powerpc/powercp64/be/fpu/multiarch/s_roundf-ppc64.c:
810 Likewise.
811 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Move to ...
812 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_roundf.c: ... here.
813 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
814 (libm-sysdep_routines): Remove s_round-power5+, s_round-ppc64,
815 s_roundf-power5+, and s_roundf-ppc64.
816 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Remove
817 file.
818 * sysdep/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
819 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S:
820 Likewise.
821 * sysdep/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
822 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
823 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
824 * sysdep/powerpc/powerpc64/power5+/fpu/s_round.S: Likewise.
825 * sysdep/powerpc/powerpc64/power5+/fpu/s_roundf.S: Likewise.
826
827 * sysdeps/powerpc/fpu/round_to_integer.h (set_fenv_mode):
828 Add FLOOR option.
829 (round_mode): Add definition for FLOOR.
830 * sysdeps/powerpc/fpu/s_floor.c: New file.
831 * sysdeps/powerpc/fpu/s_floorf.c: Likewise.
832 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Remove file.
833 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
834 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
835 Remove file.
836 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S:
837 Likewise
838 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
839 Likewise.
840 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
841 Likewise.
842 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.c:
843 New file.
844 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.c:
845 Likewise.
846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.c:
847 Likewise.
848 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.c:
849 Likewise.
850 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Remove file.
851 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Remove file.
852 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile
853 (libm-sysdep_routines): Add s_floor-power5+, s_floor-ppc64,
854 s_floorf-power5+, and s_floorf-ppc64.
855 (CFLAGS-s_floor-power5+.c, CFLAGS-s_floorf-power5+.c): New rule.
856 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-power5+.c: New
857 file.
858 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floor-ppc64.c: Likewise.
859 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Move to ...
860 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floor.c: ... here.
861 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-power5+.c: New
862 file.
863 * sysdep/powerpc/powerpc64/be/fpu/multiarch/s_floorf-ppc64.c:
864 Likewise.
865 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Move to ...
866 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_floorf.c: ... here.
867 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
868 (libm-sysdep_routines): Remove s_floor-power5+, s_floor-ppc64,
869 s_floorf-power5+, and s_floorf-ppc64.
870 * sysdep/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Remove
871 file.
872 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Remove
873 file.
874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S:
875 Likewise.
876 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S:
877 Likewise.
878 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
879 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
880 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Likewise.
881 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Likewise.
882
883 2019-05-08 Mike Crowe <mac@mcrowe.com>
884
885 * support/xclock_gettime.c (xclock_gettime): New file. Provide
886 clock_gettime wrapper for use in tests that fails the test rather
887 than returning failure.
888
889 * support/xtime.h: New file to declare xclock_gettime.
890
891 * support/Makefile: Add xclock_gettime.c.
892
893 * support/README: Mention xtime.h.
894
895 2019-05-08 Florian Weimer <fweimer@redhat.com>
896
897 malloc/tst-mallocfork2: Use process-shared barriers.
898 * malloc/tst-mallocfork2.c: Switch to <support/test-driver.c>.
899 (signal_count, sigusr1_sender_pid): Remove.
900 (iterations): Define constant.
901 (shared): New variable.
902 (sigusr1_received): Update comment.
903 (sigusr1_handler): Do not send SIGSTOP to the sender process.
904 (signal_sender): Optional use barriers to avoid sending signals
905 during irrelevant times.
906 (do_it): Initialize variable shared. Use xfork for error
907 checking. Launch multiple SIGUSR1-sending subprocesses. Limit
908 the iteration count, independent of signal delivery. Check for
909 deadlocks in fork. Introduce barriers for reducing signal
910 traffic. Do not send SIGCONT to the SIGUSR1-sending processes;
911 replaced by the barriers. Count signals during fork/free/malloc
912 and report them.
913 * malloc/Makefile (tst-mallocfork): Link with libpthread.
914
915 2019-05-07 Joseph Myers <joseph@codesourcery.com>
916
917 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
918 version to 5.1.
919 (clock_adjtime64) New syscall.
920 (clock_getres_time64) Likewise.
921 (clock_gettime64) Likewise.
922 (clock_nanosleep_time64) Likewise.
923 (clock_settime64) Likewise.
924 (futex_time64) Likewise.
925 (io_pgetevents_time64) Likewise.
926 (io_uring_enter) Likewise.
927 (io_uring_register) Likewise.
928 (io_uring_setup) Likewise.
929 (mq_timedreceive_time64) Likewise.
930 (mq_timedsend_time64) Likewise.
931 (pidfd_send_signal) Likewise.
932 (ppoll_time64) Likewise.
933 (pselect6_time64) Likewise.
934 (recvmmsg_time64) Likewise.
935 (rt_sigtimedwait_time64) Likewise.
936 (sched_rr_get_interval_time64) Likewise.
937 (semtimedop_time64) Likewise.
938 (timer_gettime64) Likewise.
939 (timer_settime64) Likewise.
940 (timerfd_gettime64) Likewise.
941 (timerfd_settime64) Likewise.
942 (utimensat_time64) Likewise.
943
944 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
945 version to 9 branch.
946
947 2019-05-03 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
948
949 * sysdeps/aarch64/multiarch/ifunc-impl-list.c: Added
950 __memmove_thunderx2 to the list of implementations
951 * sysdeps/aarch64/multiarch/memmove.c: Likewise
952 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S:
953 (__memmove_thunderx2): Rewritten using SIMD ld/st
954 (__memcpy_thunderx2): Fixed handling overlapping cases.
955 Used ldp/stp instead of ldr/str if possible. Made loops
956 tails branchless.
957
958 2019-05-03 Florian Weimer <fweimer@redhat.com>
959
960 * misc/tst-tsearch.c (walk_tree): Add more error checking.
961
962 2019-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
963
964 [BZ #24506]
965 * elf/tst-pldd.c (in_str_list): New function.
966 (do_test): Add default names for ld and libc as one option.
967
968 2019-05-02 Florian Weimer <fweimer@redhat.com>
969
970 misc: Add twalk_r function.
971 * include/search.h (__twalk_r): Declare.
972 * manual/examples/twalk.c: New file.
973 * manual/search.texi (Tree Search Function): Document twalk_r.
974 * misc/Versions (2.30): Export twalk_r.
975 (GLIBC_PRIVATE): Export __twalk_r.
976 * misc/search.h [__USE_GNU] (twalk_r): Declare.
977 * misc/tsearch.c (trecurse_r, __twalk_r): New functions.
978 (twalk_r): Add weak alias.
979 * misc/tst-tsearch.c (struct walk_trace_element): Define.
980 (walk_trace): New variable.
981 (struct twalk_with_twalk_r_closure): Define.
982 (twalk_with_twalk_r_action): New function.
983 (twalk_with_twalk_r): Likewise.
984 (walk_action): Call walk_trace_add.
985 (walk_tree_with): Rename from walk_tree. Add walk argument.
986 (walk_tree): New function.
987 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.30): Add twalk_r.
988 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
989 Likewise.
990 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
991 Likewise.
992 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
993 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30): Likewise.
994 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30): Likewise.
995 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30): Likewise.
996 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30): Likewise.
997 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
998 Likewise.
999 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1000 Likewise.
1001 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1002 Likewise.
1003 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1004 (GLIBC_2.30): Likewise.
1005 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1006 (GLIBC_2.30): Likewise.
1007 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1008 (GLIBC_2.30): Likewise.
1009 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1010 (GLIBC_2.30): Likewise.
1011 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1014 (GLIBC_2.30): Likewise.
1015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1016 (GLIBC_2.30): Likewise.
1017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1018 (GLIBC_2.30): Likewise.
1019 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1020 (GLIBC_2.30): Likewise.
1021 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1022 Likewise.
1023 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1024 Likewise.
1025 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1026 Likewise.
1027 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1028 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1029 Likewise.
1030 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1031 Likewise.
1032 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1033 Likewise.
1034 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1035 Likewise.
1036
1037 2019-04-30 Paul Eggert <eggert@cs.ucla.edu>
1038
1039 Make mktime etc. compatible with __time64_t
1040 Keep these functions compatible with Gnulib while adding
1041 __time64_t support. The basic idea is to move private API
1042 declarations from include/time.h to time/mktime-internal.h, since
1043 the former file cannot easily be shared with Gnulib whereas the
1044 latter can.
1045 Also, do some other minor cleanup while in the neighborhood.
1046 * include/time.h: Include stdbool.h, time/mktime-internal.h.
1047 (__mktime_internal): Move this prototype to time/mktime-internal.h,
1048 since Gnulib needs it.
1049 (__localtime64_r, __gmtime64_r) [__TIMESIZE == 64]:
1050 Move these macros to time/mktime-internal.h, since Gnulib needs them.
1051 (__mktime64, __timegm64) [__TIMESIZE != 64]: New prototypes.
1052 (in_time_t_range): New static function.
1053 * posix/bits/types.h (__time64_t): Move to time/mktime-internal.h,
1054 so that glibc users are not tempted to use __time64_t.
1055 * time/mktime-internal.h: Rewrite so that it does both glibc
1056 and Gnulib work. Include time.h if not _LIBC.
1057 (mktime_offset_t) [!_LIBC]: Define for gnulib.
1058 (__time64_t): New type or macro, moved here from
1059 posix/bits/types.h.
1060 (__gmtime64_r, __localtime64_r, __mktime64, __timegm64)
1061 [!_LIBC || __TIMESIZE == 64): New macros, mostly moved here
1062 from include/time.h.
1063 (__gmtime_r, __localtime_r, __mktime_internal) [!_LIBC]:
1064 New macros, taken from GNulib.
1065 (__mktime_internal): New prototype, moved here from include/time.h.
1066 * time/mktime.c (mktime_min, mktime_max, convert_time)
1067 (ranged_convert, __mktime_internal, __mktime64):
1068 * time/timegm.c (__timegm64):
1069 Use __time64_t, not time_t.
1070 * time/mktime.c: Stop worrying about whether time_t is floating-point.
1071 (__mktime64) [! (_LIBC && __TIMESIZE != 64)]:
1072 Rename from mktime.
1073 (mktime) [_LIBC && __TIMESIZE != 64]: New function.
1074 * time/timegm.c [!_LIBC]: Include libc-config.h, not config.h,
1075 for libc_hidden_def.
1076 Include errno.h.
1077 (__timegm64) [! (_LIBC && __TIMESIZE != 64)]:
1078 Rename from timegm.
1079 (timegm) [_LIBC && __TIMESIZE != 64]: New function.
1080
1081 2019-04-30 Maciej W. Rozycki <macro@wdc.com>
1082
1083 [BZ #19444]
1084 * sysdeps/ieee754/soft-fp/s_ddivl.c (__ddivl): Ignore errors
1085 from `-Wmaybe-uninitialized'.
1086 * sysdeps/ieee754/soft-fp/s_fdivl.c (__fdivl): Likewise.
1087
1088 2019-04-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1089
1090 * sysdeps/powerpc/fpu/fenv_libc.h (__fesetround_inline_nocheck): New
1091 function.
1092 * sysdeps/powerpc/fpu/round_to_integer.h: New file.
1093 * sysdeps/powerpc/fpu/s_ceil.c: Likewise.
1094 * sysdeps/powerpc/fpu/s_ceilf.c: Likewise.
1095 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Remove file.
1096 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
1097 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
1098 (CFLAGS-s_ceil-power5+.c, CFLAGS-s_ceilf-power5+.c): New rule.
1099 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
1100 Remove file.
1101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S:
1102 Likewise.
1103 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
1104 Likewise.
1105 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S:
1106 Likewise.
1107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.c:
1108 New file.
1109 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.c:
1110 Likewise.
1111 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.c:
1112 Likewise.
1113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.c:
1114 Likewise.
1115 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Remove file.
1116 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Likewise.
1117 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Makefile: New file.
1118 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-power5+.c:
1119 Likewise.
1120 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil-ppc64.c:
1121 Likewise.
1122 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Move to ...
1123 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceil.c: ... here.
1124 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-power5+.c: New
1125 file.
1126 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf-ppc64.c:
1127 Likewise.
1128 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Move to ...
1129 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/s_ceilf.c: ...
1130 * here.
1131 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
1132 (libm-sysdep_routines): Remove s_ceil-power5+, s_ceil-ppc64,
1133 s_ceilf-power5+, and s_ceilf-ppc64.
1134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Remove
1135 file.
1136 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
1137 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
1138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
1139 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Likewise.
1140 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Likewise.
1141 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Likewise.
1142 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Likewise.
1143
1144 * sysdeps/powerpc/power4/fpu/Makefile: Remove file.
1145 * sysdeps/powerpc/power4/fpu/mpa-arch.h: Likewise.
1146 * sysdeps/powerpc/power4/fpu/mpa.c: Likewise.
1147
1148 2019-04-29 Yann Droneaud <ydroneaud@opteya.com>
1149
1150 * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute.
1151 (sem_destroy, sem_open, sem_close, sem_unlink): Likewise.
1152 (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise.
1153 (sem_getvalue): Likewise.
1154
1155 2019-04-26 Florian Weimer <fweimer@redhat.com>
1156
1157 elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.
1158 * elf/Makefile (LDFLAGS-sotruss-lib.so): Set.
1159
1160 2019-04-26 Florian Weimer <fweimer@redhat.com>
1161
1162 Makeconfig: Move -Wl,-rpath-link options before library references.
1163 * Makeconfig (+link-pie, +link): Add $(link-libc-rpath-link).
1164 (link-libc): Remove $(link-libc-rpath-link).
1165
1166 2019-04-25 Florian Weimer <fweimer@redhat.com>
1167
1168 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1169 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1170 (+link-static-before-libc): Remove $(CC).
1171 (+link-static, +link-static-tests): Add $(CC).
1172 (+link-before-libc): Remove $(CC).
1173 (+link, +link-pie, +link-pie-printers): Add $(CC).
1174
1175 2019-04-26 Florian Weimer <fweimer@redhat.com>
1176
1177 * Makeconfig (+link-pie-before-libc): Remove $(CC).
1178 (+link-pie, +link-pie-tests, +link-pie-printers-tests): Add $(CC).
1179 (+link-static-before-libc): Remove $(CC).
1180 (+link-static, +link-static-tests): Add $(CC).
1181 (+link-before-libc): Remove $(CC).
1182 (+link, +link-pie, +link-pie-printers): Add $(CC).
1183
1184 2019-04-25 David Abdurachmanov <david.abdurachmanov@gmail.com>
1185
1186 [BZ#24484]
1187 * sysdeps/riscv/ldsodefs.h (DL_RO_DYN_SECTION): Remove.
1188
1189 2019-04-25 Florian Weimer <fweimer@redhat.com>
1190
1191 benchtests: Enable BIND_NOW if configured with --enable-bind-now.
1192 * benchtests/Makefile [$(bind-now)] (link-bench-bind-now): Set.
1193 (bench-link-targets): New variable.
1194 ($(binaries-bench) …): Use it. Set LDFLAGS accordingly.
1195
1196 2019-04-25 Florian Weimer <fweimer@redhat.com>
1197
1198 Also enable BIND_NOW for programs if --enable-bind-now.
1199 * Makeconfig [$(bind-now)] (link-extra-flags): Add -Wl,-z,now.
1200 (+link-pie): Use $(link-extra-flags).
1201 (+link-static): Likewise.
1202 [! $(build-pie-default)] (+link): Likewise.
1203 * manual/install.texi (Configuring and compiling): Update
1204 --enable-bind-now description.
1205 * INSTALL: Regenerated.
1206
1207 2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
1208
1209 * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
1210 * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
1211
1212 2019-04-24 Mike Frysinger <vapier@gentoo.org>
1213
1214 [BZ #18465]
1215 * malloc/Makefile (others): Add memusagestat.
1216 ($(objpfx)memusagestat): Delete rule.
1217 (LDLIBS-memusagestat): New variable.
1218
1219 2019-04-24 Florian Weimer <fweimer@redhat.com>
1220
1221 * locale/Makefile (tests-special): Guard setting by
1222 $(run-built-tests) == yes, otherwise tst-locale-locpath attempts
1223 to run while cross-compiling.
1224
1225 2019-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1226
1227 [BZ #18035]
1228 * elf/Makefile (tests-container): Add tst-pldd.
1229 * elf/pldd-xx.c: Use _Static_assert in of pldd_assert.
1230 (E(find_maps)): Avoid use alloca, use default read file operations
1231 instead of explicit LFS names, and fix infinite loop.
1232 * elf/pldd.c: Explicit set _FILE_OFFSET_BITS, cleanup headers.
1233 (get_process_info): Use _Static_assert instead of assert, use default
1234 directory operations instead of explicit LFS names, and free some
1235 leadek pointers.
1236 * elf/tst-pldd.c: New file.
1237
1238 2019-04-23 H.J. Lu <hongjiu.lu@intel.com>
1239
1240 * malloc/arena.c (do_set_mallopt_check): Removed.
1241
1242 2019-04-23 Florian Weimer <fweimer@redhat.com>
1243
1244 locale: Add LOCPATH diagnostics to the locale program.
1245 * locale/programs/locale.c (setlocale_failed): New variable.
1246 (try_setlocale): New function.
1247 (quote_string): Likewise.
1248 (setlocale_diagnostics): Likewise.
1249 (main): Call try_setlocale instead of setlocale. Call
1250 setlocale_diagnostics.
1251 * locale/Makefile (tests-special): Add tst-locale-locpath.out.
1252 (tst-locale-locpath.out): New target.
1253 * locale/tst-locale-locpath.sh: New file.
1254
1255 2019-04-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1256
1257 * NEWS: Move memory allocation changes of BZ#23741 from 2.29
1258 to 2.30 notes.
1259
1260 2019-04-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1261
1262 [BZ #23741]
1263 * malloc/hooks.c (malloc_check, realloc_check): Use
1264 __builtin_add_overflow on overflow check and adapt to
1265 checked_request2size change.
1266 * malloc/malloc.c (__libc_malloc, __libc_realloc, _mid_memalign,
1267 __libc_pvalloc, __libc_calloc, _int_memalign): Limit maximum
1268 allocation size to PTRDIFF_MAX.
1269 (REQUEST_OUT_OF_RANGE): Remove macro.
1270 (checked_request2size): Change to inline function and limit maximum
1271 requested size to PTRDIFF_MAX.
1272 (__libc_malloc, __libc_realloc, _int_malloc, _int_memalign): Limit
1273 maximum allocation size to PTRDIFF_MAX.
1274 (_mid_memalign): Use _int_memalign call for overflow check.
1275 (__libc_pvalloc): Use __builtin_add_overflow on overflow check.
1276 (__libc_calloc): Use __builtin_mul_overflow for overflow check and
1277 limit maximum requested size to PTRDIFF_MAX.
1278 * malloc/malloc.h (malloc, calloc, realloc, reallocarray, memalign,
1279 valloc, pvalloc): Add __attribute_alloc_size__.
1280 * stdlib/stdlib.h (malloc, realloc, reallocarray, valloc): Likewise.
1281 * malloc/tst-malloc-too-large.c (do_test): Add check for allocation
1282 larger than PTRDIFF_MAX.
1283 * malloc/tst-memalign.c (do_test): Disable -Walloc-size-larger-than=
1284 around tests of malloc with negative sizes.
1285 * malloc/tst-posix_memalign.c (do_test): Likewise.
1286 * malloc/tst-pvalloc.c (do_test): Likewise.
1287 * malloc/tst-valloc.c (do_test): Likewise.
1288 * malloc/tst-reallocarray.c (do_test): Replace call to reallocarray
1289 with resulting size allocation larger than PTRDIFF_MAX with
1290 reallocarray_nowarn.
1291 (reallocarray_nowarn): New function.
1292 * NEWS: Mention the malloc function semantic change.
1293
1294 2019-04-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1295
1296 * sysdeps/powerpc/fpu/s_fma.c: Fix format.
1297 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1298
1299 * sysdeps/powerpc/fpu/s_fma.S: Remove file.
1300 * sysdeps/powerpc/fpu/s_fmaf.S: Likewise.
1301 * sysdeps/powerpc/fpu/s_fma.c: New file.
1302 * sysdeps/powerpc/fpu/s_fmaf.c: Likewise.
1303
1304 * sysdeps/powerpc/fpu/s_fabs.S: Remove file.
1305 * sysdeps/powerpc/fpu/s_fabsf.S: Likewise.
1306
1307 * sysdeps/unix/sysv/linux/mips/getcontext.S (__getcontext): Remove
1308 the magic flag store.
1309 * sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
1310 Likewise.
1311 * sysdeps/unix/sysv/linux/mips/swapcontext.S (__swapcontext):
1312 Likewise.
1313 * sysdeps/unix/sysv/linux/mips/setcontext.S (__setcontext):
1314 Remove rt_sigreturn call.
1315
1316 * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
1317 Remove rt_sigreturn call.
1318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
1319 Likewise.
1320 * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewie.
1321 * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1322
1323 * support/Makefile (libsupport-routines): Add support_subprocess,
1324 xposix_spawn, xposix_spawn_file_actions_addclose, and
1325 xposix_spawn_file_actions_adddup2.
1326 (tst-support_capture_subprocess-ARGS): New rule.
1327 * support/capture_subprocess.h (support_capture_subprogram): New
1328 prototype.
1329 * support/support_capture_subprocess.c (support_capture_subprocess):
1330 Refactor to use support_subprocess and support_capture_poll.
1331 (support_capture_subprogram): New function.
1332 * support/tst-support_capture_subprocess.c (write_mode_to_str,
1333 str_to_write_mode, test_common, parse_int, handle_restart,
1334 do_subprocess, do_subprogram, do_multiple_tests): New functions.
1335 (do_test): Add support_capture_subprogram tests.
1336 * support/subprocess.h: New file.
1337 * support/support_subprocess.c: Likewise.
1338 * support/xposix_spawn.c: Likewise.
1339 * support/xposix_spawn_file_actions_addclose.c: Likewise.
1340 * support/xposix_spawn_file_actions_adddup2.c: Likewise.
1341 * support/xspawn.h: Likewise.
1342
1343 2019-04-17 Mike Gerow <gerow@google.com>
1344
1345 * stdlib/tst-secure-getenv.c (choose_gid): Remove 64 supplemental
1346 groups limit.
1347
1348 2019-04-11 Florian Weimer <fweimer@redhat.com>
1349
1350 * resolv/nss_dns/dns-network.c (getanswer_r): Do not replace root
1351 domain with empty string.
1352 * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1353
1354 2019-04-11 Florian Weimer <fweimer@redhat.com>
1355
1356 * include/alloc_buffer.h (alloc_buffer_alloc_bytes): Update
1357 comment.
1358 (alloc_buffer_next): Change return type to non-const. Update
1359 comment.
1360
1361 2019-04-10 TAMUKI Shoichi <tamuki@linet.gr.jp>
1362
1363 * manual/time.texi (Formatting Calendar Time): Add missing percent
1364 sign to conversion specifier.
1365
1366 2019-04-09 Carlos O'Donell <carlos@redhat.com>
1367 Kwok Cheung Yeung <kcy@codesourcery.com>
1368
1369 [BZ #16573]
1370 * malloc/mtrace.c: Define prototypes for all hooks.
1371 (set_default_hooks): New function.
1372 (set_trace_hooks): Likewise.
1373 (save_default_hooks): Likewise.
1374 (tr_freehook): Use new s*_hooks functions.
1375 (tr_mallochook): Likewise.
1376 (tr_reallochook): Likewise.
1377 (tr_memalignhook): Likewise.
1378 (mtrace): Likewise.
1379 (muntrace): Likewise.
1380
1381 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1382
1383 * benchtests/bench-stpcpy.c (SIMPLE_STPCPY): Remove function.
1384 (generic_stpcpy): New function.
1385 * benchtests/bench-stpncpy.c (SIMPLE_STPNCPY): Remove function.
1386 (generic_stpncpy): New function.
1387 * benchtests/bench-strcat.c (SIMPLE_STRCAT): Remove function.
1388 (generic_strcat): New function.
1389 * benchtests/bench-strcpy.c (SIMPLE_STRCPY): Remove function.
1390 (generic_strcpy): New function.
1391 * benchtests/bench-strncat.c (SIMPLE_STRNCAT): Remove function.
1392 (STUPID_STRNCAT): Remove function.
1393 (generic_strncat): New function.
1394 * benchtests/bench-strncpy.c (SIMPLE_STRNCPY): Remove function.
1395 (STUPID_STRNCPY): Remove function.
1396 (generic_strncpy): New function.
1397 * benchtests/bench-strnlen.c (SIMPLE_STRNLEN): Remove function.
1398 (generic_strnlen): New function.
1399 (memchr_strnlen): New function.
1400 * benchtests/bench-strlen.c (generic_strlen): Define for WIDE.
1401 (memchr_strlen): Likewise.
1402
1403 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1404
1405 * benchtests/bench-strstr.c (input): Add realistic input text.
1406 (stupid_strstr): Remove function.
1407 (basic_strstr): Add function.
1408 (twoway_strstr): Add function.
1409 (do_one_test): Add result checking.
1410 (do_test): Use new input text. Remove accidental early matches.
1411 (test_main): Improve range of tests, reduce unaligned cases.
1412
1413 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1414
1415 * benchtests/bench-memmem.c (simple_memmem): Remove function.
1416 (basic_memmem): Add function.
1417 (twoway_memmem): Add function.
1418
1419 2019-04-09 Wilco Dijkstra <wdijkstr@arm.com>
1420
1421 * benchtests/bench-malloc-simple.c: Remove TIMING_INIT.
1422 * benchtests/bench-malloc-thread.c: Likewise.
1423 * benchtests/bench-skeleton.c: Likewise.
1424 * benchtests/bench-strtod.c: Likewise.
1425 * benchtests/bench-timing.h: Likewise.
1426
1427 2019-04-08 Florian Weimer <fweimer@redhat.com>
1428
1429 * resolv/resolv.h (RES_INSECURE1, RES_INSECURE2): Remove
1430 definitions.
1431 * resolv/res_send.c (send_dg): Always perform RES_INSECURE1 and
1432 RES_INSECURE2 security checks.
1433 * resolv/res_debug.c (p_option): Remove RES_INSECURE1 and
1434 RES_INSECURE2 handling.
1435
1436 2019-04-08 Florian Weimer <fweimer@redhat.com>
1437
1438 resolv: Remove support for RES_USE_INET6 and the inet6 option.
1439 * nscd/aicache.c (addhstaiX): Do not disable RES_USE_INET6.
1440 * nscd/nscd_gehst_r.c (__nscd_gethostbyname_r): Always use
1441 GETHOSTBYNAME.
1442 * resolv/Makefile (tests): Remove tst-res_use_inet6.
1443 (tests-internal): Update justification for tst-resolv-res_init,
1444 tst-resolv-res_init-thread.
1445 (tst-res_use_inet6): Remove target.
1446 (CFLAGS-tst-res_use_inet6.c): Do not set variable.
1447 * resolv/res_debug.c (p_option): Remove "inet6" support.
1448 * resolv/res_init.c (res_setoptions): Likewise.
1449 * resolv/res_use_inet6.h: Remove file.
1450 * resolv/resolv-internal.h (DEPRECATED_RES_USE_INET6): Remove
1451 definition.
1452 (res_use_inet6): Always return false.
1453 * resolv/resolv.h (RES_USE_INET6): Remove definition.
1454 * resolv/resolv_context.h: Adjust file comment.
1455 (struct resolv_context): Update comment on __next field.
1456 (__resolv_context_put): Update comment.
1457 * resolv/tst-res_use_inet6.c: Remove file.
1458 * resolv/tst-resolv-res_init-skeleton.c (print_resp): Remove
1459 "inet6" support.
1460 (test_cases): Adjust test case.
1461 * resolv/tst-resolv-threads.c (byname_inet6) Remove function.
1462 (thread_byname2_af_inet6): Use old byname_inet6 code.
1463 (thread_byname_inet6, thread_byname2_af_inet6): Remove functions.
1464 (gai): Remove do_inet6 argument.
1465 (thread_gai_inet, thread_gai_inet6, thread_gai_unspec): Adjust.
1466 (thread_gai_inet_inet6, thread_gai_inet6_inet6)
1467 (thread_gai_unspec_inet6): Remove functions.
1468 (do_test): Adjust thread_funcs.
1469 * sysdeps/posix/getaddrinfo.c (gethosts): Do not restore
1470 RES_USE_INET6 flag.
1471 (gaih_inet): Do not disable RES_USE_INET6 flag.
1472
1473 2019-04-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
1474
1475 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: Cleanup branching
1476 and remove redundant code.
1477
1478 2019-04-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1479
1480 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcsrchr.c):
1481 New rule.
1482 * sysdeps/powerpc/power6/wcsrchr.c: Remove file.
1483 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c:
1484 Likewise.
1485 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c:
1486 Likewise.
1487 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c:
1488 Likewise.
1489 * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1490 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: Likewise.
1491 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: Likewise.
1492 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: Likewise.
1493 * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1494 * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Likewise.
1495 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1496 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcsrchr-power6 and
1497 wcsrchr-power7.
1498 (CFLAGS-wcsrchr-power7.c, CFLAGS-wcsrchr-power6.c): Remove rule.
1499 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1500 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1501 Remove wcsrchr optimizations.
1502 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1503
1504 * wcsmbs/wcsrchr.c (WCSRCHR): Use loop_unroll.h to parametrize
1505 the loop unroll.
1506
1507 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcschr.c):
1508 New rule.
1509 * sysdeps/powerpc/power6/wcschr.c: Remove file.
1510 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c:
1511 Likewise.
1512 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c:
1513 Likewise.
1514 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c:
1515 Likewise.
1516 * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
1517 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: Likewise.
1518 * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: Likewise.
1519 * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: Likewise.
1520 * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1521 * sysdeps/powerpc/powerpc64/power6/wcschr.c: Likewise.
1522 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1523 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcschr-power6 and
1524 wcschr-power7.
1525 (CFLAGS-wcschr-power7.c, CFLAGS-wcschr-power6.c): Remove rule.
1526 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1527 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1528 Remove wcschr optimizations.
1529 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1530
1531 * wcsmbs/wcschr.c (WCSCHR): Use loop_unroll.h to parametrize
1532 the loop unroll.
1533
1534 * sysdeps/powerpc/Makefile [$(subdir) == wcsmbs] (CFLAGS-wcscpy.c):
1535 New rule.
1536 * sysdeps/powerpc/power6/wcscpy.c: Remove file.
1537 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c:
1538 Likewise.
1539 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c:
1540 Likewise.
1541 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c:
1542 Likewise.
1543 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
1544 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: Likewise.
1545 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: Likewise.
1546 * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: Likewise.
1547 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1548 * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Likewise.
1549 * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile
1550 [$(subdir) == wcsmbs] (sysdeps_routines): Remove wcscpy-power6 and
1551 wcscpy-power7.
1552 (CFLAGS-wcscpy-power7.c, CFLAGS-wcscpy-power6.c): Remove rule.
1553 * sysdeps/powerpc/powerpc64/multiarch/Makefile: Likewise.
1554 * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
1555 Remove wcscpy optimizations.
1556 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
1557
1558 * include/loop_unroll.h: New file.
1559 * wcsmbs/wcscpy (__wcscpy): Add option to use loop unrolling
1560 besides generic implementation.
1561
1562 2019-04-03 DJ Delorie <dj@redhat.com>
1563
1564 * time/tst-strftime3.c (tm_to_printed): Disable warning about
1565 snprintf truncating output.
1566
1567 2019-04-02 DJ Delorie <dj@redhat.com>
1568
1569 * time/tst-strftime3.c: Add new Japanese era tests. Fix printf
1570 warning.
1571
1572 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1573
1574 [BZ #22964]
1575 * localedata/locales/ja_JP (LC_TIME): Add entry for the new Japanese
1576 era.
1577 * time/tst-strftime2.c (dates): Add 2019-04-30 and 2019-05-01.
1578 (mkreftable): Add rules for the new Japanese era and the new dates.
1579
1580 2019-04-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
1581 Rafal Luzynski <digitalfreak@lingonborough.com>
1582
1583 * time/tst-strftime2.c (date_t): Explicitly define the type.
1584 (dates): Use natural month and year numbers to express a date.
1585 (is_before): New function to compare dates.
1586 (mkreftable): Minor improvements to simplify maintenance.
1587 (do_test): Reflect the changes in dates array.
1588
1589 [BZ #24293]
1590 * time/Makefile (LOCALES): Add zh_TW.UTF-8, cmn_TW.UTF-8,
1591 hak_TW.UTF-8, nan_TW.UTF-8, and lzh_TW.UTF-8.
1592 * time/tst-strftime2.c (locales): Likewise.
1593 (dates): Add 1910-04-01, 1911-12-31, 1912-01-01, 1913-04-01,
1594 2010-04-01, and 2011-04-01.
1595 (mkreftable): Add rules for the new locales and the new dates.
1596
1597 2019-04-01 Carlos O'Donell <carlos@redhat.com>
1598
1599 * localedata/locales/ja_JP: Add comments to era entries.
1600
1601 2019-04-01 DJ Delorie <dj@redhat.com>
1602
1603 [BZ #24394]
1604 * time/strptime_l.c (%Ey): Fix fencepost error.
1605 * time/tst-strftime3.c: New.
1606 * time/Makefile (tests): Add tst-strftime3.
1607
1608 2019-04-01 Uros Bizjak <ubizjak@gmail.com>
1609
1610 * sysdeps/alpha/divqu.S (__divqu): Move save of $f0 and excb after
1611 conditional branch to DIVBYZERO. Fix unwind info.
1612 * sysdeps/alpha/remqu.S (__remqu): Move saves of $f0, $f1, $f2 and
1613 excb after conditional branch to $powerof2. Add missing unop
1614 instructions and .align directives and reorder instructions to
1615 match __divqu.
1616
1617 2019-04-01 Richard Henderson <rth@twiddle.net>
1618
1619 * sysdeps/unix/sysv/linux/alpha/kernel-features.h (__NR_shmat):
1620 Do not redefine.
1621 * sysdeps/unix/sysv/linux/alpha/sysdep.h (__NR_osf_shmat):
1622 Do not redefine.
1623
1624 2019-03-30 Maciej W. Rozycki <macro@wdc.com>
1625
1626 * sysdeps/unix/sysv/linux/riscv/configure.ac: Quote
1627 $libc_cv_riscv_float_abi in `test' invocation.
1628 * sysdeps/unix/sysv/linux/riscv/configure: Regenerate.
1629
1630 2019-03-29 Paul A. Clarke <pc@us.ibm.com>
1631
1632 * sysdeps/powerpc/fpu/fenv_libc.h (fegetenv_register): Replace inline
1633 asm with builtin.
1634 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (FP_INIT_ROUNDMODE):
1635 Likewise.
1636 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1637 (_GET_SI_FPSCR): Likewise.
1638 (_SET_SI_FPSCR): Likewise.
1639
1640 2019-03-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1641
1642 * math/math.h (fpclassify, isfinite, isnormal, isnan): Use builtin for
1643 clang 2.8.
1644 (signbit): Use builtin for clang 3.3.
1645 (isinf): Use builtin for clang 3.7.
1646
1647 2019-03-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1648
1649 * sysdeps/powerpc/fpu/s_float_bitwise.h: Remove file.
1650
1651 2019-03-25 Andreas K. Hüttel <dilfridge@gentoo.org>
1652
1653 * nss/tst-nss-files-alias-leak.c (do_test): add missing opening
1654 quote in printf.
1655
1656 2019-03-25 Mike Crowe <mac@mcrowe.com>
1657
1658 * nptl/tst-rwlock14.c (do_test): Replace duplicate calls to
1659 pthread_rwlock_timedrdlock with calls to
1660 pthread_rwlock_timedwrlock to ensure that the latter is tested
1661 too. Use new function name in diagnostic messages too.
1662
1663 * nptl/tst-sem5.c: Remove unused headers. Add <support/check.h>.
1664 (do_test) Use libsupport test macros rather than hand-coded
1665 conditionals and error messages. Ensure that sem_init returns zero
1666 rather than not -1. Use <support/test-driver.c> rather than
1667 test-skeleton.c.
1668
1669 * nptl/tst-sem13.c: Add <support/check.h>. (do_test) Use libsupport
1670 test macros rather than hand-coded conditionals and error messages.
1671 Use <support/test-driver.c> rather than test-skeleton.c.
1672
1673 2019-03-25 Joseph Myers <joseph@codesourcery.com>
1674
1675 * sysdeps/gnu/netinet/udp.h (UDP_GRO): New macro.
1676
1677 * elf/elf.h (NT_ARM_PAC_MASK): New macro.
1678 (NT_MIPS_MSA): Likewise.
1679
1680 2019-03-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1681
1682 * benchtests/Makefile (USE_CLOCK_GETTIME) Remove.
1683 * benchtests/README: Update description.
1684 * benchtests/bench-timing.h: Default to hp-timing.
1685 * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT,
1686 HP_TIMING_PRINT): Remove.
1687 (HP_TIMING_NOW): Add generic implementation.
1688 (hp_timing_t): Change to uint64_t.
1689
1690 * benchtests/bench-timing.h: Replace HP_TIMING_AVAIL with
1691 HP_TIMING_INLINE.
1692 * nptl/descr.h: Likewise.
1693 * elf/rtld.c (RLTD_TIMING_DECLARE, RTLD_TIMING_NOW, RTLD_TIMING_DIFF,
1694 RTLD_TIMING_ACCUM_NT, RTLD_TIMING_SET): Define.
1695 (dl_start_final_info, _dl_start_final, dl_main, print_statistics):
1696 Abstract hp-timing usage with RTLD_* macros.
1697 * sysdeps/alpha/hp-timing.h (HP_TIMING_INLINE): Define iff IS_IN(rtld).
1698 (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL): Remove.
1699 * sysdeps/generic/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL,
1700 HP_TIMING_NONAVAIL): Likewise.
1701 * sysdeps/ia64/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1702 Likewise.
1703 * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_AVAIL,
1704 HP_SMALL_TIMING_AVAIL): Likewise.
1705 * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_AVAIL,
1706 HP_SMALL_TIMING_AVAIL): Likewise.
1707 * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_AVAIL,
1708 HP_SMALL_TIMING_AVAIL): Likewise.
1709 * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_AVAIL,
1710 HP_SMALL_TIMING_AVAIL): Likewise.
1711 * sysdeps/x86/hp-timing.h (HP_TIMING_AVAIL, HP_SMALL_TIMING_AVAIL):
1712 Likewise.
1713 * sysdeps/generic/hp-timing-common.h: Update comment with
1714 HP_TIMING_AVAIL removal.
1715
1716 * include/random-bits.h: New file.
1717 * resolv/res_mkquery.c [HP_TIMING_AVAIL] (RANDOM_BITS,
1718 (__res_context_mkquery): Remove usage hp-timing usage and replace with
1719 random_bits.
1720 * resolv/res_send.c [HP_TIMING_AVAIL] (nameserver_offset): Likewise.
1721 * sysdeps/posix/tempname.c [HP_TIMING_AVAIL] (__gen_tempname):
1722 Likewise.
1723
1724 * include/libc-internal.h (__get_clockfreq): Remove prototype.
1725 * rt/Makefile (clock-routines): Remove get_clockfreq.
1726 * rt/get_clockfreq.c: Remove file.
1727 * sysdeps/unix/sysv/linux/i386/get_clockfreq.c: Likewise.
1728 * sysdeps/unix/sysv/linux/ia64/get_clockfreq.c: Likewise.
1729 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Likewise.
1730 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Move code to ...
1731 * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: ... here.
1732
1733 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c: Remove file.
1734 * sysdeps/unix/sysv/linux/ia64/sysconf.c: Likewise.
1735 * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock): Remove function.
1736 (__sysconf): Assume kernel support for _SC_MONOTONIC_CLOCK,
1737 _SC_CPUTIME, and _SC_THREAD_CPUTIME.
1738
1739 * nptl/Makefile (libpthread-routines): Remove pthread_clock_gettime and
1740 pthread_clock_settime.
1741 * nptl/pthreadP.h (__find_thread_by_id): Remove prototype.
1742 * elf/dl-support.c [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset): Remove.
1743 (_dl_non_dynamic_init): Remove _dl_cpuclock_offset setting.
1744 * elf/rtld.c (_dl_start_final): Likewise.
1745 * nptl/allocatestack.c (__find_thread_by_id): Remove function.
1746 * sysdeps/generic/ldsodefs.h [!HP_TIMING_NOAVAIL] (_dl_cpuclock_offset):
1747 Remove.
1748 * sysdeps/mach/hurd/dl-sysdep.c [!HP_TIMING_NOAVAIL]
1749 (_dl_cpuclock_offset): Remove.
1750 * nptl/descr.h (struct pthread): Rename cpuclock_offset to
1751 cpuclock_offset_ununsed.
1752 * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Remove
1753 cpuclock_offset set.
1754 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
1755 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
1756 * nptl/pthread_clock_gettime.c: Remove file.
1757 * nptl/pthread_clock_settime.c: Likewise.
1758 * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Remove function.
1759 [HP_TIMING_AVAIL] (realtime_gettime): Remove CLOCK_THREAD_CPUTIME_ID
1760 and CLOCK_PROCESS_CPUTIME_ID support.
1761 * sysdeps/unix/clock_settime.c (hp_timing_gettime): Likewise.
1762 [HP_TIMING_AVAIL] (realtime_gettime): Likewise.
1763 * sysdeps/posix/clock_getres.c (hp_timing_getres): Likewise.
1764 [HP_TIMING_AVAIL] (__clock_getres): Likewise.
1765 * sysdeps/unix/clock_nanosleep.c (CPUCLOCK_P, INVALID_CLOCK_P):
1766 Likewise.
1767 (__clock_nanosleep): Remove CPUCLOCK_P and INVALID_CLOCK_P usage.
1768
1769 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1770
1771 * sysdeps/s390/Makefile (sysdep_routines): Add memmem-arch13.
1772 * sysdeps/s390/ifunc-memmem.h (HAVE_MEMMEM_ARCH13, MEMMEM_ARCH13,
1773 MEMMEM_Z13_ONLY_USED_AS_FALLBACK, HAVE_MEMMEM_IFUNC_AND_ARCH13_SUPPORT):
1774 New defines.
1775 * sysdeps/s390/memmem-arch13.S: New file.
1776 * sysdeps/s390/memmem-vx.c: Omit GI symbol for z13 memmem ifunc variant
1777 if it is only used as fallback.
1778 * sysdeps/s390/memmem.c (memmem): Add arch13 variant in ifunc selector.
1779 * sysdeps/s390/multiarch/ifunc-impl-list.c
1780 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmem.
1781
1782 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1783
1784 * sysdeps/s390/Makefile (sysdep_routines): Add strstr-arch13.
1785 * sysdeps/s390/ifunc-strstr.h (HAVE_STRSTR_ARCH13, STRSTR_ARCH13,
1786 STRSTR_Z13_ONLY_USED_AS_FALLBACK, HAVE_STRSTR_IFUNC_AND_ARCH13_SUPPORT):
1787 New defines.
1788 * sysdeps/s390/multiarch/ifunc-impl-list.c
1789 (__libc_ifunc_impl_list): Add ifunc variant for arch13 strstr.
1790 * sysdeps/s390/strstr-arch13.S: New file.
1791 * sysdeps/s390/strstr-vx.c: Omit GI symbol for z13 strstr ifunc variant
1792 if it is only used as fallback.
1793 * sysdeps/s390/strstr.c (strstr): Add arch13 variant in ifunc selector.
1794
1795 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1796
1797 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_ARCH13, MEMMOVE_ARCH13
1798 HAVE_MEMMOVE_IFUNC_AND_ARCH13_SUPPORT): New defines.
1799 * sysdeps/s390/memcpy-z900.S: Add arch13 memmove implementation.
1800 * sysdeps/s390/memmove.c (memmove): Add arch13 variant in
1801 ifunc selector.
1802 * sysdeps/s390/multiarch/ifunc-impl-list.c
1803 (__libc_ifunc_impl_list): Add ifunc variant for arch13 memmove.
1804 * sysdeps/s390/multiarch/ifunc-resolve.h (S390_STFLE_BITS_ARCH13_MIE3,
1805 S390_IS_ARCH13_MIE3): New defines.
1806
1807 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1808
1809 * config.h.in (HAVE_S390_MIN_ARCH13_ZARCH_ASM_SUPPORT,
1810 HAVE_S390_ARCH13_ASM_SUPPORT): New undefine.
1811 * sysdeps/s390/configure.ac: Add checks for arch13 support.
1812 * sysdeps/s390/configure: Regenerated.
1813
1814 2019-03-22 Stefan Liebler <stli@linux.ibm.com>
1815
1816 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags):
1817 Add vxe2, vxp, dflt, sort flags.
1818 * sysdeps/s390/dl-procinfo.h: Add HWCAP_S390_VXRS_EXT2,
1819 HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT, HWCAP_S390_DFLT
1820 capabilities.
1821 (HWCAP_IMPORTANT): Add HWCAP_S390_VXRS_EXT2.
1822 * sysdeps/unix/sysv/linux/s390/bits/hwcap.h
1823 (HWCAP_S390_VXRS_EXT2, HWCAP_S390_VXRS_PDE, HWCAP_S390_SORT,
1824 HWCAP_S390_DFLT): Define.
1825
1826 2019-03-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
1827
1828 [BZ #24372]
1829 * iconv/iconvconfig.c (write_output): Add parentheses to get rid
1830 of compiler warning.
1831 * locale/programs/ld-collate.c (collate_output): Likewise.
1832
1833 2019-03-21 DJ Delorie <dj@redhat.com>
1834
1835 [BZ #24372]
1836 * iconv/iconvconfig.c (write_output): Replace floating point math
1837 with integer math to avoid imprecise results.
1838 * locale/programs/ld-collate.c (collate_output): Likewise.
1839
1840 2019-03-21 Stefan Liebler <stli@linux.ibm.com>
1841
1842 * sysdeps/s390/dl-procinfo.h (HWCAP_IMPORTANT):
1843 Add HWCAP_S390_VX and HWCAP_S390_VXE.
1844
1845 2019-03-20 mansayk <6688000@gmail.com>
1846
1847 [BZ #24296]
1848 * localedata/locales/tt_RU (day): Update from CLDR-34, fix errors.
1849 (abday): Likewise, but remove the trailing dots.
1850
1851 2019-03-19 Joseph Myers <joseph@codesourcery.com>
1852
1853 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SB): New
1854 macro.
1855 (HWCAP_PACA): Likewise.
1856 (HWCAP_PACG): Likewise.
1857 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1858 Increase to 32.
1859 (_dl_aarch64_cap_flags): Add new entries for new HWCAPs.
1860
1861 2019-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
1862
1863 * hurd/hurd/signal.h (_hurd_critical_section_lock): Document how EINTR
1864 should be handled.
1865
1866 2019-03-15 Joseph Myers <joseph@codesourcery.com>
1867
1868 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
1869 version to 5.0.
1870 (old_getpagesize): New syscall.
1871
1872 2019-03-15 Felix Yan <felixonmars@archlinux.org>
1873
1874 [BZ #24293]
1875 * localedata/locales/zh_TW (era): Add, support Minguo calendar.
1876 * localedata/locales/cmn_TW (era): Likewise.
1877 * localedata/locales/hak_TW (era): Likewise.
1878 * localedata/locales/lzh_TW (era): Likewise.
1879 * localedata/locales/nan_TW (era): Likewise.
1880
1881 2019-03-14 Adam Maris <amaris@redhat.com>
1882
1883 * malloc/malloc.c (_int_malloc): Check for large bin list
1884 corruption when inserting unsorted chunk.
1885
1886 2019-03-14 Florian Weimer <fweimer@redhat.com>
1887
1888 Remove obsolete, never-implemented XSI STREAMS declarations.
1889 * manual/terminal.texi (Allocation): Remove portability note and
1890 adjust example.
1891 * sysdeps/posix/sysconf.c (__sysconf): Always return -1 for
1892 _SC_STREAMS.
1893 * sysdeps/unix/sysv/linux/syscalls.list (getpmsg, putpmsg): Remove.
1894 * sysdeps/unix/inet/Subdirs (streams): Remove.
1895 * conform/Makefile (conformtest-headers-XPG42): Remove stropts.h.
1896 (conformtest-headers-UNIX98): Likewise.
1897 (conformtest-headers-XOPEN2K): Likewise.
1898 (conformtest-headers-POSIX2008): Likewise.
1899 * posix/compat-streams.c: New file.
1900 * posix/Makefile (routines): Add it.
1901 * posix/Versions (GLIBC_2.1): Add fattach, fdetach, getmsg,
1902 getpmsg, isastream, putmsg, putpmsg.
1903 (GLIBC_2.30): New section.
1904 * bits/stropts.h: Remove file.
1905 * bits/xtitypes.h: Likewise.
1906 * conform/data/stropts.h-data: Likewise.
1907 * include/stropts.h: Likewise.
1908 * include/sys/stropts.h: Likewise.
1909 * include/xtitypes.h: Likewise.
1910 * streams/Makefile: Likewise.
1911 * streams/fattach.c: Likewise.
1912 * streams/fdetach.c: Likewise.
1913 * streams/getmsg.c: Likewise.
1914 * streams/getpmsg.c: Likewise.
1915 * streams/isastream.c: Likewise.
1916 * streams/putmsg.c: Likewise.
1917 * streams/putpmsg.c: Likewise.
1918 * streams/stropts.h: Likewise.
1919 * streams/sys/stropts.h: Likewise.
1920 * sysdeps/ia64/bits/xtitypes.h: Likewise.
1921 * sysdeps/s390/bits/xtitypes.h: Likewise.
1922 * sysdeps/unix/sysv/linux/i386/getmsg.c: Likewise.
1923 * sysdeps/unix/sysv/linux/i386/putmsg.c: Likewise.
1924 * sysdeps/unix/sysv/linux/m68k/getmsg.c: Likewise.
1925 * sysdeps/unix/sysv/linux/m68k/putmsg.c: Likewise.
1926 * sysdeps/unix/sysv/linux/mips/getmsg.c: Likewise.
1927 * sysdeps/unix/sysv/linux/mips/putmsg.c: Likewise.
1928 * sysdeps/unix/sysv/linux/powerpc/getmsg.c: Likewise.
1929 * sysdeps/unix/sysv/linux/powerpc/putmsg.c: Likewise.
1930 * sysdeps/x86/bits/xtitypes.h: Likewise.
1931
1932 2019-03-14 Florian Weimer <fweimer@redhat.com>
1933
1934 * nss/tst-nss-files-alias-truncated.c (do_test): Load
1935 libnss_files.
1936 * nss/Makefile (tst-nss-files-alias-truncated): Link with -ldl,
1937 but not with libnss_files.
1938 (tst-nss-files-alias-truncated.out): Depend on libnss_files.
1939
1940 2019-03-14 Zack Weinberg <zackw@panix.com>
1941
1942 * scripts/check-obsolete-constructs.py (HeaderChecker.check):
1943 Specify encoding="utf-8" when opening headers to check.
1944
1945 2019-03-13 Joseph Myers <joseph@codesourcery.com>
1946
1947 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
1948 version to 5.0.
1949 (Context.checkout_tar): Handle variable major version for Linux
1950 kernel.
1951
1952 2019-03-13 Florian Weimer <fweimer@redhat.com>
1953
1954 [BZ #24047]
1955 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
1956
1957 2019-03-13 Zack Weinberg <zackw@panix.com>
1958
1959 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
1960 Move to stdlib.
1961 * include/inttypes.h: Adjust to match.
1962 * include/stdint.h: New wrapper.
1963
1964 2019-03-13 Zack Weinberg <zackw@panix.com>
1965
1966 * scripts/check-obsolete-constructs.py: New test script.
1967 * scripts/check-installed-headers.sh: Remove tests for
1968 obsolete typedefs, superseded by check-obsolete-constructs.py.
1969 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
1970 as a special test. Update commentary.
1971 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
1972 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
1973 Update commentary.
1974 * posix/sys/types.h (__u_intN_t): Remove.
1975 (u_int8_t): Typedef using __uint8_t.
1976 (u_int16_t): Typedef using __uint16_t.
1977 (u_int32_t): Typedef using __uint32_t.
1978 (u_int64_t): Typedef using __uint64_t.
1979
1980 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
1981
1982 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
1983 call _dl_procinfo.
1984 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
1985 Ignore types other than AT_HWCAP.
1986 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
1987 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
1988 Likewise.
1989 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
1990 in the case of falling back to generic output mechanism.
1991 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
1992 Likewise.
1993
1994 2019-03-12 Florian Weimer <fweimer@redhat.com>
1995
1996 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
1997
1998 2019-03-12 Florian Weimer <fweimer@redhat.com>
1999
2000 [BZ #24047]
2001 resolv: Enable full ICMP errors for UDP DNS sockets
2002 * resolv/res_enable_icmp.c: New file.
2003 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
2004 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
2005 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
2006 socket.
2007
2008 2019-03-11 Mao Han <han_mao@c-sky.com>
2009
2010 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
2011 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
2012
2013 2019-03-11 Mao Han <han_mao@c-sky.com>
2014
2015 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
2016 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2017 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2018
2019 2019-03-11 Mao Han <han_mao@c-sky.com>
2020
2021 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
2022 directly.
2023 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
2024 definition.
2025
2026 2019-03-11 Mao Han <han_mao@c-sky.com>
2027
2028 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
2029 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
2030 in mcontext_t
2031
2032 2019-03-08 Mike FABIAN <mfabian@redhat.com>
2033
2034 [BZ #24307]
2035 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
2036 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
2037 Unicode 12.0.0.
2038 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
2039 * localedata/unicode-gen/PropList.txt: Likewise.
2040 * localedata/unicode-gen/UnicodeData.txt: Likewise.
2041 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
2042 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
2043 * localedata/charmaps/UTF-8: Regenerate.
2044 * localedata/locales/i18n_ctype: Likewise.
2045 * localedata/locales/tr_TR: Likewise.
2046 * localedata/locales/translit_circle: Likewise.
2047 * localedata/locales/translit_cjk_compat: Likewise.
2048 * localedata/locales/translit_combining: Likewise.
2049 * localedata/locales/translit_compat: Likewise.
2050 * localedata/locales/translit_font: Likewise.
2051 * localedata/locales/translit_fraction: Likewise.
2052
2053 2019-03-07 Joseph Myers <joseph@codesourcery.com>
2054
2055 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
2056 than after operators.
2057 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
2058 (setitimer_locked): Likewise.
2059 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
2060 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
2061 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
2062 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
2063 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
2064 (PPC_CPU_SUPPORTED): Likewise.
2065 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
2066 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
2067 (stat_overflow): Likewise.
2068 (statfs_overflow): Likewise.
2069 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
2070 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
2071 (eq_ttyname_r): Likewise.
2072 (run_chroot_tests): Likewise.
2073
2074 2019-03-07 Florian Weimer <fweimer@redhat.com>
2075
2076 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
2077 header check.
2078
2079 2019-03-07 Martin Liska <mliska@suse.cz>
2080
2081 * math/Makefile: Change location where math-vector-fortran.h is
2082 installed.
2083 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
2084 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
2085 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
2086 * scripts/check-installed-headers.sh: Skip Fortran header files.
2087 * scripts/check-wrapper-headers.py: Likewise.
2088
2089 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2090
2091 * nptl/nptl-init.c (__have_futex_clock_realtime,
2092 __have_futex_clock_realtime): Remove definition.
2093 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
2094 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
2095 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
2096 __ASSUME_FUTEX_CLOCK_REALTIME support.
2097 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
2098 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2099 * sysdeps/unix/sysv/linux/kernel-features.h
2100 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
2101 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
2102 Adjust comment.
2103
2104 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2105
2106 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
2107 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
2108 __GI___wcscpy and wcscpy.
2109
2110 2019-03-04 Florian Weimer <fweimer@redhat.com>
2111
2112 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
2113 declaration.
2114 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
2115 defined.
2116
2117 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
2118
2119 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
2120 * sysdeps/s390/s390-32/sysdep.h: Likewise.
2121
2122 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
2123
2124 [BZ #24162]
2125 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
2126 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
2127
2128 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2129
2130 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
2131 tests.
2132 (do_test): Likewise.
2133 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
2134 (do_test_call_varg): Likewise.
2135 (do_test_call_rarg): Likewise.
2136 * sysdeps/ieee754/ldbl-opt/Makefile
2137 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
2138 tst-nldbl-error.
2139 ($(objpfx)tst-nldbl-warn.c): New rule.
2140 ($(objpfx)tst-nldbl-error.c): Likewise.
2141 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
2142 New variables.
2143
2144 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2145
2146 [BZ #23984]
2147 * include/bits/error-ldbl.h: New file.
2148 * include/error.h: Include stdarg.h. Declare internal functions
2149 __error_internal and __error_at_line_internal.
2150 * misc/Makefile (headers): Add bits/error-ldbl.h.
2151 * misc/bits/error-ldbl.h: New file.
2152 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
2153 avoid the inclusion of bits/error.h.
2154 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
2155 and __nldbl_error_at_line.
2156 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
2157 (__nldbl_error, __ndlbl_error_at_line): New functions.
2158 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
2159 Redirect error and error_at_line.
2160 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2161 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2162 Likewise.
2163 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2164 Likewise.
2165 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2166 Likewise.
2167 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2168 Likewise.
2169 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2170 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2171 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2172
2173 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2174
2175 [BZ #23984]
2176 * include/bits/err-ldbl.h: New file.
2177 * include/err.h: Add prototypes for the internal functions:
2178 __vwarnx_internal and __vwarn_internal.
2179 * misc/Makefile (headers): Add bits/err-ldbl.h.
2180 * misc/bits/err-ldbl.h: New file.
2181 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
2182 defined, i.e.: when -mlong-double-64 is in use.
2183 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
2184 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
2185 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
2186 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
2187 (VA_CALL): New macro.
2188 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
2189 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
2190 functions.
2191 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
2192 declare prototypes for the new functions.
2193 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2194 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2195 Likewise.
2196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2197 Likewise.
2198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2199 Likewise.
2200 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2201 Likewise.
2202 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2203 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2204 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2205
2206 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2207
2208 * sysdeps/ieee754/ldbl-opt/Makefile
2209 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
2210 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
2211 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
2212
2213 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2214
2215 [BZ #23983]
2216 * argp/Makefile (headers): Add bits/argp-ldbl.h.
2217 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
2218 * argp/bits/argp-ldbl.h: New file.
2219 * include/argp.h: Include stdarg.h. Add prototypes for internal
2220 functions: __argp_error_internal and __argp_failure_internal.
2221 * include/bits/argp-ldbl.h: New file.
2222 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
2223 __nldbl_argp_error and __nldbl_argp_failure.
2224 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
2225 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
2226 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
2227 Redirect argp_error and argp_failure calls.
2228 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
2229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
2230 Likewise.
2231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
2232 Likewise.
2233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
2234 Likewise.
2235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
2236 Likewise.
2237 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
2238 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
2239 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
2240
2241 2019-03-01 Florian Weimer <fweimer@redhat.com>
2242
2243 [BZ #20419]
2244 * elf/tst-big-note-lib.S: Create a syntactically valid note.
2245 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
2246 code, to avoid creating an ABI tag note.
2247 (modules-names-nobuild): Add tst-big-note-lib.
2248
2249 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
2250
2251 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
2252 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
2253
2254 2019-03-01 Florian Weimer <fweimer@redhat.com>
2255
2256 [BZ #20271]
2257 * sysdeps/unix/sysv/linux/netlink_assert_response.c
2258 (__netlink_assert_response): Add additional missing newlines.
2259
2260 2019-02-28 Joseph Myers <joseph@codesourcery.com>
2261
2262 * sysdeps/powerpc/powerpc32/dl-machine.c
2263 (__elf_machine_fixup_plt): Use space before '('.
2264 (__process_machine_rela): Likewise.
2265 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
2266 Likewise.
2267 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
2268 Likewise.
2269 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
2270 Likewise.
2271 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
2272 (pattern): Likewise.
2273 (delta): Likewise.
2274 (check_result): Likewise.
2275 (check_excepts): Likewise.
2276 (check_op): Likewise.
2277 (fail_xr): Likewise.
2278 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
2279 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
2280 (SCNHSZ): Likewise.
2281 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
2282 Likewise.
2283 (ARGS): Likewise.
2284 (__makecontext): Likewise.
2285 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
2286 Likewise.
2287
2288 2019-02-28 Florian Weimer <fweimer@redhat.com>
2289
2290 [BZ #23937]
2291 elf: Add test with a local IFUNC resolver.
2292 * elf/ifuncmain9.c: New file.
2293 * elf/ifuncmain9pic.c: Likewise.
2294 * elf/ifuncmain9picstatic.c: Likewise.
2295 * elf/ifuncmain9pie.c: Likewise.
2296 * elf/ifuncmain9static.c: Likewise.
2297 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
2298 ifuncmain9static, ifuncmain9picstatic.
2299 * elf/Makefile [multi-arch && build-shared] (tests-internal):
2300 Add ifuncmain9, ifuncmain9pic.
2301 * elf/Makefile [multi-arch && build-shared && have-fpie]
2302 (ifunc-pie-tests): Add ifuncmain9pie.
2303 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
2304 (CFLAGS-ifuncmain9picstatic.c): Likewise.
2305 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
2306
2307 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2308
2309 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
2310 * configure: Regenerated.
2311 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
2312
2313 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2314
2315 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
2316 symbol as __wcspcy instead of wcscpy.
2317
2318 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
2319
2320 * include/stdio.h (__renameat2): New hidden prototype.
2321 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
2322 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
2323 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
2324 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
2325
2326 2019-02-27 Joseph Myers <joseph@codesourcery.com>
2327
2328 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
2329 if statement.
2330
2331 * benchtests/bench-strcpy.c (do_test): Use space before '('.
2332 * benchtests/bench-string.h (cmdline_process_function): Likewise.
2333 * benchtests/bench-strlen.c (do_test): Likewise.
2334 (test_main): Likewise.
2335 * catgets/gencat.c (read_old): Likewise.
2336 * elf/cache.c (load_aux_cache): Likewise.
2337 * iconvdata/bug-iconv8.c (do_test): Likewise.
2338 * math/test-tgmath-ret.c (do_test): Likewise.
2339 * nis/nis_call.c (rec_dirsearch): Likewise.
2340 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2341 * nptl/tst-audit-threads.c (do_test): Likewise.
2342 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
2343 * nss/nss_test1.c (init): Likewise.
2344 * nss/test-netdb.c (test_hosts): Likewise.
2345 * posix/execvpe.c (maybe_script_execute): Likewise.
2346 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
2347 * stdio-common/tst-printf.c (do_test): Likewise.
2348 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
2349 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
2350 * stdlib/qsort.c (STACK_SIZE): Likewise.
2351 * stdlib/test-canon.c (do_test): Likewise.
2352 * stdlib/tst-swapcontext1.c (do_test): Likewise.
2353 * string/memcmp.c (OPSIZ): Likewise.
2354 * string/test-strcpy.c (do_test): Likewise.
2355 (do_random_tests): Likewise.
2356 * string/test-strlen.c (do_test): Likewise.
2357 (test_main): Likewise.
2358 * string/test-strrchr.c (do_test): Likewise.
2359 (do_random_tests): Likewise.
2360 * string/tester.c (test_memrchr): Likewise.
2361 (test_memchr): Likewise.
2362 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
2363 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
2364 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
2365 (read_encoded_value_with_base): Likewise.
2366 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
2367 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
2368 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
2369 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2370 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
2371 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
2372 Likewise.
2373 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
2374 Likewise.
2375 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
2376 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
2377 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
2378 Likewise.
2379 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
2380 Likewise.
2381 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
2382 Likewise.
2383 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
2384 Likewise.
2385 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
2386 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
2387 (FP_XSTATE_MAGIC2_SIZE): Likewise.
2388 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
2389 * time/test_time.c (main): Likewise.
2390
2391 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2392
2393 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
2394
2395 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
2396 wmemcpy.
2397
2398 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
2399 wmemcpy.
2400
2401 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2402
2403 * include/wchar.h (__wcscpy): New prototype.
2404 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
2405 (__wcscpy): Route internal symbol to generic implementation.
2406 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
2407 Add internal __wcscpy alias.
2408 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
2409 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
2410 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
2411 * wcsmbs/wcscpy.c (wcscpy): Add
2412 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
2413 use generic implementation.
2414 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
2415
2416 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
2417 wmemset.
2418
2419 * sysdeps/m68k/wcpcpy.c: Remove file.
2420 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
2421
2422 2019-02-26 Joseph Myers <joseph@codesourcery.com>
2423
2424 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
2425 than after operators.
2426 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
2427 * sysdeps/mach/hurd/getcwd.c
2428 (__hurd_canonicalize_directory_name_internal): Likewise.
2429 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
2430 (pthread_mutex_consistent): Likewise.
2431 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
2432 Likewise.
2433 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
2434 (__pthread_mutex_transfer_np): Likewise.
2435 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
2436 (__pthread_mutex_unlock): Likewise.
2437 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
2438 (mtx_owned_p): Likewise.
2439 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
2440 (pthread_mutexattr_getrobust): Likewise.
2441 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
2442 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
2443 Likewise.
2444 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2445 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
2446 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
2447 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
2448 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2449 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
2450 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
2451 Likewise.
2452 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
2453 Likewise.
2454 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
2455 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
2456 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
2457 (____longjmp_chk): Likewise.
2458 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
2459 Likewise.
2460 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
2461 (INTERNAL_SYSCALL): Likewise.
2462 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
2463 (INTERNAL_SYSCALL): Likewise.
2464 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2465 (__get_clockfreq_via_cpuinfo): Likewise.
2466
2467 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
2468 comments.
2469 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
2470 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
2471 (WORD_COPY_BWD): Likewise.
2472 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2473 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2474 Likewise.
2475 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
2476 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
2477 comment.
2478 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
2479
2480 2019-02-25 Joseph Myers <joseph@codesourcery.com>
2481
2482 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
2483 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
2484 rather than after operators.
2485 * elf/cache.c (print_cache): Likewise.
2486 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
2487 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
2488 * hurd/hurdinit.c (_hurd_setproc): Likewise.
2489 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
2490 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
2491 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
2492 (reauth_proc): Likewise.
2493 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
2494 (__file_name_split_at): Likewise.
2495 (__directory_name_split_at): Likewise.
2496 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2497 * hurd/port2fd.c (_hurd_port2fd): Likewise.
2498 * iconv/gconv_dl.c (do_print): Likewise.
2499 * inet/netinet/in.h (struct sockaddr_in): Likewise.
2500 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
2501 * locale/setlocale.c (new_composite_name): Likewise.
2502 * malloc/memusagestat.c (main): Likewise.
2503 * misc/fstab.c (fstab_convert): Likewise.
2504 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
2505 Likewise.
2506 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
2507 (getgrent_next_file): Likewise.
2508 (internal_getgrnam_r): Likewise.
2509 (internal_getgrgid_r): Likewise.
2510 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
2511 Likewise.
2512 (internal_getgrent_r): Likewise.
2513 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
2514 (getpwent_next_nss): Likewise.
2515 (getpwent_next_file): Likewise.
2516 (internal_getpwnam_r): Likewise.
2517 (internal_getpwuid_r): Likewise.
2518 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
2519 Likewise.
2520 (getspent_next_nss): Likewise.
2521 (internal_getspnam_r): Likewise.
2522 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
2523 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
2524 * string/strchr.c (STRCHR): Likewise.
2525 * string/strchrnul.c (STRCHRNUL): Likewise.
2526 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
2527 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2528 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
2529 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
2530 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
2531 Likewise.
2532 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
2533 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2534 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
2535 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
2536 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
2537 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
2538 (open_file): Likewise.
2539 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
2540 (pthread_mutexattr_setprotocol): Likewise.
2541 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
2542 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
2543 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
2544 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
2545 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
2546 Likewise.
2547 (elf_machine_rela): Likewise.
2548 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2549 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
2550 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
2551 * sysdeps/posix/rename.c (rename): Likewise.
2552 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
2553 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
2554 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
2555 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
2556 * sysdeps/unix/grantpt.c (grantpt): Likewise.
2557 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
2558 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
2559 Likewise.
2560 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
2561 Likewise.
2562 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
2563 * time/tzfile.c (__tzfile_compute): Likewise.
2564
2565 2019-02-22 Joseph Myers <joseph@codesourcery.com>
2566
2567 * benchtests/bench-memmem.c (simple_memmem): Break lines before
2568 rather than after operators.
2569 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
2570 * crypt/md5.c (md5_finish_ctx): Likewise.
2571 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
2572 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
2573 * elf/cache.c (load_aux_cache): Likewise.
2574 * elf/dl-load.c (open_verify): Likewise.
2575 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
2576 * elf/readelflib.c (process_elf_file): Likewise.
2577 * elf/rtld.c (dl_main): Likewise.
2578 * elf/sprof.c (generate_call_graph): Likewise.
2579 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
2580 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
2581 * hurd/dtable.c (reauth_dtable): Likewise.
2582 * hurd/getdport.c (__getdport): Likewise.
2583 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
2584 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
2585 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
2586 Likewise.
2587 * hurd/hurdioctl.c (fioctl): Likewise.
2588 * hurd/hurdselect.c (_hurd_select): Likewise.
2589 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
2590 (STOPSIGS): Likewise.
2591 * hurd/hurdstartup.c (_hurd_startup): Likewise.
2592 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
2593 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
2594 * hurd/msgportdemux.c (msgport_server): Likewise.
2595 * hurd/setauth.c (_hurd_setauth): Likewise.
2596 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
2597 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
2598 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
2599 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
2600 * login/tst-utmp.c (do_check): Likewise.
2601 (simulate_login): Likewise.
2602 * mach/lowlevellock.h (lll_lock): Likewise.
2603 (lll_trylock): Likewise.
2604 * math/test-fenv.c (ALL_EXC): Likewise.
2605 * math/test-fenvinline.c (ALL_EXC): Likewise.
2606 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
2607 * nis/nis_call.c (__do_niscall3): Likewise.
2608 * nis/nis_callback.c (cb_prog_1): Likewise.
2609 * nis/nis_defaults.c (searchaccess): Likewise.
2610 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
2611 * nis/nis_ismember.c (internal_ismember): Likewise.
2612 * nis/nis_local_names.c (nis_local_principal): Likewise.
2613 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
2614 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
2615 Likewise.
2616 * nis/ypclnt.c (yp_match): Likewise.
2617 (yp_first): Likewise.
2618 (yp_next): Likewise.
2619 (yp_master): Likewise.
2620 (yp_order): Likewise.
2621 * nscd/hstcache.c (cache_addhst): Likewise.
2622 * nscd/initgrcache.c (addinitgroupsX): Likewise.
2623 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
2624 (internal_getpwuid_r): Likewise.
2625 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
2626 * posix/glob.h (__GLOB_FLAGS): Likewise.
2627 * posix/regcomp.c (peek_token): Likewise.
2628 (peek_token_bracket): Likewise.
2629 (parse_expression): Likewise.
2630 * posix/regexec.c (sift_states_iter_mb): Likewise.
2631 (check_node_accept_bytes): Likewise.
2632 * posix/tst-spawn3.c (do_test): Likewise.
2633 * posix/wordexp-test.c (testit): Likewise.
2634 * posix/wordexp.c (parse_tilde): Likewise.
2635 (exec_comm): Likewise.
2636 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
2637 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
2638 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
2639 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
2640 * stdio-common/tst-fileno.c (do_test): Likewise.
2641 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
2642 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
2643 * stdlib/strtod_l.c (round_and_return): Likewise.
2644 (____STRTOF_INTERNAL): Likewise.
2645 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
2646 * string/strcspn.c (STRCSPN): Likewise.
2647 * string/test-memmem.c (simple_memmem): Likewise.
2648 * termios/tcsetattr.c (tcsetattr): Likewise.
2649 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
2650 * time/asctime.c (asctime_internal): Likewise.
2651 * time/strptime_l.c (__strptime_internal): Likewise.
2652 * time/sys/time.h (timercmp): Likewise.
2653 * time/tzfile.c (__tzfile_compute): Likewise.
2654
2655 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
2656
2657 [BZ #21915]
2658 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
2659
2660 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2661
2662 * argp/argp-help.c (__argp_error_internal): New function,
2663 renamed from __argp_error, but that takes a 'mode_flags'
2664 parameter to control the format of long double parameters.
2665 (__argp_error): Converted into a call __argp_error_internal.
2666 (__argp_failure_internal): New function, renamed from
2667 __argp_failure, but that takes a 'mode_flags' parameter.
2668 (__argp_failure): Converted into a call __argp_failure_internal.
2669 * misc/err.c (__vwarnx_internal): New function, renamed from
2670 vwarnx, but that takes a 'mode_flags' parameter.
2671 (vwarnx): Converted into a call to __vwarnx_internal.
2672 (__vwarn_internal): New function, renamed from vwarn, but that
2673 takes a 'mode_flags' parameter.
2674 (vwarn): Converted into a call to __vwarn_internal.
2675 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
2676 call to __vfxprintf with 'mode_flags'.
2677 (__error_internal): New function, renamed from error, but that
2678 takes a 'mode_flags' parameter.
2679 (error): Converted into a call to __error_internal.
2680 (__error_at_line_internal): New function, renamed from
2681 error_at_line, but that takes a 'mode_flags' parameter.
2682 (error_at_line): Converted into a call to
2683 __error_at_line_internal.
2684 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
2685 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
2686 Likewise.
2687
2688 2019-02-20 Martin Liska <mliska@suse.cz>
2689
2690 * math/Makefile: Install math-vector-fortran.h.
2691 * bits/math-vector-fortran.h: New file.
2692 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
2693
2694 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2695
2696 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
2697 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
2698
2699 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
2700
2701 * nptl/pthread_mutex_trylock.c: Fix comment.
2702
2703 2019-02-19 Carlos O'Donell <carlos@redhat.com>
2704
2705 * nptl/pthread_tryjoin.c: Fix comment.
2706
2707 2019-02-18 Joseph Myers <joseph@codesourcery.com>
2708
2709 [BZ #24231]
2710 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
2711 after R_SPARC_H34 case.
2712
2713 2019-02-18 Florian Weimer <fweimer@redhat.com>
2714
2715 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
2716 (getanswer): Do not call Dprintf.
2717 (res_gethostbyname2_context): Likewise.
2718 (res_gethostbyaddr_context): Likewise.
2719
2720 2019-02-18 Florian Weimer <fweimer@redhat.com>
2721
2722 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
2723 declaration.
2724 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
2725 Remove definitions.
2726 * libio/stdfiles.c: Update comment.
2727 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
2728 set _IO_stdin, _IO_stdout, _IO_stderr.
2729 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
2730 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
2731 inline function.
2732 (_IO_deallocate_file): New inline function.
2733 * libio/iolibio.h (_IO_vprintf): Remove definition.
2734 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
2735 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
2736 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
2737 _IO_legacy_file.
2738 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
2739 __builtin_expect. Use _IO_legacy_file.
2740
2741 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
2742
2743 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
2744 Initialize ctid with a known value and remove update of ctid
2745 after clone.
2746 (wait_tid): Adjust arguments and call futex_wait with ctid_val
2747 as assumed current value of ctid_ptr.
2748
2749 2019-02-16 Florian Weimer <fweimer@redhat.com>
2750
2751 Check that non-sysdeps headers have wrapper headers.
2752 * scripts/check-wrapper-headers.py: New file.
2753 * Makefile (tests-special): Add check-wrapper-headers.out.
2754 (check-wrapper-headers.out): New target.
2755 * Rules (tests-special): Add check-wrapper-headers.out.
2756 (check-wrapper-headers.out): New target.
2757
2758 2019-02-16 Florian Weimer <fweimer@redhat.com>
2759
2760 Add missing header wrappers under include/.
2761 * include/ar.h: New file.
2762 * include/bits/mqueue2.h: Likewise.
2763 * include/bits/stdio.h: Likewise.
2764 * include/bits/stdio2.h: Likewise.
2765 * include/fstab.h: Likewise.
2766 * include/fts.h: Likewise.
2767 * include/lastlog.h: Likewise.
2768 * include/netinet/icmp6.h: Likewise.
2769 * include/netinet/igmp.h: Likewise.
2770 * include/netinet/ip6.h: Likewise.
2771 * include/re_comp.h: Likewise.
2772 * include/regexp.h: Likewise.
2773 * include/rpcsvc/bootparam.h: Likewise.
2774 * include/rpcsvc/yp_prot.h: Likewise.
2775 * include/sys/random.h: Likewise.
2776 * include/sys/stropts.h: Likewise.
2777 * include/sys/ttychars.h: Likewise.
2778 * include/sys/vfs.h: Likewise.
2779 * include/wait.h: Likewise.
2780
2781 2019-02-16 Florian Weimer <fweimer@redhat.com>
2782
2783 * nptl_db/proc_service.h: Move to ...
2784 * sysdeps/nptl/proc_service.h: ... here.
2785 * nptl_db/thread_db.h: Move to ...
2786 * sysdeps/nptl/thread_db.h: ... here.
2787 * nptl/descr.h: Include <thread_db.h>.
2788
2789 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2790
2791 * io/Makefile (tests): Add tst-lockf.
2792 * io/lockf.c (lockf): Use __fcntl and only define for
2793 !__OFF_T_MATCHES_OFF64_T.
2794 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
2795 __OFF_T_MATCHES_OFF64_T case.
2796 * io/tst-lockf.c: New file.
2797 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
2798 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
2799 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
2800 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
2801 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
2802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
2803 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
2804 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
2805 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
2806
2807 2019-02-15 Florian Weimer <fweimer@redhat.com>
2808
2809 [BZ #24211]
2810 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
2811 pd->result after the thread descriptor has been freed.
2812
2813 2019-02-15 Joseph Myers <joseph@codesourcery.com>
2814
2815 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
2816 from function return type.
2817
2818 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
2819
2820 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2821
2822 * scripts/test_printers_common.py: Set TERM to a known harmless
2823 value.
2824
2825 2019-02-14 Joseph Myers <joseph@codesourcery.com>
2826
2827 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
2828 (xdr_u_int): Likewise.
2829 (xdr_enum): Likewise.
2830 (xdr_bytes): Reword fall-through comment.
2831 (xdr_string): Likewise.
2832
2833 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2834
2835 [BZ #2421]
2836 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
2837 (tests): Add tst-join8 tst-join9.
2838 * nptl/lll_timedwait_tid.c: Remove file.
2839 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
2840 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
2841 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
2842 * nptl/pthread_join_common.c (timedwait_tid): New function.
2843 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
2844 is set.
2845 * nptl/tst-join5.c (thread_join): New function.
2846 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
2847 check.
2848 * nptl/tst-join8.c: New file.
2849 * nptl/tst-join9.c: Likewise.
2850 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
2851 lll_futex_timed_wait_cancel): Add generic macros.
2852 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
2853 Remove definitions.
2854 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
2855 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
2856 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
2857 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
2858 Remove function.
2859 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
2860 Likewise.
2861 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
2862 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2863 (lll_futex_timed_wait_cancel): New macro.
2864
2865 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
2866
2867 * benchtests/Makefile: Add malloc-simple benchmark.
2868 * benchtests/bench-malloc-simple.c: New benchmark.
2869
2870 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
2871
2872 * benchtests/bench-memmove.c (do_one_test): Remove unused
2873 ORIG_SRC.
2874 (do_test): Adjust.
2875 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
2876 ORIG_SRC.
2877 (do_test): Adjust.
2878
2879 2019-01-13 Jim Wilson <jimw@sifive.com>
2880
2881 [BZ #24040]
2882 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
2883 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
2884 (func): New.
2885 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
2886 call func directly.
2887 * nptl/Makefile (tests): Add tst-unwind-thread.
2888 (CFLAGS-tst-unwind-thread.c): Define.
2889 * nptl/tst-unwind-thread.c: New file.
2890 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
2891 as undefined.
2892
2893 2019-02-13 Joseph Myers <joseph@codesourcery.com>
2894
2895 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
2896 comment wording.
2897 * nis/nis_call.c (__do_niscall3): Likewise.
2898
2899 * catgets/gencat.c (normalize_line): Use braces around empty
2900 'else' body.
2901 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
2902 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
2903 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
2904 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
2905 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
2906 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
2907 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
2908 definition.
2909
2910 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
2911 execlp returns.
2912
2913 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
2914
2915 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
2916 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
2917 * benchtests/bench-strchr.c (stupid_strchr): Remove.
2918 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
2919 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
2920 * benchtests/bench-strlen.c (builtin_strlen): Remove.
2921 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
2922 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
2923 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
2924 * benchtests/bench-strspn.c (stupid_strspn): Remove.
2925 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
2926 * benchtests/bench-bcopy.c: Delete file.
2927 * benchtests/bench-bzero.c: Likewise.
2928 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
2929 (simple_memccpy): Remove.
2930 (generic_memccpy): Add function.
2931 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
2932 * benchtests/bench-memmove.c (simple_bcopy): Remove.
2933 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
2934 (generic_mempcpy): Add new function.
2935 * benchtests/bench-memset.c (simple_bzero): Remove.
2936 (builtin_bzero): Remove.
2937 (builtin_memset): Remove.
2938 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
2939 (generic_rawmemchr): Add new function.
2940
2941 2019-02-12 Florian Weimer <fweimer@redhat.com>
2942
2943 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
2944
2945 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2946
2947 [BZ #24122]
2948 * elf/Makefile (tests): Add tst-audit13.
2949 (modules-names): Add tst-audit13mod1.
2950 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
2951 rule.
2952 * elf/tst-audit13.c: New file.
2953 * elf/tst-audit13mod1.c: Likewise.
2954
2955 2019-02-12 Florian Weimer <fweimer@redhat.com>
2956
2957 [BZ #24122]
2958 * elf/rtld.c (unload_audit_module): New function.
2959 (report_audit_module_load_error): Likewise.
2960 (load_audit_module): Likewise. Extracted from dl_main. Call
2961 _dl_close if the laversion symbol cannot be found. Use early
2962 returns for error handling. Add malloc error check. Check for a
2963 zero return value from la_version. Remove spurious comment about
2964 static TLS initialization. Remove useless casts.
2965 (notify_audit_modules_of_loaded_object): New function. Extracted
2966 from dl_main.
2967 (load_audit_module): Likewise.
2968 (dl_main): Call load_audit_modules.
2969
2970 2019-02-12 Joseph Myers <joseph@codesourcery.com>
2971
2972 * elf/dl-exception.c (_dl_exception_create_format): Add
2973 fall-through comments.
2974 * elf/ldconfig.c (parse_conf_include): Likewise.
2975 * elf/rtld.c (print_statistics): Likewise.
2976 * locale/programs/charmap.c (parse_charmap): Likewise.
2977 * misc/mntent_r.c (__getmntent_r): Likewise.
2978 * posix/wordexp.c (parse_arith): Likewise.
2979 (parse_backtick): Likewise.
2980 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
2981 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
2982 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2983
2984 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
2985
2986 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
2987 Use float instead of double.
2988
2989 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
2990
2991 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
2992
2993 2019-02-08 Joseph Myers <joseph@codesourcery.com>
2994
2995 * sysdeps/powerpc/bits/mathinline.h: Remove.
2996
2997 2019-02-08 Florian Weimer <fweimer@redhat.com>
2998
2999 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
3000 * math/bits/math-finite.h: Move to ...
3001 * bits/math-finite.h: ... here.
3002
3003 2019-02-08 Florian Weimer <fweimer@redhat.com>
3004
3005 * sysdeps/generic/bits/unistd_ext.h: Move to ...
3006 * bits/unistd_ext.h: here.
3007
3008 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
3009
3010 [BZ #21915]
3011 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
3012 * nss/tst-nss-files-hosts-long.c: New file.
3013 * nss/tst-nss-files-hosts-long.root: New directory.
3014 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
3015 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
3016
3017 2019-02-08 Florian Weimer <fweimer@redhat.com>
3018
3019 * include/bits/unistd_ext.h: Remove file.
3020 * posix/bits/unistd_ext.h: Move to ...
3021 * sysdeps/generic/bits/unistd_ext.h: ... here.
3022
3023 2019-02-08 Florian Weimer <fweimer@redhat.com>
3024
3025 * include/bits/unistd_ext.h: New file.
3026
3027 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
3028
3029 * time/tst-strftime2.c: Use array_length macros instead of magic
3030 numbers.
3031
3032 2019-02-08 Florian Weimer <fweimer@redhat.com>
3033
3034 [BZ #24161]
3035 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
3036 argument.
3037 * nptl/register-atfork.c (__run_fork_handlers): Only perform
3038 locking if the new do_locking argument is true.
3039 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
3040 __run_fork_handlers.
3041
3042 2019-02-08 Florian Weimer <fweimer@redhat.com>
3043
3044 [BZ #6399]
3045 Linux: Add gettid system call wrapper.
3046 * posix/Makefile (headers): Add bits/unistd_ext.h.
3047 * posix/bits/unistd_ext.h: New file.
3048 * posix/unistd.h: Include it.
3049 * manual/process.texi (Process Identification): Document gettid.
3050 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
3051 tst-gettid, tst-gettid-kill.
3052 (tst-gettid): Link with $(shared-thread-library).
3053 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
3054 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
3055 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
3056 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
3057 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
3058 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
3059 Add gettid.
3060 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
3061 Likewise.
3062 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
3063 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
3064 Likewise.
3065 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
3066 Likewise.
3067 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
3068 Likewise.
3069 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
3070 Likewise.
3071 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
3072 Likewise.
3073 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
3074 Likewise.
3075 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
3076 Likewise.
3077 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
3078 (GLIBC_2.30): Likewise.
3079 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
3080 (GLIBC_2.30): Likewise.
3081 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
3082 (GLIBC_2.30): Likewise.
3083 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
3084 (GLIBC_2.30): Likewise.
3085 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
3086 Likewise.
3087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
3088 (GLIBC_2.30): Likewise.
3089 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
3090 (GLIBC_2.30): Likewise.
3091 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
3092 (GLIBC_2.30): Likewise.
3093 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
3094 (GLIBC_2.30): Likewise.
3095 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
3096 Likewise.
3097 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
3098 Likewise.
3099 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
3100 Likewise.
3101 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
3102 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
3103 Likewise.
3104 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
3105 Likewise.
3106 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
3107 Likewise.
3108 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
3109 Likewise.
3110 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
3111
3112 2019-02-08 Florian Weimer <fweimer@redhat.com>
3113
3114 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
3115 compatibility symbols.
3116
3117 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
3118
3119 [BZ #24180]
3120 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
3121 Add compiler barriers and comments.
3122
3123 2019-02-07 Florian Weimer <fweimer@redhat.com>
3124
3125 * include/array_length.h (array_length): Do not use a statement
3126 expression and _Static_assert, so that array_length can be used at
3127 file scope and as a constant expression.
3128
3129 2019-02-07 Florian Weimer <fweimer@redhat.com>
3130
3131 * support/xdlfcn.h (xdlmopen): Declare.
3132 * support/xdlmopen.c: New file.
3133 * support/Makefile (libsupport-routines): Add xdlmopen.
3134
3135 2019-02-06 Joseph Myers <joseph@codesourcery.com>
3136
3137 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
3138 before return type, without separate inline.
3139 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
3140 * elf/dl-tunables.h (tunable_is_name): Likewise.
3141 * malloc/malloc.c (do_set_trim_threshold): Likewise.
3142 (do_set_top_pad): Likewise.
3143 (do_set_mmap_threshold): Likewise.
3144 (do_set_mmaps_max): Likewise.
3145 (do_set_mallopt_check): Likewise.
3146 (do_set_perturb_byte): Likewise.
3147 (do_set_arena_test): Likewise.
3148 (do_set_arena_max): Likewise.
3149 (do_set_tcache_max): Likewise.
3150 (do_set_tcache_count): Likewise.
3151 (do_set_tcache_unsorted_limit): Likewise.
3152 * nis/nis_subr.c (count_dots): Likewise.
3153 * nptl/allocatestack.c (advise_stack_range): Likewise.
3154 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
3155 (do_sin): Likewise.
3156 (reduce_sincos): Likewise.
3157 (do_sincos): Likewise.
3158 * sysdeps/unix/sysv/linux/x86/elision-conf.c
3159 (do_set_elision_enable): Likewise.
3160 (TUNABLE_CALLBACK_FNDECL): Likewise.
3161
3162 2019-02-06 Florian Weimer <fweimer@redhat.com>
3163
3164 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
3165 (xdlsym): Use dlerror to detect a NULL symbol.
3166
3167 2019-02-06 Florian Weimer <fweimer@redhat.com>
3168
3169 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
3170 <stap-probe.h>.
3171 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
3172
3173 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3174
3175 * libio/tst-bz24153.c (wide): Use wide char format specifier.
3176
3177 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3178
3179 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
3180 __wmemcmp and weak alias to wmemcmp.
3181
3182 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
3183
3184 [BZ #23403]
3185 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
3186 TLS_TCB_AT_TP tls variant.
3187 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
3188 Add alignment checks.
3189 * support/Makefile (libsupport-routines): Add xposix_memalign and
3190 xpthread_setstack.
3191 * support/support.h: Add xposix_memalign.
3192 * support/xthread.h: Add xpthread_attr_setstack.
3193 * support/xposix_memalign.c: New File.
3194 * support/xpthread_attr_setstack.c: Likewise.
3195
3196 2019-02-05 Florian Weimer <fweimer@redhat.com>
3197
3198 [BZ #24164]
3199 arm: Use "nr" constraint for Systemtap probes, to avoid the
3200 compiler using memory operands for constants, due to the "o"
3201 alternative in the default "nor" constraint.
3202 * include/stap-probe.h [USE_STAP_PROBE]: Include
3203 <stap-probe-machine.h>
3204 * sysdeps/generic/stap-probe-machine.h: New file.
3205 * sysdeps/arm/stap-probe-machine.h: Likewise.
3206
3207 2019-02-04 Joseph Myers <joseph@codesourcery.com>
3208
3209 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
3210 with 0, not tcache->entries[tc_idx].
3211
3212 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
3213 once.
3214
3215 2019-02-04 Andreas Schwab <schwab@suse.de>
3216
3217 [BZ #16976]
3218 [BZ #17396]
3219 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
3220 looking up collating elements match against (wide) character
3221 sequence instead of name. Correct alignment adjustment.
3222 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
3223 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
3224 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
3225 (LOCALES): Add cs_CZ.ISO-8859-2.
3226 * posix/tst-fnmatch4.c: New file.
3227 * posix/tst-fnmatch5.c: New file.
3228 * include/wchar.h (__wmemcmp): Declare.
3229 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
3230 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
3231 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
3232 * sysdeps/s390/wmemcmp.c: Likewise.
3233
3234 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
3235
3236 [BZ #24155]
3237 CVE-2019-7309
3238 * NEWS: Updated for CVE-2019-7309.
3239 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
3240 upper 32 bits of RDX register for x32. Use unsigned Jcc
3241 instructions, instead of signed.
3242 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
3243 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
3244
3245 2019-02-04 Florian Weimer <fweimer@redhat.com>
3246
3247 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
3248 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
3249 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
3250 Likewise.
3251 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
3252 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
3253 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
3254 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
3255 Likewise.
3256 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
3257 Likewise.
3258 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
3259 Likewise.
3260 (posix_spawn_file_actions_addopen): Likewise.
3261 (posix_spawn_file_actions_addclose): Likewise.
3262 (posix_spawn_file_actions_adddup2): Likewise.
3263 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
3264 qualifiers.
3265 (posix_spawn_file_actions_addfchdir_np): Likewise.
3266
3267 2019-02-04 David Newall <glibc@davidnewall.com>
3268
3269 elf: Implement --preload option for the dynamic linker.
3270 * elf/rtld.c (preloadarg): New variable.
3271 (handle_preload_list): Pass through “where” argument to
3272 do_preload.
3273 (dl_main): Handle "--preload" and add second call to
3274 handle_preload_list.
3275 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
3276 (tst-rtld-preload-OBJS): Set variable.
3277 (tst-rtld-preload.out): New target.
3278 * elf/tst-rtld-preload.sh: New file.
3279
3280 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
3281
3282 * Makefile (testrun.sh): Exit in case of incorrect argument.
3283
3284 2019-02-04 Florian Weimer <fweimer@redhat.com>
3285
3286 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
3287 alignment gaps.
3288
3289 2019-02-03 Florian Weimer <fweimer@redhat.com>
3290
3291 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
3292 implicit overflow checks.
3293
3294 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
3295
3296 * stdlib/isomac.c: Include <unistd.h>.
3297
3298 2019-02-03 Florian Weimer <fweimer@redhat.com>
3299
3300 * include/time.h (__tzfile_default): Use int, not long int, for
3301 the GMT offsets.
3302 * time/tzfile.c (struct ttinfo): Change type of the offset member
3303 to int.
3304 (__tzfile_read): Remove useless cast.
3305 (__tzfile_default): Adjust prototype.
3306 * time/tzset.c (tz_rule): Change type of the offset member to int.
3307 (parse_offset): Change the type of the sign variable to int.
3308
3309 2019-02-03 Florian Weimer <fweimer@redhat.com>
3310
3311 [BZ #24153]
3312 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
3313 * libio/getchar.c (getchar): Likewise.
3314 * libio/getchar_u.c (getchar_unlocked): Likewise.
3315 * libio/getwchar.c (getwchar): Likewise.
3316 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3317 * libio/iogets.c (_IO_gets): Likewise.
3318 * libio/vscanf.c (_IO_vscanf): Likewise.
3319 * libio/vwscanf.c (__vwscanf): Likewise.
3320 * libio/tst-bz24153.c: New file.
3321 * libio/Makefile (tests): Add it.
3322
3323 2019-02-02 Florian Weimer <fweimer@redhat.com>
3324
3325 [BZ #14829]
3326 * manual/resource.texi (Basic Scheduling Functions): Add
3327 portability note. Change process to task throughout the section.
3328 Remove incorrect comment about sched_yield as it affects
3329 tasks/threads, not entire processes.
3330 * sysdeps/unix/sysv/linux/bits/posix_opt.h
3331 (_POSIX_PRIORITY_SCHEDULING): Update comment.
3332
3333 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3334
3335 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
3336 * configure: Regenerated.
3337 * manual/install.texi (Tools for Compilation): Update minimum GCC
3338 version.
3339 * INSTALL: Regenerated.
3340
3341 2019-02-01 Florian Weimer <fweimer@redhat.com>
3342
3343 * support/support_test_compare_string.c
3344 (support_test_compare_string): Use "string" in error message.
3345 * support/tst-test_compare_string.c (do_test): Adjust.
3346
3347 2019-02-01 Florian Weimer <fweimer@redhat.com>
3348
3349 * support/support_format_address_family.c
3350 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
3351
3352 2019-02-01 Florian Weimer <fweimer@redhat.com>
3353
3354 * manual/socket.texi (Internet Address Formats): Clarify the byte
3355 order of struct sockaddr_in, struct sockaddr_in6. Document
3356 sin6_flowinfo and sin6_scope_id.
3357
3358 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
3359
3360 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
3361 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
3362 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
3363 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
3364 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
3365 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
3366
3367 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3368
3369 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
3370 [!MEMCHR](MEMCHR): Set to __memchr.
3371 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3372 Add memchr_generic and memchr_nosimd.
3373 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3374 (__libc_ifunc_impl_list): Add memchr ifuncs.
3375 * sysdeps/aarch64/multiarch/memchr.c: New file.
3376 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
3377 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
3378
3379 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3380
3381 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
3382 Add memset_emag.
3383 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
3384 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
3385 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
3386 Add IS_EMAG check for ifunc dispatch.
3387 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
3388 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
3389
3390 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
3391
3392 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
3393 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3394 Add emag.
3395 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
3396 New macro.
3397
3398 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
3399
3400 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
3401
3402 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
3403
3404 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
3405 syscall-template file.
3406
3407 2019-01-31 Carlos O'Donell <carlos@redhat.com>
3408 Torvald Riegel <triegel@redhat.com>
3409 Rik Prohaska <prohaska7@gmail.com>
3410
3411 [BZ# 23844]
3412 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
3413 tst-rwlock-trywrlock-stall.
3414 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
3415 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
3416 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
3417 Set __wrphase_fute to 1 only if we started the write phase.
3418 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
3419 * nptl/tst-rwlock-trywrlock-stall.c: New file.
3420 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
3421 * support/xpthread_rwlock_destroy.c: New file.
3422 * support/xthread.h: Declare xpthread_rwlock_destroy.
3423
3424 2019-02-01 Joseph Myers <joseph@codesourcery.com>
3425
3426 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
3427 version to 4.0.2.
3428
3429 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3430
3431 [BZ #24051]
3432 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
3433 * libio/fileops.c (_IO_new_file_underflow): Likewise
3434 * libio/wfileops.c (_IO_wfile_underflow): Likewise
3435 * libio/putchar.c (putchar): Likewise.
3436 * libio/putchar_u.c (putchar_unlocked): Likewise.
3437 * libio/putwchar.c (putchar): Likewise.
3438 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
3439 * libio/tst-bz24051.c: New test.
3440 * libio/Makefile (tests): Add tst-bz24051
3441
3442 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
3443
3444 CVE-2019-9169
3445 regex: fix read overrun [BZ #24114]
3446 Problem found by AddressSanitizer, reported by Hongxu Chen in:
3447 https://debbugs.gnu.org/34140
3448 * posix/regexec.c (proceed_next_node):
3449 Do not read past end of input buffer.
3450
3451 2019-01-31 Florian Weimer <fweimer@redhat.com>
3452
3453 [BZ #24059]
3454 * nss/nss_files/files-alias.c (get_next_alias): Handle
3455 continuation line without newline at the end.
3456 * nss/tst-nss-files-alias-truncated.c: New file.
3457 * nss/Makefile [$(build-shared)] (tests): Add
3458 tst-nss-files-alias-truncated.
3459 (tst-nss-files-alias-truncated): Link with libnss_files.so.
3460 * support/namespace.h (struct support_chroot_configuration): Add
3461 aliases member.
3462 (struct support_chroot): Add path_aliases member.
3463 * support/support_chroot.c (support_chroot_create): Handle
3464 aliases.
3465 (support_chroot_free): Free path_aliases.
3466
3467 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
3468
3469 * version.h (RELEASE): Set to "development".
3470 (VERSION): Set to "2.29.9000".
3471 * NEWS: Add section for 2.30.
3472
3473 * version.h (RELEASE): Set to "stable".
3474 (VERSION): Set to "2.29".
3475 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
3476
3477 * NEWS: Add the list of bugs fixed in 2.29.
3478 * manual/contrib.texi: Update contributors list with some more
3479 names.
3480 * manual/install.texi: Update latest versions of packages
3481 tested.
3482 * INSTALL: Regenerated.
3483
3484 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
3485
3486 * po/be.po: Update translations.
3487 * po/bg.po: Likewise.
3488 * po/ca.po: Likewise.
3489 * po/cs.po: Likewise.
3490 * po/da.po: Likewise.
3491 * po/de.po: Likewise.
3492 * po/el.po: Likewise.
3493 * po/eo.po: Likewise.
3494 * po/es.po: Likewise.
3495 * po/fi.po: Likewise.
3496 * po/fr.po: Likewise.
3497 * po/gl.po: Likewise.
3498 * po/hr.po: Likewise.
3499 * po/hu.po: Likewise.
3500 * po/ia.po: Likewise.
3501 * po/id.po: Likewise.
3502 * po/it.po: Likewise.
3503 * po/ja.po: Likewise.
3504 * po/ko.po: Likewise.
3505 * po/lt.po: Likewise.
3506 * po/nb.po: Likewise.
3507 * po/nl.po: Likewise.
3508 * po/pl.po: Likewise.
3509 * po/pt_BR.po: Likewise.
3510 * po/ru.po: Likewise.
3511 * po/rw.po: Likewise.
3512 * po/sk.po: Likewise.
3513 * po/sl.po: Likewise.
3514 * po/sv.po: Likewise.
3515 * po/tr.po: Likewise.
3516 * po/uk.po: Likewise.
3517 * po/vi.po: Likewise.
3518 * po/zh_CN.po: Likewise.
3519 * po/zh_TW.po: Likewise.
3520
3521 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
3522
3523 [BZ #24130]
3524 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
3525 of $f3 register on $y_is_neg path.
3526
3527 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
3528
3529 [BZ #24110]
3530 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
3531 sigaltstack.ss_flags.
3532
3533 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
3534
3535 [BZ #23758]
3536 * manual/time.texi (strftime): Document "%Ey".
3537 * time/strftime_l.c (__strftime_internal): Set the default width
3538 padding with zero of "%Ey" to 2.
3539
3540 [BZ #24096]
3541 * manual/time.texi (strftime): Document "%EC" and "%EY".
3542 * time/Makefile (tests): Add tst-strftime2.
3543 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
3544 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
3545 override padding for "%Ey".
3546 If an optional flag ('_' or '-') is specified to "%EY", interpret the
3547 "%Ey" in the subformat as if decorated with that flag.
3548 * time/tst-strftime2.c: New file.
3549
3550 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3551
3552 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
3553 are not defined.
3554
3555 [BZ #24122]
3556 * elf/Makefile (tests): Add tst-audit13.
3557 (modules-names): Add tst-audit13mod1.
3558 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
3559 rule.
3560 * elf/rtld.c (dl_main): Handle invalid audit module version.
3561 * elf/tst-audit13.c: New file.
3562 * elf/tst-audit13mod1.c: Likewise.
3563
3564 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3565
3566 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
3567 returned by __hurd_at_flags.
3568 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
3569 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
3570 directly instead of __hurd_file_name_lookup.
3571
3572 2019-01-21 Joseph Myers <joseph@codesourcery.com>
3573
3574 * scripts/build-many-glibcs.py (Context.checkout): Default
3575 binutils version to 2.32 branch.
3576
3577 2019-01-21 Florian Weimer <fweimer@redhat.com>
3578
3579 [BZ #20018]
3580 CVE-2016-10739
3581 resolv: Reject trailing characters in host names
3582 * include/arpa/inet.h (__inet_aton_exact): Declare.
3583 (inet_aton): Remove hidden prototype. No longer used internally.
3584 * nscd/gai.c (__inet_aton): Do not define.
3585 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
3586 * nss/digits_dots.c (__inet_aton): Likewise.
3587 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
3588 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
3589 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
3590 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
3591 (tst-resolv-trailing): Likewise.
3592 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
3593 libc.
3594 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
3595 Make static. Add endp parameter.
3596 (__inet_aton_exact): New function.
3597 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
3598 (__inet_addr): Call inet_aton_end.
3599 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
3600 not just IPv6. Call __inet_aton_exact.
3601 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
3602 (tests): Make const. Add additional test cases with trailing
3603 characters.
3604 (do_test): Use array_length.
3605 * resolv/tst-inet_aton_exact.c: New file.
3606 * resolv/tst-resolv-trailing.c: Likewise.
3607 * resolv/tst-resolv-nondecimal.c: Likewise.
3608 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
3609
3610 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3611
3612 [BZ# 24097]
3613 CVE-2019-6488
3614 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
3615 Clear the upper 32 bits of RSI register.
3616 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
3617 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
3618 and tst-size_t-wcsnlen.
3619 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
3620 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
3621
3622 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3623
3624 [BZ# 24097]
3625 CVE-2019-6488
3626 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
3627 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3628 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
3629 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
3630 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
3631
3632 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3633
3634 [BZ# 24097]
3635 CVE-2019-6488
3636 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
3637 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3638 * sysdeps/x86_64/strcmp.S: Likewise.
3639 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
3640 tst-size_t-strncmp and tst-size_t-wcsncmp.
3641 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
3642 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
3643 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
3644
3645 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3646
3647 [BZ# 24097]
3648 CVE-2019-6488
3649 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
3650 RDX_LP for length. Clear the upper 32 bits of RDX register.
3651 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
3652 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
3653 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
3654 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
3655
3656 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3657
3658 [BZ# 24097]
3659 CVE-2019-6488
3660 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
3661 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
3662 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
3663 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
3664
3665 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3666
3667 [BZ# 24097]
3668 CVE-2019-6488
3669 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
3670 length. Clear the upper 32 bits of RDX register.
3671 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3672 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
3673 Likewise.
3674 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
3675 Likewise.
3676 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
3677 tst-size_t-wmemchr.
3678 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
3679
3680 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3681
3682 [BZ# 24097]
3683 CVE-2019-6488
3684 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
3685 length. Clear the upper 32 bits of RDX register.
3686 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3687 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
3688 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
3689 tst-size_t-wmemcmp.
3690 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
3691 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
3692
3693 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
3694
3695 [BZ# 24097]
3696 CVE-2019-6488
3697 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
3698 upper 32 bits of RDX register.
3699 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
3700 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
3701 tst-size_t-wmemchr.
3702 * sysdeps/x86_64/x32/test-size_t.h: New file.
3703 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
3704 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
3705
3706 2019-01-18 Florian Weimer <fweimer@redhat.com>
3707
3708 [BZ #24112]
3709 resolv: Do not send queries for non-host-names in nss_dns.
3710 * resolv/nss_dns/dns-host.c (check_name): New function.
3711 (_nss_dns_gethostbyname2_r): Use it.
3712 (_nss_dns_gethostbyname_r): Likewise.
3713 (_nss_dns_gethostbyname4_r): Likewise.
3714
3715 2019-01-21 Florian Weimer <fweimer@redhat.com>
3716
3717 * resolv/inet_addr.c: Reformat to GNU style.
3718 (__inet_addr, __inet_aton): Update comment.
3719
3720 2019-01-18 Florian Weimer <fweimer@redhat.com>
3721
3722 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
3723 ("malloc: Use current (C11-style) atomics for fastbin access").
3724 This commit introduces a substantial performance regression on
3725 POWER and Aarch64.
3726 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
3727 (REMOVE_FB): Define.
3728 (_int_malloc): Use it and reindent.
3729 (_int_free): Use CAS loop with
3730 catomic_compare_and_exchange_val_rel.
3731 (malloc_consolidate): Use atomic_exchange_acq.
3732
3733
3734 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
3735
3736 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
3737 -Wl,-z,now.
3738 (LDFLAGS-tst-minsigstksz-2): Likewise.
3739 (LDFLAGS-tst-minsigstksz-3): Likewise.
3740 (LDFLAGS-tst-minsigstksz-3a): Likewise.
3741 (LDFLAGS-tst-minsigstksz-4): Likewise.
3742
3743 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
3744
3745 * manual/time.texi (strftime): Fix the wording to "alternative" rather
3746 than "alternate".
3747
3748 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
3749
3750 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
3751
3752 2019-01-16 Zack Weinberg <zackw@panix.com>
3753
3754 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
3755 (xget_sigstack_location): New test support functions.
3756 * support/xsigstack.c: New file, implementing them.
3757 * support/tst-xsigstack.c: New test for them.
3758 * support/Makefile: Update.
3759
3760 * signal/tst-minsigstksz-1.c
3761 * signal/tst-minsigstksz-2.c
3762 * signal/tst-minsigstksz-3.c
3763 * signal/tst-minsigstksz-3a.c
3764 * signal/tst-minsigstksz-4.c: New tests.
3765 * signal/Makefile: Run them.
3766
3767 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
3768
3769 * po/libc.pot: Regenerate.
3770
3771 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3772
3773 * math/libm-test-fma.inc (fma_test_data): Set
3774 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
3775
3776 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3777
3778 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
3779 (do_test): Changed __vector __int128_t to __vector unsigned int.
3780
3781 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3782
3783 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
3784 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
3785 stpcpy-avx2 and stpncpy-avx2.
3786 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
3787 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
3788 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
3789 and __stpncpy_avx2.
3790 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
3791 ifunc-strcpy.h}: rename header for a more generic name.
3792 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
3793 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
3794 AVX unaligned load is fast and vzeroupper is preferred.
3795 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
3796 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
3797 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
3798 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
3799 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
3800 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
3801
3802 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
3803
3804 * argp/argp-help.c: Fix typo in comment.
3805 * misc/sys/cdefs.h: Likewise.
3806 * posix/regexec.c (sift_states_iter_mb): Likewise.
3807 * socket/sockatmark.c: Likewise.
3808 * socket/sys/socket.h: Likewise.
3809 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
3810 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
3811 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
3812 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3813 * sysdeps/unix/sockatmark.c: Likewise.
3814 * time/strptime_l.c: Likewise.
3815
3816 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
3817
3818 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
3819 missing space after the cast of "_NL_CURRENT".
3820
3821 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
3822
3823 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
3824 ifdef to fix read of VSCR.
3825 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
3826 tst-ucontext-ppc64-vscr.c to test list.
3827 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
3828
3829 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
3830
3831 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
3832 fall-through.
3833
3834 2019-01-09 Jim Wilson <jimw@sifive.com>
3835
3836 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
3837
3838 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
3839
3840 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
3841 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
3842 __memcpy_falkor for ares.
3843 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
3844 Add new define.
3845 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
3846 Add ares cpu.
3847
3848 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
3849
3850 [BZ #24066]
3851 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
3852 4_FP_W_TYPEs are used for IEEE quad precision.
3853 * soft-fp/extendhftf2.c: Likewise.
3854 * soft-fp/extendsftf2.c: Likewise.
3855 * soft-fp/extendxftf2.c: Likewise.
3856 * soft-fp/trunctfdf2.c: Likewise.
3857 * soft-fp/trunctfhf2.c: Likewise.
3858 * soft-fp/trunctfsf2.c: Likewise.
3859 * soft-fp/trunctfxf2.c: Likewise.
3860 * sysdeps/alpha/ots_cvttx.c: Likewise.
3861 * sysdeps/alpha/ots_cvtxt.c: Likewise.
3862 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
3863 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
3864 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
3865 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
3866 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
3867 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
3868 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
3869 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
3870 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
3871 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
3872 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
3873 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
3874 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
3875 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
3876 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
3877 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
3878
3879 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3880
3881 [BZ #24024]
3882 * Makeconfig: Build libm with -fno-math-errno but build the remaining
3883 code with -fmath-errno.
3884 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
3885 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
3886 * string/test-strerror-errno.c: New file.
3887
3888 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
3889
3890 [BZ #24046]
3891 * localedata/locales/en_US (date_fmt): Add, set to
3892 "%a %d %b %Y %r %Z".
3893
3894 2019-01-07 Florian Weimer <fweimer@redhat.com>
3895
3896 [BZ #24063]
3897 * manual/arith.texi (Math Error Reporting): Use @code{errno}
3898 instead of @var{errno}.
3899 (Parsing of Integers): Likewise.
3900 (Parsing of Floats): Likewise.
3901 * manual/filesys.texi (Working with Directory Trees): Likewise.
3902 (Temporary Files): Likewise.
3903 * manual/job.texi (Terminal Access Functions): Likewise.
3904 * manual/llio.texi (Synchronizing I/O): Likewise.
3905 * manual/math.texi (SVID Random): Likewise.
3906 * manual/message.texi (The catgets Functions): Likewise.
3907 (Translation with gettext): Likewise.
3908 (Locating gettext catalog): Likewise.
3909 (Charset conversion in gettext): Likewise.
3910 * manual/nss.texi (NSS Module Function Internals): Likewise.
3911 * manual/search.texi (Hash Search Function): Likewise.
3912 * manual/setjmp.texi (System V contexts): Likewise.
3913 * manual/time.texi (Sleeping): Likewise.
3914 * manual/users.texi (Lookup User): Likewise.
3915 (Lookup Group): Likewise.
3916
3917 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3918
3919 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
3920 fix typo.
3921
3922 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
3923
3924 [BZ #19444]
3925 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
3926 __builtin_unreachable for default case in switch.
3927 (__ieee754_yn): Likewise.
3928 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
3929 (__ieee754_ynl): Likewise.
3930 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
3931 (__ieee754_ynl): Likewise.
3932 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
3933 (__ieee754_ynl): Likewise.
3934
3935 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
3936
3937 * manual/maint.texi: Use @{ and @}.
3938
3939 2019-01-04 Florian Weimer <fweimer@redhat.com>
3940
3941 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
3942 function.
3943 (do_in_chroot_1): Call it.
3944 (run_chroot_tests):
3945 Improve error reporting in case it is not possible to create a
3946 collision for the PTY name required by the test.
3947
3948 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
3949
3950 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
3951 lll_wait_tid with timeout.
3952 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
3953 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
3954 futex_reltimed_wait_cancelable for cancelabla mode.
3955 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
3956 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
3957 macros.
3958 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
3959 * sysdeps/posix/waitid.c (__sigwait): Likewise.
3960 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
3961 SYSCALL_CANCEL_NCS): New macro.
3962 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
3963 (lll_timedwait_tid): Remove macro.
3964 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
3965 Likewise.
3966 (lll_timedwait_tid): Likewise.
3967 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
3968 Likewise.
3969 (lll_timedwait_tid): Likewise.
3970 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
3971 Likewise.
3972 (lll_timedwait_tid): Likewise.
3973 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
3974 Use INTERNAL_SYSCALL_CANCEL.
3975 * sysdeps/unix/sysv/linux/futex-internal.h
3976 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
3977 instead of __pthread_{enable,disable}_asynccancel.
3978 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
3979 (lll_futex_wait_cancel): New macro.
3980
3981 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3982 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3983
3984 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
3985 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
3986
3987 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
3988 in backtrace analysis.
3989 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
3990 side-effects.
3991 (tf_send): Likewise.
3992
3993 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
3994 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
3995 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
3996 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
3997 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3998 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
3999 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
4000 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
4001 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
4002 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
4003 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
4004 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
4005 Likewise.
4006 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
4007 tst-cancel-wrappers.sh.
4008 (generated): Remove tst-cancel-wrappers.out.
4009 (tst-cancel-wrappers.out): Remove rule.
4010 * nptl/tst-cancel-wrappers.sh: Remove file.
4011
4012 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
4013
4014 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
4015 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
4016 Update.
4017
4018 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4019
4020 [BZ #23640]
4021 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
4022 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
4023 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
4024 close-on-exec reset for adddup2 file action.
4025 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
4026
4027 2019-01-03 Zack Weinberg <zackw@panix.com>
4028
4029 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
4030 parameter. Only use deprecated scanf when __USE_GNU is defined
4031 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
4032 than 201103L, whichever is relevant for the language being compiled.
4033
4034 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
4035 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
4036 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
4037 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
4038 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
4039
4040 * libio/iovsscanf.c
4041 * libio/fwscanf.c
4042 * libio/iovswscanf.c
4043 * libio/swscanf.c
4044 * libio/vscanf.c
4045 * libio/vwscanf.c
4046 * libio/wscanf.c
4047 * stdio-common/fscanf.c
4048 * stdio-common/scanf.c
4049 * stdio-common/vfscanf.c
4050 * stdio-common/vfwscanf.c
4051 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4052 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
4053 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
4054 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
4055 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
4056 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
4057 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
4058 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
4059 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
4060 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
4061 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
4062 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
4063 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
4064 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
4065 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
4066
4067 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
4068 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
4069 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
4070 not sscanf.
4071 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
4072 with a preprocessor macro.
4073
4074 * stdio-common/bug21.c, stdio-common/scanf14.c:
4075 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
4076 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4077 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
4078 to xscanf, xfscanf, xsscanf.
4079
4080 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
4081 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
4082 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
4083 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
4084 xfscanf, xsscanf.
4085 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
4086 override feature selection macros or provide definitions of u_char etc.
4087 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
4088 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
4089 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
4090 with -std=gnu89.
4091
4092 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4093
4094 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4095 bits/termios-misc.h.
4096 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
4097 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4098 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4099 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4100 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
4101 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
4102
4103 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
4104 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4105 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
4106 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
4107 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
4108 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
4109 termios-misc.h.
4110 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
4111 (sysdep_headers): Add termios-misc.h.
4112
4113 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
4114 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4115 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4116
4117 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4118 termios-tcflow.h.
4119 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
4120 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
4121 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
4122 TCSAFLUSH): Move to termios-tcflow.h.
4123 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4124 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4125 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4126 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4127
4128 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4129 termios-c_lflag.h.
4130 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
4131 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
4132 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
4133 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
4134 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
4135 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
4136 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
4137 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
4138 Likewise.
4139 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4140 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4141 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4142 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4143
4144 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4145 termios-c_cflag.h.
4146 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
4147 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
4148 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
4149 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
4150 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
4151 termios-c_cflag.h.
4152 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4153 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4154 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4155 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4156
4157 [BZ #23783]
4158 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4159 termios-baud.h.
4160 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
4161 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
4162 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
4163 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
4164 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
4165 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
4166 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
4167 __MAX_BAUD): Move to termios-baud.h.
4168 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
4169 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
4170 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4171 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4172 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4173
4174 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
4175 termios-c_oflag.h.
4176 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
4177 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
4178 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
4179 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
4180 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
4181 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
4182 termios-c_oflag.h.
4183 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
4184 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
4185 FFR1): Likewise.
4186 [USE_MISC] (XTABS): Likewise.
4187 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4188 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4189 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4190 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
4191
4192 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
4193 termios-c_iflag.h.
4194 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
4195 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
4196 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
4197 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
4198 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
4199 IUTF8): Move to termios-c_iflag.h.
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 (sysdeps_headers): Add
4206 termios-cc.h.
4207 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
4208 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
4209 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
4210 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
4211 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
4212 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
4213 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
4214 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
4215 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
4216 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
4217 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
4218 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
4219
4220 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
4221 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
4222 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
4223 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
4224 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4225 termios-struct.h.
4226 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
4227 termios-struct.h.
4228 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
4229 Likewise.
4230 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
4231 Likewise.
4232 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
4233 Likewise.
4234 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
4235 Likewise.
4236 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
4237 _HAVE_C_OSPEED): Define.
4238 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
4239 _HAVE_C_OSPEED): Likewise.
4240 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
4241 _HAVE_C_OSPEED): Likewise.
4242 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
4243 (cfsetospeed): Check for define value instead of existence.
4244 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
4245 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4246 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
4247 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
4248 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
4249
4250 [BZ #17783]
4251 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
4252 Define.
4253 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
4254 (TIOCSER_TEMT): Likewise.
4255 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
4256 (TEOCSER_TEMT): Likewise.
4257
4258 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
4259
4260 [BZ #24011]
4261 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
4262
4263 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4264
4265 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
4266
4267 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
4268
4269 * sysdeps/htl/pt-barrierattr-setpshared.c
4270 (pthread_barrierattr_setpshared): Add stub warning.
4271 * sysdeps/htl/pt-condattr-setpshared.c
4272 (pthread_condattr_setpshared): Likewise.
4273 * sysdeps/htl/pt-mutexattr-setpshared.c
4274 (pthread_mutexattr_setpshared): Likewise.
4275 * sysdeps/htl/pt-rwlockattr-setpshared.c
4276 (pthread_rwlockattr_setpshared): Likewise.
4277 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
4278 (pthread_mutexattr_setpshared): Likewise.
4279
4280 2019-01-02 Joseph Myers <joseph@codesourcery.com>
4281
4282 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
4283 constants to match with Linux 4.20.
4284
4285 * sysdeps/mips/mips32/libm-test-ulps: Update.
4286 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
4287
4288 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
4289
4290 [BZ #24034]
4291 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
4292 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
4293 than __typeof (...) for the a_ptr variable.
4294
4295 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4296
4297 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
4298 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
4299 * libio/Makefile (tests): Add tst-sprintf-ub and
4300 tst-sprintf-chk-ub.
4301 (CFLAGS-tst-sprintf-ub.c): New variable.
4302 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
4303 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
4304 destination buffer and check for overflows in fortified mode.
4305 * libio/libioP.h (PRINTF_CHK): New macro.
4306 * libio/tst-sprintf-chk-ub.c: New file.
4307 * libio/tst-sprintf-ub.c: Likewise.
4308
4309 2019-01-02 Florian Weimer <fweimer@redhat.com>
4310
4311 [BZ #24018]
4312 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
4313 failure.
4314
4315 2019-01-02 Florian Weimer <fweimer@redhat.com>
4316
4317 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
4318
4319 2019-01-01 Joseph Myers <joseph@codesourcery.com>
4320
4321 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
4322 macro.
4323
4324 * sysdeps/unix/sysv/linux/netpacket/packet.h
4325 (PACKET_IGNORE_OUTGOING): New macro.
4326
4327 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
4328 macro.
4329
4330 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
4331 version to 4.20.
4332 (riscv_flush_icache): New syscall.
4333
4334 * manual/texinfo.tex: Update to version 2018-12-28.17 with
4335 trailing whitespace removed.
4336 * scripts/config.guess: Update to version 2019-01-01.
4337 * scripts/config.sub: Update to version 2019-01-01.
4338 * scripts/move-if-change: Update from gnulib.
4339
4340 * NEWS: Update copyright dates.
4341 * catgets/gencat.c (print_version): Likewise.
4342 * csu/version.c (banner): Likewise.
4343 * debug/catchsegv.sh: Likewise.
4344 * debug/pcprofiledump.c (print_version): Likewise.
4345 * debug/xtrace.sh (do_version): Likewise.
4346 * elf/ldconfig.c (print_version): Likewise.
4347 * elf/ldd.bash.in: Likewise.
4348 * elf/pldd.c (print_version): Likewise.
4349 * elf/sotruss.sh: Likewise.
4350 * elf/sprof.c (print_version): Likewise.
4351 * iconv/iconv_prog.c (print_version): Likewise.
4352 * iconv/iconvconfig.c (print_version): Likewise.
4353 * locale/programs/locale.c (print_version): Likewise.
4354 * locale/programs/localedef.c (print_version): Likewise.
4355 * login/programs/pt_chown.c (print_version): Likewise.
4356 * malloc/memusage.sh (do_version): Likewise.
4357 * malloc/memusagestat.c (print_version): Likewise.
4358 * malloc/mtrace.pl: Likewise.
4359 * manual/libc.texinfo: Likewise.
4360 * nptl/version.c (banner): Likewise.
4361 * nscd/nscd.c (print_version): Likewise.
4362 * nss/getent.c (print_version): Likewise.
4363 * nss/makedb.c (print_version): Likewise.
4364 * posix/getconf.c (main): Likewise.
4365 * scripts/test-installation.pl: Likewise.
4366 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
4367
4368 * All files with FSF copyright notices: Update copyright dates
4369 using scripts/update-copyrights.
4370 * locale/programs/charmap-kw.h: Regenerated.
4371 * locale/programs/locfile-kw.h: Likewise.
4372
4373 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4374
4375 * timezone/zdump.c: Update from tzcode 2018i.
4376 * timezone/zic.c: Likewise.
4377
4378 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
4379
4380 regex: improve Gnulib port to AIX
4381 From the glibc point of view, this removes duplicate macro
4382 definitions and is obviously safe.
4383 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
4384 * posix/regex_internal.h:
4385 (__attribute__, __attribute_warn_unused_result__):
4386 Remove; already defined elsewhere.
4387
4388 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
4389
4390 [BZ #24027]
4391 * malloc/malloc.c (_int_realloc): Always call memcpy for the
4392 copying operation. (ncopies had the wrong type, resulting in an
4393 integer wraparound and too few elements being copied.)
4394
4395 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
4396
4397 [BZ #24022]
4398 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
4399 <asm/syscalls.h> exists with __has_include__ before including it.
4400
4401 2018-12-31 Joseph Myers <joseph@codesourcery.com>
4402
4403 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4404 version to 4.20.
4405
4406 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
4407
4408 * hurd/lookup-retry: Include <unistd.h>.
4409 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
4410 Release it on return. Handle "pid" magical lookup retry.
4411
4412 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4413
4414 [BZ #10496]
4415 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
4416 (t_fmt_ampm): Likewise.
4417 * localedata/locales/aa_ER (t_fmt): Likewise.
4418 (t_fmt_ampm): Likewise.
4419 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
4420 (t_fmt_ampm): Likewise.
4421 * localedata/locales/aa_ET (t_fmt): Likewise.
4422 (t_fmt_ampm): Likewise.
4423 * localedata/locales/am_ET (t_fmt): Likewise.
4424 (t_fmt_ampm): Likewise.
4425 * localedata/locales/byn_ER (t_fmt): Likewise.
4426 (t_fmt_ampm): Likewise.
4427 * localedata/locales/om_ET (t_fmt): Likewise.
4428 (t_fmt_ampm): Likewise.
4429 * localedata/locales/sid_ET (t_fmt): Likewise.
4430 (t_fmt_ampm): Likewise.
4431 * localedata/locales/so_DJ (t_fmt): Likewise.
4432 (t_fmt_ampm): Likewise.
4433 * localedata/locales/so_ET (t_fmt): Likewise.
4434 (t_fmt_ampm): Likewise.
4435 * localedata/locales/so_SO (t_fmt): Likewise.
4436 (t_fmt_ampm): Likewise.
4437 * localedata/locales/ti_ER (t_fmt): Likewise.
4438 (t_fmt_ampm): Likewise.
4439 * localedata/locales/ti_ET (t_fmt): Likewise.
4440 (t_fmt_ampm): Likewise.
4441 * localedata/locales/tig_ER (t_fmt): Likewise.
4442 (t_fmt_ampm): Likewise.
4443 * localedata/locales/wal_ET (t_fmt): Likewise.
4444 (t_fmt_ampm): Likewise.
4445
4446 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
4447 * localedata/locales/ar_IN (t_fmt): Likewise.
4448 * localedata/locales/bhb_IN (t_fmt): Likewise.
4449 * localedata/locales/bho_IN (t_fmt): Likewise.
4450 * localedata/locales/bi_VU (t_fmt): Likewise.
4451 * localedata/locales/bn_BD (t_fmt): Likewise.
4452 * localedata/locales/bn_IN (t_fmt): Likewise.
4453 * localedata/locales/brx_IN (t_fmt): Likewise.
4454 * localedata/locales/doi_IN (t_fmt): Likewise.
4455 * localedata/locales/en_HK (t_fmt): Likewise.
4456 (t_fmt_ampm): Likewise.
4457 * localedata/locales/en_IN (t_fmt): Likewise.
4458 * localedata/locales/en_PH (t_fmt): Likewise.
4459 * localedata/locales/gu_IN (t_fmt): Likewise.
4460 * localedata/locales/hi_IN (t_fmt): Likewise.
4461 * localedata/locales/hif_FJ (t_fmt): Likewise.
4462 * localedata/locales/hne_IN (t_fmt): Likewise.
4463 * localedata/locales/kn_IN (t_fmt): Likewise.
4464 * localedata/locales/kok_IN (t_fmt): Likewise.
4465 * localedata/locales/ks_IN (t_fmt): Likewise.
4466 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
4467 * localedata/locales/mag_IN (t_fmt): Likewise.
4468 * localedata/locales/mai_IN (t_fmt): Likewise.
4469 * localedata/locales/mjw_IN (t_fmt): Likewise.
4470 * localedata/locales/ml_IN (t_fmt): Likewise.
4471 * localedata/locales/mni_IN (t_fmt): Likewise.
4472 * localedata/locales/mr_IN (t_fmt): Likewise.
4473 * localedata/locales/ms_MY (t_fmt): Likewise.
4474 * localedata/locales/pa_IN (t_fmt): Likewise.
4475 * localedata/locales/raj_IN (t_fmt): Likewise.
4476 * localedata/locales/sa_IN (t_fmt): Likewise.
4477 * localedata/locales/sat_IN (t_fmt): Likewise.
4478 * localedata/locales/sd_IN (t_fmt): Likewise.
4479 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
4480 * localedata/locales/tcy_IN (t_fmt): Likewise.
4481 * localedata/locales/the_NP (t_fmt): Likewise.
4482 * localedata/locales/to_TO (t_fmt): Likewise.
4483 * localedata/locales/ur_IN (t_fmt): Likewise.
4484
4485 * localedata/locales/hif_FJ (d_t_fmt): Set to
4486 "%A %d %b %Y %I:%M:%S %p".
4487 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
4488
4489 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
4490 * localedata/locales/ar_BH (t_fmt): Likewise.
4491 * localedata/locales/ar_DZ (t_fmt): Likewise.
4492 * localedata/locales/ar_EG (t_fmt): Likewise.
4493 * localedata/locales/ar_IQ (t_fmt): Likewise.
4494 * localedata/locales/ar_JO (t_fmt): Likewise.
4495 * localedata/locales/ar_KW (t_fmt): Likewise.
4496 * localedata/locales/ar_LB (t_fmt): Likewise.
4497 * localedata/locales/ar_LY (t_fmt): Likewise.
4498 * localedata/locales/ar_OM (t_fmt): Likewise.
4499 * localedata/locales/ar_QA (t_fmt): Likewise.
4500 * localedata/locales/ar_SD (t_fmt): Likewise.
4501 * localedata/locales/ar_SS (t_fmt): Likewise.
4502 * localedata/locales/ar_SY (t_fmt): Likewise.
4503 * localedata/locales/ar_TN (t_fmt): Likewise.
4504 * localedata/locales/ar_YE (t_fmt): Likewise.
4505
4506 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
4507 (t_fmt_ampm): Likewise.
4508 * localedata/locales/gez_ET (t_fmt): Likewise.
4509 (t_fmt_ampm): Likewise.
4510
4511 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
4512 (t_fmt_ampm): Likewise.
4513 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
4514
4515 * localedata/locales/zh_HK (t_fmt):
4516 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
4517
4518 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
4519 because this locale does not use the 12-hour clock.
4520 (t_fmt): Set to "%Z %H:%M:%S".
4521 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
4522
4523 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
4524 because this locale does not use the 12-hour clock.
4525 (t_fmt): Set to "%H:%M:%S %Z".
4526 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
4527
4528 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
4529 because this locale does not use the 12-hour clock.
4530 (t_fmt): Set to "%T".
4531 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
4532 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
4533
4534 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
4535 because this locale does not use the 12-hour clock.
4536 (t_fmt): Set to "%H:%M:%S %Z".
4537 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
4538
4539 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
4540 because this locale does not use the 12-hour clock.
4541 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
4542 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
4543
4544 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
4545
4546 [BZ #10496]
4547 [BZ #23724]
4548 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
4549 (t_fmt_ampm): Likewise.
4550 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
4551 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
4552 (d_fmt): Set to "%-d.%-m.%y".
4553
4554 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4555
4556 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
4557 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
4558 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
4559 Likewise.
4560 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
4561 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
4562 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
4563 function.
4564 * support/blob_repeat.c (check_mul_overflow_size_t,
4565 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
4566
4567 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
4568
4569 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
4570
4571 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
4572
4573 regex: simplify Gnulib port
4574 This simplifies the code, by removing stuff intended for porting
4575 to Gnulib but no longer needed there.
4576 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
4577 uses of libc_hidden_def, weak_alias.
4578 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
4579 _Restrict_ except for public-facing headers.
4580 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
4581 Remove; already defined elsewhere.
4582 * posix/regex.c, posix/regex_internal.h:
4583 Use __GNUC_PREREQ instead of rolling our own.
4584 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
4585
4586 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
4587
4588 * benchtests/bench-strlen.c (generic_strlen): New function.
4589 (memchr_strlen): New function.
4590
4591 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4592
4593 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
4594 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
4595 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
4596
4597 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4598
4599 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
4600
4601 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
4602
4603 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
4604 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
4605 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
4606 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
4607 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
4608 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
4609 <sysdeps/ieee754/flt-32/s_sincosf.c>.
4610
4611 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4612
4613 [BZ #24023]
4614 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
4615 PLT reference in libc.so.
4616 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
4617 _Q_lltoq and _Q_qtod PLT references in libc.so.
4618
4619 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
4620
4621 * benchtests/bench-memchr.c: Cleanup defines.
4622 * benchtests/bench-memcmp.c: Likewise.
4623 * benchtests/bench-memset.c: Likewise.
4624 * benchtests/bench-memset-large.c: Likewise.
4625 * benchtests/bench-memset-walk.c: Likewise.
4626 * benchtests/bench-stpcpy.c: Likewise.
4627 * benchtests/bench-stpncpy.c: Likewise.
4628 * benchtests/bench-strcat.c: Likewise.
4629 * benchtests/bench-strchr.c: Likewise.
4630 * benchtests/bench-strcmp.c: Likewise.
4631 * benchtests/bench-strcpy.c: Likewise.
4632 * benchtests/bench-strcspn.c: Likewise.
4633 * benchtests/bench-string.h: Likewise.
4634 * benchtests/bench-strlen.c: Likewise.
4635 * benchtests/bench-strncat.c: Likewise.
4636 * benchtests/bench-strncmp.c: Likewise.
4637 * benchtests/bench-strncpy.c: Likewise.
4638 * benchtests/bench-strnlen.c: Likewise.
4639 * benchtests/bench-strpbrk.c: Likewise.
4640 * benchtests/bench-strrchr.c: Likewise.
4641 * benchtests/bench-strspn.c: Likewise.
4642
4643 2018-12-21 Joseph Myers <joseph@codesourcery.com>
4644
4645 * stdlib/longlong.h: Update from GCC.
4646
4647 [BZ #23993]
4648 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
4649 * configure: Regenerated.
4650 * manual/install.texi (Tools for Compilation): Update minimum GCC
4651 version.
4652 * INSTALL: Regenerated.
4653
4654 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
4655
4656 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
4657
4658 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
4659
4660 * malloc/malloc.c (mremap_chunk): Additional checks.
4661
4662 2018-12-21 Mao Han <han_mao@c-sky.com>
4663
4664 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
4665 * scripts/build-many-glibcs.py: Add C-SKY targets.
4666 * sysdeps/csky/Implies: New file.
4667 * sysdeps/csky/Makefile: Likewise.
4668 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
4669 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
4670 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
4671 * sysdeps/csky/abiv2/memcmp.S: Likewise.
4672 * sysdeps/csky/abiv2/memcpy.S: Likewise.
4673 * sysdeps/csky/abiv2/memmove.S: Likewise.
4674 * sysdeps/csky/abiv2/memset.S: Likewise.
4675 * sysdeps/csky/abiv2/setjmp.S: Likewise.
4676 * sysdeps/csky/abiv2/start.S: Likewise.
4677 * sysdeps/csky/abiv2/strcmp.S: Likewise.
4678 * sysdeps/csky/abiv2/strcpy.S: Likewise.
4679 * sysdeps/csky/abiv2/strlen.S: Likewise.
4680 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
4681 * sysdeps/csky/abort-instr.h: Likewise.
4682 * sysdeps/csky/atomic-machine.h: Likewise.
4683 * sysdeps/csky/bits/endian.h: Likewise.
4684 * sysdeps/csky/bits/fenv.h: Likewise.
4685 * sysdeps/csky/bits/link.h: Likewise.
4686 * sysdeps/csky/bits/setjmp.h: Likewise.
4687 * sysdeps/csky/bsd-_setjmp.S: Likewise.
4688 * sysdeps/csky/bsd-setjmp.S: Likewise.
4689 * sysdeps/csky/configure: Likewise.
4690 * sysdeps/csky/configure.ac: Likewise.
4691 * sysdeps/csky/dl-machine.h: Likewise.
4692 * sysdeps/csky/dl-procinfo.c: Likewise.
4693 * sysdeps/csky/dl-procinfo.h: Likewise.
4694 * sysdeps/csky/dl-sysdep.h: Likewise.
4695 * sysdeps/csky/dl-tls.h: Likewise.
4696 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
4697 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
4698 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
4699 * sysdeps/csky/fpu/fegetenv.c: Likewise.
4700 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
4701 * sysdeps/csky/fpu/fegetmode.c: Likewise.
4702 * sysdeps/csky/fpu/fegetround.c: Likewise.
4703 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
4704 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
4705 * sysdeps/csky/fpu/fenv_private.h: Likewise.
4706 * sysdeps/csky/fpu/fesetenv.c: Likewise.
4707 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
4708 * sysdeps/csky/fpu/fesetmode.c: Likewise.
4709 * sysdeps/csky/fpu/fesetround.c: Likewise.
4710 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
4711 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
4712 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
4713 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
4714 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
4715 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
4716 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
4717 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
4718 * sysdeps/csky/fpu_control.h: Likewise.
4719 * sysdeps/csky/gccframe.h: Likewise.
4720 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
4721 * sysdeps/csky/ldsodefs.h: Likewise.
4722 * sysdeps/csky/libc-tls.c: Likewise.
4723 * sysdeps/csky/linkmap.h: Likewise.
4724 * sysdeps/csky/machine-gmon.h: Likewise.
4725 * sysdeps/csky/memusage.h: Likewise.
4726 * sysdeps/csky/nofpu/Implies: Likewise.
4727 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
4728 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
4729 * sysdeps/csky/nptl/Makefile: Likewise.
4730 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
4731 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
4732 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
4733 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
4734 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
4735 * sysdeps/csky/nptl/tls.h: Likewise.
4736 * sysdeps/csky/preconfigure: Likewise.
4737 * sysdeps/csky/sfp-machine.h: Likewise.
4738 * sysdeps/csky/sotruss-lib.c: Likewise.
4739 * sysdeps/csky/stackinfo.h: Likewise.
4740 * sysdeps/csky/sysdep.h: Likewise.
4741 * sysdeps/csky/tininess.h: Likewise.
4742 * sysdeps/csky/tst-audit.h: Likewise.
4743 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
4744 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
4745 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
4746 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
4747 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
4748 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
4749 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
4750 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
4751 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
4752 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
4753 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
4754 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
4755 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
4756 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
4757 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
4758 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
4759 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
4760 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
4761 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
4762 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
4763 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
4764 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
4765 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
4766 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
4767 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
4768 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
4769 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
4770 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
4771 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
4772 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
4773 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
4774 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
4775 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
4776 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
4777 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
4778 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
4779 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
4780 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
4781 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
4782 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
4783 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
4784 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
4785 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
4786 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
4787
4788 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4789
4790 * include/time.h (__difftime64): Add.
4791 * time/difftime.c (subtract): convert to 64-bit time.
4792 * time/difftime.c (__difftime64): Add.
4793 * time/difftime.c (__difftime): Wrap around __difftime64.
4794
4795 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
4796
4797 * manual/examples/add.c: Remove redundant "if not".
4798 * manual/examples/argp-ex1.c: Likewise.
4799 * manual/examples/argp-ex2.c: Likewise.
4800 * manual/examples/argp-ex3.c: Likewise.
4801 * manual/examples/argp-ex4.c: Likewise.
4802 * manual/examples/atexit.c: Likewise.
4803 * manual/examples/db.c: Likewise.
4804 * manual/examples/dir.c: Likewise.
4805 * manual/examples/dir2.c: Likewise.
4806 * manual/examples/execinfo.c: Likewise.
4807 * manual/examples/filecli.c: Likewise.
4808 * manual/examples/filesrv.c: Likewise.
4809 * manual/examples/fmtmsgexpl.c: Likewise.
4810 * manual/examples/genpass.c: Likewise.
4811 * manual/examples/inetcli.c: Likewise.
4812 * manual/examples/inetsrv.c: Likewise.
4813 * manual/examples/isockad.c: Likewise.
4814 * manual/examples/longopt.c: Likewise.
4815 * manual/examples/memopen.c: Likewise.
4816 * manual/examples/memstrm.c: Likewise.
4817 * manual/examples/mkdirent.c: Likewise.
4818 * manual/examples/mkfsock.c: Likewise.
4819 * manual/examples/mkisock.c: Likewise.
4820 * manual/examples/mygetpass.c: Likewise.
4821 * manual/examples/pipe.c: Likewise.
4822 * manual/examples/popen.c: Likewise.
4823 * manual/examples/rprintf.c: Likewise.
4824 * manual/examples/search.c: Likewise.
4825 * manual/examples/select.c: Likewise.
4826 * manual/examples/setjmp.c: Likewise.
4827 * manual/examples/sigh1.c: Likewise.
4828 * manual/examples/sigusr.c: Likewise.
4829 * manual/examples/stpcpy.c: Likewise.
4830 * manual/examples/strdupa.c: Likewise.
4831 * manual/examples/strftim.c: Likewise.
4832 * manual/examples/subopt.c: Likewise.
4833 * manual/examples/swapcontext.c: Likewise.
4834 * manual/examples/termios.c: Likewise.
4835 * manual/examples/testopt.c: Likewise.
4836 * manual/examples/testpass.c: Likewise.
4837 * manual/examples/timeval_subtract.c: Likewise.
4838
4839 2018-12-19 Joseph Myers <joseph@codesourcery.com>
4840
4841 * sysdeps/x86/fpu/math_private.h: New file.
4842 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
4843
4844 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
4845 definition.
4846 (cosh): Likewise.
4847 (tanh): Likewise.
4848
4849 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4850
4851 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
4852 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
4853 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
4854 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
4855 fields.
4856 (_dl_show_auxv): Give a special treatment to
4857 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
4858 and AT_L3_CACHEGEOMETRY.
4859 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
4860 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
4861 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
4862 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
4863
4864 2018-12-19 Andreas Schwab <schwab@suse.de>
4865
4866 * nscd/connections.c (check_use): Don't abort on invalid len.
4867
4868 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
4869
4870 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
4871 values in the 64bit value cases.
4872
4873 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
4874
4875 * include/time.h
4876 (__ctime64_r): Add.
4877 * time/ctime_r.c
4878 (__ctime64_r): Add.
4879 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
4880
4881 * include/time.h
4882 (__ctime64): Add.
4883 * time/gmtime.c
4884 (__ctime64): Add.
4885 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
4886
4887 * include/time.h
4888 (__gmtime64_r): Add.
4889 * time/gmtime.c
4890 (__gmtime64_r): Add.
4891 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4892
4893 * include/time.h
4894 (__gmtime64): Add.
4895 * time/gmtime.c
4896 (__gmtime64): Add.
4897 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
4898
4899 * include/time.h
4900 (__localtime64_r): Add.
4901 * time/localtime.c
4902 (__localtime64_r): Add.
4903 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
4904
4905 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4906
4907 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
4908 kernel_sigction definition.
4909
4910 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
4911
4912 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
4913
4914 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
4915 __syscall_rt_sigaction.
4916 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
4917 (kernel_sigaction): Use Linux generic defintion.
4918 (STUB): Define.
4919 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
4920 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
4921 (__syscall_rt_sigaction): Remove implementation.
4922 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
4923 hidden.
4924 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
4925 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
4926 INTERNAL_SYSCALL): Remove definitions.
4927 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
4928 action and signal set size.
4929 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
4930 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
4931
4932 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4933 James Clarke <jrtc27@jrtc27.com>
4934
4935 [BZ #23967]
4936 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
4937 Define if SA_RESTORER is defined.
4938 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
4939 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
4940 already defined.
4941 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
4942 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
4943 definitions.
4944 (HAS_SA_RESTORER): Define.
4945 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
4946 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
4947 (HAS_SA_RESTORER): Define.
4948 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
4949 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
4950 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
4951 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
4952 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
4953
4954 2018-12-18 Joseph Myers <joseph@codesourcery.com>
4955
4956 * sysdeps/unix/sysv/linux/kernel-features.h
4957 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
4958 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4959 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
4960 * sysdeps/unix/sysv/linux/sh/kernel-features.h
4961 (__ASSUME_ST_INO_64_BIT): Likewise.
4962 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
4963 <kernel-features.h>.
4964 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4965 Remove conditional code.
4966 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
4967 <kernel-features.h>.
4968 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4969 Remove conditional code.
4970 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
4971 <kernel-features.h>.
4972 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
4973 Remove conditional code.
4974 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
4975 <kernel-features.h>.
4976 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
4977 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
4978
4979 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4980
4981 * sysdeps/s390/multiarch/ifunc-resolve.h
4982 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
4983 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
4984 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
4985 Delete macro definition.
4986 (s390_libc_ifunc_init): Rename to
4987 s390_libc_ifunc_expr_stfle_init.
4988 * sysdeps/s390/bzero: Use
4989 s390_libc_ifunc_expr_stfle_init instead of
4990 s390_libc_ifunc_init.
4991 * sysdeps/s390/memcmp.c: Likewise.
4992 * sysdeps/s390/memcpy.c: Likewise.
4993 * sysdeps/s390/mempcpy.c: Likewise.
4994 * sysdeps/s390/memset.c: Likewise.
4995
4996 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
4997
4998 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
4999 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
5000
5001 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5002
5003 * sysdeps/s390/multiarch/Makefile
5004 (sysdep_routines): Remove wmemcmp variants.
5005 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
5006 * sysdeps/s390/multiarch/ifunc-impl-list.c
5007 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
5008 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
5009 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
5010 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
5011 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
5012 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
5013 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
5014 * sysdeps/s390/ifunc-wmemcmp.h: New file.
5015
5016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5017
5018 * sysdeps/s390/multiarch/Makefile
5019 (sysdep_routines): Remove wmemset variants.
5020 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
5021 * sysdeps/s390/multiarch/ifunc-impl-list.c
5022 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
5023 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
5024 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
5025 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
5026 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
5027 * sysdeps/s390/multiarch/wmemset.c: Move to ...
5028 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
5029 * sysdeps/s390/ifunc-wmemset.h: New file.
5030
5031 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5032
5033 * sysdeps/s390/multiarch/Makefile
5034 (sysdep_routines): Remove wmemchr variants.
5035 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
5036 * sysdeps/s390/multiarch/ifunc-impl-list.c
5037 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
5038 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
5039 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
5040 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
5041 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
5042 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
5043 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
5044 * sysdeps/s390/ifunc-wmemchr.h: New file.
5045
5046 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5047
5048 * sysdeps/s390/multiarch/Makefile
5049 (sysdep_routines): Remove wcscspn variants.
5050 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
5051 * sysdeps/s390/multiarch/ifunc-impl-list.c
5052 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
5053 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
5054 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
5055 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
5056 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
5057 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
5058 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
5059 * sysdeps/s390/ifunc-wcscspn.h: New file.
5060
5061 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5062
5063 * sysdeps/s390/multiarch/Makefile
5064 (sysdep_routines): Remove wcspbrk variants.
5065 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
5066 * sysdeps/s390/multiarch/ifunc-impl-list.c
5067 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
5068 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
5069 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
5070 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
5071 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
5072 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
5073 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
5074 * sysdeps/s390/ifunc-wcspbrk.h: New file.
5075
5076 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5077
5078 * sysdeps/s390/multiarch/Makefile
5079 (sysdep_routines): Remove wcsspn variants.
5080 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
5081 * sysdeps/s390/multiarch/ifunc-impl-list.c
5082 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
5083 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
5084 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
5085 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
5086 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
5087 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
5088 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
5089 * sysdeps/s390/ifunc-wcsspn.h: New file.
5090
5091 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5092
5093 * sysdeps/s390/multiarch/Makefile
5094 (sysdep_routines): Remove wcsrchr variants.
5095 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
5096 * sysdeps/s390/multiarch/ifunc-impl-list.c
5097 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
5098 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
5099 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
5100 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
5101 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
5102 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
5103 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
5104 * sysdeps/s390/ifunc-wcsrchr.h: New file.
5105
5106 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5107
5108 * sysdeps/s390/multiarch/Makefile
5109 (sysdep_routines): Remove wcschrnul variants.
5110 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
5111 * sysdeps/s390/multiarch/ifunc-impl-list.c
5112 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
5113 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
5114 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
5115 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
5116 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
5117 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
5118 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
5119 * sysdeps/s390/ifunc-wcschrnul.h: New file.
5120
5121 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5122
5123 * sysdeps/s390/multiarch/Makefile
5124 (sysdep_routines): Remove wcschr variants.
5125 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
5126 * sysdeps/s390/multiarch/ifunc-impl-list.c
5127 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
5128 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
5129 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
5130 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
5131 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
5132 * sysdeps/s390/multiarch/wcschr.c: Move to ...
5133 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
5134 * sysdeps/s390/ifunc-wcschr.h: New file.
5135
5136 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5137
5138 * sysdeps/s390/multiarch/Makefile
5139 (sysdep_routines): Remove wcsncmp variants.
5140 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
5141 * sysdeps/s390/multiarch/ifunc-impl-list.c
5142 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
5143 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
5144 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
5145 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
5146 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
5147 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
5148 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
5149 * sysdeps/s390/ifunc-wcsncmp.h: New file.
5150
5151 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5152
5153 * sysdeps/s390/multiarch/Makefile
5154 (sysdep_routines): Remove wcscmp variants.
5155 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
5156 * sysdeps/s390/multiarch/ifunc-impl-list.c
5157 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
5158 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
5159 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
5160 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
5161 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
5162 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
5163 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
5164 * sysdeps/s390/ifunc-wcscmp.h: New file.
5165
5166 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5167
5168 * sysdeps/s390/multiarch/Makefile
5169 (sysdep_routines): Remove wcsncat variants.
5170 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
5171 * sysdeps/s390/multiarch/ifunc-impl-list.c
5172 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
5173 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
5174 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
5175 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
5176 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
5177 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
5178 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
5179 * sysdeps/s390/ifunc-wcsncat.h: New file.
5180
5181 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5182
5183 * sysdeps/s390/multiarch/Makefile
5184 (sysdep_routines): Remove wcscat variants.
5185 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
5186 * sysdeps/s390/multiarch/ifunc-impl-list.c
5187 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
5188 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
5189 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
5190 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
5191 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
5192 * sysdeps/s390/multiarch/wcscat.c: Move to ...
5193 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
5194 * sysdeps/s390/ifunc-wcscat.h: New file.
5195
5196 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5197
5198 * sysdeps/s390/multiarch/Makefile
5199 (sysdep_routines): Remove wcpncpy variants.
5200 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
5201 * sysdeps/s390/multiarch/ifunc-impl-list.c
5202 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
5203 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
5204 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
5205 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
5206 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
5207 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
5208 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
5209 * sysdeps/s390/ifunc-wcpncpy.h: New file.
5210
5211 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5212
5213 * sysdeps/s390/multiarch/Makefile
5214 (sysdep_routines): Remove wcsncpy variants.
5215 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
5216 * sysdeps/s390/multiarch/ifunc-impl-list.c
5217 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
5218 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
5219 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
5220 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
5221 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
5222 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
5223 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
5224 * sysdeps/s390/ifunc-wcsncpy.h: New file.
5225
5226 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5227
5228 * sysdeps/s390/multiarch/Makefile
5229 (sysdep_routines): Remove wcpcpy variants.
5230 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
5231 * sysdeps/s390/multiarch/ifunc-impl-list.c
5232 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
5233 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
5234 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
5235 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
5236 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
5237 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
5238 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
5239 * sysdeps/s390/ifunc-wcpcpy.h: New file.
5240
5241 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5242
5243 * sysdeps/s390/multiarch/Makefile
5244 (sysdep_routines): Remove wcscpy variants.
5245 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
5246 * sysdeps/s390/multiarch/ifunc-impl-list.c
5247 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
5248 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
5249 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
5250 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
5251 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
5252 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
5253 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
5254 * sysdeps/s390/ifunc-wcscpy.h: New file.
5255
5256 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5257
5258 * sysdeps/s390/multiarch/Makefile
5259 (sysdep_routines): Remove wcsnlen variants.
5260 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
5261 * sysdeps/s390/multiarch/ifunc-impl-list.c
5262 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
5263 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
5264 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
5265 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
5266 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
5267 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
5268 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
5269 * sysdeps/s390/ifunc-wcsnlen.h: New file.
5270
5271 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5272
5273 * sysdeps/s390/multiarch/Makefile
5274 (sysdep_routines): Remove wcslen variants.
5275 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
5276 * sysdeps/s390/multiarch/ifunc-impl-list.c
5277 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
5278 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
5279 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
5280 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
5281 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
5282 * sysdeps/s390/multiarch/wcslen.c: Move to ...
5283 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
5284 * sysdeps/s390/ifunc-wcslen.h: New file.
5285
5286 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5287
5288 * sysdeps/s390/multiarch/Makefile
5289 (sysdep_routines): Remove memrchr variants.
5290 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
5291 * sysdeps/s390/multiarch/ifunc-impl-list.c
5292 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
5293 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
5294 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
5295 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
5296 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
5297 * sysdeps/s390/multiarch/memrchr.c: Move to ...
5298 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
5299 * sysdeps/s390/ifunc-memrchr.h: New file.
5300
5301 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5302
5303 * sysdeps/s390/multiarch/Makefile
5304 (sysdep_routines): Remove memccpy variants.
5305 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
5306 * sysdeps/s390/multiarch/ifunc-impl-list.c
5307 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
5308 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
5309 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
5310 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
5311 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
5312 * sysdeps/s390/multiarch/memccpy.c: Move to ...
5313 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
5314 * sysdeps/s390/ifunc-memccpy.h: New file.
5315
5316 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5317
5318 * sysdeps/s390/multiarch/Makefile
5319 (sysdep_routines): Remove rawmemchr variants.
5320 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
5321 * sysdeps/s390/multiarch/ifunc-impl-list.c
5322 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
5323 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
5324 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
5325 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
5326 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
5327 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
5328 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
5329 * sysdeps/s390/ifunc-rawmemchr.h: New file.
5330
5331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5332
5333 * sysdeps/s390/multiarch/Makefile
5334 (sysdep_routines): Remove memchr variants.
5335 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
5336 * sysdeps/s390/multiarch/ifunc-impl-list.c
5337 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
5338 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
5339 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
5340 * sysdeps/s390/multiarch/memchr.c: Move to ...
5341 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
5342 * sysdeps/s390/ifunc-memchr.h: New file.
5343 * sysdeps/s390/s390-64/memchr.S: Move to ...
5344 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
5345 for 31/64bit and ifunc handling.
5346 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
5347 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
5348 * sysdeps/s390/s390-32/memchr.S: Likewise.
5349
5350 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5351
5352 * sysdeps/s390/multiarch/Makefile
5353 (sysdep_routines): Remove strcspn variants.
5354 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
5355 * sysdeps/s390/multiarch/ifunc-impl-list.c
5356 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
5357 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
5358 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
5359 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
5360 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
5361 * sysdeps/s390/multiarch/strcspn.c: Move to ...
5362 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
5363 * sysdeps/s390/ifunc-strcspn.h: New file.
5364
5365 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5366
5367 * sysdeps/s390/multiarch/Makefile
5368 (sysdep_routines): Remove strpbrk variants.
5369 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
5370 * sysdeps/s390/multiarch/ifunc-impl-list.c
5371 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
5372 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
5373 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
5374 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
5375 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
5376 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
5377 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
5378 * sysdeps/s390/ifunc-strpbrk.h: New file.
5379
5380 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5381
5382 * sysdeps/s390/multiarch/Makefile
5383 (sysdep_routines): Remove strspn variants.
5384 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
5385 * sysdeps/s390/multiarch/ifunc-impl-list.c
5386 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
5387 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
5388 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
5389 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
5390 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
5391 * sysdeps/s390/multiarch/strspn.c: Move to ...
5392 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
5393 * sysdeps/s390/ifunc-strspn.h: New file.
5394
5395 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5396
5397 * sysdeps/s390/multiarch/Makefile
5398 (sysdep_routines): Remove strrchr variants.
5399 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
5400 * sysdeps/s390/multiarch/ifunc-impl-list.c
5401 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
5402 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
5403 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
5404 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
5405 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
5406 * sysdeps/s390/multiarch/strrchr.c: Move to ...
5407 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
5408 * sysdeps/s390/ifunc-strrchr.h: New file.
5409
5410 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5411
5412 * sysdeps/s390/multiarch/Makefile
5413 (sysdep_routines): Remove strchrnul variants.
5414 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
5415 * sysdeps/s390/multiarch/ifunc-impl-list.c
5416 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
5417 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
5418 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
5419 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
5420 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
5421 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
5422 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
5423 * sysdeps/s390/ifunc-strchrnul.h: New file.
5424
5425 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5426
5427 * sysdeps/s390/multiarch/Makefile
5428 (sysdep_routines): Remove strchr variants.
5429 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
5430 * sysdeps/s390/multiarch/ifunc-impl-list.c
5431 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
5432 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
5433 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
5434 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
5435 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
5436 * sysdeps/s390/multiarch/strchr.c: Move to ...
5437 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
5438 * sysdeps/s390/ifunc-strchr.h: New file.
5439
5440 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5441
5442 * sysdeps/s390/multiarch/Makefile
5443 (sysdep_routines): Remove strncmp variants.
5444 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
5445 * sysdeps/s390/multiarch/ifunc-impl-list.c
5446 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
5447 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
5448 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
5449 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
5450 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
5451 * sysdeps/s390/multiarch/strncmp.c: Move to ...
5452 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
5453 * sysdeps/s390/ifunc-strncmp.h: New file.
5454
5455 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5456
5457 * sysdeps/s390/multiarch/Makefile
5458 (sysdep_routines): Remove strcmp variants.
5459 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
5460 * sysdeps/s390/multiarch/ifunc-impl-list.c
5461 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
5462 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
5463 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
5464 * sysdeps/s390/multiarch/strcmp.c: Move to ...
5465 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
5466 * sysdeps/s390/ifunc-strcmp.h: New file.
5467 * sysdeps/s390/s390-64/strcmp.S: Move to ...
5468 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
5469 for 31/64bit and ifunc handling.
5470 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
5471 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
5472 * sysdeps/s390/s390-32/strcmp.S: Likewise.
5473
5474 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5475
5476 * sysdeps/s390/multiarch/Makefile
5477 (sysdep_routines): Remove strncat variants.
5478 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
5479 * sysdeps/s390/multiarch/ifunc-impl-list.c
5480 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
5481 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
5482 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
5483 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
5484 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
5485 * sysdeps/s390/multiarch/strncat.c: Move to ...
5486 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
5487 * sysdeps/s390/ifunc-strncat.h: New file.
5488
5489 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5490
5491 * sysdeps/s390/multiarch/Makefile
5492 (sysdep_routines): Remove strcat variants.
5493 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
5494 * sysdeps/s390/multiarch/ifunc-impl-list.c
5495 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
5496 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
5497 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
5498 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
5499 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
5500 * sysdeps/s390/multiarch/strcat.c: Move to ...
5501 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
5502 * sysdeps/s390/ifunc-strcat.h: New file.
5503
5504 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5505
5506 * sysdeps/s390/multiarch/Makefile
5507 (sysdep_routines): Remove stpncpy variants.
5508 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
5509 * sysdeps/s390/multiarch/ifunc-impl-list.c
5510 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
5511 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
5512 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
5513 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
5514 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
5515 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
5516 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
5517 * sysdeps/s390/ifunc-stpncpy.h: New file.
5518
5519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5520
5521 * sysdeps/s390/multiarch/Makefile
5522 (sysdep_routines): Remove strncpy variants.
5523 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
5524 * sysdeps/s390/multiarch/ifunc-impl-list.c
5525 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
5526 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
5527 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
5528 * sysdeps/s390/multiarch/strncpy.c: Move to ...
5529 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
5530 * sysdeps/s390/ifunc-strncpy.h: New file.
5531 * sysdeps/s390/s390-64/strncpy.S: Move to ...
5532 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
5533 and adjust ifunc handling.
5534 * sysdeps/s390/s390-32/strncpy.S: Move to ...
5535 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
5536 and adjust ifunc handling.
5537 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
5538 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
5539
5540 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5541
5542 * sysdeps/s390/multiarch/Makefile
5543 (sysdep_routines): Remove stpcpy variants.
5544 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
5545 * sysdeps/s390/multiarch/ifunc-impl-list.c
5546 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
5547 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
5548 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
5549 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
5550 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
5551 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
5552 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
5553 * sysdeps/s390/ifunc-stpcpy.h: New file.
5554
5555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5556
5557 * sysdeps/s390/multiarch/Makefile
5558 (sysdep_routines): Remove strcpy variants.
5559 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
5560 * sysdeps/s390/multiarch/ifunc-impl-list.c
5561 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
5562 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
5563 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
5564 * sysdeps/s390/multiarch/strcpy.c: Move to ...
5565 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
5566 * sysdeps/s390/ifunc-strcpy.h: New file.
5567 * sysdeps/s390/s390-64/strcpy.S: Move to ...
5568 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
5569 for 31/64bit and ifunc handling.
5570 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
5571 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
5572 * sysdeps/s390/s390-32/strcpy.S: Likewise.
5573
5574 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5575
5576 * sysdeps/s390/multiarch/Makefile
5577 (sysdep_routines): Remove strnlen variants.
5578 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
5579 * sysdeps/s390/multiarch/ifunc-impl-list.c
5580 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
5581 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
5582 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
5583 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
5584 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
5585 * sysdeps/s390/multiarch/strnlen.c: Move to ...
5586 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
5587 * sysdeps/s390/ifunc-strnlen.h: New file.
5588
5589 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5590
5591 * sysdeps/s390/multiarch/Makefile
5592 (sysdep_routines): Remove strlen variants.
5593 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
5594 * sysdeps/s390/multiarch/ifunc-impl-list.c
5595 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
5596 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
5597 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
5598 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
5599 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
5600 * sysdeps/s390/multiarch/strlen.c: Move to ...
5601 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
5602 * sysdeps/s390/ifunc-strlen.h: New file.
5603
5604 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5605
5606 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
5607 * sysdeps/s390/multiarch/ifunc-impl-list.c
5608 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
5609 * sysdeps/s390/ifunc-memmem.h: New file.
5610 * sysdeps/s390/memmem.c: Likewise.
5611 * sysdeps/s390/memmem-c.c: Likewise.
5612 * sysdeps/s390/memmem-vx.c: Likewise.
5613
5614 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5615
5616 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
5617 * sysdeps/s390/multiarch/ifunc-impl-list.c
5618 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
5619 * sysdeps/s390/ifunc-strstr.h: New file.
5620 * sysdeps/s390/strstr.c: Likewise.
5621 * sysdeps/s390/strstr-c.c: Likewise.
5622 * sysdeps/s390/strstr-vx.c: Likewise.
5623
5624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5625
5626 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
5627 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
5628 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
5629 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
5630 New defines.
5631 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
5632 * sysdeps/s390/memmove-c.c: New file.
5633 * sysdeps/s390/memmove.c: Likewise.
5634 * sysdeps/s390/multiarch/ifunc-impl-list.c
5635 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
5636
5637 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5638
5639 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
5640 * sysdeps/s390/configure.ac: Add check for z13 support.
5641 * sysdeps/s390/configure: Regenerated.
5642
5643 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5644
5645 * sysdeps/s390/memcopy.h: New file.
5646
5647 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5648
5649 * sysdeps/s390/s390-32/bcopy.S: Remove.
5650 * sysdeps/s390/s390-64/bcopy.S: Likewise.
5651
5652 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5653
5654 * sysdeps/s390/ifunc-memcpy.h: New File.
5655 * sysdeps/s390/memcpy.S: Move to ...
5656 * sysdeps/s390/memcpy-z900.S ... here.
5657 Move implementations from memcpy-s390x.s to here.
5658 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
5659 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5660 Remove memcpy/mempcpy variants.
5661 * sysdeps/s390/Makefile (sysdep_routines):
5662 Add memcpy/mempcpy variants.
5663 * sysdeps/s390/multiarch/ifunc-impl-list.c
5664 (__libc_ifunc_impl_list): Adjust ifunc variants for
5665 memcpy and mempcpy.
5666 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
5667 to ...
5668 * sysdeps/s390/memcpy.c: ... here.
5669 Adjust ifunc variants for memcpy.
5670 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
5671 * sysdeps/s390/mempcpy.c: ... here.
5672 Adjust ifunc variants for mempcpy.
5673 * sysdeps/s390/mempcpy.S: Delete file.
5674
5675 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5676
5677 * sysdeps/s390/s390-64/memcpy.S: Move to ...
5678 * sysdeps/s390/memcpy.S: ... here.
5679 Adjust to be usable for 31/64bit.
5680 * sysdeps/s390/s390-32/memcpy.S: Delete File.
5681 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
5682 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
5683 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5684 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
5685 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
5686 Adjust to be usable for 31/64bit.
5687 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
5688 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
5689 * sysdeps/s390/multiarch/memcpy.c: ... here.
5690 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
5691
5692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5693
5694 * sysdeps/s390/ifunc-memcmp.h: New File.
5695 * sysdeps/s390/memcmp.S: Move to ...
5696 * sysdeps/s390/memcmp-z900.S ... here.
5697 Move implementations from memcmp-s390x.s to here.
5698 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
5699 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5700 Remove memcmp variants.
5701 * sysdeps/s390/Makefile (sysdep_routines):
5702 Add memcmp variants.
5703 * sysdeps/s390/multiarch/ifunc-impl-list.c
5704 (__libc_ifunc_impl_list): Adjust ifunc variants for
5705 memcmp.
5706 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
5707 to ...
5708 * sysdeps/s390/memcmp.c: ... here.
5709 Adjust ifunc variants for memcmp.
5710
5711 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5712
5713 * sysdeps/s390/s390-64/memcmp.S: Move to ...
5714 * sysdeps/s390/memcmp.S: ... here.
5715 Adjust to be usable for 31/64bit.
5716 * sysdeps/s390/s390-32/memcmp.S: Delete File.
5717 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
5718 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5719 Remove memcmp.
5720 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5721 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
5722 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
5723 Adjust to be usable for 31/64bit.
5724 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
5725 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
5726 * sysdeps/s390/multiarch/memcmp.c: ... here.
5727 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
5728
5729 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5730
5731 * sysdeps/s390/s390-32/bzero.S: Delete file.
5732 * sysdeps/s390/s390-64/bzero.S: Likewise.
5733 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
5734 * sysdeps/s390/bzero.c: New file.
5735 * sysdeps/s390/memset-z900.S: Add bzero entry points.
5736 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
5737 * sysdeps/s390/multiarch/ifunc-impl-list.c
5738 (__libc_ifunc_impl_list): Add bzero ifunc variants.
5739
5740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5741
5742 * sysdeps/s390/ifunc-memset.h: New File.
5743 * sysdeps/s390/memset.S: Move to ...
5744 * sysdeps/s390/memset-z900.S ... here.
5745 Move implementations from memset-s390x.s to here.
5746 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
5747 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
5748 Remove memset variants.
5749 * sysdeps/s390/Makefile (sysdep_routines):
5750 Add memset variants.
5751 * sysdeps/s390/multiarch/ifunc-impl-list.c
5752 (__libc_ifunc_impl_list): Adjust ifunc variants for
5753 memset.
5754 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
5755 to ...
5756 * sysdeps/s390/memset.c: ... here.
5757 Adjust ifunc variants for memset.
5758
5759 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5760
5761 * sysdeps/s390/s390-64/memset.S: Move to ...
5762 * sysdeps/s390/memset.S: ... here.
5763 Adjust to be usable for 31/64bit.
5764 * sysdeps/s390/s390-32/memset.S: Delete File.
5765 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
5766 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
5767 Remove memset.
5768 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
5769 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
5770 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
5771 Adjust to be usable for 31/64bit.
5772 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
5773 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
5774 * sysdeps/s390/multiarch/memset.c: ... here.
5775 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
5776
5777 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5778
5779 * sysdeps/s390/multiarch/ifunc-resolve.h
5780 (s390_libc_ifunc_init, s390_libc_ifunc,
5781 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
5782
5783 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
5784
5785 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
5786 * sysdeps/s390/configure.ac: Add check for z10 support.
5787 * sysdeps/s390/configure: Regenerated.
5788
5789 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
5790
5791 * sysdeps/i386/atomic-machine.h: Merged with ...
5792 * sysdeps/x86_64/atomic-machine.h: To ...
5793 * sysdeps/x86/atomic-machine.h: This. New file.
5794
5795 2018-12-18 Florian Weimer <fweimer@redhat.com>
5796
5797 Rewrite locale/gen-translit.pl in Python.
5798 * locale/Makefile (generated): Add C-translit.h.
5799 (before-compile): Add $(objpfx)C-translit.h.
5800 (C-translit.h): Move to $(objpfx). Create target directory.
5801 Build using Python script.
5802 * locale/gen-translit.py: New file.
5803 * locale/gen-translit.pl: Remove file.
5804 * locale/C-translit.h.in: Change comment character to '#' for
5805 easier parsing without a C preprocessor.
5806 * locale/C-translit.h: Remove generated file.
5807 * manual/install.texi (Tools for Compilation): Do not mention
5808 C-translit.h.
5809 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
5810 Remove locale/C-translit.h.
5811 * scripts/update-copyrights: Likewise.
5812 * INSTALL: Regenerate.
5813
5814 2018-12-18 Florian Weimer <fweimer@redhat.com>
5815
5816 [BZ #23995]
5817 * localedata/locales/bi_VU: Remove executable bit from file.
5818
5819 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
5820
5821 * include/time.h
5822 (__localtime64): Add.
5823 * manual/maint.texi: Document Y2038 symbol handling.
5824 * time/localtime.c
5825 (__localtime64): Add.
5826 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
5827
5828 2018-12-17 Joseph Myers <joseph@codesourcery.com>
5829
5830 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
5831 Do not clobber r12.
5832
5833 * scripts/glibcextract.py (compare_macro_consts): Take parameters
5834 to allow extra macros from first or second sources.
5835 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
5836 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
5837 (tests-special): Add $(objpfx)tst-mman-consts.out.
5838 ($(objpfx)tst-mman-consts.out): New makefile target.
5839
5840 2018-12-17 Mao Han <han_mao@c-sky.com>
5841
5842 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
5843 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
5844 without stat64 system call support.
5845 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
5846 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
5847 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
5848 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
5849 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
5850 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
5851 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
5852 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
5853 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
5854 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
5855 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
5856
5857 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
5858
5859 regex: fix storage-exhaustion error
5860 [BZ #18040]
5861 * posix/regexec.c (get_subexp):
5862 Do not continue if storage is exhausted.
5863
5864 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
5865
5866 regex: fix heap-use-after-free error
5867 [BZ #18040]
5868 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
5869 https://debbugs.gnu.org/32592
5870 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
5871 call extend_buffers which reallocates the re_string_t internal buffer.
5872 Local variable 'buf' was not updated in such case, resulting in
5873 use-after-free.
5874 * posix/regexec.c (get_subexp): Update 'buf' after call to
5875 get_subexp_sub.
5876
5877 2018-12-15 Florian Weimer <fweimer@redhat.com>
5878
5879 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
5880 (minimum_stride_size): Use it.
5881 (support_blob_repeat_allocate): Likewise.
5882
5883 2018-12-14 Joseph Myers <joseph@codesourcery.com>
5884
5885 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
5886 definition.
5887 (acosh): Likewise.
5888 (atanh): Likewise.
5889
5890 2018-12-14 Florian Weimer <fweimer@redhat.com>
5891
5892 * manual/process.texi (Process Creation Concepts): Remove
5893 documentation of process (ID) lifetime. List more process
5894 creation functions. Reference Process Identification section.
5895 (Process Identification): Add information about process ID
5896 lifetime. Describe Linux thread/task IDs.
5897 * manual/signal.texi (Signaling Another Process): Mention that the
5898 signal is always sent to the process.
5899
5900 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5901
5902 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
5903 and tst-ldbl-efgcvt.
5904 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
5905 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
5906 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
5907 (fcvt_tests, output_error, output_r_error, do_test): Use the
5908 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
5909 select the type of floating-point variables and arguments; to
5910 produce extra tests for double and conversion specifiers for
5911 printf; and to set the names of called functions.
5912 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
5913 in tst-efgcvt-template.c.
5914 * misc/tst-ldbl-efgcvt.c: Likewise.
5915
5916 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
5917
5918 * nss/Makefile (tst-nss-test3.out): New rule.
5919
5920 2018-12-13 Joseph Myers <joseph@codesourcery.com>
5921
5922 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
5923 clobber sp.
5924
5925 2018-12-13 fanjinke <fanjinke@hygon.cn>
5926
5927 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
5928 "HygonGenuine".
5929
5930 2018-12-13 Andreas Schwab <schwab@suse.de>
5931
5932 [BZ #23861]
5933 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
5934 (__pthread_rwlock_rdlock_full): Update expected value for
5935 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
5936 * nptl/tst-rwlock-pwn.c: New file.
5937 * nptl/Makefile (tests): Add tst-rwlock-pwn.
5938
5939 2018-12-12 Joseph Myers <joseph@codesourcery.com>
5940
5941 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
5942 definition.
5943
5944 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5945
5946 * benchtests/scripts/compare_bench.py (do_compare): write to
5947 stderr in casestat is not present.
5948 * benchtests/scripts/compare_bench.py (plot_graphs): write to
5949 stderr in case timings field is not present. Also string showing
5950 the output filename goes into the stderr.
5951
5952 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5953
5954 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
5955 and ZeroDivisorError exceptions.
5956 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
5957 argument to loop through user provided statistics.
5958 * benchtests/scripts/compare_bench.py (main): Include the --stats
5959 argument.
5960
5961 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
5962
5963 * benchtests/scripts/compare_bench.py (compare_runs): Continue
5964 instead of return.
5965
5966 2018-12-12 Florian Weimer <fweimer@redhat.com>
5967
5968 * sysdeps/posix/timespec_get.c: Add missing “any later version”
5969 clause to copyright header.
5970
5971 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
5972
5973 [BZ #23614]
5974 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
5975 registers saved in the stack frame.
5976 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
5977 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
5978
5979 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5980
5981 * include/bits/monetary-ldbl.h: New file.
5982 * include/bits/printf-ldbl.h: Likewise.
5983 * include/bits/stdio-ldbl.h: Likewise.
5984 * include/bits/stdlib-ldbl.h: Likewise.
5985 * include/bits/syslog-ldbl.h: Likewise.
5986 * include/bits/wchar-ldbl.h: Likewise.
5987
5988 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5989
5990 * libio/libio.h: Remove redirection for _IO_vfprintf.
5991
5992 2018-12-11 Andreas Schwab <schwab@suse.de>
5993
5994 * Makerules: Remove all references to abilist-pattern.
5995 (update-all-abi): Simplify find expression.
5996
5997 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
5998
5999 [BZ #23961]
6000 * math/auto-libm-test-in: Add new test case.
6001 * math/auto-libm-test-out-pow: Regenerated.
6002 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
6003
6004 2018-12-10 DJ Delorie <dj@redhat.com>
6005
6006 [BZ #23948]
6007 * support/test-container.c: Move postclean step to before we
6008 change namespaces.
6009
6010 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6011
6012 * scripts/gen-as-const.py (main): Handle --python option.
6013 * scripts/gen-py-const.awk: Remove.
6014 * Makerules (py-const-script): Use gen-as-const.py.
6015 ($(py-const)): Likewise.
6016 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
6017 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
6018 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
6019 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
6020 ~PTHREAD_MUTEX_NO_ELISION_NP.
6021 * manual/README.pretty-printers: Update reference to
6022 gen-py-const.awk.
6023
6024 * scripts/glibcextract.py: New file.
6025 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
6026 or tempfile. Import glibcexctract.
6027 (compute_c_consts): Remove. Moved to glibcextract.py.
6028 (gen_test): Update reference to compute_c_consts.
6029 (main): Likewise.
6030 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
6031 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
6032 * sysdeps/unix/sysv/linux/Makefile
6033 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
6034 Redirect stderr as well as stdout.
6035
6036 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
6037
6038 [BZ #19767]
6039 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
6040 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
6041 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
6042 ALWAYS_USE_VSYSCALL.
6043 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
6044 ALWAYS_USE_VSYSCALL.
6045 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
6046 ALWAYS_USE_VSYSCALL.
6047
6048 2018-12-10 Florian Weimer <fweimer@redhat.com>
6049
6050 [BZ #23972]
6051 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
6052 offset instead of count for clarity. Fix typo in comment.
6053 (__old_getdents64): Keep track of previous offset. Use it to call
6054 handle_overflow.
6055 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
6056 that d_off is never zero.
6057
6058 2018-12-10 Andreas Schwab <schwab@suse.de>
6059
6060 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
6061 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
6062 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
6063 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
6064 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
6065
6066 2018-12-10 Joseph Myers <joseph@codesourcery.com>
6067
6068 * timezone/private.h: Update from tzcode 2018g.
6069 * timezone/tzfile.h: Likewise.
6070 * timezone/tzselect.ksh: Likewise.
6071 * timezone/zdump.c: Likewise.
6072 * timezone/zic.c: Likewise.
6073
6074 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
6075
6076 [BZ #23490]
6077 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
6078 (do_test): Adjust buffer size and fix format.
6079
6080 2018-12-07 DJ Delorie <dj@redhat.com>
6081
6082 [BZ #23907]
6083 * malloc/tst-tcfree3.c: New.
6084 * malloc/Makefile: Add it.
6085
6086 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6087
6088 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
6089
6090 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6091
6092 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
6093 used as a mask for the mode argument of __vfscanf_internal and
6094 __vfwscanf_internal.
6095 * stdio-common/vfscanf-internal.c
6096 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
6097 (__strtof128_internal): Define to __wcstof128_internal.
6098 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
6099 __strtof128_internal or __wcstof128_internal when the format of
6100 long double is the same as _Float128.
6101
6102 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
6103
6104 * include/unistd.h (__confstr): Add prototype and hidden prototype.
6105 * posix/confstr.c (confstr): Rename to __confstr.
6106 (__confstr): Add hidden def.
6107 (confstr): Add weak alias for __confstr.
6108 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
6109 confstr.
6110
6111 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
6112
6113 * NEWS: Mention getcpu.
6114 * include/sched.h (__getcpu): New libc_hidden_proto.
6115 * manual/resource.texi: Document getcpu.
6116 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
6117 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
6118 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
6119 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
6120 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
6121 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
6122 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
6123 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
6124 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
6125 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
6126 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
6127 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
6128 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
6129 Likewise.
6130 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
6131 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
6132 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
6133 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
6134 Likewise.
6135 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
6136 Likewise.
6137 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
6138 Likewise.
6139 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
6140 Likewise.
6141 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
6142 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
6143 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
6144 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
6145 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
6146 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
6147 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
6148 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
6149 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
6150 * sysdeps/unix/sysv/linux/getcpu.c: New file.
6151 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
6152 Also check getcpu.
6153
6154 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
6155
6156 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
6157 functions.
6158 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
6159
6160 2018-12-07 Florian Weimer <fweimer@redhat.com>
6161
6162 [BZ #17405]
6163 * posix/Makefile (routines): Add spawn_faction_addfchdir.
6164 * posix/Versions (GLIBC_2.29): Export
6165 posix_spawn_file_actions_addfchdir_np.
6166 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
6167 * posix/spawn_faction_destroy.c
6168 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
6169 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
6170 and the field action.fchdir_action.
6171 * posix/tst-spawn-chdir.c (add_chdir): New function.
6172 (do_test): Add do_fchdir loop. Call add_chdir.
6173 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
6174 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
6175 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
6176 posix_spawn_file_actions_addfchdir_np.
6177 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
6178 Likewise.
6179 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
6180 Likewise.
6181 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
6182 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
6183 Likewise.
6184 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
6185 Likewise.
6186 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
6187 Likewise.
6188 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
6189 Likewise.
6190 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
6191 Likewise.
6192 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
6193 Likewise.
6194 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
6195 (GLIBC_2.29): Likewise.
6196 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
6197 (GLIBC_2.29): Likewise.
6198 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
6199 (GLIBC_2.29): Likewise.
6200 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
6201 (GLIBC_2.29): Likewise.
6202 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
6203 Likewise.
6204 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
6205 (GLIBC_2.29): Likewise.
6206 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
6207 (GLIBC_2.29): Likewise.
6208 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
6209 (GLIBC_2.29): Likewise.
6210 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
6211 (GLIBC_2.29): Likewise.
6212 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
6213 Likewise.
6214 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
6215 Likewise.
6216 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
6217 Likewise.
6218 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
6219 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
6220 Likewise.
6221 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
6222 Likewise.
6223 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
6224 Likewise.
6225 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
6226 Likewise.
6227
6228 2018-12-06 Joseph Myers <joseph@codesourcery.com>
6229
6230 * manual/texinfo.tex: Update to version 2018-09-21.20 with
6231 trailing whitespace removed.
6232 * scripts/config.guess: Update to version 2018-11-28.
6233 * scripts/config.sub: Update to version 2018-11-28.
6234 * scripts/install-sh: Update to version 2018-03-11.20.
6235 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
6236 * scripts/move-if-change: Update to version 2018-03-07 03:47.
6237
6238 2018-12-07 Florian Weimer <fweimer@redhat.com>
6239
6240 [BZ #23927]
6241 CVE-2018-19591
6242 * inet/tst-if_index-long.c: New file.
6243 * inet/Makefile (tests): Add tst-if_index-long.
6244
6245 2018-12-07 Florian Weimer <fweimer@redhat.com>
6246
6247 * support/check.h (support_record_failure_is_failed): Declare.
6248 * support/descriptors.h: New file.
6249 * support/support_descriptors.c: Likewise.
6250 * support/tst-support_descriptors.c: Likewise.
6251 * support/support_record_failure.c
6252 (support_record_failure_is_failed): New function.
6253 * support/Makefile (libsupport-routines): Add support_descriptors.
6254 (tests): Add tst-support_descriptors.
6255
6256 2018-12-05 Zack Weinberg <zackw@panix.com>
6257 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6258
6259 * stdio-common/vfprintf-internal.c
6260 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
6261 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
6262 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
6263 and __no_long_double.
6264 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
6265 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
6266 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
6267 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
6268 and __nldbl_*syslog* functions.
6269 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
6270 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
6271 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
6272 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
6273 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
6274 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
6275 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
6276 (__nldbl_vwprintf, __nldbl_wprintf):
6277 Directly call the appropriate __v*printf_internal routine, passing
6278 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
6279 variable names.
6280 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
6281 (__nldbl___printf_chk, __nldbl___snprintf_chk)
6282 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
6283 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
6284 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
6285 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6286 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
6287 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
6288 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
6289 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
6290 Likewise, and also pass PRINTF_FORTIFY when appropriate.
6291 (__nldbl_syslog, __nldbl_vsyslog):
6292 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
6293 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6294 appropriate.
6295 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
6296 appropriate.
6297
6298 2018-12-05 Zack Weinberg <zackw@panix.com>
6299 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6300
6301 [BZ #11319]
6302 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
6303 Moved here from debug/vsprintf_chk.c.
6304 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
6305 and completion logic for the strfile to match exactly what
6306 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
6307 _IO_str_init_static_internal instead of maxlen-1.
6308 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6309 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
6310 __vsprintf_internal.
6311
6312 * debug/vsprintf_chk.c (__vsprintf_chk)
6313 * debug/sprintf_chk.c (__sprintf_chk):
6314 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
6315 'flags' argument is positive, and slen as maxlen. No need to lock
6316 the FILE and/or construct a temporary FILE. Minimize and normalize
6317 header inclusions and variable names. Do not libc_hidden_def anything.
6318
6319 * debug/asprintf_chk.c (__asprintf_chk)
6320 * debug/dprintf_chk.c (__dprintf_chk)
6321 * debug/fprintf_chk.c (__fprintf_chk)
6322 * debug/fwprintf_chk.c (__fwprintf_chk)
6323 * debug/printf_chk.c (__printf_chk)
6324 * debug/snprintf_chk.c (__snprintf_chk)
6325 * debug/swprintf_chk.c (__swprintf_chk)
6326 * debug/vasprintf_chk.c (__vasprintf_chk)
6327 * debug/vdprintf_chk.c (__vdprintf_chk)
6328 * debug/vfprintf_chk.c (__vfprintf_chk)
6329 * debug/vfwprintf_chk.c (__vfwprintf_chk)
6330 * debug/vprintf_chk.c (__vprintf_chk)
6331 * debug/vsnprintf_chk.c (__vsnprintf_chk)
6332 * debug/vswprintf_chk.c (__vswprintf_chk)
6333 * debug/vwprintf_chk.c (__vwprintf_chk)
6334 * debug/wprintf_chk.c (__wprintf_chk):
6335 Directly call the corresponding vxxprintf_internal function, passing
6336 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
6337 the FILE and/or construct a temporary FILE. Minimize and normalize
6338 header inclusions and variable names. Do not libc_hidden_def anything.
6339
6340 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
6341 __obstack_vprintf_internal.
6342 (__obstack_vprintf_chk): Convert into a wrapper that calls
6343 __obstack_vprintf_internal (these two functions already had the
6344 same code) and move to new file...
6345 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
6346 file.
6347 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
6348 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
6349 * debug/Makefile (routines): Add vobprintf_chk.
6350
6351 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
6352 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
6353 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
6354 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
6355 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
6356 (__nldbl___obstack_vfprintf_chk):
6357 Directly call the corresponding vxxprintf_internal function,
6358 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
6359 duplicate comparison of slen with 0 or maxlen from the corresponding
6360 non-__nldbl function.
6361
6362 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
6363 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
6364 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
6365 Remove libc_hidden_proto.
6366
6367 * stdio-common/vfprintf-internal.c
6368 (__vfprintf_internal, __vfwprintf_internal):
6369 Do not check _IO_FLAGS2_FORTIFY.
6370 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
6371 * libio/libioP.h: Update prototype of __vsprintf_internal and add
6372 a comment explaining why it has the maxlen argument.
6373 (_IO_acquire_lock_clear_flags2_fct): Remove.
6374 (_IO_acquire_lock_clear_flags2): Remove.
6375 (_IO_release_lock): Remove conditional statement which will
6376 now never execute.
6377 (_IO_acquire_lock): Remove variable which is now unused.
6378 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6379 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
6380
6381 * stdio-common/Makefile (tests): Add tst-bz11319 and
6382 tst-bz11319-fortify2.
6383 (CFLAGS-tst-bz11319-fortify2.c): New macro.
6384 * stdio-common/tst-bz11319-fortify2.c: New file.
6385 * stdio-common/tst-bz11319.c: Likewise.
6386
6387 2018-12-05 Zack Weinberg <zackw@panix.com>
6388 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6389
6390 * misc/syslog.c: Include libioP.h, not iolibio.h.
6391 (__vsyslog_internal): New function with the former body of
6392 __vsyslog_chk; takes mode_flags argument same as
6393 __v*printf_internal. Call __vfprintf_internal directly.
6394
6395 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
6396 Remove libc_hidden_def.
6397 (__syslog, __syslog_chk): Use __vsyslog_internal.
6398 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
6399
6400 * include/sys/syslog.h: Add multiple inclusion guard.
6401 Add prototype for __vsyslog_internal.
6402 Remove declaration and libc_hidden_proto for __vsyslog_chk.
6403
6404 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
6405 Use __vsyslog_internal.
6406
6407 2018-12-05 Zack Weinberg <zackw@panix.com>
6408 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6409
6410 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
6411 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
6412 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
6413 New functions.
6414 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
6415 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
6416
6417 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
6418 Include wctype.h here if COMPILE_WPRINTF is defined.
6419 Define __vfprintf_internal or __vfwprintf_internal, depending
6420 on COMPILE_WPRINTF.
6421 Temporarily, on entry to this function, update mode_flags
6422 according to the environmental settings corresponding to
6423 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
6424 Throughout, check mode_flags instead of __ldbl_is_dbl and
6425 _IO_FLAGS2_FORTIFY on the destination FILE.
6426 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
6427 Include vfprintf-internal.c. Don't include wctype.h.
6428 * stdio-common/vfprintf.c: New file. Just define __vfprintf
6429 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
6430 and vfprintf.
6431 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
6432 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
6433 and vfwprintf.
6434 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
6435
6436 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
6437 and add mode_flags argument; use __vfprintf_internal.
6438 (__vdprintf): New function. Alias vdprintf to this.
6439 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
6440 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
6441 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
6442 (__obstack_printf): Use __obstack_printf_internal.
6443 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
6444 public aliases __vsnprintf and vsnprintf.
6445 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
6446 called internally.
6447 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
6448 public aliases _IO_vsprintf and vsprintf.
6449 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
6450 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
6451 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
6452 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
6453 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
6454
6455 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
6456 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
6457 * stdio-common/fprintf.c, stdio-common/fxprintf.c
6458 * stdio-common/printf.c: Use __vfprintf_internal.
6459
6460 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
6461 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
6462 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
6463
6464 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
6465 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
6466 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
6467 __vfwprintf_internal.
6468
6469 * libio/libio.h: Remove libc_hidden_proto and declaration for
6470 _IO_vfprintf.
6471 Remove declaration of _IO_vfwprintf.
6472 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
6473 _IO_vsprintf.
6474 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
6475 _IO_obstack_printf.
6476 * include/stdio.h: Add prototype for __vasprintf.
6477 (__vsnprintf): Remove declaration, because there are no more
6478 internal calls.
6479 * include/wchar.h (__vfwprintf, __vswprintf): Remove
6480 declaration, because there are no more internal calls.
6481
6482 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
6483 __vsnprintf_internal, instead of _IO_vsnprintf.
6484 * argp/argp-help.c (__argp_error, __argp_failure): Use
6485 __vasprintf_internal, instead of _IO_vasprintf.
6486 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
6487 redefine, because there are no more internal calls.
6488
6489 2018-12-05 Zack Weinberg <zackw@panix.com>
6490 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6491
6492 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
6493 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
6494 Include libio/strfile.h instead of libioP.h.
6495 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
6496 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
6497 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
6498 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
6499 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
6500 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
6501 necessary. Do not set __no_long_double. Normalize variable names.
6502 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
6503 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
6504 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
6505 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
6506 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
6507 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
6508 Call __vfscanf_internal / __vfwscanf_internal directly, passing
6509 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
6510 Do not set __no_long_double. Normalize variable names.
6511
6512 2018-12-05 Zack Weinberg <zackw@panix.com>
6513 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6514
6515 * stdio-common/isoc99_scanf.c
6516 * stdio-common/isoc99_fscanf.c
6517 * stdio-common/isoc99_sscanf.c
6518 * stdio-common/isoc99_vscanf.c
6519 * stdio-common/isoc99_vfscanf.c
6520 * stdio-common/isoc99_vsscanf.c
6521 * wcsmbs/isoc99_wscanf.c
6522 * wcsmbs/isoc99_fwscanf.c
6523 * wcsmbs/isoc99_swscanf.c
6524 * wcsmbs/isoc99_vwscanf.c
6525 * wcsmbs/isoc99_vfwscanf.c
6526 * wcsmbs/isoc99_vswscanf.c:
6527 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
6528 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
6529 No need to lock and unlock the FILE passed to that function.
6530
6531 * stdio-common/vfscanf-internal.c
6532 (__vfscanf_internal, __vfwscanf_internal):
6533 Don't look at _IO_FLAGS2_SCANF_STD.
6534 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
6535 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
6536 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
6537
6538 2018-12-05 Zack Weinberg <zackw@panix.com>
6539 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
6540
6541 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
6542 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
6543 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
6544 * libio/strfile.h: Add multiple inclusion guard.
6545 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
6546
6547 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
6548 consistency with the other version of this file.
6549 (ldbl_compat_symbol): New macro.
6550 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
6551 New macro.
6552
6553 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
6554 Define __vfscanf_internal or __vfwscanf_internal, depending on
6555 COMPILE_WSCANF; don't define any other public symbols.
6556 Remove errval and code to set errp.
6557 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
6558 as the mode_flags argument.
6559 (encode_error, conv_error, input_error): Don't set errval.
6560 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
6561 Include vfscanf-internal.c.
6562 * stdio-common/vfscanf.c: New file defining the public entry
6563 point vfscanf, which calls __vfscanf_internal.
6564 * stdio-common/vfwscanf.c: New file defining the public entry
6565 point vfwscanf, which calls __vfwscanf_internal.
6566
6567 * stdio-common/iovfscanf.c: New file.
6568 * stdio-common/iovfwscanf.c: Likewise.
6569
6570 * stdio-common/Makefile (routines): Add vfscanf-internal,
6571 vfwscanf-internal, iovfscanf, iovfwscanf.
6572 * stdio-common/Versions: Mention GLIBC_2.29, so that
6573 it can be used in SHLIB_COMPAT expressions.
6574 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
6575 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
6576 Call __vfscanf_internal, instead of _IO_vfscanf.
6577 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
6578 _IO_vfscanf.
6579 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
6580 _IO_vfwscanf.
6581
6582 * libio/iovsscanf.c: Clean up includes, when possible. Use
6583 _IO_strfile_read or _IO_strfile_readw, when needed. Call
6584 __vfscanf_internal or __vfwscanf_internal directly.
6585 * libio/iovswscanf.c: Likewise.
6586 * libio/swscanf.c: Likewise.
6587 * libio/vscanf.c: Likewise.
6588 * libio/vwscanf.c: Likewise.
6589 * libio/wscanf.c: Likewise.
6590 * stdio-common/isoc99_fscanf.c: Likewise.
6591 * stdio-common/isoc99_scanf.c: Likewise.
6592 * stdio-common/isoc99_sscanf.c: Likewise.
6593 * stdio-common/isoc99_vfscanf.c: Likewise.
6594 * stdio-common/isoc99_vscanf.c: Likewise.
6595 * stdio-common/isoc99_vsscanf.c: Likewise.
6596 * stdio-common/scanf.c: Likewise.
6597 * stdio-common/sscanf.c: Likewise.
6598 * wcsmbs/isoc99_fwscanf.c: Likewise.
6599 * wcsmbs/isoc99_swscanf.c: Likewise.
6600 * wcsmbs/isoc99_vfwscanf.c: Likewise.
6601 * wcsmbs/isoc99_vswscanf.c: Likewise.
6602 * wcsmbs/isoc99_vwscanf.c: Likewise.
6603 * wcsmbs/isoc99_wscanf.c: Likewise.
6604
6605 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
6606
6607 * include/time.h
6608 (__tz_compute): Replace time_t with __time64_t.
6609 (__tz_convert): Replace time_t* with __time64_t.
6610 (__offtime): Replace time_t* with __time64_t.
6611 * time/gmtime.c
6612 (__gmtime_r): Adjust call to __tz_convert.
6613 (gmtime): Likewise.
6614 * time/localtime.c
6615 (__localtime_r): Likewise.
6616 (localtime): Likewise.
6617 * time/offtime.c: Replace time_t with __time64_t.
6618 * time/tzset.c: Likewise.
6619
6620 2018-12-04 Joseph Myers <joseph@codesourcery.com>
6621
6622 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
6623 dynamic linker unless [$(run-built-tests) = yes].
6624
6625 2018-12-03 DJ Delorie <dj@delorie.com>
6626
6627 * support/test-container.c (check_for_unshare_hints): New.
6628 (main): Call it if unshare fails. Add support for "su" scriptlet
6629 command.
6630
6631 2018-12-03 Joseph Myers <joseph@codesourcery.com>
6632
6633 * scripts/gen-as-const.py (compute_c_consts): Take an argument
6634 'START' to indicate that start text should be output.
6635 (gen_test): Likewise.
6636 (main): Generate 'START' for first symbol or '--' line, or at end
6637 of input if not previously generated.
6638
6639 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
6640
6641 [BZ #19767]
6642 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
6643 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
6644 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
6645 ALWAYS_USE_VSYSCALL.
6646
6647 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6648
6649 [BZ #23913]
6650 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
6651 new_argv by one.
6652
6653 2018-12-03 Carlos O'Donell <carlos@redhat.com>
6654
6655 [BZ #23923]
6656 * locale/programs/localedef.c: Declare boolean hard_links default true.
6657 (options): Add --no-hard-links option.
6658 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
6659 * locale/programs/localedef.h: Declare prototype for hard_links.
6660 * locale/programs/locfile.c (write_locale_data): Don't use hard
6661 links if hard_links is false.
6662
6663 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
6664
6665 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
6666 cpu_features_basic.
6667 (__cache_sysconf): Likewise.
6668 (init_cacheinfo): Likewise.
6669 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
6670 populate COMMON_CPUID_INDEX_80000007 and
6671 COMMON_CPUID_INDEX_80000008.
6672 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
6673 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
6674 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
6675 (init_cpu_features): Use _Static_assert on
6676 index_arch_Fast_Unaligned_Load.
6677 __get_cpuid_registers and __get_arch_feature. Updated for
6678 cpu_features_basic. Set stepping in cpu_features.
6679 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
6680 (FEATURE_INDEX_2): New.
6681 (FEATURE_INDEX_MAX): Changed to enum.
6682 (COMMON_CPUID_INDEX_D_ECX_1): New.
6683 (COMMON_CPUID_INDEX_80000007): Likewise.
6684 (COMMON_CPUID_INDEX_80000008): Likewise.
6685 (cpuid_registers): Likewise.
6686 (cpu_features_basic): Likewise.
6687 (CPU_FEATURE_USABLE): Likewise.
6688 (bit_arch_XXX_Usable): Likewise.
6689 (cpu_features): Use cpuid_registers and cpu_features_basic.
6690 (bit_arch_XXX): Reweritten.
6691 (bit_cpu_XXX): Likewise.
6692 (index_cpu_XXX): Likewise.
6693 (reg_XXX): Likewise.
6694 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
6695 <support/check.h>.
6696 (CHECK_CPU_FEATURE): New.
6697 (CHECK_CPU_FEATURE_USABLE): Likewise.
6698 (cpu_kinds): Likewise.
6699 (do_test): Print vendor, family, model and stepping. Check
6700 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
6701 (TEST_FUNCTION): Removed.
6702 Include <support/test-driver.c> instead of
6703 "../../test-skeleton.c".
6704 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
6705 Check POPCNT instead of POPCOUNT.
6706 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
6707
6708 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
6709
6710 * scripts/gen-as-const.py (main): Avoid emitting empty line when
6711 there is no element in `consts'.
6712
6713 2018-12-01 Florian Weimer <fweimer@redhat.com>
6714
6715 * support/support_capture_subprocess.c
6716 (support_capture_subprocess): Check that pipe descriptors have
6717 expected values. Close original pipe descriptors in subprocess.
6718
6719 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6720
6721 [BZ #23032]
6722 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
6723 attr with __pthread_default_barrierattr.
6724 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
6725 attr with __pthread_default_condattr.
6726 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
6727 attr with __pthread_default_mutexattr.
6728 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
6729 attr with __pthread_default_rwlockattr.
6730
6731 2018-12-01 Kemi Wang <kemi.wang@intel.com>
6732
6733 * manual/tunables.texi (POSIX Thread Tunables): New node.
6734 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
6735 * nptl/nptl-init.c: Include pthread_mutex_conf.h
6736 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
6737 __pthread_tunables_init.
6738 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
6739 (max_adaptive_count): Define.
6740 * nptl/pthread_mutex_conf.c: New file.
6741 * nptl/pthread_mutex_conf.h: New file.
6742 * sysdeps/generic/adaptive_spin_count.h: New file.
6743 * sysdeps/nptl/dl-tunables.list: New file.
6744 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
6745 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
6746 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
6747 Likewise.
6748
6749 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
6750
6751 [BZ #20544]
6752 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
6753 * stdlib/on_exit.c (__on_exit): Likewise.
6754 * stdlib/Makefile (tests): Add tst-bz20544.
6755 * stdlib/tst-bz20544.c: New test.
6756
6757 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
6758
6759 [BZ #19767]
6760 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
6761 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
6762 New.
6763
6764 2018-11-30 Florian Weimer <fweimer@redhat.com>
6765
6766 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
6767 Extend error logging.
6768 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
6769 symbol.
6770
6771 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6772
6773 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
6774 __sigismember instead of sigismember.
6775 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
6776 cancel_handler): New definitions.
6777 (do_system): Use posix_spawn instead of fork and execl and remove
6778 reentracy code.
6779 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
6780 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
6781 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
6782 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6783 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6784 * sysdeps/unix/sysv/linux/system.c: Likewise.
6785
6786 [BZ #22834]
6787 [BZ #17490]
6788 * NEWS: Add new semantic for atfork with popen and system.
6789 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
6790 fork and execl.
6791
6792 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6793
6794 [BZ #23690]
6795 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
6796 modification order when accessing reloc_result->addr.
6797 * include/link.h (reloc_result): Add field init.
6798 * nptl/Makefile (tests): Add tst-audit-threads.
6799 (modules-names): Add tst-audit-threads-mod1 and
6800 tst-audit-threads-mod2.
6801 Add rules to build tst-audit-threads.
6802 * nptl/tst-audit-threads-mod1.c: New file.
6803 * nptl/tst-audit-threads-mod2.c: Likewise.
6804 * nptl/tst-audit-threads.c: Likewise.
6805 * nptl/tst-audit-threads.h: Likewise.
6806
6807 2018-11-30 Joseph Myers <joseph@codesourcery.com>
6808
6809 * scripts/gen-as-const.py: New file.
6810 * scripts/gen-as-const.awk: Remove.
6811 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
6812 gen-as-const.py.
6813 ($(objpfx)test-as-const-%.c): Likewise.
6814
6815 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6816
6817 * elf/dl-exception.c: Include <_itoa.h>.
6818
6819 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6820
6821 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
6822 returned by __f_setlk.
6823
6824 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
6825 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6826
6827 * elf/Makefile (tests-internal): Add tst-create_format1.
6828 * elf/dl-exception.c (_dl_exception_create_format): Support
6829 %x, %lx and %zx.
6830 * elf/tst-create_format1.c: New file.
6831
6832 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
6833
6834 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
6835 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
6836 gnulib.)
6837 * argp/argp-help.c (__argp_failure): Likewise.
6838
6839 2018-11-29 Mao Han <han_mao@c-sky.com>
6840
6841 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
6842 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
6843 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
6844 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
6845 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
6846 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
6847 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
6848 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
6849 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
6850 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
6851 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
6852 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
6853 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
6854 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
6855 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
6856 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
6857 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
6858 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
6859 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
6860 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
6861 (R_CKCORE_TLS_TPOFF32): New defines.
6862
6863 2018-11-29 Florian Weimer <fweimer@redhat.com>
6864
6865 * posix/Makefile (before-compile): Remove testcases.h and
6866 ptestcases.h.
6867 (generated): Add testcases.h and ptestcases.h.
6868 (testcases.h, ptestcases.h): Move to $(objpfx).
6869 (runtests.o): Add dependency on testcases.h.
6870 (runptests.o): Add dependency on ptestcases.h.
6871 * posix/testcases.h, posix/ptestcases.h: Remove files.
6872 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
6873 not touch posix/testcases.h and posix/ptestcases.h.
6874
6875 2018-11-28 Florian Weimer <fweimer@redhat.com>
6876
6877 support: Add signal support to support_capture_subprocess_check.
6878 * support/capture_subprocess.h (support_capture_subprocess_check):
6879 Adjust comment and rename parameter.
6880 * support/support_capture_subprocess_check.c
6881 (print_actual_status): New function.
6882 (support_capture_subprocess_check): Support negative
6883 status_or_signal. Call print_actual_status.
6884 * support/tst-support_capture_subprocess.c (do_test): Call
6885 support_capture_subprocess_check.
6886 * libio/tst-vtables-common.c (termination_status)
6887 (init_termination_status): Remove.
6888 (check_for_termination): Adjust support_capture_subprocess_check
6889 call.
6890 (do_test): Remove call to init_termination_status.
6891
6892 2018-11-28 Joseph Myers <joseph@codesourcery.com>
6893
6894 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
6895 source directory instead of a copy.
6896 (CommandList.create_copy_dir): Remove.
6897
6898 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
6899
6900 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
6901
6902 2018-11-28 Florian Weimer <fweimer@redhat.com>
6903
6904 * support/support.h (support_quote_string): Do not use str
6905 parameter name.
6906
6907 2018-11-27 Joseph Myers <joseph@codesourcery.com>
6908
6909 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
6910 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
6911
6912 2018-11-27 Florian Weimer <fweimer@redhat.com>
6913
6914 * support/support.h (support_quote_string): Declare.
6915 * support/support_quote_string.c: New file.
6916 * support/tst-support_quote_string.c: Likewise.
6917 * support/Makefile (libsupport-routines): Add
6918 support_quote_string.
6919 (tests): Add tst-support_quote_string.
6920
6921 2018-11-27 Florian Weimer <fweimer@redhat.com>
6922
6923 [BZ #23927]
6924 CVE-2018-19591
6925 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
6926 descriptor leak in case of ENODEV error.
6927
6928 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
6929
6930 [BZ #19767]
6931 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
6932 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
6933 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
6934
6935 2018-11-26 Carlos O'Donell <carlos@redhat.com>
6936
6937 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
6938 Error for unknown lines.
6939
6940 2018-11-26 Joseph Myers <joseph@codesourcery.com>
6941
6942 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
6943 Touch additional files.
6944
6945 2018-11-26 Florian Weimer <fweimer@redhat.com>
6946
6947 [BZ #23907]
6948 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
6949 double-frees.
6950
6951 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
6952
6953 [BZ #19767]
6954 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
6955 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
6956 SHARED. Include sysdep.h.
6957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
6958 ALWAYS_USE_VSYSCALL.
6959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
6960 ALWAYS_USE_VSYSCALL.
6961
6962 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
6963
6964 [BZ #19767]
6965 * nptl/Makefile (tests-static): Add tst-cond11-static.
6966 (tests): Likewise.
6967 * nptl/tst-cond11-static.c: New File.
6968 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
6969 tst-affinity-static.
6970 (tests): Likewise.
6971 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
6972 instead of SHARED.
6973 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
6974 (USE_VSYSCALL): Likewise.
6975 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
6976 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
6977 instead of SHARED.
6978 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
6979 SHARED.
6980 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
6981 New.
6982
6983 2018-11-23 Joseph Myers <joseph@codesourcery.com>
6984
6985 [BZ #23915]
6986 * sysdeps/unix/sysv/linux/arm/kernel-features.h
6987 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
6988 Undefine.
6989
6990 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
6991
6992 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
6993 (tst-cet-legacy-1a-ARGS): New.
6994 ($(objpfx)tst-cet-legacy-1a): New target.
6995 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
6996
6997 2018-11-22 Joseph Myers <joseph@codesourcery.com>
6998
6999 * conform/conformtest.py (CompileSubTest.__init__): Set
7000 self.run_early to False.
7001 (ExecuteSubTest.__init__): Likewise.
7002 (HeaderTests.run): Try running all non-optional, non-XFAILed
7003 compilation tests in a single execution of the compiler.
7004
7005 * conform/conformtest.py (CompileSubTest): New class.
7006 (ExecuteSubTest): Likewise.
7007 (ElementTest.run): Rename to gen_subtests. Append tests to
7008 self.subtests instead of running them.
7009 (ConstantTest.run): Likewise.
7010 (SymbolTest.run): Likewise.
7011 (TypeTest.run): Likewise.
7012 (TagTest.run): Likewise.
7013 (FunctionTest.run): Likewise.
7014 (VariableTest.run): Likewise.
7015 (MacroFunctionTest.run): Likewise.
7016 (MacroStrTest.run): Likewise.
7017 (HeaderTests.handle_test_line): Generate subtests for tests.
7018 (HeaderTests.run): Run subtests for tests.
7019
7020 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7021
7022 * math/Versions (GLIBC_2.29): Add pow.
7023 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
7024 symbol.
7025 * math/w_pow.c: New file.
7026 * sysdeps/i386/fpu/w_pow.c: New file.
7027 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
7028 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
7029 and add necessary aliases.
7030 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
7031 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
7032 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7033 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7034 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7035 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7036 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7037 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7038 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7039 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7040 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7041 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7042 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7043 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7044 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7045 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7047 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7049 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7050 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7051 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7052 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7053 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7054 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7055 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7056 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
7057 __pow.
7058 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
7059 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
7060 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
7061
7062 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7063
7064 * math/Versions (GLIBC_2.29): Add log2.
7065 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
7066 symbol.
7067 * math/w_log2.c: New file.
7068 * sysdeps/i386/fpu/w_log2.c: New file.
7069 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
7070 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
7071 and add necessary aliases.
7072 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
7073 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
7074 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7075 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7076 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7077 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7078 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7079 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7080 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7081 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7082 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7083 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7084 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7085 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7086 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7088 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7090 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7091 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7092 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7093 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7094 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7095 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7096 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7097 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7098
7099 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7100
7101 * math/Versions (GLIBC_2.29): Add log.
7102 * math/w_log_compat.c (__log_compat): Change to versioned compat
7103 symbol.
7104 * math/w_log.c: New file.
7105 * sysdeps/i386/fpu/w_log.c: New file.
7106 * sysdeps/ia64/fpu/e_log.S: Update.
7107 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
7108 and add necessary aliases.
7109 * sysdeps/ieee754/dbl-64/w_log.c: New file.
7110 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
7111 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7112 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7113 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7114 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7115 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7116 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7117 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7118 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7119 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7120 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7121 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7122 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7123 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7125 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7126 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7128 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7129 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7130 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7131 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7132 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7133 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7134 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7135 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
7136 __log.
7137 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
7138 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
7139 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
7140 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
7141
7142 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
7143
7144 * math/Versions (GLIBC_2.29): Add exp and exp2.
7145 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
7146 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
7147 * math/w_exp_compat.c (__exp_compat): Likewise.
7148 * math/w_exp.c: New file.
7149 * math/w_exp2.c: New file.
7150 * sysdeps/i386/fpu/w_exp.c: New file.
7151 * sysdeps/i386/fpu/w_exp2.c: New file.
7152 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
7153 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
7154 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
7155 and add necessary aliases.
7156 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
7157 and add necessary aliases.
7158 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
7159 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
7160 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
7161 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
7162 * sysdeps/mach/hurd/i386/libm.abilist: Update.
7163 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
7164 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
7165 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
7166 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
7167 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
7168 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
7169 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
7170 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
7171 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
7172 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
7173 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
7174 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
7175 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
7176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
7177 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
7178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
7179 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
7180 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
7181 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
7182 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
7183 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
7184 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
7185 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
7186 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
7187 (__ieee754_exp): Rename to __exp.
7188 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
7189 (__ieee754_exp): Rename to __exp.
7190 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
7191 (__ieee754_exp): Rename to __exp.
7192 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
7193 __exp.
7194 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
7195
7196 2018-11-20 DJ Delorie <dj@redhat.com>
7197
7198 * malloc/malloc.c (tcache_entry): Add key field.
7199 (tcache_put): Set it.
7200 (tcache_get): Likewise.
7201 (_int_free): Check for double free in tcache.
7202 * malloc/tst-tcfree1.c: New.
7203 * malloc/tst-tcfree2.c: New.
7204 * malloc/Makefile: Run the new tests.
7205 * manual/probes.texi: Document memory_tcache_double_free probe.
7206
7207 * dlfcn/dlerror.c (check_free): Prevent double frees.
7208
7209 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
7210
7211 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
7212
7213 2018-11-20 Joseph Myers <joseph@codesourcery.com>
7214
7215 * conform/conformtest.py (ElementTest.run): Use unique identifiers
7216 in tests. Use names for format arguments.
7217 (ConstantTest.run): Likewise.
7218 (SymbolTest.run): Likewise.
7219 (TypeTest.run): Likewise.
7220 (TagTest.run): Likewise.
7221 (FunctionTest.run): Likewise.
7222 (VariableTest.run): Likewise.
7223 (MacroFunctionTest.run): Likewise.
7224 (MacroStrTest.run): Likewise.
7225 (HeaderTests.__init__): Set self.num_tests.
7226 (HeaderTests.handle_test_line): Set test.num. Increment
7227 self.num_tests.
7228
7229 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
7230
7231 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
7232 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
7233 SEEK_SET.
7234
7235 2018-11-19 Mao Han <han_mao@c-sky.com>
7236
7237 * scripts/config.guess: Update to version 2018-08-29.
7238 * scripts/config.sub: Update to version 2018-08-29.
7239
7240 2018-11-19 Florian Weimer <fweimer@redhat.com>
7241
7242 support: Print timestamps in timeout handler.
7243 * support/support_test_main.c (print_timestamp): New function.
7244 (signal_handler): Use it to print the termination time and the
7245 time of the last write to standard output.
7246
7247 2018-11-16 Zack Weinberg <zackw@panix.com>
7248 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7249
7250 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
7251 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
7252 argument.
7253 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
7254 and add flags argument. Check flags instead of __ldbl_is_dbl when
7255 deciding whether to set is_long_double.
7256 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
7257 passing zero for flags argument.
7258 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
7259
7260 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
7261 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
7262 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
7263 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
7264 variable names. Remove libc_hidden_def/libc_hidden_proto from
7265 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
7266 longer called from within the library.
7267 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
7268 for __nldbl___vstrfmon_l, declare it explicitly.
7269
7270 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
7271
7272 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
7273
7274 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
7275 macros
7276 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
7277 F_SETLK64, F_SETLKW64, respectively.
7278 * sysdeps/mach/hurd/f_setlk.c: New file.
7279 * sysdeps/mach/hurd/f_setlk.h: New file.
7280 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
7281 f_setlk.
7282 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
7283 (__libc_fcntl): Move non-flock operations to...
7284 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
7285 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
7286
7287 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
7288
7289 mktime: DEBUG_MKTIME cleanup
7290 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
7291 And it’s no longer needed now that glibc and Gnulib both have
7292 their own testing mechanisms for mktime.
7293 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
7294
7295 mktime: fix non-EOVERFLOW errno handling
7296 [BZ#23789]
7297 mktime was not properly reporting failures when the underlying
7298 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
7299 them like EOVERFLOW failures, and set errno to EOVERFLOW.
7300 The problem could happen on non-glibc platforms, with Gnulib.
7301 * time/mktime.c (guess_time_tm): Remove, replacing with ...
7302 (tm_diff): ... this simpler function, which does not change errno.
7303 All callers changed to deal with errno themselves.
7304 (ranged_convert, __mktime_internal): Return failure immediately if
7305 the underlying function reports any failure other than EOVERFLOW.
7306 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
7307 gap code fails.
7308
7309 mktime: fix bug with Y2038 DST transition
7310 [BZ#23789]
7311 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
7312 mishandle a DST transition that jumps over the Y2038 boundary.
7313 No such DST transitions are known so this is only a theoretical
7314 bug, but we might as well do things right.
7315
7316 mktime: make more room for overflow
7317 [BZ#23789]
7318 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
7319 This is so that we can add tm_diff results to a previous guess,
7320 which will be useful in a later patch.
7321
7322 mktime: simplify offset guess
7323 [BZ#23789]
7324 * time/mktime.c (__mktime_internal): Omit excess precision.
7325
7326 mktime: new test for mktime failure
7327 [BZ#23789]
7328 Based on a test suggested by Albert Aribaud in:
7329 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
7330 * time/Makefile (tests): Add bug-mktime4.
7331 * time/bug-mktime4.c: New file.
7332
7333 mktime: fix EOVERFLOW bug
7334 [BZ#23789]
7335 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
7336 Include libc-config.h, not config.h, for __set_errno.
7337 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
7338
7339 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7340
7341 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
7342 __attribute_copy__ to copy attributes from name. Drop static qualifier
7343 to avoid warnings about leaf attribute not having effect on static
7344 functions.
7345
7346 2018-11-13 Florian Weimer <fweimer@redhat.com>
7347
7348 * malloc/malloc.c (fastbin_push_entry): New function.
7349 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
7350 (REMOVE_FB): Remove macro.
7351 (_int_malloc): Use fastbin_pop_entry and reindent.
7352 (_int_free): Use fastbin_push_entry.
7353 (malloc_consolidate): Use atomic_exchange_acquire.
7354
7355 2018-11-13 Joseph Myers <joseph@codesourcery.com>
7356
7357 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
7358 alias attribute, not with strong_alias.
7359
7360 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
7361 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
7362 with additional parameter thread.
7363 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
7364 in terms of __hidden_ver2.
7365 (hidden_tls_def): New macro.
7366 (libc_hidden_tls_def): Likewise.
7367 (rtld_hidden_tls_def): Likewise.
7368 (libm_hidden_tls_def): Likewise.
7369 (libmvec_hidden_tls_def): Likewise.
7370 (libresolv_hidden_tls_def): Likewise.
7371 (librt_hidden_tls_def): Likewise.
7372 (libdl_hidden_tls_def): Likewise.
7373 (libnss_files_hidden_tls_def): Likewise.
7374 (libnsl_hidden_tls_def): Likewise.
7375 (libnss_nisplus_hidden_tls_def): Likewise.
7376 (libutil_hidden_tls_def): Likewise.
7377 (libutil_hidden_tls_def): Likweise.
7378 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
7379 libc_hidden_tls_def.
7380 (__sim_disabled_exceptions_thread): Likewise.
7381 (__sim_round_mode_thread): Likewise.
7382
7383 * sysdeps/sparc/sparc-ifunc.h [SHARED]
7384 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
7385 copy attributes from name.
7386
7387 2018-11-12 Joseph Myers <joseph@codesourcery.com>
7388
7389 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
7390 Use __attribute_copy__ to copy attributes from name.
7391
7392 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
7393 with __hidden_ver1 call.
7394 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
7395 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
7396 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
7397 (__cosf): Do not declare here.
7398 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
7399 (__sincosf): Do not declare here.
7400 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
7401 (__sinf): Do not declare here.
7402
7403 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
7404 (__BIG_ENDIAN): Likewise.
7405 (__BYTE_ORDER): Likewise.
7406 (strong_alias): Likewise.
7407 (_strong_alias): Likewise.
7408
7409 2018-11-12 Florian Weimer <fweimer@redhat.com>
7410
7411 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
7412 function. Move after the definition of in_smallbin_range. Do not
7413 use __builtin_expect for paths that lead to a noreturn function.
7414 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
7415 because it is unclear whether this is in fact an unlikely
7416 condition.
7417 (_int_malloc, _int_free): Adjust.
7418 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
7419 variables.
7420 * malloc/arena.c (heap_trim): Likewise.
7421
7422 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
7423
7424 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
7425 it, free it if needed.
7426 (reauthenticate): Test and use ccwdir.
7427 (child_init_port): In non-resetids case, test and use ccwdir.
7428 (child_chdir): New nested function to set ccwdir.
7429 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
7430 * hurd/hurd/port.h (_hurd_port_move): New function.
7431 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
7432 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
7433 * hurd/Versions (_hurd_port_move): Export function.
7434 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
7435 symbol.
7436 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
7437 of dtablesize for allocating dtable_cloexec.
7438
7439 2018-11-09 Martin Sebor <msebor@redhat.com>
7440
7441 * include/libc-symbols.h (__attribute_copy__): Define macro unless
7442 it's already defined.
7443 (_strong_alias): Use __attribute_copy__.
7444 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
7445 * misc/sys/cdefs.h (__attribute_copy__): New macro.
7446 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
7447 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
7448 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
7449 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
7450 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
7451 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
7452 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
7453 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
7454 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
7455 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
7456 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
7457 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
7458 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
7459 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
7460 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
7461 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
7462 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
7463
7464 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7465
7466 * misc/tst-efgcvt.c: Include support/check.h and
7467 support/test-driver.c. Do not include test-skeleton.c.
7468 (error_count): Remove.
7469 (output_error): Replace increments to error_count with calls to
7470 support_record_failure.
7471 (output_r_error): Likewise.
7472 (special): Likewise.
7473 (do_test): Unconditionally return zero.
7474 (TEST_FUNCTION): Remove.
7475
7476 2018-11-09 Joseph Myers <joseph@codesourcery.com>
7477
7478 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
7479 not $(@D)/scratch.
7480 ($(linknamespace-header-tests)): Likewise.
7481
7482 * conform/conformtest.py: New file.
7483 * conform/conformtest.pl: Remove.
7484 * conform/GlibcConform.pm: Likewise.
7485 * conform/glibcconform.py (KEYWORDS_C90): New constant.
7486 (KEYWORDS_C99): Likewise.
7487 (KEYWORDS): Likewise.
7488 * conform/Makefile ($(conformtest-header-tests)): Use
7489 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
7490 option. Use --header instead of --headers.
7491 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
7492 function entries.
7493 * conform/data/spawn.h-data: Likewise.
7494 * conform/data/fcntl.h-data (openat): Add space after function
7495 name.
7496 * conform/data/wchar.h-data (wcscasecmp): Likewise.
7497 (wcscasecmp_l): Likewise.
7498 * conform/data/termios.h-data (c_cc): Add space after element
7499 name.
7500
7501 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7502
7503 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
7504 instead of manually comparing and reporting mismatching strings.
7505 * misc/tst-ldbl-error.c (do_one_test): Likewise.
7506 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7507
7508 2018-11-08 Joseph Myers <joseph@codesourcery.com>
7509
7510 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
7511 __ASSUME_SOCKETCALL.
7512 * sysdeps/unix/sysv/linux/i386/kernel-features.h
7513 (__ASSUME_SOCKETCALL): Remove.
7514 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
7515 (__ASSUME_SOCKETCALL): Likewise.
7516 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7517 (__ASSUME_SOCKETCALL): Likewise.
7518 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
7519 (__ASSUME_SOCKETCALL): Likewise.
7520 * sysdeps/unix/sysv/linux/s390/kernel-features.h
7521 (__ASSUME_SOCKETCALL): Likewise.
7522 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7523 (__ASSUME_SOCKETCALL): Likewise.
7524 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
7525 (__ASSUME_SOCKETCALL): Likewise.
7526
7527 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
7528
7529 [BZ #23509]
7530 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
7531 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
7532 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
7533 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
7534 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
7535 lc_unknown.
7536
7537 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
7538
7539 [BZ #17630]
7540 * resolv/tst-resolv-network.c: Add test for getnetbyname.
7541
7542 2018-11-07 Joseph Myers <joseph@codesourcery.com>
7543
7544 [BZ #23867]
7545 * sysdeps/unix/sysv/linux/arm/kernel-features.h
7546 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7547 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
7548 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
7549
7550 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7551
7552 * support/support_test_compare_string.c
7553 (support_test_compare_string): Fix printf format.
7554
7555 2018-11-07 Florian Weimer <fweimer@redhat.com>
7556
7557 Implement TEST_COMPARE_STRING.
7558 * support/check.h (TEST_COMPARE_STRING): Define.
7559 (support_test_compare_string): Declare.
7560 * support/Makefile (libsupport-routines): Add
7561 support_test_compare_string.
7562 (tests): Add tst-test_compare_string.
7563 * support/support_test_compare_string.c: New file.
7564 * support/tst-test_compare_string.c: Likewise.
7565
7566 2018-11-07 Andreas Schwab <schwab@suse.de>
7567
7568 [BZ #23864]
7569 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
7570 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
7571 Undef.
7572
7573 2018-11-06 Joseph Myers <joseph@codesourcery.com>
7574
7575 [BZ #23862]
7576 * sysdeps/unix/sysv/linux/sh/kernel-features.h
7577 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
7578 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
7579 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
7580 Likewise.
7581
7582 2018-11-06 Florian Weimer <fweimer@redhat.com>
7583
7584 [BZ #17405]
7585 * posix/Makefile (routines): Add spawn_faction_addchdir.
7586 (tests): Add tst-spawn-chdir.
7587 * posix/Versions (GLIBC_2.29): Add
7588 posix_spawn_file_actions_addchdir_np.
7589 * posix/spawn_faction_addchdir.c: New file.
7590 * posix/spawn_faction_destroy.c
7591 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
7592 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
7593 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
7594 chdir_action.
7595 * posix/tst-spawn-chdir.c: New file.
7596 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
7597 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
7598 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
7599 posix_spawn_file_actions_addchdir_np.
7600 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
7601 Likewise.
7602 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
7603 Likewise.
7604 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
7605 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
7606 Likewise.
7607 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
7608 Likewise.
7609 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
7610 Likewise.
7611 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
7612 Likewise.
7613 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
7614 Likewise.
7615 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
7616 Likewise.
7617 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
7618 (GLIBC_2.29): Likewise.
7619 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
7620 (GLIBC_2.29): Likewise.
7621 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
7622 (GLIBC_2.29): Likewise.
7623 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
7624 (GLIBC_2.29): Likewise.
7625 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
7626 Likewise.
7627 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
7628 (GLIBC_2.29): Likewise.
7629 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
7630 (GLIBC_2.29): Likewise.
7631 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
7632 (GLIBC_2.29): Likewise.
7633 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
7634 (GLIBC_2.29): Likewise.
7635 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
7636 Likewise.
7637 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
7638 Likewise.
7639 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
7640 Likewise.
7641 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
7642 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
7643 Likewise.
7644 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
7645 Likewise.
7646 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
7647 Likewise.
7648 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
7649 Likewise.
7650
7651 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7652
7653 * misc/Makefile (tests): Add tst-ldbl-error.
7654 * misc/tst-ldbl-error.c: New file.
7655
7656 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7657
7658 * misc/Makefile (tests): Add tst-ldbl-warn.
7659 * misc/tst-ldbl-warn.c: New file.
7660
7661 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
7662
7663 * argp/Makefile (tests): Add tst-ldbl-argp.
7664 * argp/tst-ldbl-argp.c: New file.
7665
7666 2018-11-05 Arjun Shankar <arjun@redhat.com>
7667
7668 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
7669 __gconv_path_elem and call __gconv_get_path unconditionally.
7670
7671 2018-11-05 Andreas Schwab <schwab@suse.de>
7672
7673 [BZ #22927]
7674 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
7675 creating the first helper thread failed.
7676
7677 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7678
7679 * sysdeps/mach/hurd/msync.c: New file.
7680
7681 2018-11-02 Florian Weimer <fweimer@redhat.com>
7682
7683 * support/shell-container.c (copy_func): Call
7684 support_copy_file_range instead of copy_file_range to support
7685 cross-device copies.
7686
7687 2018-11-02 Florian Weimer <fweimer@redhat.com>
7688
7689 * support/test-container.c: Include <libc-pointer-arith.h> for
7690 ALIGN_UP.
7691
7692 2018-11-01 Zong Li <zong@andestech.com>
7693
7694 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
7695 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
7696 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
7697 (__FP_FRAC_SET_8): Add implementation for RV32 use.
7698
7699 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
7700 variable to avoid overlap arguments.
7701
7702 2018-11-01 Joseph Myers <joseph@codesourcery.com>
7703
7704 * posix/bug-regex22.c (main): Use puts with distinct error
7705 messages for unexpected success of re_compile_pattern, not printf
7706 with NULL argument to %s.
7707
7708 * stdio-common/bug22.c: Include <libc-diag.h>.
7709 (do_test): Disable -Wformat-overflow= warnings around fprintf
7710 calls outputting more than INT_MAX characters.
7711 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
7712 around printf call with NULL %s argument.
7713
7714 [BZ #23848]
7715 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
7716 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
7717 Undefine.
7718 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7719 (__ASSUME_RECVMSG_SYSCALL): Likewise.
7720 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7721 (__ASSUME_SENDTO_SYSCALL): Likewise.
7722 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7723 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
7724 [!__arch64__].
7725 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7726 (__ASSUME_CONNECT_SYSCALL): Likewise.
7727 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
7728 (__ASSUME_RECVFROM_SYSCALL): Likewise.
7729 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
7730 Define.
7731 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
7732 Likewise.
7733 [__LINUX_KERNEL_VERSION >= 0x040400]
7734 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
7735 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
7736 Remove.
7737 (listen): Likewise.
7738 (setsockopt): Likewise.
7739
7740 2018-11-01 Fredrik Noring <noring@nocrew.org>
7741
7742 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
7743 with the ISA override.
7744
7745 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
7746
7747 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
7748 #endif.
7749
7750 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
7751
7752 * manual/errno.texi (EIEIO): Document how translators should
7753 translate the error message.
7754 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
7755 printing trailing whitespaces refused by git.
7756 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
7757 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
7758 * hurd/Makefile (user-interfaces): Add pci.
7759
7760 2018-10-30 Joseph Myers <joseph@codesourcery.com>
7761
7762 * conform/linknamespace.py: New file.
7763 * conform/linknamespace.pl: Remove file.
7764 * conform/Makefile ($(linknamespace-header-tests)): Use
7765 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
7766 option.
7767
7768 2018-10-30 Florian Weimer <fweimer@redhat.com>
7769
7770 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
7771 memory leaks.
7772
7773 2018-10-30 Florian Weimer <fweimer@redhat.com>
7774
7775 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
7776
7777 2018-10-30 Florian Weimer <fweimer@redhat.com>
7778
7779 * stdlib/tst-strtod-overflow.c (do_test): Switch to
7780 support_blob_repeat.
7781
7782 2018-10-30 Florian Weimer <fweimer@redhat.com>
7783
7784 Avoid spurious test failures in stdlib/test-bz22786.
7785 * support/Makefile (libsupport-routines): Add blob_repeat.
7786 (tests): Add tst-support_blob_repeat.
7787 * support/blob_repeat.h: New file.
7788 * support/blob_repeat.c: Likewise.
7789 * support/tst-support_blob_repeat.c: Likewise.
7790 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
7791 support_blob_repeat_allocate.
7792
7793 2018-10-30 Andreas Schwab <schwab@suse.de>
7794
7795 [BZ #23125]
7796 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
7797 Don't use tail call.
7798 * elf/tst-unwind-main.c: New file.
7799 * elf/Makefile (tests): Add tst-unwind-main.
7800 (CFLAGS-tst-unwind-main.c): Define.
7801
7802 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
7803
7804 [BZ #23791]
7805 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
7806 n_cs_precedes to 0.
7807 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
7808
7809 2018-10-29 Joseph Myers <joseph@codesourcery.com>
7810
7811 * conform/glibcconform.py: Do not import shutil.
7812 (list_exported_functions): Use tempfile.TemporaryDirectory instead
7813 of mkdtemp.
7814
7815 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
7816 critic_missing for versions before 3.4.
7817 * configure: Regenerated.
7818 * manual/install.texi (Tools for Compilation): Document
7819 requirement for Python to build glibc.
7820 * INSTALL: Regenerated.
7821 * Rules [PYTHON]: Make code unconditional.
7822 * benchtests/Makefile [PYTHON]: Likewise.
7823 * conform/Makefile [PYTHON]: Likewise.
7824 * manual/Makefile [PYTHON]: Likewise.
7825 * math/Makefile [PYTHON]: Likewise.
7826
7827 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7828
7829 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
7830 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
7831 answer to interrupt_operation, return EIEIO instead of EINTR.
7832 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
7833 _hurd_intr_rpc_msg_about_to global point to start of controlled
7834 assembly snippet. Make it check canceled flag.
7835 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
7836 the _hurd_intr_rpc_msg_about_to point.
7837 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
7838 issue, remove cancel flag check.
7839
7840 2018-10-26 Joseph Myers <joseph@codesourcery.com>
7841
7842 * scripts/build-many-glibcs.py: Remove compatibility for missing
7843 os.cpu_count and re.fullmatch.
7844
7845 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
7846
7847 [BZ #23822]
7848 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
7849 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
7850 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
7851
7852 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7853
7854 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
7855 macro.
7856
7857 2018-10-25 Florian Weimer <fweimer@redhat.com>
7858
7859 [BZ #23562]
7860 [BZ #23821]
7861 XFAIL siginfo_t si_band conform test on sparc64.
7862 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
7863 (__SI_BAND_TYPE): Only override long int default type on sparc64.
7864 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
7865 (conformtest-xfail-conds): Add sparc64-linux.
7866 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
7867 sparc64.
7868 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
7869
7870 2018-10-25 Joseph Myers <joseph@codesourcery.com>
7871
7872 * elf/elf.h (NT_MIPS_DSP): New macro.
7873 (NT_MIPS_FP_MODE): Likewise.
7874
7875 2018-10-25 Zong Li <zong@andestech.com>
7876
7877 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
7878 name by adding the file extension (.so).
7879
7880 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
7881
7882 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
7883 (test-xfail-ISO11/threads.h/linknamespace,
7884 test-xfail-ISO11/threads.h/conform): Add.
7885
7886 2018-10-24 Joseph Myers <joseph@codesourcery.com>
7887
7888 * math/gen-libm-test.py: Import os.
7889 (ALL_FLOATS_MANUAL): New constant.
7890 (ALL_FLOATS_SUFFIX): Likewise.
7891 (Ulps.all_functions): New function.
7892 (real_all_ulps): Likewise.
7893 (generate_err_table_sub): Likewise.
7894 (generate_err_table): Likewise.
7895 (main): Handle -s and -m options.
7896 * manual/libm-err-tab.pl: Remove.
7897 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
7898 instead of libm-err-tab.pl.
7899 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
7900 != no].
7901 * manual/install.texi (Tools for Compilation): Document
7902 requirement for Python to build manual.
7903 * INSTALL: Regenerated.
7904
7905 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7906
7907 * bits/time64.h: New file.
7908 * include/time.h: Replace internal_time_t with __time64_t.
7909 * posix/bits/types (__time64_t): Add.
7910 * stdlib/Makefile: Add bits/time64.h to includes.
7911 * time/tzfile.c: Replace internal_time_t with __time64_t.
7912
7913 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7914
7915 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
7916 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
7917 __posix_spawn_file_actions_init, __posix_spawnattr_init,
7918 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
7919 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
7920 prototype.
7921 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
7922 * posix/spawn_faction_addclose.c
7923 (__posix_spawn_file_actions_addclose): Add hidden definition.
7924 * posix/spawn_faction_adddup2.c
7925 (__posix_spawn_file_actions_adddup2): Likewise.
7926 * posix/spawn_faction_destroy.c
7927 (__posix_spawn_file_actions_destroy): Likewise.
7928 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
7929 Likewise.
7930 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
7931 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
7932 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
7933 Likewise.
7934 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
7935 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
7936 Likewise.
7937
7938 2018-10-24 Andreas Schwab <schwab@suse.de>
7939
7940 [BZ #18093]
7941 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
7942 format cache.
7943 * elf/cache.c (print_cache): Likewise.
7944
7945 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
7946
7947 * bits/timesize.h: New file.
7948 * stdlib/Makefile (headers): Add bits/timesize.h.
7949 * sysdeps/unix/sysv/linux/bits/msq-pad.h
7950 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
7951 * sysdeps/unix/sysv/linux/bits/sem-pad.h
7952 (__SEM_PAD_AFTER_TIME): Likewise.
7953 * sysdeps/unix/sysv/linux/bits/shm-pad.h
7954 (__SHM_PAD_AFTER_TIME): Likewise.
7955 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
7956 (__MSQ_PAD_BEFORE_TIME): Likewise.
7957 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
7958 (__SEM_PAD_BEFORE_TIME): Likewise.
7959 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
7960 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7961 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
7962 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
7963 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
7964 (__MSQ_PAD_BEFORE_TIME): Likewise.
7965 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
7966 (__SEM_PAD_BEFORE_TIME): Likewise.
7967 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
7968 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
7969 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
7970 (__MSQ_PAD_BEFORE_TIME): Likewise.
7971 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
7972 (__SEM_PAD_BEFORE_TIME): Likewise.
7973 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
7974 (__SHM_PAD_BEFORE_TIME): Likewise.
7975 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
7976 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
7977 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
7978
7979 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
7980
7981 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
7982 USE_RDTSCP is defined.
7983 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
7984 USE_RDTSCP is defined.
7985
7986 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
7987
7988 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
7989 defined.
7990
7991 [BZ #23709]
7992 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
7993 independently of other flags.
7994
7995 2018-10-23 Florian Weimer <fweimer@redhat.com>
7996
7997 * time/tst-mktime2.c (N_STRINGS): Remove.
7998 (set_timezone): New function.
7999 (spring_forward_gap): Call it. Use FAIL_EXIT1.
8000 (mktime_test1): Report localtime failure and check errno value.
8001 Use TEST_COMPARE.
8002 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
8003 (do_test): Remove alarm call. Use set_timezone and array_length.
8004
8005 2018-10-23 Andreas Schwab <schwab@suse.de>
8006
8007 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
8008 (__start_context): Use END instead of PSEUDO_END.
8009
8010 2018-10-22 Joseph Myers <joseph@codesourcery.com>
8011
8012 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8013 version to 4.19.
8014
8015 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8016 version to 4.19.
8017
8018 [BZ #23793]
8019 * wcsmbs/c32rtomb.c: New file.
8020 * wcsmbs/mbrtoc32.c: Likewise.
8021 * wcsmbs/tst-c32-state.c: Likewise.
8022 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
8023 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
8024 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
8025 (tests): Add tst-c32-state.
8026 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
8027 $(gen-locales).
8028
8029 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
8030
8031 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
8032 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
8033
8034 2018-10-19 Joseph Myers <joseph@codesourcery.com>
8035
8036 [BZ #23794]
8037 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
8038 pair and return 0 in that case, and use saved character to
8039 interpret following character.
8040 * wcsmbs/tst-c16-surrogate.c: New file.
8041 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
8042 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
8043 Depend on $(gen-locales)
8044
8045 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8046
8047 [BZ #23562]
8048 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
8049 (struct siginfo_t): Use correct type for si_band.
8050
8051 2018-10-19 Florian Weimer <fweimer@redhat.com>
8052
8053 [BZ #23689]
8054 * resource/bits/types/struct_rusage.h (struct rusage): Update
8055 comment on struct. Remove extraneous field comment.
8056
8057 2018-10-18 David S. Miller <davem@davemloft.net>
8058
8059 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
8060 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
8061 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
8062 sysdep_routines in subdir elf.
8063 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
8064 version for __vdso_clock_gettime.
8065 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
8066 Define.
8067 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
8068 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
8069
8070 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
8071
8072 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
8073
8074 * sysdeps/i386/init-arch.h: Removed.
8075 * sysdeps/i386/i586/init-arch.h: Likewise.
8076 * sysdeps/i386/i686/init-arch.h: Likewise.
8077 * sysdeps/i386/i686/hp-timing.h: Likewise.
8078 * sysdeps/x86_64/hp-timing.h: Likewise.
8079 * sysdeps/i386/isa.h: New file.
8080 * sysdeps/i386/i586/isa.h: Likewise.
8081 * sysdeps/i386/i686/isa.h: Likewise.
8082 * sysdeps/x86_64/isa.h: Likewise.
8083 * sysdeps/x86/hp-timing.h: New file.
8084 * sysdeps/x86/init-arch.h: Include <isa.h>.
8085
8086 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8087
8088 * math/libm-test-pow.inc (pow_test_data): Do not allow
8089 divide-by-zero exception for pow(+/- 0, -Inf).
8090
8091 2018-10-17 Zack Weinberg <zackw@panix.com>
8092
8093 * manual/job.texi (Job Control is Optional): Remove node, as
8094 job control has not been optional in quite some time.
8095 (Job Control): Mention briefly that systems older than
8096 POSIX.1-2001 might not support job control.
8097 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
8098 defined on systems conforming to POSIX.1-2001.
8099
8100 2018-10-17 Arjun Shankar <arjun@redhat.com>
8101
8102 [BZ #22062]
8103 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
8104 indentation.
8105 * (__gconv_read_conf): Mark function static.
8106 * (once): New static variable.
8107 * (__gconv_load_conf): New function.
8108 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
8109 * iconv/gconv_db.c (once): Remove static variable.
8110 * (__gconv_compare_alias): Use __gconv_load_conf instead of
8111 __gconv_read_conf.
8112 * (__gconv_find_transform): Likewise.
8113 * iconv/tst-iconv-mt.c: New test.
8114 * iconv/Makefile: Add tst-iconv_mt.
8115
8116 2018-10-17 Joseph Myers <joseph@codesourcery.com>
8117
8118 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8119 bits/shm-pad.h.
8120 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
8121 (shmatt_t): Define as __syscall_ulong_t.
8122 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
8123 and [__SHM_PAD_AFTER_TIME].
8124 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
8125 Define shm_segsz and associated padding based on
8126 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
8127 Use __syscall_ulong_t instead of unsigned long int.
8128 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
8129 unsigned long int.
8130 [__USE_MISC] (struct shm_info): Likewise.
8131 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
8132 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
8133 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
8134 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
8135 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
8136 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
8137 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
8138 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
8139 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
8140 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
8141 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
8142
8143 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8144 bits/shmlba.h.
8145 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
8146 (SHMLBA): Remove macro.
8147 (__getpagesize): Remove function declaration.
8148 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
8149 <bits/shmlba.h>.
8150 (SHMLBA): Remove macro.
8151 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
8152 <bits/shmlba.h>.
8153 (SHMLBA): Remove macro.
8154 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
8155 <bits/shmlba.h>.
8156 (SHMLBA): Remove macro.
8157 (__getpagesize): Remove function declaration.
8158 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
8159 <bits/shmlba.h>.
8160 (SHMLBA): Remove macro.
8161 (__getshmlba): Remove function declaration.
8162 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
8163 (SHMLBA): Remove macro.
8164 (__getpagesize): Remove function declaration.
8165 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
8166 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
8167 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
8168 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
8169 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
8170 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
8171 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
8172 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
8173 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
8174 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
8175
8176 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
8177
8178 [BZ #23275]
8179 * nptl/tst-mutex10.c: New File.
8180 * nptl/Makefile (tests): Add tst-mutex10.
8181 (tst-mutex10-ENV): New variable.
8182 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
8183 Ensure that elision path is used if elision is available.
8184 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
8185 Likewise.
8186 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
8187 Likewise.
8188 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
8189 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
8190 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
8191 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
8192 Likewise.
8193 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
8194 (__pthread_mutex_cond_lock_adjust): Likewise.
8195 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
8196 Likewise.
8197 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
8198 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
8199 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
8200 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
8201 Add comments.
8202 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
8203 Use atomic_load_relaxed and atomic_store_relaxed.
8204 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
8205 Use atomic_store_relaxed.
8206
8207 2018-10-17 Andreas Schwab <schwab@suse.de>
8208
8209 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
8210 * crypt/badsalttest.c (TIMEOUT): Likewise.
8211 * crypt/sha256c-test.c (TIMEOUT): Likewise.
8212 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
8213 * io/test-lfs.c (TIMEOUT): Likewise.
8214 * libio/tst-atime.c (TIMEOUT): Likewise.
8215 * localedata/tst-leaks.c (TIMEOUT): Likewise.
8216 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
8217 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
8218 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
8219 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
8220 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
8221 * nptl/tst-cond11.c (TIMEOUT): Likewise.
8222 * nptl/tst-cond14.c (TIMEOUT): Likewise.
8223 * nptl/tst-cond15.c (TIMEOUT): Likewise.
8224 * nptl/tst-cond24.c (TIMEOUT): Likewise.
8225 * nptl/tst-cond25.c (TIMEOUT): Likewise.
8226 * nptl/tst-kill2.c (TIMEOUT): Likewise.
8227 * nptl/tst-kill3.c (TIMEOUT): Likewise.
8228 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
8229 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
8230 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
8231 * nptl/tst-once2.c (TIMEOUT): Likewise.
8232 * nptl/tst-once3.c (TIMEOUT): Likewise.
8233 * nptl/tst-once4.c (TIMEOUT): Likewise.
8234 * nptl/tst-robust8.c (TIMEOUT): Likewise.
8235 * nptl/tst-robust9.c (TIMEOUT): Likewise.
8236 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
8237 * nptl/tst-sem14.c (TIMEOUT): Likewise.
8238 * nptl/tst-sem6.c (TIMEOUT): Likewise.
8239 * nptl/tst-signal3.c (TIMEOUT): Likewise.
8240 * nptl/tst-spin4.c (TIMEOUT): Likewise.
8241 * nptl/tst-tls3.c (TIMEOUT): Likewise.
8242 * nptl/tst-tls4.c (TIMEOUT): Likewise.
8243 * posix/tst-chmod.c (TIMEOUT): Likewise.
8244 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
8245 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
8246 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
8247 * posix/tst-regex2.c (TIMEOUT): Likewise.
8248 * posix/tst-waitid.c (TIMEOUT): Likewise.
8249 * rt/tst-aio.c (TIMEOUT): Likewise.
8250 * rt/tst-aio10.c (TIMEOUT): Likewise.
8251 * rt/tst-aio4.c (TIMEOUT): Likewise.
8252 * rt/tst-aio5.c (TIMEOUT): Likewise.
8253 * rt/tst-aio6.c (TIMEOUT): Likewise.
8254 * rt/tst-aio64.c (TIMEOUT): Likewise.
8255 * rt/tst-aio7.c (TIMEOUT): Likewise.
8256 * rt/tst-aio9.c (TIMEOUT): Likewise.
8257 * rt/tst-clock.c (TIMEOUT): Likewise.
8258 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
8259 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
8260 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
8261 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
8262 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
8263 * rt/tst-timer4.c (TIMEOUT): Likewise.
8264 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
8265 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
8266 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
8267 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
8268 * time/tst-ftime.c (TIMEOUT): Likewise.
8269 * timezone/tst-tzset.c (TIMEOUT): Likewise.
8270
8271 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
8272
8273 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
8274 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
8275 for thunderX2.
8276
8277 2018-10-15 Joseph Myers <joseph@codesourcery.com>
8278
8279 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8280 bits/sem-pad.h.
8281 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
8282 instead of <bits/wordsize.h>.
8283 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
8284 and [__SEM_PAD_AFTER_TIME].
8285 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
8286 __syscall_ulong_t instead of unsigned long int.
8287 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
8288 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
8289 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
8290 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
8291 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
8292 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
8293 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
8294 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
8295 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
8296 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
8297 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
8298
8299 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
8300
8301 regex: simplify by using intprops.h
8302 [BZ#23744]
8303 * posix/regex_internal.h [_LIBC]: Include intprops.h.
8304 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
8305 intprops.h defines them.
8306
8307 regex: __builtin_expect → __glibc_unlikely
8308 [BZ#23744]
8309 This refactoring was prompted by a problem when the regex code is
8310 used as part of Gnulib and when the builder’s compiler does not grok
8311 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
8312 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
8313 Although this refactoring does not fix the problem directly,
8314 we might as well have Gawk use the now-preferred glibc style for when
8315 __builtin_expect is unavailable.
8316 * posix/regex_internal.h (BE): Remove.
8317 All uses replaced by __glibc_unlikely or __glibc_likely.
8318
8319 2018-10-11 Joseph Myers <joseph@codesourcery.com>
8320
8321 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8322 bits/msq-pad.h.
8323 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
8324 instead of <bits/wordsize.h>.
8325 (msgqnum_t): Define as __syscall_ulong_t.
8326 (msglen_t): Likewise.
8327 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
8328 and [__MSQ_PAD_AFTER_TIME].
8329 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
8330 __syscall_ulong_t instead of unsigned long int.
8331 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
8332 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
8333 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
8334 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
8335 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
8336 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
8337 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
8338 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
8339 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
8340 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
8341 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
8342
8343 2018-10-10 Joseph Myers <joseph@codesourcery.com>
8344
8345 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
8346 (struct shmid_ds): Condition padding after time fields on
8347 [__WORDSIZE == 32].
8348 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
8349 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
8350 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
8351
8352 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
8353 (struct semid_ds): Condition padding after time fields on
8354 [__WORDSIZE == 32].
8355 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
8356 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
8357 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
8358 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
8359
8360 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
8361 (struct msqid_ds): Condition padding after time fields on
8362 [__WORDSIZE == 32].
8363 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
8364 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
8365 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
8366 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
8367
8368 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8369
8370 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
8371
8372 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
8373
8374 * libio/tst-readline.c (TIMEOUT): Define.
8375
8376 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
8377
8378 mktime fix for Gnulib + coreutils
8379 [BZ#23745]
8380 This fix affects only Gnulib. Problem discovered when
8381 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
8382 * time/mktime.c:
8383 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
8384 Do not define since it is not used. Defining an unused static
8385 function prompts a warning from GCC when Coreutils is configured
8386 with --enable-gcc-warnings.
8387
8388 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
8389
8390 * benchtests/scripts/compare_bench.py (main): set float type on
8391 threshold argument.
8392
8393 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
8394
8395 [BZ #23740]
8396 * localedata/locales/kl_GL (mon): Update, the relative case.
8397 (alt_mon): Add, fill with month names in the nominative case.
8398 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
8399 (d_fmt): Set to "%b %d %Y".
8400
8401 2018-10-04 Joseph Myers <joseph@codesourcery.com>
8402
8403 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
8404 <bits/mman-linux.h>.
8405 (PROT_READ): Don't define here.
8406 (PROT_WRITE): Likewise.
8407 (PROT_EXEC): Likewise.
8408 (PROT_NONE): Likewise.
8409 (PROT_GROWSDOWN): Likewise.
8410 (PROT_GROWSUP): Likewise.
8411 (MAP_SHARED): Likewise.
8412 (MAP_PRIVATE): Likewise.
8413 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
8414 [__USE_MISC] (MAP_FILE): Likewise.
8415 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
8416 [__USE_MISC] (MAP_ANON): Likewise.
8417 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
8418 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
8419 (MCL_CURRENT): Likewise.
8420 (MCL_FUTURE): Likewise.
8421 (MCL_ONFAULT): Likewise.
8422 [__USE_MISC] (MADV_NORMAL): Likewise.
8423 [__USE_MISC] (MADV_RANDOM): Likewise.
8424 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
8425 [__USE_MISC] (MADV_WILLNEED): Likewise.
8426 [__USE_MISC] (MADV_DONTNEED): Likewise.
8427 [__USE_MISC] (MADV_FREE): Likewise.
8428 [__USE_MISC] (MADV_REMOVE): Likewise.
8429 [__USE_MISC] (MADV_DONTFORK): Likewise.
8430 [__USE_MISC] (MADV_DOFORK): Likewise.
8431 [__USE_MISC] (MADV_HWPOISON): Likewise.
8432 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
8433 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
8434 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
8435 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
8436 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
8437 (__MAP_ANONYMOUS): New macro.
8438 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
8439 <bits/mman-linux.h> inclusion.
8440 (MAP_FIXED): Likewise.
8441 (MS_SYNC): Likewise.
8442 (MS_ASYNC): Likewise.
8443 (MS_INVALIDATE): Likewise.
8444 [__USE_MISC] (MADV_MERGEABLE): Likewise.
8445 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
8446 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
8447 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
8448 [__USE_MISC] (MADV_DONTDUMP): Likewise.
8449 [__USE_MISC] (MADV_DODUMP): Likewise.
8450 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
8451 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
8452
8453 [BZ #23735]
8454 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
8455 Define.
8456 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
8457 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
8458 Add test-nldbl-redirect.
8459 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
8460 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
8461 $(objpfx)libnldbl_nonshared.a.
8462
8463 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
8464
8465 * support/support.h (support_objdir_elf_ldso): New variable.
8466 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
8467 * support/Makefile (CFLAGS-support_paths.c): Add definition
8468 for OBJDIR_ELF_LDSO_PATH.
8469 * support/test-container.c (main): Search for the ld.so
8470 which is also used by the testsuite.
8471
8472 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
8473
8474 [BZ #20209]
8475 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
8476 should be "sap" rather than "sab".
8477 (day): Fix spelling of Sunday, should be "sapaat" rather than
8478 "sabaat".
8479
8480 2018-10-02 Joseph Myers <joseph@codesourcery.com>
8481
8482 * math/libm-test-fma.inc (fma_test_data): Add more tests.
8483
8484 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
8485
8486 [BZ #19444]
8487 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
8488 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
8489 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
8490
8491 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8492
8493 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
8494
8495 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
8496
8497 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
8498 Add -mrtm.
8499 (CFLAGS-elision-unlock.c): Likewise.
8500 (CFLAGS-elision-timed.c): Likewise.
8501 (CFLAGS-elision-trylock.c): Likewise.
8502 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
8503
8504 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8505
8506 [BZ #21037]
8507 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
8508 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
8509 new fd_to_filename interface.
8510 * libio/freopen64.c (freopen64): Likewise.
8511 * libio/tst-memstream.h: New file.
8512 * libio/tst-memstream4.c: Likewise.
8513 * libio/tst-wmemstream4.c: Likewise.
8514 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
8515 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
8516 and remove internal dynamic allocation.
8517
8518 2018-10-01 Joseph Myers <joseph@codesourcery.com>
8519
8520 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
8521 (MREMAP_MAYMOVE): Do not define here.
8522 [__USE_GNU] (MREMAP_FIXED): Likewise.
8523 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
8524 (MREMAP_MAYMOVE): Define here instead.
8525 [__USE_GNU] (MREMAP_FIXED): Likewise.
8526 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
8527 (MREMAP_MAYMOVE): Remove.
8528 [__USE_GNU] (MREMAP_FIXED): Likewise.
8529
8530 2018-09-28 Joseph Myers <joseph@codesourcery.com>
8531
8532 * math/fromfp.h: Do not include <math_private.h>.
8533 * math/s_cacosh_template.c: Likewise.
8534 * math/s_casin_template.c: Likewise.
8535 * math/s_casinh_template.c: Likewise.
8536 * math/s_ccos_template.c: Likewise.
8537 * math/s_cproj_template.c: Likewise.
8538 * math/s_fdim_template.c: Likewise.
8539 * math/s_fmaxmag_template.c: Likewise.
8540 * math/s_fminmag_template.c: Likewise.
8541 * math/s_iseqsig_template.c: Likewise.
8542 * math/s_ldexp_template.c: Likewise.
8543 * math/s_nextdown_template.c: Likewise.
8544 * math/w_log1p_template.c: Likewise.
8545 * math/w_scalbln_template.c: Likewise.
8546 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
8547 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
8548 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
8549 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
8550 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
8551 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
8552 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
8553 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
8554 * sysdeps/i386/fpu/s_atanl.c: Likewise.
8555 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
8556 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
8557 * sysdeps/i386/fpu/s_fdim.c: Likewise.
8558 * sysdeps/i386/fpu/s_logbl.c: Likewise.
8559 * sysdeps/i386/fpu/s_rintl.c: Likewise.
8560 * sysdeps/i386/fpu/s_significandl.c: Likewise.
8561 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
8562 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
8563 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8564 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
8565 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
8566 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
8567 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
8568 * sysdeps/ieee754/k_standardf.c: Likewise.
8569 * sysdeps/ieee754/k_standardl.c: Likewise.
8570 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8571 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
8572 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
8573 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
8574 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
8575 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
8576 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
8577 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
8578 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
8579 * sysdeps/ieee754/s_signgam.c: Likewise.
8580 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
8581 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
8582 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
8583 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
8584 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
8585 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
8586 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8587 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
8588 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8589 * sysdeps/riscv/rvd/s_finite.c: Likewise.
8590 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
8591 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
8592 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
8593 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
8594 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
8595 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
8596 * sysdeps/riscv/rvf/fegetround.c: Likewise.
8597 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
8598 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
8599 * sysdeps/riscv/rvf/fesetround.c: Likewise.
8600 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
8601 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
8602 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
8603 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
8604 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
8605 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
8606 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
8607 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
8608 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
8609 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
8610 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
8611 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
8612 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
8613 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
8614 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8615 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8616 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
8617 <math_private.h>.
8618 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
8619
8620 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
8621
8622 [BZ #23716]
8623 * sysdeps/i386/dl-cet.c: Removed.
8624 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
8625 prototype.
8626 (_dl_runtime_profile_shstk): Likewise.
8627 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
8628 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
8629
8630 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8631
8632 [BZ #23579]
8633 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
8634 do_test_with_invalid_iov): New tests.
8635 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
8636 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
8637 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
8638 errno is ENOSYS.
8639 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
8640 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
8641 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
8642
8643 2018-09-27 Joseph Myers <joseph@codesourcery.com>
8644
8645 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8646 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
8647 (MATH_REDIRECT_BINARY_ARGS): New macro.
8648 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
8649 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
8650 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
8651 header inclusion.
8652 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
8653 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8654 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
8655 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8656 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8657 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8658 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8659 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
8660 Likewise.
8661 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
8662 Likewise.
8663 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
8664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
8665 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
8666 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
8667 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
8668 Likewise.
8669 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
8670 Likewise.
8671 * sysdeps/generic/math_private_calls.h
8672 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
8673 Do not declare and define as an inline function.
8674 * math/divtc3.c (__divtc3): Use copysign functions instead of
8675 __copysign variants.
8676 * math/multc3.c (__multc3): Likewise.
8677 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
8678 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
8679 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
8680 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
8681 Likewise.
8682 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
8683 (__ieee754_yn): Likewise.
8684 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
8685 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
8686 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
8687 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
8688 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
8689 (__sin): Likewise.
8690 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
8691 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
8692 Likewise.
8693 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
8694 Likewise.
8695 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
8696 Likewise.
8697 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
8698 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8699 Likewise.
8700 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
8701 (__ieee754_ynf): Likewise.
8702 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
8703 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
8704 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
8705 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8706 Likewise.
8707 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
8708 (__ieee754_ynl): Likewise.
8709 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
8710 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
8711 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8712 Likewise.
8713 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
8714 (__ieee754_ynl): Likewise.
8715 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
8716 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
8717 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
8718 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8719 Likewise.
8720 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
8721 (__ieee754_ynl)
8722 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
8723 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
8724 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
8725 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
8726 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
8727
8728 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8729 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
8730 using MATH_REDIRECT.
8731 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
8732 header inclusion.
8733 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
8734 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
8735 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
8736 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
8737 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
8738 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
8739 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
8740 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
8741 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
8742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
8743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
8744 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
8745 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
8746 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8747 (round): Redirect to __round.
8748 (__roundl): Call round instead of __round.
8749 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
8750 Remove macro.
8751 [_ARCH_PWR5X] (__roundf): Likewise.
8752 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
8753 functions instead of __round variants.
8754 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
8755 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
8756 Likewise.
8757 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
8758 Likewise.
8759 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
8760 Likewise.
8761 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
8762 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
8763 __lroundl.
8764 (__ieee754_expl): Call roundl instead of __roundl.
8765
8766 2018-09-27 Andreas Schwab <schwab@suse.de>
8767
8768 [BZ #23717]
8769 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
8770 (do_test): Make st1 static.
8771
8772 2018-09-26 Andreas Schwab <schwab@suse.de>
8773
8774 [BZ #23707]
8775 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
8776 * elf/Makefile (tests): Add tst-unwind-ctor.
8777 (modules-names): Add tst-unwind-ctor-lib.
8778 ($(objpfx)tst-unwind-ctor): Depend on
8779 $(objpfx)tst-unwind-ctor-lib.so.
8780
8781 2018-09-26 Joseph Myers <joseph@codesourcery.com>
8782
8783 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
8784 file. Most contents moved from ....
8785 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
8786 and include <bits/mman-map-flags-generic.h>.
8787 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8788 (sysdep_headers): Add bits/mman-map-flags-generic.h.
8789 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
8790 <bits/mman-map-flags-generic.h>.
8791 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
8792 macros defined in <bits/mman-map-flags-generic.h>.
8793 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
8794 <bits/mman-map-flags-generic.h>.
8795 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
8796 defined in <bits/mman-map-flags-generic.h>.
8797
8798 2018-09-26 Andreas Schwab <schwab@suse.de>
8799
8800 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
8801 output.
8802
8803 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
8804 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8805 Fangrui Song <maskray@google.com>
8806
8807 [BZ #20480]
8808 * config.make.in (have-textrel_ifunc): New define.
8809 * configure.ac: Add check if linker supports textrel relocation with
8810 ifunc.
8811 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
8812 tst-ifunc-textrel.
8813 (CFLAGS-tst-ifunc-textrel.c): New rule.
8814 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
8815 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
8816 * elf/tst-ifunc-textrel.c: New file.
8817
8818 2018-09-25 Joseph Myers <joseph@codesourcery.com>
8819
8820 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8821 <bits/procfs-prregset.h>.
8822 (prgregset_t): Define using __prgregset_t.
8823 (prfpregset_t): Define using __prfpregset_t.
8824 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8825 (sysdep_headers): Add bits/procfs-prregset.h.
8826 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
8827 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
8828 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
8829 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
8830
8831 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
8832 <bits/procfs-id.h> and <bits/procfs-extra.h>.
8833 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
8834 pr_uid and pr_gid.
8835 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8836 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
8837 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
8838 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
8839 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
8840 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
8841 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
8842 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
8843 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
8844 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
8845 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
8846 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
8847 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
8848 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
8849 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
8850 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
8851 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
8852 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
8853 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
8854 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
8855 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
8856 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
8857 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
8858 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
8859
8860 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
8861 AArch64 version. Include <bits/procfs.h>.
8862 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
8863 (sysdep_headers): Add bits/procfs.h.
8864 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
8865 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
8866 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
8867 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
8868 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
8869 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
8870 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
8871 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
8872 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
8873 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
8874 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
8875 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
8876 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
8877 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
8878 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
8879 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
8880 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
8881
8882 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8883
8884 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
8885 Use libsupport.
8886
8887 2018-09-25 Arjun Shankar <arjun@redhat.com>
8888
8889 * iconv/gconv_int.h (__gconv_path_elem): Remove.
8890 (__gconv_max_path_elem_len): Likewise.
8891 (__gconv_nmodules): Likewise.
8892 (__gconv_get_path): Likewise.
8893 (path_elem): Move to ...
8894 * iconv/gconv_conf.c: ... here.
8895 (__gconv_get_path): Mark function static.
8896 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
8897 * iconv/gconv_open.c: ... here.
8898
8899 2018-09-24 Andreas Schwab <schwab@suse.de>
8900
8901 * scripts/haveversions.awk: New file.
8902 * Makerules ($(common-objpfx)Versions.def)
8903 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8904 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8905 Move rules ...
8906 * Makeconfig ($(common-objpfx)Versions.def)
8907 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
8908 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
8909 ... here.
8910 ($(common-objpfx)Versions.mk): New rule. Include it.
8911 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
8912 Emit error if build-obsolete-nsl = yes.
8913 * manual/install.texi (Configuring and compiling): Describe
8914 --enable-obsolete-nsl as unavaiable after version 2.28.
8915 * INSTALL: Regenerate.
8916
8917 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8918
8919 * NEWS: Add note about new TLE support on powerpc64le.
8920 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
8921 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
8922 __ununsed1.
8923 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
8924 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
8925 * sysdeps/powerpc/powerpc32/sysdep.h,
8926 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
8927 ABORT_TRANSACTION): Remove macros.
8928 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
8929 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
8930 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
8931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
8932 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8933 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
8934 usage.
8935 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
8936
8937 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
8938
8939 [BZ #10425]
8940 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
8941 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
8942 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
8943 which is the same as in it_IT.
8944 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
8945 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
8946
8947 2018-09-20 Joseph Myers <joseph@codesourcery.com>
8948
8949 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
8950 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
8951 using MATH_REDIRECT.
8952 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
8953 header inclusion.
8954 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
8955 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
8956 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
8957 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
8958 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
8959 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
8960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
8961 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
8962 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
8963 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
8964 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
8965 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
8966 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
8967 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
8968 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
8969 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
8970 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
8971 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8972 (ceil): Redirect to __ceil.
8973 (floor): Redirect to __floor.
8974 (trunc): Redirect to __trunc.
8975 (__truncl): Call trunc instead of __trunc.
8976 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
8977 Remove macro.
8978 [_ARCH_PWR5X] (__truncf): Likewise.
8979 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
8980 trunc functions instead of __trunc variants.
8981 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
8982 Likewise.
8983 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
8984 Likewise.
8985 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
8986 Likewise.
8987 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
8988 Likewise.
8989
8990 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
8991 [__i586__ || __pentium__].
8992 [__i486__]: Handle explicitly.
8993 (HAS_CPUID): Define to 1 if above macros are undefined.
8994 (HAS_I586): Likewise.
8995 (HAS_I686): Likewise.
8996
8997 2018-09-20 Florian Weimer <fweimer@redhat.com>
8998
8999 * misc/tst-gethostid.c: New file.
9000 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
9001 (tst-gethostid): Link with -ldl.
9002
9003 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
9004
9005 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
9006 value from gethostbyname_r.
9007
9008 2018-09-19 Carlos O'Donell <carlos@redhat.com>
9009
9010 * stdlib/tst-setcontext9.c (f1): Rename to...
9011 (f1a): ... this.
9012 (f1b): New function implementing lower half of f1 in alternate stack.
9013
9014 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
9015
9016 Fix mktime localtime offset confusion
9017 [BZ #23603]
9018 * include/time.h (__mktime_internal): The localtime offset is now
9019 of type long int instead of time_t. This is the longstanding type
9020 in glibc, and it is more than enough to represent difference
9021 between localtime and gmtime even if it is 32 bits and time_t is
9022 64. Changing it now will let us avoid an unnecessary change when
9023 time_t is widened to 64 bits on 32-bit platforms.
9024 * time/mktime-internal.h (mktime_offset_t): Now long int.
9025
9026 Merge mktime, timegm from upstream Gnulib
9027 [BZ #23603][BZ #16346]
9028 This fixes some obscure problems with integer overflow.
9029 Although it looks scary, it is almost all a byte-for-byte copy
9030 from Gnulib, and the Gnulib code has been tested reasonably well.
9031 * include/intprops.h: New file, copied from Gnulib.
9032 * include/verify.h, time/mktime-internal.h:
9033 New tiny files, simplified from Gnulib.
9034 * time/mktime.c: Copy from Gnulib. This has the following changes:
9035 Do not include config.h if DEBUG_MKTIME is nonzero.
9036 Include stdbool.h, intprops.h, verify.h.
9037 Include string.h only if needed.
9038 Include stdlib.h on MS-Windows.
9039 Include mktime-internal.h.
9040 (DEBUG_MKTIME): Default to 0, and simplify later uses.
9041 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
9042 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
9043 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
9044 simplify later conditionals; default the others to zero. Use
9045 these conditionals to express only the code needed on the current
9046 platform. In uses of these conditionals, explicitly spell out how
9047 _LIBC affects things, so it’s easier to review from a glibc
9048 viewpoint.
9049 (WRAPV): Remove; no longer needed now that we have
9050 systematic overflow checking.
9051 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
9052 compartmentalize tzset issues. Move system-dependent tzsettish
9053 code here from mktime.
9054 (verify): Remove; now done by verify.h. All uses changed.
9055 (long_int): Use a more-conservative definition, to avoid
9056 integer overflow.
9057 (SHR): Remove, replacing with ...
9058 (shr): New function, which means we needn’t worry about side
9059 effects in args, and conversion analysis is simpler.
9060 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
9061 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
9062 (time_t_avg, time_t_add_ok): Remove.
9063 (mktime_min, mktime_max): New constants.
9064 (leapyear, isdst_differ): Use bool for booleans.
9065 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
9066 Use long_int, not time_t, for mktime differences.
9067 (long_int_avg): New function, replacing time_t_avg.
9068 INT_ADD_WRAPV replaces time_t_add_ok.
9069 (guess_time_tm): 6th arg is now long_int, not time_t const *.
9070 All uses changed.
9071 (convert_time): New function.
9072 (ranged_convert): Use it.
9073 (__mktime_internal): Last arg now points to mktime_offset_t, not
9074 time_t. All uses changed. This is a no-op on glibc, where
9075 mktime_offset_t is always time_t. Use int, not time_t, for UTC
9076 offset guess. Directly check for integer overflow instead of
9077 using a heuristic that works only 99.9...% of the time.
9078 Access *OFFSET only once, to avoid an unlikely race if the
9079 compiler delays a load and if this cascades into a signed integer
9080 overflow.
9081 (mktime): Move tzsettish code to my_tzset, and move
9082 localtime_offset to within mktime so that it doesn’t
9083 need a separate ifdef.
9084 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
9085 instead of localtime.
9086 * time/timegm.c: Copy from Gnulib. This has the following changes:
9087 Include mktime-internal.h.
9088 [!_LIBC]: Include config.h and time.h. Do not include
9089 timegm.h or time_r.h. Make __mktime_internal a macro,
9090 and include mktime-internal.h to get its declaration.
9091 (timegm): Temporary is now mktime_offset_t, not time_t.
9092 This affects only Gnulib.
9093
9094 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9095
9096 [BZ #23637]
9097 * string/test-strstr.c (pr23637): New function.
9098 (test_main): Add tests with longer needles.
9099 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
9100 * string/strstr.c (AVAILABLE): Likewise.
9101
9102 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9103
9104 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
9105
9106 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
9107
9108 * NEWS: Mention pow improvements.
9109 * math/Makefile (type-double-routines): Add e_pow_log_data.
9110 * sysdeps/generic/math_private.h (__exp1): Remove.
9111 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
9112 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
9113 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
9114 contraction.
9115 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
9116 (exp_inline): Remove.
9117 (__ieee754_exp): Only single double input is handled.
9118 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
9119 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
9120 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
9121 (__pow_log_data): Define.
9122 * sysdeps/ieee754/dbl-64/upow.h: Remove.
9123 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
9124 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
9125 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
9126 contraction.
9127 (CFLAGS-e_pow-fma4.c): Likewise.
9128
9129 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
9130
9131 Simplify tzfile fstat failure code
9132 [BZ #21716]
9133 * time/tzfile.c (__tzfile_read): Simplify slightly.
9134
9135 Fix tzfile low-memory assertion failure
9136 [BZ #21716]
9137 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
9138 when registering time zone abbreviations.
9139
9140 2018-09-18 Joseph Myers <joseph@codesourcery.com>
9141
9142 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
9143 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
9144 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
9145 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
9146 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
9147 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
9148 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
9149 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9150 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
9151
9152 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
9153 __ceil.
9154 (__ceill): Call ceil instead of __ceil.
9155 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
9156 __floor.
9157 (__floorl): Call floor instead of __floor.
9158
9159 2018-09-17 Joseph Myers <joseph@codesourcery.com>
9160
9161 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9162 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
9163 using MATH_REDIRECT.
9164 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
9165 header inclusion.
9166 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
9167 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9168 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9169 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
9170 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9171 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9172 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9173 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
9174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
9175 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
9176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
9177 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
9178 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9179 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9180 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
9181 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
9182 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
9183 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
9184 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
9185 Remove macro.
9186 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
9187 functions instead of __ceil variants.
9188 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
9189 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
9190 Likewise.
9191 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
9192 Likewise.
9193 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9194 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
9195 Likewise.
9196 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9197 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9198
9199 [BZ #21286]
9200 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
9201 constant.
9202 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
9203 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
9204 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
9205 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
9206 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
9207 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
9208 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
9209 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
9210 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
9211 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
9212 (ILL_BADIADDR): Remove constant.
9213 (TRAP_BRANCH): Likewise.
9214 (TRAP_HWBKPT): Likewise.
9215
9216 2018-09-14 Joseph Myers <joseph@codesourcery.com>
9217
9218 [BZ #23656]
9219 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
9220 Remove [_MIPS_SIM = _ABIN32] conditional case.
9221 (struct elf_prpsinfo): Likewise.
9222
9223 [BZ #23649]
9224 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
9225 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
9226 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
9227 Likewise.
9228 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
9229 elf_prpsinfo): Likewise.
9230 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
9231 elf_prpsinfo): Likewise.
9232 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
9233 Likewise.
9234
9235 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9236 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
9237 using MATH_REDIRECT.
9238 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
9239 header inclusion.
9240 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
9241 * sysdeps/alpha/fpu/s_rint.c: Likewise.
9242 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
9243 * sysdeps/i386/fpu/s_rintl.c: Likewise.
9244 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9245 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9246 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
9247 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9248 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9249 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9250 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
9251 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
9252 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
9253 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
9254 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
9255 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9256 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9257 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
9258 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
9259 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
9260 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
9261 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
9262 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
9263 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
9264 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
9265 * sysdeps/x86_64/fpu/math_private.h: Remove file.
9266 * math/e_scalb.c (invalid_fn): Use rint functions instead of
9267 __rint variants.
9268 * math/e_scalbf.c (invalid_fn): Likewise.
9269 * math/e_scalbl.c (invalid_fn): Likewise.
9270 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
9271 Likewise.
9272 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
9273 Likewise.
9274 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
9275 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
9276 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
9277 Likewise.
9278 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
9279 Likewise.
9280 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9281 Likewise.
9282 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
9283 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
9284
9285 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
9286 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
9287 New macro.
9288 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9289 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
9290 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9291 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
9292 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9293 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
9294 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9295 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
9296 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
9297 && !NO_MATH_REDIRECT] (floor): Likewise.
9298 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
9299 header inclusion.
9300 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
9301 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9302 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9303 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
9304 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9305 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9306 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9307 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
9308 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
9309 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
9310 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
9311 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
9312 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9313 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9314 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
9315 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
9316 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
9317 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
9318 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
9319 Remove macro.
9320 [_ARCH_PWR5X] (__floorf): Likewise.
9321 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
9322 inline function.
9323 [__SSE4_1__] (__floorf): Likewise.
9324 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
9325 instead of __floor variants.
9326 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
9327 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
9328 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
9329 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
9330 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
9331 * math/w_tgamma_compat.c (__tgamma): Likewise.
9332 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
9333 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
9334 * math/w_tgammal_compat.c (__tgammal): Likewise.
9335 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
9336 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
9337 Likewise.
9338 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
9339 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
9340 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
9341 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
9342 Likewise.
9343 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
9344 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
9345 Likewise.
9346 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
9347 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
9348 Likewise.
9349 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
9350 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
9351 Likewise.
9352 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
9353 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
9354 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
9355 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
9356 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
9357 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
9358
9359 2018-09-12 Joseph Myers <joseph@codesourcery.com>
9360
9361 * elf/Makefile (modules-names-tests): New variable.
9362
9363 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9364
9365 * NEWS: Mention log2 improvements.
9366 * math/Makefile (type-double-routines): Add e_log2_data.
9367 * sysdeps/i386/fpu/e_log2_data.c: New file.
9368 * sysdeps/ia64/fpu/e_log2_data.c: New file.
9369 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
9370 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
9371 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
9372 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
9373 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
9374
9375 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
9376
9377 * NEWS: Mention log improvement.
9378 * math/Makefile (type-double-routines): Add e_log_data.
9379 * sysdeps/i386/fpu/e_log_data.c: New file.
9380 * sysdeps/ia64/fpu/e_log_data.c: New file.
9381 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
9382 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
9383 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
9384 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
9385 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
9386 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
9387
9388 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
9389 Xuepeng Guo <xuepeng.guo@intel.com>
9390
9391 [BZ #23606]
9392 * sysdeps/i386/start.S: Include <sysdep.h>
9393 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
9394 enabled. Add cfi_undefined (eip).
9395
9396 2018-09-11 Joseph Myers <joseph@codesourcery.com>
9397
9398 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
9399 (MOVQ): Likewise.
9400 (EXTRACT_WORDS64): Likewise.
9401 (INSERT_WORDS64): Likewise.
9402 (GET_FLOAT_WORD): Likewise.
9403 (SET_FLOAT_WORD): Likewise.
9404
9405 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
9406 argument.
9407 (Config.build_gcc): Use --disable-libsanitizer for first GCC
9408 build, but not for second build if --full-gcc. Use
9409 --enable-languages=all for second build if --full-gcc.
9410 (get_parser): Add --full-gcc option.
9411 (main): Update call to Context.
9412
9413 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
9414
9415 [BZ #10797]
9416 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
9417 Single Quotation Mark).
9418 (thousands_sep): Likewise.
9419 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
9420 * localedata/locales/it_IT (thousands_sep): Use ".".
9421 (grouping): Use "3;3".
9422
9423 2018-09-10 Joseph Myers <joseph@codesourcery.com>
9424
9425 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
9426 x86_64 and i686 configs using --enable-obsolete-rpc
9427 --enable-obsolete-nsl.
9428
9429 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9430
9431 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
9432
9433 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
9434
9435 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
9436 Increment size of new_argv by one.
9437
9438 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
9439
9440 [BZ #17426]
9441 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
9442 * localedata/locales/ar_IN (d_fmt): Likewise.
9443 * localedata/locales/bhb_IN (d_fmt): Likewise.
9444 * localedata/locales/bho_IN (d_fmt): Likewise.
9445 * localedata/locales/bn_BD (d_fmt): Likewise.
9446 * localedata/locales/bn_IN (d_fmt): Likewise.
9447 * localedata/locales/doi_IN (d_fmt): Likewise.
9448 * localedata/locales/gu_IN (d_fmt): Likewise.
9449 * localedata/locales/hi_IN (d_fmt): Likewise.
9450 * localedata/locales/hne_IN (d_fmt): Likewise.
9451 * localedata/locales/kn_IN (d_fmt): Likewise.
9452 * localedata/locales/mag_IN (d_fmt): Likewise.
9453 * localedata/locales/mai_IN (d_fmt): Likewise.
9454 * localedata/locales/mjw_IN (d_fmt): Likewise.
9455 * localedata/locales/ml_IN (d_fmt): Likewise.
9456 * localedata/locales/mni_IN (d_fmt): Likewise.
9457 * localedata/locales/mr_IN (d_fmt): Likewise.
9458 * localedata/locales/pa_IN (d_fmt): Likewise.
9459 * localedata/locales/raj_IN (d_fmt): Likewise.
9460 * localedata/locales/sat_IN (d_fmt): Likewise.
9461 * localedata/locales/sd_IN (d_fmt): Likewise.
9462 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
9463 * localedata/locales/ta_IN (d_fmt): Likewise.
9464 * localedata/locales/ta_LK (d_fmt): Likewise.
9465 * localedata/locales/tcy_IN (d_fmt): Likewise.
9466 * localedata/locales/ur_IN (d_fmt): Likewise.
9467
9468 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
9469 * localedata/locales/ks_IN (d_fmt): Likewise.
9470 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
9471
9472 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
9473 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
9474 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
9475 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
9476
9477 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
9478
9479 * NEWS: Mention exp and exp2 improvements.
9480 * math/Makefile (libm-support): Remove t_exp.
9481 (type-double-routines): Add math_err and e_exp_data.
9482 * sysdeps/aarch64/libm-test-ulps: Update.
9483 * sysdeps/arm/libm-test-ulps: Update.
9484 * sysdeps/i386/fpu/e_exp_data.c: New file.
9485 * sysdeps/i386/fpu/math_err.c: New file.
9486 * sysdeps/i386/fpu/t_exp.c: Remove.
9487 * sysdeps/ia64/fpu/e_exp_data.c: New file.
9488 * sysdeps/ia64/fpu/math_err.c: New file.
9489 * sysdeps/ia64/fpu/t_exp.c: Remove.
9490 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
9491 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
9492 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
9493 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
9494 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
9495 * sysdeps/ieee754/dbl-64/math_config.h: New file.
9496 * sysdeps/ieee754/dbl-64/math_err.c: New file.
9497 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
9498 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
9499 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
9500 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
9501 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
9502 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
9503 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
9504 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9505 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9506
9507 2018-09-05 Joseph Myers <joseph@codesourcery.com>
9508
9509 * sysdeps/alpha/fpu/math_private.h: Remove.
9510
9511 * sysdeps/generic/math_private.h
9512 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
9513 Move this inline function ....
9514 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
9515 * include/math.h [!_ISOMAC]: To here....
9516
9517 2018-09-04 Joseph Myers <joseph@codesourcery.com>
9518
9519 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
9520 code ....
9521 [!FE_HAVE_ROUNDING_MODES]: And this code ....
9522 * include/fenv.h [!_ISOMAC]: ... to here.
9523 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
9524 (feraiseexcept): Likewise.
9525 * math/fromfp.h: Do not include <fenv_private.h>.
9526 * math/s_cexp_template.c: Likewise.
9527 * math/s_csin_template.c: Likewise.
9528 * math/s_csinh_template.c: Likewise.
9529 * math/s_ctan_template.c: Likewise.
9530 * math/s_ctanh_template.c: Likewise.
9531 * math/s_iseqsig_template.c: Likewise.
9532 * math/w_acos_compat.c: Likewise.
9533 * math/w_acosf_compat.c: Likewise.
9534 * math/w_acosl_compat.c: Likewise.
9535 * math/w_asin_compat.c: Likewise.
9536 * math/w_asinf_compat.c: Likewise.
9537 * math/w_asinl_compat.c: Likewise.
9538 * math/w_j0_compat.c: Likewise.
9539 * math/w_j0f_compat.c: Likewise.
9540 * math/w_j0l_compat.c: Likewise.
9541 * math/w_j1_compat.c: Likewise.
9542 * math/w_j1f_compat.c: Likewise.
9543 * math/w_j1l_compat.c: Likewise.
9544 * math/w_jn_compat.c: Likewise.
9545 * math/w_jnf_compat.c: Likewise.
9546 * math/w_log10_compat.c: Likewise.
9547 * math/w_log10f_compat.c: Likewise.
9548 * math/w_log10l_compat.c: Likewise.
9549 * math/w_log2_compat.c: Likewise.
9550 * math/w_log2f_compat.c: Likewise.
9551 * math/w_log2l_compat.c: Likewise.
9552 * math/w_log_compat.c: Likewise.
9553 * math/w_logf_compat.c: Likewise.
9554 * math/w_logl_compat.c: Likewise.
9555 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9556 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9557 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9558 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9559 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9560 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9561 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9562 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9563 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9564 * sysdeps/ieee754/k_standardl.c: Likewise.
9565 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9566 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9567 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9568 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9569 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9570 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9571 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9572 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9573 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9574 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9575 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9576 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9577 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9578 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9579 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9580 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9581 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9582 * math/w_ilogb_template.c: Include <fenv.h> instead of
9583 <fenv_private.h>.
9584 * math/w_llogb_template.c: Likewise.
9585 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9586 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9587
9588 2018-09-03 Joseph Myers <joseph@codesourcery.com>
9589
9590 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
9591 * math/fromfp.h: Include <fenv_private.h>.
9592 * math/math-narrow.h: Likewise.
9593 * math/s_cexp_template.c: Likewise.
9594 * math/s_csin_template.c: Likewise.
9595 * math/s_csinh_template.c: Likewise.
9596 * math/s_ctan_template.c: Likewise.
9597 * math/s_ctanh_template.c: Likewise.
9598 * math/s_iseqsig_template.c: Likewise.
9599 * math/w_acos_compat.c: Likewise.
9600 * math/w_acosf_compat.c: Likewise.
9601 * math/w_acosl_compat.c: Likewise.
9602 * math/w_asin_compat.c: Likewise.
9603 * math/w_asinf_compat.c: Likewise.
9604 * math/w_asinl_compat.c: Likewise.
9605 * math/w_ilogb_template.c: Likewise.
9606 * math/w_j0_compat.c: Likewise.
9607 * math/w_j0f_compat.c: Likewise.
9608 * math/w_j0l_compat.c: Likewise.
9609 * math/w_j1_compat.c: Likewise.
9610 * math/w_j1f_compat.c: Likewise.
9611 * math/w_j1l_compat.c: Likewise.
9612 * math/w_jn_compat.c: Likewise.
9613 * math/w_jnf_compat.c: Likewise.
9614 * math/w_llogb_template.c: Likewise.
9615 * math/w_log10_compat.c: Likewise.
9616 * math/w_log10f_compat.c: Likewise.
9617 * math/w_log10l_compat.c: Likewise.
9618 * math/w_log2_compat.c: Likewise.
9619 * math/w_log2f_compat.c: Likewise.
9620 * math/w_log2l_compat.c: Likewise.
9621 * math/w_log_compat.c: Likewise.
9622 * math/w_logf_compat.c: Likewise.
9623 * math/w_logl_compat.c: Likewise.
9624 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
9625 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
9626 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
9627 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
9628 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9629 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9630 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
9631 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
9632 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9633 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9634 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9635 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9636 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
9637 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
9638 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9639 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
9640 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
9641 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9642 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9643 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9644 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9645 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9646 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9647 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9648 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9649 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9650 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9651 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
9652 * sysdeps/ieee754/float128/float128_private.h: Likewise.
9653 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
9654 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9655 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9656 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
9657 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9658 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9659 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9660 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9661 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9662 * sysdeps/ieee754/k_standardl.c: Likewise.
9663 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
9664 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
9665 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9666 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9667 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
9668 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
9669 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
9670 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9671 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9672 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9673 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9674 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9675 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
9676 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
9677 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
9678 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
9679 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9680 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
9681 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
9682 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9683 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9684 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9685 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9686 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9687 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
9688 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
9689 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9690 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
9691 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
9692 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
9693 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
9694 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9695 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9696 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9697 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9698 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
9699 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
9700 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9701 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
9702 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
9703 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
9704 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
9705 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
9706 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
9707 * sysdeps/riscv/rvd/s_finite.c: Likewise.
9708 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
9709 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
9710 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
9711 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
9712 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
9713 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
9714 * sysdeps/riscv/rvf/fegetround.c: Likewise.
9715 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
9716 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
9717 * sysdeps/riscv/rvf/fesetround.c: Likewise.
9718 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
9719 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
9720 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
9721 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
9722 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
9723 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
9724 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
9725 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
9726 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
9727 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
9728 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
9729 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
9730 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
9731 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
9732 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
9733 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
9734
9735 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
9736
9737 [BZ #20271]
9738 * include/stdio.h (__libc_fatal): Mention newline in comment.
9739 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
9740 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
9741 * nscd/initgrcache.c (addinitgroupsX): Likewise.
9742 * nss/nsswitch.c (__nss_next2): Likewise.
9743 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
9744 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
9745 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
9746 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9747 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
9748 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
9749 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
9750 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
9751 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
9752 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
9753 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
9754 * sysdeps/unix/sysv/linux/netlink_assert_response.c
9755 (__netlink_assert_response): Likewise.
9756
9757 2018-08-31 Joseph Myers <joseph@codesourcery.com>
9758
9759 * conform/glibcconform.py: New file.
9760 * conform/list-header-symbols.py: Likewise.
9761 * conform/list-header-symbols.pl: Remove.
9762 * conform/Makefile (tests-special): Only add linknamespace tests
9763 if [PYTHON].
9764 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
9765
9766 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
9767
9768 [BZ #23597]
9769 * support/Makefile (libsupport-routines): Add
9770 support_copy_file_range and xcopy_file_range.
9771 * support/support.h: Include <sys/types.h>.
9772 (support_copy_file_range): New prototype.
9773 * support/support_copy_file_range.c: New file. Copied and
9774 modified from io/copy_file_range-compat.c.
9775 * support/test-container.c (copy_one_file): Call xcopy_file_rang
9776 instead of copy_file_range.
9777 * support/xcopy_file_range.c: New file.
9778 * support/xunistd.h (xcopy_file_range): New prototype.
9779
9780 2018-08-30 Carlos O'Donell <carlos@redhat.com>
9781
9782 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
9783 xpthread_create and xpthread_join.
9784
9785 2018-08-30 Florian Weimer <fweimer@redhat.com>
9786
9787 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
9788
9789 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
9790
9791 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
9792 if malloc fails.
9793
9794 2018-08-29 Joseph Myers <joseph@codesourcery.com>
9795
9796 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
9797 and minus_oflow as non-finite.
9798
9799 2018-08-28 Joseph Myers <joseph@codesourcery.com>
9800
9801 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
9802 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
9803 moved to fenv_private.h except for ...
9804 (TOINT_INTRINSICS): Kept in math_private.h.
9805 (roundtoint): Likewise.
9806 (converttoint): Likewise.
9807 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
9808 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9809 * sysdeps/arm/math_private.h: Remove.
9810 * sysdeps/generic/fenv_private.h: New file. Contents moved from
9811 ....
9812 * sysdeps/generic/math_private.h: ... this file. Include
9813 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
9814 Include <fenv_private.h>. Remove functions and macros moved to
9815 fenv_private.h.
9816 * sysdeps/i386/fpu/math_private.h: Remove.
9817 * sysdeps/mips/math_private.h: Move to ....
9818 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
9819 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
9820 [__mips_hard_float] conditional. Include next <fenv_private.h>.
9821 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
9822 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9823 * sysdeps/powerpc/fpu/math_private.h: Do not include
9824 <fenv_private.h>.
9825 * sysdeps/riscv/rvf/math_private.h: Move to ....
9826 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
9827 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
9828 <fenv_private.h>.
9829 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
9830 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
9831 * sysdeps/sparc/fpu/math_private.h: Remove.
9832 * sysdeps/i386/fpu/fenv_private.h: Move to ....
9833 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
9834 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
9835 <fenv_private.h>.
9836 * sysdeps/x86_64/fpu/math_private.h: Do not include
9837 <sysdeps/i386/fpu/fenv_private.h>.
9838
9839 2018-08-28 Florian Weimer <fweimer@redhat.com>
9840
9841 [BZ #23578]
9842 * posix/tst-regcomp-truncated.c: New file.
9843 * posix/Makefile (tests): Add it.
9844 (tst-regcomp-truncated.out): Depend on generated locales.
9845
9846 2018-08-28 Florian Weimer <fweimer@redhat.com>
9847
9848 * support/test-container.c (main): Treat unshare failure with
9849 EPERM as an unsupported test.
9850
9851 2018-08-28 Florian Weimer <fweimer@redhat.com>
9852
9853 [BZ #23520]
9854 nscd: Fix use-after-free in addgetnetgrentX and its callers.
9855 * nscd/netgroupcache.c
9856 (addgetnetgrentX): Add tofreep parameter. Do not free
9857 heap-allocated buffer.
9858 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
9859 (addgetnetgrentX_ignore): New function.
9860 (addgetnetgrent): Call it.
9861 (readdgetnetgrent): Likewise.
9862
9863 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9864
9865 * string/memmem.c: Use memcmp for first match.
9866
9867 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
9868
9869 [BZ #17426]
9870 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
9871
9872 2018-08-27 DJ Delorie <dj@redhat.com>
9873
9874 * support/Makefile (others): Don't list programs explicitly as a
9875 dependency of "others".
9876
9877 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9878
9879 * sysdeps/generic/math-tests-trap-force.h: New file.
9880 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
9881 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
9882 * sysdeps/powerpc/math-tests.h: Remove file.
9883 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
9884
9885 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
9886 Torvald Riegel <triegel@redhat.com>
9887
9888 [BZ #23538]
9889 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
9890 Update r to include the set wake-request flag if waiters are
9891 remaining after spinning.
9892
9893 2018-08-27 Joseph Myers <joseph@codesourcery.com>
9894
9895 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
9896
9897 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
9898
9899 [BZ #23578]
9900 regex: fix uninitialized memory access
9901 I introduced this bug into gnulib in commit
9902 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
9903 eventually it was merged into glibc. The bug was found by
9904 project-repo <bugs@feusi.co> and reported here:
9905 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
9906 Diagnosis and draft fix reported by Assaf Gordon here:
9907 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
9908 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
9909 * posix/regex_internal.c (build_wcs_upper_buffer):
9910 Fix bug when mbrtowc returns 0.
9911
9912 2018-08-24 Carlos O'Donell <carlos@redhat.com>
9913
9914 * po/be.po: Update translation.
9915
9916 2018-08-24 DJ Delorie <dj@delorie.com>
9917
9918 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
9919 $(libunwind).
9920
9921 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
9922
9923 [BZ #23400]
9924 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
9925 create temporary files in source tree.
9926
9927 2018-08-24 Joseph Myers <joseph@codesourcery.com>
9928
9929 * sysdeps/generic/math-tests-trap.h: New file.
9930 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
9931 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
9932 * sysdeps/aarch64/math-tests.h: Remove file.
9933 * sysdeps/arm/math-tests.h: Likewise.
9934 * sysdeps/riscv/math-tests.h: Likewise.
9935 * sysdeps/aarch64/math-tests-trap.h: New file.
9936 * sysdeps/arm/math-tests-trap.h: Likewise.
9937 * sysdeps/riscv/math-tests-trap.h: Likewise.
9938
9939 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
9940
9941 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
9942 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
9943 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
9944 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
9945 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
9946 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
9947 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9948 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
9949 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
9950 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9951 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9952 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9953 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9954 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
9955 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
9956 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
9957 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9958 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9959
9960 2018-08-23 Joseph Myers <joseph@codesourcery.com>
9961
9962 * sysdeps/generic/math-tests-exceptions.h: New file.
9963 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
9964 (EXCEPTION_TESTS_float): Do not define here.
9965 (EXCEPTION_TESTS_double): Likewise.
9966 (EXCEPTION_TESTS_long_double): Likewise.
9967 (EXCEPTION_TESTS_float128): Likewise.
9968 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
9969 Likewise.
9970 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
9971 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
9972 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
9973 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
9974 * sysdeps/mips/math-tests.h: Likewise.
9975 * sysdeps/nios2/math-tests.h: Likewise.
9976 * sysdeps/riscv/math-tests.h [!__riscv_flen]
9977 (EXCEPTION_TESTS_float): Do not define here.
9978 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
9979 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
9980 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
9981
9982 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9983
9984 * NEWS: Move optimized sinf entry to 2.29.
9985
9986 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
9987
9988 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
9989
9990 2018-08-22 DJ Delorie <dj@redhat.com>
9991
9992 * Makefile (testroot.pristine): New rules to initialize the
9993 test-in-container "testroot".
9994 * Makerules (all-testsuite): Add tests-container.
9995 * Rules (tests-expected): Add tests-container.
9996 (binaries-all-tests): Likewise.
9997 (tests-container): New, run these tests in the testroot container.
9998 * support/Makefile (others): Add *-container, support_paths.c,
9999 xmkdirp, and links-dso-program.
10000 * support/links-dso-program-c.c: New.
10001 * support/links-dso-program.cc: New.
10002 * support/test-container.c: New.
10003 * support/shell-container.c: New.
10004 * support/echo-container.c: New.
10005 * support/true-container.c: New.
10006 * support/xmkdirp.c: New.
10007 * support/xsymlink.c: New.
10008 * support/support_paths.c: New.
10009 * support/support.h: Add support paths prototypes.
10010 * support/xunistd.h: Add xmkdirp () and xsymlink ().
10011
10012 * nss/tst-nss-test3.c: Convert to test-in-container.
10013 * nss/tst-nss-test3.root/: New.
10014
10015 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
10016
10017 regex: port Gnulib code to z/OS POSIX environment
10018 Problem reported by Arnold Robbins in:
10019 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
10020 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
10021 Undef.
10022
10023 2018-08-22 Joseph Myers <joseph@codesourcery.com>
10024
10025 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
10026 (ROUNDING_TESTS_double): Remove.
10027 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
10028 (ROUNDING_TESTS_double): Remove.
10029 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
10030 (ROUNDING_TESTS_double): Remove.
10031 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
10032 (ROUNDING_TESTS_float): Remove.
10033 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
10034 (ROUNDING_TESTS_float): Remove.
10035 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
10036 (ROUNDING_TESTS_float): Remove.
10037 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
10038 !TEST_MATHVEC here.
10039 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
10040 (IF_ROUND_INIT_FE_UPWARD): Likewise.
10041
10042 * sysdeps/generic/math-tests-rounding.h: New file.
10043 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
10044 (ROUNDING_TESTS_float): Do not define here.
10045 (ROUNDING_TESTS_double): Likewise.
10046 (ROUNDING_TESTS_long_double): Likewise.
10047 (ROUNDING_TESTS_float128): Likewise.
10048 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
10049 (ROUNDING_TESTS_double): Undefine before defining.
10050 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
10051 (ROUNDING_TESTS_double): Undefine before defining.
10052 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
10053 (ROUNDING_TESTS_double): Undefine before defining.
10054 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
10055 (ROUNDING_TESTS_float): Undefine before defining.
10056 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
10057 (ROUNDING_TESTS_float): Undefine before defining.
10058 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
10059 (ROUNDING_TESTS_float): Undefine before defining.
10060 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
10061 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
10062 not define here.
10063 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
10064 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
10065 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
10066 * sysdeps/riscv/math-tests.h [!__riscv_flen]
10067 (ROUNDING_TESTS_float): Do not define here.
10068 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
10069 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
10070 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
10071 (ROUNDING_TESTS_float): Likewise.
10072 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
10073 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
10074 * sysdeps/mips/math-tests.h [__mips_soft_float]
10075 (ROUNDING_TESTS_float): Likewise.
10076 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
10077 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
10078 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
10079 (ROUNDING_TESTS_double): Likewise.
10080 (ROUNDING_TESTS_long_double): Likewise.
10081
10082 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
10083
10084 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
10085 (PF_XDP): New macro.
10086 (AF_XDP): New macro.
10087 (SOL_XDP): New macro.
10088
10089 2018-08-21 Joseph Myers <joseph@codesourcery.com>
10090
10091 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
10092 (TCP_INQ): Likewise.
10093 (TCP_CM_INQ): Likewise.
10094 (TCP_REPAIR_ON): Likewise.
10095 (TCP_REPAIR_OFF): Likewise.
10096 (TCP_REPAIR_OFF_NO_WP): Likewise.
10097 (struct tcp_zerocopy_receive): New type.
10098
10099 2018-08-21 Florian Weimer <fweimer@redhat.com>
10100
10101 * support/support.h (support_descriptor_supports_holes): Declare.
10102 * support/Makefile (libsupport-routines): Add
10103 support_descriptor_supports_holes.
10104 * support/support_descriptor_supports_holes.c: New file.
10105 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
10106 and stop testing if holes are not supported.
10107 * io/test-lfs.c (do_prepare): Likewise.
10108 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
10109 Likewise.
10110 * timezone/tst-tzset.c (create_tz_file): Likewise.
10111 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
10112 variable.
10113 (do_prepare): Set it.
10114 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
10115
10116 2018-08-21 Florian Weimer <fweimer@redhat.com>
10117
10118 [BZ #17248]
10119 * Makeconfig (+cflags): Do not sort (and deduplicate).
10120
10121 2018-08-21 Florian Weimer <fweimer@redhat.com>
10122
10123 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
10124 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
10125
10126 2018-08-20 Florian Weimer <fweimer@redhat.com>
10127
10128 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
10129 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
10130
10131 2018-08-20 Joseph Myers <joseph@codesourcery.com>
10132
10133 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
10134 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
10135 and ssi_arch members.
10136
10137 * elf/elf.c (NT_VMCOREDD): New macro.
10138 (AT_MINSIGSTKSZ): Likewise.
10139
10140 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10141
10142 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
10143 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
10144 s_cosf-ppc64 and s_cosf-power8.
10145 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
10146 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
10147 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10148 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
10149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
10150 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
10151 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
10152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
10153 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
10154 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
10155 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
10156 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
10157
10158 2018-08-17 Florian Weimer <fweimer@redhat.com>
10159
10160 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10161
10162 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
10163
10164 * malloc/malloc.c (_int_malloc): Additional binning code checks.
10165
10166 2018-08-16 Florian Weimer <fweimer@redhat.com>
10167
10168 * configure.ac: Add --with-nonshared-cflags option.
10169 * config.make.in (extra-nonshared-cflags): Set variable.
10170 * Makeconfig (CFLAGS-.oS): Use it.
10171 * manual/install.texi (Configuring and compiling): Document
10172 --with-nonshared-cflags.
10173 * configure: Regenerate.
10174 * INSTALL: Likewise.
10175
10176 2018-08-16 Florian Weimer <fweimer@redhat.com>
10177
10178 * Makeconfig (ASFLAGS): Always append required assembler flags.
10179
10180 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
10181
10182 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
10183 (malloc_consolidate): Likewise.
10184
10185 2018-08-16 Pochang Chen <johnchen902@gmail.com>
10186
10187 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
10188
10189 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
10190
10191 * benchtests/bench-strlen.c (do_test): Allocate buffers before
10192 every strlen call.
10193
10194 * benchtests/bench-strlen.c: Print performance numbers in json.
10195
10196 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10197
10198 * sysdeps/powerpc/powerpc64/multiarch/Makefile
10199 (sysdep_routines): Build strcmp-power9 and strncmp-power9
10200 only for little endian.
10201 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
10202 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
10203 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
10204 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
10205 Add check for little endian.
10206 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
10207 (__strcmp_power9): Add check for little endian.
10208 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
10209 Add check for little endian.
10210 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
10211 (__strncmp_power9): Add check for little endian.
10212 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
10213 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
10214 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
10215 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
10216 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
10217
10218 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
10219
10220 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
10221 [!STRLEN](STRLEN): Set to __strlen.
10222 * sysdeps/aarch64/multiarch/strlen.c: New file.
10223 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
10224 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
10225 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
10226 (__libc_ifunc_impl_list): Add strlen.
10227 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
10228 strlen_generic and strlen_asimd.
10229
10230 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10231
10232 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
10233 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
10234 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
10235
10236 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
10237
10238 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
10239
10240 2018-08-14 Florian Weimer <fweimer@redhat.com>
10241
10242 [BZ #23519]
10243 * include/stdio.h (__vfxprintf): Declare.
10244 * stdio-common/fxprintf.c (__vfxprintf): New function.
10245 (__fxprintf): Call it.
10246 * misc/err.c (convert_and_print): Remove function.
10247 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
10248 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
10249 * misc/Makefile (tests): Add tst-warn-wide.
10250 * misc/tst-warn-wide.c: New file.
10251
10252 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
10253 Szabolcs Nagy <szabolcs.nagy@arm.com>
10254
10255 * NEWS: Mention sinf, cosf, sincosf.
10256 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
10257 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
10258 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
10259 constants rather than including generic sincosf.h.
10260 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
10261 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
10262 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
10263 (reduced_cos): Remove.
10264 (sinf_poly): New function.
10265 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
10266
10267 2018-08-14 Florian Weimer <fweimer@redhat.com>
10268
10269 [BZ #23521]
10270 [BZ #23522]
10271 * nss/nss_files/files-alias.c (get_next_alias): During :include:
10272 processing, bail out if no room, and close the stream before
10273 returning ERANGE.
10274 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
10275 (tst-nss-files-alias-leak): Link with libdl.
10276 (tst-nss-files-alias-leak.out): Depend on nss_files.
10277
10278 * nss/tst-nss-files-alias-leak.c: New file.
10279
10280 2018-08-14 Florian Weimer <fweimer@redhat.com>
10281
10282 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
10283 server_user, stat_user.
10284
10285 2018-08-13 Joseph Myers <joseph@codesourcery.com>
10286
10287 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10288 version to 4.18.
10289 (io_pgetevents): New syscall.
10290 (rseq): Likewise.
10291
10292 * manual/install.texi (Configuring and compiling): Do not list
10293 tools used for testing pretty printers here.
10294 (Tools for Compilation): List Python, PExpect and GDB here.
10295 Update descriptions of uses of Perl and Python.
10296 * INSTALL: Regenerate.
10297
10298 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
10299 version to 4.18.
10300
10301 2018-08-13 Florian Weimer <fweimer@redhat.com>
10302
10303 * misc/error.c (error): Add missing va_end call.
10304 (error_at_line): Likewise.
10305
10306 2018-08-13 Florian Weimer <fweimer@redhat.com>
10307
10308 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
10309
10310 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
10311
10312 * benchtests/scripts/benchout.schema.json (properties): Add
10313 new properties.
10314
10315 * benchtests/bench-skeleton.c (main): Add duration and
10316 iterations attributes.
10317
10318 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
10319
10320 regex: Gnulib unibyte RRI uses bytes not chars
10321 Adjust the non-glibc code to agree with what Gawk needs for
10322 rational range interpretation (RRI) for regular expression ranges.
10323 In unibyte locales, Gawk wants ranges to use the underlying byte
10324 rather than the character code point. This change does not affect
10325 glibc proper.
10326 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
10327 In unibyte locales, use the byte value rather than
10328 running it through btowc.
10329
10330 2018-08-10 Joseph Myers <joseph@codesourcery.com>
10331
10332 * sysdeps/generic/math-tests-snan.h: New file.
10333 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
10334 (SNAN_TESTS_float): Do not define here.
10335 (SNAN_TESTS_double): Likewise.
10336 (SNAN_TESTS_long_double): Likewise.
10337 (SNAN_TESTS_float128): Likewise.
10338 * sysdeps/i386/fpu/math-tests-snan.h: New file.
10339 * sysdeps/i386/fpu/math-tests.h: Remove file.
10340 * sysdeps/ia64/math-tests-snan.h: New file.
10341 * sysdeps/ia64/math-tests.h: Remove file.
10342 * sysdeps/x86/math-tests.h: Likewise.
10343 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
10344
10345 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10346 Szabolcs Nagy <szabolcs.nagy@arm.com>
10347
10348 * math/Makefile: Add s_sincosf_data.c.
10349 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
10350 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
10351 (sincosf_poly): Likewise.
10352 (reduce_small): Likewise.
10353 (reduce_large): Likewise.
10354 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
10355 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
10356 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
10357 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
10358
10359 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
10360 Szabolcs Nagy <szabolcs.nagy@arm.com>
10361
10362 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
10363 (converttoint): Use lround.
10364 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
10365 document the semantics when TOINT_INTRINSICS is set.
10366 (converttoint): Likewise.
10367 (TOINT_RINT): Remove.
10368 (TOINT_SHIFT): Remove.
10369 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
10370 path.
10371
10372 2018-08-10 Florian Weimer <fweimer@redhat.com>
10373
10374 [BZ #23497]
10375 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
10376 function.
10377 (__old_getdents64): Use getdents64. Convert entries without
10378 moving them.
10379 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
10380 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
10381 tst-readdir64-compat.
10382
10383 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10384
10385 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
10386 Fix unwind.
10387
10388 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10389
10390 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
10391 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
10392 code to s390x-mcount.h and #include it.
10393 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
10394 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
10395 (__fentry__): Add.
10396
10397 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10398
10399 * stdlib/Versions: Remove __fentry__.
10400 * sysdeps/i386/Versions: Add __fentry__.
10401 * sysdeps/x86_64/Versions: Add __fentry__.
10402
10403 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10404
10405 * sysdeps/s390/Makefile: Register the new tests.
10406 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
10407 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
10408 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
10409 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
10410 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
10411 * sysdeps/s390/tst-dl-runtime.c: New file.
10412
10413 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10414
10415 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10416 Do not clobber R0.
10417
10418 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10419
10420 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10421 Do not clobber R0.
10422
10423 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10424
10425 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10426 Do not clobber R0.
10427
10428 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10429
10430 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10431 Do not clobber R0.
10432
10433 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10434
10435 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
10436 Use symbolic offsets for stack variables.
10437
10438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10439
10440 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
10441 Use symbolic offsets for stack variables.
10442
10443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10444
10445 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
10446 Use symbolic offsets for stack variables.
10447
10448 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
10449
10450 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
10451 Use symbolic offsets for stack variables.
10452
10453 2018-08-09 Joseph Myers <joseph@codesourcery.com>
10454
10455 * math/gen-libm-test.py: New file.
10456 * math/gen-libm-test.pl: Remove.
10457 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
10458 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
10459 gen-libm-test.pl.
10460 ($(libm-test-c-noauto-obj)): Likewise.
10461 ($(libm-test-c-auto-obj)): Likewise.
10462 ($(libm-test-c-narrow-obj)): Likewise.
10463 (regen-ulps): Likewise.
10464 * math/README.libm-test: Update references to gen-libm-test.pl.
10465 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
10466 referencing gen-libm-test.pl.
10467 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
10468 * math/libm-test-support.c: Likewise.
10469 * math/libm-test-support.h: Likewise.
10470 * sysdeps/generic/libm-test-ulps: Likewise.
10471
10472 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
10473
10474 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
10475 Fix value.
10476
10477 2018-08-08 Joseph Myers <joseph@codesourcery.com>
10478
10479 * math/libm-test-nextdown.inc (do_test): Move comment to ....
10480 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
10481
10482 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
10483
10484 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
10485 symbols.
10486 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
10487 __pthread_setspecific): Add hidden proto.
10488 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
10489 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
10490
10491 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
10492
10493 * benchtests/bench-string.h (buf1_size, buf2_size): New
10494 variables.
10495 (init_sizes): New function.
10496 (test_init): Use it.
10497 (alloc_buf, exit_error): New functions.
10498 (alloc_bufs): Use ALLOC_BUF.
10499 (realloc_bufs): Remove.
10500 * benchtests/bench-memcmp.c (do_test): Adjust.
10501 * benchtests/bench-memset-large.c (do_test): Likewise.
10502 * benchtests/bench-memset-walk.c (do_test): Likewise.
10503 * benchtests/bench-memset.c (do_test): Likewise.
10504 * benchtests/bench-strncmp.c (do_test): Likewise.
10505
10506 2018-08-06 Andreas Schwab <schwab@suse.de>
10507
10508 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
10509 of CONST_THREAD_AREA.
10510
10511 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
10512
10513 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
10514 (STATE_SAVE_MASK): Likewise.
10515 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
10516 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
10517 (STATE_SAVE_MASK): Likewise.
10518 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
10519 instead of <cpu-features.h>.
10520
10521 2018-08-03 DJ Delorie <dj@redhat.com>
10522
10523 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
10524 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
10525
10526 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
10527
10528 2018-08-03 Joseph Myers <joseph@codesourcery.com>
10529
10530 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
10531 after TEST_* calls.
10532 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
10533 * math/libm-test-logb.inc (logb_test_data): Likewise.
10534
10535 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
10536
10537 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
10538 * string/strstr.c (AVAILABLE): Likewise.
10539
10540 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10541
10542 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
10543 <init-arch.h>.
10544 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
10545 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
10546 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
10547
10548 2018-08-03 Carlos O'Donell <carlos@redhat.com>
10549
10550 * po/be.po: Update translation.
10551
10552 * po/be.po: Update translation.
10553
10554 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
10555
10556 * sysdeps/x86/cpu-features-offsets.sym
10557 (rtld_global_ro_offsetof): Removed.
10558 (CPU_FEATURES_SIZE): Likewise.
10559 (CPUID_OFFSET): Likewise.
10560 (CPUID_SIZE): Likewise.
10561 (CPUID_EAX_OFFSET): Likewise.
10562 (CPUID_EBX_OFFSET): Likewise.
10563 (CPUID_ECX_OFFSET): Likewise.
10564 (CPUID_EDX_OFFSET): Likewise.
10565 (FAMILY_OFFSET): Likewise.
10566 (MODEL_OFFSET): Likewise.
10567 (FEATURE_OFFSET): Likewise.
10568 (FEATURE_SIZ): Likewise.
10569 (COMMON_CPUID_INDEX_1): Likewise.
10570 (COMMON_CPUID_INDEX_7): Likewise.
10571 (FEATURE_INDEX_1): Likewise.
10572 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
10573
10574 2018-08-02 Carlos O'Donell <carlos@redhat.com>
10575
10576 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
10577 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
10578 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
10579 (install-locales): Depend on install-locale-archive.
10580 (install-locale-archive): Define.
10581 (install-locale-files): Define.
10582 (build-one-locale): Define macro.
10583 * manual/install.texi (Running make install): Document.
10584 * manual/INSTALL: Regenerate.
10585
10586 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
10587
10588 * benchtests/scripts/compare_strings.py: Import traceback.
10589 (parse_file): Pretty-print error.
10590
10591 * NEWS: Mention the change.
10592 * elf/dl-tunables.list: Rename tune namespace to cpu.
10593 * sysdeps/powerpc/dl-tunables.list: Likewise.
10594 * sysdeps/x86/dl-tunables.list: Likewise.
10595 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
10596 cpu.name.
10597 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
10598 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
10599 * manual/README.tunables: Likewise.
10600 * manual/tunables.texi: Likewise.
10601 * sysdeps/powerpc/cpu-features.c: Likewise.
10602 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
10603 (init_cpu_features): Likewise.
10604 * sysdeps/x86/cpu-features.c: Likewise.
10605 * sysdeps/x86/cpu-features.h: Likewise.
10606 * sysdeps/x86/cpu-tunables.c: Likewise.
10607 * sysdeps/x86_64/Makefile: Likewise.
10608 * sysdeps/x86/dl-cet.c: Likewise.
10609
10610 2018-08-02 Joseph Myers <joseph@codesourcery.com>
10611
10612 [BZ #23479]
10613 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
10614 [__mips_hard_float].
10615 (FE_UNDERFLOW): Likewise.
10616 (FE_OVERFLOW): Likewise.
10617 (FE_DIVBYZERO): Likewise.
10618 (FE_INVALID): Likewise.
10619 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
10620 (FE_TOWARDZERO): Define only if [__mips_hard_float].
10621 (FE_UPWARD): Likewise.
10622 (FE_DOWNWARD): Likewise.
10623 (__FE_UNDEFINED): Define if [!__mips_hard_float]
10624 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
10625 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
10626 [__mips_hard_float].
10627 (FP_ROUNDMODE): Likewise.
10628 (FP_RND_NEAREST): Likewise.
10629 (FP_RND_ZERO): Likewise.
10630 (FP_RND_PINF): Likewise.
10631 (FP_RND_MINF): Likewise.
10632 (FP_EX_INVALID): Likewise.
10633 (FP_EX_OVERFLOW): Likewise.
10634 (FP_EX_UNDERFLOW): Likewise.
10635 (FP_EX_DIVZERO): Likewise.
10636 (FP_EX_INEXACT): Likewise.
10637 (FP_INIT_ROUNDMODE): Likewise.
10638 * sysdeps/mips/nofpu/fesetenv.c: New file.
10639 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
10640
10641 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10642
10643 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
10644 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
10645 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
10646 conditional on [FE_UPWARD].
10647
10648 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
10649
10650 regex: fix memory leak in Gnulib
10651 Problem and fix reported by Assaf Gordon in:
10652 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
10653 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
10654 range_ends members too, as they are defined in 'struct
10655 re_charset_t' even if not _LIBC. This affects only Gnulib.
10656
10657 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
10658
10659 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
10660 ...
10661 (get_common_indices): This.
10662 (init_cpu_features): Updated.
10663
10664 2018-08-01 Joseph Myers <joseph@codesourcery.com>
10665
10666 * sysdeps/generic/math-tests-snan-payload.h: New file.
10667 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
10668 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
10669 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
10670 * sysdeps/generic/math-tests.h: Include
10671 <math-tests-snan-payload.h>.
10672 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10673 * sysdeps/hppa/math-tests.h: Remove file.
10674 * sysdeps/mips/math-tests.h [!__mips_nan2008]
10675 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
10676 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
10677 Likewise.
10678
10679 * sysdeps/generic/math-tests-snan-cast.h: New file.
10680 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
10681 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
10682 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
10683 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
10684
10685 2018-08-01 Carlos O'Donel <carlos@redhat.com>
10686
10687 * version.h (RELEASE): Set to "development".
10688 (VERSION): Set to "2.28.9000".
10689 * NEWS (2.29): New section.
10690
10691 * version.h (RELEASE): Set to "stable".
10692 (VERSION): Set to "2.28".
10693 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
10694 * NEWS: Add the list of bugs fixed in 2.28.
10695
10696 * po/ca.po: Update to latest version.
10697 * po/cs.po: Likewise
10698 * po/da.po: Likewise
10699 * po/el.po: Likewise
10700 * po/eo.po: Likewise
10701 * po/es.po: Likewise
10702 * po/fi.po: Likewise
10703 * po/fr.po: Likewise
10704 * po/gl.po: Likewise
10705 * po/hu.po: Likewise
10706 * po/ia.po: Likewise
10707 * po/id.po: Likewise
10708 * po/it.po: Likewise
10709 * po/ja.po: Likewise
10710 * po/ko.po: Likewise
10711 * po/lt.po: Likewise
10712 * po/nb.po: Likewise
10713 * po/nl.po: Likewise
10714 * po/pt_BR.po: Likewise
10715 * po/ru.po: Likewise
10716 * po/rw.po: Likewise
10717 * po/sk.po: Likewise
10718 * po/sl.po: Likewise
10719 * po/tr.po: Likewise
10720 * po/zh_CN.po: Likewise
10721 * po/zh_TW.po: Likewise
10722
10723 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
10724
10725 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
10726 initialization...
10727 (init): ... before initializing libpthread.
10728
10729 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
10730 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
10731 (__mach_setup_tls): ... new function.
10732 (mach_setup_tls): New alias.
10733 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
10734 __mach_setup_thread.
10735 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
10736 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
10737 * mach/Versions [libc] (mach_setup_tls): Add symbol.
10738 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
10739
10740 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10741
10742 * manual/install.texi: Update versions.
10743 * INSTALL: Regenerate.
10744
10745 * manual/contrib.texi (Contributors): Update contributions.
10746
10747 2018-07-31 Carlos O'Donell <carlos@redhat.com>
10748
10749 * po/be.po: Update translations.
10750
10751 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10752
10753 * sysdeps/sh/libm-test-ulps: Update.
10754
10755 2018-07-30 Carlos O'Donell <carlos@redhat.com>
10756
10757 * po/bg.po: Update translations.
10758 * po/de.po: Likewise.
10759 * po/hr.po: Likewise.
10760 * po/pt_BR.po: Likewise.
10761 * po/sv.po: Likewise.
10762 * po/vi.po: Likewise.
10763
10764 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10765
10766 [BZ #23467]
10767 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10768 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
10769 (CFLAGS-tst-cet-property-1.o): New.
10770 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
10771 ($(objpfx)tst-cet-property-2): Likewise.
10772 ($(objpfx)tst-cet-property-2.out): Likewise.
10773 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
10774 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
10775 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
10776 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
10777 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
10778
10779 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
10780
10781 [BZ #23458]
10782 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
10783
10784 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
10785
10786 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
10787 __sbrk): Do not set attribute_hidden.
10788 * sysdeps/mach/hurd/not-errno.h: New file.
10789 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10790 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
10791
10792 2018-07-27 Carlos O'Donell <carlos@redhat.com>
10793
10794 * po/uk.po: Update translations.
10795 * po/cs.po: Likewise.
10796 * po/pl.po: Likewise.
10797
10798 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
10799
10800 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
10801 parse beyond the note end.
10802
10803 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10804
10805 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
10806 kernel does not support OFD locks.
10807 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
10808
10809 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
10810
10811 * sysdeps/mach/hurd/Versions (libc): Make __access and
10812 __access_noerrno external so they can override the ld symbols.
10813 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
10814 __writev, __open64, __access_noerrno extern so they can be overrided.
10815 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
10816 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
10817
10818 2018-07-26 Carlos O'Donell <carlos@redhat.com>
10819
10820 * po/libc.pot: Regenerate.
10821
10822 2018-07-26 Joseph Myers <joseph@codesourcery.com>
10823
10824 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
10825
10826 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10827
10828 [BZ #23459]
10829 * sysdeps/x86/cpu-features.c (get_extended_indices): New
10830 function.
10831 (init_cpu_features): Call get_extended_indices for both Intel
10832 and AMD CPUs.
10833 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
10834 Remove "for AMD" comment.
10835
10836 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
10837
10838 [BZ # 23456]
10839 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
10840 COMMON_CPUID_INDEX_80000001.
10841
10842 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
10843
10844 * string/tst-xbzero-opt.c (use_test_buffer): New function.
10845 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
10846
10847 2018-07-26 Florian Weimer <fweimer@redhat.com>
10848
10849 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
10850 aliases for symbols not in the implementation namespace.
10851
10852 2018-07-25 Carlos O'Donell <carlos@redhat.com>
10853
10854 [BZ #23393]
10855 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
10856 lowercase in LATIN script.
10857 * localedata/Makefile (test-input): Add en_US.UTF-8.
10858 * localedata/en_US.UTF-8.in: New file.
10859 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
10860 and restore old tests.
10861 * posix/tst-regexloc.c (do_test): Add back range expression test.
10862
10863 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10864
10865 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
10866
10867 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10868
10869 * nptl/threads.h: Move to ...
10870 * sysdeps/nptl/threads.h: ... here.
10871 * sysdeps/hurd/stdc-predef.h: New file.
10872
10873 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10874
10875 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
10876 tst-cet-setcontext-1 if CET is enabled.
10877 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
10878 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
10879
10880 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10881
10882 * include/threads.h: Move to ...
10883 * sysdeps/nptl/threads.h: ... here.
10884 * sysdeps/htl/threads.h: New file.
10885 * conform/Makefile (linknamespace-libs-ISO11): Use
10886 static-thread-library instead of linking libpthread.
10887 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
10888
10889 2018-07-25 Florian Weimer <fweimer@redhat.com>
10890
10891 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
10892 nanoseconds into seconds.
10893 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
10894 (do_test): Likewise.
10895 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
10896 (do_test): Likewise. Avoid nanosecond overflow and spurious
10897 timeouts due to system load.
10898 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
10899 (child_wait): Increment it.
10900 (do_test): Wait as long as necessary until all expected threads
10901 have arrived.
10902
10903 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
10904 H.J. Lu <hongjiu.lu@intel.com>
10905
10906 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
10907 __ssp.
10908 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
10909 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
10910 (__push___start_context): New.
10911 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
10912 <asm/prctl.h>.
10913 (__getcontext): Record the current shadow stack base. Save the
10914 caller's shadow stack pointer and base.
10915 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
10916 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
10917 (__push___start_context): New prototype.
10918 (__makecontext): Call __push___start_context to allocate a new
10919 shadow stack, push __start_context onto the new stack as well
10920 as the new shadow stack.
10921 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
10922 <asm/prctl.h>.
10923 (__setcontext): Restore the target shadow stack.
10924 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
10925 <asm/prctl.h>.
10926 (__swapcontext): Record the current shadow stack base. Save
10927 the caller's shadow stack pointer and base. Restore the target
10928 shadow stack.
10929 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
10930 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
10931 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
10932
10933 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10934
10935 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
10936 tst-setcontext8 and tst-setcontext9.
10937 * stdlib/tst-setcontext6.c: New file.
10938 * stdlib/tst-setcontext7.c: Likewise.
10939 * stdlib/tst-setcontext8.c: Likewise.
10940 * stdlib/tst-setcontext9.c: Likewise.
10941
10942 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10943
10944 * stdlib/Makefile ((tests): Add tst-setcontext5.
10945 * stdlib/tst-setcontext5.c: New file.
10946
10947 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10948
10949 * stdlib/Makefile (tests): Add tst-setcontext4.
10950 * stdlib/tst-setcontext4.c: New file.
10951
10952 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10953
10954 * stdlib/Makefile (tests): Add tst-swapcontext1.
10955 * stdlib/tst-swapcontext1.c: New test.
10956
10957 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
10958
10959 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
10960 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
10961 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
10962 and tst-cet-legacy-4c.
10963 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
10964 and tst-cet-legacy-mod-4.
10965 (CFLAGS-tst-cet-legacy-2.c): New.
10966 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
10967 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
10968 (CFLAGS-tst-cet-legacy-3.c): Likewise.
10969 (CFLAGS-tst-cet-legacy-4.c): Likewise.
10970 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
10971 ($(objpfx)tst-cet-legacy-1): Likewise.
10972 ($(objpfx)tst-cet-legacy-2): Likewise.
10973 ($(objpfx)tst-cet-legacy-2.out): Likewise.
10974 ($(objpfx)tst-cet-legacy-2a): Likewise.
10975 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
10976 ($(objpfx)tst-cet-legacy-4): Likewise.
10977 ($(objpfx)tst-cet-legacy-4.out): Likewise.
10978 ($(objpfx)tst-cet-legacy-4a): Likewise.
10979 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
10980 (tst-cet-legacy-4a-ENV): Likewise.
10981 ($(objpfx)tst-cet-legacy-4b): Likewise.
10982 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
10983 (tst-cet-legacy-4b-ENV): Likewise.
10984 ($(objpfx)tst-cet-legacy-4c): Likewise.
10985 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
10986 (tst-cet-legacy-4c-ENV): Likewise.
10987 * sysdeps/x86/tst-cet-legacy-1.c: New file.
10988 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
10989 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
10990 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
10991 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
10992 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
10993 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
10994 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
10995 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
10996 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
10997 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
10998
10999 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
11000
11001 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11002 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11003 with ssp_base.
11004 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
11005 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
11006 with ssp_base.
11007
11008 2018-07-25 Andreas Schwab <schwab@suse.de>
11009
11010 [BZ #23442]
11011 * locale/weightwc.h (findidx): Handle the case where usrc is a
11012 prefix of cp but one character too short.
11013
11014 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11015
11016 * NEWS: Add ISO C threads addition.
11017
11018 2018-07-24 Florian Weimer <fweimer@redhat.com>
11019
11020 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11021 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
11022 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
11023 4.13.
11024
11025 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11026
11027 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
11028 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
11029 <sys/prctl.h> and <asm/prctl.h>.
11030 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
11031 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
11032 and <asm/prctl.h>.
11033 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
11034 ARCH_CET_LEGACY_BITMAP.
11035 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
11036 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
11037 * sysdeps/x86/libc-start.c: Include <startup.h>.
11038
11039 2018-07-24 Florian Weimer <fweimer@redhat.com>
11040
11041 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
11042 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
11043
11044 2018-07-24 Rical Jasan <rj@2c3t.io>
11045 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11046 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11047
11048 [BZ #14092]
11049 * manual/debug.texi: Update adjacent chapter name.
11050 * manual/probes.texi: Likewise.
11051 * manual/threads.texi (ISO C Threads): New section.
11052 (POSIX Threads): Convert to a section.
11053
11054 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11055 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
11056
11057 [BZ# 14092]
11058 * nptl/Makefile (tests): Add new test files.
11059 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
11060 * nptl/tst-cnd-basic.c: Likewise.
11061 * nptl/tst-cnd-broadcast.c: Likewise.
11062 * nptl/tst-cnd-timedwait.c: Likewise.
11063 * nptl/tst-mtx-basic.c: Likewise.
11064 * nptl/tst-mtx-recursive.c: Likewise.
11065 * nptl/tst-mtx-timedlock.c: Likewise.
11066 * nptl/tst-mtx-trylock.c: Likewise.
11067 * nptl/tst-thrd-basic.c: Likewise.
11068 * nptl/tst-thrd-detach.c: Likewise.
11069 * nptl/tst-thrd-sleep.c: Likewise.
11070 * nptl/tst-tss-basic.c: Likewise.
11071
11072 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11073
11074 [BZ #14092]
11075 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
11076 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
11077 symbols.
11078 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
11079 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
11080 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
11081 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
11082 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
11083 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
11084 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
11085 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
11086 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
11087 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
11088 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
11089 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
11090 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
11091 Likewise.
11092 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
11093 Likewise.
11094 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
11095 Likewise.
11096 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
11097 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
11098 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
11099 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
11100 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
11101 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
11102 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
11103 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
11104 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
11105 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
11106 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
11107 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
11108 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
11109 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
11110 Likewise.
11111 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
11112 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
11113 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
11114 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
11115 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
11116 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
11117 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
11118 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
11119 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
11120 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
11121 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
11122 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
11123 ikewise.
11124 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
11125 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
11126 Likewise.
11127 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
11128 Likewise.
11129 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
11130 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
11131 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
11132 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
11133 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
11134 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
11135 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
11136 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
11137
11138 [BZ #14092]
11139 * conform/data/threads.h-data (thread_local): New macro.
11140 (TSS_DTOR_ITERATIONS): Likewise.
11141 (tss_t): New type.
11142 (tss_dtor_t): Likewise.
11143 (tss_create): New function.
11144 (tss_get): Likewise.
11145 (tss_set): Likewise.
11146 (tss_delete): Likewise.
11147 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
11148 tss_get, and tss_set objects.
11149 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11150 * nptl/tss_create.c: New file.
11151 * nptl/tss_delete.c: Likewise.
11152 * nptl/tss_get.c: Likewise.
11153 * nptl/tss_set.c: Likewise.
11154 * sysdeps/nptl/threads.h (thread_local): New define.
11155 (TSS_DTOR_ITERATIONS): Likewise.
11156 (tss_t): New typedef.
11157 (tss_dtor_t): Likewise.
11158 (tss_create): New prototype.
11159 (tss_get): Likewise.
11160 (tss_set): Likewise.
11161 (tss_delete): Likewise.
11162
11163 [BZ #14092]
11164 * conform/data/threads.h-data (cnd_t): New type.
11165 (cnd_init): New function.
11166 (cnd_signal): Likewise.
11167 (cnd_broadcast): Likewise.
11168 (cnd_wait): Likewise.
11169 (cnd_timedwait): Likewise.
11170 (cnd_destroy): Likewise.
11171 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
11172 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
11173 object.
11174 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
11175 * nptl/cnd_broadcast.c: New file.
11176 * nptl/cnd_destroy.c: Likewise.
11177 * nptl/cnd_init.c: Likewise.
11178 * nptl/cnd_signal.c: Likewise.
11179 * nptl/cnd_timedwait.c: Likewise.
11180 * nptl/cnd_wait.c: Likewise.
11181 * sysdeps/nptl/threads.h (cnd_t): New type.
11182 (cnd_init): New prototype.
11183 (cnd_signa): Likewise.
11184 (cnd_broadcast): Likewise.
11185 (cnd_wait): Likewise.
11186 (cnd_timedwait): Likewise.
11187 (cnd_destroy): Likewise.
11188
11189 [BZ #14092]
11190 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
11191 (once_flag): New type.
11192 (call_once): New function.
11193 * nptl/Makefile (libpthread-routines): Add call_once object.
11194 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
11195 * nptl/call_once.c: New file.
11196 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
11197 (once_flag): New type.
11198 (call_once): New prototype.
11199
11200 [BZ #14092]
11201 * conform/data/threads.h-data (mtx_plain): New constant.
11202 (mtx_recursive): Likewise.
11203 (mtx_timed): Likewise.
11204 (mtx_t): New type.
11205 (mtx_init): New function.
11206 (mtx_lock): Likewise.
11207 (mtx_timedlock): Likewise.
11208 (mtx_trylock): Likewise.
11209 (mtx_unlock): Likewise.
11210 (mtx_destroy): Likewise.
11211 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
11212 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
11213 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
11214 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
11215 * nptl/mtx_destroy.c: New file.
11216 * nptl/mtx_init.c: Likewise.
11217 * nptl/mtx_lock.c: Likewise.
11218 * nptl/mtx_timedlock.c: Likewise.
11219 * nptl/mtx_trylock.c: Likewise.
11220 * nptl/mtx_unlock.c: Likewise.
11221 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
11222 (mtx_recursive): Likewise.
11223 (mtx_timed): Likewise.
11224 (mtx_t): New type.
11225 (mtx_init): New prototype.
11226 (mtx_lock): Likewise.
11227 (mtx_timedlock): Likewise.
11228 (mtx_trylock): Likewise.
11229 (mtx_unlock): Likewise.
11230 (mtx_destroy): Likewise.
11231
11232 [BZ #14092]
11233 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
11234 (linknamespace-libs-ISO11): Add libpthread.a.
11235 * conform/data/threads.h-data: New file: add C11 thrd_* types and
11236 functions.
11237 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
11238 * nptl/Makefile (headers): Add threads.h.
11239 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
11240 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
11241 thrd_yield.
11242 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
11243 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
11244 thrd_join, thrd_sleep, and thrd_yield symbols.
11245 * nptl/descr.h (struct pthread): Add c11 field.
11246 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
11247 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
11248 routine with expected function prototype.
11249 (__pthread_create_2_1): Add C11 threads check based on attribute
11250 value.
11251 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
11252 * nptl/thrd_create.c: New file.
11253 * nptl/thrd_current.c: Likewise.
11254 * nptl/thrd_detach.c: Likewise.
11255 * nptl/thrd_equal.c: Likewise.
11256 * nptl/thrd_exit.c: Likewise.
11257 * nptl/thrd_join.c: Likewise.
11258 * nptl/thrd_priv.h: Likewise.
11259 * nptl/thrd_sleep.c: Likewise.
11260 * nptl/thrd_yield.c: Likewise.
11261 * include/threads.h: Likewise.
11262
11263 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11264
11265 * bits/indirect-return.h: New file.
11266 * misc/sys/cdefs.h (__glibc_has_attribute): New.
11267 * sysdeps/x86/bits/indirect-return.h: Likewise.
11268 * stdlib/Makefile (headers): Add bits/indirect-return.h.
11269 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
11270 (swapcontext): Add __INDIRECT_RETURN.
11271 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
11272 (prepare_test_buffer): Use it.
11273
11274 2018-07-24 Andreas Schwab <schwab@suse.de>
11275
11276 [BZ #23448]
11277 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
11278 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
11279
11280 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11281
11282 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
11283 Redefine if shadow stack is enabled.
11284 (SYSCALL_ERROR_LABEL): Likewise.
11285 (__vfork): Pop shadow stack and jump back to to caller directly
11286 when shadow stack is in use.
11287 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
11288 Redefine if shadow stack is enabled.
11289 (SYSCALL_ERROR_LABEL): Likewise.
11290 (__vfork): Pop shadow stack and jump back to to caller directly
11291 when shadow stack is in use.
11292
11293 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
11294
11295 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
11296 enabled.
11297 (foo): Likewise.
11298 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
11299 (foo): Likewise.
11300
11301 2018-07-20 Joseph Myers <joseph@codesourcery.com>
11302
11303 * scripts/build-many-glibcs.py (Context.checkout): Default
11304 binutils version to 2.31 branch.
11305
11306 2018-07-20 Zong Li <zong@andestech.com>
11307
11308 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
11309 URL of gcc's tarball.
11310
11311 2018-07-20 Florian Weimer <fweimer@redhat.com>
11312
11313 [BZ #23396]
11314 * posix/regcomp.c (build_equiv_class): When comparing weights, do
11315 not compare an extra byte after the end of the weights.
11316
11317 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
11318
11319 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
11320 to 1.
11321 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
11322 hidden prototypes.
11323 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
11324 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
11325 * scripts/check-execstack.awk: Consider `xfail' variable containing a
11326 list of libraries whose stack executability is expected.
11327 * elf/Makefile ($(objpfx)check-execstack.out): Pass
11328 $(check-execstack-xfail) to check-execstack.awk through `xfail'
11329 variable.
11330 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
11331 libc.so libpthread.so.
11332
11333 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
11334
11335 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
11336 SOCK_NONBLOCK.
11337 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
11338 and SOCK_NONBLOCK.
11339 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
11340 implement __pipe2.
11341 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
11342
11343 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11344
11345 * benchtests/scripts/compare_bench.py (__main__): use the argparse
11346 library to improve command line parsing.
11347 (__main__): make schema file as optional parameter (--schema),
11348 defaulting to benchtests/scripts/benchout.schema.json.
11349 (main): move out of the parsing stuff to __main_  and leave it
11350 only as caller of main comparison functions.
11351
11352 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
11353
11354 * NEWS: Add a note for Intel CET status.
11355 * manual/install.texi: Likewise.
11356 * INSTALL: Regenerated.
11357
11358 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
11359
11360 [BZ #23140]
11361 * localedata/locales/oc_FR (mon): Rename to...
11362 (alt_mon): This, then update October (typo fix).
11363 (mon): New content (genitive case, month names preceded by
11364 "de" or "d’").
11365
11366 [BZ #23422]
11367 * localedata/locales/oc_FR (abday): Update all items.
11368 (day): Update Wednesday and Saturday (typo fixes).
11369 (abmon): Update all items, except May.
11370 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
11371 (LC_IDENTIFICATION): Bump the revision number and date.
11372 Keep the "category" entries in alphabetic order.
11373 (LC_ADDRESS): Remove no longer needed comment.
11374 (LC_COLLATE): Use “copy "ca_ES"”.
11375 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
11376 "name_mrs".
11377
11378 2018-07-18 Joseph Myers <joseph@codesourcery.com>
11379
11380 * grp/tst_fgetgrent.c: Include <unistd.h>.
11381 (main): Use mkstemp instead of tmpnam.
11382 * io/test-utime.c (main): Likewise.
11383 * posix/annexc.c (macrofile): Change to modifiable array.
11384 (main): Remove macrofile here.
11385 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11386 macrofile here.
11387 (check_header): Do not remove macrofile here.
11388 * posix/bug-getopt1.c: Include <stdlib.h>.
11389 (do_test): Use mkstemp instead of tmpnam.
11390 * posix/bug-getopt2.c: Include <stdlib.h>.
11391 (do_test): Use mkstemp instead of tmpnam.
11392 * posix/bug-getopt3.c: Include <stdlib.h>.
11393 (do_test): Use mkstemp instead of tmpnam.
11394 * posix/bug-getopt4.c: Include <stdlib.h>.
11395 (do_test): Use mkstemp instead of tmpnam.
11396 * posix/bug-getopt5.c: Include <stdlib.h>.
11397 (do_test): Use mkstemp instead of tmpnam.
11398 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
11399 (main): Use mkstemp instead of tmpnam.
11400 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
11401 (main): Use mkstemp instead of tmpnam.
11402 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
11403 (main): use mkstemp instead of tmpnam.
11404 * stdlib/isomac.c (macrofile): Change to modifiable array.
11405 (main): Remove macrofile here.
11406 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
11407 macrofile here.
11408 (check_header): Do not remove macrofile here.
11409
11410 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11411
11412 * manual/tunables.texi: Document glibc.tune.x86_ibt and
11413 glibc.tune.x86_shstk.
11414
11415 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11416
11417 * NEWS: Mention --enable-cet.
11418 * manual/install.texi: Document --enable-cet.
11419 * INSTALL: Regenerated.
11420
11421 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11422
11423 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
11424 Add _CET_NOTRACK before indirect jump to jump table.
11425
11426 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11427
11428 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
11429 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11430 to jump table.
11431
11432 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11433
11434 * sysdeps/i386/i686/multiarch/strcat-sse2.S
11435 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11436 to jump table.
11437
11438 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11439
11440 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
11441 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11442 to jump table.
11443
11444 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11445
11446 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
11447 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11448 to jump table.
11449
11450 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11451
11452 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
11453 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11454 to jump table.
11455 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
11456
11457 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11458
11459 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
11460 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11461 to jump table.
11462
11463 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11464
11465 * sysdeps/i386/i686/multiarch/memset-sse2.S
11466 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11467 to jump table.
11468
11469 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11470
11471 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
11472 indirect jump to jump table.
11473
11474 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11475
11476 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
11477 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11478 to jump table.
11479 (MEMCPY): Likewise.
11480
11481 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11482
11483 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
11484 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
11485 to jump table.
11486 (MEMCPY): Likewise.
11487
11488 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11489
11490 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11491 _CET_NOTRACK before indirect jump to jump table.
11492
11493 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.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/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
11502 indirect jump to jump table.
11503
11504 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
11505
11506 [BZ #22241]
11507 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
11508 (LOCALES): Likewise.
11509 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
11510 * localedata/locales/sah_RU: New file.
11511 * localedata/sah_RU.UTF-8.in: New file.
11512
11513 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11514
11515 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
11516 "sysdep.h".
11517 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11518 _CET_ENDBR to indirect jump targets and adjust jump destination
11519 for _CET_ENDBR.
11520 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
11521 "sysdep.h".
11522 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
11523 _CET_ENDBR to indirect jump targets and adjust jump destination
11524 for _CET_ENDBR.
11525 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
11526 "sysdep.h".
11527 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
11528 _CET_ENDBR to indirect jump targets and adjust jump destination
11529 for _CET_ENDBR.
11530
11531 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11532
11533 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
11534 _CET_ENDBR.
11535
11536 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11537
11538 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
11539 _CET_ENDBR.
11540 (_dl_tlsdesc_undefweak): Likewise.
11541 (_dl_tlsdesc_dynamic): Likewise.
11542 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
11543 (_dl_tlsdesc_resolve_rel): Likewise.
11544 (_dl_tlsdesc_resolve_rela): Likewise.
11545 (_dl_tlsdesc_resolve_hold): Likewise.
11546 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
11547 (_dl_tlsdesc_undefweak): Likewise.
11548 (_dl_tlsdesc_dynamic): Likewise.
11549 (_dl_tlsdesc_resolve_rela): Likewise.
11550 (_dl_tlsdesc_resolve_hold): Likewise.
11551
11552 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11553
11554 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
11555 (_fini): Likewise.
11556 * sysdeps/x86_64/crti.S (_init): Likewise.
11557 (_fini): Likewise.
11558
11559 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
11560
11561 [BZ #23140]
11562 * localedata/locales/os_RU (mon): Rename to...
11563 (alt_mon): This.
11564 (mon): Import from CLDR (genitive case).
11565
11566 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
11567
11568 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
11569 cet-tunables.h> when CET is enabled.
11570
11571 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
11572
11573 [BZ #21598]
11574 * configure.ac: Add --enable-cet.
11575 * configure: Regenerated.
11576 * elf/Makefille (all-built-dso): Add a comment.
11577 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
11578 Include <dl-prop.h>.
11579 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
11580 segment.
11581 * elf/dl-open.c: Include <dl-prop.h>.
11582 (dl_open_worker): Call _dl_open_check.
11583 * elf/rtld.c: Include <dl-prop.h>.
11584 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
11585 _rtld_main_check.
11586 * sysdeps/generic/dl-prop.h: New file.
11587 * sysdeps/i386/dl-cet.c: Likewise.
11588 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
11589 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
11590 * sysdeps/x86/cet-tunables.h: Likewise.
11591 * sysdeps/x86/check-cet.awk: Likewise.
11592 * sysdeps/x86/configure: Likewise.
11593 * sysdeps/x86/configure.ac: Likewise.
11594 * sysdeps/x86/dl-cet.c: Likewise.
11595 * sysdeps/x86/dl-procruntime.c: Likewise.
11596 * sysdeps/x86/dl-prop.h: Likewise.
11597 * sysdeps/x86/libc-start.h: Likewise.
11598 * sysdeps/x86/link_map.h: Likewise.
11599 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
11600 _CET_ENDBR.
11601 (_dl_runtime_profile): Likewise.
11602 (_dl_runtime_resolve_shstk): New.
11603 (_dl_runtime_profile_shstk): Likewise.
11604 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
11605 if CET is enabled.
11606 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
11607 (CFLAGS-.os): Likewise.
11608 (CFLAGS-.op): Likewise.
11609 (CFLAGS-.oS): Likewise.
11610 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
11611 is enabled.
11612 (tests-special): Add $(objpfx)check-cet.out.
11613 (cet-built-dso): New.
11614 (+$(cet-built-dso:=.note)): Likewise.
11615 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
11616 ($(objpfx)check-cet.out): New.
11617 (generated): Add check-cet.out.
11618 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
11619 <cet-tunables.h>.
11620 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
11621 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11622 (init_cpu_features): Call get_cet_status to check CET status
11623 and update dl_x86_feature_1 with CET status. Call
11624 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
11625 (set_x86_shstk). Disable and lock CET in libc.a.
11626 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
11627 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
11628 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
11629 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
11630 (_CET_ENDBR): Define if not defined.
11631 (ENTRY): Add _CET_ENDBR.
11632 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
11633 x86_shstk.
11634 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
11635 _CET_ENDBR.
11636 (_dl_runtime_profile): Likewise.
11637
11638 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
11639
11640 [BZ #21895]
11641 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
11642 restore r2 on longjmp.
11643 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
11644 test list.
11645 Added rules to build test tst-setjmp-bug21895-static.
11646 Added module setjmp-bug21895 and rules to build a shared object from it.
11647 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
11648 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
11649
11650 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
11651
11652 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
11653 * benchtests/bench-strstr.c: Likewise.
11654 * string/memmem.c (FASTSEARCH): Define.
11655 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
11656 Add support for FASTSEARCH.
11657 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
11658 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
11659 (FASTSEARCH): Define.
11660 * string/test-strcasestr.c: Rename __strnlen to strnlen.
11661 * string/test-strstr.c: Likewise.
11662
11663 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
11664
11665 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
11666 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
11667
11668 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
11669 H.J. Lu <hongjiu.lu@intel.com>
11670
11671 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
11672 (__longjmp): Restore shadow stack pointer if shadow stack is
11673 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11674 isn't defined for __longjmp_cancel.
11675 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
11676 (_setjmp): Save shadow stack pointer if shadow stack is enabled
11677 and SHADOW_STACK_POINTER_OFFSET is defined.
11678 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
11679 (setjmp): Save shadow stack pointer if shadow stack is enabled
11680 and SHADOW_STACK_POINTER_OFFSET is defined.
11681 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
11682 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11683 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11684 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
11685 <jmp_buf-ssp.h>.
11686 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11687 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11688 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
11689 Remove jmp_buf-ssp.sym.
11690 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
11691 <jmp_buf-ssp.h>.
11692 (____longjmp_chk): Restore shadow stack pointer if shadow stack
11693 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11694 * sysdeps/x86/Makefile (gen-as-const-headers): Add
11695 jmp_buf-ssp.sym.
11696 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
11697 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
11698 (__longjmp): Restore shadow stack pointer if shadow stack is
11699 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
11700 isn't defined for __longjmp_cancel.
11701 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
11702 (__sigsetjmp): Save shadow stack pointer if shadow stack is
11703 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
11704
11705 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
11706
11707 [BZ #22563]
11708 * nptl/pthread_create.c: Include <tls-setup.h>.
11709 (__pthread_create_2_1): Call tls_setup_tcbhead.
11710 * sysdeps/generic/tls-setup.h: New file.
11711 * sysdeps/x86/nptl/tls-setup.h: Likewise.
11712 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
11713 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
11714 Likewise.
11715 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
11716 to feature_1.
11717 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11718 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
11719 (X86_FEATURE_1_SHSTK): Likewise.
11720 (CET_ENABLED): Likewise.
11721 (IBT_ENABLED): Likewise.
11722 (SHSTK_ENABLED): Likewise.
11723
11724 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
11725
11726 [BZ #23208]
11727 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
11728 (LOCALES): Likewise.
11729 * localedata/dsb_DE.UTF-8.in: New file.
11730 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
11731
11732 2018-07-12 Florian Weimer <fweimer@redhat.com>
11733
11734 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
11735 __mprotect, not mprotect.
11736
11737 2018-07-11 Florian Weimer <fweimer@redhat.com>
11738
11739 * io/Makefile (headers): Add bits/statx.h.
11740
11741 2018-07-10 Mike FABIAN <mfabian@redhat.com>
11742
11743 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
11744 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
11745 and headers.
11746 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
11747 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
11748 for utf8_gen.py
11749
11750 2018-07-10 Florian Weimer <fweimer@redhat.com>
11751
11752 * io/Makefile (routines): Add statx.
11753 (tests-internal): Add tst-statx.
11754 * io/Versions (GLIBC_2.28): Export statx.
11755 * io/bits/statx.h: New file.
11756 * io/sys/stat.h [__USE_GNU]: Include it.
11757 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
11758 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
11759 Define.
11760 * io/statx.c: New file.
11761 * io/statx_generic.: Likewise.
11762 * io/tst-statx.: Likewise.
11763 * include/bits/statx.h: Likewise.
11764 * sysdeps/unix/sysv/linux/kernel-features.h
11765 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
11766 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11767 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
11768 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
11769 Undefine.
11770 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11771 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
11772 * sysdeps/unix/sysv/linux/statx.c: New file.
11773 * manual/filesys.texi: Note that statx is undocumented.
11774 * sysdeps/**/libc*.abilist: Update.
11775
11776 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11777
11778 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
11779 a kernel issue which lead to test failure in some cases.
11780
11781 2018-07-10 Florian Weimer <fweimer@redhat.com>
11782
11783 [BZ #23036]
11784 * posix/regexec.c (check_node_accept_bytes): When comparing
11785 weights, do not compare an extra byte after the end of the
11786 weights.
11787
11788 2018-07-10 Florian Weimer <fweimer@redhat.com>
11789
11790 * libio/readline.c: Fix copyright year.
11791 * libio/tst-readline.c Likewise.
11792 * nss/tst-nss-files-hosts-getent.c: Likewise.
11793
11794 2018-07-06 Florian Weimer <fweimer@redhat.com>
11795
11796 [BZ #18991]
11797 * nss/nss_files/files-XXX.c (internal_getent): Use
11798 __libc_readline_unlocked. Seek back to the start of the line if
11799 parsing failes with ERANGE.
11800 (get_contents_ret, get_contents): Remove.
11801 * nss/tst-nss-files-hosts-getent.c: New file.
11802 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
11803 (tst-nss-files-hosts-getent): Link with -ldl.
11804
11805 2018-07-06 Florian Weimer <fweimer@redhat.com>
11806
11807 * include/stdio.h (__libc_readline_unlocked): Declare.
11808 (__ftello64, __fseeko64): Declare aliases.
11809 * libio/readline.c: New file.
11810 * libio/tst-readline.c: Likewise.
11811 (routines): Add readline.
11812 (tests-internal): Add tst-readlime.
11813 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
11814 __libc_readline_unlocked.
11815 * libio/fseeko.c (__fseeko): Rename from fseeko.
11816 (fseeko): Add alias.
11817 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
11818 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
11819 (fseeko64): Add alias.
11820 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
11821 * libio/ftello64.c (__ftello64): Rename from ftello64.
11822 (ftello64): Add alias.
11823
11824 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11825
11826 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
11827 HWCAP_ATOMICS.
11828
11829 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
11830
11831 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
11832 Use dl_hwcap without masking.
11833 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
11834 Remove HWCAP_CPUID.
11835
11836 2018-07-06 Florian Weimer <fweimer@redhat.com>
11837
11838 * conform/conformtest.pl (checknamespace): Escape literal braces
11839 in regular expressions.
11840
11841 2018-07-06 Amit Pawar <amit.pawar@amd.com>
11842
11843 * sysdeps/x86/cpu-features.c (get_common_indeces):
11844 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
11845 * sysdeps/x86/cpu-features.c (init_cpu_features):
11846 AVX_Fast_Unaligned_Load is disabled for Excavator core.
11847
11848 2018-07-05 Florian Weimer <fweimer@redhat.com>
11849
11850 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
11851 protector.
11852 (CFLAGS-elf-init.oS): Likewise.
11853
11854 2018-07-05 Florian Weimer <fweimer@redhat.com>
11855 Carlos O'Donell <carlos@redhat.com>
11856
11857 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
11858 $(no-stack-protector). stack_chk_fail_local.c can be compiled
11859 with stack protector enabled because there is no risk of infinite
11860 recursion.
11861
11862 2018-07-05 Maciej W. Rozycki <macro@mips.com>
11863
11864 [BZ #19818]
11865 [BZ #23307]
11866 * libc-abis (ABSOLUTE): New ABI.
11867 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
11868 * NEWS: Mention the new ABI.
11869
11870 2018-07-05 Florian Weimer <fweimer@redhat.com>
11871
11872 [BZ # 17662]
11873 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
11874 (RENAME_WHITEOUT): Define.
11875 [__USE_GNU] (renameat2): Declare.
11876 * stdio-common/Makefile (routines): Add renameat2.
11877 (tests): Add tst-renameat2.
11878 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
11879 * stdio-common/renameat2.c: New file.
11880 * stdio-common/tst-renameat2.c: Likewise.
11881 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
11882 * manual/filesys.texi (Temporary Files): Note that renameat2 is
11883 undocumented.
11884 * sysdeps/unix/sysv/linux/kernel-features.h
11885 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
11886 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
11887 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11888 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11889 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
11890 * sysdeps/unix/sysv/linux/sh/kernel-features.h
11891 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
11892 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
11893 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
11894 * include/stdio.h (__renameat): Add alias for renameat.
11895 * stdio-common/renameat.c (__renameat): Rename from renameat.
11896 Add hidden definition and alias.
11897 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
11898 * sysdeps/mach/hurd/renameat.c: Likewise.
11899 * sysdeps/**/libc*.abilist: Add renameat2.
11900
11901 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11902
11903 * posix/bug-regex33.c: Fix build after regex sync.
11904
11905 2018-07-04 Carlos O'Donell <carlos@redhat.com>
11906
11907 [BZ #23164]
11908 * localedata/tst-langinfo-setlocale.c: New file.
11909 * localedata/tst-langinfo-setlocale-static.c: New file.
11910 * localedata/tst-langinfo-newlocale.c: New file.
11911 * localedata/tst-langinfo-newlocale-static.c: New file.
11912 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
11913 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
11914 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
11915 (tests-static): Remove tst-langinfo-static. Add
11916 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
11917 (tests-special): Remove $(objpfx)tst-langinfo.out,
11918 $(objpfx)tst-langinfo-static.out. Add
11919 $(objpfx)tst-langinfo-setlocale.out,
11920 $(objpfx)tst-langinfo-newlocale.out,
11921 $(objpfx)tst-langinfo-setlocale-static.out,
11922 $(objpfx)tst-langinfo-newlocale-static.out.
11923 ($(objpfx)tst-langinfo.out): Remove.
11924 ($(objpfx)tst-langinfo-static.out): Remove.
11925 ($(objpfx)tst-langinfo-newlocale.out): New target.
11926 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
11927 (test-xfail-tst-langinfo-newlocale-static): Add.
11928 ($(objpfx)tst-langinfo-setlocale.out): New target.
11929 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
11930 * localedata/tst-langinfo.c: Call test_locale.
11931 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
11932 data.
11933
11934 2018-07-04 Florian Weimer <fweimer@redhat.com>
11935
11936 testrun.sh: Implement --tool=strace, --tool=valgrind
11937 * Makefile (testrun-script): Define variable.
11938 (testrun.sh): Use variable.
11939 * manual/install.texi (Tools for Compilation): make 4.0 or later
11940 is required.
11941 * configure.ac: Check for make 4.0 or later.
11942 * INSTALL: Regenerate.
11943 * configure: Likewise.
11944
11945 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11946
11947 [BZ #23233]
11948 [BZ #21163]
11949 [BZ #18986]
11950 [BZ #13762]
11951 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
11952 * posix/PCRE.tests: Remove invalid test.
11953 * posix/bug-regex28.c: Fix expected values for used syntax.
11954 * posix/bug-regex37.c: New file.
11955 * posix/bug-regex38.c: Likewise.
11956 * posix/regcomp.c: Sync with gnulib.
11957 * posix/regex.c: Likewise.
11958 * posix/regex.h: Likewise.
11959 * posix/regex_internal.c: Likewise.
11960 * posix/regex_internal.h: Likewise.
11961 * posix/regexec.c: Likewise.
11962
11963 2018-06-26 Mike FABIAN <mfabian@redhat.com>
11964
11965 [BZ #23308]
11966 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
11967 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
11968 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
11969 * localedata/unicode-gen/PropList.txt: likewise.
11970 * localedata/unicode-gen/UnicodeData.txt: likewise.
11971 * localedata/charmaps/UTF-8: Regenerate.
11972 * localedata/locales/i18n_ctype: likewise.
11973 * localedata/locales/tr_TR: likewise.
11974 * localedata/locales/translit_circle: likewise.
11975 * localedata/locales/translit_cjk_compat: likewise.
11976 * localedata/locales/translit_combining: likewise.
11977 * localedata/locales/translit_compat: likewise.
11978 * localedata/locales/translit_font: likewise.
11979 * localedata/locales/translit_fraction: likewise.
11980
11981 2018-07-03 Florian Weimer <fweimer@redhat.com>
11982
11983 [BZ #23363]
11984 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
11985 * stdio-common/tst-printf.sh: Adjust expected output.
11986 * LICENSES: Update.
11987
11988 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11989
11990 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
11991 symbol.
11992
11993 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11994
11995 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
11996 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
11997 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
11998 * stdio-common/tst-printfsz-islongdouble.c: New file.
11999 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
12000 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
12001 [subdir == stdio-common] (routines): Add ieee128-printf_size.
12002 [subdir == stdio-common] (tests-internal): Add
12003 test-printf-size-ieee128, and test-printf-size-ibm128.
12004 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
12005 (CFLAGS-test-printf-size-ibm128.c): New variables.
12006 [subdir == stdio-common] (tests-special): Add
12007 $(objpfx)test-printf-size-ieee128.out and
12008 $(objpfx)test-printf-size-ibm128.out.
12009 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
12010 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
12011 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
12012 __printf_sizeieee128.
12013 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
12014 New file.
12015 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
12016 Likewise.
12017 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
12018 Likewise.
12019
12020 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
12021
12022 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
12023 (exp2f_inline): Likewise.
12024 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
12025 (__math_uflowf): Likewise.
12026 (__math_may_uflowf): Likewise.
12027 (__math_divzerof): Likewise.
12028 (__math_invalidf): Likewise.
12029 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
12030 (__math_oflowf): Likewise.
12031 (__math_uflowf): Likewise.
12032 (__math_may_uflowf): Likewise.
12033 (__math_divzerof): Likewise.
12034 (__math_invalidf): Likewise.
12035
12036 2018-06-29 DJ Delorie <dj@redhat.com>
12037 Carlos O'Donell <carlos@redhat.com>
12038
12039 [BZ #23329]
12040 * include/libc-symbols.h: Comment the freeres framework.
12041 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
12042 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
12043 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
12044 * dlfcn/dlerror.c: Include libc-symbols.h
12045 (__dlerror_main_freeres): New function.
12046 * dlfcn/dlfreeres.c: New file.
12047 * dlfcn/sdlfreeres.c: New file.
12048 * include/dlfcn.h: Declare __dlerror_main_freeres.
12049 * malloc/set-freeres.c: Declare __libdl_freeres, and
12050 __libpthread_freeres.
12051 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
12052 the releavant libraries are loaded.
12053 * malloc/thread-freeres.c: Add comments.
12054 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
12055 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
12056 * nptl/allocatestack.c (__nptl_free_stacks): New function.
12057 (__free_stacks): Rename to...
12058 (free_stacks): ...this. Mark static.
12059 (queue_stack): Call free_stacks.
12060 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
12061 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
12062 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
12063 ptr_freeres element from struct.
12064 (pthread_functions): Remove .ptr_freeres from struct initializer.
12065 [SHARED] (nptl_freeres): Remove.
12066 * nptl/nptlfreeres.c: New file.
12067 * nptl/pthreadP.h
12068 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
12069 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
12070 attribute_hidden.
12071 (__free_stacks): Rename to...
12072 (__nptl_stacks_freeres): ...this.
12073 (__shm_directory_freeres): Declare.
12074 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
12075 (__nptl_unwind_freeres): ...this.
12076 * resolv/res-close.c: Add comment.
12077 * resolv/resolv_conf.c: Include libc-symbols.h.
12078 * string/strerror_l.c: Include libc-symbols.h.
12079 * sunrpc/rpc_thread.c: Include libc-symbols.h.
12080 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
12081 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
12082 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
12083
12084 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12085
12086 * stdlib/tst-strfmon_l.c: Add tests for long double.
12087
12088 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
12089
12090 [BZ #23208]
12091 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
12092 * localedata/locales/dsb_DE: New file.
12093
12094 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12095
12096 [BZ #23140]
12097 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
12098 genitive case).
12099 (alt_mon): New entry, import from CLDR (nominative case).
12100
12101 2018-06-29 Sylvain Lesage <severo@rednegra.net>
12102
12103 [BZ #22996]
12104 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
12105
12106 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
12107
12108 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12109 Use vector registers.
12110
12111 * sysdeps/aarch64/multiarch/memmove_falkor.S
12112 (__memcpy_falkor): Use vector registers.
12113
12114 2018-06-29 Martin Sebor <msebor@redhat.com>
12115
12116 * manual/stdio.texi (Customizing Printf): Mention interaction
12117 with GCC built-ins.
12118
12119 2018-06-29 Maciej W. Rozycki <macro@mips.com>
12120
12121 [BZ #23307]
12122 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
12123 `st_value' is 0 if `st_shndx' is SHN_ABS.
12124 * elf/tst-absolute-zero.c: New file.
12125 * elf/tst-absolute-zero-lib.c: New file.
12126 * elf/tst-absolute-zero-lib.lds: New file.
12127 * elf/Makefile (tests): Add `tst-absolute-zero'.
12128 (modules-names): Add `tst-absolute-zero-lib'.
12129 (LDLIBS-tst-absolute-zero-lib.so): New variable.
12130 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
12131 ($(objpfx)tst-absolute-zero: New dependency.
12132
12133 2018-06-29 Zack Weinberg <zackw@panix.com>
12134
12135 * configure.ac: New command-line option --disable-crypt.
12136 Force --disable-nss-crypt when --disable-crypt is given, with a
12137 warning if it was explicitly enabled.
12138 * configure: Regenerate.
12139 * config.make.in: New boolean substitution variable $(build-crypt).
12140 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
12141 when $(build-crypt).
12142 * manual/install.texi: Document --disable-crypt.
12143 * INSTALL: Regenerate.
12144
12145 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
12146 which is never set.
12147 * conform/Makefile: Only include libcrypt.a in
12148 linknamespace-libs-xsi and linknamespace-libs-XPG4
12149 when $(build-crypt).
12150 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
12151 USE_CRYPT to 1 when $(build-crypt).
12152 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
12153 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
12154 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
12155
12156 2018-06-29 Zack Weinberg <zackw@panix.com>
12157
12158 * crypt/crypt.h, posix/unistd.h: Update comments and
12159 prototypes for crypt and crypt_r.
12160
12161 * manual/crypt.texi (Cryptographic Functions): New initial
12162 exposition.
12163 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
12164 (Unpredictable Bytes): Improve initial exposition. Clarify error
12165 behavior of getentropy and getrandom.
12166 * manual/examples/genpass.c: Generate a salt using getentropy
12167 instead of the current time. Use hash $5$ (SHA-2-256).
12168 * manual/examples/testpass.c: Demonstrate validation against
12169 hashes generated with three different one-way functions.
12170
12171 * manual/intro.texi: crypt.texi does not need an overview
12172 anymore.
12173
12174 * manual/nss.texi, manual/memory.texi, manual/socket.texi
12175 * manual/terminal.texi: Consistently refer to "passphrases"
12176 * instead of "passwords", and to the "user database" instead
12177 * of the "password database".
12178 * manual/users.texi: Similarly. Add notes about how actual
12179 passphrase hashes are now stored in the shadow database.
12180 Remove 20-year-old junk todo note.
12181
12182 2018-06-29 Zack Weinberg <zackw@panix.com>
12183
12184 * manual/crypt.texi: Use a normal top-level @node declaration.
12185 Move most of the introductory text to the 'crypt' section.
12186 Move the example programs below the @deftypefun for 'crypt_r'.
12187 Move the 'getpass' section...
12188 * manual/terminal.texi: ...here.
12189
12190 2018-06-29 Zack Weinberg <zackw@panix.com>
12191 Florian Weimer <fweimer@redhat.com>
12192
12193 * posix/unistd.h: Do not declare encrypt.
12194 (_XOPEN_CRYPT): Remove macro definition.
12195 (crypt): Declare only for _USE_MISC.
12196 * stdlib/stdlib.h: Do not declare setkey.
12197 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
12198 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
12199
12200 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
12201 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
12202 into compat symbols. Don't define initial_perm if it's not
12203 going to be used.
12204 * crypt/cert.c: Link explicitly with the expected versions for
12205 setkey and encrypt. If they are not available at all, mark
12206 the test as unsupported.
12207
12208 * sunrpc/des_crypt.c: Unconditionally block linkage with
12209 cbc_crypt and ecb_crypt for new binaries.
12210 * sunrpc/des_soft.c: Unconditionally block linkage with
12211 des_setparity for new binaries.
12212
12213 * manual/crypt.texi: Remove the entire "DES Encryption"
12214 section. Also remove the paragraph talking about FIPS 140-2
12215 from the introduction.
12216 * manual/string.texi (strfry, memfrob): Revise. Recommend use
12217 of libgcrypt for "real" encryption, not DES.
12218 * manual/conf.texi (Constants for Sysconf): Mention that
12219 _XOPEN_CRYPT is no longer impelemented.
12220
12221 * conform/data/unistd.h-data: Remove crypt function declaration.
12222
12223 2018-06-29 Florian Weimer <fweimer@redhat.com>
12224
12225 [BZ #23351]
12226 * malloc/hooks.c: Update comments on restoring of dumped heaps.
12227 (disallow_malloc_check): Remove variable.
12228 (__malloc_check_init): Adjust.
12229 (malloc_set_state): Update comment.
12230 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
12231 declarations.
12232
12233 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
12234
12235 [BZ #23140]
12236 * localedata/locales/ast_ES (mon): Rename to...
12237 (alt_mon): This.
12238 (mon): Import from CLDR (genitive case).
12239
12240 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
12241 Jakub Sitnicki <jkbs@redhat.com>
12242
12243 [BZ #21812]
12244 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
12245 on NLM_F_DUMP_INTR.
12246
12247 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
12248
12249 * manual/llio.texi: Remove spurious space.
12250
12251 2018-06-28 Florian Weimer <fweimer@redhat.com>
12252
12253 [BZ #23349]
12254 * time/bits/types/struct_timespec.h: Change header inclusion guard to
12255 _STRUCT_TIMESPEC.
12256
12257 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
12258
12259 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
12260 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
12261 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
12262 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
12263 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
12264 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
12265 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
12266
12267 2018-06-27 Maciej W. Rozycki <macro@mips.com>
12268
12269 [BZ #23266]
12270 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
12271 Copy and null-terminate entries that are not terminated, in
12272 addition to empty ones.
12273
12274 2018-06-27 Florian Weimer <fweimer@redhat.com>
12275
12276 [BZ #18023]
12277 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
12278 (extend_alloca_account): Remove.
12279 * manual/stdio.texi (Variable Arguments Output): Update comment.
12280
12281 2018-06-27 Joseph Myers <joseph@codesourcery.com>
12282
12283 * nptl/sockperf.c: Remove file.
12284
12285 2018-06-27 Florian Weimer <fweimer@redhat.com>
12286
12287 [BZ #18023]
12288 * elf/dl-deps.c (_dl_map_object_deps): Use struct
12289 scratch_buffer instead of extend_alloca.
12290
12291 2018-06-27 Florian Weimer <fweimer@redhat.com>
12292
12293 [BZ #18023]
12294 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
12295 scratch_buffer instead of extend_alloca. Update comments.
12296
12297 2018-06-27 Florian Weimer <fweimer@redhat.com>
12298
12299 [BZ #18023]
12300 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
12301 instead of extend_alloca.
12302
12303 2018-06-26 Joseph Myers <joseph@codesourcery.com>
12304
12305 [BZ #13888]
12306 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
12307 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
12308 /tmp.
12309 * scripts/test-installation.pl: Put temporary files in build
12310 directory, not /tmp.
12311 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
12312 (CFLAGS-bug4.c): Likewise.
12313 (CFLAGS-bug5.c): Likewise.
12314 (CFLAGS-test-fseek.c): Likewise.
12315 (CFLAGS-test-popen.c): Likewise.
12316 (CFLAGS-test_rdwr.c): Likewise.
12317 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
12318 /tmp.
12319 * stdio-common/bug4.c (main): Likewise.
12320 * stdio-common/bug5.c (main): Likewise.
12321 * stdio-common/test-fseek.c (TESTFILE): Likewise.
12322 * stdio-common/test-popen.c (do_test): Likewise.
12323 * stdio-common/test_rdwr.c (main): Likewise.
12324
12325 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
12326
12327 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
12328 (sem_open): Set sem.newsem.pad to zero for valgrind.
12329
12330 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12331
12332 [BZ #20251]
12333 * NEWS: Mention fcntl64 addition.
12334 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
12335 * login/utmp_file.c: Likewise.
12336 * sysdeps/posix/fdopendir.c: Likewise.
12337 * sysdeps/posix/opendir.c: Likewise.
12338 * sysdeps/unix/pt-fcntl.c: Likewise.
12339 * include/fcntl.h (__libc_fcntl64, __fcntl64,
12340 __fcntl64_nocancel_adjusted): New prototype.
12341 (__fcntl_nocancel_adjusted): Remove prototype.
12342 * io/Makefile (routines): Add fcntl64.
12343 (CFLAGS-fcntl64.c): New rule.
12344 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
12345 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
12346 * io/fcntl.h (fcntl64): Add prototype and redirect if
12347 __USE_FILE_OFFSET64 is defined.
12348 * io/fcntl64.c: New file.
12349 * manual/llio.text: Add a note for which commands fcntl acts a
12350 cancellation point.
12351 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
12352 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
12353 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
12354 New symbols.
12355 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
12356 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
12357 non-LFS case.
12358 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
12359 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
12360 to __fcntl64_nocancel.
12361 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
12362 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
12363 to __fcntl64_nocancel.
12364 * sysdeps/generic/not-cancel.h: Likewise.
12365 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
12366 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
12367 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
12368 (fcntl64): New symbol.
12369 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
12380 fcntl64): Likewise.
12381 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
12383 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
12391 Likewise.
12392 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12393 Likewise.
12394 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12397
12398 2018-06-26 Florian Weimer <fweimer@redhat.com>
12399
12400 Run thread shutdown functions in an explicit order.
12401 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
12402 definition.
12403 (__libc_thread_freeres): Call thread shutdown functions
12404 explicitly.
12405 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
12406 * include/string.h (__strerror_thread_freeres): Declare.
12407 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
12408 arena_thread_freeres. No longer static. Remove thread shutdown
12409 hook registration.
12410 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
12411 Declare.
12412 * resolv/res-close.c (__res_thread_freeres): Renamed from
12413 res_thread_freeres. No longer static. Remove thread shutdown
12414 hook registration.
12415 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
12416 * resolv/resolv_conf.c (freeres): Remove incorrect section
12417 attribute and use libc_freeres_fn.
12418 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
12419 strerror_thread_freeres. No longer static. Remove thread
12420 shutdown hook registration.
12421 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
12422 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
12423 shutdown hook registration.
12424 * Makerules (shlib.lds): Do not provide section boundary symbols
12425 for __libc_thread_subfreeres.
12426 * manual/memory.texi (Basic Allocation): Update comment.
12427
12428 2018-06-26 Florian Weimer <fweimer@redhat.com>
12429
12430 Remove always-defined _RPC_THREAD_SAFE_ macro.
12431 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
12432 Do not define _RPC_THREAD_SAFE_.
12433 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
12434 conditional.
12435 * sunrpc/clnt_perr.c: Likewise.
12436 * sunrpc/clnt_raw.c: Likewise.
12437 * sunrpc/clnt_simp.c: Likewise.
12438 * sunrpc/key_call.c: Likewise.
12439 * sunrpc/rpc_common.c: Likewise.
12440 * sunrpc/rpc_main.c: Likewise.
12441 * sunrpc/rpc_thread.c: Likewise.
12442 * sunrpc/svc.c: Likewise.
12443 * sunrpc/svc_raw.c: Likewise.
12444 * sunrpc/svc_simple.c: Likewise.
12445 * sumrpc/svcauth_des.c: Likewise.
12446
12447 2018-06-26 Florian Weimer <fweimer@redhat.com>
12448
12449 * libio/Makefile (tests-internal): Add tst-vtables,
12450 tst-vtables-interposed.
12451 * libio/tst-vtables.c: New file.
12452 * libio/tst-vtables-common.c: Likewise.
12453 * libio/tst-vtables-interposed.c: Likewise.
12454
12455 2018-06-26 Florian Weimer <fweimer@redhat.com>
12456
12457 * support/support_test_main.c (support_test_main): Only call
12458 setvbuf if not disables.
12459 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
12460 * support/test-driver.h (struct test_config): Add no_setvbuf member.
12461
12462 2018-06-26 Florian Weimer <fweimer@redhat.com>
12463
12464 [BZ #23313]
12465 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
12466
12467 2018-06-25 Florian Weimer <fweimer@redhat.com>
12468
12469 [BZ #18023]
12470 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12471 Use struct scratch_buffer instead of extend_alloca.
12472
12473 2018-06-25 Florian Weimer <fweimer@redhat.com>
12474
12475 [BZ #18023]
12476 * nss/getent.c (initgroups_keys): Use dynarray instead of
12477 extend_alloca.
12478
12479 2018-06-25 Florian Weimer <fweimer@redhat.com>
12480
12481 [BZ #18023]
12482 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
12483 Use struct scratch_buffer instead of extend_alloca.
12484
12485 2018-06-25 Florian Weimer <fweimer@redhat.com>
12486
12487 [BZ #18023]
12488 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
12489 back to malloc directly, without stack allocations.
12490
12491 2018-06-25 Florian Weimer <fweimer@redhat.com>
12492
12493 [BZ #18023]
12494 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
12495 of extend_alloca.
12496
12497 2018-06-25 Florian Weimer <fweimer@redhat.com>
12498
12499 [BZ #18023]
12500 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
12501 of extend_alloca.
12502 * nscd/hstcache.c (addhstbyX): Likewise.
12503 * nscd/pwdcache.c (addpwbyX): Likewise.
12504 * nscd/servicescache.c (addservbyX): Likewise.
12505
12506 2018-06-25 Florian Weimer <fweimer@redhat.com>
12507
12508 [BZ #18023]
12509 * nscd/connections.c (read_cmdline): New function.
12510 (restart): Use it. Update comment.
12511
12512 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12513
12514 [BZ #23140]
12515 * localedata/locales/csb_PL (mon): Rename to...
12516 (alt_mon): This.
12517 (abmon): Rename to...
12518 (ab_alt_mon): This.
12519 (mon): Add with proper genitive forms, copy from Wikipedia.
12520 (abmon): Likewise.
12521
12522 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
12523
12524 [BZ #19485]
12525 * localedata/locales/csb_PL (mon): Fix typos:
12526 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
12527 (yesstr): Add, value is "jo".
12528 (nostr): Add, value is "nié".
12529
12530 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12531
12532 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
12533 all log1p and significand functions on m680x0.
12534 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
12535 of s_significand.c..
12536 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
12537 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
12538 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
12539 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
12540 s_log1p.c and include it..
12541
12542 2018-06-21 Vincent Chen <vincentc@andestech.com>
12543
12544 * elf/elf.h (R_NDS32_NONE): New define.
12545 (R_NDS32_32_RELA): Likewise.
12546 (R_NDS32_COPY): Likewise.
12547 (R_NDS32_GLOB_DAT): Likewise.
12548 (R_NDS32_JUMP_SLOT): Likewise.
12549 (R_NDS32_RELATIVE): Likewise.
12550 (R_NDS32_TLS_TPOFF): Likewise.
12551 (R_NDS32_TLS_DESC): Likewise.
12552
12553 2018-06-21 Mark Wielaard <mark@klomp.org>
12554
12555 * elf/elf.h (R_BPF_MAP_FD): Removed.
12556 (R_BPF_64_64, R_BPF_64_32): New.
12557
12558 2018-06-21 Florian Weimer <fweimer@redhat.com>
12559
12560 [BZ #23253]
12561 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
12562 Renamed from libc_feholdsetround_ctx.
12563 (default_libc_feresetround_ctx): Renamed from
12564 libc_feresetround_ctx.
12565 (default_libc_feholdsetround_noex_ctx): Renamed from
12566 libc_feholdsetround_noex_ctx.
12567 (default_libc_feresetround_noex_ctx): Renamed from
12568 libc_feresetround_noex_ctx.
12569 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
12570 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
12571 forwardning to the old implementations under the new names.
12572 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
12573 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
12574 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
12575 (libc_feresetround_ctx): Forward to default implements for i386
12576 and MATH_SET_BOTH_ROUNDING_MODES.
12577 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
12578 Add -DMATH_SET_BOTH_ROUNDING_MODES.
12579
12580 2018-06-20 Joseph Myers <joseph@codesourcery.com>
12581
12582 * string/tst-cmp.c: Include <libc-diag.h>.
12583 (strncmp_max): Disable -Wstringop-overflow= around call to
12584 strncmp.
12585 (strncasecmp_max): Disable -Wstringop-overflow= around call to
12586 strncasecmp.
12587
12588 * string/bug-strpbrk1.c: Include <libc-diag.h>.
12589 (main): Disable -Wunused-value around call to strpbrk.
12590 * string/bug-strspn1.c: Include <libc-diag.h>.
12591 (main): Disable -Wunused-value around call to strspn.
12592
12593 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12594 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12595
12596 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
12597 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
12598
12599 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12600
12601 * math/Makefile (libm-calls): Move s_significandF to...
12602 (gen-libm-calls): ... here.
12603 * math/s_significand_template.c: New file.
12604 * math/s_significand.c: Removed.
12605 * math/s_significandf.c: Removed.
12606 * math/s_significandl.c: Removed.
12607 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
12608 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
12609
12610 * math/e_exp2_template.c (declare_mgen_finite_alias,
12611 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
12612 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
12613 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
12614
12615 2018-06-20 Florian Weimer <fweimer@redhat.com>
12616
12617 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
12618
12619 2018-06-19 Joseph Myers <joseph@codesourcery.com>
12620
12621 [BZ #23280]
12622 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
12623 floating-point number to strtod functions rather than possibly
12624 negating result of those functions.
12625 * stdio-common/tst-scanf-round.c: New file.
12626 * stdio-common/Makefile (tests): Add tst-scanf-round.
12627 ($(objpfx)tst-scanf-round): Depend on $(libm).
12628
12629 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
12630
12631 * sysdeps/mach/hurd/localplt.data: Move to...
12632 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
12633 R_386_GLOB_DAT like on Linux i386.
12634
12635 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12636
12637 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
12638 (SHM_STAT_ANY): New macro.
12639 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
12640 (SHM_STAT_ANY): Likewise.
12641 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
12642 (SHM_STAT_ANY): Likewise.
12643 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
12644 (SHM_STAT_ANY): Likewise.
12645 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
12646 (SHM_STAT_ANY): Likewise.
12647 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
12648 (SHM_STAT_ANY): Likewise.
12649 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
12650 (SHM_STAT_ANY): Likewise.
12651 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
12652 (SHM_STAT_ANY): Likewise.
12653 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
12654 (SHM_STAT_ANY): Likewise.
12655 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
12656 (SHM_STAT_ANY): Likewise.
12657 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
12658 (SHM_STAT_ANY): Likewise.
12659 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
12660 (SHM_STAT_ANY): Likewise.
12661
12662 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
12663 (SEM_STAT_ANY): New macro.
12664 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
12665 (SEM_STAT_ANY): Likewise.
12666 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
12667 (SEM_STAT_ANY): Likewise.
12668 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
12669 (SEM_STAT_ANY): Likewise.
12670 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
12671 (SEM_STAT_ANY): Likewise.
12672 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
12673 (SEM_STAT_ANY): Likewise.
12674 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
12675 (SEM_STAT_ANY): Likewise.
12676 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
12677 (SEM_STAT_ANY): Likewise.
12678 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
12679 (SEM_STAT_ANY): Likewise.
12680 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
12681 (SEM_STAT_ANY): Likewise.
12682
12683 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
12684 (MSG_STAT_ANY): New macro.
12685 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
12686 (MSG_STAT_ANY): Likewise.
12687 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
12688 (MSG_STAT_ANY): Likewise.
12689 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
12690 (MSG_STAT_ANY): Likewise.
12691 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
12692 (MSG_STAT_ANY): Likewise.
12693 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
12694 (MSG_STAT_ANY): Likewise.
12695 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
12696 (MSG_STAT_ANY): Likewise.
12697 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
12698 (MSG_STAT_ANY): Likewise.
12699 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
12700 (MSG_STAT_ANY): Likewise.
12701 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
12702 (MSG_STAT_ANY): Likewise.
12703
12704 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
12705 (MAP_TYPE): Change value to 0x2b.
12706
12707 2018-06-18 Florian Weimer <fweimer@redhat.com>
12708
12709 [BZ #15722]
12710 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
12711 socket with SOCK_CLOEXEC.
12712
12713 2018-06-18 Joseph Myers <joseph@codesourcery.com>
12714
12715 [BZ #23303]
12716 * sysdeps/powerpc/powerpc64/le/Makefile
12717 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
12718 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
12719 (gnulib-tests): Also add $(f128-loader-link) for
12720 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
12721
12722 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
12723
12724 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
12725 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
12726 of sendfile.
12727 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
12728 (sendfile64): New strong alias.
12729 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
12730 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
12731 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
12732 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
12733 attribute.
12734 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
12735 ___pthread_get_cleanup_stack.
12736 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
12737 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
12738 * mach/shortcut.awk: Make syscall stubs include
12739 <mach-shortcuts-hidden.h> and add hidden definition.
12740 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
12741 (__mach_msg): Add hidden prototype.
12742 * mach/msg.c: Include <mach.h>.
12743 (__mach_msg): Add hidden definition.
12744 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
12745 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
12746 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
12747 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
12748 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
12749 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
12750 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
12751 prototype and definition.
12752 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
12753 hidden target for _hurd_self_sigstate.
12754
12755 2018-06-15 Joseph Myers <joseph@codesourcery.com>
12756
12757 [BZ #23007]
12758 * stdlib/tst-strtod-nan-sign-main.c: New file.
12759 * stdlib/tst-strtod-nan-sign.c: Likewise.
12760 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
12761 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
12762 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
12763 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
12764 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
12765
12766 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
12767
12768 [BZ #23007]
12769 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
12770 appropriate sign.
12771
12772 2018-06-14 Florian Weimer <fweimer@redhat.com>
12773
12774 [BZ #23290]
12775 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
12776 that the result stays within the ISO-8859-1 range.
12777 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
12778 characters are defined in IBM273.
12779
12780 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
12781
12782 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
12783 __mach_task_self): Remove attribute_hidden.
12784
12785 2018-06-14 Joseph Myers <joseph@codesourcery.com>
12786
12787 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
12788 ignore -Wrestrict for one test.
12789
12790 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
12791 Szabolcs Nagy <szabolcs.nagy@arm.com>
12792
12793 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
12794
12795 2018-06-14 Florian Weimer <fweimer@redhat.com>
12796
12797 * scripts/update-abilist.sh: Accept empty list of files to patch.
12798
12799 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
12800
12801 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
12802 test-xfail-check-abi-libmachuser): Add.
12803 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
12804 __libc_read and __libc_write to __read and __write.
12805 * sysdeps/hurd/include/hurd/port.h: New file.
12806 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
12807 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
12808 __thread_switch, __evc_wait): Move declarations to...
12809 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
12810 attribute_hidden.
12811 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
12812 use PLT to call _hurd_self_sigstate.
12813
12814 2018-06-13 Joseph Myers <joseph@codesourcery.com>
12815
12816 [BZ #23279]
12817 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
12818 MAX_EXP as overflowing.
12819 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
12820 overflow flag.
12821 (round_str): Output also whether result overflows in each rounding
12822 mode.
12823 * stdlib/tst-strtod-round-data: Add more tests.
12824 * stdlib/tst-strtod-round-data.h: Regenerated.
12825 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
12826 (TEST): Handle extra arguments for overflow flags.
12827 (struct test_overflow): New type.
12828 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
12829 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
12830 (test_in_one_mode): Take argument with overflow information.
12831 (do_test): Update calls to test_in_one_mode.
12832
12833 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12834
12835 * elf/dl-load (_dl_dst_substitute): Correct comment.
12836 (_dl_dst_count): Likewise.
12837
12838 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
12839 lll_futex_timed_wait.
12840
12841 2018-06-12 Joseph Myers <joseph@codesourcery.com>
12842
12843 [BZ #23277]
12844 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
12845 attribute.
12846 * math/test-nan-const.c: New file.
12847 * math/Makefile (tests): Add test-nan-const.
12848 (CFLAGS-test-nan-const.c): New variable.
12849
12850 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12851
12852 * benchtests/scripts/compare_strings.py (process_results): Add
12853 funcs argument. Compare only functions which are selected.
12854 (main): Check if base function is among selected functions.
12855 Pass selected functions to process_results.
12856 (__main__): Add -f/--functions argument.
12857
12858 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
12859 Hongbo Zhang <hongbo.zhang@linaro.org>
12860
12861 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
12862 __memcpy_falkor for phecda core.
12863 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
12864 __memmove_falkor for phecda core.
12865 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
12866 __memset_falkor for phecda core.
12867 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
12868 for phecda core.
12869 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
12870 macro to identify phecda core.
12871
12872 2018-06-12 Carlos O'Donell <carlos@redhat.com>
12873 Andreas Schwab <schwab@suse.de>
12874 Dmitry V. Levin <ldv@altlinux.org>
12875 Florian Weimer <fweimer@redhat.com>
12876
12877 [BZ #23102]
12878 [BZ #21942]
12879 [BZ #18018]
12880 [BZ #23259]
12881 CVE-2011-0536
12882 * elf/dl-dst.h: Remove DL_DST_COUNT.
12883 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
12884 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
12885 (is_dst): Comment. Support ELF gABI.
12886 (_dl_dst_count): Comment. Simplify and count DSTs.
12887 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
12888 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
12889 locals.
12890
12891 2018-06-12 Zack Weinberg <zackw@panix.com>
12892
12893 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
12894 * sysdeps/unix/sysv/linux/dl-sysdep.c
12895 Include not-cancel.h. Use __close_nocancel instead of __close,
12896 __open64_nocancel instead of __open, __read_nocancel instead of
12897 __libc_read, and __write_nocancel instead of __libc_write.
12898
12899 * csu/check_fds.c (check_one_fd)
12900 * sysdeps/posix/fdopendir.c (__fdopendir)
12901 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
12902 instead of __fcntl and/or __libc_fcntl.
12903
12904 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
12905 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
12906 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
12907 Use __open64_nocancel instead of __open_nocancel.
12908
12909 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
12910 hidden_proto declarations to the end and issue them if either
12911 IS_IN(libc) or IS_IN(rtld).
12912 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
12913 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
12914 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
12915 read_nocancel, waitpid_nocancel, write_nocancel.
12916
12917 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
12918 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
12919 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
12920
12921 * nptl/pt-fcntl.c: New file.
12922 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
12923 (libpthread-routines): Add pt-fcntl.
12924 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
12925 (__libc_fcntl): Remove attribute_hidden.
12926 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
12927 __fcntl_nocancel_adjusted, not fcntl_common.
12928 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
12929 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
12930 to fcntl_nocancel.c.
12931 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
12933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
12934 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
12935
12936 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
12937 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
12938 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
12939 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
12940 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
12941 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
12942 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
12943 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
12944 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
12945 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
12946 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
12947 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
12948 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
12949 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
12950 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
12951 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
12952 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
12953 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
12954 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
12955 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
12956
12957 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
12958 libpthread-routines.
12959 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
12960 defines nothing.
12961
12962 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
12963 __libc_read, and __write instead of __libc_write. Define
12964 __open64 in addition to __open.
12965
12966 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
12967
12968 [BZ #23250]
12969 [BZ #10686]
12970 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
12971 to _private_tm[3] and add __glibc_reserved2.
12972 Add _Static_assert of offset of __private_ss == 0x30.
12973 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
12974 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
12975
12976 2018-06-12 Florian Weimer <fweimer@redhat.com>
12977
12978 x86: Make strncmp usable from rtld.
12979 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
12980 __strncmp_ia32 if in libc (and not in rtld).
12981 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
12982 strncmp if not in libc (and not to __strncmp_sse2).
12983
12984 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
12985
12986 [BZ #23140]
12987 * localedata/locales/gd_GB (mon): Rename to...
12988 (alt_mon): This.
12989 (mon): Import from CLDR (genitive case).
12990 * localedata/locales/hsb_DE (mon): Rename to...
12991 (alt_mon): This.
12992 (mon): Import from CLDR (genitive case).
12993 * localedata/locales/wa_BE (mon): Rename to...
12994 (alt_mon): This.
12995 (mon): Add, fill with the proper genitive forms, but CLDR data
12996 is incomplete; completed according to the comments in this file.
12997 (d_t_fmt): Do not use "di" before the month name, no longer needed.
12998
12999 * localedata/locales/wa_BE (country_name): Reword
13000 "Beljike" -> "Beldjike".
13001
13002 2018-06-11 Joseph Myers <joseph@codesourcery.com>
13003
13004 [BZ #23272]
13005 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
13006 cases of non-finite arguments.
13007 * math/libm-test-fma.inc (fma_test_data): Add more tests.
13008
13009 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
13010
13011 [BZ #23174]
13012 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
13013
13014 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13015
13016 [BZ #23264]
13017 * include/unistd.h (__execvpex): New prototype.
13018 * posix/Makefile (tests): Add tst-spawn4.
13019 (tests-internal): Add tst-spawn4-compat.
13020 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
13021 * posix/tst-spawn4-compat.c: New file.
13022 * posix/tst-spawn4.c: Likewise.
13023 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
13024 binaries as shell scripts.
13025 * sysdeps/posix/spawni.c (__spawni): Likewise.
13026
13027 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
13028
13029 [BZ #23145]
13030 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
13031 ($(all-built-dso:=.dynsym): New target.
13032 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
13033 ($(objpfx)check-initfini.out): New target.
13034 (generated): Add check-initfini.out.
13035 * scripts/check-initfini.awk: New file.
13036 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
13037 (_fini): Likewise.
13038 * sysdeps/alpha/crti.S (_init): Mark as hidden.
13039 (_fini): Likewise.
13040 * sysdeps/arm/crti.S (_init): Mark as hidden.
13041 (_fini): Likewise.
13042 * sysdeps/hppa/crti.S (_init): Mark as hidden.
13043 (_fini): Likewise.
13044 * sysdeps/i386/crti.S (_init): Mark as hidden.
13045 (_fini): Likewise.
13046 * sysdeps/ia64/crti.S (_init): Mark as hidden.
13047 (_fini): Likewise.
13048 * sysdeps/m68k/crti.S (_init): Mark as hidden.
13049 (_fini): Likewise.
13050 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
13051 (_fini): Likewise.
13052 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
13053 (_fini): Likewise.
13054 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
13055 (_fini): Likewise.
13056 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
13057 (_fini): Likewise.
13058 * sysdeps/nios2/crti.S (_init): Mark as hidden.
13059 (_fini): Likewise.
13060 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
13061 (_fini): Likewise.
13062 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
13063 (_fini): Likewise.
13064 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
13065 (_fini): Likewise.
13066 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
13067 (_fini): Likewise.
13068 * sysdeps/sh/crti.S (_init): Mark as hidden.
13069 (_fini): Likewise.
13070 * sysdeps/sparc/crti.S (_init): Mark as hidden.
13071 (_fini): Likewise.
13072 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
13073 (_fini): Likewise.
13074
13075 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13076
13077 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
13078 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
13079 and TF redirection to KFtype and KF only when the default
13080 long double type is not the IEEE 128-bit floating point type.
13081
13082 2018-06-05 Joseph Myers <joseph@codesourcery.com>
13083
13084 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
13085 macro.
13086 (HWCAP_USCAT): Likewise.
13087 (HWCAP_ILRCPC): Likewise.
13088 (HWCAP_FLAGM): Likewise.
13089 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13090 Increase to 28.
13091 (_dl_aarch64_cap_flags): Add new flag names.
13092
13093 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
13094 (MAP_FIXED_NOREPLACE): New macro.
13095 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
13096 (MAP_FIXED_NOREPLACE): Likewise.
13097 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
13098 (MAP_FIXED_NOREPLACE): Likewise.
13099 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
13100 (MAP_FIXED_NOREPLACE): Likewise.
13101 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
13102 (MAP_FIXED_NOREPLACE): Likewise.
13103 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
13104 (MAP_FIXED_NOREPLACE): Likewise.
13105 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
13106 (MAP_FIXED_NOREPLACE): Likewise.
13107 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
13108 (MAP_FIXED_NOREPLACE): Likewise.
13109 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
13110 (MAP_FIXED_NOREPLACE): Likewise.
13111 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
13112 (MAP_FIXED_NOREPLACE): Likewise.
13113 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
13114 (MAP_FIXED_NOREPLACE): Likewise.
13115 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
13116 (MAP_FIXED_NOREPLACE): Likewise.
13117 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
13118 (MAP_FIXED_NOREPLACE): Likewise.
13119 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
13120 (MAP_FIXED_NOREPLACE): Likewise.
13121 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
13122 (MAP_FIXED_NOREPLACE): Likewise.
13123
13124 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13125 version to 4.17.
13126
13127 2018-06-04 Joseph Myers <joseph@codesourcery.com>
13128
13129 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13130 version to 4.17
13131
13132 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13133
13134 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
13135 int.
13136 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
13137
13138 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13139
13140 * benchtests/scripts/compare_string.py: (process_results) Catch
13141 exception in non-existent base_func and catch exception in
13142 non-existent attribute.
13143 (parse_file) Catch exception if input file does not exist.
13144
13145 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13146
13147 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
13148 options to avoid diff calculation and omit header, respectively.
13149 (main): process --no-diff and --no-header
13150
13151 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13152 H.J. Lu <hongjiu.lu@intel.com>
13153
13154 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13155 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
13156 wcsncmp-sse2.
13157 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
13158 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
13159 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
13160 and __wcsncmp_sse2.
13161 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
13162 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
13163 AVX unaligned load is fast and vzeroupper is preferred.
13164 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
13165 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
13166 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
13167 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
13168 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
13169 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
13170 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
13171 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
13172 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
13173 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
13174 is undefined.
13175
13176 2018-06-01 Florian Weimer <fweimer@redhat.com>
13177
13178 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
13179 configuring with --disable-multi-arch, building with
13180 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
13181 Haswell-era CPU.
13182
13183 2018-06-01 Florian Weimer <fweimer@redhat.com>
13184
13185 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
13186 results from building with “-march=x86-64 -mtune=generic
13187 -mfpmath=sse” and running on a Haswell-era CPU.
13188
13189 2018-06-01 Joseph Myers <joseph@codesourcery.com>
13190
13191 [BZ #18473]
13192 * soft-fp/sqrttf2.c: Remove file.
13193 * soft-fp/sqrtdf2.c: Move to ....
13194 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
13195 <shlib-compat.h>.
13196 (__sqrtdf2): Make conditional on
13197 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13198 symbol.
13199 * soft-fp/sqrtsf2.c: Move to ....
13200 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
13201 <shlib-compat.h>.
13202 (__sqrtsf2): Make conditional on
13203 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
13204 symbol.
13205 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
13206 (gcc-double-routines): Remove sqrtdf2.
13207 (gcc-quad-routines): Remove sqrttf2.
13208 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13209 Do not filter out sqrtsf2 and sqrtdf2.
13210 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13211 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
13212
13213 2018-06-01 Florian Weimer <fweimer@redhat.com>
13214
13215 * sysdeps/generic/libcidn.abilist: Remove file.
13216
13217 2018-06-01 Florian Weimer <fweimer@redhat.com>
13218
13219 [BZ #23236]
13220 * libio/strfile.h (struct _IO_str_fields): Rename members to
13221 discourage their use and add comment.
13222 (_IO_STR_DYNAMIC): Remove unused macro.
13223 * libio/strops.c (_IO_str_init_static_internal): Do not use
13224 callback pointers. Call malloc and free.
13225 (_IO_str_overflow): Do not use callback pointers. Call malloc
13226 and free.
13227 (enlarge_userbuf): Likewise.
13228 (_IO_str_finish): Call free.
13229 * libio/wstrops.c (_IO_wstr_init_static): Initialize
13230 _allocate_buffer_unused.
13231 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
13232 and free.
13233 (enlarge_userbuf): Likewise.
13234 (_IO_wstr_finish): Call free.
13235 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
13236 _allocate_buffer_unused, _free_buffer_unused.
13237 * libio/memstream.c (__open_memstream): Likewise.
13238 * libio/vasprintf.c (_IO_vasprintf): Likewise.
13239 * libio/wmemstream.c (open_wmemstream): Likewise.
13240
13241 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
13242
13243 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
13244 AMD Ryzen 7 1800X.
13245
13246 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13247
13248 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
13249 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
13250 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
13251 New file.
13252 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
13253 Likewise.
13254 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
13255
13256 2018-05-29 Florian Weimer <fweimer@redhat.com>
13257
13258 * support/Makefile (libsupport-routines): Add
13259 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
13260 xpthread_barrierattr_setpshared.
13261 * support/xpthread_barrierattr_destroy.c: New file.
13262 * support/xpthread_barrierattr_init.c: Likewise.
13263 * support/xpthread_barrierattr_setpshared.c: Likewise.
13264
13265 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
13266
13267 [BZ #23206]
13268 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
13269 _r_debug and update DT_DEBUG for debugger.
13270
13271 2018-05-29 Florian Weimer <fweimer@redhat.com>
13272
13273 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
13274 (tst-strtod5i.out): Likewise.
13275
13276 2018-05-25 Joseph Myers <joseph@codesourcery.com>
13277
13278 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
13279 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
13280 (sparc64-quad-routines): New variable. Moved from ....
13281 [$(subdir) = soft-fp] (sysdep_routines): Add
13282 $(sparc64-quad-routines). Moved from ....
13283 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
13284 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
13285 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
13286 moved from ....
13287 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
13288 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
13289 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
13290 * sysdeps/sparc/sparc64/qp_add.c: ... here.
13291 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
13292 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
13293 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
13294 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
13295 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
13296 * sysdeps/sparc/sparc64/qp_div.c: ... here.
13297 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
13298 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
13299 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
13300 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
13301 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
13302 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
13303 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
13304 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
13305 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
13306 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
13307 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
13308 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
13309 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
13310 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
13311 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
13312 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
13313 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
13314 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
13315 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
13316 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
13317 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
13318 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
13319 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
13320 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
13321 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
13322 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
13323 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
13324 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
13325 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
13326 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
13327 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
13328 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
13329 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
13330 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
13331 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
13332 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
13333 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
13334 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
13335 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
13336 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
13337 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
13338 * sysdeps/sparc/sparc64/qp_util.c: ... here.
13339 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
13340 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
13341 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
13342 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
13343 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
13344 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
13345
13346 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
13347 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
13348 (sparc32-quad-routines): New variable. Moved from ....
13349 [$(subdir) = soft-fp] (sysdep_routines): Add
13350 $(sparc32-quad-routines). Moved from ....
13351 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
13352 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
13353 moved from ....
13354 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
13355 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
13356 * sysdeps/sparc/sparc32/q_add.c: ... here.
13357 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
13358 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
13359 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
13360 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
13361 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
13362 * sysdeps/sparc/sparc32/q_div.c: ... here.
13363 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
13364 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
13365 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
13366 * sysdeps/sparc/sparc32/q_feq.c: ... here.
13367 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
13368 * sysdeps/sparc/sparc32/q_fge.c: ... here.
13369 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
13370 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
13371 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
13372 * sysdeps/sparc/sparc32/q_fle.c: ... here.
13373 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
13374 * sysdeps/sparc/sparc32/q_flt.c: ... here.
13375 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
13376 * sysdeps/sparc/sparc32/q_fne.c: ... here.
13377 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
13378 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
13379 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
13380 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
13381 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
13382 * sysdeps/sparc/sparc32/q_mul.c: ... here.
13383 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
13384 * sysdeps/sparc/sparc32/q_neg.c: ... here.
13385 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
13386 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
13387 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
13388 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
13389 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
13390 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
13391 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
13392 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
13393 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
13394 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
13395 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
13396 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
13397 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
13398 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
13399 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
13400 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
13401 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
13402 * sysdeps/sparc/sparc32/q_sub.c: ... here.
13403 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
13404 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
13405 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
13406 * sysdeps/sparc/sparc32/q_util.c: ... here.
13407 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
13408 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
13409 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
13410 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
13411
13412 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13413 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13414
13415 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
13416 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
13417 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
13418 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
13419
13420 2018-05-24 Joseph Myers <joseph@codesourcery.com>
13421
13422 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
13423 powerpc/soft-fp.
13424 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
13425 Likewise.
13426 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
13427 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
13428
13429 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
13430
13431 [BZ #23171]
13432 * math/math.h [C++] (iseqsig): Fix parameter type for the long
13433 double version.
13434
13435 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13436
13437 * sysdeps/sh/Implies: Remove sh/soft-fp.
13438 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
13439 * sysdeps/sh/sfp-machine.h: ... here.
13440
13441 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13442
13443 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13444 (__mempcpy_erms): Skip zero length.
13445 (__memmove_erms): Likewise.
13446 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
13447 (__memset_erms): Likewise.
13448
13449 2018-05-23 Joseph Myers <joseph@codesourcery.com>
13450
13451 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
13452 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
13453 Add functions moved from ....
13454 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
13455 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
13456 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
13457 from ....
13458 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
13459 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
13460 * sysdeps/alpha/e_sqrtl.c: ... here.
13461 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
13462 * sysdeps/alpha/local-soft-fp.h: ... here.
13463 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
13464 * sysdeps/alpha/ots_add.c: ... here.
13465 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
13466 * sysdeps/alpha/ots_cmp.c: ... here.
13467 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
13468 * sysdeps/alpha/ots_cmpe.c: ... here.
13469 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
13470 * sysdeps/alpha/ots_cvtqux.c: ... here.
13471 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
13472 * sysdeps/alpha/ots_cvtqx.c: ... here.
13473 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
13474 * sysdeps/alpha/ots_cvttx.c: ... here.
13475 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
13476 * sysdeps/alpha/ots_cvtxq.c: ... here.
13477 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
13478 * sysdeps/alpha/ots_cvtxt.c: ... here.
13479 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
13480 * sysdeps/alpha/ots_div.c: ... here.
13481 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
13482 * sysdeps/alpha/ots_mul.c: ... here.
13483 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
13484 * sysdeps/alpha/ots_nintxq.c: ... here.
13485 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
13486 * sysdeps/alpha/ots_sub.c: ... here.
13487 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
13488 * sysdeps/alpha/sfp-machine.h: ... here.
13489
13490 2018-05-23 Florian Weimer <fweimer@redhat.com>
13491
13492 [BZ #19728]
13493 [BZ #19729]
13494 [BZ #22247]
13495 CVE-2016-6261
13496 CVE-2016-6263
13497 CVE-2017-14062
13498 Switch to extern IDNA implementation (libidn2).
13499 * libidn: Remove subdirectory.
13500 * LICENSES: Do not mention licensing conditions for the removed
13501 libidn code.
13502 * config.h.in (HAVE_LIBIDN): Remove.
13503 * include/dlfcn.h (__libc_dlopen): Update comment.
13504 * include/idna.h: Remove file.
13505 * inet/Makefile (routines): Add idna.
13506 (tests-static, tests-internal): Add tst-idna_name_classify.
13507 (LOCALES): Generate locales for tests.
13508 (tst-idna_name_classify.out): Depend on generated locales.
13509 * inet/idna_name_classify.c: New file.
13510 * inet/tst-idna_name_classify.c: Likewise.
13511 * inet/net-internal.h (__idna_to_dns_encoding)
13512 (__idna_from_dns_encoding): Declare.
13513 * inet/net-internal.h (enum idna_name_classification): Define.
13514 (__idna_name_classify): Declare.
13515 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
13516 __idna_from_dns_encoding.
13517 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
13518 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
13519 name as a fallback in case of encoding errors.
13520 (getnameinfo): Use DEPRECATED_NI_IDN.
13521 * inet/idna.c: New file.
13522 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
13523 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
13524 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
13525 (modules-names): Add tst-no-libidn2.
13526 (extra-test-objs): Add tst-no-libidn2.os.
13527 (LDFLAGS-tst-no-libidn2.so): Set soname.
13528 (LOCALES): Set, and generate locales.
13529 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
13530 (tst-resolv-ai_idn-latin1): Likewise.
13531 (tst-resolv-ai_idn-nolibidn2): Likewise.
13532 (tst-resolv-ai_idn.out): Depend on locales.
13533 (tst-resolv-ai_idn-latin1.out): Depend on locales.
13534 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
13535 tst-no-libidn2.so.
13536 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
13537 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
13538 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
13539 * resolv/tst-resolv-ai_idn.c: New file.
13540 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
13541 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
13542 * resolv/tst-no-libidn2.c: Likewise.
13543 * support/support_format_addrinfo.c (format_ai_flags): Do not
13544 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
13545 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
13546 (gaih_inet): Call __idna_to_dns_encoding and
13547 __idna_from_dns_encoding, and use the original (punycode) name if
13548 __idna_from_dns_encoding fails due to an encoding error.
13549 (getaddrinfo): Use DEPRECATED_AI_IDN.
13550 * sysdeps/unix/inet/Subdirs (libidn): Remove.
13551 * sysdeps/unix/inet/configure: Remove file.
13552 * sysdeps/unix/inet/configure.ac: Likewise.
13553
13554 2018-05-23 Florian Weimer <fweimer@redhat.com>
13555
13556 Implement allocate_once.
13557 * include/allocate_once.h: New file.
13558 * misc/allocate_once.c: Likewise.
13559 * misc/tst-allocate_once.c: Likewise.
13560 * misc/Makefile (routines): Add allocate_once.
13561 (tests-internal): Add tst-allocate_once.
13562 (generated): Add tst-allocate_once.mtrace,
13563 tst-allocate_once-mem.out.
13564 (tests-special): Add tst-allocate_once-mem.out.
13565 (tst-allocate_once-ENV): Set MALLOC_TRACE.
13566 (tst-allocate_once-mem.out): Call mtrace.
13567 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
13568
13569 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
13570
13571 [BZ #23196]
13572 * string/test-memcpy.c (do_test1): New function.
13573 (test_main): Call it.
13574
13575 2018-05-23 Andreas Schwab <schwab@suse.de>
13576
13577 [BZ #23196]
13578 CVE-2018-11237
13579 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
13580 (L(preloop_large)): Save initial destination pointer in %r11 and
13581 use it instead of %rax after the loop.
13582 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
13583
13584 2018-05-22 Joseph Myers <joseph@codesourcery.com>
13585
13586 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
13587 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
13588 -I../soft-fp. Moved from ....
13589 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
13590 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
13591 * sysdeps/aarch64/e_sqrtl.c: ... here.
13592 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
13593 * sysdeps/aarch64/sfp-machine.h: ... here.
13594
13595 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
13596 -Wmaybe-uninitialized around access to fq[0].
13597 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
13598 Likewise.
13599
13600 [BZ #18471]
13601 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
13602 aliases for non-libc case of versioned symbols.
13603 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
13604 (llseek): Define as compat symbol if
13605 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
13606 with link warning.
13607 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
13608 Make into a compat symbol, disabled for minimum symbol version
13609 GLIBC_2.28 and later.
13610 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
13611
13612 2018-05-22 Florian Weimer <fweimer@redhat.com>
13613
13614 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
13615 not add -mpreferred-stack-boundary=4.
13616 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
13617 (stack-align-test-flags): Likewise.
13618 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
13619 Likewise.
13620 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
13621 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
13622 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
13623 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
13624 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
13625 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
13626 (CFLAGS-tst-align2.c): Likewise.
13627
13628 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13629
13630 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
13631 (index_arch_Prefer_FSRM): Likewise.
13632 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
13633 Also check Prefer_FSRM.
13634 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
13635 Also return OPTIMIZE (erms) for Prefer_FSRM.
13636
13637 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
13638
13639 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
13640 (index_cpu_FSRM): Likewise.
13641 (reg_FSRM): Likewise.
13642
13643 2018-05-18 Joseph Myers <joseph@codesourcery.com>
13644
13645 * math/gen-tgmath-tests.py: Import sys.
13646 (Tests.__init__): Initialize macros_seen.
13647 (Tests.add_tests): Add macro to macros_seen. Only generate tests
13648 if requested to do so for this macro.
13649 (Tests.add_all_tests): Take argument for macro for which to
13650 generate tests.
13651 (Tests.check_macro_list): New function.
13652 (main): Handle check-list argument and argument specifying macro
13653 for which to generate tests.
13654 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
13655 [PYTHON] (tgmath3-macro-tests): Likewise.
13656 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
13657 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
13658 not test-tgmath3.c.
13659 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
13660 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
13661 to CFLAGS.
13662 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
13663 [PYTHON] ($(foreach
13664 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
13665 rule.
13666 [PYTHON] (tests-special): Add
13667 $(objpfx)test-tgmath3-macro-list.out.
13668 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
13669
13670 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
13671 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
13672 later.
13673
13674 [BZ #22639]
13675 * time/tzset.c (SECSPERDAY): Cast to time_t.
13676 * time/tst-y2039.c: New file.
13677 * time/Makefile (tests): Add tst-y2039.
13678
13679 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
13680
13681 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
13682 (PREFETCH_ONE_SET): Remove duplicate line.
13683
13684 2018-05-17 Florian Weimer <fweimer@redhat.com>
13685
13686 * sysdeps/generic/math-type-macros-double.h: Include
13687 <math-nan-payload-double.h> after <libm-alias-double.h>.
13688 * sysdeps/generic/math-type-macros-float.h: Include
13689 <math-nan-payload-float.h> after <libm-alias-float.h>.
13690 * sysdeps/generic/math-type-macros-float128.h: Include
13691 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
13692 * sysdeps/generic/math-type-macros-ldouble.h: Include
13693 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
13694
13695 2018-05-17 Andreas Schwab <schwab@suse.de>
13696
13697 * resolv/res_send.c (__res_context_send): Don't set errno when
13698 returing error after malloc failure.
13699
13700 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
13701
13702 * nptl/allocatestack.c (allocate_stack): Remove the
13703 !__ASSUME_PRIVATE_FUTEX paths.
13704 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
13705 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
13706 Likewise.
13707 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
13708 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13709 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13710 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
13711 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
13712 !__ASSUME_PRIVATE_FUTEX path.
13713 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
13714 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
13715 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
13716 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
13717 !__ASSUME_PRIVATE_FUTEX macros.
13718 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
13719 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
13720 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
13721 * sysdeps/unix/sysv/linux/kernel-features.h
13722 (__ASSUME_PRIVATE_FUTEX): Removed.
13723
13724 2018-05-17 Joseph Myers <joseph@codesourcery.com>
13725
13726 * math/Makefile (libm-narrow-fns): Add div.
13727 (libm-test-funcs-narrow): Likewise.
13728 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
13729 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
13730 * math/gen-auto-libm-tests.c (test_functions): Add div.
13731 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
13732 (NARROW_DIV_ROUND_TO_ODD): Likewise.
13733 (NARROW_DIV_TRIVIAL): Likewise.
13734 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
13735 macro.
13736 (__ddivl): Likewise.
13737 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
13738 ddiv.
13739 (CFLAGS-nldbl-ddiv.c): New variable.
13740 (CFLAGS-nldbl-fdiv.c): Likewise.
13741 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13742 __nldbl_ddivl.
13743 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
13744 prototype.
13745 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
13746 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
13747 * math/auto-libm-test-in: Add tests of div.
13748 * math/auto-libm-test-out-narrow-div: New generated file.
13749 * math/libm-test-narrow-div.inc: New file.
13750 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
13751 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
13752 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
13753 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
13754 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
13755 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
13756 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
13757 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
13758 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
13759 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
13760 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
13761 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
13762 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
13763 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
13764 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
13765 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
13766 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
13767 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
13768 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13769 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13770 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13771 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13772 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13773 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13774 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13775 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13776 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13777 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13778 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13779 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13780 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13781 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13782 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13783 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13786 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13787 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13788 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13789 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13790 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13791 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13792 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13793 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13794
13795 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13796
13797 [BZ #23178]
13798 * nscd/nscd-client.h (sendfileall): Remove prototype.
13799 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
13800 (handle_request): Use writeall instead of sendfileall.
13801 * nscd/aicache.c (addhstaiX): Likewise.
13802 * nscd/grpcache.c (cache_addgr): Likewise.
13803 * nscd/hstcache.c (cache_addhst): Likewise.
13804 * nscd/initgrcache.c (addinitgroupsX): Likewise.
13805 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
13806 * nscd/pwdcache.c (cache_addpw): Likewise.
13807 * nscd/servicescache.c (cache_addserv): Likewise.
13808 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
13809 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
13810 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
13811 Remove define.
13812
13813 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
13814
13815 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
13816 Include <string/strncat.c>.
13817 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
13818 alias.
13819 (__GI___strncat): New hidden alias.
13820
13821 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13822
13823 * sysdeps/mips/mips32/libm-test-ulps: Update.
13824 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13825
13826 2018-05-16 Florian Weimer <fweimer@redhat.com>
13827
13828 * support/Makefile (libsupport-routines): Add support_quote_blob,
13829 support_test_compare_blob.
13830 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
13831 * support/check.h (TEST_COMPARE_BLOB): Define.
13832 (support_test_compare_blob): Declare.
13833 * support/support.h (support_quote_blob): Declare.
13834 * support/support_quote_blob.c: New file.
13835 * support/support_test_compare_blob.c: Likewise.
13836 * support/tst-support_quote_blob.c: Likewise.
13837 * support/tst-test_compare_blob.c: Likewise.
13838
13839 2018-05-16 Florian Weimer <fweimer@redhat.com>
13840
13841 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
13842 of <strtod_nan_double.h>.
13843 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
13844 instead of SET_MANTISSA.
13845 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
13846 of include <strtod_nan_float.h>.
13847 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
13848 instead of <strtod_nan_ldouble.h>.
13849 * stdlib/strtod_nan_double.h: Move to ...
13850 * sysdeps/generic/math-nan-payload-double.h: ... here.
13851 (FLOAT): Remove definition.
13852 (SET_MANTISSA): Rename to ...
13853 (SET_NAN_PAYLOAD): ... this.
13854 * stdlib/strtod_nan_float.h: Move to ...
13855 * sysdeps/generic/math-nan-payload-float.h: ... here.
13856 (FLOAT): Remove definition.
13857 (SET_MANTISSA): Rename to ...
13858 (SET_NAN_PAYLOAD): ... this.
13859 * sysdeps/generic/math-type-macros-double.h: Include
13860 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
13861 instead of <math-svid-compat.h>.
13862 * sysdeps/generic/math-type-macros-float.h: Include
13863 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
13864 instead of <math-svid-compat.h>.
13865 * sysdeps/generic/math-type-macros-float128.h: Include
13866 <math-nan-payload-float128.h>.
13867 * sysdeps/generic/math-type-macros-ldouble.h: Include
13868 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
13869 instead of <math-svid-compat.h>.
13870 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
13871 check for definition.
13872 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
13873 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
13874 Include <ieee754_float128.h>.
13875 (FLOAT): Remove definition.
13876 (SET_MANTISSA): Rename to ...
13877 (SET_NAN_PAYLOAD): ... this.
13878 * sysdeps/ieee754/float128/strtof128_nan.c: Include
13879 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
13880 Do not include <float128_private.h>.
13881 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
13882 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
13883 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
13884 (FLOAT): Remove definition.
13885 (SET_MANTISSA): Rename to ...
13886 (SET_NAN_PAYLOAD): ... this.
13887 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
13888 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
13889 (FLOAT): Remove definition.
13890 (SET_MANTISSA): Rename to ...
13891 (SET_NAN_PAYLOAD): ... this.
13892 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
13893 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
13894 (FLOAT): Remove definition.
13895 (SET_MANTISSA): Rename to ...
13896 (SET_NAN_PAYLOAD): ... this.
13897 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
13898 of "../stdlib/strtod_nan_double.h".
13899 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
13900 of "../stdlib/strtod_nan_float.h".
13901 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
13902 instead of "../stdlib/strtod_nan_ldouble.h".
13903 * manual/arith.texi (Parsing of Floats): Adjust comment.
13904
13905 2018-05-16 Joseph Myers <joseph@codesourcery.com>
13906
13907 * math/Makefile (libm-narrow-fns): Add mul.
13908 (libm-test-funcs-narrow): Likewise.
13909 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
13910 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
13911 * math/gen-auto-libm-tests.c (test_functions): Add mul.
13912 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
13913 (NARROW_MUL_ROUND_TO_ODD): Likewise.
13914 (NARROW_MUL_TRIVIAL): Likewise.
13915 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
13916 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
13917 macro.
13918 (__dmull): Likewise.
13919 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
13920 dmul.
13921 (CFLAGS-nldbl-dmul.c): New variable.
13922 (CFLAGS-nldbl-fmul.c): Likewise.
13923 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
13924 __nldbl_dmull.
13925 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
13926 prototype.
13927 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
13928 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
13929 * math/auto-libm-test-in: Add tests of mul.
13930 * math/auto-libm-test-out-narrow-mul: New generated file.
13931 * math/libm-test-narrow-mul.inc: New file.
13932 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
13933 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
13934 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
13935 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
13936 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
13937 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
13938 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
13939 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
13940 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
13941 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
13942 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
13943 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
13944 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
13945 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
13946 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
13947 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
13948 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
13949 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
13950 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13951 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
13952 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
13953 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
13954 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
13955 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
13956 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
13957 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
13958 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
13959 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
13960 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
13961 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
13962 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
13963 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
13964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
13965 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
13966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
13967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
13968 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
13969 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
13970 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
13971 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
13972 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
13973 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
13974 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
13975 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
13976
13977 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13978
13979 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
13980 with *%eax in call.
13981
13982 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13983
13984 * sysdeps/i386/ldsodefs.h: Removed.
13985 * sysdeps/x86_64/ldsodefs.h: Moved to ...
13986 * sysdeps/x86/ldsodefs.h: This.
13987 (La_i86_regs): New.
13988 (La_i86_retval): Likewise.
13989 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
13990 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
13991
13992 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
13993
13994 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
13995 unnecessary testl.
13996
13997 2018-05-13 Alan Modra <amodra@gmail.com>
13998
13999 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
14000 R_PARISC_TLS_DTPOFF32 reloc addend.
14001
14002 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14003
14004 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
14005 * math/math.h: Restrict the prototype definition for the functions
14006 issignaling(_Float128) and iszero(_Float128); and template
14007 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
14008 __HAVE_FLOAT128_UNLIKE_LDBL.
14009 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
14010 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
14011 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
14012 __f128() constants; define the type _Float128 as long double;
14013 and reuse long double in __CFLOAT128.
14014
14015 2018-05-11 Joseph Myers <joseph@codesourcery.com>
14016
14017 * sysdeps/generic/math_private.h: Do not include
14018 <math-barriers.h>.
14019 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
14020 <math_private.h>.
14021 * math/fromfp.h: Include <math-barriers.h>.
14022 * math/math-narrow.h: Likewise.
14023 * math/s_nextafter.c: Likewise.
14024 * math/s_nexttowardf.c: Likewise.
14025 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
14026 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
14027 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
14028 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
14029 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14030 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14031 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14032 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14033 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14034 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
14035 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14036 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14037 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14038 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14039 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
14040 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
14041 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14042 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14043 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
14044 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14045 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14046 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14047 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14048 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
14049 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14050 * sysdeps/ieee754/k_standardl.c: Likewise.
14051 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14052 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14053 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14054 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
14055 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14056 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14057 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14058 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14059 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14060 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14061 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
14062 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
14063 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
14064 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
14065 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14066 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14067 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
14068 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
14069 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
14070 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
14071 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
14072 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
14073
14074 2018-05-11 Florian Weimer <fweimer@redhat.com>
14075
14076 Use 64-bit epoch values in the time zone file parser.
14077 * include/time.h (internal_time_t): Define.
14078 (__tzfile_compute): Use it.
14079 * time/tzfile.c (struct leap): Use internal_time_t for epoch
14080 member.
14081 (transitions): Switch to internal_time_t.
14082 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
14083 types.
14084 (__tzfile_compute): Use internal_time_t for timer argument. Check
14085 for truncation before calling __offtime.
14086
14087 2018-05-11 Florian Weimer <fweimer@redhat.com>
14088
14089 [BZ #23166]
14090 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
14091 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
14092 Likewise.
14093 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
14094 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
14095 export without --enable-obsolete-rpc.
14096 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
14097 symbol. This should not have been exported, ever.
14098
14099 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
14100
14101 [BZ #23152]
14102 * localedata/locales/gd_GB (abmon): Fix typo in May:
14103 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
14104
14105 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
14106
14107 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
14108 Use multiple registers to copy data in loop tail.
14109
14110 * sysdeps/aarch64/multiarch/memmove_falkor.S
14111 (__memmove_falkor): Use multiple registers to move data in
14112 loop tail.
14113
14114 2018-05-10 Joseph Myers <joseph@codesourcery.com>
14115
14116 * math/math-underflow.h: New file.
14117 * sysdeps/generic/math_private.h: Do not include <float.h>.
14118 (fabs_tg): Remove macro. Moved to math-underflow.h.
14119 (min_of_type_f): Likewise.
14120 (min_of_type_): Likewise.
14121 (min_of_type_l): Likewise.
14122 (min_of_type_f128): Likewise.
14123 (min_of_type): Likewise.
14124 (math_check_force_underflow): Likewise.
14125 (math_check_force_underflow_nonneg): Likewise.
14126 (math_check_force_underflow_complex): Likewise.
14127 * math/e_exp2_template.c: Include <math-underflow.h>.
14128 * math/k_casinh_template.c: Likewise.
14129 * math/s_catan_template.c: Likewise.
14130 * math/s_catanh_template.c: Likewise.
14131 * math/s_ccosh_template.c: Likewise.
14132 * math/s_cexp_template.c: Likewise.
14133 * math/s_clog10_template.c: Likewise.
14134 * math/s_clog_template.c: Likewise.
14135 * math/s_csin_template.c: Likewise.
14136 * math/s_csinh_template.c: Likewise.
14137 * math/s_csqrt_template.c: Likewise.
14138 * math/s_ctan_template.c: Likewise.
14139 * math/s_ctanh_template.c: Likewise.
14140 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14141 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14142 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14143 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14144 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14145 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14146 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14147 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14148 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14149 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14150 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14151 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14152 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14153 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14154 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14155 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14156 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14157 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14158 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14159 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14160 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14161 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14162 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14163 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14164 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14165 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14166 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14167 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14168 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14169 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
14170 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
14171 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14172 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14173 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14174 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
14175 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14176 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14177 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14178 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14179 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14180 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
14181 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
14182 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14183 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14184 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
14185 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14186 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
14187 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
14188 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14189 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14190 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14191 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14192 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14193 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
14194 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14195 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14196 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14197 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
14198 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
14199 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
14200 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
14201 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
14202 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
14203 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
14204 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
14205 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14206 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14207 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14208 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14209 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14210 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14211 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14212 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
14213 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
14214 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14215 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
14216 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
14217 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14218 * sysdeps/x86/fpu/powl_helper.c: Likewise.
14219 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
14220 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
14221 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
14222 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
14223 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
14224
14225 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14226
14227 * sysdeps/generic/math-barriers.h: New file.
14228 * sysdeps/generic/math_private.h [!math_opt_barrier]
14229 (math_opt_barrier): Move to math-barriers.h.
14230 [!math_opt_barrier] (math_force_eval): Likewise.
14231 * sysdeps/aarch64/fpu/math-barriers.h: New file.
14232 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
14233 math-barriers.h.
14234 (math_force_eval): Likewise.
14235 * sysdeps/alpha/fpu/math-barriers.h: New file.
14236 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
14237 math-barriers.h.
14238 (math_force_eval): Likewise.
14239 * sysdeps/x86/fpu/math-barriers.h: New file.
14240 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
14241 math-barriers.h.
14242 (math_force_eval): Likewise.
14243 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
14244 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
14245 multiple-include guard for rename.
14246 * sysdeps/powerpc/fpu/math-barriers.h: New file.
14247 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
14248 math-barriers.h.
14249 (math_force_eval): Likewise.
14250
14251 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
14252
14253 [BZ #22786]
14254 CVE-2018-11236
14255 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
14256 computation.
14257 * stdlib/Makefile (test-bz22786): New test.
14258 * stdlib/test-bz22786.c: New test.
14259
14260 2018-05-09 Joseph Myers <joseph@codesourcery.com>
14261
14262 * include/math-narrow-eval.h: New file. Contents moved from ....
14263 * sysdeps/generic/math_private.h: ... here.
14264 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
14265 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
14266 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
14267 * stdlib/strtod_l.c: Likewise.
14268 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
14269 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14270 * sysdeps/i386/fpu/s_fdim.c: Likewise.
14271 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14272 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14273 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14274 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14275 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14276 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14277 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
14278 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14279 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
14280 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14281 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
14282 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14283 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14284 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14285 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
14286 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14287 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14288 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14289 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14290 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14291 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14292 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
14293 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14294 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
14295 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
14296 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
14297
14298 2018-05-08 Andreas Schwab <schwab@suse.de>
14299
14300 * sysdeps/nptl/internaltypes.h: Fix comment.
14301
14302 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
14303
14304 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
14305 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
14306 hidden.
14307
14308 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
14309
14310 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
14311 of I into loop header.
14312 * benchtests/bench-memmove-walk.c
14313 (test_main): Likewise.
14314
14315 2018-05-07 Alexandre Oliva <oliva@gnu.org>
14316
14317 Revert:
14318 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14319 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14320
14321 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
14322
14323 [BZ #20419]
14324 * elf/dl-load.c (open_verify): Fix stack overflow.
14325 * elf/Makefile (tst-big-note): New test.
14326 * elf/tst-big-note-lib.S: New.
14327 * elf/tst-big-note.c: New.
14328
14329 2018-05-04 Joseph Myers <joseph@codesourcery.com>
14330
14331 * scripts/abilist.awk: Ignore absolute symbols.
14332 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
14333 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
14334 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
14335 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
14336 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
14337 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
14338 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14339 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
14340 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
14341 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
14342 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
14343 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
14344 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
14345 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
14346 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
14373 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
14374 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
14375 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
14376 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14377 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
14378 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
14379 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
14380 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
14381 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
14382 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
14383 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
14384 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
14385 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
14386 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
14387 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
14388 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
14389 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14390 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
14391 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
14392 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
14393 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
14394 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
14395 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
14396 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
14397 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
14398 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
14399 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
14400 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
14401 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
14402 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14403 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
14404 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
14405 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
14406 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
14407 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
14408 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
14409 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
14410 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
14411 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
14412 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
14413 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
14414 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
14415 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14416 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
14417 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
14418 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
14419 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
14420 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
14421 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
14422 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
14423 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
14424 Likewise.
14425 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
14426 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
14427 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
14428 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
14429 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14430 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
14431 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
14432 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
14433 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
14434 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
14435 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
14436 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
14437 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
14438 Likewise.
14439 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
14440 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
14441 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
14442 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
14443 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14444 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
14445 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
14446 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
14447 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
14448 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
14449 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
14450 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
14451 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
14452 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
14453 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
14454 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
14455 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
14456 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14457 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
14458 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
14459 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
14460 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
14461 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
14462 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
14463 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
14464 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
14465 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
14466 Likewise.
14467 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
14468 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
14469 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
14470 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
14471 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14472 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
14473 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
14474 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
14475 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
14476 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
14477 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
14478 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
14479 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
14480 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
14481 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
14482 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
14483 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
14484 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
14485 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
14486 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
14487 Likewise.
14488 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
14489 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
14490 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
14491 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14492 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
14493 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
14494 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
14495 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
14496 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
14497 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
14498 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
14499 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
14500 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
14501 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
14502 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
14503 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
14504 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
14505 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
14506 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
14507 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
14508 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
14509 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14510 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
14511 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
14512 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
14513 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
14514 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
14515 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
14516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
14517 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14518 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
14519 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
14520 Likewise.
14521 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
14522 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
14523 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
14524 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
14525 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
14526 Likewise.
14527 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
14528 Likewise.
14529 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
14530 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
14531 Likewise.
14532 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
14533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
14534 Likewise.
14535 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
14536 Likewise.
14537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
14538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
14539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
14540 Likewise.
14541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
14542 Likewise.
14543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
14544 Likewise.
14545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
14546 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
14547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
14548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
14549 Likewise.
14550 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
14551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
14552 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
14553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14554 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
14556 Likewise.
14557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
14558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
14559 Likewise.
14560 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
14561 Likewise.
14562 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
14563 Likewise.
14564 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
14565 Likewise.
14566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
14567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
14568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
14569 Likewise.
14570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
14571 Likewise.
14572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
14573 Likewise.
14574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
14575 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
14576 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
14577 Likewise.
14578 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
14579 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
14580 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
14581 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
14582 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14583 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
14584 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
14585 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
14586 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
14587 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
14588 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
14589 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
14590 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
14591 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
14592 Likewise.
14593 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
14594 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
14595 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
14596 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14597 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
14598 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
14599 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
14600 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
14601 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
14602 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
14603 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
14604 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
14605 Likewise.
14606 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
14607 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
14608 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
14609 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14610 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
14611 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
14612 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
14613 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
14614 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
14615 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
14616 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
14617 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
14618 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
14619 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
14620 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
14621 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
14622 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14623 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
14624 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
14625 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
14626 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
14627 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
14628 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
14629 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
14630 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
14631 Likewise.
14632 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
14633 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
14634 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
14635 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
14636 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14637 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
14638 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
14639 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
14640 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
14641 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
14642 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
14643 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
14644 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
14645 Likewise.
14646 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
14647 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
14648 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
14649 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
14650 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14651 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
14652 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
14653 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
14654 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
14655 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
14656 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
14657 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
14658 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
14659 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
14660 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
14661 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
14662 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
14663 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14664 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
14665 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
14666 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
14667 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
14668 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
14669 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
14670 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
14671 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
14672 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
14673 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
14674 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
14675 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
14676 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
14677 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14678 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
14679 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
14680 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
14681 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
14682 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
14683 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
14684
14685 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
14686
14687 [BZ #23137]
14688 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
14689 Use atomic_load_acquire to load __tid.
14690
14691 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14692
14693 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
14694 Restore the pointer into %rdx, after syscall and use %rdx,
14695 instead of %rsi, to restore context.
14696
14697 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14698
14699 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
14700 Pop the pointer into %rdx after syscall and use %rdx, instead
14701 of %rsi, to restore context.
14702
14703 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
14704
14705 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
14706 handlers after setjmp.
14707 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
14708 defined.
14709 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
14710 <libc-pointer-arith.h>.
14711 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
14712 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
14713 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
14714 _JUMP_BUF_SIGSET_BITS_PER_WORD.
14715 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
14716 * sysdeps/x86/__longjmp_cancel.S: New file.
14717 * sysdeps/x86/longjmp.c: Likewise.
14718 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
14719
14720 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14721
14722 * NEWS: Add ustat.h deprecation entry.
14723 * bits/ustat.h: Remove file.
14724 * misc/sys/ustat.h: Likewise.
14725 * misc/ustat.h: Likewise.
14726 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
14727 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
14728 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
14729 compatibility mode.
14730 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
14731 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
14732 generic Linux implementation.
14733
14734 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14735
14736 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
14737 * math/w_expl_compat.c: Likewise.
14738 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
14739
14740 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
14741
14742 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
14743
14744 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14745
14746 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
14747 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
14748 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
14749 Remove.
14750 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
14751 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
14752 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
14753 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
14754 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
14755 and SYSCALL_LL64.
14756
14757 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14758
14759 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
14760
14761 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
14762 * math/w_asin_template.c: Likewise.
14763 * math/w_atanh_template.c: Likewise.
14764
14765 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
14766
14767 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
14768 to powerpc/powerpc64/be for big-endian.
14769 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
14770 little-endian.
14771
14772 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
14773 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
14774 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
14775 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
14776 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
14777 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
14778 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
14779 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
14780 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
14781 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
14782 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
14783 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
14784 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
14785 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
14786 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
14787 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
14788 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
14789 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
14790 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
14791 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
14792 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
14793 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
14794 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
14795 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
14796 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
14797 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
14798 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
14799 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
14800 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
14801 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
14802 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
14803 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
14804
14805 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
14806 adjusted to imply powerpc64 and older processors on powerpc64/be.
14807 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
14808 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
14809 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
14810 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
14811 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
14812 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
14813 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
14814 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
14815 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
14816 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
14817 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
14818 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
14819 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
14820 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
14821 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
14822 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
14823 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
14824 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
14825 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
14826 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
14827 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
14828 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
14829 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
14830 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
14831 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
14832 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
14833 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
14834 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
14835 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
14836 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
14837 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
14838
14839 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
14840 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
14841 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
14842 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
14843
14844 * sysdeps/powerpc/powerpc64/be/Implies: New file.
14845 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
14846 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
14847 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
14848
14849 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
14850 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
14851 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
14852 * sysdeps/powerpc/powerpc64le/configure: Likewise.
14853 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
14854 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
14855 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
14856 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
14857 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
14858 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
14859 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
14860
14861 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
14862 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
14863 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
14864 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
14865 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
14866 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
14867 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
14868 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
14869 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
14870 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
14871 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
14872
14873 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
14874 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
14875 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
14876 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
14877 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
14878 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
14879 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
14880 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
14881 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
14882 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
14883 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
14884 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
14885
14886 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
14887 and adjusted to imply olders processors.
14888 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
14889 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
14890 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
14891 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
14892 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
14893 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
14894 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
14895 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
14896 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
14897 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
14898 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
14899
14900 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
14901 powerpc64/le.
14902 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
14903 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
14904
14905 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
14906 powerpc64le.
14907 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
14908 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
14909
14910 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
14911 powerpc64/be.
14912 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
14914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
14915
14916 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
14917 powerpc64 and adjusted.
14918 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
14919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
14920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
14921 Likewise.
14922
14923 2018-04-27 Joseph Myers <joseph@codesourcery.com>
14924
14925 * sysdeps/tile: Remove.
14926 * sysdeps/unix/sysv/linux/tile: Likewise.
14927 * README (tilegx-*-linux-gnu): Remove from list of supported
14928 configurations.
14929 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
14930 contribution of support for generic Linux kernel syscall
14931 interface.
14932 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
14933 tilegx configurations.
14934 (Config.install_linux_headers): Do not handle tile.
14935 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
14936 in comment.
14937 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
14938 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
14939 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14940 conditional undefine and redefine.
14941 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
14942 in comment.
14943 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
14944 conditional undefine and redefine.
14945
14946 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
14947
14948 * signal/tst-sigaction.c: New file to test BZ #23069.
14949 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
14950
14951 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
14952
14953 [BZ #22766]
14954 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
14955 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
14956 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
14957 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
14958
14959 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14960
14961 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
14962 _DIRENT_MATCHES_DIRENT64 is not defined.
14963 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
14964 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
14965 is defined.
14966 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
14967 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
14968
14969 2018-04-25 Joseph Myers <joseph@codesourcery.com>
14970
14971 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
14972 version to GCC 8 branch.
14973
14974 2018-04-24 Joseph Myers <joseph@codesourcery.com>
14975
14976 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
14977 (check_no_hidden): Use type of original function when declaring
14978 alias.
14979
14980 * sysdeps/unix/sysv/linux/sys/ptrace.h
14981 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
14982 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
14983 (struct __ptrace_seccomp_metadata): New type.
14984 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
14985 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14986 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
14987 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14988 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
14989 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14990 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
14991 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14992 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
14993 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14994 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
14995 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14996 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
14997 (PTRACE_SECCOMP_GET_METADATA): Likewise.
14998 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
14999 (PTRACE_SECCOMP_GET_METADATA): Likewise.
15000
15001 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15002
15003 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
15004 defined.
15005 * dirent/versionsort.c (versionsort): Likewise.
15006 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
15007 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
15008 * dirent/versionsort64.c (versionsort64): Likewise.
15009 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
15010 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
15011 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
15012 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
15013 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
15014 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
15015 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
15016 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
15017 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
15018 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
15019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
15020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
15021 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
15022 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
15023
15024 2018-04-23 Joseph Myers <joseph@codesourcery.com>
15025
15026 * elf/elf.h (NT_PPC_PKEY): New macro.
15027
15028 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
15029
15030 [BZ #23094]
15031 * localedata/locales/hr_HR: fix thousands_sep and
15032 mon_thousands_sep
15033
15034 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15035
15036 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
15037 (XTABS): Define to TAB3.
15038
15039 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15040
15041 * sysdeps/hppa/fpu/libm-test-ulps: Update.
15042
15043 * dirent/scandir-tail-common.c: New file.
15044 * dirent/scandir-tail.c: Use scandir-tail-common.c.
15045 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
15046 * dirent/scandir.c: Use scandir-tail-common.c.
15047 * dirent/scandirat.c: Likewise.
15048 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
15049 * dirent/scandir64.c (scandir64): Always build and alias to scandir
15050 if _DIRENT_MATCHES_DIRENT64 is defined.
15051 * dirent/scandirat64.c (scandirat64): Likewise.
15052 * include/dirent.h (__scandir_tail): Only define iff
15053 _DIRENT_MATCHES_DIRENT64 is not defined.
15054 (__scandir64_tail): Define regardless.
15055 (__scandirat, scandirat64): Remove libc_hidden_proto.
15056 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
15057 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
15058 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
15059 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
15060 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15061 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
15062 * sysdeps/unix/sysv/linux/scandir64.c: New file.
15063
15064 2018-04-20 Joseph Myers <joseph@codesourcery.com>
15065
15066 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
15067 New macro.
15068 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
15069 Increase to 24.
15070 (_dl_aarch64_cap_flags): Add asimdfhm.
15071
15072 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
15073
15074 * sysdeps/nios2/libm-test-ulps: Update.
15075
15076 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15077
15078 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
15079 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
15080
15081 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
15082 requirements.
15083 (_DIRENT_MATCHES_DIRENT64): Undef
15084 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
15085 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
15086 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
15087 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
15088 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
15089 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
15090 use getdents64 syscalls as base.
15091 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
15092 symbol if required.
15093 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
15094 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
15095 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
15096 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
15097 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
15098 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
15099 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
15100 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
15101 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15102 (__get_clockfreq_via_proc_openprom): Use __getdents64.
15103 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
15104
15105 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15106
15107 * scripts/test_printers_common.py (init_test): Disable lock elision.
15108
15109 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
15110
15111 * math/test-tgmath.c (count_double, count_float,
15112 count_ldouble, count_cdouble, count_cfloat,
15113 count_cldouble): Use volatile int.
15114
15115 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
15116
15117 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
15118 (conformtest-xfail-conds): Add i386-gnu.
15119 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
15120 i386-gnu.
15121 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
15122 ipc_perm.cuid, ipc_perm.cgid): Likewise.
15123 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
15124 msqid_ds.msg_lrpid): Likewise.
15125 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
15126 Likewise.
15127 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
15128 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
15129 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
15130 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
15131 unsigned int.
15132 (struct statvfs64): Likewise.
15133 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
15134 Likewise.
15135 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
15136 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
15137 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
15138 instead of wait_queue.
15139 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
15140 instead of vm_area_struct.
15141 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
15142 struct sched_param definition to it.
15143 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15144 * bits/types/struct_sched_param.h: New file.
15145 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
15146 <bits/types/struct_sched_param.h> instead of <sched.h>.
15147 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
15148 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
15149 generic version but include <bits/pthreadtypes.h> to make struct
15150 sigevent's sigev_notify_attributes field a pthread_attr_t*.
15151 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
15152 non-compliant.
15153 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
15154 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
15155 [__USE_XOPEN] (OFDEL): New macro.
15156 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
15157 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
15158 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
15159 prototypes.
15160 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
15161 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
15162 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
15163 non-compliant.
15164 * sysdeps/i386/sys/ucontext.h: Likewise.
15165 * sysdeps/m68k/sys/ucontext.h: Likewise.
15166 * sysdeps/mips/sys/ucontext.h: Likewise.
15167 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
15168 * sysdeps/mach/hurd/i386/Makefile
15169 (test-xfail-POSIX/fcntl.h/conform): Add.
15170 (test-xfail-POSIX/signal.h/conform): Add.
15171 (test-xfail-POSIX/semaphore.h/conform): Add.
15172 (test-xfail-POSIX/regex.h/conform): Add.
15173 (test-xfail-POSIX/aio.h/conform): Add.
15174 (test-xfail-POSIX/mqueue.h/conform): Add.
15175 (test-xfail-POSIX/sys/types.h/conform): Add.
15176 (test-xfail-UNIX98/fcntl.h/conform): Add.
15177 (test-xfail-UNIX98/netdb.h/conform): Add.
15178 (test-xfail-UNIX98/signal.h/conform): Add.
15179 (test-xfail-UNIX98/semaphore.h/conform): Add.
15180 (test-xfail-UNIX98/regex.h/conform): Add.
15181 (test-xfail-UNIX98/aio.h/conform): Add.
15182 (test-xfail-UNIX98/ftw.h/conform): Add.
15183 (test-xfail-UNIX98/mqueue.h/conform): Add.
15184 (test-xfail-UNIX98/netinet/in.h/conform): Add.
15185 (test-xfail-UNIX98/sys/wait.h/conform): Add.
15186 (test-xfail-UNIX98/sys/sem.h/conform): Add.
15187 (test-xfail-UNIX98/sys/uio.h/conform): Add.
15188 (test-xfail-UNIX98/sys/socket.h/conform): Add.
15189 (test-xfail-UNIX98/sys/types.h/conform): Add.
15190 (test-xfail-UNIX98/stdlib.h/conform): Add.
15191 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
15192 (test-xfail-POSIX2008/fcntl.h/conform): Add.
15193 (test-xfail-POSIX2008/netdb.h/conform): Add.
15194 (test-xfail-POSIX2008/signal.h/conform): Add.
15195 (test-xfail-POSIX2008/semaphore.h/conform): Add.
15196 (test-xfail-POSIX2008/regex.h/conform): Add.
15197 (test-xfail-POSIX2008/aio.h/conform): Add.
15198 (test-xfail-POSIX2008/mqueue.h/conform): Add.
15199 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
15200 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
15201 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
15202 (test-xfail-POSIX2008/sys/types.h/conform): Add.
15203 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
15204 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
15205 (test-xfail-XOPEN2K/netdb.h/conform): Add.
15206 (test-xfail-XOPEN2K/signal.h/conform): Add.
15207 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
15208 (test-xfail-XOPEN2K/regex.h/conform): Add.
15209 (test-xfail-XOPEN2K/aio.h/conform): Add.
15210 (test-xfail-XOPEN2K/ftw.h/conform): Add.
15211 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
15212 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
15213 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
15214 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
15215 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
15216 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
15217 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
15218 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
15219 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
15220 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
15221 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
15222 (test-xfail-XOPEN2K8/signal.h/conform): Add.
15223 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
15224 (test-xfail-XOPEN2K8/regex.h/conform): Add.
15225 (test-xfail-XOPEN2K8/aio.h/conform): Add.
15226 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
15227 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
15228 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
15229 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
15230 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
15231 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
15232 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
15233 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
15234 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
15235 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
15236 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
15237 i386-gnu.
15238 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
15239 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
15240
15241 2018-04-18 Joseph Myers <joseph@codesourcery.com>
15242
15243 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
15244 --enable-obsolete for powerpc-linux-gnuspe.
15245
15246 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
15247
15248 * conform/data/sys/un.h-data: Allow sun_ prefix.
15249 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
15250 prototypes.
15251 * sysdeps/mach/include/mach.h: Likewise.
15252 * sysdeps/mach/include/mach/mig_support.h: Likewise.
15253 * sysdeps/mach/include/mach_error.h: Likewise.
15254
15255 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15256
15257 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
15258 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
15259 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
15260 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
15261
15262 2018-04-16 Andreas Schwab <schwab@suse.de>
15263
15264 [BZ #19527]
15265 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
15266
15267 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
15268
15269 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
15270 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
15271
15272 2018-04-12 DJ Delorie <dj@redhat.com>
15273
15274 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
15275 version to 4.16.
15276
15277 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
15278
15279 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
15280 (struct kernel_sigaction): Use the same definition on 31bit as is used
15281 on 64bit.
15282
15283 2018-04-09 Florian Weimer <fweimer@redhat.com>
15284
15285 [BZ #23037]
15286 * resolv/res_send.c (send_dg): Use designated initializers instead
15287 of assignment to zero-initialize other fields of struct mmsghdr.
15288
15289 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15290
15291 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
15292 __READDIR_ALIAS): Undefine after usage.
15293 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
15294 __READDIR_R_ALIAS): Likewise.
15295 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
15296 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
15297 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
15298 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
15299 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
15300 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
15301 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15302 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
15303 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
15304 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
15305 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
15306 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
15307 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15308 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
15309 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
15310 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
15311 * sysdeps/unix/sysv/linux/readdir.c: New file.
15312 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
15313 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
15314 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
15315
15316 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
15317
15318 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
15319
15320 * manual/charset.texi (Converting a Character): Fix typo.
15321
15322 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15323
15324 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15325
15326 * sysdeps/arm/libm-test-ulps: Update.
15327
15328 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
15329 as base implementation.
15330 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
15331 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
15332 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15333 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15334 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
15335 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
15336 remove unrequired definitions and update comments.
15337 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
15338 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
15339 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
15340 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
15341 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
15342 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
15343 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
15344 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
15345 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
15346 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
15347 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
15348 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
15349 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
15350 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
15351 and RESET_SA_RESTORER hooks.
15352
15353 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
15354
15355 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15356
15357 2018-04-05 Florian Weimer <fweimer@redhat.com>
15358
15359 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
15360 integer overflow, memory leak on error, and indeterminate errno
15361 value. Add a null wide character to terminate the result string.
15362 * manual/charset.texi (Converting a Character): Mention embedded
15363 null bytes in the mbrtowc input string. Explain what happens in
15364 the -2 result case. Do not claim that mbrtowc is simple or
15365 obvious to use. Adjust the description of the code example. Use
15366 @code, not @var, for concrete variables.
15367
15368 2018-04-05 Florian Weimer <fweimer@redhat.com>
15369
15370 * manual/examples/mbstouwcs.c: New file.
15371 * manual/charset.texi (Converting a Character): Include it.
15372
15373 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15374
15375 * include/dirent.h (dirfd): Add hidden proto.
15376 * dirent/dirfd.c (dirfd): Add hidden def.
15377 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
15378 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
15379
15380 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
15381
15382 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
15383 sin, cos and sincos to 1 ULP.
15384
15385 2018-04-04 Maciej W. Rozycki <macro@mips.com>
15386
15387 [BZ #19818]
15388 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
15389 symbols.
15390 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
15391 * elf/tst-absolute-sym.c: New file.
15392 * elf/tst-absolute-sym-lib.c: New file.
15393 * elf/tst-absolute-sym-lib.lds: New file.
15394 * elf/Makefile (tests): Add `tst-absolute-sym'.
15395 (modules-names): Add `tst-absolute-sym-lib'.
15396 (LDLIBS-tst-absolute-sym-lib.so): New variable.
15397 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
15398 ($(objpfx)tst-absolute-sym): New dependency.
15399
15400 [BZ #19818]
15401 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
15402 parameter.
15403 (SYMBOL_ADDRESS): New macro.
15404 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
15405 SYMBOL_ADDRESS for symbol address calculation.
15406 * elf/dl-runtime.c (_dl_fixup): Likewise.
15407 (_dl_profile_fixup): Likewise.
15408 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
15409 * elf/rtld.c (dl_main): Likewise.
15410 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
15411 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
15412 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
15413 (elf_machine_rela): Likewise.
15414 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
15415 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
15416 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
15417 (elf_machine_rela): Likewise.
15418 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
15419 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
15420 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
15421 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
15422 Likewise.
15423 (elf_machine_reloc): Likewise.
15424 (elf_machine_got_rel): Likewise.
15425 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
15426 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
15427 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
15428 Likewise.
15429 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15430 Likewise.
15431 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
15432 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15433 Likewise.
15434 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
15435 Likewise.
15436 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15437 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
15438 Likewise.
15439 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
15440 Likewise.
15441 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
15442 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
15443
15444 2018-04-04 Zack Weinberg <zackw@panix.com>
15445
15446 * sysdeps/generic/internal-signals.h: Include signal.h,
15447 sigsetops.h, and stdbool.h.
15448 (__libc_signal_block_all): Actually block all signals.
15449 (__libc_signal_block_app): Likewise.
15450 (__libc_signal_restore_set): Actually restore the signal mask.
15451
15452 2018-04-04 Florian Weimer <fweimer@redhat.com>
15453
15454 inet: Actually build and run tst-deadline.
15455 * inet/Makefile (tests-internal): Add tst-deadline and do not
15456 overwrite the variable.
15457 (tests-static-internal): Remove variable.
15458
15459 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
15460
15461 [BZ #22947]
15462 * bits/uio-ext.h (RWF_APPEND): New.
15463 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
15464 * manual/llio.texi: Document RWF_APPEND.
15465 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
15466 (RWF_SUPPORTED): Add RWF_APPEND.
15467
15468 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15469
15470 [BZ #22391]
15471 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
15472 check for internal nptl signals.
15473 * nptl/sigaction.c (__sigaction): Likewise.
15474 * signal/sigaddset.c (sigaddset): Likewise.
15475 * signal/sigdelset.c (sigdelset): Likewise.
15476 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
15477 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
15478 value.
15479 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
15480 to filter out internal nptl signals.
15481 * signal/tst-sigset.c (do_test): Check ech signal indidually and
15482 also check realtime signals using standard macros.
15483 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
15484 __is_internal_signal, __libc_signal_block_all,
15485 __libc_signal_block_app, __libc_signal_restore_set): New functions.
15486 * sysdeps/nptl/sigfillset.c: Remove file.
15487 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
15488 Change return to bool.
15489 (__clear_internal_signals): Remove SIGTIMER clean since it is
15490 equal to SIGCANEL on Linux.
15491 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
15492 signal set was constructed using standard functions.
15493
15494 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15495
15496 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
15497 ifname is too long.
15498 * hurd/hurdsig.c (interrupted_reply_port_location): Use
15499 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
15500 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
15501 hidden def.
15502 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
15503 * signal/sigaddset.c: Include <sigsetopts.h>.
15504 * signal/sigdelset.c: Likewise.
15505
15506 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15507
15508 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
15509 (__cos): Likewise.
15510 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
15511 logic as sin and cos.
15512
15513 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15514
15515 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
15516 inputs. Return correct sign.
15517 (do_sincos): Remove small input check before do_sin, let do_sin set
15518 the sign.
15519 (__sin): Likewise.
15520 (__cos): Likewise.
15521
15522 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15523
15524 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
15525 (do_cos_slow): Likewise.
15526 (do_sin_slow): Likewise.
15527 (reduce_and_compute): Likewise.
15528 (slow): Likewise.
15529 (slow1): Likewise.
15530 (slow2): Likewise.
15531 (sloww): Likewise.
15532 (sloww1): Likewise.
15533 (sloww2): Likewise.
15534 (bslow): Likewise.
15535 (bslow1): Likewise.
15536 (bslow2): Likewise.
15537 (cslow2): Likewise.
15538
15539 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15540
15541 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
15542 (do_cos): Remove corp parameter and calculations.
15543 (do_sin): Likewise.
15544 (do_sincos): Remove cor variable.
15545 (__sin): Use do_sincos for huge inputs.
15546 (__cos): Likewise.
15547 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15548 (reduce_and_compute_sincos): Remove unused function.
15549
15550 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15551
15552 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
15553 reduce_sincos, improve accuracy to 136 bits.
15554 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
15555 (__sin): Use improved reduction and simplified do_sincos calculation.
15556 (__cos): Likewise.
15557 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
15558
15559 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15560
15561 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
15562 (do_sincos_2): Likewise.
15563 (__sin): Remove middle range reduction case.
15564 (__cos): Likewise.
15565 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
15566 reduction case.
15567
15568 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
15569
15570 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
15571 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
15572 inputs.
15573 (__cos): Likewise.
15574 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
15575
15576 2018-04-03 Joseph Myers <joseph@codesourcery.com>
15577
15578 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
15579 version to 4.16
15580
15581 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15582
15583 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
15584 Remove definitions.
15585 (opendir_oflags): Use O_DIRECTORY regardless.
15586 (__opendir, __opendirat): Remove need_isdir_precheck usage.
15587 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
15588
15589 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
15590
15591 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
15592 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
15593 macros.
15594 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
15595 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
15596 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
15597 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
15598 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
15599 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
15600
15601 * htl/Makefile: Bump licence to LGPL 2.1+.
15602 * htl/alloca_cutoff.c: Likewise.
15603 * htl/cthreads-compat.c: Likewise.
15604 * htl/lockfile.c: Likewise.
15605 * htl/pt-alloc.c: Likewise.
15606 * htl/pt-cancel.c: Likewise.
15607 * htl/pt-cleanup.c: Likewise.
15608 * htl/pt-create.c: Likewise.
15609 * htl/pt-dealloc.c: Likewise.
15610 * htl/pt-detach.c: Likewise.
15611 * htl/pt-exit.c: Likewise.
15612 * htl/pt-getattr.c: Likewise.
15613 * htl/pt-initialize.c: Likewise.
15614 * htl/pt-internal.h: Likewise.
15615 * htl/pt-join.c: Likewise.
15616 * htl/pt-self.c: Likewise.
15617 * htl/pt-setcancelstate.c: Likewise.
15618 * htl/pt-setcanceltype.c: Likewise.
15619 * htl/pt-sigmask.c: Likewise.
15620 * htl/pt-spin-inlines.c: Likewise.
15621 * htl/pt-testcancel.c: Likewise.
15622 * htl/pt-yield.c: Likewise.
15623 * htl/tests/test-1.c: Likewise.
15624 * htl/tests/test-10.c: Likewise.
15625 * htl/tests/test-11.c: Likewise.
15626 * htl/tests/test-12.c: Likewise.
15627 * htl/tests/test-13.c: Likewise.
15628 * htl/tests/test-14.c: Likewise.
15629 * htl/tests/test-15.c: Likewise.
15630 * htl/tests/test-16.c: Likewise.
15631 * htl/tests/test-17.c: Likewise.
15632 * htl/tests/test-2.c: Likewise.
15633 * htl/tests/test-3.c: Likewise.
15634 * htl/tests/test-4.c: Likewise.
15635 * htl/tests/test-5.c: Likewise.
15636 * htl/tests/test-6.c: Likewise.
15637 * htl/tests/test-7.c: Likewise.
15638 * htl/tests/test-8.c: Likewise.
15639 * htl/tests/test-9.c: Likewise.
15640 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
15641 * sysdeps/htl/bits/cancelation.h: Likewise.
15642 * sysdeps/htl/bits/pthread-np.h: Likewise.
15643 * sysdeps/htl/bits/pthread.h: Likewise.
15644 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
15645 * sysdeps/htl/bits/semaphore.h: Likewise.
15646 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
15647 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
15648 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
15649 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
15650 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
15651 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
15652 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
15653 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
15654 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
15655 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
15656 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
15657 * sysdeps/htl/old_pt-atfork.c: Likewise.
15658 * sysdeps/htl/pt-atfork.c: Likewise.
15659 * sysdeps/htl/pt-attr-destroy.c: Likewise.
15660 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
15661 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
15662 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
15663 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
15664 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
15665 * sysdeps/htl/pt-attr-getscope.c: Likewise.
15666 * sysdeps/htl/pt-attr-getstack.c: Likewise.
15667 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
15668 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
15669 * sysdeps/htl/pt-attr-init.c: Likewise.
15670 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
15671 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
15672 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
15673 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
15674 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
15675 * sysdeps/htl/pt-attr-setscope.c: Likewise.
15676 * sysdeps/htl/pt-attr-setstack.c: Likewise.
15677 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
15678 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
15679 * sysdeps/htl/pt-attr.c: Likewise.
15680 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
15681 * sysdeps/htl/pt-barrier-init.c: Likewise.
15682 * sysdeps/htl/pt-barrier-wait.c: Likewise.
15683 * sysdeps/htl/pt-barrier.c: Likewise.
15684 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
15685 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
15686 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
15687 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
15688 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
15689 * sysdeps/htl/pt-cond-destroy.c: Likewise.
15690 * sysdeps/htl/pt-cond-init.c: Likewise.
15691 * sysdeps/htl/pt-cond-signal.c: Likewise.
15692 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
15693 * sysdeps/htl/pt-cond-wait.c: Likewise.
15694 * sysdeps/htl/pt-cond.c: Likewise.
15695 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
15696 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
15697 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
15698 * sysdeps/htl/pt-condattr-init.c: Likewise.
15699 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
15700 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
15701 * sysdeps/htl/pt-destroy-specific.c: Likewise.
15702 * sysdeps/htl/pt-equal.c: Likewise.
15703 * sysdeps/htl/pt-getconcurrency.c: Likewise.
15704 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
15705 * sysdeps/htl/pt-getschedparam.c: Likewise.
15706 * sysdeps/htl/pt-getspecific.c: Likewise.
15707 * sysdeps/htl/pt-init-specific.c: Likewise.
15708 * sysdeps/htl/pt-key-create.c: Likewise.
15709 * sysdeps/htl/pt-key-delete.c: Likewise.
15710 * sysdeps/htl/pt-key.h: Likewise.
15711 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
15712 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
15713 * sysdeps/htl/pt-mutex-init.c: Likewise.
15714 * sysdeps/htl/pt-mutex-lock.c: Likewise.
15715 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
15716 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
15717 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
15718 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
15719 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
15720 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
15721 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
15722 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
15723 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
15724 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
15725 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
15726 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
15727 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
15728 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
15729 * sysdeps/htl/pt-mutexattr.c: Likewise.
15730 * sysdeps/htl/pt-once.c: Likewise.
15731 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
15732 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
15733 * sysdeps/htl/pt-rwlock-init.c: Likewise.
15734 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
15735 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
15736 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
15737 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
15738 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
15739 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
15740 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
15741 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
15742 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
15743 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
15744 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
15745 * sysdeps/htl/pt-setconcurrency.c: Likewise.
15746 * sysdeps/htl/pt-setschedparam.c: Likewise.
15747 * sysdeps/htl/pt-setschedprio.c: Likewise.
15748 * sysdeps/htl/pt-setspecific.c: Likewise.
15749 * sysdeps/htl/pt-spin.c: Likewise.
15750 * sysdeps/htl/pt-startup.c: Likewise.
15751 * sysdeps/htl/pthread.h: Likewise.
15752 * sysdeps/htl/sem-close.c: Likewise.
15753 * sysdeps/htl/sem-destroy.c: Likewise.
15754 * sysdeps/htl/sem-getvalue.c: Likewise.
15755 * sysdeps/htl/sem-init.c: Likewise.
15756 * sysdeps/htl/sem-open.c: Likewise.
15757 * sysdeps/htl/sem-post.c: Likewise.
15758 * sysdeps/htl/sem-timedwait.c: Likewise.
15759 * sysdeps/htl/sem-trywait.c: Likewise.
15760 * sysdeps/htl/sem-unlink.c: Likewise.
15761 * sysdeps/htl/sem-wait.c: Likewise.
15762 * sysdeps/hurd/htl/pt-kill.c: Likewise.
15763 * sysdeps/i386/htl/pt-machdep.h: Likewise.
15764 * sysdeps/mach/htl/pt-block.c: Likewise.
15765 * sysdeps/mach/htl/pt-spin.c: Likewise.
15766 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
15767 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
15768 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
15769 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
15770 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
15771 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
15772 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
15773 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
15774 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
15775 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
15776 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
15777 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
15778 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
15779 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
15780 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
15781 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
15782 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
15783 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
15784 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
15785 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
15786 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
15787 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
15788 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
15789 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
15790 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
15791 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
15792 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
15793 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
15794 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
15795 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
15796 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
15797 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
15798 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
15799 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
15800 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
15801 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
15802 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
15803 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
15804 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
15805 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
15806 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
15807 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
15808 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
15809
15810 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
15811 * README: Remove the mention of out-of-tree patches needed for
15812 GNU/Hurd.
15813
15814 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
15815 (UTIME_NOW, UTIME_OMIT): Define macros.
15816
15817 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
15818 instead of pthread_detach.
15819 (__cthread_fork): Call __pthread_create instead of pthread_create.
15820 (__cthread_keycreate): Call __pthread_key_create instead of
15821 pthread_key_create.
15822 (__cthread_getspecific): Call __pthread_getspecific instead of
15823 pthread_getspecific.
15824 (__cthread_setspecific): Call __pthread_setspecific instead of
15825 pthread_setspecific.
15826 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
15827 __pthread_mutex_unlock instead of pthread_mutex_lock and
15828 pthread_mutex_unlock.
15829 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
15830 ___pthread_get_cleanup_stack.
15831 (__pthread_get_cleanup_stack): New strong alias.
15832 * htl/pt-create.c: Include <pthreadP.h>.
15833 (entry_point): Call __pthread_exit instead of pthread_exit.
15834 (pthread_create): Rename to __pthread_create.
15835 (pthread_create): New strong alias.
15836 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
15837 (pthread_detach): New strong alias.
15838 (__pthread_detach): Call __pthread_cond_broadcast instead of
15839 pthread_cond_broadcast.
15840 * htl/pt-exit.c: Include <pthreadP.h>.
15841 (__pthread_exit): Call __pthread_setcancelstate and
15842 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
15843 __pthread_get_cleanup_stack.
15844 * htl/pt-testcancel.c: Include <pthreadP.h>.
15845 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
15846 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
15847 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
15848 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
15849 pthread_attr_getstacksize.
15850 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
15851 Rename to __pthread_attr_getstackaddr.
15852 (pthread_attr_getstackaddr): New strong alias.
15853 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
15854 Rename to __pthread_attr_getstacksize.
15855 (pthread_attr_getstacksize): New strong alias.
15856 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
15857 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
15858 (pthread_attr_setstack): New strong alias.
15859 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
15860 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
15861 pthread_attr_getstacksize, pthread_attr_setstacksize and
15862 pthread_attr_setstackaddr.
15863 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
15864 Rename to __pthread_attr_setstackaddr.
15865 (pthread_attr_setstackaddr): New strong alias.
15866 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
15867 Rename to __pthread_attr_setstacksize.
15868 (pthread_attr_setstacksize): New strong alias.
15869 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
15870 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
15871 pthread_exit.
15872 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
15873 (__pthread_key_create): New hidden def.
15874 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
15875 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
15876 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
15877 __pthread_exit, __pthread_key_create, __pthread_getspecific,
15878 __pthread_setspecific, __pthread_setcancelstate,
15879 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
15880 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
15881 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
15882 declarations.
15883 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
15884 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
15885 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
15886 (pthread_attr_setstackaddr): New strong alias.
15887 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
15888 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
15889 (pthread_attr_setstacksize): New strong alias.
15890 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
15891 (call_exit): Call __pthread_exit instead of pthread_exit.
15892 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
15893 (_pthread_mutex_init): New hidden definition.
15894 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
15895 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
15896 instead of pthread_attr_init and pthread_attr_setstack.
15897
15898 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
15899 __vm_deallocate instead of vm_allocate and vm_deallocate.
15900 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
15901 setenv.
15902 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
15903 of geteuid.
15904 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
15905 strdup.
15906 * hurd/siginfo.c: Include <libioP.h>.
15907 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
15908 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
15909 munmap.
15910 * mach/devstream.c: Include <libioP.h>.
15911 (dealloc_ref): Call __mach_port_deallocate instead of
15912 mach_port_deallocate.
15913 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
15914 Call __mach_port_deallocate instead of mach_port_deallocate.
15915 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
15916 pathconf.
15917 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
15918 munmap.
15919 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
15920 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
15921 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
15922 of munmap.
15923 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
15924 of close.
15925 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
15926 instead of sysconf.
15927 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
15928 __clock_gettime instead of clock_gettime.
15929 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
15930 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
15931 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
15932 * sysdeps/unix/bsd/stty.c (stty): Likewise.
15933 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
15934 tcgetattr.
15935 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
15936 __clock_gettime and __nanosleep instead of clock_gettime and
15937 nanosleep.
15938 * hurd/catch-signal.c (hurd_catch_signal): Rename to
15939 __hurd_catch_signal.
15940 (hurd_catch_signal): New strong alias.
15941 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
15942 __hurd_catch_signal instead of hurd_catch_signal.
15943 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
15944 * hurd/hurdexec.c (_hurd_init): Add hidden def.
15945 * hurd/hurdinit.c (_hurd_init): Add hidden def.
15946 * hurd/hurdsig.c: Include <mach/mig_support.h>.
15947 (_hurd_thread_sigstate): Add hidden def.
15948 (_hurd_internal_post_signal): Use __mutex_unlock instead of
15949 mutex_unlock.
15950 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
15951 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
15952 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
15953 __hurd_file_name_path_lookup.
15954 (hurd_file_name_path_lookup): New strong alias.
15955 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
15956 hurd_file_name_path_lookup.
15957 * mach/errstring.c (mach_error_type): Add hidden def.
15958 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
15959 * mach/mutex-init.c (__mutex_init): Add hidden def.
15960 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
15961 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
15962 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
15963 * sysdeps/mach/hurd/getcwd.c
15964 (_hurd_canonicalize_directory_name_internal): Rename to
15965 __hurd_canonicalize_directory_name_internal.
15966 (_hurd_canonicalize_directory_name_internal): New strong alias.
15967 (__canonicalize_directory_name_internal, __getcwd): Call
15968 __hurd_canonicalize_directory_name_internal instead of
15969 _hurd_canonicalize_directory_name_internal.
15970 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
15971 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
15972 hidden defs.
15973 * sysdeps/hurd/include/hurd.h: New file.
15974 * sysdeps/hurd/include/hurd/fd.h: New file.
15975 * sysdeps/hurd/include/hurd/signal.h: New file.
15976 * sysdeps/mach/include/lock-intern.h: New file.
15977 * sysdeps/mach/include/mach.h: New file.
15978 * sysdeps/mach/include/mach/mig_support.h: New file.
15979 * sysdeps/mach/include/mach_error.h: New file.
15980 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
15981 prototype.
15982 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
15983 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
15984 _HEADER_H_HIDDEN_DEF macro.
15985 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
15986 _hurd_fd_error_signal): Add hidden prototype.
15987 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
15988 hidden def.
15989 * libio/iolibio.h (_IO_puts): New hidden prototype.
15990 * libio/ioputs.c (_IO_puts): New hidden def.
15991 * sysdeps/mach/hurd/localplt.data: New file.
15992
15993 2018-04-02 Agustina Arzille <avarzille@riseup.net>
15994 Amos Jeffries <squid3@treenet.co.nz>
15995 David Michael <fedora.dm0@gmail.com>
15996 Marco Gerards <marco@gnu.org>
15997 Marcus Brinkmann <marcus@gnu.org>
15998 Neal H. Walfield <neal@gnu.org>
15999 Pino Toscano <toscano.pino@tiscali.it>
16000 Richard Braun <rbraun@sceen.net>
16001 Roland McGrath <roland@gnu.org>
16002 Samuel Thibault <samuel.thibault@ens-lyon.org>
16003 Thomas DiModica <ricinwich@yahoo.com>
16004 Thomas Schwinge <tschwinge@gnu.org>
16005
16006 * htl: New directory.
16007 * sysdeps/htl: New directory.
16008 * sysdeps/hurd/htl: New directory.
16009 * sysdeps/i386/htl: New directory.
16010 * sysdeps/mach/htl: New directory.
16011 * sysdeps/mach/hurd/htl: New directory.
16012 * sysdeps/mach/hurd/i386/htl: New directory.
16013 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
16014 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
16015 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
16016
16017 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
16018
16019 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
16020 signals in thread created for runing timers.
16021
16022 2018-04-01 Florian Weimer <fweimer@redhat.com>
16023
16024 * support/support_format_addrinfo.c (support_format_addrinfo):
16025 Include unknown error number in formatted result.
16026
16027 2018-03-29 Florian Weimer <fweimer@redhat.com>
16028
16029 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
16030 capture SIGBUS.
16031
16032 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16033
16034 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
16035 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
16036 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
16037 (__ASSUME_CLONE_BACKWARDS): Define.
16038
16039 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
16040
16041 [BZ #23024]
16042 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
16043 early when linux sentinel value is set.
16044
16045 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16046
16047 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
16048
16049 2018-03-27 Andreas Schwab <schwab@suse.de>
16050
16051 [BZ #23005]
16052 * resolv/res_send.c (__res_context_send): Return ENOMEM if
16053 allocation of private copy of nsaddr_list fails.
16054
16055 2018-03-26 Joseph Myers <joseph@codesourcery.com>
16056
16057 [BZ #16552]
16058 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
16059 * sysdeps/unix/sysv/linux/umount.c: ... here.
16060 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
16061 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
16062 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
16063 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
16064 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
16065 * sysdeps/unix/sysv/linux/umount.S: Likewise.
16066 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
16067
16068 2018-03-26 Andreas Schwab <schwab@suse.de>
16069
16070 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
16071 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
16072 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
16073 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
16074 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
16075 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
16076 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
16077 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
16078 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
16079 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
16080 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
16081 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
16082 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
16083 (R_RISCV_NUM): Define.
16084
16085 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
16086
16087 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
16088 TLS declaration of errno.
16089 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
16090 __libc_setup_tls.
16091 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
16092 (ARCH_SETUP_TLS): Likewise.
16093 * sysdeps/mach/hurd/libc-start.h: New file copied from
16094 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
16095 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
16096 instead of __libc_setup_tls.
16097 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
16098 __libc_setup_tls before initializing libpthread and running _hurd_init
16099 which starts the signal thread.
16100 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
16101 Declare function.
16102 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16103
16104 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
16105
16106 [BZ #22998]
16107 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
16108 after it is defined.
16109
16110 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
16111 Max Horn <max@quendi.de>
16112
16113 [BZ #22644]
16114 CVE-2017-18269
16115 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
16116 branch conditions.
16117 * string/test-memmove.c (do_test2): New testcase.
16118
16119 2018-03-22 Joseph Myers <joseph@codesourcery.com>
16120
16121 * sysdeps/generic/frame.h: Remove file.
16122 * sysdeps/arm/frame.h: Likewise.
16123 * sysdeps/hppa/frame.h: Likewise.
16124 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
16125 macro.
16126 (GET_FRAME): Likewise.
16127 (GET_STACK): Likewise.
16128 (CALL_SIGHANDLER): Likewise.
16129 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
16130 Likewise.
16131 (GET_FRAME): Likewise.
16132 (GET_STACK): Likewise.
16133 (CALL_SIGHANDLER): Likewise.
16134 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
16135 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16136 (GET_FRAME): Likewise.
16137 (GET_STACK): Likewise.
16138 (CALL_SIGHANDLER): Likewise.
16139 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
16140 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16141 (GET_FRAME): Likewise.
16142 (GET_STACK): Likewise.
16143 (ADVANCE_STACK_FRAME): Likewise.
16144 (CALL_SIGHANDLER): Likewise.
16145 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
16146 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16147 (GET_FRAME): Likewise.
16148 (GET_STACK): Likewise.
16149 (CALL_SIGHANDLER): Likewise.
16150 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
16151 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16152 (GET_FRAME): Likewise.
16153 (GET_STACK): Likewise.
16154 (CALL_SIGHANDLER): Likewise.
16155 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
16156 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16157 (GET_FRAME): Likewise.
16158 (GET_STACK): Likewise.
16159 (CALL_SIGHANDLER): Likewise.
16160 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
16161 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16162 (GET_FRAME): Likewise.
16163 (GET_STACK): Likewise.
16164 (CALL_SIGHANDLER): Likewise.
16165 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
16166 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16167 (GET_FRAME): Likewise.
16168 (GET_STACK): Likewise.
16169 (CALL_SIGHANDLER): Likewise.
16170 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
16171 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16172 (GET_FRAME): Likewise.
16173 (GET_STACK): Likewise.
16174 (CALL_SIGHANDLER): Likewise.
16175 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
16176 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16177 (GET_FRAME): Likewise.
16178 (GET_STACK): Likewise.
16179 (CALL_SIGHANDLER): Likewise.
16180 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
16181 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16182 (GET_FRAME): Likewise.
16183 (GET_STACK): Likewise.
16184 (CALL_SIGHANDLER): Likewise.
16185 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
16186 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16187 (GET_FRAME): Likewise.
16188 (GET_STACK): Likewise.
16189 (CALL_SIGHANDLER): Likewise.
16190 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
16191 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16192 (FIRST_FRAME_POINTER): Likewise.
16193 (ADVANCE_STACK_FRAME): Likewise.
16194 (GET_STACK): Likewise.
16195 (GET_FRAME): Likewise.
16196 (CALL_SIGHANDLER): Likewise.
16197 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
16198 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16199 (ADVANCE_STACK_FRAME): Likewise.
16200 (GET_STACK): Likewise.
16201 (GET_FRAME): Likewise.
16202 (CALL_SIGHANDLER): Likewise.
16203 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
16204 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16205 (GET_FRAME): Likewise.
16206 (GET_STACK): Likewise.
16207 (CALL_SIGHANDLER): Likewise.
16208 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
16209 (SIGCONTEXT_EXTRA_ARGS): Likewise.
16210 (GET_FRAME): Likewise.
16211 (GET_STACK): Likewise.
16212 (CALL_SIGHANDLER): Likewise.
16213
16214 2018-03-21 Joseph Myers <joseph@codesourcery.com>
16215
16216 * sysdeps/x86_64/backtrace.c: Move to ....
16217 * debug/backtrace.c: ... here.
16218 * sysdeps/aarch64/backtrace.c: Remove file.
16219 * sysdeps/alpha/backtrace.c: Likewise.
16220 * sysdeps/hppa/backtrace.c: Likewise.
16221 * sysdeps/ia64/backtrace.c: Likewise.
16222 * sysdeps/mips/backtrace.c: Likewise.
16223 * sysdeps/nios2/backtrace.c: Likewise.
16224 * sysdeps/riscv/backtrace.c: Likewise.
16225 * sysdeps/sh/backtrace.c: Likewise.
16226 * sysdeps/tile/backtrace.c: Likewise.
16227
16228 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16229
16230 [BZ #22987]
16231 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
16232 function.
16233 (fdimf): Likewise.
16234 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
16235
16236 [BZ #17343]
16237 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
16238 possibly overflowing computations.
16239
16240 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
16241
16242 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
16243 values from Linux-specific section now that it is in the GNU section.
16244 * sysdeps/gnu/errlist.c: Regenerate.
16245
16246 2018-03-20 Joseph Myers <joseph@codesourcery.com>
16247
16248 * math/Makefile (libm-narrow-fns): Add sub.
16249 (libm-test-funcs-narrow): Likewise.
16250 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
16251 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
16252 * math/gen-auto-libm-tests.c (test_functions): Add sub.
16253 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
16254 (NARROW_SUB_ROUND_TO_ODD): Likewise.
16255 (NARROW_SUB_TRIVIAL): Likewise.
16256 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
16257 macro.
16258 (__dsubl): Likewise.
16259 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
16260 dsub.
16261 (CFLAGS-nldbl-dsub.c): New variable.
16262 (CFLAGS-nldbl-fsub.c): Likewise.
16263 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16264 __nldbl_dsubl.
16265 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
16266 prototype.
16267 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
16268 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
16269 * math/auto-libm-test-in: Add tests of sub.
16270 * math/auto-libm-test-out-narrow-sub: New generated file.
16271 * math/libm-test-narrow-sub.inc: New file.
16272 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
16273 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
16274 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
16275 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
16276 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
16277 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
16278 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
16279 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
16280 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
16281 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
16282 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
16283 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
16284 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
16285 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
16286 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
16287 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
16288 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
16289 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
16290 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16291 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16292 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16293 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16294 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16295 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16296 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16297 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16298 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16299 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16300 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16301 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16302 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16303 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16304 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16305 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16306 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16307 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16308 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16309 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16310 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16311 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16312 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16313 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16314 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16315 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16316 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16317 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16318
16319 2018-03-19 Joseph Myers <joseph@codesourcery.com>
16320
16321 [BZ #20079]
16322 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
16323
16324 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
16325
16326 * benchtests/bench-timing.h (attribute_hidden): Undefine.
16327
16328 2018-03-18 Richard Braun <rbraun@sceen.net>
16329
16330 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
16331 thread reference.
16332
16333 2018-03-18 Agustina Arzille <avarzille@riseup.net>
16334
16335 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
16336 (__libc_cleanup_fct): Define function.
16337 (__libc_cleanup_region_start, __libc_cleanup_region_end,
16338 __libc_cleanup_end): Rewrite implementation using
16339 __attribute__ ((__cleanup__)).
16340 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
16341 * hurd/Makefile (routines): Add hurdlock.
16342 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
16343 interface.
16344 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
16345 * hurd/hurdpid.c: Include <lowlevellock.h>
16346 (_S_msg_proc_newids): Use lll_wait to synchronize.
16347 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
16348 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
16349 * mach/Makefile (lock-headers): Remove machine-lock.h.
16350 * mach/lock-intern.h: Include <lowlevellock.h> instead of
16351 <machine-lock.h>.
16352 (__spin_lock_t): New type.
16353 (__SPIN_LOCK_INITIALIZER): New macro.
16354 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
16355 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
16356 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
16357 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
16358 (__mutex_init): Initialize with lll.
16359 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
16360 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
16361 needing lll.
16362 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16363 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
16364 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
16365 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
16366 (__setpgid): Use lll for synchronization.
16367 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
16368 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
16369 instead of <cthreads.h>.
16370 (_IO_lock_inexpensive): New macro
16371 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
16372 (__libc_lock_self0): New declaration.
16373 (__libc_lock_owner_self): New macro.
16374 (__libc_key_t): Remove type.
16375 (_LIBC_LOCK_INITIALIZER): New macro.
16376 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
16377 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
16378 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
16379 __libc_lock_define_initialized_recursive,
16380 __rtld_lock_define_initialized_recursive,
16381 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
16382 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
16383 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
16384 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
16385 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
16386 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
16387 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
16388 New macros.
16389 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
16390 * hurd/hurdlock.c: New file.
16391 * hurd/hurdlock.h: New file.
16392 * mach/lowlevellock.h: New file
16393
16394 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16395
16396 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
16397 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
16398 when opening a symlink with O_NOFOLLOW.
16399 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
16400 path when flags contains O_NOFOLLOW.
16401 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
16402 if flags contains O_DIRECTORY and the result is a directory.
16403 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
16404 oneself when the pointer given in D is nul (as set by ext2fs).
16405 * sysdeps/mach/hurd/mlockall.c: New file.
16406 * sysdeps/mach/hurd/munlockall.c: New file.
16407
16408 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
16409
16410 * hurd/hurdsig.c: Include <pthread.h>.
16411 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
16412 get the signal thread stack layout.
16413 * hurd/Makefile (headers): Remove threadvar.h.
16414 (inline-headers): Remove threadvar.h.
16415 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
16416 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
16417 __hurd_threadvar_max, __hurd_errno_location.
16418 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
16419 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
16420 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
16421 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
16422 unless TLS is not initialized yet, in which case we do not need a
16423 critical section yet anyway.
16424 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
16425 <machine-sp.h>.
16426 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
16427 declarations.
16428 (__hurd_threadvar_index): Remove enum.
16429 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
16430 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
16431 inlines.
16432 (__hurd_reply_port0): New variable declaration.
16433 (__hurd_local_reply_port): New macro.
16434 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
16435 (interrupted_reply_port_location): Add thread_t parameter. Use it
16436 with THREAD_TCB to access thread-local variables.
16437 (_hurdsig_abort_rpcs): Pass ss->thread to
16438 interrupted_reply_port_location.
16439 (_hurd_internal_post_signal): Likewise.
16440 (_hurdsig_init): Use presence of cthread_fork instead of
16441 __hurd_threadvar_stack_mask to start signal thread by hand.
16442 Remove signal thread threadvar initialization.
16443 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
16444 * hurd/sigunwind.c: Include <hurd/threadvar.h>
16445 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
16446 of threadvar.
16447 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
16448 __libc_lock_self0.
16449 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
16450 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
16451 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
16452 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
16453 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
16454 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
16455 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
16456 define variables.
16457 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
16458 <hurd/threadvar.h>.
16459 [IS_IN(rtld)] (rtld_errno): New variable.
16460 [IS_IN(rtld)] (__errno_location): New weak function.
16461 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
16462 * sysdeps/mach/hurd/errno.c: Remove file.
16463 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
16464 (__fork): Remove THREADVAR_SPACE macro and its use.
16465 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
16466 variable.
16467 (init): Do not initialize threadvar.
16468 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
16469 symbol.
16470 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
16471 __hurd_local_reply_port instead of threadvar.
16472 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
16473 _hurd_sigstate fields.
16474 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
16475 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
16476 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
16477 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
16478 instead of threadvar.
16479 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
16480 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
16481 (use_threadvar, global_reply_port): Remove variables.
16482 (__hurd_reply_port0): New variable.
16483 (__mig_get_reply_port): Use __hurd_local_reply_port and
16484 __hurd_reply_port0 instead of threadvar.
16485 (__mig_dealloc_reply_port): Likewise.
16486 (__mig_init): Do not initialize threadvar.
16487 * sysdeps/mach/hurd/profil.c: Fix comment.
16488 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
16489 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
16490 cthread_keycreate, cthread_getspecific, cthread_setspecific to
16491 __cthread_fork, __cthread_detach, __pthread_getattr_np,
16492 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
16493 __cthread_setspecific.
16494 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
16495 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
16496 __cthread_t instead of cthread_fork, cthread_detach,
16497 pthread_getattr_np, pthread_attr_getstack.
16498 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
16499 __cthread_keycreate.
16500 (cthread_getspecific): Rename to __cthread_getspecific.
16501 (cthread_setspecific): Rename to __cthread_setspecific.
16502 (__libc_getspecific): Use __cthread_getspecific instead of
16503 cthread_getspecific.
16504 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
16505 __cthread_keycreate instead of cthread_keycreate.
16506 (__libc_setspecific): Use __cthread_setspecific instead of
16507 cthread_setspecific.
16508 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
16509 Likewise.
16510 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
16511 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
16512 testing whether it is defined.
16513
16514 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
16515
16516 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
16517 Define macro.
16518 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
16519 * sysdeps/mach/i386/thread_state.h
16520 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
16521 i386_THREAD_STATE.
16522 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
16523 i386_THREAD_STATE.
16524 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
16525
16526 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
16527 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
16528
16529 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
16530 macros.
16531 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
16532 descriptor instead of creating a new one.
16533 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
16534
16535 * mach/setup-thread.c: Include <ldsodefs.h>.
16536 (__mach_setup_thread): Call _dl_allocate_tls, pass
16537 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
16538 MACHINE_THREAD_STATE_FLAVOR, before getting
16539 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
16540 MACHINE_THREAD_STATE_FLAVOR with the result.
16541 * hurd/hurdfault.c (_hurdsig_fault_init): Call
16542 MACHINE_THREAD_STATE_FIX_NEW.
16543 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
16544 too. Add original thread parameter.
16545
16546 2018-03-16 Joseph Myers <joseph@codesourcery.com>
16547
16548 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
16549 Remove inline function.
16550
16551 * sysdeps/i386/fpu/libm-test-ulps: Update.
16552 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
16553
16554 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
16555
16556 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
16557 commit.
16558
16559 2018-03-15 Joseph Myers <joseph@codesourcery.com>
16560
16561 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
16562 (__sincos_code): Remove define and undefine.
16563 [__FAST_MATH__] (__sincos): Remove inline function.
16564 [__FAST_MATH__] (__sincosf): Remove inline function.
16565 [__FAST_MATH__] (__sincosl): Remove inline function.
16566 (__atan2l): Remove inline functions.
16567 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
16568 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
16569 function.
16570 (floor): Remove inline function.
16571 (ceil): Likewise.
16572 [__FAST_MATH__] (__ldexp_code): Remove macro.
16573 [__FAST_MATH__] (ldexp): Remove inline function.
16574 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
16575 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
16576 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
16577 [__USE_ISOC99] (__lrint_code): Remove macro.
16578 [__USE_ISOC99] (__llrint_code): Likewise.
16579 [__USE_ISOC99] (lrintf): Remove inline function.
16580 [__USE_ISOC99] (lrint): Likewise.
16581 [__USE_ISOC99] (lrintl): Likewise.
16582 [__USE_ISOC99] (llrint): Likewise.
16583 [__USE_ISOC99] (llrintf): Likewise.
16584 [__USE_ISOC99] (llrintl): Likewise.
16585
16586 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16587
16588 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
16589 (__ieee754_sqrtf): Remove.
16590 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
16591 (__ieee754_sqrtf): Remove.
16592 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
16593 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16594 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
16595 (__ieee754_sqrtf): Remove.
16596 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
16597 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
16598 (sqrtf): Remove.
16599 (sqrtl): Remove.
16600 (__ieee754_sqrt): Remove.
16601 (__ieee754_sqrtf): Remove.
16602 (__ieee754_sqrtl): Remove.
16603 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
16604 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
16605 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
16606 (__ieee754_sqrtf): Remove.
16607 (__ieee754_sqrtl): Remove.
16608
16609 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16610
16611 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
16612 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
16613 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
16614 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
16615 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
16616 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
16617 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
16618 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
16619 Likewise.
16620 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
16621 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
16622 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
16623 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
16624 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
16625 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
16626 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
16627 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
16628 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
16629 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16630 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
16631 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
16632 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
16633 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
16634 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
16635 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
16636 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
16637 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
16638 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
16639 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
16640 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
16641 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
16642 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
16643 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
16644 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
16645 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
16646 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
16647 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
16648 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
16649 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
16650 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
16651 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
16652 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
16653 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
16654 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16655 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
16656 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
16657 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
16658 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
16659 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
16660
16661 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16662
16663 * include/math.h (sqrt): Declare with asm redirect.
16664 (sqrtf): Likewise.
16665 (sqrtl): Likewise.
16666 (sqrtf128): Likewise.
16667 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
16668 nonlib and libnldbl with -fmath-errno.
16669 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
16670 * math/w_sqrt_template.c: Likewise.
16671 * math/w_sqrtf_compat.c: Likewise.
16672 * math/w_sqrtl_compat.c: Likewise.
16673 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
16674 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
16675 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
16676 complex.h.
16677
16678 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
16679
16680 * benchtests/Makefile: Define _ISOMAC.
16681 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
16682 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
16683 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
16684 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
16685 * benchtests/bench-timing.h: Define attribute_hidden.
16686
16687 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
16688
16689 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
16690 mov + lsr.
16691
16692 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16693
16694 [BZ #22963]
16695 * localedata/locales/cs_CZ (mon): Rename to...
16696 (alt_mon): This.
16697 (mon): Import from CLDR (genitive case).
16698
16699 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16700
16701 [BZ #22937]
16702 * localedata/locales/el_CY (abmon): Rename to...
16703 (ab_alt_mon): This.
16704 (abmon): Import from CLDR (abbreviated genitive case).
16705 * localedata/locales/el_GR (abmon): Rename to...
16706 (ab_alt_mon): This.
16707 (abmon): Import from CLDR (abbreviated genitive case).
16708
16709 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
16710
16711 [BZ #22932]
16712 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
16713
16714 2018-03-15 Robert Buj <robert.buj@gmail.com>
16715
16716 [BZ #22848]
16717 * localedata/locales/ca_ES (abmon): Rename to...
16718 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16719 (mon): Rename to...
16720 (alt_mon): This.
16721 (abmon): Import from CLDR (genitive case, month names preceded by
16722 "de" or "d’").
16723 (mon): Likewise.
16724 (abday): Synchronize with CLDR.
16725 (d_t_fmt): Likewise.
16726 (d_fmt): Likewise.
16727 (am_pm): Likewise.
16728
16729 (LC_TIME): Improve indentation.
16730 (LC_TELEPHONE): Likewise.
16731 (LC_NAME): Likewise.
16732 (LC_ADDRESS): Likewise.
16733
16734 2018-03-14 Joseph Myers <joseph@codesourcery.com>
16735
16736 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
16737 (lrintf): Remove definitions used only with old GCC.
16738 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
16739 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
16740 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
16741 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
16742 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
16743 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
16744 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
16745 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
16746 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
16747 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
16748 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
16749 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
16750 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
16751 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
16752 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
16753 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
16754 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
16755 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
16756 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
16757 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
16758 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
16759 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
16760 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
16761 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
16762 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
16763 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
16764 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
16765 [__FAST_MATH__] (__M_SQRT2): Remove macro.
16766
16767 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
16768
16769 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
16770 instruction to unbreak builds with binutils 2.26 and older.
16771
16772 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
16773
16774 * sysdeps/aarch64/strncmp.S (count): New macro.
16775 (strncmp): Store misaligned length in SRC1 in COUNT.
16776 (mutual_align): Adjust.
16777 (misaligned8): Load dword at a time when it is safe.
16778
16779 2018-03-12 Zack Weinberg <zackw@panix.com>
16780
16781 [BZ #1190]
16782 [BZ #19476]
16783 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
16784 if the _IO_EOF_SEEN bit is already set; update commentary.
16785 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
16786 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
16787
16788 * support/support_openpty.c, support/tty.h: New files.
16789 * support/Makefile (libsupport-routines): Add support_openpty.
16790
16791 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
16792 New test cases.
16793 * libio/Makefile (tests): Add tst-fgetc-after-eof.
16794 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
16795
16796 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
16797
16798 * po/pt_BR.po: Update translations.
16799
16800 2018-03-12 David Michael <fedora.dm0@gmail.com>
16801
16802 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
16803 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
16804 get a port to the startup server.
16805
16806 2018-03-11 Zack Weinberg <zackw@panix.com>
16807
16808 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
16809 before nldbl-compat.h.
16810
16811 2018-03-10 Zack Weinberg <zackw@panix.com>
16812
16813 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
16814 math.h or math_private.h.
16815
16816 * sysdeps/alpha/fpu/s_isnan.c
16817 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
16818 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
16819 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
16820 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
16821 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
16822 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
16823 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
16824 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
16825 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
16826 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
16827 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
16828 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
16829 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
16830 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
16831 Include math_private.h.
16832
16833 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
16834 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
16835 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
16836 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
16837 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
16838 * sysdeps/powerpc/power7/fpu/s_logb.c:
16839 Include math.h and math_private.h.
16840
16841 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
16842 uses of $at in .set noat / .set at.
16843
16844 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
16845
16846 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
16847 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
16848 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
16849 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
16850 Likewise.
16851
16852 2018-03-09 Florian Weimer <fweimer@redhat.com>
16853
16854 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
16855 in comment.
16856
16857 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
16858
16859 [BZ #22919]
16860 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
16861 Add nop before __startcontext, add explaining comments.
16862
16863 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16864
16865 [BZ #22926]
16866 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
16867 empty for __SPE__.
16868 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
16869 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
16870 Do not build hardware transactional code for __SPE__.
16871 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
16872 (__lll_trylock_elision): Likewise.
16873 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
16874 (__lll_unlock_elision): Likewise.
16875
16876 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
16877 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
16878 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16879 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
16880 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
16881 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
16882 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
16883 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
16884 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
16885 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
16886 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
16887 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
16888 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
16889 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
16890 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
16891 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
16892 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
16893 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
16894 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
16895 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
16896 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
16897 * sysdeps/unix/sysv/linux/arm/kernel-features.h
16898 (__ASSUME_CLONE_BACKWARDS): Define.
16899 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
16900 __clone2 if __NR_clone2 is defined.
16901 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
16902 (__ASSUME_CLONE_BACKWARDS): Likewise.
16903 * sysdeps/unix/sysv/linux/i386/kernel-features.h
16904 (__ASSUME_CLONE_BACKWARDS): Likewise.
16905 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
16906 (__ASSUME_CLONE2): Likewise.
16907 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16908 (__ASSUME_CLONE_BACKWARDS3): Likewise.
16909 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
16910 variants and the define architecture can use.
16911 (__ASSUME_CLONE_DEFAULT): Define as default.
16912 * sysdeps/unix/sysv/linux/mips/kernel-features.h
16913 (__ASSUME_CLONE_BACKWARDS): Likewise.
16914 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
16915 (__ASSUME_CLONE_BACKWARDS): Likewise.
16916 * sysdeps/unix/sysv/linux/s390/kernel-features.h
16917 (__ASSUME_CLONE_BACKWARDS2): Likewise.
16918
16919 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
16920
16921 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
16922
16923 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
16924 time.
16925
16926 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
16927 (do_test_limit): Likewise.
16928
16929 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
16930 for every implementation.
16931 (do_test): Likewise.
16932
16933 * benchtests/bench-strncmp.c: Convert output to json.
16934
16935 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
16936
16937 * io/futimens.c: Add missing start-of-file descriptive comment.
16938 * io/utime.c: Likewise.
16939 * misc/futimesat.c: Likewise.
16940 * misc/utimes.c: Likewise.
16941 * sysdeps/mach/hurd/futimesat.c: Likewise.
16942 * sysdeps/mach/hurd/utimes.c: Likewise.
16943 * sysdeps/posix/utime.c: Likewise.
16944 * sysdeps/posix/utimes.c: Likewise.
16945 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
16946 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
16947 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
16948 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
16949
16950 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16951
16952 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
16953 hurd_futimes.
16954 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
16955 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
16956 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
16957 (__futimens): Move implementation to...
16958 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
16959 utime_tvalue_from_tspec): ... new helper functions.
16960 (hurd_futimens): New function.
16961 * sysdeps/mach/hurd/futimesat.c: New file.
16962 * sysdeps/mach/hurd/utimensat.c: New file.
16963
16964 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
16965
16966 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
16967 UTIME_OMIT): New macros.
16968 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
16969 before reverting to converting time spec to time value and calling
16970 __file_utimes.
16971 * sysdeps/mach/hurd/utime-helper.c: New file.
16972 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
16973 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
16974 reverting to utime_tvalue_from_tval and __file_utimes.
16975 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
16976 (__lutimes): Just call hurd_futimens after lookup.
16977 * sysdeps/mach/hurd/utimes.c: Likewise.
16978
16979 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
16980
16981 * bits/sigaction.h: Add include guard.
16982 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
16983 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
16984 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
16985 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
16986 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
16987 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
16988 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
16989 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
16990 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
16991
16992 2018-03-05 Joseph Myers <joseph@codesourcery.com>
16993
16994 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
16995 -Wmaybe-uninitialized for -Os.
16996 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
16997 this disabling.
16998
16999 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17000
17001 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
17002 __INO_T_MATCHES_INO64_T is defined.
17003 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
17004 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
17005 of definition.
17006 * dirent/alphasort64.c: Likewise.
17007 * dirent/scandir.c: Likewise.
17008 * dirent/scandir64-tail.c: Likewise.
17009 * dirent/scandir64.c: Likewise.
17010 * dirent/scandirat.c: Likewise.
17011 * dirent/scandirat64.c: Likewise.
17012 * dirent/versionsort.c: Likewise.
17013 * dirent/versionsort64.c: Likewise.
17014 * include/dirent.h: Likewise.
17015
17016 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
17017 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
17018 for socketpair endpoint.
17019 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
17020 WRITE_BUFFER_SIZE as buffer size for sending socket.
17021 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
17022 issue on system where send is implemented with sendto syscall.
17023 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
17024 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
17025 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
17026 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
17027
17028 [BZ #21269]
17029 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
17030 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
17031 sa_restorer for vDSO case.
17032 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
17033
17034 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17035
17036 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
17037 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
17038 * hurd/hurd/ioctl.h: Include <mach/port.h>
17039 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
17040 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
17041 <mach/mach_types.h> and <mach/message.h>.
17042 (headers): Move mach/param.h to bits/mach/param.h.
17043 * sysdeps/mach/i386/mach/param.h: Move file to ...
17044 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
17045 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
17046 of <mach/param.h>.
17047 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
17048 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
17049 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
17050 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
17051 trivial, for C++ conformity.
17052 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
17053 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
17054 Process mig output through $(migheadersed).
17055 * hurd/Makefile (migheadersed): Define variable.
17056 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
17057 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
17058 headers.
17059 * hurd/hurd.h: Include <bits/types/sigset_t.h>
17060 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
17061 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
17062 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
17063 <bits/types/sigset_t.h>.
17064 [!defined __USE_GNU]: Do not #error out.
17065 (struct hurd_sigstate): Use _NSIG instead of NSIG.
17066 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
17067 Include <stddef.h> and <bits/types/sigset_t.h>
17068 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
17069 instead of sighandler_t.
17070 * stdlib/errno.h (error_t): Move definition to...
17071 * bits/types/error_t.h: ... new header.
17072 * stdlib/Makefile (headers): Add bits/types/error_t.h.
17073 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
17074 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
17075 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
17076 * hurd/hurd.h: Include <bits/types/error_t.h>
17077 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
17078 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
17079 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
17080 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
17081 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
17082 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
17083 * sysdeps/mach/hurd/futimens.c: New file.
17084
17085 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
17086
17087 [BZ #22918]
17088 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
17089 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
17090 * nscd/gai.c (__nss_hosts_database): Readd definition.
17091 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
17092 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
17093 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
17094
17095 2018-03-02 Joseph Myers <joseph@codesourcery.com>
17096
17097 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
17098 (ifunc_one): Likewise.
17099
17100 2018-03-01 DJ Delorie <dj@delorie.com>
17101
17102 [BZ #22342]
17103 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
17104 key value.
17105
17106 2018-03-01 Maciej W. Rozycki <macro@mips.com>
17107
17108 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
17109 `match_pid' parameter.
17110 (td_ta_thr_iter): Update accordingly.
17111
17112 2018-03-01 Florian Weimer <fweimer@redhat.com>
17113
17114 * nptl/Makefile (install-lib-ldscripts): Remove.
17115 (install): Remove rule.
17116 ($(inst_libdir)/libpthread.so): Likewise.
17117
17118 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17119
17120 [BZ #22896]
17121 * localedata/locales/an_ES: update month and day names,
17122 improve d_fmt, improve postal_fmt, add country_post,
17123 add country_isbn
17124
17125 2018-03-01 Mike FABIAN <mfabian@redhat.com>
17126
17127 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
17128 Ukrainian instead of Bulgarian.
17129
17130 2018-03-01 Florian Weimer <fweimer@redhat.com>
17131
17132 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
17133 reference.
17134
17135 2018-03-01 Florian Weimer <fweimer@redhat.com>
17136
17137 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
17138 * nptl/Makefile (routines): Add pthread_atfork.
17139 (static-only-routines): Set to pthread_atfork.
17140 (libpthread-routines): Remove pthread_atfork.
17141 (libpthread-static-only-routines): Remove.
17142 (install): Update comment.
17143 (libpthread.so): Do not install libpthread_nonshared.a.
17144 (tests): Do not link with libpthread_nonshared.a.
17145 (generated): Remove libpthread_nonshared.a.
17146 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
17147 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
17148 with libpthread_nonshared.a.
17149
17150 2018-02-28 Joseph Myers <joseph@codesourcery.com>
17151
17152 [BZ #22902]
17153 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
17154 (libc_feholdexcept_setroundf128): New macro.
17155 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
17156
17157 [BZ #15105]
17158 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
17159 libc_hidden_def.
17160 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
17161 * include/inttypes.h: New file.
17162
17163 2018-02-27 Joseph Myers <joseph@codesourcery.com>
17164
17165 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
17166 -Os in two more places.
17167
17168 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17169
17170 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
17171 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
17172 be sorted correctly at the moment because of a bug.
17173
17174 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17175
17176 [BZ #22550] - es_ES locale (and other es_* locales): collation should
17177 treat ñ as a primary different character, sync the collation
17178 for Spanish with CLDR.
17179 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
17180 * localedata/Makefile: Add new test files.
17181 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
17182 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
17183 collation order.
17184 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
17185 * localedata/am_ET.UTF-8.in: New test file.
17186 * localedata/az_AZ.UTF-8.in: Likewise.
17187 * localedata/be_BY.UTF-8.in: Likewise.
17188 * localedata/ber_DZ.UTF-8.in: Likewise.
17189 * localedata/ber_MA.UTF-8.in: Likewise.
17190 * localedata/bg_BG.UTF-8.in: Likewise.
17191 * localedata/br_FR.UTF-8.in: Likewise.
17192 * localedata/cmn_TW.UTF-8.in: Likewise.
17193 * localedata/crh_UA.UTF-8.in: Likewise.
17194 * localedata/csb_PL.UTF-8.in: Likewise.
17195 * localedata/cv_RU.UTF-8.in: Likewise.
17196 * localedata/cy_GB.UTF-8.in: Likewise.
17197 * localedata/dz_BT.UTF-8.in: Likewise.
17198 * localedata/eo.UTF-8.in: Likewise.
17199 * localedata/es_ES.UTF-8.in: Likewise.
17200 * localedata/fa_IR.UTF-8.in: Likewise.
17201 * localedata/fi_FI.UTF-8.in: Likewise.
17202 * localedata/fil_PH.UTF-8.in: Likewise.
17203 * localedata/fur_IT.UTF-8.in: Likewise.
17204 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
17205 * localedata/ha_NG.UTF-8.in: Likewise.
17206 * localedata/ig_NG.UTF-8.in: Likewise.
17207 * localedata/ik_CA.UTF-8.in: Likewise.
17208 * localedata/kk_KZ.UTF-8.in: Likewise.
17209 * localedata/ku_TR.UTF-8.in: Likewise.
17210 * localedata/ky_KG.UTF-8.in: Likewise.
17211 * localedata/ln_CD.UTF-8.in: Likewise.
17212 * localedata/mi_NZ.UTF-8.in: Likewise.
17213 * localedata/ml_IN.UTF-8.in: Likewise.
17214 * localedata/mn_MN.UTF-8.in: Likewise.
17215 * localedata/mr_IN.UTF-8.in: Likewise.
17216 * localedata/mt_MT.UTF-8.in: Likewise.
17217 * localedata/nb_NO.UTF-8.in: Likewise.
17218 * localedata/om_KE.UTF-8.in: Likewise.
17219 * localedata/os_RU.UTF-8.in: Likewise.
17220 * localedata/ps_AF.UTF-8.in: Likewise.
17221 * localedata/ro_RO.UTF-8.in: Likewise.
17222 * localedata/ru_RU.UTF-8.in: Likewise.
17223 * localedata/sc_IT.UTF-8.in: Likewise.
17224 * localedata/se_NO.UTF-8.in: Likewise.
17225 * localedata/sq_AL.UTF-8.in: Likewise.
17226 * localedata/sv_SE.UTF-8.in: Likewise.
17227 * localedata/szl_PL.UTF-8.in: Likewise.
17228 * localedata/tg_TJ.UTF-8.in: Likewise.
17229 * localedata/tk_TM.UTF-8.in: Likewise.
17230 * localedata/tt_RU.UTF-8.in: Likewise.
17231 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
17232 * localedata/ug_CN.UTF-8.in: Likewise.
17233 * localedata/uz_UZ.UTF-8.in: Likewise.
17234 * localedata/vi_VN.UTF-8.in: Likewise.
17235 * localedata/yi_US.UTF-8.in: Likewise.
17236 * localedata/yo_NG.UTF-8.in: Likewise.
17237 * localedata/zh_CN.UTF-8.in: Likewise.
17238 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
17239 file and fix bugs in the collation.
17240 * localedata/locales/az_AZ: Likewise.
17241 * localedata/locales/be_BY: Likewise.
17242 * localedata/locales/ber_DZ: Likewise.
17243 * localedata/locales/ber_MA: Likewise.
17244 * localedata/locales/bg_BG: Likewise.
17245 * localedata/locales/br_FR: Likewise.
17246 * localedata/locales/br_FR@euro: Likewise.
17247 * localedata/locales/ca_ES: Likewise.
17248 * localedata/locales/cns11643_stroke: Likewise.
17249 * localedata/locales/crh_UA: Likewise.
17250 * localedata/locales/cs_CZ: Likewise.
17251 * localedata/locales/csb_PL: Likewise.
17252 * localedata/locales/cv_RU: Likewise.
17253 * localedata/locales/cy_GB: Likewise.
17254 * localedata/locales/da_DK: Likewise.
17255 * localedata/locales/dz_BT: Likewise.
17256 * localedata/locales/en_CA: Likewise.
17257 * localedata/locales/eo: Likewise.
17258 * localedata/locales/es_CU: Likewise.
17259 * localedata/locales/es_EC: Likewise.
17260 * localedata/locales/es_ES: Likewise.
17261 * localedata/locales/es_US: Likewise.
17262 * localedata/locales/et_EE: Likewise.
17263 * localedata/locales/fa_IR: Likewise.
17264 * localedata/locales/fi_FI: Likewise.
17265 * localedata/locales/fil_PH: Likewise.
17266 * localedata/locales/fur_IT: Likewise.
17267 * localedata/locales/gez_ER@abegede: Likewise.
17268 * localedata/locales/ha_NG: Likewise.
17269 * localedata/locales/hr_HR: Likewise.
17270 * localedata/locales/hsb_DE: Likewise.
17271 * localedata/locales/hu_HU: Likewise.
17272 * localedata/locales/ig_NG: Likewise.
17273 * localedata/locales/ik_CA: Likewise.
17274 * localedata/locales/is_IS: Likewise.
17275 * localedata/locales/iso14651_t1_pinyin: Likewise.
17276 * localedata/locales/kk_KZ: Likewise.
17277 * localedata/locales/ku_TR: Likewise.
17278 * localedata/locales/ky_KG: Likewise.
17279 * localedata/locales/ln_CD: Likewise.
17280 * localedata/locales/lt_LT: Likewise.
17281 * localedata/locales/lv_LV: Likewise.
17282 * localedata/locales/mi_NZ: Likewise.
17283 * localedata/locales/ml_IN: Likewise.
17284 * localedata/locales/mn_MN: Likewise.
17285 * localedata/locales/mr_IN: Likewise.
17286 * localedata/locales/mt_MT: Likewise.
17287 * localedata/locales/nb_NO: Likewise.
17288 * localedata/locales/om_KE: Likewise.
17289 * localedata/locales/os_RU: Likewise.
17290 * localedata/locales/pl_PL: Likewise.
17291 * localedata/locales/ps_AF: Likewise.
17292 * localedata/locales/ro_RO: Likewise.
17293 * localedata/locales/ru_RU: Likewise.
17294 * localedata/locales/ru_UA: Likewise.
17295 * localedata/locales/sc_IT: Likewise.
17296 * localedata/locales/se_NO: Likewise.
17297 * localedata/locales/si_LK: Likewise.
17298 * localedata/locales/sq_AL: Likewise.
17299 * localedata/locales/sv_FI: Likewise.
17300 * localedata/locales/sv_FI@euro: Likewise.
17301 * localedata/locales/sv_SE: Likewise.
17302 * localedata/locales/szl_PL: Likewise.
17303 * localedata/locales/tg_TJ: Likewise.
17304 * localedata/locales/ti_ER: Likewise.
17305 * localedata/locales/tk_TM: Likewise.
17306 * localedata/locales/tl_PH: Likewise.
17307 * localedata/locales/tr_TR: Likewise.
17308 * localedata/locales/tt_RU: Likewise.
17309 * localedata/locales/tt_RU@iqtelif: Likewise.
17310 * localedata/locales/ug_CN: Likewise.
17311 * localedata/locales/uk_UA: Likewise.
17312 * localedata/locales/uz_UZ: Likewise.
17313 * localedata/locales/uz_UZ@cyrillic: Likewise.
17314 * localedata/locales/vi_VN: Likewise.
17315 * localedata/locales/yi_US: Likewise.
17316 * localedata/locales/yo_NG: Likewise.
17317
17318 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17319
17320 * gen-locales.mk: Make test files which contain @ modifiers in their
17321 name work.
17322 * localedata/gen-locale.sh: Likewise.
17323
17324 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17325
17326 * posix/tst-fnmatch.input: Fix results for range expressions
17327 for non C locales.
17328 * posix/tst-regexloc.c: Do not use a range expression for
17329 de_DE.ISO-8859-1 locale.
17330
17331 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17332
17333 * posix/bug-regex5.c: Fix test case because with the new
17334 iso14651_t1_common file, the da_DK locale now has 6 collating elements
17335 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
17336 file.
17337
17338 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17339
17340 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
17341 downloaded from ISO, the collation order of @-. and space has changed.
17342 Therefore, this test file needed to be adapted.
17343 * localedata/fr_CA.UTF-8.in: Likewise.
17344 * localedata/fr_FR.UTF-8.in: Likewise.
17345 * localedata/uk_UA.UTF-8.in: Likewise.
17346
17347 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17348
17349 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
17350 order of ȥ in the new iso14651_t1_common file.
17351 * localedata/pl_PL.UTF-8.in: Likewise.
17352
17353 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17354
17355 * localedata/locales/iso14651_t1_common: Add sections for various
17356 scripts to the iso14651_t1_common file.
17357
17358 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17359
17360 * localedata/locales/iso14651_t1_common: Use the code point of a
17361 character in the fourth collation level instead of IGNORE for all
17362 entries which have IGNORE on all 4 levels.
17363
17364 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17365
17366 * localedata/locales/iso14651_t1_common: Add some convenient collation
17367 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
17368 rules similar to those in CLDR.
17369
17370 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17371
17372 * localedata/locales/iso14651_t1_common: The new version of this
17373 file downloaded from ISO contained several syntax errors which
17374 are fixed by this patch.
17375
17376 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17377
17378 * localedata/locales/iso14651_t1_common: replace all <U.....>
17379 with <U000.....> because glibc understands only 4 digit or 8 digit
17380
17381 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17382
17383 * localedata/locales/iso14651_t1_common: Necessary changes
17384 to make the file downloaded from ISO usable by glibc.
17385
17386 2018-02-27 Mike FABIAN <mfabian@redhat.com>
17387
17388 [BZ #14095]
17389 * localedata/locales/iso14651_t1_common: Update file to
17390 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
17391
17392 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17393
17394 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
17395 of <nptl/pthreadP.h>
17396 (thread_attr_compare): Move function to...
17397 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
17398 * sysdeps/nptl/timer_routines.h: ... new header.
17399 * sysdeps/mach/hurd/gai_misc.h: New file.
17400
17401 2018-02-26 Joseph Myers <joseph@codesourcery.com>
17402
17403 * string/strcoll_l.c: Include <libc-diag.h>.
17404 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
17405 declarations of seq1 and seq2.
17406
17407 [BZ #15105]
17408 * stdlib/atoi.c (atoi): Use libc_hidden_def.
17409 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
17410
17411 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
17412
17413 [BZ #22433]
17414 [BZ #22807]
17415 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
17416 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
17417 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
17418 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
17419 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
17420 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
17421
17422 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17423
17424 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
17425 macros used in __ptrace_request.
17426
17427 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
17428
17429 [BZ #22792]
17430 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
17431 to $(CC).
17432 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
17433 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
17434 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
17435 <tcb-offsets.h>.
17436
17437 2018-02-23 Joseph Myers <joseph@codesourcery.com>
17438
17439 [BZ #15105]
17440 * ctype/ctype.c (tolower): Use libc_hidden_def.
17441 (toupper): Likewise.
17442 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
17443 [!_ISOMAC] (toupper): Likewise.
17444
17445 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17446
17447 * localedata/Makefile: Remove --quiet argument when
17448 installing locales
17449
17450 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17451
17452 [BZ #17438]
17453 * localedata/locales/pt_BR (LC_TIME): use / instead of -
17454 in d_fmt.
17455 * localedata/locales/pt_PT (LC_TIME): likewise
17456
17457 2018-02-23 Mike FABIAN <mfabian@redhat.com>
17458
17459 [BZ #22646]
17460 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
17461 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
17462 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
17463
17464 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17465
17466 * sysdeps/sparc/fpu/libm-test-ulps: Update.
17467
17468 * nptl/Makefile (routines): Remove unregister-atfork.
17469 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
17470 (fork_handler_alloc): Remove function.
17471 (fork_handlers, fork_handler_init): New variables.
17472 (__fork_lock): Rename to atfork_lock.
17473 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
17474 to use a dynamic array to add/remove atfork handlers.
17475 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
17476 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
17477 Remove declaration.
17478 (fork_handler): Remove next, refcntr, and need_signal member.
17479 (__run_fork_handler_type): New enum.
17480 (__run_fork_handlers): New prototype.
17481 * nptl/register-atfork.c: Remove file.
17482 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
17483
17484 * sysdeps/nptl/nptl-signals.h: Move to ...
17485 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
17486 comments.
17487 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
17488 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
17489 unnecessary check for SIGTIMER.
17490 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
17491 remove unnecessary removal of SIGTIMER.
17492 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
17493 include-signals.h rename.
17494 * nptl/pthreadP.h: Likewise.
17495 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
17496 __is_internal_signal instead of __nptl_is_internal_signal.
17497
17498 2018-02-22 Andrew Waterman <andrew@sifive.com>
17499
17500 [BZ # 22884]
17501 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
17502 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
17503 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
17504 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
17505
17506 2018-02-22 DJ Delorie <dj@delorie.com>
17507
17508 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
17509
17510 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
17511
17512 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
17513 do_misaligned, not misaligned8.
17514
17515 2018-02-22 Steve Ellcey <sellcey@cavium.com>
17516
17517 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
17518 Add memcpy_thunderx2.
17519 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
17520 Increment to 4.
17521 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
17522 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
17523 and IS_THUNDERX2PA checks.
17524 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
17525 Use macro to set name appropriately.
17526 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
17527 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
17528 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
17529 New macro.
17530 (IS_THUNDERX2): New macro.
17531
17532 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
17533
17534 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17535
17536 2018-02-21 Zack Weinberg <zackw@panix.com>
17537
17538 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
17539 Define here, unconditionally.
17540 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
17541 * libio/libioP.h: Remove #if 0 blocks.
17542 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
17543 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
17544 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
17545
17546 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
17547 Assume weak_alias is always defined.
17548
17549 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
17550 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
17551 Remove #if 0 and #ifdef TODO blocks.
17552 Assume text_set_element is always defined.
17553
17554 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
17555 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
17556 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
17557
17558 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
17559 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
17560 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
17561 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
17562 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
17563 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
17564 Reformat bit flags for _flags field to make occupancy clearer.
17565 Update commentary.
17566 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
17567 Keep definitions consistent with those in libio/libio.h.
17568
17569 * libio/libio.h (_IO_file_flags): Remove macro.
17570 All uses changed to _flags.
17571
17572 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
17573 (__HAVE_COLUMN, _IO_BE): Don't define.
17574 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
17575 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
17576 * libio/libioP.h (EOF): Don't define.
17577 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
17578 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
17579 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
17580 testing _IO_UNIFIED_JUMPTABLES.
17581
17582 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
17583 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
17584 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
17585 (_IO_size_t): Delete; all uses changed to size_t.
17586 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
17587 (_IO_off_t): Delete; all uses changed to off_t.
17588 (_IO_off64_t): Delete; all uses changed to off64_t.
17589 (_IO_pid_t): Delete; all uses changed to pid_t.
17590 (_IO_uid_t): Delete; all uses changed to uid_t.
17591 (_IO_wint_t): Delete; all uses changed to wint_t.
17592 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
17593 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
17594 (_IO_cookie_io_functions_t): Delete; all uses changed to
17595 cookie_io_functions_t.
17596 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
17597 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
17598 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
17599 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
17600
17601 * libio/iofopncook.c: Remove unnecessary forward declarations.
17602 * libio/iolibio.h: Correct outdated commentary.
17603 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
17604 * stdio-common/fxprintf.c (__fxprintf_nocancel):
17605 Remove unnecessary casts.
17606 * stdio-common/getline.c: Use _IO_getdelim directly.
17607 Don't redefine ssize_t.
17608 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
17609 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
17610 Remove outdated comments.
17611 * stdio-common/vfscanf.c: Don't redefine va_list.
17612
17613 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
17614 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
17615 Remove preprocessor conditionals on _LIBC and __USE_GNU,
17616 which are always true, and __cplusplus, which is always false.
17617
17618 2018-02-21 Joseph Myers <joseph@codesourcery.com>
17619
17620 [BZ #15105]
17621 [BZ #19463]
17622 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
17623 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
17624 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
17625 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
17626 libc_hidden_proto.
17627 [!_ISOMAC] (putc_unlocked): Likewise.
17628 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
17629 define inline if [__USE_EXTERN_INLINES].
17630 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
17631 putc_unlocked.
17632
17633 [BZ #15105]
17634 [BZ #19463]
17635 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
17636 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
17637 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
17638 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
17639 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
17640 getc_unlocked.
17641 * time/tzfile.c (__tzfile_read): Likewise.
17642
17643 2018-02-21 Mike FABIAN <mfabian@redhat.com>
17644
17645 [BZ #22517]
17646 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
17647
17648 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17649
17650 * io/fcntl.h: Fix a typo in a comment.
17651
17652 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
17653
17654 [BZ #22862]
17655 * include/features.h: Add _ISOC11_SOURCE to test for whether to
17656 define _DEFAULT_SOURCE.
17657 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
17658
17659 2018-02-21 Florian Weimer <fweimer@redhat.com>
17660
17661 [BZ #20890]
17662 * elf/cache.c (save_cache): Call fsync on temporary file before
17663 renaming it.
17664 (save_aux_cache): Call fdatasync on temporary file before renaming
17665 it.
17666
17667 2018-02-21 Florian Weimer <fweimer@redhat.com>
17668
17669 [BZ #22787]
17670 * include/caller.h: Remove file.
17671 * elf/dl-caller.c: Likewise.
17672 * elf/Makefile (dl-routines): Remove dl-caller.
17673 (shared-only-routines): Do not add dl-caller.
17674 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
17675 __check_caller.
17676 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
17677 member.
17678 (dl_open_worker): Do not call __check_caller.
17679 (_dl_open): Do not set caller_dl_open member.
17680 * elf/rtld.c (_rtld_global_ro): Do not initialize
17681 _dl_check_caller member.
17682 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
17683 _dl_check_caller member.
17684 (_dl_check_caller): Remove declaration.
17685 * sysdeps/unix/sysv/linux/dl-execstack.c
17686 (_dl_make_stack_executable): Do not call __check_caller.
17687
17688 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
17689
17690 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
17691 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
17692
17693 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17694
17695 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
17696 description.
17697
17698 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
17699
17700 [BZ #16335]
17701 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
17702 of 199606L, 200112L, and 200809L.
17703 (_XOPEN_SOURCE): Document special values of 600 and 700.
17704 (_ISOC11_SOURCE): Document macro.
17705 (_ATFILE_SOURCE): Likewise.
17706 (_FORTIFY_SOURCE): Likewise.
17707
17708 2018-02-19 Joseph Myers <joseph@codesourcery.com>
17709
17710 [BZ #15105]
17711 [BZ #19463]
17712 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
17713 and define as weak alias of __ferror_unlocked. Use
17714 libc_hidden_weak.
17715 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
17716 libc_hidden_proto.
17717 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
17718 function if [__USE_EXTERN_INLINES].
17719 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
17720 ferror_unlocked.
17721
17722 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
17723
17724 [BZ #6889]
17725 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
17726
17727 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17728
17729 [BZ #22818]
17730 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
17731 the GLIBC_2.1 version.
17732
17733 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
17734
17735 [BZ #21508]
17736 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
17737 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
17738 intl/tst-gettext-de.po from po/de.po by removing the
17739 POT-Creation-Date line.
17740 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
17741 ../po/de.po.
17742 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
17743 ../po/de.po.
17744
17745 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
17746
17747 * mach/Makefile (headers): Add mach/param.h.
17748 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
17749 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
17750 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
17751 (__ptsname_r): Move implementation to...
17752 (__ptsname_internal): ... new function. Add filling the STP
17753 structure.
17754
17755 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
17756
17757 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
17758 idouble to 1 ULP.
17759
17760 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
17761
17762 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
17763 syntax.
17764
17765 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
17766
17767 * nptl/Makefile (tst-mutex8-ENV): Delete.
17768 * nptl/tst-mutex8.c (check_type):
17769 Add runtime check if mutex will be elided.
17770
17771 2018-02-15 Joseph Myers <joseph@codesourcery.com>
17772
17773 [BZ #20980]
17774 [BZ #21234]
17775 * manual/install.texi (Configuring and compiling): Describe
17776 passing CC and CFLAGS on configure command line, not as
17777 environment variables. Use @code markup on those variables.
17778 Specify what options go in CC and what go in CFLAGS. Note the
17779 requirement to compile with optimization.
17780 * INSTALL: Regenerated.
17781
17782 [BZ #18124]
17783 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
17784 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
17785 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
17786 __sigprocmask instead of sigprocmask.
17787 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
17788 Likewise.
17789 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
17790 __sigsetjmp and sigprocmask.
17791
17792 [BZ #15105]
17793 * include/argz.h (argz_next): Use libc_hidden_proto.
17794 (__argz_next): Likewise.
17795 * string-argz-next.c (__argz_next): Use libc_hidden_def.
17796 (argz_next): Use libc_hidden_weak.
17797
17798 [BZ #15105]
17799 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
17800 libc_hidden_proto.
17801 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
17802 libc_hidden_def.
17803
17804 [BZ #15105]
17805 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
17806 libc_hidden_proto.
17807 * libio/iofputs.c (fputs): Use libc_hidden_weak.
17808
17809 [BZ #15105]
17810 [BZ #19463]
17811 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
17812 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
17813 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
17814 (__feof_unlocked): New declaration, and inline function if
17815 [__USE_EXTERN_INLINES].
17816 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
17817 instead of feof_unlocked.
17818 * intl/localealias.c [_LIBC] (FEOF): Likewise.
17819 * nss/nsswitch.c (nss_parse_file): Likewise.
17820 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
17821 Likewise.
17822 * time/getdate.c (__getdate_r): Likewise.
17823 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
17824 Define as macro to call __feof_unlocked.
17825
17826 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17827
17828 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
17829
17830 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
17831
17832 * math/Makefile: Remove mpexp.c and mplog.c
17833 * sysdeps/i386/fpu/mpexp.c: Delete file.
17834 * sysdeps/i386/fpu/mplog.c: Likewise.
17835 * sysdeps/ia64/fpu/mpexp.c: Likewise.
17836 * sysdeps/ia64/fpu/mplog.c: Likewise.
17837 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
17838 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
17839 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
17840 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
17841 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
17842 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
17843 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
17844 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
17845 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
17846 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
17847 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
17848 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
17849 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
17850 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
17851 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
17852 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
17853
17854 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
17855
17856 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
17857
17858 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17859
17860 * sysdeps/sh/libm-test-ulps: Update.
17861
17862 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17863
17864 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
17865 idouble to 1 ULP.
17866
17867 2018-02-12 Zack Weinberg <zackw@panix.com>
17868
17869 [BZ #19239]
17870 * posix/sys/types.h: Don't include sys/sysmacros.h.
17871 * misc/sys/sysmacros.h: Remove the conditional deprecation
17872 warnings for the macros defined by this header.
17873
17874 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17875
17876 * manual/probes.texi: Remove slowexp probes.
17877 * math/Makefile: Remove slowexp.
17878 * sysdeps/generic/math_private.h (__slowexp): Remove.
17879 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
17880 document error bounds.
17881 * sysdeps/i386/fpu/slowexp.c: Remove.
17882 * sysdeps/ia64/fpu/slowexp.c: Remove.
17883 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
17884 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
17885 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
17886 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
17887 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
17888 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
17889 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
17890 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
17891 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
17892 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
17893 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
17894
17895 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
17896
17897 [BZ #13932]
17898 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
17899 * benchtests/pow-inputs: Update comment for slow path cases.
17900 * manual/probes.texi (slowpow_p10): Delete removed probe.
17901 (slowpow_p10): Likewise.
17902 * math/Makefile: Remove halfulp.c and slowpow.c.
17903 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
17904 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
17905 (__halfulp): Remove.
17906 (__slowpow): Remove.
17907 * sysdeps/i386/fpu/halfulp.c: Delete file.
17908 * sysdeps/i386/fpu/slowpow.c: Likewise.
17909 * sysdeps/ia64/fpu/halfulp.c: Likewise.
17910 * sysdeps/ia64/fpu/slowpow.c: Likewise.
17911 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
17912 improve comments and add error analysis.
17913 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
17914 (power1): Remove function:
17915 (log1): Remove error argument, add error analysis.
17916 (my_log2): Remove function.
17917 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
17918 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17919 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
17920 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
17921 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
17922 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
17923 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
17924 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
17925 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
17926 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
17927 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
17928 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
17929 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
17930 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
17931
17932 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
17933
17934 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
17935 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
17936
17937 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
17938
17939 [BZ #22433]
17940 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
17941 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
17942 and PTRACE_SETHBPREGS.
17943
17944 2018-02-10 Zack Weinberg <zackw@panix.com>
17945
17946 [BZ #22830]
17947 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
17948 correctly.
17949 * malloc/tst-malloc-stats-cancellation.c: New test case.
17950 * malloc/Makefile: Add new test case.
17951
17952 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
17953
17954 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
17955
17956 2018-02-10 Joseph Myers <joseph@codesourcery.com>
17957
17958 * math/Makefile (libm-narrow-fns): Add add.
17959 (libm-test-funcs-narrow): Likewise.
17960 * math/Versions (GLIBC_2.28): Add narrowing add functions.
17961 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
17962 * math/gen-auto-libm-tests.c (test_functions): Add add.
17963 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
17964 (NARROW_ADD_ROUND_TO_ODD): Likewise.
17965 (NARROW_ADD_TRIVIAL): Likewise.
17966 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
17967 macro.
17968 (__daddl): Likewise.
17969 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
17970 dadd.
17971 (CFLAGS-nldbl-dadd.c): New variable.
17972 (CFLAGS-nldbl-fadd.c): Likewise.
17973 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
17974 __nldbl_daddl.
17975 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
17976 prototype.
17977 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
17978 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
17979 * math/auto-libm-test-in: Add tests of add.
17980 * math/auto-libm-test-out-narrow-add: New generated file.
17981 * math/libm-test-narrow-add.inc: New file.
17982 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
17983 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
17984 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
17985 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
17986 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
17987 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
17988 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
17989 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
17990 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
17991 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
17992 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
17993 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
17994 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
17995 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
17996 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
17997 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
17998 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
17999 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
18000 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18001 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
18002 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
18003 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
18004 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
18005 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
18006 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
18007 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
18008 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
18009 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
18010 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
18011 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
18012 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
18013 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
18014 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
18015 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
18016 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
18017 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
18018 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18019 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
18020 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
18021 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
18022 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
18023 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
18024 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
18025 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
18026 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
18027 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
18028
18029 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
18030 (f128-pairs): New variable.
18031 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
18032 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
18033 to CFLAGS.
18034 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
18035 Also make tests add $(f128-loader-link) to gnulib-tests.
18036
18037 2018-02-09 DJ Delorie <dj@redhat.com>
18038
18039 [BZ #22827]
18040 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
18041 64-bit ELF type for 64-bit ELF objects.
18042
18043 2018-02-09 Joseph Myers <joseph@codesourcery.com>
18044
18045 * math/libm-test-driver.c (snan_tests_arg): New variable.
18046 * math/libm-test-support.h (snan_tests_arg): New declaration.
18047 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
18048
18049 * math/Makefile (test-type-pairs): New variable.
18050 (test-type-pairs-f64xf128-yes): Likewise.
18051 (tests): Add test-narrow-macros.
18052 (libm-test-funcs-narrow): New variable.
18053 (libm-test-c-narrow): Likewise.
18054 (generated): Add $(libm-test-c-narrow).
18055 (libm-tests-base-narrow): New variable.
18056 (libm-tests-narrow): Likewise.
18057 (libm-tests): Add $(libm-tests-narrow).
18058 (libm-tests-for-type): Handle $(libm-tests-narrow).
18059 (libm-test-c-narrow-obj): New variable.
18060 ($(libm-test-c-narrow-obj)): New rule.
18061 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
18062 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
18063 $(o-iterator) to set dependencies and CFLAGS.
18064 * math/gen-auto-libm-tests.c: Document use for narrowing
18065 functions.
18066 (output_for_one_input_case): Take argument NARROW.
18067 (generate_output): Likewise. Update call to
18068 output_for_one_input_case.
18069 (main): Take --narrow option. Update call to generate_output.
18070 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
18071 (apply_lit): Update call to _apply_lit.
18072 (apply_arglit): New function.
18073 (parse_args): Handle "a" arguments.
18074 (parse_auto_input): Handle format names using ":".
18075 * math/README.libm-test: Document "a" parameter type.
18076 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
18077 (ARG_TYPE_TRUE_MIN): Likewise.
18078 (ARG_TYPE_MAX): Likwise.
18079 (ARG_MIN_EXP): Likewise.
18080 (ARG_MAX_EXP): Likewise.
18081 (ARG_MANT_DIG): Likewise.
18082 (TEST_COND_arg_ibm128): Likewise.
18083 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
18084 (TEST_COND_arg_fmt): New macro.
18085 (init_max_error): Update prototype.
18086 * math/libm-test-support.c (test_ibm128): New variable.
18087 (init_max_error): Take argument testing_ibm128 and set test_ibm128
18088 instead of using [TEST_COND_ibm128] conditional.
18089 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
18090 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
18091 [TEST_NARROW] (TEST_MSG): New definition.
18092 (arg_plus_zero): New macro.
18093 (arg_minus_zero): Likewise.
18094 (arg_plus_infty): Likewise.
18095 (arg_minus_infty): Likewise.
18096 (arg_qnan_value_pl): Likewise.
18097 (arg_qnan_value): Likewise.
18098 (arg_snan_value_pl): Likewise.
18099 (arg_snan_value): Likewise.
18100 (arg_max_value): Likewise.
18101 (arg_min_value): Likewise.
18102 (arg_min_subnorm_value): Likewise.
18103 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
18104 (RUN_TEST_LOOP_aa_f): New macro.
18105 (TEST_SUFF): New macro.
18106 (TEST_SUFF_STR): Likewise.
18107 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
18108 (TEST_COND_any_ibm128): New macro.
18109 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
18110 this_func. Update call to init_max_error.
18111 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
18112 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
18113 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
18114 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
18115 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
18116 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
18117 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
18118 * math/test-math-scalar.h (TEST_NARROW): Likewise.
18119 * math/test-math-vector.h (TEST_NARROW): Likewise.
18120 * math/test-arg-double.h: New file.
18121 * math/test-arg-float128.h: Likewise.
18122 * math/test-arg-float32x.h: Likewise.
18123 * math/test-arg-float64.h: Likewise.
18124 * math/test-arg-float64x.h: Likewise.
18125 * math/test-arg-ldouble.h: Likewise.
18126 * math/test-math-narrow.h: Likewise.
18127 * math/test-narrow-macros.c: Likewise.
18128 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
18129 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
18130 test-narrow-macros-ldbl-64.
18131 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
18132
18133 * math/bits/mathcalls-narrow.h: New file.
18134 * include/bits/mathcalls-narrow.h: Likewise.
18135 * math/math-narrow.h: Likewise.
18136 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
18137 (__MATHCALL_NARROW_ARGS_2): Likewise.
18138 (__MATHCALL_NARROW_ARGS_3): Likewise.
18139 (__MATHCALL_NARROW_NORMAL): Likewise.
18140 (__MATHCALL_NARROW_REDIR): Likewise.
18141 (__MATHCALL_NARROW): Likewise.
18142 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
18143 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
18144 defined.
18145 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
18146 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
18147 (libm-narrow-fns): New variable.
18148 (libm-narrow-types-basic): Likewise.
18149 (libm-narrow-types-ldouble-yes): Likewise.
18150 (libm-narrow-types-float128-yes): Likewise.
18151 (libm-narrow-types-float128-alias-yes): Likewise.
18152 (libm-narrow-types): Likewise.
18153 (libm-routines): Add narrowing functions.
18154 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
18155 (libc_feholdexcept_setroundf128): New macro.
18156 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
18157 * sysdeps/ieee754/float128/float128_private.h: Include
18158 <math/math-narrow.h>.
18159 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
18160 Undefine and redefine.
18161 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
18162 (libm_alias_float_ldouble): Undefine and redefine.
18163 (libm_alias_double_ldouble): Likewise.
18164
18165 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
18166
18167 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
18168
18169 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
18170 FPCR/FPSR.
18171
18172 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
18173
18174 * manual/creature.texi: Convert references to gcc.info to gcc.
18175 * manual/stdio.texi: Likewise.
18176 * manual/string.texi: Likewise.
18177
18178 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18179
18180 [BZ #17979]
18181 * posix/bits/types.h (__int_least8_t): New typedef.
18182 (__uint_least8_t): Likewise.
18183 (__int_least16_t): Likewise.
18184 (__uint_least16_t): Likewise.
18185 (__int_least32_t): Likewise.
18186 (__uint_least32_t): Likewise.
18187 (__int_least64_t): Likewise.
18188 (__uint_least64_t): Likewise.
18189 * sysdeps/generic/stdint.h (int_least8_t): Define using
18190 __int_least8_t.
18191 (int_least16_t): Define using __int_least16_t.
18192 (int_least32_t): Define using __int_least32_t.
18193 (int_least64_t): Define using __int_least64_t.
18194 (uint_least8_t): Define using __uint_least8_t.
18195 (uint_least16_t): Define using __uint_least16_t.
18196 (uint_least32_t): Define using __uint_least32_t.
18197 (uint_least64_t): Define using __uint_least64_t.
18198 * wcsmbs/uchar.h: Include <bits/types.h>.
18199 (char16_t): Define using __uint_least16_t conditional only on
18200 [!__USE_ISOCXX11].
18201 (char32_t): Define using __uint_least32_t conditional only on
18202 [!__USE_ISOCXX11].
18203 * wcsmbs/test-char-types.c: New file.
18204 * wcsmbs/Makefile (tests): Add test-char-types.
18205
18206 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
18207 version to 4.0.1.
18208
18209 2018-02-07 Zack Weinberg <zackw@panix.com>
18210
18211 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
18212 Delete all contents except for definitions of _G_HAVE_MMAP and
18213 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
18214 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
18215 sysdeps/unix/sysv/linux/_G_config.h. Make same content
18216 change as above.
18217
18218 * libio/libio.h: Don't include bits/_G_config.h here.
18219 Include stddef.h with __need_wchar_t defined. Include
18220 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
18221 Define _IO_iconv_t here, directly.
18222 Don't define _IO_HAVE_ST_BLKSIZE.
18223 * libio/libioP.h: Include _G_config.h here. Move include of
18224 shlib-compat.h up with rest of includes. Simplify conditionals
18225 controlling definition of _IO_JUMPS_OFFSET.
18226
18227 * csu/init.c: Remove always-true #if around entire file.
18228 Don't include stdio.h. Set _IO_stdin_used to hardwired
18229 constant 0x20001, and update commentary.
18230 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
18231 Replace all uses of _G_va_list with __gnuc_va_list.
18232 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
18233 instead of #if _IO_HAVE_ST_BLKSIZE.
18234 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
18235 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
18236 not #ifdef.
18237
18238 * libio/bits/libio.h: Move back to libio/libio.h and adjust
18239 multiple-include guard to match.
18240 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
18241 into this file.
18242 Remove preprocessor conditionals that are always true and/or
18243 redundant to other preprocessor conditionals in the same nest.
18244 Include shlib-compat.h unconditionally.
18245 Error out if _LIBC is not defined, or if _ISOMAC is defined,
18246 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
18247 defined after including stdio.h.
18248 Use __BEGIN_DECLS/__END_DECLS.
18249
18250 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
18251 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
18252 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
18253
18254 2018-02-07 Zack Weinberg <zackw@panix.com>
18255
18256 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
18257 New single-type headers split from _G_config.h.
18258 * libio/bits/types/cookie_io_functions_t.h
18259 * libio/bits/types/struct_FILE.h
18260 New single-type headers split from libio.h.
18261
18262 * libio/Makefile: Install the above new headers. Don't install
18263 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
18264 bits/libio-ldbl.h.
18265 * libio/_G_config.h, libio/libio.h: Delete file.
18266
18267 * libio/bits/libio.h: Remove improper-inclusion guard.
18268 Include stdio.h and don't repeat anything that it does.
18269 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
18270 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
18271 __io_read_fn as cookie_read_function_t,
18272 __io_write_fn as cookie_write_function_t,
18273 __io_seek_fn as cookie_seek_function_t,
18274 __io_close_fn as cookie_close_function_t,
18275 and _IO_cookie_io_functions_t as cookie_io_functions_t.
18276 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
18277 here, in the "compatibility defines" section. Remove an #if 0
18278 block. Use the "body" macros from bits/types/struct_FILE.h to
18279 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
18280 and _IO_ferror_unlocked.
18281 Move prototypes of __uflow and __overflow...
18282
18283 * libio/stdio.h: ...here. Don't include bits/libio.h.
18284 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
18285 directly from stdarg.h. Include bits/types/__fpos_t.h,
18286 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
18287 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
18288 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
18289 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
18290 cookie_io_functions_t, not _IO_cookie_io_functions_t;
18291 __ssize_t, not _IO_ssize_t. Unconditionally define
18292 BUFSIZ as 8192 and EOF as (-1).
18293
18294 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
18295 macros from bits/types/struct_FILE.h instead of _IO_* macros
18296 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
18297 instead of _IO_ssize_t.
18298 * libio/bits/stdio2.h: Similarly.
18299
18300 * libio/iolibio.h: Add multiple-include guard.
18301 Include bits/libio.h after stdio.h.
18302 * libio/libioP.h: Add multiple-include guard.
18303 Include stdio.h and bits/libio.h before iolibio.h.
18304
18305 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
18306 * include/bits/types/cookie_io_functions_t.h
18307 * include/bits/types/struct_FILE.h: New wrappers.
18308
18309 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
18310 Get definitions of _G_fpos_t and _G_fpos64_t from
18311 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
18312 respectively. Remove improper-inclusion guards.
18313
18314 * conform/data/stdio.h-data: Update expectations of va_list.
18315 * scripts/check-installed-headers.sh: Remove special case for
18316 libio.h and _G_config.h.
18317
18318 2018-02-07 Joseph Myers <joseph@codesourcery.com>
18319
18320 [BZ #15105]
18321 [BZ #19463]
18322 * include/sys/sysmacros.h [!_ISOMAC]
18323 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
18324 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
18325 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
18326 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
18327 libc_hidden_proto.
18328 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
18329 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
18330 Likewise.
18331 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
18332 Undefine and redefine to add use __gnu_dev_ prefix.
18333 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
18334 Likewise.
18335 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
18336 and define as hidden inline function.
18337 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
18338 Likewise.
18339 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
18340 Likewise.
18341 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
18342 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
18343 (gnu_dev_minor): Likewise.
18344 (gnu_dev_makedev): Likewise.
18345 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
18346 makedev.
18347 * posix/wordexp.c (exec_comm_child): Likewise.
18348 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
18349 instead of minor and __gnu_dev_major instead of major.
18350 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
18351 __gnu_dev_major instead of major.
18352 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
18353 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
18354 instead of gnu_dev_minor.
18355 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
18356 (SLAVE_P): Likewise.
18357 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
18358 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
18359 instead of major.
18360
18361 [BZ #21313]
18362 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
18363 in another place.
18364 * locale/weightwc.h (findidx): Likewise.
18365
18366 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
18367
18368 * manual/probes.texi (slowlog): Delete documentation of removed probe.
18369 (slowlog_inexact): Likewise
18370 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
18371 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
18372
18373 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
18374
18375 [BZ #22797]
18376 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
18377 missing second underscore to parameter name.
18378
18379 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18380
18381 [BZ #14508]
18382 [BZ #15512]
18383 [BZ #17082]
18384 [BZ #20530]
18385 * bits/byteswap.h: Update file comment. Do not include
18386 <bits/byteswap-16.h>.
18387 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
18388 constant.
18389 (__bswap_16): Define as inline function.
18390 (__bswap_constant_32): Reformat definition.
18391 (__bswap_32): Always define as inline function, not macro, using
18392 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
18393 otherwise __bswap_constant_32.
18394 (__bswap_constant_64): Reformat definition. Do not use
18395 __extension__ here.
18396 (__bswap_64): Always define as inline function, not macro. Use
18397 __extension__ on function definition. Use __builtin_bswap64 if
18398 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
18399 * string/test-endian-file-scope.c: New file.
18400 * string/test-endian-sign-conversion.c: Likewise.
18401 * string/Makefile (headers): Remove bits/byteswap-16.h.
18402 (tests): Add test-endian-file-scope and
18403 test-endian-sign-conversion.
18404 (CFLAGS-test-endian-sign-conversion.c): New variable.
18405 * bits/byteswap-16.h: Remove file.
18406 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
18407 * sysdeps/ia64/bits/byteswap.h: Likewise.
18408 * sysdeps/m68k/bits/byteswap.h: Likewise.
18409 * sysdeps/s390/bits/byteswap-16.h: Likewise.
18410 * sysdeps/s390/bits/byteswap.h: Likewise.
18411 * sysdeps/tile/bits/byteswap.h: Likewise.
18412 * sysdeps/x86/bits/byteswap-16.h: Likewise.
18413 * sysdeps/x86/bits/byteswap.h: Likewise.
18414
18415 [BZ #17721]
18416 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
18417 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
18418 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
18419 199901L] (__restrict): Define to restrict.
18420
18421 [BZ #19667]
18422 * string/testcopy.c: Include <support/support.h>. Do not include
18423 <malloc.h>. Use <support/test-driver.c>.
18424 (main): Rename to do_test. Make static. Use xmalloc instead of
18425 malloc.
18426
18427 [BZ #13575]
18428 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
18429 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
18430 (SSIZE_MAX): Define to INT_MAX.
18431 * posix/test-ssize-max.c: New file.
18432 * posix/Makefile (tests): Add test-ssize-max.
18433
18434 [BZ #19668]
18435 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
18436 <support/support.h>. Do not include <malloc.h>.
18437 (query_auxv): Use xmalloc instead of malloc.
18438
18439 [BZ #14553]
18440 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
18441 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
18442 instead of loff_t.
18443
18444 2018-02-06 Florian Weimer <fweimer@redhat.com>
18445
18446 [BZ #18023]
18447 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18448 Use scratch_buffer instead of extend_alloca.
18449
18450 2018-02-06 Zack Weinberg <zackw@panix.com>
18451
18452 * libio/stdio.h: Don't define getc or putc as macros.
18453 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
18454 not _IO_getc and _IO_putc.
18455
18456 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
18457 * stdio-common/tstgetln.c: Don't redefine ssize_t.
18458
18459 2018-02-06 Joseph Myers <joseph@codesourcery.com>
18460
18461 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
18462 (TCP_FASTOPEN_NO_COOKIE): Likewise.
18463
18464 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
18465
18466 [BZ #14890]
18467 * elf/elf.h (NT_PRFPREG): New macro.
18468 (NT_S390_VXRS_LOW): Likewise.
18469 (NT_S390_VXRS_HIGH): Likewise.
18470 (NT_S390_GS_CB): Likewise.
18471 (NT_S390_GS_BC): Likewise.
18472 (NT_S390_RI_CB): Likewise.
18473
18474 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
18475 (MAP_SYNC): New macro.
18476 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
18477 Likewise.
18478 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
18479 (MAP_SYNC): Likewise.
18480 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
18481 (MAP_SYNC): Likewise.
18482 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
18483 (MAP_SYNC): Likewise.
18484 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
18485 (MAP_SYNC): Likewise.
18486 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
18487 (MAP_SYNC): Likewise.
18488 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
18489 (MAP_SYNC): Likewise.
18490 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
18491 Likewise.
18492 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
18493 Likewise.
18494
18495 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
18496 (MAP_SHARED_VALIDATE): New macro.
18497 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
18498 (MAP_SHARED_VALIDATE): Likewise.
18499
18500 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18501
18502 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
18503 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
18504 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18505
18506 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18507
18508 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
18509 (DT_NUM): Updated to 35.
18510
18511 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18512
18513 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
18514 __builtin_expect with __glibc_likely and __glibc_unlikely.
18515 (elf_machine_rela): Likewise.
18516 (elf_machine_lazy_rel): Likewise.
18517
18518 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18519
18520 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
18521 __builtin_expect with __glibc_likely and __glibc_unlikely.
18522 (elf_machine_lazy_rel): Likewise.
18523
18524 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
18525
18526 [BZ #22638]
18527 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
18528 SHARED.
18529 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
18530
18531 2018-02-05 Andreas Schwab <schwab@suse.de>
18532
18533 [BZ #22761]
18534 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
18535 string.
18536
18537 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
18538
18539 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
18540 not check against PTHREAD_STACK_MIN.
18541
18542 2018-02-02 Sean McKean <smckean83@gmail.com>
18543
18544 [BZ #22735]
18545 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
18546
18547 2018-02-02 Florian Weimer <fweimer@redhat.com>
18548
18549 [BZ #22753]
18550 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
18551 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
18552 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
18553 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
18554 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
18555 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
18556 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
18557 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
18558 * manual/llio.texi (Scatter-Gather): Mention offset -1.
18559 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
18560 * misc/tst-preadvwritev2.c (do_test): Call it.
18561 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
18562
18563 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
18564
18565 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
18566
18567 * benchtests/bench-memcmp.c: Print json instead of plain text.
18568
18569 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
18570 every test run.
18571
18572 2018-02-01 Joseph Myers <joseph@codesourcery.com>
18573
18574 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
18575 version to 4.15.
18576 (s390_sthyi): New syscall.
18577
18578 * sysdeps/generic/ldbl-classify-compat.h: New file.
18579 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
18580 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
18581 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
18582 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
18583 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
18584 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
18585 * sysdeps/ieee754/dbl-64/s_finite.c: Include
18586 <ldbl-classify-compat.h>.
18587 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18588 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
18589 <ldbl-classify-compat.h>.
18590 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18591 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
18592 <ldbl-classify-compat.h>.
18593 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18594 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
18595 <ldbl-classify-compat.h>.
18596 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18597 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
18598 <ldbl-classify-compat.h>.
18599 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18600 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
18601 <ldbl-classify-compat.h>.
18602 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
18603 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
18604 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
18605 * sysdeps/m68k/coldfire/math_private.h: Remove file.
18606 * sysdeps/microblaze/math_private.h: Likewise.
18607 * sysdeps/nios2/math_private.h: Likewise.
18608 * sysdeps/sh/math_private.h: Likewise.
18609
18610 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
18611 * sysdeps/m68k/coldfire/math_private.h: ... here.
18612 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
18613 * sysdeps/tile/math_private.h: Likewise.
18614 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
18615 Remove macro.
18616 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
18617 Likewise.
18618
18619 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
18620 Remove macro.
18621 (libc_fetestexcept): Likewise.
18622 (libc_feupdateenv_test): Likewise.
18623 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
18624 (libc_fetestexcept): Likewise.
18625 (libc_feupdateenv_test): Likewise.
18626 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
18627 (libc_fetestexcept): Likewise.
18628 (libc_feupdateenv_test): Likewise.
18629 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
18630 (libc_fetestexcept): Likewise.
18631 (libc_feupdateenv_test): Likewise.
18632
18633 * sysdeps/generic/math_private.h
18634 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
18635 New inline function.
18636 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
18637 Likewise.
18638
18639 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
18640 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
18641 * sysdeps/generic/math_private.h
18642 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
18643 inline function.
18644 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
18645 Likewise.
18646 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
18647 Likewise.
18648 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
18649 Likewise.
18650 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
18651 Likewise.
18652 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
18653 Likewise.
18654 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
18655 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
18656 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
18657 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
18658 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
18659 (__fegetenv): Likewise.
18660 (fesetenv): Likewise.
18661 (__fesetenv): Likewise.
18662 (feupdateenv): Likewise.
18663 (__feupdateenv): Likewise.
18664 (fegetround): Likewise.
18665 (__fegetround): Likewise.
18666 (fesetround): Likewise.
18667 (__fesetround): Likewise.
18668
18669 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
18670 (feraiseexcept): New macro.
18671 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
18672 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
18673 Remove macro.
18674 (__feraiseexcept): Likewise.
18675 (feclearexcept): Likewise.
18676 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
18677 (__feraiseexcept): Likewise.
18678 (feclearexcept): Likewise.
18679 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
18680 (__feraiseexcept): Likewise.
18681 (feclearexcept): Likewise.
18682 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
18683 (__feraiseexcept): Likewise.
18684 (feclearexcept): Likewise.
18685 (fetestexcept): Likewise.
18686
18687 * sysdeps/m68k/coldfire/math-tests.h: New file.
18688
18689 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
18690 * sysdeps/m68k/bits/fenv.h: ... here.
18691 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
18692 not define.
18693 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
18694 Likewise.
18695 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
18696 Likewise.
18697 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
18698 Likewise.
18699 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
18700 Likewise.
18701 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
18702 Define to 0.
18703 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
18704 (__FE_UNDEFINED): New enum constant.
18705 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
18706 Do not define.
18707 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
18708 Likewise.
18709 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
18710 Likewise.
18711 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
18712 to match generic bits/fenv.h.
18713 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
18714 Do not define.
18715
18716 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
18717 packed on bits.
18718 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
18719 * soft-fp/half.h (union _FP_UNION_H): Likewise.
18720 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
18721 * soft-fp/single.h (union _FP_UNION_S): Likewise.
18722
18723 2018-02-01 Carlos O'Donell <carlos@redhat.com>
18724 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
18725 Joseph Myers <joseph@codesourcery.com>
18726
18727 [BZ #21314]
18728 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
18729 (__log1p): Disable -Wmaybe-uninitialized for -Os around
18730 computation using c.
18731 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
18732 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
18733 computation using c.
18734
18735 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18736
18737 * version.h (RELEASE): Set to "development".
18738 (VERSION): Set to "2.27.9000".
18739 * NEWS (2.28): New section.
18740
18741 * version.h (RELEASE): Set to "stable".
18742 (VERSION): Set to "2.27".
18743 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
18744
18745 * NEWS: Add the list of bugs fixed in 2.27.
18746
18747 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18748
18749 * stdlib/test-atexit-race-common.c (do_test): Check stack size
18750 against PTHREAD_STACK_MIN.
18751
18752 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
18753
18754 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
18755 New entries.
18756 (Rafal Luzynski, Andreas Schwab): Update.
18757
18758 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
18759
18760 [BZ #10871]
18761 * NEWS: List the languages which actually use the alternative
18762 months feature in this release. Also explain that "alt_mon" and
18763 "ab_alt_mon" are optional.
18764
18765 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
18766
18767 [BZ #22765]
18768 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
18769
18770 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
18771
18772 * manual/install.texi (Tools for Compilation): Update the newest
18773 versions of gcc, binutils, texinfo, gawk, bison, and sed.
18774 * INSTALL: Regenerated.
18775
18776 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
18777
18778 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
18779 instead of __builtin_expect.
18780
18781 2018-01-30 Florian Weimer <fweimer@redhat.com>
18782
18783 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
18784 data.
18785 * nss/tst-nss-getpwent.c (do_test): Likewise.
18786
18787 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
18788
18789 [BZ #10871]
18790 * localedata/locales/hr_HR (mon): Rename to...
18791 (alt_mon): This.
18792 (mon): Import from CLDR (genitive case).
18793 (d_t_fmt): Update the comment.
18794
18795 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
18796
18797 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
18798 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
18799 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
18800
18801 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
18802
18803 * mach/Versions: Fix version when __mach_host_self_ was added.
18804 * hurd/Versions: Fix version when _hurd_exec_paths was added.
18805 * sysdeps/mach/hurd/i386/ld.abilist: New file.
18806 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
18807 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
18808 * sysdeps/mach/hurd/i386/libc.abilist: New file.
18809 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
18810 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
18811 * sysdeps/mach/hurd/i386/libm.abilist: New file.
18812 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
18813 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
18814 * sysdeps/mach/hurd/i386/librt.abilist: New file.
18815 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
18816 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
18817 || to respect codestyle.
18818 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
18819 (do_test_bz20181): Rename accordingly.
18820 * malloc/malloc.c: Include <assert.h>.
18821 (assert): Do not define.
18822 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
18823 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
18824 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
18825 * sysdeps/mach/hurd/hp-timing.h: New file.
18826 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
18827
18828 2018-01-29 Darius Rad <darius@bluespec.com>
18829
18830 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
18831
18832 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
18833
18834 * sysdeps/init_array/crti.S (.section .init_array): Add
18835 PREINIT_FUNCTION when defined.
18836 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
18837 * config.h.in: Regenerate.
18838 * manual/platform.texi: Add RISC-V documenation for
18839 __riscv_flush_icache.
18840 * sysdeps/riscv/__longjmp.S: New file.
18841 * sysdeps/riscv/backtrace.c: Likewise.
18842 * sysdeps/riscv/bits/endian.h: Likewise.
18843 * sysdeps/riscv/bits/setjmp.h: Likewise.
18844 * sysdeps/riscv/bits/wordsize.h: Likewise.
18845 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
18846 * sysdeps/riscv/bsd-setjmp.c: Likewise.
18847 * sysdeps/riscv/dl-trampoline.S: Likewise.
18848 * sysdeps/riscv/gccframe.h: Likewise.
18849 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
18850 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
18851 * sysdeps/riscv/machine-gmon.h: Likewise.
18852 * sysdeps/riscv/memusage.h: Likewise.
18853 * sysdeps/riscv/setjmp.S: Likewise.
18854 * sysdeps/riscv/sys/asm.h: Likewise.
18855 * sysdeps/riscv/tls-macros.h: Likewise.
18856 * sysdeps/riscv/dl-tls.h: New file.
18857 * sysdeps/riscv/libc-tls.c: Likewise.
18858 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
18859 * sysdeps/riscv/nptl/tls.h: Likewise.
18860 * sysdeps/riscv/stackinfo.h: Likewise.
18861 * sysdeps/riscv/bits/fenv.h: New file.
18862 * sysdeps/riscv/e_sqrtl.c: Likewise.
18863 * sysdeps/riscv/fpu_control.h: Likewise.
18864 * sysdeps/riscv/math-tests.h: Likewise.
18865 * sysdeps/riscv/nofpu/Implies: Likewise.
18866 * sysdeps/riscv/sfp-machine.h: Likewise.
18867 * sysdeps/riscv/tininess.h: Likewise.
18868 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
18869 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
18870 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
18871 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
18872 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
18873 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
18874 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
18875 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
18876 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
18877 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
18878 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
18879 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
18880 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
18881 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
18882 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
18883 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
18884 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
18885 * sysdeps/riscv/rvd/s_finite.c: Likewise.
18886 * sysdeps/riscv/rvd/s_fma.c: Likewise.
18887 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
18888 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
18889 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
18890 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
18891 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
18892 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
18893 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
18894 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
18895 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
18896 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
18897 * sysdeps/riscv/rvf/fegetround.c: Likewise.
18898 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
18899 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
18900 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
18901 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
18902 * sysdeps/riscv/rvf/fesetround.c: Likewise.
18903 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
18904 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
18905 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
18906 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
18907 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
18908 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
18909 * sysdeps/riscv/rvf/math_private.h: Likewise.
18910 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
18911 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
18912 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
18913 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
18914 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
18915 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
18916 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
18917 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
18918 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
18919 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
18920 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
18921 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
18922 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
18923 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
18924 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
18925 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
18926 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
18927 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
18928 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
18929 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
18930 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
18931 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
18932 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
18933 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
18934 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
18935 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
18936 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
18937 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
18938 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
18939 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
18940 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
18941 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
18942 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
18943 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
18944 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
18945 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
18946 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
18947 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
18948 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
18949 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
18950 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
18951 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
18952 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
18953 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
18954 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
18955 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
18956 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
18957 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
18958 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
18959 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
18960 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
18961 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
18962 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
18963 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
18964 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
18965 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
18966 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
18967 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
18968 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
18969 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
18970 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
18971 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
18972 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
18973 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
18974 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
18975 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
18976 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
18977 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
18978 * sysdeps/riscv/Implies: New file.
18979 * sysdeps/riscv/Makefile: Likewise.
18980 * sysdeps/riscv/configure: Likewise.
18981 * sysdeps/riscv/configure.ac: Likewise.
18982 * sysdeps/riscv/nptl/Makefile: Likewise.
18983 * sysdeps/riscv/preconfigure: Likewise.
18984 * sysdeps/riscv/rv64/Implies-after: Likewise.
18985 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
18986 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
18987 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
18988 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
18989 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
18990 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
18991 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
18992 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
18993 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
18994 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
18995 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
18996 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
18997 (Config): Likewise.
18998
18999 2018-01-29 Florian Weimer <fweimer@redhat.com>
19000
19001 [BZ #22701]
19002 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
19003 libnsl_hidden_proto.
19004 * include/rpcsvc/yp.h (yp_xdrall): Declare with
19005 libnsl_hidden_proto.
19006 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
19007 * nis/Makefile (libnsl-routines): Add nss-default only for
19008 build-obsolete-nsl.
19009 * nis/nis_defaults.c (__nis_default_ttl): Add
19010 libnsl_hidden_nolink_def.
19011 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
19012 declaration.
19013 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
19014 * nis/ypclnt.c (yp_maplist): Likewise.
19015
19016 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
19017
19018 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
19019 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
19020
19021 2018-01-29 Joseph Myers <joseph@codesourcery.com>
19022
19023 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
19024 clean -dxfq for git updates when replacing sources.
19025
19026 * scripts/build-many-glibcs.py (Config.build_gcc): Use
19027 --disable-libcilkrts unconditionally, not just for the final GCC
19028 build for Hurd.
19029
19030 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
19031 version to 4.15.
19032
19033 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19034
19035 [BZ #10871]
19036 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
19037 case).
19038
19039 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19040
19041 [BZ #10871]
19042 * localedata/locales/be_BY (mon): Rename to...
19043 (alt_mon): This, then synchronize with CLDR (nominative case).
19044 (abmon): Rename to...
19045 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
19046 (mon): Import from CLDR (genitive case).
19047 (abmon): Likewise.
19048 * localedata/locales/be_BY@latin (mon): Rename to...
19049 (alt_mon): This.
19050 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
19051
19052 * localedata/locales/be_BY@latin (lang_name): Reworded to
19053 "biełaruskaja mova".
19054
19055 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19056
19057 [BZ #10871]
19058 * localedata/locales/el_CY (mon): Renamed to...
19059 (alt_mon): This.
19060 (mon): Import from CLDR (genitive case).
19061 * localedata/locales/el_GR: Likewise.
19062
19063 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
19064
19065 [BZ #10871]
19066 * localedata/locales/ru_RU (mon): Rename to...
19067 (alt_mon): This.
19068 (abmon): Rename to...
19069 (ab_alt_mon): This.
19070 (mon): Import from CLDR (genitive case).
19071 (abmon): Copy from the old content except the 5th month which is
19072 now in the genitive case, even when abbreviated.
19073 * localedata/locales/ru_UA: Likewise.
19074 * time/tst-strptime.c (day_tests): Add an actual example of
19075 a difference between %b and %Ob in Russian.
19076
19077 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
19078
19079 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
19080 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
19081 a `c' variable.
19082 * resolv/res-close.c: Include <stdlib.h>.
19083 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
19084 <sys/wait.h>, <time.h>, <sys/uio.h>.
19085 (NOT_CANCEL_H): Add inclusion guard.
19086 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
19087 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
19088 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
19089 return 0.
19090 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
19091 vm_address_t * to ElfW(Addr) * for dl_main parameter.
19092 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
19093 instead of void *.
19094 * sysdeps/pthread/timer_create.c (timer_create): Do not use
19095 timer_ptr2id to cast struct timer_node * to void *.
19096 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
19097 --disable-libcilkrts to gcc configure.
19098 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
19099 and make them the default for now.
19100 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
19101 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
19102 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
19103 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
19104 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
19105 MACH_IPC_COMPAT.
19106 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
19107 __task_terminate would ever return successfully.
19108 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
19109 to global scope.
19110 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
19111 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
19112 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
19113 critical section to make code simpler and avoid warning.
19114 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
19115 critical section to make code simpler and avoid warning.
19116 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
19117 const char * instead of char *.
19118 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
19119 __hurd_file_name_split, hurd_file_name_split,
19120 __hurd_directory_name_split, hurd_directory_name_split,
19121 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
19122 hurd_file_name_path_lookup): Make lookup function parameter take a
19123 const char *name instead of char *name.
19124 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
19125 __hurd_directory_name_split): Likewise.
19126 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
19127 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
19128 * sysdeps/mach/hurd/check_native.c: New file.
19129 * sysdeps/mach/hurd/check_pf.c: New file.
19130 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
19131 (__freeifaddrs): Define macro to freeifaddrs.
19132 * sysdeps/mach/hurd/libhurduser.abilist: New file.
19133 * sysdeps/mach/libmachuser.abilist: New file.
19134 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
19135 (do_test_bz20181): Rename accordingly.
19136 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
19137 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
19138 <sys/mount.h>.
19139 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
19140 version only if __USE_EXTERN_INLINES is defined.
19141 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
19142 __hurd_sockfail): Likewise.
19143 (_hurd_fd_get): Always declare functions, and provide inline versions
19144 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
19145 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
19146 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
19147 _hurd_port_set): Always declare functions, and provide inline versions
19148 only if __USE_EXTERN_INLINES and _LIBC are defined and
19149 IS_IN(libc).
19150 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
19151 _hurd_critical_section_unlock): Likewise.
19152 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
19153 * __hurd_threadvar_location): Likewise.
19154 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
19155 _hurd_userlink_clear): Likewise.
19156 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
19157 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
19158 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
19159 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
19160 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
19161 __spin_lock_locked): Likewise.
19162 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
19163 __spin_lock_locked): Likewise.
19164 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
19165 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
19166 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
19167 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
19168 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
19169 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
19170 _POSIX_NO_TRUNC): Define to 0.
19171 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
19172 check size against PTHREAD_STACK_MIN.
19173 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
19174 IS_IN(libpthread)]: Include <sigsetops.h>.
19175 * mach/Makefile (user-interfaces): Add mach/gnumach.
19176 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
19177 * sysdeps/mach/configure (mach_interface_list): Regenerate.
19178 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
19179 instead of invalid -1.
19180 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
19181 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
19182 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
19183 <net/ppp_defs.h>.
19184
19185 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
19186
19187 * hurd/fcntl-internal.h: New file.
19188
19189 2018-01-27 James Clarke <jrtc27@jrtc27.com>
19190
19191 * sysdeps/hppa/fpu/libm-test-ulps: Update.
19192
19193 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19194
19195 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
19196
19197 [BZ #22701]
19198 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
19199 Build only shared objects.
19200
19201 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19202
19203 * README: Update for hppa.
19204
19205 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
19206
19207 * sysdeps/sparc/fpu/libm-test-ulps: Update
19208 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
19209
19210 2018-01-26 Carlos O'Donell <carlos@redhat.com>
19211
19212 Revert:
19213
19214 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19215
19216 [BZ #22563]
19217 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19218 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
19219 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
19220 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
19221 to feature_1.
19222
19223 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
19224
19225 [BZ #22563]
19226 * bits/types/__cancel_jmp_buf_tag.h: New file.
19227 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
19228 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
19229 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
19230 * nptl/Makefile (headers): Add
19231 bits/types/__cancel_jmp_buf_tag.h.
19232 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
19233 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
19234 * sysdeps/nptl/pthread.h: Include
19235 <bits/types/__cancel_jmp_buf_tag.h>.
19236 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
19237 __cancel_jmp_buf.
19238 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
19239
19240 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
19241
19242 [BZ #10871]
19243 * localedata/locales/uk_UA (mon): Renamed to...
19244 (alt_mon): This.
19245 (alt_digits): "0" removed and then renamed to...
19246 (mon): This.
19247 (date_fmt): Definition changed not to use the alternative
19248 digits hack.
19249
19250 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
19251
19252 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
19253 FLAG_RISCV_FLOAT_ABI_DOUBLE.
19254 * elf/elf.h (EF_RISCV_RVC): New define.
19255 (EF_RISCV_FLOAT_ABI): Likewise.
19256 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
19257 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
19258 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19259 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
19260 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
19261 define.
19262 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
19263
19264 2018-01-25 Andreas Schwab <schwab@suse.de>
19265
19266 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
19267 single quotes.
19268 * sysdeps/gnu/configure: Regenerate.
19269 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
19270 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
19271 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
19272 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
19273 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
19274 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
19275 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
19276 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
19277
19278 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
19279
19280 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
19281 URL, and run autoconf, make it the default for now.
19282
19283 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19284
19285 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19286 soft-float ColdFire configuration.
19287
19288 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
19289 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
19290 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
19291
19292 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
19293 MicroBlaze file.
19294
19295 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
19296 ....
19297 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
19298 ... here.
19299 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
19300 New file.
19301
19302 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
19303 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
19304 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
19305 file.
19306
19307 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19308
19309 [BZ #22742]
19310 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
19311 Rename to __reserved and add comment.
19312 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
19313 Rename to __reserved.
19314
19315 2018-01-24 Joseph Myers <joseph@codesourcery.com>
19316
19317 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
19318 i686-gnu configurations.
19319 (Context.run_builds): Include mig, gnumach and hurd in components
19320 considered.
19321 (Context.checkout): Add mig, gnumach and hurd to components.
19322 (Context.checkout_tar): Add URL mappings for mig, gnumach and
19323 hurd.
19324 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
19325 (Config.build): Install gnumach headers, build mig and install
19326 hurd headers for 'gnu' OS.
19327 (Config.install_gnumach_headers): New function.
19328 (Config.install_hurd_headers): Likewise.
19329 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
19330 when building for 'gnu' OS.
19331
19332 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
19333
19334 * manual/tunables.texi (Hardware Capability Tunables): Fix
19335 spelling.
19336
19337 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
19338
19339 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
19340 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
19341 (ALTMON_11, ALTMON_12): Improve documentation.
19342 * manual/time.texi (strftime): Likewise.
19343
19344 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19345
19346 [BZ #10871]
19347 * localedata/locales/pl_PL: Alternative month names added,
19348 primary month names are genitive now.
19349 * time/tst-strptime.c (day_tests): Actually use a genitive case
19350 of a month name in Polish language.
19351
19352 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19353
19354 [BZ #10871]
19355 * manual/locale.texi: Document ALTMON_1..12 constants for
19356 nl_langinfo. Specify when to use ALTMON instead of MON.
19357 * manual/time.texi (strftime, strptime): Document GNU extension
19358 permitting O modifier with %B and %b. Specify when to use
19359 %OB instead of %B.
19360
19361 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19362
19363 [BZ #10871]
19364 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
19365 names, define them as the same as abbreviated month names explicitly.
19366 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
19367 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
19368 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
19369 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
19370 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
19371 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
19372 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
19373 _NL_WABALTMON_12): New enum constants.
19374 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
19375 wab_alt_mon, and ab_alt_mon_defined members.
19376 (time_output): Output ab_alt_mon and wab_alt_mon members.
19377 (time_read): Read them, initialize them as copies of abmon and wabmon
19378 respectively if they are missing, initialize ab_alt_mon_defined.
19379 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
19380 * locale/programs/locfile-kw.h: Regenerate.
19381 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
19382 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
19383 and ru_RU.UTF-8.
19384 * time/strftime_l.c (a_altmonth, aam_len): New macros.
19385 [!COMPILE_WIDE] (ABALTMON_1): New macro.
19386 (__strftime_internal): Handle %Ob and %Oh formats.
19387 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
19388 (__strptime_internal): Handle %Ob and %Oh formats.
19389 * time/tst-strptime.c (day_tests): Add more tests to parse different
19390 forms of month names including the new %Ob format specifier.
19391
19392 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
19393
19394 [BZ #10871]
19395 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
19396 define them as the same as primary full month names explicitly.
19397 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
19398 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
19399 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
19400 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
19401 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
19402 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
19403 _NL_WALTMON_12): New enum constants.
19404 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
19405 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
19406 macros.
19407 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
19408 walt_mon, and alt_mon_defined members.
19409 (time_output): Output alt_mon and walt_mon members.
19410 (time_read): Read them, initialize them as copies of mon and wmon
19411 respectively if they are missing, initialize alt_mon_defined.
19412 * locale/programs/locfile-kw.gperf (alt_mon): Define.
19413 * locale/programs/locfile-kw.h: Regenerate.
19414 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
19415 * localedata/tst-langinfo.c (map): Add tests for the new constants
19416 ALTMON_1 .. ALTMON_12.
19417 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
19418 and pl_PL.UTF-8.
19419 * time/strftime_l.c (f_altmonth): New macro.
19420 (__strftime_internal): Handle %OB format.
19421 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
19422 (__strptime_internal): Handle %OB format.
19423 * time/tst-strptime.c (day_tests): Add tests to parse different forms
19424 of month names including the new %OB format specifier.
19425
19426 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19427
19428 [BZ #22685]
19429 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
19430 from ABORT_TRANSACTION.
19431 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
19432 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
19433 ABORT_TRANSACTION_IMPL): Likewise.
19434 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
19435 Linux code, but remove the code that aborts transactions.
19436
19437 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
19438
19439 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
19440
19441 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
19442
19443 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
19444 in date: "2004-14-09" should be "2004-09-14".
19445 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
19446 "2003-15-09" should be "2003-09-15".
19447
19448 2018-01-18 Arjun Shankar <arjun@redhat.com>
19449
19450 [BZ #22343]
19451 [BZ #22774]
19452 CVE-2018-6485
19453 CVE-2018-6551
19454 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
19455 after padding.
19456 (_int_memalign): check for integer overflow before calling
19457 _int_malloc.
19458 * malloc/tst-malloc-too-large.c: New test.
19459 * malloc/Makefile: Add tst-malloc-too-large.
19460
19461 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
19462
19463 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
19464 in date: "2017-24-07" should be "2017-07-24".
19465 * localedata/locales/mai_IN: Likewise.
19466 * localedata/locales/mai_NP: Likewise.
19467
19468 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
19469
19470 * po/ru.po: Update translations.
19471
19472 2018-01-17 Joseph Myers <joseph@codesourcery.com>
19473
19474 [BZ #22719]
19475 * sysdeps/hppa/backtrace.c: New file.
19476
19477 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
19478
19479 [BZ #22715]
19480 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
19481 align La_x86_64_retval to VEC_SIZE.
19482
19483 2018-01-16 Joseph Myers <joseph@codesourcery.com>
19484
19485 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
19486 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
19487
19488 2018-01-16 Florian Weimer <fweimer@redhat.com>
19489
19490 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
19491 Move tst-thread-exit-clobber ...
19492 [$(CXX)] (tests-unsupported): ... to here.
19493
19494 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19495
19496 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
19497 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
19498 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19499 (_dl_aarch64_cap_flags): Update.
19500 (_DL_HWCAP_COUNT): Update.
19501
19502 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
19503
19504 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
19505 (_DL_HWCAP_LAST): Remove.
19506 (_DL_HWCAP_COUNT): Move to ...
19507 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
19508 (_DL_HWCAP_COUNT): ... here.
19509
19510 2018-01-16 Florian Weimer <fweimer@redhat.com>
19511
19512 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
19513 mode with GNU extensions.
19514
19515 2018-01-15 Alan Hayward <alan.hayward@arm.com>
19516
19517 * elf/elf.h (NT_ARM_SVE): Define.
19518
19519 2018-01-15 Florian Weimer <fweimer@redhat.com>
19520
19521 [BZ #22636]
19522 * nptl/tst-minstack-throw.cc: New file.
19523 * nptl/Makefile (tests): Add tst-minstack-throw.
19524 (LDLIBS-tst-minstack-throw): Link with libstdc++.
19525 [!CXX] (tests-unsupported): Add tst-minstack-throw.
19526
19527 2018-01-15 Joseph Myers <joseph@codesourcery.com>
19528
19529 * scripts/build-many-glibcs.py (Context.checkout): Default
19530 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
19531 version to 1.1.0.
19532
19533 2018-01-13 Carlos O'Donell <carlos@redhat.com>
19534
19535 [BZ #22707]
19536 * elf/elf.h (DF_1_STUB): Define.
19537 (DF_1_PIE): Define.
19538
19539 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19540
19541 [BZ #22697]
19542 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
19543 Do not add 0.5 to integer or out-of-range arguments.
19544
19545 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19546
19547 * po/bg.po: Update translations.
19548 * po/cs.po: Likewise.
19549 * po/de.po: Likewise.
19550 * po/ko.po: Likewise.
19551 * po/pl.po: Likewise.
19552 * po/sv.po: Likewise.
19553 * po/uk.po: Likewise.
19554 * po/vi.po: Likewise.
19555
19556 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
19557
19558 * aarch64/start.S (_start): Use __wrap_main.
19559 (__wrap_main): New local symbol.
19560
19561 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
19562
19563 [BZ #22679]
19564 CVE-2018-1000001
19565 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
19566 generic_getcwd if the path returned by getcwd syscall is not absolute.
19567 * io/tst-getcwd-abspath.c: New test.
19568 * io/Makefile (tests): Add tst-getcwd-abspath.
19569
19570 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
19571
19572 * malloc/malloc.c (malloc_consolidate): Add size check.
19573
19574 2018-01-12 Florian Weimer <fweimer@redhat.com>
19575
19576 * support/write_message.c (write_message): Preserve errno.
19577 * support/check.c (print_failure): Likewise.
19578 * support/support_test_verify_impl.c (support_test_verify_impl):
19579 Likewise.
19580 * support/support_test_compare_failure.c
19581 (support_test_compare_failure): Likewise.
19582
19583 2018-01-12 Florian Weimer <fweimer@redhat.com>
19584
19585 [BZ #22701]
19586 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
19587 Prevent installation of libnsl.so.
19588 (libnsl-inhibit-o): Do not build (or install) static libraries.
19589
19590 2018-01-12 Egmont Koblinger <egmont@gmail.com>
19591
19592 [BZ #22657]
19593 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
19594 before the day number which may produce a double space.
19595 (date_fmt): Likewise.
19596
19597 2018-01-12 Joseph Myers <joseph@codesourcery.com>
19598
19599 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
19600 instead of fegetenv.
19601
19602 2018-01-11 Joseph Myers <joseph@codesourcery.com>
19603
19604 [BZ #22702]
19605 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
19606 comment to say exceptions are discarded.
19607 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
19608 __fegetenv.
19609 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
19610 be enabled.
19611
19612 2018-01-11 Florian Weimer <fweimer@redhat.com>
19613
19614 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
19615 and error message.
19616
19617 2018-01-11 Florian Weimer <fweimer@redhat.com>
19618
19619 [BZ #22636]
19620 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
19621 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
19622
19623 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19624
19625 [BZ #22693]
19626 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
19627 negative arguments in test for NaN or infinity argument.
19628
19629 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
19630
19631 * po/libc.pot: Regenerate.
19632
19633 2018-01-10 Florian Weimer <fweimer@redhat.com>
19634
19635 [BZ #22636]
19636 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
19637 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
19638
19639 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
19640
19641 * hurd/hurd/fd.h: Include <fcntl.h>
19642 (__hurd_at_flags): New function.
19643 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
19644 with call to __hurd_at_flags.
19645 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
19646 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
19647 __faccessat
19648 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
19649 (__access_noerrno): Use __faccessat_common instead of access_common.
19650 (__access): Likewise.
19651 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
19652 with a call to __faccessat.
19653 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
19654 (__faccessat_common): ... this. Move implementation of __access into it when
19655 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
19656 reauthenticate_cwdir_at helper to implement AT mechanism.
19657 (__faccessat_noerrno): New function, just calls __faccessat_common.
19658 (__faccessat): New function, just calls __faccessat_common.
19659 (faccessat): Define weak alias.
19660
19661 2018-01-10 Joseph Myers <joseph@codesourcery.com>
19662
19663 [BZ #22691]
19664 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19665 (CFLAGS-s_fmaxmagl.c): New variable.
19666 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
19667
19668 [BZ #22690]
19669 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
19670 long int for arguments of possibly overflowing addition or
19671 subtraction.
19672 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
19673
19674 2018-01-09 Joseph Myers <joseph@codesourcery.com>
19675
19676 [BZ #22688]
19677 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
19678 (CFLAGS-e_remainderl.c): New variable.
19679
19680 [BZ #22687]
19681 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
19682 variable.
19683 (CFLAGS-s_cacoshl.c): Likewise.
19684 (CFLAGS-s_casinhl.c): Likewise.
19685 (CFLAGS-s_catanl.c): Likewise.
19686 (CFLAGS-s_catanhl.c): Likewise.
19687 (CFLAGS-s_cexpl.c): Likewise.
19688 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
19689 (CFLAGS-s_csinhl.c): Likewise.
19690 (CFLAGS-s_clogl.c): Likewise.
19691 (CFLAGS-s_clog10l.c): Likewise.
19692 (CFLAGS-s_csinl.c): Likewise.
19693 (CFLAGS-s_csqrtl.c): Likewise.
19694
19695 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
19696 2017-01-09 Svante Signell <svante.signell@gmail.com>
19697
19698 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
19699 (_hurd_exec_paths): New function.
19700 * hurd/hurd.h (_hurd_exec): Deprecate function.
19701 (_hurd_exec_paths): Declare function.
19702 * hurd/Versions: Export _hurd_exec_paths.
19703 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
19704 (__execve): Use __getcwd to build absolute path, and use
19705 _hurd_exec_paths instead of _hurd_exec.
19706 * sysdeps/mach/hurd/spawni.c: Likewise.
19707 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
19708 _hurd_exec.
19709
19710 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
19711
19712 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
19713 test instead of failing in case of ENOENT returned by posix_openpt.
19714
19715 2018-01-08 Florian Weimer <fweimer@redhat.com>
19716
19717 resolv: Support binary labels in test framework.
19718 * support/resolv_test.c (struct to_be_freed): Remove.
19719 (struct compressed_name): New.
19720 (allocate_compressed_name, ascii_tolower)
19721 (compare_compressed_name): New functions.
19722 (struct resolv_response_builder): Update type of
19723 compression_offsets for use with tsearch. Rempve to_be_freed.
19724 (response_push_pointer_to_free): Remove function.
19725 (resolv_response_add_name): Rewrite using struct compressed_name
19726 and tsearch instead of hsearch_r.
19727 (response_builder_allocate): Remove initialization of
19728 compression_offsets.
19729 (response_builder_free): Update for removal of to_be_freed. Use
19730 tdestroy instead of hdestroy_r.
19731 * resolv/Makefile (tests): Add tst-resolv-binary.
19732 (tst-resolv-binary): Link with -lresolv -lpthread.
19733
19734 2018-01-08 Florian Weimer <fweimer@redhat.com>
19735
19736 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
19737 time. Pass positive flag instead of negative flag to
19738 support_test_compare_failure.
19739 (support_test_compare_failure): Change negative parameter to
19740 positive.
19741 * support/support_test_compare_failure.c (report)
19742 (support_test_compare_failure): Likewise.
19743 * support/tst-test_compare.c (return_ssize_t, return_int): New.
19744 (do_test): Check int/size_t, ssize_t/size_t comparisons.
19745
19746 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
19747
19748 [BZ #22637]
19749 * nptl/descr.h (stackblock, stackblock_size): Update comments.
19750 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
19751 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
19752 stacksize.
19753 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
19754
19755 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
19756
19757 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19758 Add s_sincosf-sse2 and s_sincosf-fma.
19759 (CFLAGS-s_sincosf-fma.c): New.
19760 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
19761 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
19762 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
19763 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
19764 __sincosf is defined.
19765
19766 2018-01-08 Florian Weimer <fweimer@redhat.com>
19767
19768 * nptl/tst-thread-exit-clobber.cc: New file.
19769 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
19770 C++11 mode.
19771 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
19772 (tests): Add tst-thread-exit-clobber.
19773 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
19774
19775 2018-01-08 Florian Weimer <fweimer@redhat.com>
19776
19777 * support/check.h (support_static_assert): Define.
19778 (TEST_COMPARE): Use it.
19779
19780 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
19781
19782 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
19783 [!__RLIM_T_MATCHES_RLIM64_T]
19784 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
19785 __getrlimit64. Add libc_hidden_weak.
19786
19787 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
19788
19789 * elf/elf.h (R_RISCV_NONE): New define.
19790 (R_RISCV_32): Likewise.
19791 (R_RISCV_64): Likewise.
19792 (R_RISCV_RELATIVE): Likewise.
19793 (R_RISCV_COPY): Likewise.
19794 (R_RISCV_JUMP_SLOT): Likewise.
19795 (R_RISCV_TLS_DTPMOD32): Likewise.
19796 (R_RISCV_TLS_DTPMOD64): Likewise.
19797 (R_RISCV_TLS_DTPREL32): Likewise.
19798 (R_RISCV_TLS_DTPREL64): Likewise.
19799 (R_RISCV_TLS_TPREL32): Likewise.
19800 (R_RISCV_TLS_TPREL64): Likewise.
19801 * Makerules (make-link-multidir): Make directories before linking into
19802 them.
19803 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
19804 define.
19805 (VDSO_HASH_LINUX_4_15): Likewise.
19806 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
19807 in subdirectories of lib.
19808 * nptl/Makefile (/librt.so): Always depend on
19809 "$(shared-thread-library)".
19810
19811 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
19812
19813 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
19814 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
19815 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
19816 (___tls_get_addr).
19817 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
19818 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
19819 "-O2 -march=i686".
19820 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
19821 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
19822 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
19823 * sysdeps/gnu/glob-lstat-compat.c: New file.
19824 * sysdeps/gnu/glob64-lstat-compat.c: New file.
19825 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
19826
19827 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19828
19829 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
19830 Reserve 16 chars to reloc_addr before calling _itoa_word.
19831
19832 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19833
19834 [BZ #22678]
19835 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
19836 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
19837
19838 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
19839 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
19840
19841 * resource/tst-getrlimit.c: Add copyright header.
19842
19843 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19844 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19845
19846 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19847 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
19848 Define __GI_getrlimit64 as weak alias of __getrlimit64.
19849 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
19850 instead.
19851 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
19852 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
19853 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
19854 RLIM64_INFINITY): Fix values to match the kernel ones.
19855 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
19856 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
19857 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
19858 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
19859 getrlimit64@@GLIBC_2_27.
19860 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
19861 and setrlimit64.
19862 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
19863 getrlimit, setrlimit, getrlimit64 and setrlimit64.
19864 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
19865 setrlimit, getrlimit64 and setrlimit64.
19866
19867 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
19868
19869 [BZ #22648]
19870 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
19871 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
19872
19873 2018-01-04 Joseph Myers <joseph@codesourcery.com>
19874
19875 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
19876 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
19877 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
19878
19879 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19880
19881 [BZ #15479]
19882 [BZ #22666]
19883 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
19884 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
19885
19886 [BZ #15479]
19887 [BZ #22665]
19888 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
19889 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
19890 * sysdeps/alpha/fpu/s_floor.c: Likewise.
19891 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
19892
19893 2018-01-04 Florian Weimer <fweimer@redhat.com>
19894
19895 [BZ #22667]
19896 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
19897 Align the stack before calling exit.
19898 * stdlib/tst-makecontext-align.c: New file.
19899 * stdlib/Makefile (tests): Add tst-makecontext-align.
19900
19901 2018-01-04 Florian Weimer <fweimer@redhat.com>
19902
19903 Add support for calling dlvsym from libc.so.
19904 * include/dlfcn.h (__libc_dlvsym): Declare.
19905 * elf/Makefile (tests-static-internal): Add
19906 tst-libc_dlvsym-static.
19907 (tests-internal): Add tst-libc_dlvsym.
19908 (modules-names): Add tst-libc_dlvsym-dso.
19909 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
19910 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
19911 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
19912 object tst-libc_dlvsym-dso.so needs to be built before running
19913 these tests.
19914 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
19915 * elf/Versions: Export __libc_dlvsym.
19916 * elf/dl-libc.c (struct do_dlvsym_args): New.
19917 (do_dlvsym, __libc_dlvsym): New functions.
19918 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
19919 (_dl_open_hook2): New variable.
19920 (__libc_register_dl_open_hook): Set it.
19921 * elf/tst-libc_dlvsym-dso.c: New file.
19922 * elf/tst-libc_dlvsym-static.c: Likewise.
19923 * elf/tst-libc_dlvsym.c: Likewise.
19924 * elf/tst-libc_dlvsym.h: Likewise.
19925
19926 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
19927
19928 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
19929 include <sys/mount.h>.
19930
19931 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
19932
19933 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
19934 Add __NO_MATH_ERRNO__ check.
19935
19936 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19937
19938 * sysdeps/mips/mips32/libm-test-ulps: Update.
19939 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
19940
19941 2018-01-02 Florian Weimer <fweimer@redhat.com>
19942
19943 * misc/tst-pselect.c: Add copyright header.
19944
19945 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19946
19947 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
19948 comment.
19949 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
19950 comment.
19951 (settrlimit): Rename into setrlimit.
19952 (__sttrlimit): Rename into __setrlimit.
19953
19954 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
19955 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
19956 never defined in that case.
19957
19958 2018-01-02 Joseph Myers <joseph@codesourcery.com>
19959
19960 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
19961
19962 * sysdeps/arm/libm-test-ulps: Update.
19963
19964 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
19965 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
19966
19967 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19968
19969 * NEWS: Add cosf and sincosf to list of optimized functions.
19970
19971 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
19972
19973 [BZ #22660]
19974 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
19975 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
19976 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
19977 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
19978
19979 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
19980
19981 [BZ #22433]
19982 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
19983
19984 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
19985 making a copy of it.
19986
19987 2018-01-01 Joseph Myers <joseph@codesourcery.com>
19988
19989 * manual/texinfo.tex: Update to version 2017-12-26.21 with
19990 trailing whitespace removed.
19991 * scripts/config.guess: Update to version 2018-01-01.
19992 * scripts/config.sub: Update to version 2018-01-01.
19993 * scripts/move-if-change: Update from gnulib.
19994
19995 * NEWS: Update copyright dates.
19996 * catgets/gencat.c (print_version): Likewise.
19997 * csu/version.c (banner): Likewise.
19998 * debug/catchsegv.sh: Likewise.
19999 * debug/pcprofiledump.c (print_version): Likewise.
20000 * debug/xtrace.sh (do_version): Likewise.
20001 * elf/ldconfig.c (print_version): Likewise.
20002 * elf/ldd.bash.in: Likewise.
20003 * elf/pldd.c (print_version): Likewise.
20004 * elf/sotruss.sh: Likewise.
20005 * elf/sprof.c (print_version): Likewise.
20006 * iconv/iconv_prog.c (print_version): Likewise.
20007 * iconv/iconvconfig.c (print_version): Likewise.
20008 * locale/programs/locale.c (print_version): Likewise.
20009 * locale/programs/localedef.c (print_version): Likewise.
20010 * login/programs/pt_chown.c (print_version): Likewise.
20011 * malloc/memusage.sh (do_version): Likewise.
20012 * malloc/memusagestat.c (print_version): Likewise.
20013 * malloc/mtrace.pl: Likewise.
20014 * manual/libc.texinfo: Likewise.
20015 * nptl/version.c (banner): Likewise.
20016 * nscd/nscd.c (print_version): Likewise.
20017 * nss/getent.c (print_version): Likewise.
20018 * nss/makedb.c (print_version): Likewise.
20019 * posix/getconf.c (main): Likewise.
20020 * scripts/test-installation.pl: Likewise.
20021 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
20022
20023 * All files with FSF copyright notices: Update copyright dates
20024 using scripts/update-copyrights.
20025 * locale/programs/charmap-kw.h: Regenerated.
20026 * locale/programs/locfile-kw.h: Likewise.
20027
20028 2017-12-31 Zack Weinberg <zackw@panix.com>
20029
20030 * libio/bits/libio-ldbl.h: Correct check for improper
20031 inclusion. Add own multiple include guard.
20032
20033 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
20034 Dmitry V. Levin <ldv@altlinux.org>
20035
20036 [BZ #22625]
20037 CVE-2017-16997
20038 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
20039 string token expansion. Check for NULL pointer or empty string possibly
20040 returned by expand_dynamic_string_token.
20041 (decompose_rpath): Check for empty path after dynamic string
20042 token expansion.
20043
20044 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
20045
20046 [BZ #22433]
20047 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
20048
20049 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
20050 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
20051 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
20052 and PTRACE_SYSCALL.
20053 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
20054 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20055 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20056 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20057 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20058 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20059
20060 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
20061 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20062 __ptrace_peeksiginfo_flags, ptrace): Move to ...
20063 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
20064 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20065 bits/ptrace-shared.h.
20066 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
20067 <bits/ptrace-shared.h>.
20068 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
20069 __ptrace_peeksiginfo_flags, ptrace): Remove.
20070 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
20071 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
20072 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
20073 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
20074 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
20075
20076 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20077
20078 [BZ #17804]
20079 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
20080 end of the loop. Improve comments.
20081
20082 2017-12-29 Zack Weinberg <zackw@panix.com>
20083
20084 [BZ #22615]
20085 * manual/errno.texi (Checking for Errors): Explicitly say that errno
20086 might be set on success.
20087
20088 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
20089
20090 [BZ #22611]
20091 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
20092 is unchanged on success.
20093
20094 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
20095
20096 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
20097 updated.
20098 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
20099 expand_dynamic_string_token): Likewise.
20100 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
20101 is_path argument.
20102
20103 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
20104 contains ':'.
20105
20106 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
20107 is set and name contains ':', and all code depending on these checks.
20108
20109 2017-12-24 Zack Weinberg <zackw@panix.com>
20110
20111 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
20112 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
20113 respectively.
20114 * libio/libio.h: Rename the original version of this file to
20115 libio/bits/libio.h. Error out if not included by stdio.h or the
20116 stub libio.h.
20117 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
20118 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
20119 if not included by bits/libio.h or the stub _G_config.h.
20120 * sysdeps/unix/sysv/linux/_G_config.h: Move to
20121 sysdeps/unix/sysv/linux/bits. Error out if not included by
20122 bits/libio.h or the stub _G_config.h.
20123 * libio/stdio.h: Include bits/libio.h, not libio.h.
20124 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
20125 well as libio.h and _G_config.h.
20126
20127 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
20128 * libio/strfile.h, stdio-common/vfscanf.c
20129 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
20130 Include stdio.h, not _G_config.h nor libio.h.
20131 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
20132 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
20133
20134 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
20135
20136 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
20137
20138 [BZ #22347]
20139 * stdlib/getrandom.c (getrandom): Fix comment.
20140 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
20141
20142 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
20143
20144 [BZ #21161]
20145 * manual/arith.texi (strtoul): Fix a typo.
20146
20147 [BZ #22596]
20148 * manual/arith.texi (finite): Fix the description of the return
20149 value.
20150
20151 2017-12-22 Eric Blake <ebb9@byu.net>
20152
20153 Avoid gcc warnings on cygwin
20154 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
20155 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
20156 Avoid unused variable.
20157
20158 2017-12-22 Florian Weimer <fweimer@redhat.com>
20159
20160 * io/Makefile (routines): Add copy_file_range.
20161 (tests): Add tst-copy_file_range.
20162 (tests-static, tests-internal): Add tst-copy_file_range-compat.
20163 * io/Versions (GLIBC_2.27): Export copy_file_range.
20164 * io/copy_file_range-compat.c: New file.
20165 * io/copy_file_range.c: Likewise.
20166 * io/tst-copy_file_range-compat.c: Likewise.
20167 * io/tst-copy_file_range.c: Likewise.
20168 * manual/llio.texi (Copying File Data): New section.
20169 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
20170 * support/Makefile (libsupport-routines): Add support-xfstat,
20171 xftruncate, xlseek.
20172 * support/support-xfstat.c: New file.
20173 * support/xftruncate.c: Likewise.
20174 * support/xlseek.c: Likewise.
20175 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
20176 * sysdeps/unix/sysv/linux/**.abilist: Update.
20177 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
20178
20179 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
20180
20181 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20182 disable-multi-arch variant to aarch64-linux-gnu.
20183
20184 2017-12-20 Joseph Myers <joseph@codesourcery.com>
20185
20186 * manual/texinfo.tex: Update to version 2017-12-18.20 with
20187 trailing whitespace removed.
20188 * scripts/config.guess: Update to version 2017-12-17.
20189 * scripts/config.sub: Update to version 2017-11-23.
20190 * scripts/install-sh: Update to version 2017-09-23.17.
20191 * scripts/move-if-change: Update to version 2017-09-13 06:45.
20192
20193 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20194
20195 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
20196 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20197 * sysdeps/tile/_mcount.S (__mcount): Likewise.
20198 * sysdeps/tile/crti.S (_init, _fini): Likewise.
20199 * sysdeps/tile/crtn.S: Likewise.
20200 * sysdeps/tile/dl-start.S (_start): Likewise.
20201 * sysdeps/tile/dl-trampoline.S: Likewise.
20202 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
20203 * sysdeps/tile/start.S (_start): Likewise.
20204 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
20205 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
20206 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
20207 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
20208 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
20209 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
20210 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
20211
20212 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
20213 comment.
20214 * sysdeps/tile/preconfigure: Remove tilegx folder.
20215 * sysdeps/tile/tilegx/Implies: Move definitions to ...
20216 * sysdeps/tile/Implies: ... here.
20217 * sysdeps/tile/tilegx/Makefile: Move rules to ...
20218 * sysdeps/tile/Makefile: ... here.
20219 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
20220 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
20221 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
20222 * sysdeps/tile/bits/wordsize.h: ... here.
20223 * sysdeps/tile/tilegx/*: Move to ...
20224 * sysdeps/tile/*: ... here.
20225 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
20226 * sysdeps/tile/tilegx32/Implies: ... here.
20227 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
20228 * sysdeps/tile/tilegx64/Implies: ... here.
20229 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
20230 to ...
20231 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
20232 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
20233 * sysdeps/unix/sysv/linux/tile/*: ... here.
20234 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
20235 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
20236 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
20237 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
20238
20239 * README: Remove tilepro-*-linux-gnu from supported architecture.
20240 * scripts/build-many-glibcs.py: Likewise.
20241 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
20242 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
20243 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
20244 elf_machine_matches_host, elf_machine_dynamic,
20245 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
20246 howto, elf_machine_rela): Likewise.
20247 * sysdeps/tile/dl-start.S (_start): Likewise.
20248 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
20249 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
20250 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
20251 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
20252 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
20253 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
20254 Likewise.
20255 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
20256 * sysdeps/tile/preconfigure: Likewise.
20257 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
20258 POINTER_CHK_GUARD): Likewise.
20259 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
20260 * sysdeps/tile/start.S (_start): Likewise.
20261 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
20262 Likewise.
20263 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
20264 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
20265 CMOVNEZ): Remove.
20266 * sysdeps/unix/sysv/linux/tile/bits/environments.h
20267 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
20268 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
20269 Likewise.
20270 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
20271 * sysdeps/tile/tilepro/Implies: Remove file.
20272 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
20273 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
20274 * sysdeps/tile/tilepro/memchr.c: Likewise.
20275 * sysdeps/tile/tilepro/memcpy.S: Likewise.
20276 * sysdeps/tile/tilepro/memset.c: Likewise.
20277 * sysdeps/tile/tilepro/memusage.h: Likewise.
20278 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
20279 * sysdeps/tile/tilepro/strchr.c: Likewise.
20280 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
20281 * sysdeps/tile/tilepro/strlen.c: Likewise.
20282 * sysdeps/tile/tilepro/strrchr.c: Likewise.
20283 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
20284 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
20285 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
20286 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
20287 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
20288 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
20289 Likewise.
20290 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
20291 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
20292 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
20293 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
20294 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
20295 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
20296 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
20297 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
20298 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
20299 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
20300 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
20301 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
20302 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
20303 tilepro mention in comment.
20304
20305 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
20306 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
20307 * nptl/pthread_join_common.c: New file: common function used on
20308 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
20309 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
20310 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
20311 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
20312 (cleanup): Move definition to pthread_join_common.c.
20313 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
20314 Remove superflous checks.
20315 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
20316 Likewise.
20317
20318 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
20319
20320 * sysdeps/aarch64/libm-test-ulps: Update.
20321
20322 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20323
20324 * sysdeps/aarch64/memset.S (MEMSET): Define.
20325
20326 2017-12-20 Florian Weimer <fweimer@redhat.com>
20327
20328 [BZ #22635]
20329 nptl: Provide full implementation of pthread_self in libc.so.
20330 * nptl/Makefile (routines): Add pthread_self.
20331 (libpthread-routines): Replace pthread_self with
20332 compat-pthread_self.
20333 * nptl/forward.c (pthread_self): Remove.
20334 * nptl/nptl-init.c (pthread_functions): Do not initialize
20335 ptr_pthread_self.
20336 * nptl/pthread_self.c (pthread_self): Remove weak alias.
20337 * nptl/compat-pthread_self.c: New file.
20338 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
20339 Remove ptr_pthread_self.
20340
20341 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
20342
20343 * posix/regcomp.c: Fix spelling in comments.
20344 * posix/regex.h: Likewise.
20345 * posix/regex_internal.c: Likewise.
20346 * posix/regexec.c: Likewise.
20347
20348 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
20349
20350 [BZ #22377]
20351 * math/Makefile [C++] (tests): Add test for iseqsig.
20352 * math/math.h [C++] (iseqsig): New implementation, which does
20353 not rely on __MATH_TG/__builtin_types_compatible_p.
20354 * math/test-math-iseqsig.cc: New file.
20355 * sysdeps/powerpc/powerpc64le/Makefile
20356 (CFLAGS-test-math-iseqsig.cc): New variable.
20357
20358 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
20359
20360 * elf/dl-load.c (is_trusted_path): Remove.
20361 (fillin_rpath): Remove check_trusted argument and its use,
20362 all callers changed.
20363
20364 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20365
20366 [BZ #22630]
20367 * Makeconfig (link-pie-before-libc): Replace -pie with
20368 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
20369 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
20370 (tst-dlopen-aout-no-pie): New.
20371 (LDFLAGS-tst-prelink): Removed.
20372 (tst-prelink-no-pie): New.
20373 (LDFLAGS-tst-main1): Removed.
20374 (tst-main1-no-pie): New.
20375 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
20376 (tst-gmon-no-pie): New.
20377
20378 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20379
20380 * manual/install.texi: Document that --enable-static-pie
20381 implies PIE.
20382 * INSTALL: Regenerated.
20383
20384 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
20385
20386 [BZ #21309]
20387 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
20388 unsigned.
20389
20390 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20391
20392 Revert:
20393
20394 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20395
20396 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20397
20398 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20399
20400 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20401 <errno.h>. Include "eexp.tbl".
20402 (half): New constant.
20403 (one): Likewise.
20404 (__ieee754_exp): Rewrite.
20405 (__slowexp): Remove prototype.
20406 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20407 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20408 * sysdeps/i386/fpu/slowexp.c: Likewise.
20409 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20410 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20411 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20412 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20413 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20414 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20415 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20416 comment.
20417 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20418 (CPPFLAGS-slowexp.c): Remove variable.
20419 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20420 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20421 (CFLAGS-slowexp-fma.c): Remove variable.
20422 (CFLAGS-slowexp-fma4.c): Likewise.
20423 (CFLAGS-slowexp-avx.c): Likewise.
20424 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20425 define as macro.
20426 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20427 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20428 * math/Makefile (type-double-routines): Remove slowexp.
20429 * manual/probes.texi (slowexp_p6): Remove.
20430 (slowexp_p32): Likewise.
20431
20432 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20433
20434 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20435 arithmetic.
20436
20437 * lib/glob.c (glob): Do not pass NULL to mempcpy.
20438
20439 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20440
20441 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20442
20443 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20444
20445 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
20446 <errno.h>. Include "eexp.tbl".
20447 (half): New constant.
20448 (one): Likewise.
20449 (__ieee754_exp): Rewrite.
20450 (__slowexp): Remove prototype.
20451 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
20452 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
20453 * sysdeps/i386/fpu/slowexp.c: Likewise.
20454 * sysdeps/ia64/fpu/slowexp.c: Likewise.
20455 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
20456 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
20457 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
20458 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20459 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
20460 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
20461 comment.
20462 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
20463 (CPPFLAGS-slowexp.c): Remove variable.
20464 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20465 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
20466 (CFLAGS-slowexp-fma.c): Remove variable.
20467 (CFLAGS-slowexp-fma4.c): Likewise.
20468 (CFLAGS-slowexp-avx.c): Likewise.
20469 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
20470 define as macro.
20471 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
20472 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
20473 * math/Makefile (type-double-routines): Remove slowexp.
20474 * manual/probes.texi (slowexp_p6): Remove.
20475 (slowexp_p32): Likewise.
20476
20477 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20478 James Clarke <jrtc27@jrtc27.com>
20479
20480 [BZ #22603]
20481 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
20482 addition.
20483
20484 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20485
20486 [BZ #22605]
20487 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
20488 code.
20489
20490 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20491
20492 [BZ #22563]
20493 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20494 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
20495 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
20496 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
20497 to feature_1.
20498
20499 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
20500
20501 [BZ #22563]
20502 * bits/types/__cancel_jmp_buf_tag.h: New file.
20503 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
20504 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
20505 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
20506 * nptl/Makefile (headers): Add
20507 bits/types/__cancel_jmp_buf_tag.h.
20508 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
20509 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
20510 * sysdeps/nptl/pthread.h: Include
20511 <bits/types/__cancel_jmp_buf_tag.h>.
20512 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
20513 __cancel_jmp_buf.
20514 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
20515
20516 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20517
20518 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20519 --enable-static-pie variants to x86_64, x32 and i686.
20520
20521 2017-12-19 Joseph Myers <joseph@codesourcery.com>
20522
20523 [BZ #22631]
20524 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
20525 argument for attrubutes. All callers changed.
20526 (__inline_mathop1): Likewise. All callers changed.
20527 (__inline_mathop): Likewise. All callers changed.
20528 [__USE_MISC] (scalbn): Use __inline_forward instead of
20529 __inline_forward_c.
20530 [__USE_ISOC99] (scalbln): Likewise.
20531 [__USE_ISOC99] (nearbyint): Likewise.
20532 [__USE_ISOC99] (lrint): Likewise.
20533 [__USE_MISC] (scalbnf): Likewise.
20534 [__USE_ISOC99] (scalblnf): Likewise.
20535 [__USE_ISOC99] (nearbyintf): Likewise.
20536 [__USE_ISOC99] (lrintf): Likewise.
20537 [__USE_MISC] (scalbnl): Likewise.
20538 [__USE_ISOC99] (scalblnl): Likewise.
20539 [__USE_ISOC99] (nearbyintl): Likewise.
20540 [__USE_ISOC99] (lrintl): Likewise.
20541 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
20542 __inline_mathop and __m81_defun changed.
20543
20544 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
20545 CPU or FPU for ARM hard-float configurations.
20546
20547 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20548
20549 * nptl/tst-attr3.c: Include <libc-diag.h>.
20550 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
20551
20552 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
20553
20554 * string/tester.c (test_strncat): Also disable -Warray-bounds
20555 warnings for two tests.
20556
20557 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
20558
20559 [BZ #22614]
20560 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
20561 $(cc-pie-default) == yes.
20562 * config.make.in (cc-pie-default): New.
20563 * configure.ac (libc_cv_pie_default): Renamed to ...
20564 (libc_cv_cc_pie_default): This.
20565 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
20566 * configure: Regenerated.
20567
20568 2017-12-18 Florian Weimer <fweimer@redhat.com>
20569
20570 [BZ #20204]
20571 ld.so: Harden dl-libc/libdl hooks.
20572 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
20573 (rtld_active): New function.
20574 * dlfcn/dladdr.c (__dladdr): Call it.
20575 * dlfcn/dladdr1.c (__dladdr1): Likewise.
20576 * dlfcn/dlclose.c (__dlcose): Likewise.
20577 * dlfcn/dlerror.c (__dlerror): Likewise.
20578 * dlfcn/dlinfo.c (__dlinfo): Likewise.
20579 * dlfcn/dlmopen.c (__dlmopen): Likewise.
20580 * dlfcn/dlopen.c (__dlopen): Likewise.
20581 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
20582 * dlfcn/dlsym.c (__dlsym): Likewise.
20583 * dlfcn/dlvsym.c (__dlvsym): Likewise.
20584 * libio/vtables.c (_IO_vtable_check): Likewise.
20585 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
20586 (__libc_dlclose): Likewise.
20587 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
20588 assignment.
20589
20590 2017-12-18 Joseph Myers <joseph@codesourcery.com>
20591
20592 [BZ #22446]
20593 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
20594 buffers for readlink input and output.
20595
20596 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
20597
20598 [BZ #22624]
20599 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
20600 inhibit_stack_protector.
20601
20602 [BZ #22624]
20603 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
20604 inhibit_stack_protector.
20605
20606 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
20607
20608 [BZ #22627]
20609 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
20610 code and invocation.
20611
20612 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
20613
20614 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
20615
20616 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
20617
20618 [BZ #22505]
20619 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
20620
20621 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20622
20623 * sysdeps/s390/fpu/libm-test-ulps: Update.
20624
20625 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20626
20627 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20628
20629 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20630
20631 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
20632 constants to s_sincosf.h file.
20633 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
20634 * sysdeps/ieee754/flt-32/s_sincosf.c: New
20635 implementation.
20636 * sysdeps/ieee754/flt-32/s_sincosf.h:
20637 New file.
20638
20639 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20640
20641 [BZ #14681]
20642 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
20643 before mtrace.
20644
20645 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
20646
20647 [BZ #19574]
20648 * INSTALL: Regenerated.
20649 * Makeconfig (real-static-start-installed-name): New.
20650 (pic-default): Updated for --enable-static-pie.
20651 (pie-default): New for --enable-static-pie.
20652 (default-pie-ldflag): Likewise.
20653 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
20654 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
20655 Replace $(static-start-installed-name) with
20656 $(real-static-start-installed-name).
20657 (+prectorT): Updated for --enable-static-pie.
20658 (+postctorT): Likewise.
20659 (CFLAGS-.o): Add $(pie-default).
20660 (CFLAGS-.op): Likewise.
20661 * NEWS: Mention --enable-static-pie.
20662 * config.h.in (ENABLE_STATIC_PIE): New.
20663 * configure.ac (--enable-static-pie): New configure option.
20664 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
20665 (have-static-pie): Likewise.
20666 Enable static PIE if linker supports --no-dynamic-linker.
20667 (ENABLE_STATIC_PIE): New AC_DEFINE.
20668 (enable-static-pie): New LIBC_CONFIG_VAR.
20669 * configure: Regenerated.
20670 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
20671 gr$(start-installed-name) for --enable-static-pie.
20672 (extra-objs): Likewise.
20673 (install-lib): Likewise.
20674 (extra-objs): Add static-reloc.o and static-reloc.os
20675 ($(objpfx)$(start-installed-name)): Also depend on
20676 $(objpfx)static-reloc.o.
20677 ($(objpfx)r$(start-installed-name)): New.
20678 ($(objpfx)g$(start-installed-name)): Also depend on
20679 $(objpfx)static-reloc.os.
20680 ($(objpfx)gr$(start-installed-name)): New.
20681 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
20682 in libc.a.
20683 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
20684 initimage.
20685 * csu/static-reloc.c: New file.
20686 * elf/Makefile (routines): Add dl-reloc-static-pie.
20687 (elide-routines.os): Likewise.
20688 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
20689 (tst-tls1-static-non-pie-no-pie): New.
20690 * elf/dl-reloc-static-pie.c: New file.
20691 * elf/dl-support.c (_dl_get_dl_main_map): New function.
20692 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
20693 STATIC_PIE_BOOTSTRAP.
20694 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
20695 * gmon/Makefile (tests): Add tst-gmon-static-pie.
20696 (tests-static): Likewise.
20697 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
20698 (tst-gmon-static-no-pie): New.
20699 (CFLAGS-tst-gmon-static-pie.c): Likewise.
20700 (CRT-tst-gmon-static-pie): Likewise.
20701 (tst-gmon-static-pie-ENV): Likewise.
20702 (tests-special): Likewise.
20703 ($(objpfx)tst-gmon-static-pie.out): Likewise.
20704 (clean-tst-gmon-static-pie-data): Likewise.
20705 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
20706 * gmon/tst-gmon-static-pie.c: New file.
20707 * manual/install.texi: Document --enable-static-pie.
20708 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
20709 (_dl_get_dl_main_map): Likewise.
20710 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
20711 * sysdeps/x86_64/configure.ac: Likewise.
20712 * sysdeps/i386/configure: Regenerated.
20713 * sysdeps/x86_64/configure: Likewise.
20714 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
20715 (ASFLAGS-.op): Likewise.
20716
20717 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20718
20719 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
20720 * posix/tst-mmap-offset.c (fname): Use /tmp.
20721 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
20722
20723 2017-12-15 Steve Ellcey <sellcey@cavium.com>
20724
20725 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
20726
20727 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
20728
20729 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
20730 errno.
20731
20732 2017-12-15 Joseph Myers <joseph@codesourcery.com>
20733
20734 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
20735 --with-float=hard for arm-linux-gnueabihf configurations.
20736
20737 [BZ #14121]
20738 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
20739 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
20740 ($(mo-installed)): Use $(objpfx)%.mo.
20741 (realclean): Remove rule.
20742
20743 * po/Makefile (linguas): Remove rule and dependencies.
20744 (linguas.mo): Likewise.
20745 (.PHONY): Do not depend on linguas and linguas.mo.
20746 (podir): Remove variable.
20747 (pofiles): Likewise.
20748 [$(pofiles)] (%.po): Remove rule.
20749
20750 * sysdeps/sparc/sparc32/Makefile
20751 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
20752 start-of-line whitespace in argument of echo.
20753 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
20754 with whitespace. Generate __wrap_.udiv alias.
20755 * sysdeps/sparc/sparc32/rem.S: Regenerated.
20756 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
20757 * sysdeps/sparc/sparc32/udiv.S: Likewise.
20758 * sysdeps/sparc/sparc32/urem.S: Likewise.
20759
20760 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20761
20762 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
20763 for aligned inputs.
20764
20765 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
20766
20767 * benchtests/bench-strcmp.c: Print output in JSON format.
20768
20769 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
20770
20771 2017-12-14 Florian Weimer <fweimer@redhat.com>
20772
20773 [BZ #22607]
20774 CVE-2017-1000409
20775 * elf/dl-load.c (_dl_init_paths): Compute number of components in
20776 the expanded path string.
20777
20778 2017-12-14 Florian Weimer <fweimer@redhat.com>
20779
20780 [BZ #22606]
20781 CVE-2017-1000408
20782 * elf/dl-load.c (system_dirs): Update comment.
20783 (nsystem_dirs_len): Use array_length.
20784 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
20785
20786 2017-12-14 Florian Weimer <fweimer@redhat.com>
20787
20788 Simplify compiling most of support/ outside of glibc.
20789 * support/check_addrinfo.c: Include <string.h>.
20790 * support/check_dns_packet.c: Likewise.
20791 * support/check_hostent.c: Likewise.
20792 * support/support_can_chroot.c: Include <support/xunistd.h>.
20793 * support/support_format_addrinfo.c: Include <stdlib.h>
20794 * support/support_format_dns_packet.c: Include <stdbool.h>.
20795 * support/support_format_hostent.c: Include <stdlib.h>.
20796 * support/support_format_netent.c: Likewise.
20797 * support/support_write_string.c: Include <support/xunistd.h>.
20798 * support/xdlfcn.c: Include <stddef.h>.
20799
20800 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
20801
20802 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
20803
20804 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
20805 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20806
20807 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20808 (sysdeps_routines): Add memset-niagara7.
20809 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
20810 Likewise.
20811 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
20812 file.
20813 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
20814 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20815 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
20816 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
20817 Add niagara7 option.
20818 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
20819 memset.
20820
20821 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
20822 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
20823 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
20824 Likewise.
20825 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
20826 New file.
20827 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
20828 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
20829 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
20830 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
20831 and __memmove_niagara7.
20832 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
20833 Add niagara7 option.
20834 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
20835 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
20836 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
20837 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
20838 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
20839
20840 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
20841
20842 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
20843 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
20844 * sysdeps/sparc/sparc64/memmove.S: Likewise.
20845 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
20846
20847 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
20848 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
20849 _dl_sparc_cap_flags array.
20850 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
20851
20852 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
20853
20854 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
20855 time whenever possible.
20856
20857 2017-12-12 Carlos O'Donell <carlos@redhat.com>
20858
20859 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
20860 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
20861
20862 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20863
20864 * soft-fp/fmadf4.c: Move to ....
20865 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
20866 * soft-fp/fmasf4.c: Move to ....
20867 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
20868 * soft-fp/fmatf4.c: Move to ....
20869 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
20870 * sysdeps/ieee754/soft-fp/Makefile: New file.
20871 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
20872 * sysdeps/arm/preconfigure: Regenerated.
20873 * sysdeps/arm/nofpu/Implies: New file.
20874 * sysdeps/arm/s_fma.c: Remove file.
20875 * sysdeps/arm/s_fmaf.c: Likewise.
20876 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
20877 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
20878 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
20879 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
20880 * sysdeps/microblaze/s_fma.c: Remove file.
20881 * sysdeps/microblaze/s_fmaf.c: Likewise.
20882 * sysdeps/mips/mips32/nofpu/Implies: New file.
20883 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
20884 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
20885 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
20886 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
20887 * sysdeps/mips/ieee754/s_fma.c: Remove file.
20888 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
20889 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
20890 implementation.
20891 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
20892 * sysdeps/nios2/s_fma.c: Remove file.
20893 * sysdeps/nios2/s_fmaf.c: Likewise.
20894 * sysdeps/sh/nofpu/Implies: New file.
20895 * sysdeps/sh/s_fma.c: Remove file.
20896 * sysdeps/sh/s_fmaf.c: Likewise.
20897 * sysdeps/tile/Implies: Add ieee754/soft-fp.
20898 * sysdeps/tile/s_fma.c: Remove file.
20899 * sysdeps/tile/s_fmaf.c: Likewise.
20900
20901 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
20902
20903 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
20904 Add s_cosf-sse2 and s_cosf-fma.
20905 (CFLAGS-s_cosf-fma.c): New.
20906 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
20907 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
20908 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
20909
20910 2017-12-12 Steve Ellcey <sellcey@cavium.com>
20911
20912 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
20913
20914 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20915
20916 * libio/Makefile (tests): Add tst-bz22415.
20917 (tst-bz22415-ENV): New rule.
20918 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
20919 (tests-special): Add tst-bz22415-mem.out.
20920 ($(objpfx)tst-bz22415-mem.out): New rule.
20921 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
20922 in case of a successful seek operation.
20923 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
20924 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
20925 buffer is required.
20926 * libio/tst-bz22415.c: New test.
20927
20928 * sysdeps/ia64/fpu/libm-test-ulps: Update.
20929
20930 2017-12-12 James Clarke <jrtc27@jrtc27.com>
20931
20932 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
20933 __IPC_64 to 0 to avoid IPC_64 being set.
20934
20935 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
20936
20937 [BZ #22593]
20938 * math/bits/mathcalls.h (nextafter): Remove const.
20939 (nexttoward): Likewise.
20940
20941 2017-12-12 Joseph Myers <joseph@codesourcery.com>
20942
20943 * configure.ac (--with-fp): Remove configure option.
20944 (with_fp_cond): New variable.
20945 (libc_cv_with_fp): New configure test. Use this variable instead
20946 of with_fp.
20947 * configure: Regenerated.
20948 * config.make.in (with-fp): Use @libc_cv_with_fp@.
20949 * manual/install.texi (Configuring and compiling): Remove
20950 --without-fp.
20951 * INSTALL: Regenerated.
20952 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
20953 * sysdeps/mips/preconfigure (with_fp_cond): Define.
20954 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
20955 * sysdeps/sh/preconfigure (with_fp_cond): Define.
20956 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
20957 use --without-fp to configure glibc.
20958
20959 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
20960
20961 * manual/locale.texi (nl_langinfo): Fix a typo.
20962
20963 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
20964
20965 [BZ #22588]
20966 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
20967
20968 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
20969
20970 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
20971 (CFLAGS-argp-parse.c): Likewise.
20972 (CFLAGS-argp-fmtstream.c): Likewise.
20973 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
20974 (CPPFLAGS-sha512-crypt.c): Likewise.
20975 (CPPFLAGS-md5-crypt.c): Likewise.
20976 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
20977 (CFLAGS-stack_chk_fail_local.c): Likewise.
20978 (CFLAGS-backtrace.c): Likewise.
20979 (CFLAGS-sprintf_chk.c): Likewise.
20980 (CFLAGS-snprintf_chk.c): Likewise.
20981 (CFLAGS-vsprintf_chk.c): Likewise.
20982 (CFLAGS-vsnprintf_chk.c): Likewise.
20983 (CFLAGS-asprintf_chk.c): Likewise.
20984 (CFLAGS-vasprintf_chk.c): Likewise.
20985 (CFLAGS-obprintf_chk.c): Likewise.
20986 (CFLAGS-dprintf_chk.c): Likewise.
20987 (CFLAGS-vdprintf_chk.c): Likewise.
20988 (CFLAGS-printf_chk.c): Likewise.
20989 (CFLAGS-fprintf_chk.c): Likewise.
20990 (CFLAGS-vprintf_chk.c): Likewise.
20991 (CFLAGS-vfprintf_chk.c): Likewise.
20992 (CFLAGS-gets_chk.c): Likewise.
20993 (CFLAGS-fgets_chk.c): Likewise.
20994 (CFLAGS-fgets_u_chk.c): Likewise.
20995 (CFLAGS-fread_chk.c): Likewise.
20996 (CFLAGS-fread_u_chk.c): Likewise.
20997 (CFLAGS-swprintf_chk.c): Likewise.
20998 (CFLAGS-vswprintf_chk.c): Likewise.
20999 (CFLAGS-wprintf_chk.c): Likewise.
21000 (CFLAGS-fwprintf_chk.c): Likewise.
21001 (CFLAGS-vwprintf_chk.c): Likewise.
21002 (CFLAGS-vfwprintf_chk.c): Likewise.
21003 (CFLAGS-fgetws_chk.c): Likewise.
21004 (CFLAGS-fgetws_u_chk.c): Likewise.
21005 (CFLAGS-read_chk.c): Likewise.
21006 (CFLAGS-pread_chk.c): Likewise.
21007 (CFLAGS-pread64_chk.c): Likewise.
21008 (CFLAGS-recv_chk.c): Likewise.
21009 (CFLAGS-recvfrom_chk.c): Likewise.
21010 (CFLAGS-tst-longjmp_chk.c): Likewise.
21011 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
21012 (CFLAGS-tst-longjmp_chk2.c): Likewise.
21013 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
21014 (CFLAGS-tst-longjmp_chk3.c): Likewise.
21015 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
21016 (CFLAGS-tst-chk1.c): Likewise.
21017 (CFLAGS-tst-chk2.c): Likewise.
21018 (CFLAGS-tst-chk3.c): Likewise.
21019 (CFLAGS-tst-chk4.cc): Likewise.
21020 (CFLAGS-tst-chk5.cc): Likewise.
21021 (CFLAGS-tst-chk6.cc): Likewise.
21022 (CFLAGS-tst-lfschk1.c): Likewise.
21023 (CFLAGS-tst-lfschk2.c): Likewise.
21024 (CFLAGS-tst-lfschk3.c): Likewise.
21025 (CFLAGS-tst-lfschk4.cc): Likewise.
21026 (CFLAGS-tst-lfschk5.cc): Likewise.
21027 (CFLAGS-tst-lfschk6.cc): Likewise.
21028 (CFLAGS-tst-ssp-1.c): Likewise.
21029 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
21030 (CFLAGS-scandir64.c): Likewise.
21031 (CFLAGS-scandir-tail.c): Likewise.
21032 (CFLAGS-scandir64-tail.c): Likewise.
21033 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
21034 (CFLAGS-dl-tunables.c): Likewise.
21035 (CFLAGS-dl-runtime.c): Likewise.
21036 (CFLAGS-dl-lookup.c): Likewise.
21037 (CFLAGS-dl-iterate-phdr.c): Likewise.
21038 (CFLAGS-vismain.c): Likewise.
21039 (CFLAGS-tst-linkall-static.c): Likewise.
21040 (CFLAGS-tst-linkall-static.c): Likewise.
21041 (CPPFLAGS-dl-load.c): Likewise.
21042 (CFLAGS-ldconfig.c): Likewise.
21043 (CFLAGS-dl-cache.c): Likewise.
21044 (CFLAGS-cache.c): Likewise.
21045 (CFLAGS-rtld.c): Likewise.
21046 (CFLAGS-multiload.c): Likewise.
21047 (CFLAGS-filtmod1.c): Likewise.
21048 (CFLAGS-tst-align.c): Likewise.
21049 (CFLAGS-tst-align2.c): Likewise.
21050 (CFLAGS-tst-alignmod.c): Likewise.
21051 (CFLAGS-tst-alignmod2.c): Likewise.
21052 (CPPFLAGS-tst-execstack.c): Likewise.
21053 (CFLAGS-tst-ptrguard1-static.c): Likewise.
21054 (CFLAGS-tst-latepthreadmod.c): Likewise.
21055 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
21056 (CFLAGS-getgrnam_r.c): Likewise.
21057 (CFLAGS-getgrent_r.c): Likewise.
21058 (CFLAGS-getgrent.c): Likewise.
21059 (CFLAGS-fgetgrent.c): Likewise.
21060 (CFLAGS-fgetgrent_r.c): Likewise.
21061 (CFLAGS-putgrent.c): Likewise.
21062 (CFLAGS-initgroups.c): Likewise.
21063 (CFLAGS-getgrgid.c): Likewise.
21064 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
21065 (CFLAGS-getsgent.c): Likewise.
21066 (CFLAGS-fgetsgent.c): Likewise.
21067 (CFLAGS-fgetsgent_r.c): Likewise.
21068 (CFLAGS-putsgent.c): Likewise.
21069 (CFLAGS-getsgnam.c): Likewise.
21070 (CFLAGS-getsgnam_r.c): Likewise.
21071 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
21072 (CFLAGS-iconv_charmap.c): Likewise.
21073 (CFLAGS-dummy-repertoire.c): Likewise.
21074 (CFLAGS-charmap.c): Likewise.
21075 (CFLAGS-linereader.c): Likewise.
21076 (CFLAGS-simple-hash.c): Likewise.
21077 (CFLAGS-gconv_conf.c): Likewise.
21078 (CFLAGS-iconvconfig.c): Likewise.
21079 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
21080 (CFLAGS-gethstbyad.c): Likewise.
21081 (CFLAGS-gethstbynm_r.c): Likewise.
21082 (CFLAGS-gethstbynm.c): Likewise.
21083 (CFLAGS-gethstbynm2_r.c): Likewise.
21084 (CFLAGS-gethstbynm2.c): Likewise.
21085 (CFLAGS-gethstent_r.c): Likewise.
21086 (CFLAGS-gethstent.c): Likewise.
21087 (CFLAGS-rcmd.c): Likewise.
21088 (CFLAGS-getnetbynm_r.c): Likewise.
21089 (CFLAGS-getnetbynm.c): Likewise.
21090 (CFLAGS-getnetbyad_r.c): Likewise.
21091 (CFLAGS-getnetbyad.c): Likewise.
21092 (CFLAGS-getnetent_r.c): Likewise.
21093 (CFLAGS-getnetent.c): Likewise.
21094 (CFLAGS-getaliasent_r.c): Likewise.
21095 (CFLAGS-getaliasent.c): Likewise.
21096 (CFLAGS-getrpcent_r.c): Likewise.
21097 (CFLAGS-getrpcent.c): Likewise.
21098 (CFLAGS-getservent_r.c): Likewise.
21099 (CFLAGS-getservent.c): Likewise.
21100 (CFLAGS-getprtent_r.c): Likewise.
21101 (CFLAGS-getprtent.c): Likewise.
21102 (CFLAGS-either_ntoh.c): Likewise.
21103 (CFLAGS-either_hton.c): Likewise.
21104 (CFLAGS-getnetgrent.c): Likewise.
21105 (CFLAGS-getnetgrent_r.c): Likewise.
21106 (CFLAGS-tst-checks-posix.c): Likewise.
21107 (CFLAGS-tst-sockaddr.c): Likewise.
21108 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
21109 (CFLAGS-tst-translit.c): Likewise.
21110 (CFLAGS-tst-gettext2.c): Likewise.
21111 (CFLAGS-tst-codeset.c): Likewise.
21112 (CFLAGS-tst-gettext3.c): Likewise.
21113 (CFLAGS-tst-gettext4.c): Likewise.
21114 (CFLAGS-tst-gettext5.c): Likewise.
21115 (CFLAGS-tst-gettext6.c): Likewise.
21116 * io/Makefile (CFLAGS-open.c): Likewise.
21117 (CFLAGS-open64.c): Likewise.
21118 (CFLAGS-creat.c): Likewise.
21119 (CFLAGS-creat64.c): Likewise.
21120 (CFLAGS-fcntl.c): Likewise.
21121 (CFLAGS-poll.c): Likewise.
21122 (CFLAGS-ppoll.c): Likewise.
21123 (CFLAGS-lockf.c): Likewise.
21124 (CFLAGS-statfs.c): Likewise.
21125 (CFLAGS-fstatfs.c): Likewise.
21126 (CFLAGS-statvfs.c): Likewise.
21127 (CFLAGS-fstatvfs.c): Likewise.
21128 (CFLAGS-fts.c): Likewise.
21129 (CFLAGS-fts64.c): Likewise.
21130 (CFLAGS-ftw.c): Likewise.
21131 (CFLAGS-ftw64.c): Likewise.
21132 (CFLAGS-lockf.c): Likewise.
21133 (CFLAGS-posix_fallocate.c): Likewise.
21134 (CFLAGS-posix_fallocate64.c): Likewise.
21135 (CFLAGS-fallocate.c): Likewise.
21136 (CFLAGS-fallocate64.c): Likewise.
21137 (CFLAGS-read.c): Likewise.
21138 (CFLAGS-write.c): Likewise.
21139 (CFLAGS-test-stat.c): Likewise.
21140 (CFLAGS-test-lfs.c): Likewise.
21141 * libio/Makefile (CFLAGS-fileops.c): Likewise.
21142 (CFLAGS-fputc.c): Likewise.
21143 (CFLAGS-fputwc.c): Likewise.
21144 (CFLAGS-freopen64.c): Likewise.
21145 (CFLAGS-freopen.c): Likewise.
21146 (CFLAGS-fseek.c): Likewise.
21147 (CFLAGS-fseeko64.c): Likewise.
21148 (CFLAGS-fseeko.c): Likewise.
21149 (CFLAGS-ftello64.c): Likewise.
21150 (CFLAGS-ftello.c): Likewise.
21151 (CFLAGS-fwide.c): Likewise.
21152 (CFLAGS-genops.c): Likewise.
21153 (CFLAGS-getc.c): Likewise.
21154 (CFLAGS-getchar.c): Likewise.
21155 (CFLAGS-getwc.c): Likewise.
21156 (CFLAGS-getwchar.c): Likewise.
21157 (CFLAGS-iofclose.c): Likewise.
21158 (CFLAGS-iofflush.c): Likewise.
21159 (CFLAGS-iofgetpos64.c): Likewise.
21160 (CFLAGS-iofgetpos.c): Likewise.
21161 (CFLAGS-iofgets.c): Likewise.
21162 (CFLAGS-iofgetws.c): Likewise.
21163 (CFLAGS-iofputs.c): Likewise.
21164 (CFLAGS-iofputws.c): Likewise.
21165 (CFLAGS-iofread.c): Likewise.
21166 (CFLAGS-iofsetpos64.c): Likewise.
21167 (CFLAGS-iofsetpos.c): Likewise.
21168 (CFLAGS-ioftell.c): Likewise.
21169 (CFLAGS-iofwrite.c): Likewise.
21170 (CFLAGS-iogetdelim.c): Likewise.
21171 (CFLAGS-iogetline.c): Likewise.
21172 (CFLAGS-iogets.c): Likewise.
21173 (CFLAGS-iogetwline.c): Likewise.
21174 (CFLAGS-ioputs.c): Likewise.
21175 (CFLAGS-ioseekoff.c): Likewise.
21176 (CFLAGS-ioseekpos.c): Likewise.
21177 (CFLAGS-iosetbuffer.c): Likewise.
21178 (CFLAGS-iosetvbuf.c): Likewise.
21179 (CFLAGS-ioungetc.c): Likewise.
21180 (CFLAGS-ioungetwc.c): Likewise.
21181 (CFLAGS-oldfileops.c): Likewise.
21182 (CFLAGS-oldiofclose.c): Likewise.
21183 (CFLAGS-oldiofgetpos64.c): Likewise.
21184 (CFLAGS-oldiofgetpos.c): Likewise.
21185 (CFLAGS-oldiofsetpos64.c): Likewise.
21186 (CFLAGS-oldiofsetpos.c): Likewise.
21187 (CFLAGS-peekc.c): Likewise.
21188 (CFLAGS-putc.c): Likewise.
21189 (CFLAGS-putchar.c): Likewise.
21190 (CFLAGS-putwc.c): Likewise.
21191 (CFLAGS-putwchar.c): Likewise.
21192 (CFLAGS-rewind.c): Likewise.
21193 (CFLAGS-wfileops.c): Likewise.
21194 (CFLAGS-wgenops.c): Likewise.
21195 (CFLAGS-oldiofopen.c): Likewise.
21196 (CFLAGS-iofopen.c): Likewise.
21197 (CFLAGS-iofopen64.c): Likewise.
21198 (CFLAGS-oldtmpfile.c): Likewise.
21199 (CFLAGS-tst_putwc.c): Likewise.
21200 * locale/Makefile (CFLAGS-md5.c): Likewise.
21201 (CFLAGS-charmap.c): Likewise.
21202 (CFLAGS-locfile.c): Likewise.
21203 (CFLAGS-charmap-dir.c): Likewise.
21204 * login/Makefile (CFLAGS-grantpt.c): Likewise.
21205 (CFLAGS-getpt.c): Likewise.
21206 (CFLAGS-pt_chown.c): Likewise.
21207 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
21208 (CFLAGS-obstack.c): Likewise.
21209 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
21210 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
21211 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
21212 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
21213 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
21214 (CFLAGS-test-tgmath.c): Likewise.
21215 (CFLAGS-test-tgmath2.c): Likewise.
21216 (CFLAGS-test-tgmath-ret.c): Likewise.
21217 (CFLAGS-test-powl.c): Likewise.
21218 (CFLAGS-test-snan.c): Likewise.
21219 (CFLAGS-test-signgam-finite.c): Likewise.
21220 (CFLAGS-test-signgam-finite-c99.c): Likewise.
21221 (CFLAGS-test-signgam-finite-c11.c): Likewise.
21222 (CFLAGS-test-signgam-uchar.c): Likewise.
21223 (CFLAGS-test-signgam-uchar-init.c): Likewise.
21224 (CFLAGS-test-signgam-uchar-static.c): Likewise.
21225 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
21226 (CFLAGS-test-signgam-uint.c): Likewise.
21227 (CFLAGS-test-signgam-uint-init.c): Likewise.
21228 (CFLAGS-test-signgam-uint-static.c): Likewise.
21229 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
21230 (CFLAGS-test-signgam-ullong.c): Likewise.
21231 (CFLAGS-test-signgam-ullong-init.c): Likewise.
21232 (CFLAGS-test-signgam-ullong-static.c): Likewise.
21233 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
21234 (CFLAGS-test-math-cxx11.cc): Likewise.
21235 (CFLAGS-test-math-isinff.cc): Likewise.
21236 (CFLAGS-test-math-iszero.cc): Likewise.
21237 (CFLAGS-test-math-issignaling.cc): Likewise.
21238 (CFLAGS-test-math-iscanonical.cc): Likewise.
21239 (CFLAGS-test-iszero-excess-precision.c): Likewise.
21240 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
21241 (CFLAGS-test-flt-eval-method.c): Likewise.
21242 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
21243 (CFLAGS-test-finite-macros.c): Likewise.
21244 * misc/Makefile (CFLAGS-select.c): Likewise.
21245 (CFLAGS-tsearch.c): Likewise.
21246 (CFLAGS-lsearch.c): Likewise.
21247 (CFLAGS-pselect.c): Likewise.
21248 (CFLAGS-readv.c): Likewise.
21249 (CFLAGS-writev.c): Likewise.
21250 (CFLAGS-preadv.c): Likewise.
21251 (CFLAGS-preadv64.c): Likewise.
21252 (CFLAGS-pwritev.c): Likewise.
21253 (CFLAGS-pwritev64.c): Likewise.
21254 (CFLAGS-preadv2.c): Likewise.
21255 (CFLAGS-preadv64v2.c): Likewise.
21256 (CFLAGS-pwritev2.c): Likewise.
21257 (CFLAGS-pwritev64v2.c): Likewise.
21258 (CFLAGS-usleep.c): Likewise.
21259 (CFLAGS-syslog.c): Likewise.
21260 (CFLAGS-error.c): Likewise.
21261 (CFLAGS-getpass.c): Likewise.
21262 (CFLAGS-mkstemp.c): Likewise.
21263 (CFLAGS-mkstemp64.c): Likewise.
21264 (CFLAGS-getsysstats.c): Likewise.
21265 (CFLAGS-getusershell.c): Likewise.
21266 (CFLAGS-err.c): Likewise.
21267 (CFLAGS-tst-tsearch.c): Likewise.
21268 (CFLAGS-msync.c): Likewise.
21269 (CFLAGS-fdatasync.c): Likewise.
21270 (CFLAGS-fsync.c): Likewise.
21271 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
21272 (CFLAGS-unwind.c): Likewise.
21273 (CFLAGS-unwind-forcedunwind.c): Likewise.
21274 (CFLAGS-pthread_cancel.c): Likewise.
21275 (CFLAGS-pthread_setcancelstate.c): Likewise.
21276 (CFLAGS-pthread_setcanceltype.c): Likewise.
21277 (CFLAGS-cancellation.c): Likewise.
21278 (CFLAGS-libc-cancellation.c): Likewise.
21279 (CFLAGS-pthread_exit.c): Likewise.
21280 (CFLAGS-forward.c): Likewise.
21281 (CFLAGS-pthread_testcancel.c): Likewise.
21282 (CFLAGS-pthread_join.c): Likewise.
21283 (CFLAGS-pthread_timedjoin.c): Likewise.
21284 (CFLAGS-pthread_once.c): Likewise.
21285 (CFLAGS-pthread_cond_wait.c): Likewise.
21286 (CFLAGS-sem_wait.c): Likewise.
21287 (CFLAGS-sem_timedwait.c): Likewise.
21288 (CFLAGS-fcntl.c): Likewise.
21289 (CFLAGS-lockf.c): Likewise.
21290 (CFLAGS-pread.c): Likewise.
21291 (CFLAGS-pread64.c): Likewise.
21292 (CFLAGS-pwrite.c): Likewise.
21293 (CFLAGS-pwrite64.c): Likewise.
21294 (CFLAGS-wait.c): Likewise.
21295 (CFLAGS-waitpid.c): Likewise.
21296 (CFLAGS-sigwait.c): Likewise.
21297 (CFLAGS-msgrcv.c): Likewise.
21298 (CFLAGS-msgsnd.c): Likewise.
21299 (CFLAGS-tcdrain.c): Likewise.
21300 (CFLAGS-open.c): Likewise.
21301 (CFLAGS-open64.c): Likewise.
21302 (CFLAGS-pause.c): Likewise.
21303 (CFLAGS-recv.c): Likewise.
21304 (CFLAGS-send.c): Likewise.
21305 (CFLAGS-accept.c): Likewise.
21306 (CFLAGS-sendto.c): Likewise.
21307 (CFLAGS-connect.c): Likewise.
21308 (CFLAGS-recvfrom.c): Likewise.
21309 (CFLAGS-recvmsg.c): Likewise.
21310 (CFLAGS-sendmsg.c): Likewise.
21311 (CFLAGS-close.c): Likewise.
21312 (CFLAGS-read.c): Likewise.
21313 (CFLAGS-write.c): Likewise.
21314 (CFLAGS-nanosleep.c): Likewise.
21315 (CFLAGS-sigsuspend.c): Likewise.
21316 (CFLAGS-msync.c): Likewise.
21317 (CFLAGS-fdatasync.c): Likewise.
21318 (CFLAGS-fsync.c): Likewise.
21319 (CFLAGS-pt-system.c): Likewise.
21320 (CFLAGS-tst-cleanup2.c): Likewise.
21321 (CFLAGS-tst-cleanupx2.c): Likewise.
21322 (CFLAGS-flockfile.c): Likewise.
21323 (CFLAGS-ftrylockfile.c): Likewise.
21324 (CFLAGS-funlockfile.c): Likewise.
21325 (CFLAGS-tst-initializers1.c): Likewise.
21326 (CFLAGS-tst-initializers1-c89.c): Likewise.
21327 (CFLAGS-tst-initializers1-c99.c): Likewise.
21328 (CFLAGS-tst-initializers1-c11.c): Likewise.
21329 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
21330 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
21331 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
21332 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
21333 (CFLAGS-nscd_getgr_r.c): Likewise.
21334 (CFLAGS-nscd_gethst_r.c): Likewise.
21335 (CFLAGS-nscd_getai.c): Likewise.
21336 (CFLAGS-nscd_initgroups.c): Likewise.
21337 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
21338 (CFLAGS-pause.c): Likewise.
21339 (CFLAGS-pread.c): Likewise.
21340 (CFLAGS-pread64.c): Likewise.
21341 (CFLAGS-pwrite.c): Likewise.
21342 (CFLAGS-pwrite64.c): Likewise.
21343 (CFLAGS-sleep.c): Likewise.
21344 (CFLAGS-wait.c): Likewise.
21345 (CFLAGS-waitid.c): Likewise.
21346 (CFLAGS-waitpid.c): Likewise.
21347 (CFLAGS-getopt.c): Likewise.
21348 (CFLAGS-wordexp.c): Likewise.
21349 (CFLAGS-sysconf.c): Likewise.
21350 (CFLAGS-pathconf.c): Likewise.
21351 (CFLAGS-fpathconf.c): Likewise.
21352 (CFLAGS-spawn.c): Likewise.
21353 (CFLAGS-spawnp.c): Likewise.
21354 (CFLAGS-spawni.c): Likewise.
21355 (CFLAGS-glob.c): Likewise.
21356 (CFLAGS-glob64.c): Likewise.
21357 (CFLAGS-getconf.c): Likewise.
21358 (CFLAGS-nanosleep.c): Likewise.
21359 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
21360 (CFLAGS-getpwent.c): Likewise.
21361 (CFLAGS-getpw.c): Likewise.
21362 (CFLAGS-fgetpwent_r.c): Likewise.
21363 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
21364 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
21365 (CFLAGS-mq_timedreceive.c): Likewise.
21366 (CFLAGS-mq_timedsend.c): Likewise.
21367 (CFLAGS-clock_nanosleep.c): Likewise.
21368 (CFLAGS-librt-cancellation.c): Likewise.
21369 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
21370 (CFLAGS-getspent.c): Likewise.
21371 (CFLAGS-fgetspent.c): Likewise.
21372 (CFLAGS-fgetspent_r.c): Likewise.
21373 (CFLAGS-putspent.c): Likewise.
21374 (CFLAGS-getspnam.c): Likewise.
21375 (CFLAGS-getspnam_r.c): Likewise.
21376 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
21377 (CFLAGS-sigsuspend.c): Likewise.
21378 (CFLAGS-sigtimedwait.c): Likewise.
21379 (CFLAGS-sigwait.c): Likewise.
21380 (CFLAGS-sigwaitinfo.c): Likewise.
21381 (CFLAGS-sigreturn.c): Likewise.
21382 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
21383 (CFLAGS-vfwprintf.c): Likewise.
21384 (CFLAGS-tmpfile.c): Likewise.
21385 (CFLAGS-tmpfile64.c): Likewise.
21386 (CFLAGS-tempname.c): Likewise.
21387 (CFLAGS-psignal.c): Likewise.
21388 (CFLAGS-vprintf.c): Likewise.
21389 (CFLAGS-cuserid.c): Likewise.
21390 (CFLAGS-errlist.c): Likewise.
21391 (CFLAGS-siglist.c): Likewise.
21392 (CFLAGS-scanf15.c): Likewise.
21393 (CFLAGS-scanf17.c): Likewise.
21394 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
21395 (CFLAGS-msort.c): Likewise.
21396 (CFLAGS-qsort.c): Likewise.
21397 (CFLAGS-system.c): Likewise.
21398 (CFLAGS-fmtmsg.c): Likewise.
21399 (CFLAGS-strfmon.c): Likewise.
21400 (CFLAGS-strfmon_l.c): Likewise.
21401 (CFLAGS-strfromd.c): Likewise.
21402 (CFLAGS-strfromf.c): Likewise.
21403 (CFLAGS-strfroml.c): Likewise.
21404 (CFLAGS-tst-bsearch.c): Likewise.
21405 (CFLAGS-tst-qsort.c): Likewise.
21406 (CFLAGS-tst-makecontext2.c): Likewise.
21407 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
21408 (CFLAGS-xnlm_prot.c): Likewise.
21409 (CFLAGS-xrstat.c): Likewise.
21410 (CFLAGS-xyppasswd.c): Likewise.
21411 (CFLAGS-xklm_prot.c): Likewise.
21412 (CFLAGS-xrex.c): Likewise.
21413 (CFLAGS-xsm_inter.c): Likewise.
21414 (CFLAGS-xmount.c): Likewise.
21415 (CFLAGS-xrusers.c): Likewise.
21416 (CFLAGS-xspray.c): Likewise.
21417 (CFLAGS-xnfs_prot.c): Likewise.
21418 (CFLAGS-xrquota.c): Likewise.
21419 (CFLAGS-xkey_prot.c): Likewise.
21420 (CFLAGS-auth_unix.c): Likewise.
21421 (CFLAGS-key_call.c): Likewise.
21422 (CFLAGS-pmap_rmt.c): Likewise.
21423 (CFLAGS-clnt_perr.c): Likewise.
21424 (CFLAGS-openchild.c): Likewise.
21425 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
21426 (CFLAGS-msgsnd.c): Likewise.
21427 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
21428 * time/Makefile (CFLAGS-tzfile.c): Likewise.
21429 (CFLAGS-tzset.c): Likewise.
21430 (CFLAGS-getdate.c): Likewise.
21431 (CFLAGS-test_time.c): Likewise.
21432 (CPPFLAGS-tst-tzname.c): Likewise.
21433 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
21434 (CFLAGS-zic.c): Likewise.
21435 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
21436 (CFLAGS-wcswidth.c): Likewise.
21437 (CFLAGS-wcstol.c): Likewise.
21438 (CFLAGS-wcstoul.c): Likewise.
21439 (CFLAGS-wcstoll.c): Likewise.
21440 (CFLAGS-wcstoull.c): Likewise.
21441 (CFLAGS-wcstod.c): Likewise.
21442 (CFLAGS-wcstold.c): Likewise.
21443 (CFLAGS-wcstof128.c): Likewise.
21444 (CFLAGS-wcstof.c): Likewise.
21445 (CFLAGS-wcstol_l.c): Likewise.
21446 (CFLAGS-wcstoul_l.c): Likewise.
21447 (CFLAGS-wcstoll_l.c): Likewise.
21448 (CFLAGS-wcstoull_l.c): Likewise.
21449 (CFLAGS-wcstod_l.c): Likewise.
21450 (CFLAGS-wcstold_l.c): Likewise.
21451 (CFLAGS-wcstof128_l.c): Likewise.
21452 (CFLAGS-wcstof_l.c): Likewise.
21453 (CPPFLAGS-tst-wchar-h.c): Likewise.
21454 (CPPFLAGS-wcstold_l.c): Likewise.
21455
21456 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
21457
21458 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
21459
21460 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
21461 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21462
21463 * manual/tunables.texi (Hardware Capability Tunables): Document
21464 glibc.tune.cached_memopt.
21465 * sysdeps/powerpc/cpu-features.c: New file.
21466 * sysdeps/powerpc/cpu-features.h: New file.
21467 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
21468 _dl_powerpc_cpu_features.
21469 * sysdeps/powerpc/dl-tunables.list: New file.
21470 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
21471 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
21472 (INIT_ARCH): Initialize use_aligned_memopt.
21473 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
21474 IS_IN(rtld))]: Restrict dl_platform_init availability and
21475 initialize CPU features used by tunables.
21476 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
21477 Add memcpy-power8-cached.
21478 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
21479 __memcpy_power8_cached.
21480 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
21481 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
21482 New file.
21483
21484 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
21485
21486 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
21487 (CFLAGS-noinl-tester.c): Likewise.
21488 (CFLAGS-tst-strlen.c): Likewise.
21489 (CFLAGS-stratcliff.c): Likewise.
21490 (CFLAGS-test-ffs.c): Likewise.
21491 (CFLAGS-tst-inlcall.c): Likewise.
21492 (CFLAGS-tst-xbzero-opt.c): Likewise.
21493 (CFLAGS-memcpy.c): Likewise.
21494 (CFLAGS-wordcopy.c): Likewise.
21495
21496 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
21497
21498 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
21499 Store r15 on stack and add cfi rule.
21500 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
21501 Likewise.
21502
21503 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
21504
21505 [BZ #22577]
21506 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
21507 call.
21508
21509 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21510
21511 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21512 Add s_sinf-sse2 and s_sinf-fma.
21513 (CFLAGS-s_sinf-fma.c): New.
21514 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
21515 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
21516 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
21517
21518 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
21519
21520 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
21521
21522 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21523
21524 [BZ #22568]
21525 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
21526 part of result to imaginary part of argument if it is zero and the
21527 real part of the argument is not finite.
21528 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
21529 of result to real part of argument if it is zero and the imaginary
21530 part of the argument is not finite.
21531
21532 2017-12-07 Mike FABIAN <mfabian@redhat.com>
21533
21534 [BZ #22524]
21535 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
21536 and to the list of locales to be built for testing.
21537 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
21538 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
21539 and build the collation rules upon that.
21540
21541 2017-12-07 Joseph Myers <joseph@codesourcery.com>
21542
21543 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
21544 * manual/math.texi (Mathematics): Document support for _Float32.
21545 * math/Makefile (test-types): Add float32.
21546 * math/Versions (GLIBC_2.27): Add _Float32 functions.
21547 * stdlib/Versions (GLIBC_2.27): Likewise.
21548 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21549 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21550 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21551 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21552 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21553 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21554 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21555 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21556 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21557 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21558 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21559 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21560 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21561 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21562 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21563 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21564 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21565 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21566 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21567 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21568 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21569 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21570 Likewise.
21571 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21572 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21573 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21574 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21575 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21577 Likewise.
21578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21579 Likewise.
21580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21581 Likewise.
21582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21583 Likewise.
21584
21585 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21586 Likewise.
21587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21588 Likewise.
21589 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21590 Likewise.
21591 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21592 Likewise.
21593 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21594 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21595 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21596 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21597 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21598 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21599 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21600 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21601 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21602 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21603 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21604 Likewise.
21605 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21606 Likewise.
21607 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21608 Likewise.
21609 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21610 Likewise.
21611 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21612 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21613 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21614 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21615 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21616 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21617 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21618 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21619
21620 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21621
21622 * stdlib/strtof.c: Include <bits/floatn.h>
21623 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
21624 and later undefine as macro. Define as weak alias if
21625 [!USE_WIDE_CHAR].
21626 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
21627 and later undefine as macro. Define as weak alias if
21628 [USE_WIDE_CHAR].
21629 * stdlib/strtof_l.c: Include <bits/floatn.h>
21630 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
21631 and later undefine as macro. Define as weak alias if
21632 [!USE_WIDE_CHAR].
21633 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
21634 and later undefine as macro. Define as weak alias if
21635 [USE_WIDE_CHAR].
21636
21637 * stdlib/strfromf.c: Include <bits/floatn.h>.
21638 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
21639 and later undefine as macro and define as weak alias.
21640
21641 * math/test-float32.h: New file.
21642
21643 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
21644 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
21645 (libm_alias_float_other_r): Create f32 alias.
21646 (libm_alias_float_r): Use semicolon before call to
21647 libm_alias_float_other_r.
21648
21649 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
21650 second argument to libm_alias_float_other.
21651 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
21652 second argument to libm_alias_float_other.
21653 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
21654 argument to libm_alias_float_other.
21655
21656 [BZ #22561]
21657 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
21658 real part of result for argument 0 + i * NaN.
21659 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
21660 results for tests of 0 + i * NaN.
21661
21662 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21663
21664 * sysdeps/alpha/fpu/libm-test-ulps: Update.
21665
21666 2017-12-06 David S. Miller <davem@davemloft.net>
21667
21668 * sysdeps/sparc/fpu/libm-test-ulps: Update
21669 exp_{downward,towardzero,upward} ulps.
21670
21671 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21672
21673 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
21674 variables static.
21675
21676 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
21677 (Y0_2D): Likewise.
21678 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
21679 (Y0_2D): Likewise.
21680 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
21681 (Y0_2D): Likewise.
21682 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
21683 (Y0_2D): Likewise.
21684
21685 2017-12-06 Mike FABIAN <mfabian@redhat.com>
21686
21687 [BZ #22515]
21688 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
21689 and to the list of locales to be built for testing.
21690 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
21691 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
21692 and build the collation rules upon that.
21693
21694 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
21695
21696 * NEWS: Add sinf to list of optimized functions.
21697
21698 2017-12-06 Joseph Myers <joseph@codesourcery.com>
21699
21700 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
21701 (__HAVE_FLOAT32X): Likewise.
21702 * manual/math.texi (Mathematics): Document support for _Float64
21703 and _Float32x.
21704 * math/Makefile (test-types): Add float64 and float32x.
21705 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
21706 functions.
21707 * stdlib/Versions (GLIBC_2.27): Likewise.
21708 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21709 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21710 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21711 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21712 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21713 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
21714 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
21715 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
21716 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
21717 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21718 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21719 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21720 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21721 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
21722 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
21723 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
21724 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
21725 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
21726 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
21727 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
21728 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
21729 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
21730 Likewise.
21731 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21732 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21733 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21734 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
21735 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
21736 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
21737 Likewise.
21738 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
21739 Likewise.
21740 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
21741 Likewise.
21742 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
21743 Likewise.
21744 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21745 Likewise.
21746 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
21747 Likewise.
21748 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21749 Likewise.
21750 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
21751 Likewise.
21752 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21753 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21754 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21755 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21756 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
21757 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
21758 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21759 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21760 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21761 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21762 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
21763 Likewise.
21764 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
21765 Likewise.
21766 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
21767 Likewise.
21768 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
21769 Likewise.
21770 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
21771 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
21772 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21773 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21774 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21775 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21776 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21777 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21778
21779 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21780
21781 * bits/floatn-common.h: Include <bits/long-double.h>.
21782 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21783 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
21784 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21785 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
21786 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
21787 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
21788 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21789 (__builtin_huge_valf64): Use __builtin_huge_vall.
21790 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21791 (__builtin_inff64): Use __builtin_infl.
21792 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21793 (__builtin_nanf64): Use __builtin_nanl.
21794 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
21795 (__builtin_nansf64): Use __builtin_nansl.
21796
21797 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
21798 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
21799 Carlos O'Donnell <carlos@redhat.com>
21800
21801 * elf/dl-tunables.list: Add elision parameters.
21802 * manual/tunables.texi: Add entries about elision tunable.
21803 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
21804 Add callback functions to dynamically enable/disable elision.
21805 Add multiple callbacks functions to set elision parameters.
21806 Deleted __libc_enable_secure check.
21807 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
21808 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
21809 * configure: Regenerated.
21810 * configure.ac: Option enable_lock_elision was deleted.
21811 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
21812 * config.make.in: Remove references to enable_lock_elision.
21813 * manual/install.texi: Elision configure option was removed.
21814 * INSTALL: Regenerated to remove enable_lock_elision.
21815 * nptl/Makefile:
21816 Disable elision so it can verify error case for destroying a mutex.
21817 * sysdeps/powerpc/nptl/elide.h:
21818 Cleanup ENABLE_LOCK_ELISION check.
21819 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
21820 * sysdeps/s390/configure: Regenerated.
21821 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
21822 * nptl/tst-mutex8.c:
21823 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
21824 * sysdeps/powerpc/powerpc32/sysdep.h:
21825 Deleted all ENABLE_LOCK_ELISION checks.
21826 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
21827 * sysdeps/powerpc/sysdep.h: Likewise.
21828 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
21829 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
21830 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
21831 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
21832 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
21833 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
21834 enable-lock-elision.
21835
21836 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21837
21838 * stdlib/strtod.c: Include <bits/floatn.h>.
21839 (BUILD_DOUBLE): New macro.
21840 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21841 (strtof64): Define and later undefine as macro. Define as weak
21842 alias if [!USE_WIDE_CHAR].
21843 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21844 (wcstof64): Define and later undefine as macro. Define as weak
21845 alias if [USE_WIDE_CHAR].
21846 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21847 (strtof32x): Define and later undefine as macro. Define as weak
21848 alias if [!USE_WIDE_CHAR].
21849 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21850 (wcstof32x): Define and later undefine as macro. Define as weak
21851 alias if [USE_WIDE_CHAR].
21852 * stdlib/strtod_l.c: Include <bits/floatn.h>.
21853 (BUILD_DOUBLE): New macro.
21854 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21855 (strtof64_l): Define and later undefine as macro. Define as weak
21856 alias if [!USE_WIDE_CHAR].
21857 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
21858 (wcstof64_l): Define and later undefine as macro. Define as weak
21859 alias if [USE_WIDE_CHAR].
21860 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21861 (strtof32x_l): Define and later undefine as macro. Define as weak
21862 alias if [!USE_WIDE_CHAR].
21863 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
21864 (wcstof32x_l): Define and later undefine as macro. Define as weak
21865 alias if [USE_WIDE_CHAR].
21866
21867 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21868
21869 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
21870 (reduced): Use ones as double instead of integer.
21871
21872 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
21873
21874 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
21875
21876 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21877
21878 * stdlib/strfromd.c: Include <bits/floatn.h>.
21879 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
21880 and later undefine as macro and define as weak alias.
21881 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
21882 Likewise.
21883
21884 * math/test-float32x.h: New file.
21885 * math/test-float64.h: Likewise.
21886
21887 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
21888 (libm_alias_double_other_r_f64): New macro.
21889 (libm_alias_double_other_r_f32x): Likewise.
21890 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21891 libm_alias_double_other_r_f32x.
21892 (libm_alias_double_r): Use semicolon before call to
21893 libm_alias_double_other_r.
21894 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
21895 <bits/floatn.h>.
21896 (libm_alias_double_other_r_f64): New macro.
21897 (libm_alias_double_other_r_f32x): Likewise.
21898 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
21899 libm_alias_double_other_r_f32x.
21900
21901 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
21902
21903 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
21904 int.
21905 (SINF_FUNC): Likewise. Replace floor with simple casts.
21906
21907 2017-12-05 Mike FABIAN <mfabian@redhat.com>
21908
21909 [BZ #22517]
21910 * localedata/Makefile: Add et_EE.UTF-8 to test-input
21911 and to the list of locales to be built for testing.
21912 * localedata/et_EE.UTF-8.in: New file for testing the collation.
21913 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
21914 and build the collation rules upon that.
21915
21916 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
21917
21918 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
21919 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
21920 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
21921 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
21922 instead of __insn__xxx.
21923 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
21924 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
21925 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
21926 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
21927 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
21928 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
21929
21930 2017-12-05 Florian Weimer <fweimer@redhat.com>
21931
21932 Linux: Implement interfaces for memory protection keys
21933 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
21934 xsignal, xsysconf.
21935 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
21936 * support/xunistd.h (xsysconf): Declare.
21937 * support/xraise.c: New file.
21938 * support/xsigaction.c: Likewise.
21939 * support/xsignal.c: Likewise.
21940 * support/xsysconf.c: Likewise.
21941 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
21942 pkey_set, pkey_get, pkey_mprotect.
21943 [misc] (tests): Add tst-pkey.
21944 (tst-pkey): Link with -lpthread.
21945 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
21946 pkey_free, pkey_set, pkey_get, pkey_mprotect.
21947 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
21948 (PKEY_DISABLE_WRITE): Define.
21949 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
21950 Declare.
21951 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
21952 (SEGV_PKUERR): Add.
21953 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
21954 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
21955 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
21956 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
21957 Add.
21958 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
21959 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
21960 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
21961 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
21962 * sysdeps/unix/sysv/linux/**.abilist: Update.
21963
21964 2017-12-05 Florian Weimer <fweimer@redhat.com>
21965
21966 * support/tst-test_compare.c (subprocess): Use long long instead
21967 of long argument for consistent type width across 32-bit and
21968 64-bit architectures.
21969 (do_test): Adjust expected output.
21970
21971 2017-12-05 Joseph Myers <joseph@codesourcery.com>
21972
21973 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
21974 (cosf): Define using libm_alias_float.
21975 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
21976 (fabsf): Define using libm_alias_float.
21977 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
21978 (fmaf): Define using libm_alias_float.
21979 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
21980 (rintf): Define using libm_alias_float.
21981 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
21982 (sinf): Define using libm_alias_float.
21983 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
21984 <libm-alias-float.h>.
21985 (modff): Define using libm_alias_float.
21986 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
21987 <libm-alias-float.h>.
21988 (logbf): Define using libm_alias_float.
21989 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
21990 <libm-alias-float.h>.
21991 (ceilf): Define using libm_alias_float.
21992 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
21993 <libm-alias-float.h>.
21994 (copysignf): Define using libm_alias_float.
21995 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
21996 <libm-alias-float.h>.
21997 (floorf): Define using libm_alias_float.
21998 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
21999 <libm-alias-float.h>.
22000 (llrintf): Define using libm_alias_float.
22001 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
22002 <libm-alias-float.h>.
22003 (llroundf): Define using libm_alias_float.
22004 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22005 <libm-alias-float.h>.
22006 (lrintf): Define using libm_alias_float.
22007 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22008 <libm-alias-float.h>.
22009 (lroundf): Define using libm_alias_float.
22010 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
22011 <libm-alias-float.h>.
22012 (nearbyintf): Define using libm_alias_float.
22013 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
22014 <libm-alias-float.h>.
22015 (rintf): Define using libm_alias_float.
22016 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
22017 <libm-alias-float.h>.
22018 (roundf): Define using libm_alias_float.
22019 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
22020 <libm-alias-float.h>.
22021 (truncf): Define using libm_alias_float.
22022 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
22023 Include <libm-alias-float.h>.
22024 (ceilf): Define using libm_alias_float.
22025 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
22026 Include <libm-alias-float.h>.
22027 (copysignf): Define using libm_alias_float.
22028 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
22029 Include <libm-alias-float.h>.
22030 (floorf): Define using libm_alias_float.
22031 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
22032 Include <libm-alias-float.h>.
22033 (llrintf): Define using libm_alias_float.
22034 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
22035 Include <libm-alias-float.h>.
22036 (llroundf): Define using libm_alias_float.
22037 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
22038 Include <libm-alias-float.h>.
22039 (logbf): Define using libm_alias_float.
22040 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
22041 Include <libm-alias-float.h>.
22042 (lrintf): Define using libm_alias_float.
22043 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
22044 Include <libm-alias-float.h>.
22045 (lroundf): Define using libm_alias_float.
22046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
22047 Include <libm-alias-float.h>.
22048 (modff): Define using libm_alias_float.
22049 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
22050 Include <libm-alias-float.h>.
22051 (roundf): Define using libm_alias_float.
22052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
22053 Include <libm-alias-float.h>.
22054 (truncf): Define using libm_alias_float.
22055 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
22056 <libm-alias-float.h>.
22057 (llrintf): Define using libm_alias_float.
22058 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22059 <libm-alias-float.h>.
22060 (llroundf): Define using libm_alias_float.
22061 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
22062 <libm-alias-float.h>.
22063 (ceilf): Define using libm_alias_float.
22064 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
22065 <libm-alias-float.h>.
22066 (floorf): Define using libm_alias_float.
22067 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22068 <libm-alias-float.h>.
22069 (llroundf): Define using libm_alias_float.
22070 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22071 <libm-alias-float.h>.
22072 (lroundf): Define using libm_alias_float.
22073 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
22074 <libm-alias-float.h>.
22075 (roundf): Define using libm_alias_float.
22076 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
22077 <libm-alias-float.h>.
22078 (truncf): Define using libm_alias_float.
22079 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22080 <libm-alias-float.h>.
22081 (copysignf): Define using libm_alias_float.
22082 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
22083 <libm-alias-float.h>.
22084 (llrintf): Define using libm_alias_float.
22085 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22086 <libm-alias-float.h>.
22087 (llroundf): Define using libm_alias_float.
22088 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22089 <libm-alias-float.h>.
22090 (lrintf): Define using libm_alias_float.
22091 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22092 <libm-alias-float.h>.
22093 (lroundf): Define using libm_alias_float.
22094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
22095 <libm-alias-float.h>.
22096 (ceilf): Define using libm_alias_float.
22097 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
22098 <libm-alias-float.h>.
22099 (copysignf): Define using libm_alias_float.
22100 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
22101 <libm-alias-float.h>.
22102 (cosf): Define using libm_alias_float.
22103 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
22104 <libm-alias-float.h>.
22105 (floorf): Define using libm_alias_float.
22106 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
22107 <libm-alias-float.h>.
22108 (llrintf): Define using libm_alias_float.
22109 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
22110 <libm-alias-float.h>.
22111 (llroundf): Define using libm_alias_float.
22112 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
22113 <libm-alias-float.h>.
22114 (logbf): Define using libm_alias_float.
22115 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
22116 <libm-alias-float.h>.
22117 (modff): Define using libm_alias_float.
22118 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
22119 <libm-alias-float.h>.
22120 (roundf): Define using libm_alias_float.
22121 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
22122 <libm-alias-float.h>.
22123 (sinf): Define using libm_alias_float.
22124 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
22125 <libm-alias-float.h>.
22126 (truncf): Define using libm_alias_float.
22127 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
22128 <libm-alias-float.h>.
22129 (ceilf): Define using libm_alias_float.
22130 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22131 <libm-alias-float.h>.
22132 (copysignf): Define using libm_alias_float.
22133 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
22134 <libm-alias-float.h>.
22135 (floorf): Define using libm_alias_float.
22136 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22137 <libm-alias-float.h>.
22138 (llrintf): Define using libm_alias_float.
22139 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
22140 <libm-alias-float.h>.
22141 (llroundf): Define using libm_alias_float.
22142 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
22143 <libm-alias-float.h>.
22144 (nearbyintf): Define using libm_alias_float.
22145 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
22146 <libm-alias-float.h>.
22147 (rintf): Define using libm_alias_float.
22148 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
22149 <libm-alias-float.h>.
22150 (roundf): Define using libm_alias_float.
22151 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
22152 <libm-alias-float.h>.
22153 (truncf): Define using libm_alias_float.
22154 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
22155 <libm-alias-float.h>.
22156 (ceilf): Define using libm_alias_float.
22157 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
22158 <libm-alias-float.h>.
22159 (floorf): Define using libm_alias_float.
22160 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22161 <libm-alias-float.h>.
22162 (llroundf): Define using libm_alias_float.
22163 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
22164 <libm-alias-float.h>.
22165 (roundf): Define using libm_alias_float.
22166 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
22167 <libm-alias-float.h>.
22168 (truncf): Define using libm_alias_float.
22169 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22170 <libm-alias-float.h>.
22171 (copysignf): Define using libm_alias_float.
22172 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22173 <libm-alias-float.h>.
22174 (llrintf): Define using libm_alias_float.
22175 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22176 <libm-alias-float.h>.
22177 (llroundf): Define using libm_alias_float.
22178 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
22179 <libm-alias-float.h>.
22180 (cosf): Define using libm_alias_float.
22181 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22182 <libm-alias-float.h>.
22183 (llrintf): Define using libm_alias_float.
22184 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22185 <libm-alias-float.h>.
22186 (llroundf): Define using libm_alias_float.
22187 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
22188 <libm-alias-float.h>.
22189 (sinf): Define using libm_alias_float.
22190
22191 2017-12-04 Florian Weimer <fweimer@redhat.com>
22192
22193 * support/check.h (TEST_COMPARE): Define.
22194 (support_test_compare_failure): Declare.
22195 * support/Makefile (libsupport-routines): Add
22196 support_test_compare_failure.
22197 (tests): Add tst-test_compare.
22198 * support /support_test_compare_failure.c: New file.
22199 * support/tst-test_compare.c: Likewise.
22200
22201 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22202
22203 [BZ #22527]
22204 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
22205 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
22206 available, this rewrite of the collation rules does reproduce
22207 the test file in the same order.
22208
22209 2017-12-04 Mike FABIAN <mfabian@redhat.com>
22210
22211 [BZ #10580]
22212 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
22213 digraphs in the month and day names. Using single code points for
22214 digraphs is deprecated. While there are dedicated Unicode
22215 codepoints, for the digraphs, these are included for backwards
22216 compatibility and modern texts use a sequence of Basic Latin
22217 characters. See: https://www.unicode.org/faq/ligature_digraph.html
22218 This makes the month and day names agree exactly with CLDR now,
22219 CLDR does not use the single code points for the digraphs either.
22220
22221 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
22222
22223 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
22224
22225 2017-12-04 Joseph Myers <joseph@codesourcery.com>
22226
22227 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
22228 of floor.
22229
22230 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
22231
22232 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
22233 Define only for libc.so.
22234
22235 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
22236
22237 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
22238 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
22239 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
22240 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
22241 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22242
22243 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
22244
22245 [BZ #5997]
22246 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
22247
22248 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
22249
22250 [BZ libc/19170]
22251 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
22252 PREINIT_FUNCTION_WEAK is nonzero.
22253 (gmon_initializer): New function. Put procedure label for it in
22254 .init_array section.
22255 (_init): Don't call PREINIT_FUNCTION.
22256 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
22257 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
22258 value when map argument is null.
22259
22260 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
22261 depi instruction from PIC pc-relative sequence.
22262 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
22263 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
22264 (elf_machine_load_address): Likewise.
22265 (elf_machine_runtime_setup): Likewise.
22266
22267 2017-12-02 Joseph Myers <joseph@codesourcery.com>
22268
22269 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
22270 <libm-alias-double.h>.
22271 (logb): Define using libm_alias_double.
22272 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
22273 <libm-alias-double.h>.
22274 (copysign): Define using libm_alias_double.
22275 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
22276 <libm-alias-double.h>.
22277 (llrint): Define using libm_alias_double.
22278 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
22279 <libm-alias-double.h>.
22280 (llround): Define using libm_alias_double.
22281 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
22282 <libm-alias-double.h>.
22283 (lrint): Define using libm_alias_double.
22284 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
22285 <libm-alias-double.h>.
22286 (lround): Define using libm_alias_double.
22287 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
22288 Include <libm-alias-double.h>.
22289 (copysign): Define using libm_alias_double.
22290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
22291 Include <libm-alias-double.h>.
22292 (llrint): Define using libm_alias_double.
22293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
22294 Include <libm-alias-double.h>.
22295 (llround): Define using libm_alias_double.
22296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
22297 <libm-alias-double.h>.
22298 (logb): Define using libm_alias_double.
22299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
22300 Include <libm-alias-double.h>.
22301 (lrint): Define using libm_alias_double.
22302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
22303 Include <libm-alias-double.h>.
22304 (lround): Define using libm_alias_double.
22305 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
22306 <libm-alias-double.h>.
22307 (llrint): Define using libm_alias_double.
22308 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
22309 <libm-alias-double.h>.
22310 (llround): Define using libm_alias_double.
22311 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
22312 <libm-alias-double.h>.
22313 (llround): Define using libm_alias_double.
22314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
22315 <libm-alias-double.h>.
22316 (lround): Define using libm_alias_double.
22317 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
22318 <libm-alias-double.h>.
22319 (copysign): Define using libm_alias_double.
22320 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
22321 <libm-alias-double.h>.
22322 (llrint): Define using libm_alias_double.
22323 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
22324 <libm-alias-double.h>.
22325 (llround): Define using libm_alias_double.
22326 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
22327 <libm-alias-double.h>.
22328 (lrint): Define using libm_alias_double.
22329 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
22330 <libm-alias-double.h>.
22331 (lround): Define using libm_alias_double.
22332 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
22333 <libm-alias-double.h>.
22334 (copysign): Define using libm_alias_double.
22335 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
22336 <libm-alias-double.h>.
22337 (llrint): Define using libm_alias_double.
22338 (lrint): Likewise.
22339 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
22340 <libm-alias-double.h>.
22341 (llround): Define using libm_alias_double.
22342 (lround): Likewise.
22343 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
22344 <libm-alias-double.h>.
22345 (logb): Define using libm_alias_double.
22346 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
22347 <libm-alias-double.h>.
22348 (copysign): Define using libm_alias_double.
22349 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
22350 <libm-alias-double.h>.
22351 (llrint): Define using libm_alias_double.
22352 (lrint): Likewise.
22353 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
22354 <libm-alias-double.h>.
22355 (llround): Define using libm_alias_double.
22356 (lround): Likewise.
22357 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
22358 <libm-alias-double.h>.
22359 (llround): Define using libm_alias_double.
22360 (lround): Likewise.
22361 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
22362 <libm-alias-double.h>.
22363 (copysign): Define using libm_alias_double.
22364 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
22365 <libm-alias-double.h>.
22366 (llrint): Define using libm_alias_double.
22367 (lrint): Likewise.
22368 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
22369 <libm-alias-double.h>.
22370 (llround): Define using libm_alias_double.
22371 (lround): Likewise.
22372 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
22373 <libm-alias-double.h>.
22374 (llrint): Define using libm_alias_double.
22375 (lrint): Likewise.
22376 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
22377 <libm-alias-double.h>.
22378 (llround): Define using libm_alias_double.
22379 (lround): Likewise.
22380
22381 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22382
22383 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
22384 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
22385 compat symbol based on llround.
22386
22387 * sysdeps/powerpc/power7/fpu/s_logb.c
22388 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
22389 symbol based on __logb, not on logb.
22390 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
22391 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22392 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
22393 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
22394
22395 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
22396 (rint): Define using libm_alias_double.
22397 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
22398 <libm-alias-double.h>.
22399 (modf): Define using libm_alias_double.
22400 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
22401 <libm-alias-double.h>.
22402 (ceil): Define using libm_alias_double.
22403 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
22404 <libm-alias-double.h>.
22405 (floor): Define using libm_alias_double.
22406 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
22407 <libm-alias-double.h>.
22408 (nearbyint): Define using libm_alias_double.
22409 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
22410 <libm-alias-double.h>.
22411 (rint): Define using libm_alias_double.
22412 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
22413 <libm-alias-double.h>.
22414 (round): Define using libm_alias_double.
22415 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
22416 <libm-alias-double.h>.
22417 (trunc): Define using libm_alias_double.
22418 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
22419 <libm-alias-double.h>.
22420 (ceil): Define using libm_alias_double.
22421 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
22422 Include <libm-alias-double.h>.
22423 (floor): Define using libm_alias_double.
22424 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
22425 <libm-alias-double.h>.
22426 (modf): Define using libm_alias_double.
22427 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
22428 Include <libm-alias-double.h>.
22429 (round): Define using libm_alias_double.
22430 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
22431 Include <libm-alias-double.h>.
22432 (trunc): Define using libm_alias_double.
22433 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
22434 <libm-alias-double.h>.
22435 (ceil): Define using libm_alias_double.
22436 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
22437 <libm-alias-double.h>.
22438 (floor): Define using libm_alias_double.
22439 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
22440 <libm-alias-double.h>.
22441 (round): Define using libm_alias_double.
22442 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
22443 <libm-alias-double.h>.
22444 (trunc): Define using libm_alias_double.
22445 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
22446 <libm-alias-double.h>.
22447 (ceil): Define using libm_alias_double.
22448 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
22449 <libm-alias-double.h>.
22450 (floor): Define using libm_alias_double.
22451 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
22452 <libm-alias-double.h>.
22453 (modf): Define using libm_alias_double.
22454 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
22455 <libm-alias-double.h>.
22456 (round): Define using libm_alias_double.
22457 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
22458 <libm-alias-double.h>.
22459 (trunc): Define using libm_alias_double.
22460 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
22461 <libm-alias-double.h>.
22462 (ceil): Define using libm_alias_double.
22463 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
22464 <libm-alias-double.h>.
22465 (floor): Define using libm_alias_double.
22466 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
22467 <libm-alias-double.h>.
22468 (nearbyint): Define using libm_alias_double.
22469 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
22470 <libm-alias-double.h>.
22471 (rint): Define using libm_alias_double.
22472 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
22473 <libm-alias-double.h>.
22474 (round): Define using libm_alias_double.
22475 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
22476 <libm-alias-double.h>.
22477 (trunc): Define using libm_alias_double.
22478 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
22479 <libm-alias-double.h>.
22480 (ceil): Define using libm_alias_double.
22481 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
22482 <libm-alias-double.h>.
22483 (floor): Define using libm_alias_double.
22484 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
22485 <libm-alias-double.h>.
22486 (round): Define using libm_alias_double.
22487 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
22488 <libm-alias-double.h>.
22489 (trunc): Define using libm_alias_double.
22490
22491 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
22492 (fabs): Define using libm_alias_double.
22493 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
22494 (fma): Define using libm_alias_double.
22495 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
22496 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
22497 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
22498 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
22499
22500 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22501
22502 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
22503
22504 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
22505 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
22506 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
22507
22508 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
22509 due redirect macro.
22510
22511 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
22512
22513 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
22514
22515 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22516
22517 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
22518 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
22519 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
22520 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
22521
22522 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22523 (libm-sysdep_routines): Add s_nearbyintf-generic and
22524 s_nearbyint-generic.
22525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
22526 New file.
22527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
22528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
22529 Likewise.
22530 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
22531 Likewise.
22532 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
22533 file.
22534 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22535 Likewise.
22536
22537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22538 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
22539 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
22540 file.
22541 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
22542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
22543 Likewise.
22544 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
22545 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
22546 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22547
22548 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22549 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
22550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
22551 file.
22552 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
22553 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
22554 Likewise.
22555 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
22556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
22557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
22558
22559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22560 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
22561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
22562 file.
22563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
22564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
22565 Likewise.
22566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
22567 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
22568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22569
22570 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
22571 (sysdep_calls): New rule.
22572 (sysdep_routines): Use sysdep_calls as base.
22573 (libm-sysdep_routines): Add generic rule for symbols shared with
22574 libc. Add s_copysign-generic and s_copysign-generic objects.
22575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
22576 New file.
22577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
22578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
22579 Likewise.
22580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
22581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
22582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
22583
22584 2017-12-01 Mike FABIAN <mfabian@redhat.com>
22585
22586 [BZ #22519]
22587 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
22588 the list of locales to be built for testing.
22589 * localedata/is_IS.UTF-8.in: New file.
22590 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
22591 on iso14651_t1.
22592
22593 2017-12-01 Joseph Myers <joseph@codesourcery.com>
22594
22595 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
22596 <libm-alias-float.h>.
22597 (fabsf): Define using libm_alias_float.
22598
22599 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22600
22601 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
22602
22603 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22604
22605 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
22606 <libm-alias-float.h>.
22607 (fabsf): Define using libm_alias_float.
22608 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
22609 <libm-alias-float.h>.
22610 (lrintf): Define using libm_alias_float.
22611 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
22612 <libm-alias-float.h>.
22613 (rintf): Define using libm_alias_float.
22614
22615 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
22616 <libm-alias-double.h>.
22617 (fabs): Define using libm_alias_double.
22618 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
22619 <libm-alias-double.h>.
22620 (lrint): Define using libm_alias_double.
22621 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
22622 <libm-alias-double.h>.
22623 (rint): Define using libm_alias_double.
22624
22625 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
22626 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
22627 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
22628 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
22629 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
22630 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
22631 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
22632 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
22633 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
22634 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
22635 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
22636 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
22637 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
22638 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
22639 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
22640 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
22641 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
22642 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
22643 s_atan_template.c.
22644 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
22645 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
22646 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
22647 s_ceil_template.c.
22648 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
22649 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
22650 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
22651 s_cos_template.c.
22652 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
22653 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
22654 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
22655 s_expm1_template.c.
22656 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
22657 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
22658 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
22659 s_fabs_template.c.
22660 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
22661 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
22662 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
22663 s_floor_template.c.
22664 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
22665 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
22666 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
22667 s_frexp_template.c.
22668 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
22669 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
22670 s_lrint_template.c.
22671 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
22672 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
22673 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
22674 s_modf_template.c.
22675 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
22676 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
22677 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
22678 s_nearbyint_template.c.
22679 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
22680 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
22681 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
22682 s_remquo_template.c.
22683 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
22684 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
22685 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
22686 s_rint_template.c.
22687 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
22688 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
22689 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
22690 s_sin_template.c.
22691 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
22692 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
22693 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
22694 s_sincos_template.c.
22695 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
22696 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
22697 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
22698 s_tan_template.c.
22699 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
22700 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
22701 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
22702 s_tanh_template.c.
22703 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
22704 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
22705 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
22706 s_trunc_template.c.
22707 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
22708 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
22709 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
22710 s_atan.c instead of including s_atan.c.
22711 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
22712 s_atanf.c instead of including s_atanf.c.
22713 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
22714 s_atanl.c instead of including s_atanl.c.
22715 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
22716 instead of s_atan.c.
22717 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
22718 instead of s_atanf.c.
22719 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
22720 instead of s_atanl.c.
22721
22722 * scripts/update-copyrights: Do not handle intl/plural.c
22723 specially.
22724
22725 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
22726
22727 [BZ #22432]
22728 * configure.ac (BISON): Require to be present.
22729 * configure: Regenerated.
22730 * intl/Makefile (generated): Add plural.c.
22731 [$(BISON) != no]: Make code unconditional.
22732 (plural.c): Change rule to $(objpfx)plural.c.
22733 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
22734 * intl/plural.c: Remove.
22735 * manual/install.texi (Tools for Compilation): Document bison as
22736 required.
22737 * INSTALL: Regenerated.
22738
22739 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22740
22741 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
22742 <libm-alias-double.h>.
22743 (llrint): Define using libm_alias_double.
22744 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
22745 <libm-alias-float.h>.
22746 (llrintf): Define using libm_alias_float.
22747 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
22748 <libm-alias-ldouble.h>.
22749 (llrintl): Define using libm_alias_ldouble.
22750
22751 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
22752 declare_mgen_alias instead of weak_alias.
22753 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
22754 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
22755 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
22756
22757 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22758
22759 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22760 Add add_n-generic.
22761 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
22762 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
22763 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
22764
22765 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22766 Add submul_1-generic.
22767 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
22768 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
22769 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
22770
22771 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22772 Add addmul_1-generic.
22773 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
22774 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
22775 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
22776
22777 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22778 Add sub_n-generic.
22779 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
22780 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
22781 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
22782
22783 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
22784 Add mul_1-generic.
22785 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
22786 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
22787 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
22788
22789 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22790
22791 According to CLDR, collation rules for Serbian and Bosnian
22792 should be the same as for Croatian.
22793
22794 [BZ #22534]
22795 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
22796 and to the list of locales to be built for testing.
22797 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22798 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
22799 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
22800 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
22801
22802 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22803
22804 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
22805 to make test case pass.
22806 * localedata/hr_HR.UTF-8.in: Add more test strings.
22807
22808 2017-11-30 Mike FABIAN <mfabian@redhat.com>
22809
22810 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
22811
22812 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22813
22814 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
22815 the list of locales to built for testing.
22816 * localedata/hr_HR.UTF-8.in: New file.
22817
22818 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
22819
22820 [BZ #10580]
22821 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
22822 iso14651_t1.
22823 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
22824 CLDR (except use ligatures for the digraphs, CLDR does not use
22825 the ligatures), add first_workday, some fixes in the date and time
22826 formats.
22827 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
22828 for Đ and đ.
22829 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
22830 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
22831 Add int_p_cs_precedes and int_n_cs_precedes.
22832 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
22833 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
22834 LC_MONETARY now).
22835 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
22836 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
22837 name_miss.
22838 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
22839 and lang_lib. Change postal_fmt.
22840
22841 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
22842
22843 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
22844 <setjmp.h>.
22845 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22846 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
22847 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
22848 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
22849 * sysdeps/generic/setjmpP.h: New file.
22850 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
22851 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
22852 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
22853 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
22854 Add jmp_buf-ssp.sym.
22855 (tests): Add tst-saved_mask-1.
22856
22857 2017-11-30 Arjun Shankar <arjun@redhat.com>
22858
22859 [BZ #22375]
22860 CVE-2017-17426
22861 * malloc/malloc.c (__libc_malloc): Use checked_request2size
22862 instead of request2size.
22863
22864 2017-11-30 Joseph Myers <joseph@codesourcery.com>
22865
22866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
22867 (__lllrint): Remove alias.
22868 (lllrint): Likewise.
22869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
22870 (__lllrintf): Likewise.
22871 (lllrintf): Likewise.
22872
22873 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
22874 <libm-alias-float.h>.
22875 (copysignf): Define using libm_alias_float.
22876 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
22877 <libm-alias-float.h>.
22878 (fabsf): Define using libm_alias_float.
22879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22880 Include <libm-alias-float.h>.
22881 (copysignf): Define using libm_alias_float.
22882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
22883 <libm-alias-float.h>.
22884 (fabsf): Define using libm_alias_float.
22885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
22886 <libm-alias-float.h>.
22887 (fdimf): Define using libm_alias_float.
22888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
22889 <libm-alias-float.h>.
22890 (fmaf): Define using libm_alias_float.
22891 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
22892 <libm-alias-float.h>.
22893 (llrintf): Define using libm_alias_float.
22894 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
22895 Include <libm-alias-float.h>.
22896 (nearbyintf): Define using libm_alias_float.
22897 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
22898 <libm-alias-float.h>.
22899 (rintf): Define using libm_alias_float.
22900 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
22901 <libm-alias-float.h>.
22902 (llrintf): Define using libm_alias_float.
22903 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
22904 <libm-alias-float.h>.
22905 (lrintf): Define using libm_alias_float.
22906 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
22907 <libm-alias-float.h>.
22908 (nearbyintf): Define using libm_alias_float.
22909 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
22910 <libm-alias-float.h>.
22911 (rintf): Define using libm_alias_float.
22912 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
22913 <libm-alias-float.h>.
22914 (ceilf): Define using libm_alias_float.
22915 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
22916 <libm-alias-float.h>.
22917 (floorf): Define using libm_alias_float.
22918 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
22919 <libm-alias-float.h>.
22920 (fmaf): Define using libm_alias_float.
22921 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
22922 <libm-alias-float.h>.
22923 (lrintf): Define using libm_alias_float.
22924 (llrintf): Likewise.
22925 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
22926 <libm-alias-float.h>.
22927 (nearbyintf): Define using libm_alias_float.
22928 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
22929 <libm-alias-float.h>.
22930 (rintf): Define using libm_alias_float.
22931 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
22932 <libm-alias-float.h>.
22933 (truncf): Define using libm_alias_float.
22934 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
22935 <libm-alias-float.h>.
22936 (copysignf): Define using libm_alias_float.
22937 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
22938 <libm-alias-float.h>.
22939 (fabsf): Define using libm_alias_float.
22940 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
22941 <libm-alias-float.h>.
22942 (lrintf): Define using libm_alias_float.
22943 (llrintf): Likewise.
22944 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
22945 <libm-alias-float.h>.
22946 (nearbyintf): Define using libm_alias_float.
22947 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
22948 <libm-alias-float.h>.
22949 (rintf): Define using libm_alias_float.
22950
22951 2017-11-29 Joseph Myers <joseph@codesourcery.com>
22952
22953 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
22954 <libm-alias-double.h>.
22955 (copysign): Define using libm_alias_double.
22956 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
22957 <libm-alias-double.h>.
22958 (fabs): Define using libm_alias_double.
22959 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22960 Include <libm-alias-double.h>.
22961 (copysign): Define using libm_alias_double.
22962 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
22963 <libm-alias-double.h>.
22964 (fabs): Define using libm_alias_double.
22965 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
22966 <libm-alias-double.h>.
22967 (fdim): Define using libm_alias_double.
22968 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
22969 <libm-alias-double.h>.
22970 (fma): Define using libm_alias_double.
22971 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
22972 <libm-alias-double.h>.
22973 (llrint): Define using libm_alias_double.
22974 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
22975 Include <libm-alias-double.h>.
22976 (nearbyint): Define using libm_alias_double.
22977 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
22978 <libm-alias-double.h>.
22979 (rint): Define using libm_alias_double.
22980 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
22981 <libm-alias-double.h>.
22982 (fabs): Define using libm_alias_double.
22983 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
22984 <libm-alias-double.h>.
22985 (llrint): Define using libm_alias_double.
22986 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
22987 <libm-alias-double.h>.
22988 (nearbyint): Define using libm_alias_double.
22989 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
22990 <libm-alias-double.h>.
22991 (rint): Define using libm_alias_double.
22992 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
22993 <libm-alias-double.h>.
22994 (ceil): Define using libm_alias_double.
22995 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
22996 <libm-alias-double.h>.
22997 (floor): Define using libm_alias_double.
22998 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
22999 <libm-alias-double.h>.
23000 (fma): Define using libm_alias_double.
23001 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
23002 <libm-alias-double.h>.
23003 (lrint): Define using libm_alias_double.
23004 (llrint): Likewise.
23005 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
23006 <libm-alias-double.h>.
23007 (nearbyint): Define using libm_alias_double.
23008 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
23009 <libm-alias-double.h>.
23010 (rint): Define using libm_alias_double.
23011 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
23012 <libm-alias-double.h>.
23013 (trunc): Define using libm_alias_double.
23014 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
23015 <libm-alias-double.h>.
23016 (copysign): Define using libm_alias_double.
23017 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
23018 <libm-alias-double.h>.
23019 (fabs): Define using libm_alias_double.
23020 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
23021 <libm-alias-double.h>.
23022 (lrint): Define using libm_alias_double.
23023 (llrint): Likewise.
23024 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
23025 <libm-alias-double.h>.
23026 (nearbyint): Define using libm_alias_double.
23027 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
23028 <libm-alias-double.h>.
23029 (rint): Define using libm_alias_double.
23030
23031 [BZ #22229]
23032 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
23033 <math_ldbl_opt.h>.
23034 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
23035
23036 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
23037 SPARC --disable-multi-arch glibc variants.
23038
23039 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
23040 <libm-alias-float.h>.
23041 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23042 if [SHARED].
23043 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
23044 <libm-alias-float.h>.
23045 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23046 if [SHARED].
23047 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
23048 <libm-alias-float.h>.
23049 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23050 if [SHARED].
23051 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
23052 <libm-alias-float.h>.
23053 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23054 if [SHARED].
23055 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
23056 <libm-alias-float.h>.
23057 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23058 if [SHARED].
23059 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
23060 <libm-alias-float.h>.
23061 (ceilf): Define using libm_alias_float.
23062 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
23063 <libm-alias-float.h>.
23064 (floorf): Define using libm_alias_float.
23065 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
23066 <libm-alias-float.h>.
23067 (fmaf): Define using libm_alias_float.
23068 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
23069 <libm-alias-float.h>.
23070 (nearbyintf): Define using libm_alias_float.
23071 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
23072 <libm-alias-float.h>.
23073 (rintf): Define using libm_alias_float.
23074 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
23075 <libm-alias-float.h>.
23076 (truncf): Define using libm_alias_float.
23077 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23078 (copysignf): Define using libm_alias_float.
23079 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
23080 (cosf): Define using libm_alias_float.
23081 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23082 (fabsf): Define using libm_alias_float.
23083 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23084 (fmaxf): Define using libm_alias_float.
23085 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
23086 (fminf): Define using libm_alias_float.
23087 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23088 (llrintf): Define using libm_alias_float.
23089 [!__ILP32__] (lrintf): Likewise.
23090 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
23091 (sincosf): Define using libm_alias_float.
23092 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
23093 (sinf): Define using libm_alias_float.
23094 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23095 (lrintf): Define using libm_alias_float.
23096
23097 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
23098 <libm-alias-double.h>.
23099 (atan): Define using libm_alias_double.
23100 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
23101 <libm-alias-double.h>.
23102 (ceil): Define using libm_alias_double.
23103 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
23104 <libm-alias-double.h>.
23105 (floor): Define using libm_alias_double.
23106 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
23107 <libm-alias-double.h>.
23108 (fma): Define using libm_alias_double.
23109 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
23110 <libm-alias-double.h>.
23111 (nearbyint): Define using libm_alias_double.
23112 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
23113 <libm-alias-double.h>.
23114 (rint): Define using libm_alias_double.
23115 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
23116 <libm-alias-double.h>.
23117 (sin): Define using libm_alias_double.
23118 (cos): Likewise.
23119 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
23120 <libm-alias-double.h>.
23121 (tan): Define using libm_alias_double.
23122 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
23123 <libm-alias-double.h>.
23124 (trunc): Define using libm_alias_double.
23125 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
23126 (copysign): Define using libm_alias_double.
23127 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
23128 (fabs): Define using libm_alias_double.
23129 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
23130 (fmax): Define using libm_alias_double.
23131 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
23132 (fmin): Define using libm_alias_double.
23133 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
23134 (llrint): Define using libm_alias_double.
23135 [!__ILP32__] (lrint): Likewise.
23136 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
23137 (lrint): Define using libm_alias_double.
23138
23139 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23140
23141 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23142 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
23143 objects.
23144 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
23145 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
23146 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
23147 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
23148 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
23149 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23150
23151 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23152 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
23153 objects.
23154 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
23155 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
23156 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
23157 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
23158 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
23159 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23160
23161 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
23162 (libm-sysdep_routines): Add s_nearbyint-generic and
23163 s_nearbyintf-generic objects.
23164 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
23165 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
23166 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
23167 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
23168 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
23169 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
23170
23171 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23172 Add s_finitef-generic and s_finite-generic objects.
23173 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
23174 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
23175 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
23176 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
23177 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
23178 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
23179
23180 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23181 Add s_isinff-generic and s_isinf-generic objects.
23182 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
23183 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
23184 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
23185 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
23186 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
23187 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23188
23189 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
23190 Add s_isnanf-generic and s_isnan-generic objects.
23191 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
23192 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
23193 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
23194 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
23195 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
23196 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23197
23198 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
23199 macro.
23200 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
23201 rule.
23202 (sysdep_routines): Use sysdep_calls as base.
23203 (libm-sysdep_routines): Add generic rule for symbols shared with
23204 libc. Add s_signbit-generic and s_signbitf-generic objects.
23205 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
23206 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
23207 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
23208 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
23209 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
23210 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23211
23212 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23213
23214 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
23215 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
23216 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
23217 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
23218 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
23219 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
23220 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
23221 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
23222 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
23223 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
23224 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
23225 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
23226 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
23227 libm_alias_float_r.
23228 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
23229 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
23230 (logf): Likewise.
23231 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
23232 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
23233 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
23234 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
23235 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
23236 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
23237 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
23238 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
23239 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
23240 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
23241 libm_alias_float.
23242 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
23243 (cosf): Likewise.
23244 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
23245 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
23246 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
23247 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
23248 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
23249 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
23250 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
23251 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
23252 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
23253 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
23254 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
23255 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
23256 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
23257 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
23258 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
23259 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
23260 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
23261 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
23262 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
23263 libm_alias_float.
23264 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
23265 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
23266 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
23267 * sysdeps/ia64/fpu/w_lgammaf_main.c
23268 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
23269 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
23270
23271 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23272 Alexandre Oliva <aoliva@redhat.com>
23273
23274 [BZ #17750]
23275 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
23276 * localedata/fr_CA.UTF-8.in: New file with test data for backward
23277 accents sorting.
23278 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
23279 sorting.
23280 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
23281 * localedata/locales/de_DE (LC_COLLATE): Likewise.
23282 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
23283 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
23284 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
23285 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
23286 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
23287 instead of “ifdef DIACRIT_BACKWARD”.
23288
23289 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23290
23291 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
23292 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
23293 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
23294 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
23295 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
23296 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
23297 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
23298 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
23299 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
23300 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
23301 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
23302 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
23303 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
23304 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
23305 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
23306 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
23307 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
23308 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
23309 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
23310 ($(have-as-vis3) == yes): Remove conditional.
23311 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
23312 Likewise.
23313 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
23314 file.
23315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
23316 file.
23317 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
23318 file.
23319 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
23320 file.
23321 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
23322 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
23323 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
23324 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
23325 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
23326 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
23327 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
23328 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
23329
23330 2017-11-29 Joseph Myers <joseph@codesourcery.com>
23331
23332 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
23333 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
23334 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
23335 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
23336 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
23337 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
23338 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
23339 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
23340 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
23341 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
23342 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
23343 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
23344 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
23345 libm_alias_double_r.
23346 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
23347 (log): Likewise.
23348 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
23349 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
23350 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
23351 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
23352 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
23353 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
23354 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
23355 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
23356 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
23357 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
23358 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
23359 libm_alias_double.
23360 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
23361 (cos): Likewise.
23362 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
23363 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
23364 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
23365 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
23366 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
23367 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
23368 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
23369 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
23370 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
23371 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
23372 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
23373 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
23374 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
23375 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
23376 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
23377 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
23378 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
23379 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
23380 libm_alias_double.
23381 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
23382 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
23383 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
23384 * sysdeps/ia64/fpu/w_lgamma_main.c
23385 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
23386 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
23387
23388 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
23389
23390 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
23391 address of $global$ into %dp register earlier. Use pc-relative
23392 instruction sequence for PIC case.
23393
23394 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23395
23396 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
23397 (asinhf): Define using libm_alias_float.
23398 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
23399 (atanf): Define using libm_alias_float.
23400 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
23401 (cbrtf): Define using libm_alias_float.
23402 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
23403 (ceilf): Define using libm_alias_float.
23404 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
23405 (copysignf): Define using libm_alias_float.
23406 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
23407 (expm1f): Define using libm_alias_float.
23408 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
23409 (fabsf): Define using libm_alias_float.
23410 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
23411 (floorf): Define using libm_alias_float.
23412 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23413 (fmaxf): Define using libm_alias_float.
23414 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
23415 (fminf): Define using libm_alias_float.
23416 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
23417 (frexpf): Define using libm_alias_float.
23418 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
23419 (llrintf): Define using libm_alias_float.
23420 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
23421 (logbf): Define using libm_alias_float.
23422 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
23423 (lrintf): Define using libm_alias_float.
23424 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
23425 (nearbyintf): Define using libm_alias_float.
23426 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
23427 (remquof): Define using libm_alias_float.
23428 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
23429 (rintf): Define using libm_alias_float.
23430 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
23431 (truncf): Define using libm_alias_float.
23432 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
23433 <libm-alias-float.h>.
23434 (exp2f): Define using libm_alias_float, or libm_alias_float_other
23435 if [SHARED].
23436 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
23437 <libm-alias-float.h>.
23438 (expf): Define using libm_alias_float, or libm_alias_float_other
23439 if [SHARED].
23440 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
23441 <libm-alias-float.h>.
23442 (log2f): Define using libm_alias_float, or libm_alias_float_other
23443 if [SHARED].
23444 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
23445 <libm-alias-float.h>.
23446 (logf): Define using libm_alias_float, or libm_alias_float_other
23447 if [SHARED].
23448 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
23449 <libm-alias-float.h>.
23450 (powf): Define using libm_alias_float, or libm_alias_float_other
23451 if [SHARED].
23452 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
23453 <libm-alias-float.h>.
23454 (cosf): Define using libm_alias_float.
23455 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
23456 <libm-alias-float.h>.
23457 (sincosf): Define using libm_alias_float.
23458 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
23459 <libm-alias-float.h>.
23460 (sinf): Define using libm_alias_float.
23461 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
23462 (fmaxf): Define using libm_alias_float.
23463 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
23464 (fminf): Define using libm_alias_float.
23465 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
23466 <libm-alias-float.h>.
23467 (fmaf): Define using libm_alias_float.
23468
23469 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
23470 (asinh): Define using libm_alias_double.
23471 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
23472 (atan): Define using libm_alias_double.
23473 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
23474 (cbrt): Define using libm_alias_double.
23475 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
23476 (ceil): Define using libm_alias_double.
23477 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
23478 (copysign): Define using libm_alias_double.
23479 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
23480 (expm1): Define using libm_alias_double.
23481 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
23482 (fabs): Define using libm_alias_double.
23483 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
23484 (fdim): Define using libm_alias_double.
23485 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
23486 (floor): Define using libm_alias_double.
23487 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
23488 (fmax): Define using libm_alias_double.
23489 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
23490 (fmin): Define using libm_alias_double.
23491 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
23492 (frexp): Define using libm_alias_double.
23493 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
23494 (llrint): Define using libm_alias_double.
23495 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
23496 (logb): Define using libm_alias_double.
23497 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
23498 (lrint): Define using libm_alias_double.
23499 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
23500 (nearbyint): Define using libm_alias_double.
23501 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
23502 (remquo): Define using libm_alias_double.
23503 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
23504 (rint): Define using libm_alias_double.
23505 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
23506 (trunc): Define using libm_alias_double.
23507 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
23508 (fmax): Define using libm_alias_double.
23509 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
23510 (fmin): Define using libm_alias_double.
23511 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
23512 (fma): Define using libm_alias_double.
23513
23514 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
23515
23516 [BZ #22370]
23517 * elf/dl-hwcaps.c (ROUND): Removed.
23518 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
23519 and ELF_NOTE_NEXT_OFFSET.
23520 * elf/dl-load.c (ROUND): Removed.
23521 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23522 * elf/readelflib.c (ROUND): Removed.
23523 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
23524 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
23525 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
23526 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
23527
23528 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23529
23530 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23531 [!__fmaf] (fmaf): Define using libm_alias_float.
23532
23533 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
23534 [!__fma] (fma): Define using libm_alias_double.
23535 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
23536
23537 2017-11-28 Mike FABIAN <mfabian@redhat.com>
23538
23539 [BZ #22336]
23540 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
23541 and implement the collation rules for cs from CLDR on top of that.
23542 * Makefile: Add cs_CZ.UTF-8 to test-input.
23543 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
23544
23545 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
23546
23547 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
23548
23549 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23550 Icarus Sparry <icarus.w.sparry@intel.com>
23551
23552 * benchtests/Makefile:Add BENCHSET to allow subsets of
23553 benchmarks to be run.
23554 * benchtests/README: Add documentation for: Running subsets of
23555 benchmarks.
23556
23557 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
23558
23559 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
23560 range of tests names.
23561
23562 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
23563 result from property and remove "max", min" and "mean" from
23564 required properties based on benchtests/bench-skeleton.c.
23565
23566 2017-11-28 Florian Weimer <fweimer@redhat.com>
23567
23568 [BZ #20826]
23569 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
23570 due to Internet requirement.
23571 * posix/Makefile (tests): Remove tst-getaddrinfo4,
23572 tst-getaddrinfo5.
23573 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
23574
23575 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23576
23577 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23578 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
23579 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23580 (sysdep_routines): Add memset-ultra1.
23581 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
23582 file.
23583 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
23584 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
23585 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
23586 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
23587 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
23588 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
23589 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
23590 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23591
23592 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
23593 file.
23594 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
23595 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
23596 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
23597 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
23598 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
23599 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
23600 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
23601 macro.
23602 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
23603 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
23604 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
23605 (sysdep_routines): Add memcpy-ultra1.
23606 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
23607 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
23608
23609 2017-11-28 Joseph Myers <joseph@codesourcery.com>
23610
23611 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
23612 (cfloat_versions): Take function argument without trailing 'f'.
23613 Call libm_alias_float_other.
23614 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
23615 * sysdeps/alpha/fpu/cargf.c: Likewise.
23616 * sysdeps/alpha/fpu/cimagf.c: Likewise.
23617 * sysdeps/alpha/fpu/conjf.c: Likewise.
23618 * sysdeps/alpha/fpu/crealf.c: Likewise.
23619 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
23620 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
23621 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
23622 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
23623 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
23624 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
23625 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
23626 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
23627 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
23628 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
23629 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
23630 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
23631 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
23632 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
23633 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
23634 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
23635 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
23636 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
23637 (clog10f): Use libm_alias_float_other.
23638 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23639 (ceilf): Define using libm_alias_float.
23640 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
23641 (copysignf): Define using libm_alias_float.
23642 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
23643 (fabsf): Define using libm_alias_float.
23644 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
23645 (floorf): Define using libm_alias_float.
23646 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
23647 (fmaxf): Define using libm_alias_float.
23648 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
23649 (fminf): Define using libm_alias_float.
23650 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23651 (lrintf): Define using libm_alias_float.
23652 (llrintf): Likewise.
23653 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23654 (lroundf): Define using libm_alias_float.
23655 (llroundf): Likewise.
23656 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
23657 (rintf): Define using libm_alias_float.
23658 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
23659 (truncf): Define using libm_alias_float.
23660
23661 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
23662 (ceilf): Define using libm_alias_float.
23663 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
23664 (floorf): Define using libm_alias_float.
23665 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
23666 (fmaf): Define using libm_alias_float.
23667 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
23668 (fmaxf): Define using libm_alias_float.
23669 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
23670 (fminf): Define using libm_alias_float.
23671 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
23672 (llrintf): Define using libm_alias_float.
23673 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
23674 (llroundf): Define using libm_alias_float.
23675 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
23676 (lrintf): Define using libm_alias_float.
23677 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
23678 (lroundf): Define using libm_alias_float.
23679 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
23680 <libm-alias-float.h>.
23681 (nearbyintf): Define using libm_alias_float.
23682 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
23683 (rintf): Define using libm_alias_float.
23684 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
23685 (roundf): Define using libm_alias_float.
23686 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
23687 (truncf): Define using libm_alias_float.
23688
23689 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
23690 (ceil): Define using libm_alias_double.
23691 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
23692 (copysign): Define using libm_alias_double.
23693 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
23694 (fabs): Define using libm_alias_double.
23695 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
23696 (floor): Define using libm_alias_double.
23697 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
23698 (fmax): Define using libm_alias_double.
23699 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
23700 (fmin): Define using libm_alias_double.
23701 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
23702 (lrint): Define using libm_alias_double.
23703 (llrint): Likewise.
23704 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
23705 (lround): Define using libm_alias_double.
23706 (llround): Likewise.
23707 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
23708 (rint): Define using libm_alias_double.
23709 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
23710 (trunc): Define using libm_alias_double.
23711
23712 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
23713 (libm_alias_double_r): Add semicolon after weak_alias call.
23714
23715 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23716
23717 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
23718 (ceil): Define using libm_alias_double.
23719 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
23720 (floor): Define using libm_alias_double.
23721 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
23722 (fma): Define using libm_alias_double.
23723 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
23724 (fmax): Define using libm_alias_double.
23725 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
23726 (fmin): Define using libm_alias_double.
23727 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
23728 (llrint): Define using libm_alias_double.
23729 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
23730 (llround): Define using libm_alias_double.
23731 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
23732 (lrint): Define using libm_alias_double.
23733 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
23734 (lround): Define using libm_alias_double.
23735 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
23736 (nearbyint): Define using libm_alias_double.
23737 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
23738 (rint): Define using libm_alias_double.
23739 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
23740 (round): Define using libm_alias_double.
23741 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
23742 (trunc): Define using libm_alias_double.
23743
23744 2017-11-27 Florian Weimer <fweimer@redhat.com>
23745
23746 * sysdeps/unix/sysv/linux/mlock2.c: New file.
23747 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
23748 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
23749 (tests): Add tst-mlock2.
23750 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
23751 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
23752 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
23753 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
23754 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
23755 for mlock. Document mlock2.
23756
23757 2017-11-27 Joseph Myers <joseph@codesourcery.com>
23758
23759 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
23760 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
23761 Likewise.
23762 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
23763 Likewise.
23764 * sysdeps/x86/Makeconfig: New file.
23765 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
23766 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23767 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
23768 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23769 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23770 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23771 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
23772 Likewise.
23773 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23774 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23775 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23776 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23777 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23778 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
23779 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
23780 * manual/math.texi (Mathematics): Document support for _Float64x.
23781 * math/Versions (GLIBC_2.27): Add _Float64x functions.
23782 * stdlib/Versions (GLIBC_2.27): Likewise.
23783 * wcsmbs/Versions (GLIBC_2.27): Likewise.
23784 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
23785 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
23786 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
23787 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
23788 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
23789 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
23790 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
23791 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
23792 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
23793 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
23794 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
23795 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
23796 Likewise.
23797 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
23798 Likewise.
23799 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
23800 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
23801 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
23802 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
23803 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
23804 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
23805 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
23806 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
23807 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
23808 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
23809 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
23810 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
23811 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
23812 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
23813
23814 2017-11-27 Andreas Schwab <schwab@suse.de>
23815
23816 * elf/Makefile (dl-routines): Add dl-sort-maps.
23817 * elf/dl-sort-maps.c: New file.
23818 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
23819 (_dl_sort_maps): Declare.
23820 * elf/dl-fini.c (_dl_sort_fini): Remove.
23821 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
23822 * elf/dl-close.c (_dl_close_worker): Likewise.
23823 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
23824 open-coding it.
23825 * elf/dl-open.c (dl_open_worker): Likewise.
23826
23827 2017-11-24 Joseph Myers <joseph@codesourcery.com>
23828
23829 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
23830 using libm_alias_float128.
23831 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
23832 Likewise.
23833 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
23834 Likewise.
23835 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
23836 (setpayloadsigf128): Likewise.
23837 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
23838 Likewise.
23839 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
23840 Likewise.
23841
23842 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
23843 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
23844 -mfloat128 to CFLAGS.
23845 ($(foreach
23846 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
23847 Likewise.
23848 (CFLAGS-libm-test-support-float64x.c): New variable.
23849 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
23850 $(f128-loader-link) to gnulib-tests.
23851
23852 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
23853 (libm_alias_float128_other_r): If
23854 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
23855 alias.
23856 (libm_alias_float128_r): Add semicolon after weak_alias call.
23857 * sysdeps/generic/libm-alias-ldouble.h
23858 (libm_alias_ldouble_other_r_f128): New macro.
23859 (libm_alias_ldouble_other_r_f64x): Likewise.
23860 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23861 and libm_alias_ldouble_other_r_f64x.
23862 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
23863 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
23864 (libm_alias_ldouble_other_r_f128): New macro.
23865 (libm_alias_ldouble_other_r_f64x): Likewise.
23866 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
23867 and libm_alias_ldouble_other_r_f64x.
23868
23869 * stdlib/strfroml.c: Always include <stdlib.h>.
23870 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
23871 undefine as macro and define as weak alias.
23872 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
23873 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
23874 <stdlib.h>.
23875 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
23876 Define and later undefine as macro and define as weak alias.
23877
23878 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23879 Define and later undefine as macro. Define as weak alias if
23880 [!USE_WIDE_CHAR].
23881 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
23882 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23883 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
23884 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
23885 Define and later undefine as macro. Define as weak alias if
23886 [!USE_WIDE_CHAR].
23887 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
23888 Define and later undefine as macro. Define as weak alias if
23889 [USE_WIDE_CHAR].
23890 * sysdeps/ieee754/float128/strtof128_l.c
23891 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
23892 Define and later undefine as macro. Define as weak alias if
23893 [!USE_WIDE_CHAR].
23894 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
23895 Define and later undefine as macro. Define as weak alias if
23896 [USE_WIDE_CHAR].
23897 * sysdeps/ieee754/ldbl-128/strtold_l.c
23898 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23899 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23900 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23901 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23902 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
23903 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23904 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23905 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23906 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23907 * sysdeps/ieee754/ldbl-96/strtold_l.c
23908 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
23909 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
23910 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
23911 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
23912
23913 * math/test-float64x.h: New file.
23914 * math/Makefile (type-float64x-yes): New variable.
23915 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
23916
23917 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
23918 function-like macro.
23919 (min_of_type_): Likewise.
23920 (min_of_type_l): Likewise.
23921 (min_of_type_f128): Likewise.
23922 (min_of_type): Pass () as last argument of __MATH_TG.
23923
23924 * stdlib/tst-strtod-round-skeleton.c
23925 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
23926 headers.
23927
23928 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
23929 for combinations of long double with _Float64 and _Float64x.
23930
23931 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
23932 (__DECL_SIMD_cosf32): Likewise.
23933 (__DECL_SIMD_cosf64): Likewise.
23934 (__DECL_SIMD_cosf32x): Likewise.
23935 (__DECL_SIMD_cosf64x): Likewise.
23936 (__DECL_SIMD_cosf128x): Likewise.
23937 (__DECL_SIMD_sinf16): Likewise.
23938 (__DECL_SIMD_sinf32): Likewise.
23939 (__DECL_SIMD_sinf64): Likewise.
23940 (__DECL_SIMD_sinf32x): Likewise.
23941 (__DECL_SIMD_sinf64x): Likewise.
23942 (__DECL_SIMD_sinf128x): Likewise.
23943 (__DECL_SIMD_sincosf16): Likewise.
23944 (__DECL_SIMD_sincosf32): Likewise.
23945 (__DECL_SIMD_sincosf64): Likewise.
23946 (__DECL_SIMD_sincosf32x): Likewise.
23947 (__DECL_SIMD_sincosf64x): Likewise.
23948 (__DECL_SIMD_sincosf128x): Likewise.
23949 (__DECL_SIMD_logf16): Likewise.
23950 (__DECL_SIMD_logf32): Likewise.
23951 (__DECL_SIMD_logf64): Likewise.
23952 (__DECL_SIMD_logf32x): Likewise.
23953 (__DECL_SIMD_logf64x): Likewise.
23954 (__DECL_SIMD_logf128x): Likewise.
23955 (__DECL_SIMD_expf16): Likewise.
23956 (__DECL_SIMD_expf32): Likewise.
23957 (__DECL_SIMD_expf64): Likewise.
23958 (__DECL_SIMD_expf32x): Likewise.
23959 (__DECL_SIMD_expf64x): Likewise.
23960 (__DECL_SIMD_expf128x): Likewise.
23961 (__DECL_SIMD_powf16): Likewise.
23962 (__DECL_SIMD_powf32): Likewise.
23963 (__DECL_SIMD_powf64): Likewise.
23964 (__DECL_SIMD_powf32x): Likewise.
23965 (__DECL_SIMD_powf64x): Likewise.
23966 (__DECL_SIMD_powf128x): Likewise.
23967
23968 * stdlib/Versions (libc): Move entries for wcstof128 and
23969 wcstof128_l to ....
23970 * wcsmbs/Versions (libc): ... here.
23971 Include <float128-abi.h>.
23972
23973 2017-11-24 Florian Weimer <fweimer@redhat.com>
23974
23975 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23976 bits/mman-shared.h.
23977 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
23978 <bits/mman-shared.h>.
23979 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
23980 to ...
23981 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
23982 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
23983 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
23984 <bits/mman-shared.h>.
23985
23986 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23987
23988 [BZ #22457]
23989 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
23990 posix_memalign/free.
23991 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
23992
23993 2017-11-22 Mike FABIAN <mfabian@redhat.com>
23994
23995 [BZ #22469]
23996 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
23997 and implement the collation rules for pl from CLDR on top of that.
23998 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
23999 of locales to be built for testing.
24000 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
24001
24002 2017-11-23 Joseph Myers <joseph@codesourcery.com>
24003
24004 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
24005 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
24006 libm_alias_ldouble_other.
24007 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
24008 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
24009 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
24010 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
24011 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
24012 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
24013 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
24014 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
24015 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
24016 libm_alias_ldouble_r.
24017 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
24018 libm_alias_ldouble_other.
24019 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
24020 (log10l): Likewise.
24021 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
24022 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
24023 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
24024 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
24025 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
24026 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
24027 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
24028 (atan2l): Likewise.
24029 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
24030 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
24031 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
24032 libm_alias_ldouble.
24033 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
24034 (cosl): Likewise.
24035 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
24036 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
24037 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
24038 (expl): Likewise.
24039 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
24040 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
24041 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
24042 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
24043 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
24044 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
24045 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
24046 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
24047 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
24048 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
24049 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
24050 libm_alias_ldouble.
24051 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
24052 libm_alias_ldouble_other.
24053 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
24054 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
24055 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
24056 libm_alias_ldouble.
24057 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
24058 libm_alias_ldouble_other.
24059 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
24060 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
24061 * sysdeps/ia64/fpu/w_lgammal_main.c
24062 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
24063 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
24064
24065 2017-11-23 Florian Weimer <fweimer@redhat.com>
24066
24067 * malloc/malloc.c (tcache_thread_shutdown): Rename from
24068 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
24069 alike. Remove freeres marker.
24070 * malloc/arena.c (arena_thread_freeres): Call
24071 tcache_thread_shutdown.
24072
24073 2017-11-23 Florian Weimer <fweimer@redhat.com>
24074
24075 [BZ #22459]
24076 Export nscd hash function as __nss_hash.
24077 * include/nss.h (__nss_hash): Declare.
24078 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
24079 symbol.
24080 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
24081 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
24082 of __nscd_hash.
24083 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
24084 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
24085 * nss/Makefiles (routines): Add nss_hash.
24086 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
24087 * nss/nss_hash.c: Rename from nis/nis_hash.c.
24088 (__nss_hash): Rename from __nis_hash. Define hidden alias.
24089 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
24090
24091 2017-11-23 Florian Weimer <fweimer@redhat.com>
24092
24093 [BZ #22478]
24094 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
24095 Return error code, not -1.
24096 * signal/tst-sigwait-eintr.c: New file.
24097 * signal/Makefile (tests): Add tst-sigwait-eintr.
24098
24099 2017-11-23 Florian Weimer <fweimer@redhat.com>
24100
24101 Linux: Add memfd_create system call wrapper
24102 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
24103 tst-memfd_create.
24104 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
24105 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
24106 [__USE_GNU] (memfd_create): Declare.
24107 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
24108 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
24109 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
24110 * sysdeps/unix/sysv/linux/**.abilist: Update.
24111 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
24112
24113 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24114
24115 * localedata/gen-locale.sh: Fix typo in variable name.
24116
24117 * resolv/res_debug.c (p_secstodate): Condition definition on
24118 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
24119 directly as __p_secstodate, and as a compat symbol. Do not use
24120 libresolv_hidden_def.
24121 * resolv/resolv.h (p_secstodate): Remove macro and function
24122 declaration.
24123 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
24124 using p_secstodate.
24125 * include/resolv.h (__p_secstodate): Do not use
24126 libresolv_hidden_proto.
24127 * resolv/Makefile (tests): Move tst-p_secstodate to ....
24128 (tests-internal): ... here.
24129 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
24130 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
24131 and declare and use __p_secstodate and use compat_symbol_reference
24132 in that case.
24133 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
24134 implementation returning 77.
24135
24136 [BZ #22463]
24137 * resolv/res_debug.c: Include <libc-diag.h>.
24138 (p_secstodate): Assert time_t at least as wide as u_long. On
24139 overflow, use integer seconds since the epoch as output, or use
24140 "<overflow>" as output and set errno to EOVERFLOW if integer
24141 seconds since the epoch would be 14 or more characters.
24142 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
24143 for sprintf call.
24144 * resolv/tst-p_secstodate.c: New file.
24145 * resolv/Makefile (tests): Add tst-p_secstodate.
24146 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
24147
24148 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
24149 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
24150 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
24151
24152 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
24153
24154 * posix/regcomp.c (init_word_char): Add comments.
24155
24156 2017-11-22 Joseph Myers <joseph@codesourcery.com>
24157
24158 [BZ #22447]
24159 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
24160 strlen to compute length of ut_user and set trailing NUL byte of
24161 result explicitly.
24162
24163 2017-11-21 Mike FABIAN <mfabian@redhat.com>
24164
24165 [BZ #15537]
24166 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
24167 using “copy "iso14651_t1"” and then implementing the
24168 collation rules for lv from CLDR on top of that.
24169 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
24170 of locales to be built for testing.
24171 * lv_LV.UTF-8.in: New file with test data to test the Latvian
24172 sorting.
24173
24174 2017-11-21 Joseph Myers <joseph@codesourcery.com>
24175
24176 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24177 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
24178 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
24179 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
24180 [__USE_MISC] (MADV_HWPOISON): New macro.
24181 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
24182
24183 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24184
24185 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
24186 -Wmissing-braces on GCC 4.9.
24187
24188 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24189
24190 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
24191 * sysdeps/s390/s390-32/start.S (_start): Likewise
24192 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
24193 (thread_start): Likewise.
24194 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
24195 (thread_start): Likewise.
24196 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
24197 (__makecontext_ret): Likewise.
24198 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
24199 (__makecontext_ret): Likewise.
24200
24201 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
24202
24203 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
24204 __wcschrnul): Remove attribute_hidden.
24205
24206 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
24207
24208 regex: don't assume uint64_t or uint32_t
24209 This avoids -Werror=overflow errors for 32-bit systems in
24210 the 64-bit case. Problem reported by Joseph Myers in:
24211 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
24212 Also, when this code is used in Gnulib it ports to platforms
24213 that lack uint64_t and uint32_t. The C standard doesn't guarantee
24214 them, and on some 32-bit compilers there is no uint64_t.
24215 Problem reported by Gianluigi Tiesi in:
24216 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
24217 * posix/regcomp.c (init_word_char): Don't assume that the types
24218 uint64_t and uint32_t exist. Adapted from Gnulib patch
24219 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
24220 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
24221
24222 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
24223
24224 * sysdeps/aarch64/memset-reg.h: New file.
24225 * sysdeps/aarch64/memset.S: Use it.
24226 (__memset): Rename to MEMSET macro.
24227 [ZVA_MACRO]: Use zva_macro.
24228 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
24229 Add memset_generic and memset_falkor.
24230 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
24231 (__libc_ifunc_impl_list): Add memset ifuncs.
24232 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
24233 local variable zva_size.
24234 * sysdeps/aarch64/multiarch/memset.c: New file.
24235 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
24236 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
24237 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
24238 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
24239 (DCZID_DZP_MASK): New macro.
24240 (DCZID_BS_MASK): Likewise.
24241 (init_cpu_features): Read and set zva_size.
24242 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
24243 (struct cpu_features): New member zva_size.
24244
24245 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
24246 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
24247 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
24248
24249 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
24250 backwards. Fix timing computation.
24251 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
24252 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
24253 on memset by N at a time. Fix timing computation.
24254
24255 2017-11-20 Florian Weimer <fweimer@redhat.com>
24256
24257 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
24258 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
24259
24260 2017-11-19 Florian Weimer <fweimer@redhat.com>
24261
24262 manual: Document mprotect
24263 * manual/memory.texi (Memory Protection): New section.
24264 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
24265 documentation of PROT_* flags and reference the Memory Protection
24266 section instead.
24267
24268 2017-11-19 Florian Weimer <fweimer@redhat.com>
24269
24270 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
24271 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
24272 (Scatter-Gather): ... to here. Remove misleading comment.
24273
24274 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
24275
24276 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
24277 style.
24278
24279 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
24280 when /proc/<pid>/setgroups does not exist.
24281
24282 2017-11-18 Florian Weimer <fweimer@redhat.com>
24283
24284 * sysdeps/unix/sysv/linux/tst-ttyname.c
24285 (become_root_in_mount_ns): Remove.
24286 (do_in_chroot_1): Call support_enter_mount_namespace.
24287 (do_in_chroot_2): Likewise.
24288 (do_test): Call support_become_root early.
24289
24290 2017-11-18 Florian Weimer <fweimer@redhat.com>
24291
24292 * support/namespace.h (support_enter_mount_namespace): Declare.
24293 * support/support_enter_mount_namespace.c: New file.
24294 * support/Makefile (libsupport-routines): Add
24295 support_enter_mount_namespace.
24296
24297 2017-11-18 Florian Weimer <fweimer@redhat.com>
24298
24299 * support/temp_file.c (support_create_temp_directory): Use
24300 test_dir and do not rely on the presence of the XXXXXX suffix.
24301 * support/temp_file.h (support_create_temp_directory): Update
24302 comment.
24303 * support/tst-xreadlink.c (do_test): Adjust.
24304 * support/support_chroot.c (support_chroot_create): Likewise.
24305
24306 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24307
24308 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
24309 macro.
24310 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
24311 htm-no-suspend.
24312
24313 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24314
24315 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24316 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24317 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24318 (ceill): Define using libm_alias_ldouble.
24319 * sysdeps/x86_64/fpu/s_copysignl.S: Include
24320 <libm-alias-ldouble.h>.
24321 (copysignl): Define using libm_alias_ldouble.
24322 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24323 (fabsl): Define using libm_alias_ldouble.
24324 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24325 (floorl): Define using libm_alias_ldouble.
24326 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24327 (fmaxl): Define using libm_alias_ldouble.
24328 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24329 (fminl): Define using libm_alias_ldouble.
24330 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24331 (llrintl): Define using libm_alias_ldouble.
24332 (lrintl): Likewise.
24333 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
24334 <libm-alias-ldouble.h>.
24335 (nearbyintl): Define using libm_alias_ldouble.
24336 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24337 (truncl): Define using libm_alias_ldouble.
24338 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
24339 <libm-alias-ldouble.h>.
24340 (lrintl): Define using libm_alias_ldouble.
24341
24342 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
24343 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
24344 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
24345 (asinhl): Define using libm_alias_ldouble.
24346 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
24347 (atanl): Define using libm_alias_ldouble.
24348 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
24349 (cbrtl): Define using libm_alias_ldouble.
24350 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
24351 (ceill): Define using libm_alias_ldouble.
24352 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
24353 (copysignl): Define using libm_alias_ldouble.
24354 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
24355 (fabsl): Define using libm_alias_ldouble.
24356 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
24357 (floorl): Define using libm_alias_ldouble.
24358 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24359 (fmaxl): Define using libm_alias_ldouble.
24360 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24361 (fminl): Define using libm_alias_ldouble.
24362 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
24363 (frexpl): Define using libm_alias_ldouble.
24364 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
24365 (llrintl): Define using libm_alias_ldouble.
24366 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
24367 (logbl): Define using libm_alias_ldouble.
24368 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
24369 (lrintl): Define using libm_alias_ldouble.
24370 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
24371 (nearbyintl): Define using libm_alias_ldouble.
24372 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
24373 (nextafterl): Define using libm_alias_ldouble.
24374 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
24375 (remquol): Define using libm_alias_ldouble.
24376 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
24377 (rintl): Define using libm_alias_ldouble.
24378 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
24379 (truncl): Define using libm_alias_ldouble.
24380 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
24381 (fmaxl): Define using libm_alias_ldouble.
24382 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
24383 (fminl): Define using libm_alias_ldouble.
24384
24385 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
24386 to C syntax instead of availability and properties of types.
24387 * bits/floatn.h [!__ASSEMBLER]: Likewise.
24388 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
24389 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
24390 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
24391 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
24392 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
24393
24394 2017-11-17 Florian Weimer <fweimer@redhat.com>
24395
24396 support_become_root: Enable file creation in namespaces.
24397 * support/support_become_root.c (setup_mapping): New function.
24398 (support_become_root): Call it.
24399
24400 2017-11-17 Joseph Myers <joseph@codesourcery.com>
24401
24402 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
24403 macro.
24404
24405 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24406
24407 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
24408 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
24409
24410 2017-11-16 Joseph Myers <joseph@codesourcery.com>
24411
24412 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
24413
24414 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
24415 version to 4.14.
24416
24417 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
24418
24419 * INSTALL: Fix botched up regeneration.
24420
24421 * NEWS: Update sourceare link to https.
24422 * configure.ac: Likewise.
24423 * crypt/md5test-giant.c: Likewise.
24424 * dlfcn/bug-atexit1.c: Likewise.
24425 * dlfcn/bug-atexit2.c: Likewise.
24426 * localedata/README: Likewise.
24427 * malloc/tst-mallocfork.c: Likewise.
24428 * manual/install.texi: Likewise.
24429 * nptl/tst-pthread-getattr.c: Likewise.
24430 * stdio-common/tst-fgets.c: Likewise.
24431 * stdio-common/tst-fwrite.c: Likewise.
24432 * sunrpc/Makefile: Likewise.
24433 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
24434 * wcsmbs/tst-mbrtowc2.c: Likewise.
24435 * configure: Regenerate.
24436 * INSTALL: Regenerate.
24437
24438 2017-11-15 Martin Sebor <msebor@redhat.com>
24439
24440 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
24441 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
24442 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
24443
24444 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24445
24446 [BZ #22145]
24447 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
24448 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
24449
24450 [BZ #22145]
24451 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
24452 Defer is_pty check until end of the function.
24453 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
24454
24455 [BZ #22145]
24456 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
24457 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
24458 (ttyname): Likewise.
24459 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
24460 (__ttyname_r): Likewise.
24461
24462 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
24463 int to bool.
24464
24465 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
24466
24467 * manual/terminal.texi (Is It a Terminal):
24468 Mention ENODEV for ttyname and ttyname_r.
24469
24470 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24471
24472 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
24473 constant and macro.
24474
24475 * sysdeps/unix/sysv/linux/bits/mman-linux.h
24476 [__USE_MISC] (MADV_WIPEONFORK): New macro.
24477 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24478 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
24479 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
24480 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
24481
24482 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24483
24484 * signal/sigrelse.c (sigrelse): Optimize implementation.
24485
24486 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
24487 (__sigpause): Rely on __sigsuspend to implement single thread
24488 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
24489
24490 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24491
24492 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
24493 kernel version to 4.14.
24494
24495 2017-11-15 Steve Ellcey <sellcey@cavium.com>
24496
24497 [BZ #22442]
24498 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
24499 Check if ifname is too long.
24500
24501 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
24502
24503 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
24504
24505 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24506
24507 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
24508 was accidentally lost.
24509
24510 2017-11-15 Mike FABIAN <mfabian@redhat.com>
24511
24512 * localedata/locales/az_IR: Add standard copyright header.
24513
24514 2017-11-15 Florian Weimer <fweimer@redhat.com>
24515
24516 [BZ #22439]
24517 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
24518 not just the top one. Output a new "subheaps" statistic.
24519
24520 2017-11-15 Florian Weimer <fweimer@redhat.com>
24521
24522 [BZ #22408]
24523 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
24524 under the per-arena lock.
24525 * malloc/Makefile (tests): Add tst-malloc_info.
24526 (tst-malloc_info): Link with libpthread.
24527 * malloc/tst-malloc_info.c: New file.
24528
24529 2017-11-15 Joseph Myers <joseph@codesourcery.com>
24530
24531 [BZ #21660]
24532 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
24533 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
24534 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
24535 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
24536 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
24537 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
24538 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
24539 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
24540 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
24541 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
24542 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
24543 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
24544 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
24545 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
24546 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
24547 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
24548 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
24549 (__floating_type): Likewise.
24550 (__real_integer_type): Likewise.
24551 (__complex_integer_type): Likewise.
24552 (__expr_is_real): Likewise.
24553 (__tgmath_real_type_sub): Likewise.
24554 (__tgmath_real_type): Likewise.
24555 (__tgmath_complex_type_sub): Likewise.
24556 (__tgmath_complex_type): Likewise.
24557 (__TGMATH_F128): Likewise.
24558 (__TGMATH_CF128): Likewise.
24559 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
24560 new macros.
24561 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
24562 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
24563 Likewise.
24564 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
24565 Likewise.
24566 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
24567 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
24568 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
24569 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
24570 Likewise.
24571 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
24572 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
24573 Likewise.
24574 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
24575 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
24576 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
24577 Likewise.
24578 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
24579 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
24580 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
24581 (cimag): Likewise.
24582 (creal): Likewise.
24583
24584 2017-11-14 Joseph Myers <joseph@codesourcery.com>
24585
24586 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
24587 for stpncpy calls for GCC 8.
24588 (test_strncat): Disable -Wstringop-truncation warning for strncat
24589 calls for GCC 8. Disable -Wstringop-overflow= warning for one
24590 strncat call for GCC 7.
24591 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
24592 calls for GCC 8.
24593 (test_memcmp): Use memcpy instead of strncpy for calls not copying
24594 trailing NUL.
24595
24596 * string/bug-strncat1.c: Include <libc-diag.h>.
24597 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
24598
24599 2017-11-13 Claude Paroz <claude@2xlibre.net>
24600
24601 [BZ #22387]
24602 * localedata/locales/aa_DJ: Improved readibility by replacing
24603 <Uxxxx> sequences in the ASCII printable range by their ASCII
24604 character equivalents.
24605 * localedata/locales/aa_ER: Likewise.
24606 * localedata/locales/aa_ER@saaho: Likewise.
24607 * localedata/locales/aa_ET: Likewise.
24608 * localedata/locales/af_ZA: Likewise.
24609 * localedata/locales/agr_PE: Likewise.
24610 * localedata/locales/ak_GH: Likewise.
24611 * localedata/locales/am_ET: Likewise.
24612 * localedata/locales/anp_IN: Likewise.
24613 * localedata/locales/ar_AE: Likewise.
24614 * localedata/locales/ar_BH: Likewise.
24615 * localedata/locales/ar_DZ: Likewise.
24616 * localedata/locales/ar_EG: Likewise.
24617 * localedata/locales/ar_IN: Likewise.
24618 * localedata/locales/ar_IQ: Likewise.
24619 * localedata/locales/ar_JO: Likewise.
24620 * localedata/locales/ar_KW: Likewise.
24621 * localedata/locales/ar_LB: Likewise.
24622 * localedata/locales/ar_LY: Likewise.
24623 * localedata/locales/ar_MA: Likewise.
24624 * localedata/locales/ar_OM: Likewise.
24625 * localedata/locales/ar_QA: Likewise.
24626 * localedata/locales/ar_SA: Likewise.
24627 * localedata/locales/ar_SD: Likewise.
24628 * localedata/locales/ar_SS: Likewise.
24629 * localedata/locales/ar_SY: Likewise.
24630 * localedata/locales/ar_TN: Likewise.
24631 * localedata/locales/ar_YE: Likewise.
24632 * localedata/locales/as_IN: Likewise.
24633 * localedata/locales/ast_ES: Likewise.
24634 * localedata/locales/ayc_PE: Likewise.
24635 * localedata/locales/az_AZ: Likewise.
24636 * localedata/locales/az_IR: Likewise.
24637 * localedata/locales/be_BY: Likewise.
24638 * localedata/locales/be_BY@latin: Likewise.
24639 * localedata/locales/bem_ZM: Likewise.
24640 * localedata/locales/ber_DZ: Likewise.
24641 * localedata/locales/ber_MA: Likewise.
24642 * localedata/locales/bg_BG: Likewise.
24643 * localedata/locales/bhb_IN: Likewise.
24644 * localedata/locales/bho_IN: Likewise.
24645 * localedata/locales/bi_VU: Likewise.
24646 * localedata/locales/bn_BD: Likewise.
24647 * localedata/locales/bn_IN: Likewise.
24648 * localedata/locales/bo_CN: Likewise.
24649 * localedata/locales/bo_IN: Likewise.
24650 * localedata/locales/br_FR: Likewise.
24651 * localedata/locales/brx_IN: Likewise.
24652 * localedata/locales/bs_BA: Likewise.
24653 * localedata/locales/byn_ER: Likewise.
24654 * localedata/locales/ca_AD: Likewise.
24655 * localedata/locales/ca_ES: Likewise.
24656 * localedata/locales/ca_FR: Likewise.
24657 * localedata/locales/ca_IT: Likewise.
24658 * localedata/locales/ce_RU: Likewise.
24659 * localedata/locales/chr_US: Likewise.
24660 * localedata/locales/cmn_TW: Likewise.
24661 * localedata/locales/crh_UA: Likewise.
24662 * localedata/locales/cs_CZ: Likewise.
24663 * localedata/locales/csb_PL: Likewise.
24664 * localedata/locales/cv_RU: Likewise.
24665 * localedata/locales/cy_GB: Likewise.
24666 * localedata/locales/da_DK: Likewise.
24667 * localedata/locales/de_AT: Likewise.
24668 * localedata/locales/de_BE: Likewise.
24669 * localedata/locales/de_CH: Likewise.
24670 * localedata/locales/de_DE: Likewise.
24671 * localedata/locales/de_IT: Likewise.
24672 * localedata/locales/de_LI: Likewise.
24673 * localedata/locales/de_LU: Likewise.
24674 * localedata/locales/doi_IN: Likewise.
24675 * localedata/locales/dv_MV: Likewise.
24676 * localedata/locales/dz_BT: Likewise.
24677 * localedata/locales/el_CY: Likewise.
24678 * localedata/locales/el_GR: Likewise.
24679 * localedata/locales/en_AG: Likewise.
24680 * localedata/locales/en_AU: Likewise.
24681 * localedata/locales/en_BW: Likewise.
24682 * localedata/locales/en_CA: Likewise.
24683 * localedata/locales/en_DK: Likewise.
24684 * localedata/locales/en_GB: Likewise.
24685 * localedata/locales/en_HK: Likewise.
24686 * localedata/locales/en_IE: Likewise.
24687 * localedata/locales/en_IL: Likewise.
24688 * localedata/locales/en_IN: Likewise.
24689 * localedata/locales/en_NG: Likewise.
24690 * localedata/locales/en_NZ: Likewise.
24691 * localedata/locales/en_PH: Likewise.
24692 * localedata/locales/en_SG: Likewise.
24693 * localedata/locales/en_US: Likewise.
24694 * localedata/locales/en_ZA: Likewise.
24695 * localedata/locales/en_ZM: Likewise.
24696 * localedata/locales/en_ZW: Likewise.
24697 * localedata/locales/eo: Likewise.
24698 * localedata/locales/es_AR: Likewise.
24699 * localedata/locales/es_BO: Likewise.
24700 * localedata/locales/es_CL: Likewise.
24701 * localedata/locales/es_CO: Likewise.
24702 * localedata/locales/es_CR: Likewise.
24703 * localedata/locales/es_CU: Likewise.
24704 * localedata/locales/es_DO: Likewise.
24705 * localedata/locales/es_EC: Likewise.
24706 * localedata/locales/es_ES: Likewise.
24707 * localedata/locales/es_GT: Likewise.
24708 * localedata/locales/es_HN: Likewise.
24709 * localedata/locales/es_MX: Likewise.
24710 * localedata/locales/es_NI: Likewise.
24711 * localedata/locales/es_PA: Likewise.
24712 * localedata/locales/es_PE: Likewise.
24713 * localedata/locales/es_PR: Likewise.
24714 * localedata/locales/es_PY: Likewise.
24715 * localedata/locales/es_SV: Likewise.
24716 * localedata/locales/es_US: Likewise.
24717 * localedata/locales/es_UY: Likewise.
24718 * localedata/locales/es_VE: Likewise.
24719 * localedata/locales/et_EE: Likewise.
24720 * localedata/locales/eu_ES: Likewise.
24721 * localedata/locales/eu_ES@euro: Likewise.
24722 * localedata/locales/fa_IR: Likewise.
24723 * localedata/locales/ff_SN: Likewise.
24724 * localedata/locales/fi_FI: Likewise.
24725 * localedata/locales/fil_PH: Likewise.
24726 * localedata/locales/fo_FO: Likewise.
24727 * localedata/locales/fr_BE: Likewise.
24728 * localedata/locales/fr_CA: Likewise.
24729 * localedata/locales/fr_CH: Likewise.
24730 * localedata/locales/fr_FR: Likewise.
24731 * localedata/locales/fr_LU: Likewise.
24732 * localedata/locales/fur_IT: Likewise.
24733 * localedata/locales/fy_DE: Likewise.
24734 * localedata/locales/fy_NL: Likewise.
24735 * localedata/locales/ga_IE: Likewise.
24736 * localedata/locales/gd_GB: Likewise.
24737 * localedata/locales/gez_ER: Likewise.
24738 * localedata/locales/gez_ET: Likewise.
24739 * localedata/locales/gl_ES: Likewise.
24740 * localedata/locales/gu_IN: Likewise.
24741 * localedata/locales/gv_GB: Likewise.
24742 * localedata/locales/ha_NG: Likewise.
24743 * localedata/locales/hak_TW: Likewise.
24744 * localedata/locales/he_IL: Likewise.
24745 * localedata/locales/hi_IN: Likewise.
24746 * localedata/locales/hif_FJ: Likewise.
24747 * localedata/locales/hne_IN: Likewise.
24748 * localedata/locales/hr_HR: Likewise.
24749 * localedata/locales/hsb_DE: Likewise.
24750 * localedata/locales/ht_HT: Likewise.
24751 * localedata/locales/hu_HU: Likewise.
24752 * localedata/locales/hy_AM: Likewise.
24753 * localedata/locales/i18n: Likewise.
24754 * localedata/locales/ia_FR: Likewise.
24755 * localedata/locales/id_ID: Likewise.
24756 * localedata/locales/ig_NG: Likewise.
24757 * localedata/locales/ik_CA: Likewise.
24758 * localedata/locales/is_IS: Likewise.
24759 * localedata/locales/it_CH: Likewise.
24760 * localedata/locales/it_IT: Likewise.
24761 * localedata/locales/iu_CA: Likewise.
24762 * localedata/locales/ja_JP: Likewise.
24763 * localedata/locales/ka_GE: Likewise.
24764 * localedata/locales/kk_KZ: Likewise.
24765 * localedata/locales/kl_GL: Likewise.
24766 * localedata/locales/kn_IN: Likewise.
24767 * localedata/locales/ko_KR: Likewise.
24768 * localedata/locales/kok_IN: Likewise.
24769 * localedata/locales/ks_IN: Likewise.
24770 * localedata/locales/ks_IN@devanagari: Likewise.
24771 * localedata/locales/ku_TR: Likewise.
24772 * localedata/locales/kw_GB: Likewise.
24773 * localedata/locales/ky_KG: Likewise.
24774 * localedata/locales/lb_LU: Likewise.
24775 * localedata/locales/lg_UG: Likewise.
24776 * localedata/locales/li_BE: Likewise.
24777 * localedata/locales/li_NL: Likewise.
24778 * localedata/locales/lij_IT: Likewise.
24779 * localedata/locales/ln_CD: Likewise.
24780 * localedata/locales/lo_LA: Likewise.
24781 * localedata/locales/lt_LT: Likewise.
24782 * localedata/locales/lv_LV: Likewise.
24783 * localedata/locales/lzh_TW: Likewise.
24784 * localedata/locales/mag_IN: Likewise.
24785 * localedata/locales/mai_IN: Likewise.
24786 * localedata/locales/mg_MG: Likewise.
24787 * localedata/locales/mhr_RU: Likewise.
24788 * localedata/locales/mi_NZ: Likewise.
24789 * localedata/locales/mk_MK: Likewise.
24790 * localedata/locales/ml_IN: Likewise.
24791 * localedata/locales/mn_MN: Likewise.
24792 * localedata/locales/mni_IN: Likewise.
24793 * localedata/locales/mr_IN: Likewise.
24794 * localedata/locales/ms_MY: Likewise.
24795 * localedata/locales/mt_MT: Likewise.
24796 * localedata/locales/my_MM: Likewise.
24797 * localedata/locales/nan_TW: Likewise.
24798 * localedata/locales/nan_TW@latin: Likewise.
24799 * localedata/locales/nb_NO: Likewise.
24800 * localedata/locales/nds_DE: Likewise.
24801 * localedata/locales/nds_NL: Likewise.
24802 * localedata/locales/ne_NP: Likewise.
24803 * localedata/locales/nhn_MX: Likewise.
24804 * localedata/locales/niu_NU: Likewise.
24805 * localedata/locales/niu_NZ: Likewise.
24806 * localedata/locales/nl_AW: Likewise.
24807 * localedata/locales/nl_BE: Likewise.
24808 * localedata/locales/nl_NL: Likewise.
24809 * localedata/locales/nn_NO: Likewise.
24810 * localedata/locales/nr_ZA: Likewise.
24811 * localedata/locales/nso_ZA: Likewise.
24812 * localedata/locales/oc_FR: Likewise.
24813 * localedata/locales/om_ET: Likewise.
24814 * localedata/locales/om_KE: Likewise.
24815 * localedata/locales/or_IN: Likewise.
24816 * localedata/locales/os_RU: Likewise.
24817 * localedata/locales/pa_IN: Likewise.
24818 * localedata/locales/pa_PK: Likewise.
24819 * localedata/locales/pap_AW: Likewise.
24820 * localedata/locales/pap_CW: Likewise.
24821 * localedata/locales/pl_PL: Likewise.
24822 * localedata/locales/ps_AF: Likewise.
24823 * localedata/locales/pt_BR: Likewise.
24824 * localedata/locales/pt_PT: Likewise.
24825 * localedata/locales/quz_PE: Likewise.
24826 * localedata/locales/raj_IN: Likewise.
24827 * localedata/locales/ro_RO: Likewise.
24828 * localedata/locales/ru_RU: Likewise.
24829 * localedata/locales/ru_UA: Likewise.
24830 * localedata/locales/rw_RW: Likewise.
24831 * localedata/locales/sa_IN: Likewise.
24832 * localedata/locales/sat_IN: Likewise.
24833 * localedata/locales/sc_IT: Likewise.
24834 * localedata/locales/sd_IN: Likewise.
24835 * localedata/locales/sd_IN@devanagari: Likewise.
24836 * localedata/locales/se_NO: Likewise.
24837 * localedata/locales/sgs_LT: Likewise.
24838 * localedata/locales/shs_CA: Likewise.
24839 * localedata/locales/si_LK: Likewise.
24840 * localedata/locales/sid_ET: Likewise.
24841 * localedata/locales/sk_SK: Likewise.
24842 * localedata/locales/sl_SI: Likewise.
24843 * localedata/locales/sm_WS: Likewise.
24844 * localedata/locales/so_DJ: Likewise.
24845 * localedata/locales/so_ET: Likewise.
24846 * localedata/locales/so_KE: Likewise.
24847 * localedata/locales/so_SO: Likewise.
24848 * localedata/locales/sq_AL: Likewise.
24849 * localedata/locales/sq_MK: Likewise.
24850 * localedata/locales/sr_ME: Likewise.
24851 * localedata/locales/sr_RS: Likewise.
24852 * localedata/locales/sr_RS@latin: Likewise.
24853 * localedata/locales/ss_ZA: Likewise.
24854 * localedata/locales/st_ZA: Likewise.
24855 * localedata/locales/sv_FI: Likewise.
24856 * localedata/locales/sv_SE: Likewise.
24857 * localedata/locales/sw_KE: Likewise.
24858 * localedata/locales/sw_TZ: Likewise.
24859 * localedata/locales/szl_PL: Likewise.
24860 * localedata/locales/ta_IN: Likewise.
24861 * localedata/locales/ta_LK: Likewise.
24862 * localedata/locales/tcy_IN: Likewise.
24863 * localedata/locales/te_IN: Likewise.
24864 * localedata/locales/tg_TJ: Likewise.
24865 * localedata/locales/th_TH: Likewise.
24866 * localedata/locales/the_NP: Likewise.
24867 * localedata/locales/ti_ER: Likewise.
24868 * localedata/locales/ti_ET: Likewise.
24869 * localedata/locales/tig_ER: Likewise.
24870 * localedata/locales/tk_TM: Likewise.
24871 * localedata/locales/tl_PH: Likewise.
24872 * localedata/locales/tn_ZA: Likewise.
24873 * localedata/locales/to_TO: Likewise.
24874 * localedata/locales/tpi_PG: Likewise.
24875 * localedata/locales/tr_CY: Likewise.
24876 * localedata/locales/tr_TR: Likewise.
24877 * localedata/locales/ts_ZA: Likewise.
24878 * localedata/locales/tt_RU: Likewise.
24879 * localedata/locales/tt_RU@iqtelif: Likewise.
24880 * localedata/locales/ug_CN: Likewise.
24881 * localedata/locales/uk_UA: Likewise.
24882 * localedata/locales/unm_US: Likewise.
24883 * localedata/locales/ur_IN: Likewise.
24884 * localedata/locales/ur_PK: Likewise.
24885 * localedata/locales/uz_UZ: Likewise.
24886 * localedata/locales/uz_UZ@cyrillic: Likewise.
24887 * localedata/locales/ve_ZA: Likewise.
24888 * localedata/locales/vi_VN: Likewise.
24889 * localedata/locales/wa_BE: Likewise.
24890 * localedata/locales/wae_CH: Likewise.
24891 * localedata/locales/wal_ET: Likewise.
24892 * localedata/locales/wo_SN: Likewise.
24893 * localedata/locales/xh_ZA: Likewise.
24894 * localedata/locales/yi_US: Likewise.
24895 * localedata/locales/yo_NG: Likewise.
24896 * localedata/locales/yue_HK: Likewise.
24897 * localedata/locales/yuw_PG: Likewise.
24898 * localedata/locales/zh_CN: Likewise.
24899 * localedata/locales/zh_HK: Likewise.
24900 * localedata/locales/zh_SG: Likewise.
24901 * localedata/locales/zh_TW: Likewise.
24902 * localedata/locales/zu_ZA: Likewise.
24903
24904 2017-11-13 Florian Weimer <fweimer@redhat.com>
24905
24906 * support/next_to_fault.h, support/next_to_fault.c: New files.
24907 * support/Makefile (libsupport-routines): Add next_to_fault.
24908 * resolv/tst-inet_pton.c (struct next_to_fault)
24909 (next_to_fault_allocate, next_to_fault_free): Remove.
24910 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
24911
24912 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
24913
24914 * elf/dl-support.c: Include <dl-procruntime.c>.
24915 * include/link.h: Include <link_map.h>.
24916 * sysdeps/generic/dl-procruntime.c: New file.
24917 * sysdeps/generic/link_map.h: Likewise.
24918 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
24919 the writable ld.so namespace.
24920
24921 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
24922
24923 timezone: pacify GCC -Wstringop-truncation
24924 Problem reported by Martin Sebor in:
24925 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
24926 * timezone/zic.c (writezone): Use memcpy, not strncpy.
24927
24928 2017-11-12 Florian Weimer <fweimer@redhat.com>
24929
24930 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
24931 tst-xreadlink.
24932 (tests): Add tst-xreadlink.
24933 * support/support.h (xstrndup): Declare.
24934 * support/xunistd.h (xunlink, xreadlink): Declare.
24935 * support/temp_file.h (support_create_temp_directory): Declare.
24936 * support/temp_file.c (support_create_temp_directory): New function.
24937 * support/support_chroot.c (support_chroot_create): Use it.
24938 * support/xreadlink.c: New file.
24939 * support/xstrndup.c: Likewise.
24940 * support/xunlink.c: Likewise.
24941 * support/tst-xreadlink.c: Likewise.
24942
24943 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
24944
24945 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
24946
24947 2017-11-11 Florian Weimer <fweimer@redhat.com>
24948
24949 [BZ #22409]
24950 [BZ #22412]
24951 * resolv/res_comp.c (printable_string, binary_hnok)
24952 (binary_leading_dash): New functions.
24953 (res_hnok): Reimplement using these functions and ns_name_pton.
24954 (res_ownok): Likewise.
24955 (res_mailok): Reimplement using printable_string, ns_name_pton and
24956 binary_hnok.
24957 (res_dnok): Reimplement using printable_string and ns_name_pton.
24958 * resolv/tst-res_hnok.c (tests): Add additional tests.
24959 (LETTERDIGITS, PRINTABLE): Define.
24960 (do_test): Adjust one_char results.
24961
24962 2017-11-11 Florian Weimer <fweimer@redhat.com>
24963
24964 [BZ #22413]
24965 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
24966 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
24967
24968 2017-11-11 Florian Weimer <fweimer@redhat.com>
24969
24970 * resolv/tst-ns_name_pton.c: New file.
24971 * resolv/Makefile (tests): Add tst-ns_name_pton.
24972 (tst-ns_name_pton): Link against libresolv.
24973
24974 2017-11-11 Florian Weimer <fweimer@redhat.com>
24975
24976 * resolv/tst-res_hnok.c: New file.
24977 * resolv/Makefile (tests): Add tst-res_hnok.
24978 (tst-res_hnok): Link against libresolv.
24979
24980 2017-11-11 Florian Weimer <fweimer@redhat.com>
24981
24982 * resolv/tst-resolv-network.c: Use test framework instead explicit
24983 main function.
24984
24985 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
24986
24987 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
24988 <jmp_buf-macros.h>.
24989 [!_ISOMAC] (STR_HELPER): New.
24990 [!_ISOMAC] (STR): Likewise.
24991 [!_ISOMAC] (TEST_SIZE): Likewise.
24992 [!_ISOMAC] (TEST_ALIGN): Likewise.
24993 [!_ISOMAC] (TEST_OFFSET): Likewise.
24994 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
24995 field offsets of jmp_buf as well as sigjmp_buf.
24996 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
24997 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
24998 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
24999 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
25000 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
25001 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
25002 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
25003 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
25004 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
25005 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
25006 Likewise.
25007 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
25008 Likewise.
25009 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
25010 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
25011 Likewise.
25012 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
25013 Likewise.
25014 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
25015 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
25016 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
25017 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
25018 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
25019 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
25020 Likewise.
25021 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
25022 Likewise.
25023 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
25024 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
25025 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
25026
25027 2017-11-07 Joseph Myers <joseph@codesourcery.com>
25028
25029 * include/float.h
25030 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25031 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
25032 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25033 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
25034 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25035 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
25036 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25037 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
25038 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25039 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
25040 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25041 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
25042 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25043 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
25044 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25045 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
25046 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25047 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
25048 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25049 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
25050 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25051 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
25052 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25053 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
25054 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25055 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
25056 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25057 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
25058 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25059 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
25060 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25061 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
25062 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25063 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
25064 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25065 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
25066 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25067 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
25068 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25069 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
25070 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25071 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
25072 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25073 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
25074 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25075 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
25076 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25077 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
25078 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25079 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
25080 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25081 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
25082 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25083 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
25084 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25085 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
25086 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25087 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
25088 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25089 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
25090 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25091 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
25092 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25093 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
25094 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25095 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
25096 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25097 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
25098 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25099 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
25100 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25101 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
25102 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25103 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
25104 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25105 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
25106 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25107 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
25108 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25109 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
25110 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25111 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
25112 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25113 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
25114 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25115 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
25116 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
25117 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
25118
25119 * stdlib/tst-strtod.h (F16): New macro.
25120 (F32): Likewise.
25121 (F64): Likewise.
25122 (F32X): Likewise.
25123 (F64X): Likewise.
25124 (F128X): Likewise.
25125 (IF_FLOAT16): Likewise.
25126 (IF_FLOAT32): Likewise.
25127 (IF_FLOAT64): Likewise.
25128 (IF_FLOAT32X): Likewise.
25129 (IF_FLOAT64X): Likewise.
25130 (IF_FLOAT128X): Likewise.
25131 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
25132 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
25133 (STRTOD_TEST_FOREACH): Likewise.
25134 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
25135 (CHOOSE_f64): Likewise.
25136 (CHOOSE_f32x): Likewise.
25137 (CHOOSE_f64x): Likewise.
25138
25139 2017-11-07 Andreas Schwab <schwab@suse.de>
25140
25141 * nptl/Makefile (tests-internal): Remove tst-typesizes.
25142
25143 2017-11-07 Mike FABIAN <mfabian@redhat.com>
25144
25145 [BZ #22403]
25146 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
25147 to be escaped.
25148 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
25149 to be escaped.
25150
25151 2017-11-07 Claude Paroz <claude@2xlibre.net>
25152
25153 [BZ #22403]
25154 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
25155 to be escaped.
25156 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
25157 to be escaped.
25158 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
25159 to be escaped.
25160
25161 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25162
25163 [BZ #22298]
25164 * nptl/allocatestack.c (allocate_stack): Check if
25165 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
25166 __PTHREAD_MUTEX_HAVE_PREV is defined.
25167 * nptl/descr.h (pthread): Likewise.
25168 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
25169 Likewise.
25170 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
25171 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
25172 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
25173 * sysdeps/nptl/bits/thread-shared-types.h
25174 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25175 defines.
25176 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
25177 of __WORDSIZE for internal layout.
25178 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
25179 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
25180 instead of __WORDSIZE whether to use an union for __spins and __list
25181 fields.
25182 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
25183 case.
25184 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
25185 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
25186 defines.
25187 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
25188 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25189 Likewise.
25190 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
25191 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25192 Likewise.
25193 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
25194 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25195 Likewise.
25196 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
25197 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25198 Likewise.
25199 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
25200 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25201 Likewise.
25202 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
25203 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25204 Likewise.
25205 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
25206 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25207 Likewise.
25208 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
25209 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25210 Likewise.
25211 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
25212 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25213 Likewise.
25214 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
25215 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25216 Likewise.
25217 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
25218 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25219 Likewise.
25220 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
25221 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25222 Likewise.
25223 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
25224 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25225 Likewise.
25226 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
25227 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
25228 Likewise.
25229
25230 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
25231 New macros.
25232 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
25233 checks for expected input type size.
25234 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
25235 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
25236 Likewise.
25237 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
25238 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
25239 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
25240 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
25241 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
25242 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
25243 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
25244 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
25245 superflous runtime assert check.
25246 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
25247 Likewise.
25248 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
25249 Likewise.
25250 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
25251 Likewise.
25252 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
25253 Likewise.
25254 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
25255 Likewise.
25256 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
25257 Likewise.
25258 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
25259 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
25260 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
25261 Likewise.
25262 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
25263 Likewise.
25264 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
25265 Likewise.
25266 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
25267 Likewise.
25268 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
25269 Likewise.
25270 * nptl/pthread_attr_setinheritsched.c
25271 (__pthread_attr_setinheritsched): Likewise.
25272 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
25273 Likewise.
25274 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
25275 Likewise.
25276 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
25277 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
25278 __old_pthread_attr_setstack): Likewise.
25279 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
25280 Likewise.
25281 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
25282 Likewise.
25283 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
25284 Likewise.
25285 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
25286 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
25287 Likewise.
25288 * nptl/tst-typesizes.c: Remove file.
25289
25290 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
25291 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
25292 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
25293 checks for internal pthread_mutex_t offsets.
25294 * sysdeps/aarch64/nptl/pthread-offsets.h
25295 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
25296 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
25297 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
25298 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
25299 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
25300 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
25301 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
25302 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
25303 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
25304 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
25305 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
25306 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
25307 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
25308 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
25309 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
25310 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
25311 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
25312 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
25313
25314 2017-11-07 Florian Weimer <fweimer@redhat.com>
25315
25316 * bits/mman-linux.h: Move ...
25317 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
25318 comment.
25319 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
25320 outdated comment.
25321
25322 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25323
25324 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
25325 Redefine STRNLEN as __strnlen_power8.
25326
25327 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25328
25329 * signal/sighold.c (sighold): Optimize implementation.
25330
25331 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
25332 __NR_rt_sigqueueinfo.
25333
25334 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
25335 __sigtimedwait.
25336 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
25337 assume __NR_rt_sigtimedwait.
25338 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
25339 and add LIBC_CANCEL_HANDLED for cancellation marking.
25340 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
25341
25342 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25343 (sysdeps_routines): Add memchr_noneon.
25344 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
25345 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
25346 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
25347 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
25348 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
25349 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
25350 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
25351
25352 * sysdeps/arm/arm-ifunc.h: New file.
25353 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
25354 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
25355 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
25356 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
25357 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
25358 (__memcpy_neon): Avoid create hidden alias.
25359 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
25360 (__memcpy_vfp): Likewise.
25361 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
25362 (sysdep_routines): Add memcpy_arm.
25363 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
25364
25365 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
25366
25367 [BZ #22362]
25368 * Makerules (make-link-multidir): New.
25369 * config.make.in (multidir): New.
25370 * configure.ac (libc_cv_multidir): New. AC_SUBST.
25371 * configure: Regenerated.
25372 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
25373 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
25374 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
25375 New target.
25376
25377 2017-11-06 Joseph Myers <joseph@codesourcery.com>
25378
25379 [BZ #22402]
25380 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
25381 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
25382
25383 2017-11-04 Mike FABIAN <mfabian@redhat.com>
25384
25385 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
25386 to be escaped.
25387
25388 2017-11-04 Florian Weimer <fweimer@redhat.com>
25389
25390 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
25391
25392 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25393
25394 * math/math.h [__HAVE_DISTINCT_FLOAT16
25395 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25396 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25397 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25398 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
25399 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
25400 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
25401 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25402 (__MATH_TG_F32): New macro.
25403 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25404 (__MATH_TG_F64X): Likewise.
25405 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
25406 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
25407
25408 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
25409
25410 * po/de.po: Update translations.
25411 * po/ru.po: Likewise.
25412
25413 2017-11-03 Florian Weimer <fweimer@redhat.com>
25414
25415 * manual/filesys.texi (Hard Links): Document linkat.
25416
25417 2017-11-03 Joseph Myers <joseph@codesourcery.com>
25418
25419 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
25420 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
25421 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
25422 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
25423 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25424 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25425 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
25426 the same as _Float128.
25427 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
25428 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
25429 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
25430
25431 * stdlib/stdlib.h
25432 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
25433 Declare.
25434 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
25435 Likewise.
25436 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
25437 Likewise.
25438 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25439 (strtof32x): Likewise.
25440 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25441 (strtof64x): Likewise.
25442 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25443 (strtof128x): Likewise.
25444 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25445 (strfromf16): Likewise.
25446 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25447 (strfromf32): Likewise.
25448 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25449 (strfromf64): Likewise.
25450 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25451 (strfromf32x): Likewise.
25452 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25453 (strfromf64x): Likewise.
25454 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25455 (strfromf128x): Likewise.
25456 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
25457 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
25458 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
25459 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
25460 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
25461 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
25462
25463 2017-11-03 Richard Henderson <rth@twiddle.net>
25464
25465 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
25466
25467 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25468
25469 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
25470
25471 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25472
25473 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
25474 DT_TLSDESC_GOT initialization.
25475 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
25476 (_dl_tlsdesc_resolve_hold): Likewise.
25477 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
25478 (_dl_tlsdesc_resolve_hold): Likewise.
25479 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
25480 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25481
25482 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25483
25484 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
25485
25486 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25487
25488 [BZ #18572]
25489 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
25490 non-lazily for R_ARM_TLS_DESC.
25491
25492 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25493
25494 [BZ #17078]
25495 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
25496 R_ARM_TLS_DESC case.
25497 (elf_machine_lazy_rel): Remove the prelink check.
25498
25499 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25500
25501 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
25502 DT_TLSDESC_GOT initialization.
25503 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
25504 (_dl_tlsdesc_resolve_rela): Likewise.
25505 (_dl_tlsdesc_resolve_hold): Likewise.
25506 (_dl_tlsdesc_undefweak): Remove ldar.
25507 (_dl_tlsdesc_dynamic): Likewise.
25508 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
25509 (_dl_tlsdesc_resolve_rela): Likewise.
25510 (_dl_tlsdesc_resolve_hold): Likewise.
25511 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
25512 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
25513 (_dl_tlsdesc_resolve_rela): Likewise.
25514 (_dl_tlsdesc_resolve_hold): Likewise.
25515
25516 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25517
25518 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
25519 binding and initialization non-lazily for R_AARCH64_TLSDESC.
25520
25521 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25522
25523 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
25524 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
25525
25526 2017-11-02 Joseph Myers <joseph@codesourcery.com>
25527
25528 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
25529 Declare.
25530 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
25531 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
25532 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
25533 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
25534 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
25535 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
25536 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
25537 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
25538 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
25539 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
25540 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
25541
25542 2017-11-02 Mike FABIAN <mfabian@redhat.com>
25543
25544 [BZ #22382]
25545 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
25546 * localedata/locales/tpi_PG: Add standard header.
25547
25548 2017-11-02 Florian Weimer <fweimer@redhat.com>
25549
25550 test-errno-linux: quotactl can fail with EPERM in containers.
25551 * sysdeps/unix/sysv/linux/test-errno-linux.c
25552 (LIST, LIST_FORWARD): New macros.
25553 (check_error_in_list): New function.
25554 (test_wrp_rv): Accept list of permitted error codes.
25555 (test_wrp_rv2): Remove.
25556 (test_wrp): Call test_wrp_rv with list of error codes.
25557 (test_wrp2): Accept list of error codes.
25558 (do_test): Adjust. Allow EPERM for quotactl.
25559
25560 2017-11-02 Florian Weimer <fweimer@redhat.com>
25561
25562 * stdio-common/bug16.c (do_test): Use array_length.
25563 * stdio-common/errlist.c (_sys_nerr): Likewise.
25564 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
25565 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
25566 * stdio-common/psiginfo.c (psiginfo): Use array_length.
25567 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
25568 (do_test): Use array_length.
25569 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
25570 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
25571 * stdio-common/tst-printf-round.c (do_test): Likewise.
25572 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
25573 (CHECK): Use array_length.
25574 * stdio-common/tstdiomisc.c (t3, F): Likewise.
25575 * stdio-common/tstscanf.c (main): Likewise.
25576 * stdio-common/vfprintf.c (process_string_arg): Likewise.
25577
25578 2017-11-02 Florian Weimer <fweimer@redhat.com>
25579
25580 Add array_length and array_end macros.
25581 * include/array_length.h: New file.
25582
25583 2017-11-02 Florian Weimer <fweimer@redhat.com>
25584
25585 [BZ #22332]
25586 * posix/tst-glob-tilde.c (do_noescape): New variable.
25587 (one_test): Process it.
25588 (do_test): Set do_noescape. Add unescaping test case.
25589
25590 2017-11-01 Joseph Myers <joseph@codesourcery.com>
25591
25592 * math/complex.h
25593 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
25594 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
25595 with appropriate macros defined and undefined.
25596 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
25597 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25598 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
25599 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25600 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
25601 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25602 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
25603 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25604 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
25605 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
25606
25607 * math/complex.h
25608 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
25609 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
25610 that for long double. Do not condition define and undefine of
25611 _Mdouble_complex_ on [__CFLOAT128].
25612
25613 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
25614
25615 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25616 of <sysdeps/generic/sysdep.h>.
25617 (ALIGNARG): Removed.
25618 (ASM_SIZE_DIRECTIVE): Likewise.
25619 (ENTRY): Likewise.
25620 (END): Likewise.
25621 (ENTRY_CHK): Likewise.
25622 (END_CHK): Likewise.
25623 (syscall_error): Likewise.
25624 (mcount): Likewise.
25625 (PSEUDO_END): Likewise.
25626 (L): Likewise.
25627 (atom_text_section): Likewise.
25628 * sysdeps/x86/sysdep.h: New file.
25629 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
25630 of <sysdeps/generic/sysdep.h>.
25631 (ALIGNARG): Removed.
25632 (ASM_SIZE_DIRECTIVE): Likewise.
25633 (ENTRY): Likewise.
25634 (END): Likewise.
25635 (ENTRY_CHK): Likewise.
25636 (END_CHK): Likewise.
25637 (syscall_error): Likewise.
25638 (mcount): Likewise.
25639 (PSEUDO_END): Likewise.
25640 (L): Likewise.
25641 (atom_text_section): Likewise.
25642
25643 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
25644
25645 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
25646 category of LC_CTYPE set to "i18n:2012".
25647 * localedata/locales/i18n_ctype: Regenerate.
25648
25649 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
25650
25651 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
25652 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
25653 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
25654 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
25655
25656 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
25657 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
25658 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
25659 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
25660
25661 2017-10-31 Joseph Myers <joseph@codesourcery.com>
25662
25663 * math/complex.h
25664 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
25665 New macro.
25666 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
25667 Likewise.
25668 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
25669 Likewise.
25670 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25671 (CMPLXF32X): Likewise.
25672 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25673 (CMPLXF64X): Likewise.
25674 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
25675 (CMPLXF128X): Likewise.
25676
25677 * math/math.h
25678 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
25679 (__MATH_EVAL_FMT2): Define to add 0.0f.
25680
25681 2017-10-31 Alan Modra <amodra@gmail.com>
25682
25683 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
25684 include sysdep.h.
25685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
25686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
25687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
25688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
25689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
25690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
25691 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
25692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
25693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
25694 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
25695 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
25696 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
25697 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
25698 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
25699 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
25700 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
25701 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
25702 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
25703 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
25704 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
25705 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
25706 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
25707 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
25708 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
25709 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
25710 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
25711 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
25712 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
25713 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
25714 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
25715 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
25716 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
25717 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
25718 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
25719 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
25720 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
25721 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
25722 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
25723 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
25724 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
25725 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
25726 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
25727 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
25728 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
25729 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
25730 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
25731 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
25732 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
25733 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25734 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
25735 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
25736 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
25737 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
25738 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
25739 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
25740 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
25741 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
25742 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
25743 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25744 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25745 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
25746 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
25747 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
25748 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
25749 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
25750 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
25751 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
25752 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
25753 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
25754
25755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
25756 include sysdep.h and math_ldbl_opt.h.
25757
25758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
25759 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
25760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
25761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
25762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
25763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
25764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
25765 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
25766 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
25767 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
25768 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
25769 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
25770 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
25771 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
25772 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
25773 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
25774 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
25775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
25776 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
25777 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
25778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
25779 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
25780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
25781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
25782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
25783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
25784
25785 2017-10-31 Alan Modra <amodra@gmail.com>
25786
25787 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
25788 string/strncase_l.c, not string/strncase.c.
25789 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
25790 (libc_hidden_def): Redefine.
25791
25792 2017-10-31 Alan Modra <amodra@gmail.com>
25793
25794 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
25795 (__STRCMP, STRCMP, __strcasecmp_l): Define.
25796 (__strcasecmp): Don't define.
25797
25798 2017-10-31 Alan Modra <amodra@gmail.com>
25799
25800 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
25801 IS_IN (libc).
25802 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
25803 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
25804 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
25805
25806 2017-10-31 Alan Modra <amodra@gmail.com>
25807
25808 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
25809 USE_AS_STPNCPY.
25810
25811 2017-10-31 Alan Modra <amodra@gmail.com>
25812
25813 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
25814 Redefine only when SHARED.
25815
25816 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25817
25818 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
25819 Include <bits/math-finite.h> with appropriate macros defined and
25820 undefined.
25821 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
25822 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
25823 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
25824 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
25825 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
25826
25827 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
25828 [!_Mlong_double_] (_Mlong_double_): Likewise.
25829 [!_Mfloat16_] (_Mfloat16_): Likewise.
25830 [!_Mfloat32_] (_Mfloat32_): Likewise.
25831 [!_Mfloat64_] (_Mfloat64_): Likewise.
25832 [!_Mfloat128_] (_Mfloat128_): Likewise.
25833 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
25834 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
25835 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
25836 (_Mdouble_): Define without indirection through those macros.
25837 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
25838 [!_Mfloat128_] (_Mfloat128_): Likewise.
25839 [_Mlong_double_] (_Mlong_double_): Likewise.
25840 (_Mdouble_): Define without indirection through those macros.
25841 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
25842 not add -D_Mlong_double_=double.
25843 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
25844 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
25845
25846 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25847
25848 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
25849
25850 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25851
25852 * sysdeps/x86/libc-start.c: Reformat.
25853
25854 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
25855
25856 [BZ #22353]
25857 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
25858 (1): Renamed to ...
25859 (L(Src0)): This.
25860 (L(Src1)): New.
25861 (L(Src2)): Likewise.
25862 (L(1)): Renamed to ...
25863 (L(Src3)): This.
25864
25865 2017-10-30 Joseph Myers <joseph@codesourcery.com>
25866
25867 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
25868 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
25869 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
25870 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
25871 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
25872 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
25873 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
25874 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
25875 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
25876 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
25877 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
25878 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
25879 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
25880 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
25881 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
25882 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
25883 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
25884 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
25885 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
25886 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
25887 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
25888 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
25889 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
25890 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
25891 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
25892 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
25893 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
25894 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
25895 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
25896 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
25897 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
25898 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
25899 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
25900 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
25901 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
25902 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
25903 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
25904 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
25905 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
25906 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
25907 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
25908 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
25909 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
25910 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
25911 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
25912 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
25913 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
25914 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
25915 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
25916 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
25917 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
25918 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
25919 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
25920 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
25921 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
25922 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
25923 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
25924 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
25925 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
25926 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
25927 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
25928 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
25929 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
25930 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
25931 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
25932 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
25933
25934 2017-10-30 Florian Weimer <fweimer@redhat.com>
25935
25936 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
25937 always defined.
25938 * io/tst-mkdirat.c (do_test): Likewise.
25939 * io/tst-mkfifoat.c (do_test): Likewise.
25940 * io/tst-mknodat.c (do_test): Likewise.
25941 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
25942 * locale/programs/locale.c (select_dirs): Likewise.
25943 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
25944 * posix/bug-glob2.c (my_readdir): Likewise.
25945 * posix/tst-dir.c (main): Likewise.
25946 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
25947 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
25948
25949 2017-10-30 Florian Weimer <fweimer@redhat.com>
25950
25951 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
25952 just __USE_GNU.
25953
25954 2017-10-30 Florian Weimer <fweimer@redhat.com>
25955
25956 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
25957 Convert to support/test-driver.c.
25958 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
25959 New macro parameters.
25960 (PRINTF): Remove macro. Use test_verbose conditionals instead.
25961 * posix/tst-gnuglob.c: New file.
25962 * posix/tst-gnuglob64.c: Likewise.
25963 * posix/Makefile (tests): Add tst-gnuglob64.
25964
25965 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
25966
25967 [BZ #19485]
25968 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
25969 and use a better translation for March in “mon”.
25970 * localedata/locales/csb_PL: Use more ASCII to improve the
25971 readability of the source.
25972
25973 2017-10-30 Mike FABIAN <mfabian@redhat.com>
25974
25975 [BZ #13953]
25976 * localedata/locales/km_KH: Use ASCII as much
25977 as possible for better readability of the source and
25978 remove useless comments.
25979 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
25980 was commented out and apparently wrong anyway because it was
25981 using Lao characters. If Buddhist era should be used
25982 for km_KH, a native speaker should write the correct formaat
25983 for Khmer.
25984 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
25985 (According to CLDR, the first weekday for Cambodia is Sunday).
25986 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
25987 (These were using Lao characters which must be wrong. If we get
25988 the correct data from a native speaker, we could add it back, until
25989 then it is better not to have name_mr and name_mrs at all than
25990 having it wrong).
25991
25992 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
25993
25994 * locale/loadlocale.c: Correct size of
25995 _nl_value_type_LC_<category> arrays.
25996
25997 2017-10-27 Joseph Myers <joseph@codesourcery.com>
25998
25999 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
26000 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
26001 with appropriate macros defined and undefined.
26002 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
26003 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
26004 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
26005 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
26006 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
26007
26008 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
26009
26010 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
26011 "-O2 -march=i586".
26012
26013 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26014
26015 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
26016 with lowercase letters to make it agree with CLDR.
26017
26018 2017-10-27 Mike FABIAN <mfabian@redhat.com>
26019
26020 [BZ #15260]
26021 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
26022 first letters of yesstr and nostr in yesexpr and noexpr,
26023 not for the full words.
26024 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26025 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
26026 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
26027 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
26028 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
26029 first letters of yesstr and nostr in yesexpr and noexpr,
26030 until now only English was matched in yesexpr and noexpr.
26031 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
26032 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
26033 fil but not for tl. As tl and fil are very similar, using fil
26034 is probably better than using English.
26035
26036 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
26037
26038 [BZ #21706]
26039 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
26040 in yesstr and nostr.
26041
26042 2017-10-26 Joseph Myers <joseph@codesourcery.com>
26043
26044 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26045 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
26046 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
26047 Likewise.
26048 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
26049 Likewise.
26050 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
26051 Likewise.
26052 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
26053 Likewise.
26054 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26055 (SNANF128X): Likewise.
26056
26057 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
26058 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
26059 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26060 (HUGE_VAL_F32): Likewise.
26061 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26062 (HUGE_VAL_F64): Likewise.
26063 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26064 (HUGE_VAL_F32X): Likewise.
26065 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26066 (HUGE_VAL_F64X): Likewise.
26067 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
26068 (HUGE_VAL_F128X): Likewise.
26069
26070 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26071
26072 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
26073 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
26074 for the br_FR locale.
26075
26076 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
26077
26078 [BZ #21706]
26079 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
26080
26081 2017-10-25 Carlos O'Donell <carlos@redhat.com>
26082
26083 * locale/programs/record-status.h: Define globals, and function
26084 prototypes. Move function bodies...
26085 * locale/programs/record-status.c: ... to here. New file.
26086 * iconv/Makefile (iconv_prog-modules): Add record-status.
26087 * locale/Makefile (lib-modules): Likewise.
26088 * iconv/iconv_prog.c: Remove verbose.
26089 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
26090 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
26091 record a warning about ASCII compatibility.
26092 * locale/programs/ld-monetary.c (monetary_finish): If
26093 warn_int_curr_symbol is true then record a warning about the symbol
26094 not being in our ISO 4217 list.
26095 * locale/programs/locale.c: Include record-status.h. Remove verbose.
26096 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
26097 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
26098 (OPT_NO_WARN): Define.
26099 (OPT_WARN): Define.
26100 (options): Add entry for --no-warnings, and --warnings.
26101 (set_warnings): New function to enable/disable warnings.
26102 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
26103 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
26104 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
26105 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
26106 Pass flags to generate_locale.
26107 (generate_locale): Accept new flag argument and pass it to localedef
26108 invocation.
26109 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
26110 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
26111
26112 * localedata/Makefile (test-input-data): Use full file name.
26113 * localedata/da_DK.in: Rename to...
26114 * localedata/da_DK.ISO-8859-1.in: ...this.
26115 * localedata/de_DE.in: Rename to...
26116 * localedata/de_DE.ISO-8859-1.in: ...this.
26117 * localedata/en_US.in: Rename to...
26118 * localedata/en_US.ISO-8859-1.in: ...this.
26119 * localedata/fr_FR.in: Rename to...
26120 * localedata/fr_FR.UTF-8.in: ... this.
26121 * localedata/hr_HR.in: Rename to...
26122 * localedata/hr_HR.ISO-8859-2.in: ...this.
26123 * localedata/hu_HU.in: Rename to...
26124 * localedata/hu_HU.UTF-8.in: ...this.
26125 * localedata/si_LK.in: Rename to...
26126 * localedata/si_LK.UTF-8.in: ...this.
26127 * localedata/sv_SE.in: Rename to...
26128 * localedata/sv_SE.ISO-8859-1.in: ...this.
26129 * localedata/tr_TR.in: Rename to...
26130 * localedata/tr_TR.UTF-8.in: ...this.
26131 * localedata/uk_UA.in: Rename to...
26132 * localedata/uk_UA.UTF-8.in: ...this.
26133 * localedata/sort-test.sh: Test file is locale name with the
26134 suffix.
26135
26136 * localedata/unicode-gen/Makefile (check_i18n): Rename to
26137 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
26138 file.
26139 * localedata/locales/i18n_ctype: Regenerate.
26140 * localedata/locales/tr_TR: Likewise.
26141 * localedata/locales/translit_circle: Likewise.
26142 * localedata/locales/translit_cjk_compat: Likewise.
26143 * localedata/locales/translit_combining: Likewise.
26144 * localedata/locales/translit_compat: Likewise.
26145 * localedata/locales/translit_font: Likewise.
26146 * localedata/locales/translit_fraction: Likewise.
26147
26148 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26149
26150 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
26151 lxvd2x/stxvd2x with lvx/stvx.
26152 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
26153
26154 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
26155
26156 * include/alloc_buffer.h: Replace "if if " with "if " in
26157 comments.
26158 * sysdeps/mips/memcpy.S: Likkewise.
26159 * sysdeps/mips/memset.S: Likewise.
26160 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
26161 Likewise.
26162 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
26163 Likewise.
26164 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
26165 Likewise.
26166
26167 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26168
26169 [BZ #15261]
26170 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
26171 yesexpr and noexpr.
26172 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26173 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26174 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26175 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26176 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26177 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26178 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26179
26180 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26181
26182 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
26183 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26184 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26185 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26186 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26187 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
26188 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26189 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26190 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26191 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26192 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26193 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26194
26195 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26196
26197 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
26198 as possible for better readability of the source.
26199 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
26200 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
26201 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
26202 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
26203 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
26204 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
26205 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
26206 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
26207 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
26208 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
26209 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
26210 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
26211 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
26212 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
26213 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
26214 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
26215 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
26216 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
26217 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
26218 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
26219 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
26220 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
26221 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
26222 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
26223 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
26224 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
26225 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
26226 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
26227 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
26228 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
26229 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
26230 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
26231 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
26232 * localedata/locales/en_US (LC_MESSAGES): Likewise.
26233 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
26234 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
26235 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
26236 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
26237 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
26238 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
26239 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
26240 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
26241 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
26242 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
26243 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
26244 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
26245 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
26246 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
26247 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
26248 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
26249 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
26250 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
26251 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
26252 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
26253 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
26254 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
26255 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
26256 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
26257 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
26258 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
26259 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
26260 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
26261 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
26262 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
26263 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
26264 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
26265 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
26266 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
26267 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
26268 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
26269 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
26270 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
26271 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
26272 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
26273 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
26274 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
26275 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
26276 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
26277 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
26278 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
26279 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
26280 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
26281 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
26282 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
26283 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
26284 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
26285 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
26286 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
26287 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
26288 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
26289 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
26290 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
26291 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
26292 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
26293 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
26294 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
26295 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
26296 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
26297 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
26298 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
26299 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
26300 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
26301 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
26302 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
26303 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
26304 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
26305 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
26306 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
26307 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
26308 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
26309 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
26310 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
26311 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
26312 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
26313 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
26314 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
26315 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
26316 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
26317 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
26318 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
26319 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
26320 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
26321 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
26322 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
26323 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
26324 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
26325 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
26326 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
26327 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
26328 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
26329 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
26330 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
26331 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
26332 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
26333 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
26334 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
26335 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
26336 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
26337 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
26338 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
26339 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
26340 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
26341 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
26342 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
26343 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
26344 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
26345 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
26346 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
26347 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
26348 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
26349 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
26350 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
26351 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
26352 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
26353 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
26354 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
26355 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
26356 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
26357 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
26358 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
26359 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
26360 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
26361 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
26362 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
26363 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
26364 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
26365 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
26366 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
26367 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
26368 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
26369 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
26370 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
26371 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
26372 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
26373
26374 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26375
26376 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
26377 (Use first letters of yesstr and nostr correctly instead of using
26378 full words).
26379
26380 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26381
26382 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
26383 (Use first letters of yesstr and nostr correctly).
26384
26385 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26386
26387 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
26388 also check for the first characters of yesstr and nostr.
26389 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
26390 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
26391
26392 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26393
26394 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
26395 also check for Chinese characters.
26396
26397 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26398
26399 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
26400 match also for the contents of yesstr and nostr. As the first letter
26401 of yesstr and nostr is equal, checking only for the first letter
26402 is not enough.
26403
26404 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26405
26406 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
26407 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
26408
26409 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26410
26411 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
26412 of main contributor.
26413
26414 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26415
26416 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
26417 instead of using English.
26418
26419 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26420
26421 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
26422 by including the first letters of nostr and yesexpr in the regexp.
26423 Also make it more readable by using ASCII where possible.
26424
26425 2017-10-25 Mike FABIAN <mfabian@redhat.com>
26426
26427 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
26428 the first letter of nostr in the regexp. It agrees with CLDR now.
26429 Also make it more readable by using ASCII where possible.
26430
26431 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26432
26433 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
26434 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
26435 these strings contain a U+17D6 (which somewhat looks like a colon)
26436 instead of a real colon to separate the full words for “yes”
26437 and “no” from the single letter responses.
26438
26439 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26440
26441 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
26442 it agree with CLDR (include the first letter of yesstr).
26443 Also make it more readable by using ASCII where possible.
26444
26445 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26446
26447 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
26448 and improve yesexpr and noexpr. The yesstr and nostr apparently
26449 came from CLDR. And CLDR has a bug there: these strings contain
26450 a U+0903 (which looks like a colon) instead of a real colon
26451 to separate the full words for “yes” and “no” from the single
26452 letter responses.
26453
26454 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26455
26456 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
26457 letters of the full yesstr and nostr in yesexpr and noexpr.
26458
26459 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26460
26461 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
26462 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
26463 * localedata/locales/an_ES: Make source more readable by using ASCII
26464 where possible.
26465
26466 2017-10-24 Mike FABIAN <mfabian@redhat.com>
26467
26468 [BZ #20952]
26469 * localedata/locales/yuw_PG: New file.
26470 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
26471 * locale/iso-639.def: Add Yau (Uruwa).
26472
26473 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26474
26475 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
26476
26477 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
26478
26479 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
26480 (__libc_realloc): Likewise.
26481 (_mid_memalign): Likewise.
26482 (__libc_calloc): Likewise.
26483
26484 2017-10-23 Mike FABIAN <mfabian@redhat.com>
26485
26486 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
26487 by adding the generic +1 and -0 as in all other locales.
26488 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
26489 day names and make it more readable by using ASCII where possible.
26490
26491 2017-10-24 Joseph Myers <joseph@codesourcery.com>
26492
26493 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
26494 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
26495
26496 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26497
26498 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
26499 WNOHANG in waitpid call.
26500
26501 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
26502
26503 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
26504 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
26505
26506 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
26507 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
26508 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
26509 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
26510 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
26511 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
26512 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
26513 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
26514 variables.
26515
26516 2017-10-23 Michael Collison <michael.collison@arm.com>
26517
26518 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
26519 with __builtin_sqrt.
26520 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
26521 with __builtin_sqrtf.
26522 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
26523 with __builtin_ceil.
26524 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
26525 with __builtin_ceilf.
26526 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
26527 with __builtin_floor.
26528 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
26529 with __builtin_floorf.
26530 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
26531 with __builtin_fma.
26532 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
26533 with __builtin_fmaf.
26534 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
26535 with __builtin_fmax.
26536 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
26537 with __builtin_fmaxf.
26538 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
26539 with __builtin_fmin.
26540 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
26541 with __builtin_fminf.
26542 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
26543 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
26544 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
26545 with builtin_rint and conversion to int.
26546 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
26547 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
26548 with builtin_llround.
26549 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
26550 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
26551 with builtin_rint and conversion to long int.
26552 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
26553 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
26554 with builtin_lround.
26555 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
26556 with builtin_lroundf.
26557 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
26558 statements with __builtin_nearbyint.
26559 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
26560 statements with __builtin_nearbyintf.
26561 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
26562 with __builtin_rint.
26563 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
26564 with __builtin_rintf.
26565 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
26566 with __builtin_round.
26567 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
26568 with __builtin_roundf.
26569 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
26570 with __builtin_trunc.
26571 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
26572 with __builtin_truncf.
26573 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
26574 and s_l[l]round[f].c too.
26575
26576 2017-10-23 Alan Modra <amodra@gmail.com>
26577
26578 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
26579 Adjust stack after restoring regs. Add missing LR cfi_restore.
26580
26581 2017-10-23 Alan Modra <amodra@gmail.com>
26582
26583 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
26584 Move LR save and frame setup/teardown and LR restore to
26585 immediately around memset call. Provide cfi.
26586
26587 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26588
26589 * sysdeps/i386/fpu/e_powf.S: Removed.
26590 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
26591 * sysdeps/i386/fpu/w_powf.c: Likewise.
26592 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
26593 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26594 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26595 Add e_powf-sse2.
26596 (CFLAGS-e_powf-sse2.c): New.
26597 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
26598 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
26599
26600 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26601
26602 * sysdeps/i386/fpu/e_log2f.S: Removed.
26603 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
26604 * sysdeps/i386/fpu/w_log2f.c: Likewise.
26605 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
26606 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26607 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26608 Add e_log2f-sse2.
26609 (CFLAGS-e_log2f-sse2.c): New.
26610 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
26611 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
26612
26613 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26614
26615 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26616 Add e_powf-fma.
26617 (CFLAGS-e_powf-fma.c): New.
26618 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
26619 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
26620
26621 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26622
26623 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26624 Add e_log2f-fma.
26625 (CFLAGS-e_log2f-fma.c): New.
26626 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
26627 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
26628
26629 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26630
26631 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26632 Add e_logf-fma.
26633 (CFLAGS-e_logf-fma.c): New.
26634 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
26635 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
26636
26637 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26638
26639 * sysdeps/i386/fpu/e_logf.S: Removed.
26640 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
26641 * sysdeps/i386/fpu/w_logf.c: Likewise.
26642 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
26643 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
26644 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26645 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26646 Add e_logf-sse2.
26647 (CFLAGS-e_logf-sse2.c): New.
26648 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
26649 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
26650
26651 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26652
26653 * sysdeps/i386/fpu/e_exp2f.S: Removed.
26654 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
26655 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
26656 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26657 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26658 Add e_exp2f-sse2.
26659 (CFLAGS-e_exp2f-sse2.c): New.
26660 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
26661 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
26662
26663 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26664
26665 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
26666 Add e_exp2f-fma.
26667 (CFLAGS-e_exp2f-fma.c): New.
26668 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
26669 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
26670
26671 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26672
26673 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
26674 * sysdeps/i386/fpu/e_expf.S: Likewise.
26675 * sysdeps/i386/fpu/math_errf.c: Likewise.
26676 * sysdeps/i386/fpu/w_expf.c: Likewise.
26677 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
26678 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
26679 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
26680 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
26681 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
26682 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
26683 Remove e_expf-ia32.
26684 (CFLAGS-e_expf-sse2.c): New.
26685 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
26686 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
26687
26688 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
26689
26690 * sysdeps/x86_64/fpu/e_expf.S: Removed.
26691 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
26692 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
26693 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
26694 e_expf.c.
26695 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
26696 New.
26697 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
26698 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
26699 Renamed to ...
26700 (__redirect_expf): This.
26701 (SYMBOL_NAME): Changed to expf.
26702 (__ieee754_expf): Renamed to ...
26703 (__expf): This.
26704 (__GI___expf): This.
26705 (__ieee754_expf): Add strong_alias.
26706 (__expf_finite): Likewise.
26707 (__expf): New.
26708 Include <sysdeps/ieee754/flt-32/e_expf.c>.
26709
26710 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
26711
26712 [BZ #22332]
26713 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
26714 unescaping.
26715
26716 2017-10-21 Florian Weimer <fweimer@redhat.com>
26717
26718 * posix/Makefile (tests): Add tst-glob-tilde.
26719 (tests-special): Add tst-glob-tilde-mem.out
26720 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
26721 (tst-glob-tilde-mem.out): Add mtrace check.
26722 * posix/tst-glob-tilde.c: New file.
26723
26724 2017-10-20 Joseph Myers <joseph@codesourcery.com>
26725
26726 * bits/floatn-common.h: New file.
26727 * math/Makefile (headers): Add bits/floatn-common.h.
26728 * bits/floatn.h: Include <bits/floatn-common.h>.
26729 * sysdeps/ia64/bits/floatn.h: Likewise.
26730 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26731 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
26732 * sysdeps/powerpc/bits/floatn.h: Likewise.
26733 * sysdeps/x86/bits/floatn.h: Likewise.
26734
26735 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26736
26737 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
26738 indicates whether compiler emits an warning for alias for
26739 functions with incompatible types.
26740
26741 [BZ #22273]
26742 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
26743 the auxiliary process is terminated by a signal before calling _exit
26744 or execve.
26745
26746 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26747
26748 [BZ #21265]
26749 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
26750 New.
26751 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
26752 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
26753 and bit_arch_XSAVEC_Usable if needed.
26754 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
26755 and bit_arch_Use_dl_runtime_resolve_opt.
26756 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
26757 Removed.
26758 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
26759 (bit_arch_Prefer_No_AVX512): Updated.
26760 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
26761 (bit_arch_XSAVEC_Usable): New.
26762 (STATE_SAVE_OFFSET): Likewise.
26763 (STATE_SAVE_MASK): Likewise.
26764 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
26765 (cpu_features): Add xsave_state_size and xsave_state_full_size.
26766 (index_arch_Use_dl_runtime_resolve_opt): Removed.
26767 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
26768 (index_arch_XSAVEC_Usable): New.
26769 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
26770 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
26771 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
26772 is enabled.
26773 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
26774 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
26775 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
26776 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
26777 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
26778 _dl_runtime_resolve_xsavec.
26779 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
26780 Removed.
26781 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
26782 instead of VEC_SIZE.
26783 (REGISTER_SAVE_BND0): Removed.
26784 (REGISTER_SAVE_BND1): Likewise.
26785 (REGISTER_SAVE_BND3): Likewise.
26786 (REGISTER_SAVE_RAX): Always defined to 0.
26787 (VMOV): Removed.
26788 (_dl_runtime_resolve_avx): Likewise.
26789 (_dl_runtime_resolve_avx_slow): Likewise.
26790 (_dl_runtime_resolve_avx_opt): Likewise.
26791 (_dl_runtime_resolve_avx512): Likewise.
26792 (_dl_runtime_resolve_avx512_opt): Likewise.
26793 (_dl_runtime_resolve_sse): Likewise.
26794 (_dl_runtime_resolve_sse_vex): Likewise.
26795 (USE_FXSAVE): New.
26796 (_dl_runtime_resolve_fxsave): Likewise.
26797 (USE_XSAVE): Likewise.
26798 (_dl_runtime_resolve_xsave): Likewise.
26799 (USE_XSAVEC): Likewise.
26800 (_dl_runtime_resolve_xsavec): Likewise.
26801 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
26802 Removed.
26803 (_dl_runtime_resolve_avx512_opt): Likewise.
26804 (_dl_runtime_resolve_avx): Likewise.
26805 (_dl_runtime_resolve_avx_opt): Likewise.
26806 (_dl_runtime_resolve_sse): Likewise.
26807 (_dl_runtime_resolve_sse_vex): Likewise.
26808 (_dl_runtime_resolve_fxsave): New.
26809 (_dl_runtime_resolve_xsave): Likewise.
26810 (_dl_runtime_resolve_xsavec): Likewise.
26811
26812 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
26813
26814 [BZ #22320]
26815 CVE-2017-15670
26816 * posix/glob.c (__glob): Fix one-byte overflow.
26817
26818 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26819
26820 * malloc/malloc.c (sysdep-cancel.h): Add include.
26821
26822 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
26823
26824 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
26825
26826 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
26827
26828 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
26829 (tests): Remove $(objpfx)ga_test depdendency.
26830 * resolv/ga_test.c: Remove file.
26831
26832 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26833
26834 [BZ #18812]
26835 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
26836 * localedata/locales/kab_DZ: New file.
26837
26838 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26839
26840 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
26841 _dl_relocate_static_pie instead of _dl_start to compute load
26842 address in static PIE.
26843
26844 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
26845
26846 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
26847
26848 2017-10-20 Mike FABIAN <mfabian@redhat.com>
26849
26850 [BZ #13605]
26851 * localedata/SUPPORTED: Add shn_MM/UTF-8.
26852 * localedata/locales/shn_MM: New file.
26853
26854 2017-10-20 Florian Weimer <fweimer@redhat.com>
26855
26856 [BZ #22321]
26857 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
26858 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
26859 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
26860 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
26861 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
26862 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
26863
26864 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
26867
26868 2017-10-19 Joseph Myers <joseph@codesourcery.com>
26869
26870 * sysdeps/mips/ieee754/bits/floatn.h: New file.
26871
26872 [BZ #22322]
26873 * sysdeps/mips/bits/long-double.h: Move to ....
26874 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
26875
26876 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
26877
26878 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
26879
26880 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
26881 H.J. Lu <hongjiu.lu@intel.com>
26882
26883 [BZ #22299]
26884 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
26885 GLRO(dl_platform) to NULL.
26886 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
26887 (modules-names): Add tst-platformmod-1 and
26888 x86_64/tst-platformmod-2.
26889 (CFLAGS-tst-platform-1.c): New.
26890 (CFLAGS-tst-platformmod-1.c): Likewise.
26891 (CFLAGS-tst-platformmod-2.c): Likewise.
26892 (LDFLAGS-tst-platformmod-2.so): Likewise.
26893 ($(objpfx)tst-platform-1): Likewise.
26894 ($(objpfx)tst-platform-1.out): Likewise.
26895 (tst-platform-1-ENV): Likewise.
26896 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
26897 * sysdeps/x86_64/tst-platform-1.c: New file.
26898 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
26899 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
26900
26901 2017-10-19 Mike FABIAN <mfabian@redhat.com>
26902
26903 [BZ #13994]
26904 * locale/iso-639.def: Add Karbi.
26905 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
26906 * localedata/locales/mjw_IN: New file.
26907
26908 2017-10-18 Joseph Myers <joseph@codesourcery.com>
26909
26910 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
26911 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
26912 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
26913 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
26914 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26915 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26916 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
26917 <bits/floatn.h>.
26918 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
26919 (libm_alias_ldouble_other_r): Also create _Float128 alias.
26920 * manual/math.texi (Mathematics): Document additional architecture
26921 support for _Float128.
26922 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
26923 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
26924 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
26925 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26926 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26927 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
26928 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
26929 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
26930 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26931 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
26932 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26933 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
26934 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26935 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
26936 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26937
26938 2017-10-18 Renlin Li <renlin.li@arm.com>
26939
26940 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
26941 _DYNAMIC symbol to calculate load address.
26942
26943 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
26944
26945 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
26946 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
26947 summary bits.
26948 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
26949 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
26950
26951 2017-10-18 Mike FABIAN <mfabian@redhat.com>
26952
26953 [BZ #16777]
26954 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
26955 and improve readability by using more ASCII.
26956 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
26957 and improve readability by using more ASCII.
26958
26959 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
26960
26961 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
26962 not all targets support atomics on bool.
26963
26964 2017-10-17 Joseph Myers <joseph@codesourcery.com>
26965
26966 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
26967 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
26968 __f128.
26969 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26970 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
26971 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26972 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
26973 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
26974 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
26975
26976 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
26977
26978 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
26979 defines.
26980
26981 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26982
26983 [BZ #22159]
26984 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
26985 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
26986 (do_check_remalloced_chunk): Fix build bug.
26987 (do_check_malloc_state): Add assert that checks arena->top.
26988 (malloc_consolidate): Remove initialization.
26989 (int_mallinfo): Remove call to malloc_consolidate.
26990 (__libc_mallopt): Clarify why malloc_consolidate is needed.
26991
26992 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
26993
26994 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
26995 (have_fastchunks): Remove.
26996 (clear_fastchunks): Remove.
26997 (set_fastchunks): Remove.
26998 (malloc_state): Add have_fastchunks.
26999 (malloc_init_state): Use have_fastchunks.
27000 (do_check_malloc_state): Remove incorrect invariant checks.
27001 (_int_malloc): Use have_fastchunks.
27002 (_int_free): Likewise.
27003 (malloc_consolidate): Likewise.
27004
27005 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
27006
27007 * malloc/malloc.c (tcache_put): Inline.
27008 (tcache_get): Inline.
27009
27010 2017-10-17 Jordi Mallach <jordi@gnu.org>
27011
27012 Aurelien Jarno <aurelien@aurel32.net>
27013 [BZ #2522]
27014 * localedata/locales/ca_ES@valencia: New file.
27015 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
27016
27017 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
27018
27019 [BZ #22296]
27020 * math/math.h: Let signbit use the builtin in C++ mode with gcc
27021 < 6.x
27022
27023 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27024
27025 * scripts/build-many-glibcs.py (Context.add_all_configs):
27026 Add arm-linux-gnueabihf multiarch extra_glibcs.
27027
27028 * sysdeps/generic/ifunc-init.h: New file.
27029 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
27030
27031 2017-10-17 Mike FABIAN <mfabian@redhat.com>
27032
27033 [BZ #22019]
27034 * localedata/locales/el_GR: Set n_cs_precedes to 0.
27035 * localedata/locales/el_CY: copy "el_GR" because it is identical.
27036 * stdlib/tst-strfmon_l.c: adapt test case.
27037
27038 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27039
27040 * sysdeps/generic/float128-abi.h: New file.
27041 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
27042 non-__prefixed symbols to ....
27043 * math/Versions: ... here. Include <float128-abi.h>.
27044 * stdlib/Versions ... and here. Include <float128-abi.h>
27045
27046 2017-10-16 Florian Weimer <fweimer@redhat.com>
27047
27048 * version.h (VERSION): Switch to ".9000" as the development
27049 version suffix.
27050
27051 2017-10-16 Florian Weimer <fweimer@redhat.com>
27052
27053 [BZ #22050]
27054 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
27055 compat_symbol_reference to access non-default version.
27056
27057 2017-10-16 Florian Weimer <fweimer@redhat.com>
27058
27059 * malloc/Makefile (others-extras): Set to mcheck-init.o.
27060
27061 2017-10-16 Carlos O'Donell <carlos@redhat.com>
27062
27063 * include/shlib-compat.h (compat_symbol_reference): Update
27064 comment.
27065
27066 2017-10-16 Joseph Myers <joseph@codesourcery.com>
27067
27068 * math/Makefile (test-types): Add
27069 $(type-float128-$(float128-alias-fcts)).
27070 * math/test-float128.h (TYPE_STR): Define conditional on
27071 [FLT128_MANT_DIG == LDBL_MANT_DIG].
27072 (ULP_IDX): Likewise.
27073 (ULP_I_IDX): Likewise.
27074
27075 * stdlib/strtold.c: Include <bits/floatn.h>
27076 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
27077 and later undefine as macro. Define as weak alias if
27078 [!USE_WIDE_CHAR].
27079 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
27080 and later undefine as macro. Define as weak alias if
27081 [USE_WIDE_CHAR].
27082 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
27083 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
27084 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
27085 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27086 Define and later undefine as macro. Define as weak alias if
27087 [USE_WIDE_CHAR].
27088 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
27089 <bits/floatn.h>.
27090 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
27091 Define and later undefine as macro. Define as weak alias if
27092 [!USE_WIDE_CHAR].
27093 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
27094 Define and later undefine as macro. Define as weak alias if
27095 [USE_WIDE_CHAR].
27096
27097 2017-10-15 Carlos O'Donell <carlos@redhat.com>
27098
27099 * localedata/collate-test.c (allocate_arrays): Don't use \n in
27100 record_verbose messages.
27101
27102 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
27103
27104 [BZ #22052]
27105 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
27106 to silence -O3 -Wall warning with GCC 7.
27107
27108 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
27109
27110 * Makeconfig (+link-static-before-libc): Use the first of
27111 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
27112 * gmon/Makefile (tests): Add tst-gmon-static.
27113 (tests-static): Likewise.
27114 (CFLAGS-tst-gmon-static.c): New.
27115 (CRT-tst-gmon-static): Likewise.
27116 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
27117 (tst-gmon-static-ENV): Likewise.
27118 (tests-special): Likewise.
27119 ($(objpfx)tst-gmon-static.out): Likewise.
27120 (clean-tst-gmon-static-data): Likewise.
27121 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
27122 * gmon/tst-gmon-static-gprof.sh: New file.
27123 * gmon/tst-gmon-static.c: Likewise.
27124
27125 2017-10-13 Carlos O'Donell <carlos@redhat.com>
27126
27127 [BZ #22295]
27128 * locale/programs/linereader.c (get_string): Don't warn on
27129 non-symbolic character.
27130
27131 [BZ #22294]
27132 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
27133 int_curr_symbol.
27134
27135 [BZ #22292]
27136 * locale/programs/record-status.h: New file
27137 * locale/programs/locale.c: Add comment.
27138 * locale/programs/charmap-dir.c: Don't include error.h.
27139 (charmap_opendir): Use record_error.
27140 * locale/programs/charmap.c: Don't include error.h.
27141 (charmap_read): Use record_error, and record_warning.
27142 (parse_charmap): Likewise.
27143 * locale/programs/ld-address.c: Don't include error.h.
27144 (address_finish): Use record_error, and record_warning.
27145 * locale/programs/ld-collate.c: Don't include error.h.
27146 (collate_finish): Use record_error, and record_error_at_line.
27147 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
27148 (ctype_class_new): Likewise.
27149 (ctype_map_new): Likewise.
27150 (set_one_default): Likewise.
27151 (set_class_defaults): Likewise.
27152 (translit_flatten): Likewise.
27153 (allocate_arrays): Use record_error, and record_verbose.
27154 * locale/programs/ld-identification.c: Don't include error.h.
27155 (indentation_finish): Use record_error and record_warning.
27156 * locale/programs/ld-measurement.c: Don't include error.h.
27157 (measurement_finish): Use record_error.
27158 * locale/programs/ld-messages.c
27159 (message_finish): Likewise.
27160 * locale/programs/ld-monetary.c
27161 (monetary_finish): Likewise.
27162 * locale/programs/ld-name.c (name_finish): Use record_error
27163 and record_warning.
27164 * locale/programs/ld-numeric.c
27165 (numeric_finish): Use record_error.
27166 * locale/programs/ld-paper.c: Don't include error.h.
27167 (paper_finish): Use record_error.
27168 * locale/programs/ld-telephone.c: Don't include error.h.
27169 (telephone_finish): Use record_error.
27170 * locale/programs/ld-time.c (time_finish): Likewise.
27171 * locale/programs/linereader.h (lr_error): Make inline func.
27172 * locale/programs/localedef.c: Define recorded_warning_count,
27173 and recorded_error_count.
27174 (main): Use record_error. Use recorded_error_count and
27175 recorded_warning_count to issue correct error returns.
27176 (add_to_readlist): Use record_error.
27177 (find_locale): Likewise.
27178 (load_locale): Likewise.
27179 * locale/programs/localedef.h: Remove be_quiet
27180 and WITH_CUR_LOCALE.
27181 * locale/programs/locarchive.c (compare_from_file): Use
27182 record_error.
27183 * locale/programs/locfile.c (write_locale_data): Use
27184 record_error.
27185 * locale/programs/repertoire.c: Dont include error.h.
27186 (repertoire_complain): Use record_error.
27187 * localedata/tst-fmon.sh: Expect failures from localedef.
27188 * localedata/tst-locale.sh: Likewise.
27189 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
27190
27191 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
27192 (REPORTS): Likewise.
27193 (check): Likewise.
27194 (i18n): Rename to...
27195 (i18n_ctype): ...this.
27196 (i18n-report): Rename to...
27197 (i18n_ctype-report): ...this.
27198 * localedata/locales/i18n_ctype: Regenerate.
27199 * localedata/locales/i18n: copy i18n_ctype.
27200
27201 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27202
27203 * stdlib/strfroml.c: Include <bits/floatn.h>.
27204 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
27205 Define before include of <stdlib.h> and undefine afterwards, then
27206 define as weak alias.
27207
27208 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
27209 Undefine and restore default definition. Use
27210 libm_alias_ldouble_other.
27211
27212 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
27213
27214 [BZ #22153]
27215 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
27216 in coredumps.
27217
27218 2017-10-13 James Clarke <jrtc27@jrtc27.com>
27219
27220 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27221 Assign sym_map to be map for local symbols, as TLS relocations
27222 use sym_map to determine whether the symbol is defined and to
27223 extract the TLS information.
27224 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27225 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27226
27227 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27228
27229 [BZ #22189]
27230 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
27231 (math_force_eval): Add powerpc version.
27232
27233 [BZ #22142]
27234 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
27235 -DBL_MAX.
27236 (do_test): Likewise.
27237 * stdio-common/tst-printf.sh: Likewise.
27238 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
27239 ifdef clause in order to set the carry bit right. Replace r0 by
27240 0 without changing the behavior.
27241
27242 2017-10-13 Joseph Myers <joseph@codesourcery.com>
27243
27244 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
27245 <libm-alias-ldouble.h>.
27246 (fabsl): Define using libm_alias_ldouble.
27247 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
27248 <libm-alias-ldouble.h>.
27249 (fabsl): Define using libm_alias_ldouble.
27250
27251 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
27252 Remove conditional code.
27253
27254 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
27255 Rename to __clog10_internal_l.
27256 (__clog10_internal_l): Define aliases using
27257 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
27258 with __clog10.
27259
27260 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27261
27262 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
27263 * benchtests/sincosf-inputs: New file.
27264 * benchtests/cosf-inputs: New file.
27265 * benchtests/sinf-inputs: New file.
27266
27267 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
27268
27269 * posix/tst-spawn.c (do_test): Wait for both children.
27270
27271 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
27272
27273 [BZ #22284]
27274 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
27275 tests-pie): Add tst-gmon-pie.
27276 (CFLAGS-tst-gmon-pie.c): New.
27277 (CRT-tst-gmon-pie): Likewise.
27278 (tst-gmon-pie-ENV): Likewise.
27279 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
27280 ($(objpfx)tst-gmon-pie.out): Likewise.
27281 (clean-tst-gmon-pie-data): Likewise.
27282 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
27283 * gmon/gmon.c [PIC]: Include <link.h>.
27284 [PIC] (callback): New function.
27285 (write_hist): Add an argument for load address. Subtract load
27286 address from PCs.
27287 (write_call_graph): Likewise.
27288 (write_gmon): Call __dl_iterate_phdr to get load address, pass
27289 it to write_hist and write_call_graph.
27290 * gmon/tst-gmon-pie.c: New file.
27291
27292 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27293
27294 * math/Makefile (test-types-basic): New variable.
27295 (test-types): Likewise.
27296 (libm-test-support): Use $(test-types) instead of $(types).
27297 (libm-tests-base-normal): Likewise.
27298 (libm-tests-base-finite): Likewise.
27299 (libm-tests-base-inline): Likewise.
27300 (generated): Likewise.
27301 ($(objpfx)libm-test-support-$(t).c): Likewise.
27302 (libm-tests-for-type iterator): Likewise.
27303 (libm-test-support iterator): Likewise.
27304 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
27305 (ulp_idx): Use ULP_IDX.
27306 * math/test-ldouble.h: Include <float.h>.
27307 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
27308 (ULP_IDX): New macro.
27309 (ULP_I_IDX): Likewise.
27310 * math/test-double.h (ULP_IDX): Likewise.
27311 (ULP_I_IDX): Likewise.
27312 * math/test-float.h (ULP_IDX): Likewise.
27313 (ULP_I_IDX): Likewise.
27314 * math/test-float128.h (ULP_IDX): Likewise.
27315 (ULP_I_IDX): Likewise.
27316
27317 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27318
27319 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
27320 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
27321 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
27322 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
27323 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
27324 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
27325 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
27326 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
27327 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
27328 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
27329 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
27330 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
27331 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
27332 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
27333 (SINGLE_THREAD_BY_GLOBAL): Define.
27334 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27335 Likewise.
27336 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27337 Likewise.
27338 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27339 Likewise.
27340 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27341 Likewise.
27342 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
27343 (SINGLE_THREAD_BY_GLOBAL): Likewise.
27344 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
27345 Likewise.
27346
27347 2017-10-11 Andreas Schwab <schwab@suse.de>
27348
27349 * nis/Makefile (aux): Remove.
27350 * nscd/Makefile (aux): Add nscd_hash.
27351 (nscd-modules): Likewise.
27352 ($(objpfx)nscd): Don't depend on libnsl.
27353 * nscd/nscd_hash.c: New file.
27354 * nscd/nscd_hash.h: Likewise.
27355 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
27356 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
27357 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
27358 instead of <nis/rpcsvc/nis.h>.
27359 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
27360
27361 2017-10-11 Florian Weimer <fweimer@redhat.com>
27362
27363 [BZ #22078]
27364 Avoid large NSS buffers with many addresses, aliases.
27365 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
27366 using dynarrays and struct alloc_buffer.
27367 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
27368 (tst-nss-files-hosts-multi): Link with -ldl.
27369 * nss/tst-nss-files-hosts-multi.c: New file.
27370
27371 2017-10-11 Florian Weimer <fweimer@redhat.com>
27372
27373 [BZ #18023]
27374 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
27375 scratch_buffer. Eliminate gotos.
27376
27377 2017-10-11 Joseph Myers <joseph@codesourcery.com>
27378
27379 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
27380 libm_alias_ldouble_other.
27381 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
27382 undefine and redefine.
27383 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27384 (exp10l): Do not define here.
27385 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
27386 (weak_alias): Undefine and redefine.
27387 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
27388 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27389 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
27390 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
27391
27392 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
27393 [!__fma] (fma): Define using libm_alias_double.
27394 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
27395 [!__fmaf] (fmaf): Define using libm_alias_float.
27396 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
27397 (fmal): Define using libm_alias_ldouble.
27398
27399 2017-10-10 Joseph Myers <joseph@codesourcery.com>
27400
27401 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
27402 New macro.
27403 (libm_alias_double_other): Likewise.
27404 (libm_alias_double_r): Use libm_alias_double_other_r.
27405 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
27406 New macro.
27407 (libm_alias_float_other): Likewise.
27408 (libm_alias_float_r): Use libm_alias_float_other_r.
27409 * sysdeps/generic/libm-alias-float128.h
27410 (libm_alias_float128_other_r): New macro.
27411 (libm_alias_float128_other): Likewise.
27412 (libm_alias_float128_r): Use libm_alias_float128_other_r.
27413 * sysdeps/generic/libm-alias-ldouble.h
27414 (libm_alias_ldouble_other_r): New macro.
27415 (libm_alias_ldouble_other): Likewise.
27416 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27417 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
27418 (libm_alias_double_other_r): New macro.
27419 (libm_alias_double_other): Likewise.
27420 (libm_alias_double_r): Use libm_alias_double_other_r.
27421 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
27422 (libm_alias_ldouble_other_r): New macro.
27423 (libm_alias_ldouble_other): Likewise.
27424 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
27425 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
27426 [!USE_AS_COMPAT]: Use libm_alias_double_other.
27427 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
27428 [!USE_AS_COMPAT]: Use libm_alias_float_other.
27429 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
27430 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
27431 * math/w_exp2f.c: Use libm_alias_float_other.
27432 * math/w_expf.c: Likewise.
27433 * math/w_log2f.c: Likewise.
27434 * math/w_logf.c: Likewise.
27435 * math/w_powf.c: Likewise.
27436 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
27437 [!__exp2f]: Use libm_alias_float_other.
27438 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
27439 [!__expf]: Use libm_alias_float_other.
27440 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
27441 [!__log2f]: Use libm_alias_float_other.
27442 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
27443 [!__logf]: Use libm_alias_float_other.
27444 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
27445 [!__powf]: Use libm_alias_float_other.
27446
27447 2017-10-10 Florian Weimer <fweimer@redhat.com>
27448
27449 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
27450 function.
27451 (_nss_files_gethostbyname3_r): Call it.
27452
27453 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27454
27455 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
27456 error. Remove default definition of declare_mgen_alias.
27457 [!declare_mgen_alias_r]: Likewise.
27458 * sysdeps/generic/math-type-macros-double.h
27459 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
27460 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
27461 (declare_mgen_alias_r): Likewise.
27462 * sysdeps/generic/math-type-macros-float128.h
27463 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27464 * sysdeps/generic/math-type-macros-ldouble.h
27465 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
27466 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
27467 macro.
27468 (declare_mgen_alias_r_s): Likewise.
27469 (declare_mgen_alias_r): Likewise.
27470 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
27471 (lgamma_r): Define using libm_alias_double_r.
27472 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
27473 (lgammaf_r): Define using libm_alias_float_r.
27474 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
27475 (lgammal_r): Define using libm_alias_ldouble_r.
27476 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
27477 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
27478
27479 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27480
27481 * lib/glob.c (__glob_pattern_type): Remove now-spurious
27482 extern declaration.
27483
27484 2017-10-09 Joseph Myers <joseph@codesourcery.com>
27485
27486 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
27487
27488 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
27489
27490 [BZ #21326]
27491 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
27492 [__cplusplus >= 201103] (__USE_ISOC99): Define.
27493 * math/Makefile (test-math-cxx11): New test.
27494 * math/test-math-cxx11.cc: New file.
27495
27496 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
27497
27498 * login/openpty.c (openpty): Close slave pty file descriptor on error.
27499
27500 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
27501 call to allocate the slave pty file descriptor.
27502
27503 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27504
27505 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
27506 [!__fma] (fma): Define using libm_alias_double.
27507 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
27508 [!__fma] (fma): Define using libm_alias_double.
27509
27510 * sysdeps/ieee754/float128/float128_private.h: Include
27511 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
27512 (libm_alias_ldouble_r): Undefine and redefine.
27513 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
27514 <libm-alias-ldouble.h>.
27515 (asinhl): Define using libm_alias_ldouble.
27516 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
27517 <libm-alias-ldouble.h>.
27518 (atanl): Define using libm_alias_ldouble.
27519 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
27520 <libm-alias-ldouble.h>.
27521 (cbrtl): Define using libm_alias_ldouble.
27522 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
27523 <libm-alias-ldouble.h>.
27524 (ceill): Define using libm_alias_ldouble.
27525 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
27526 <libm-alias-ldouble.h>.
27527 (copysignl): Define using libm_alias_ldouble.
27528 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
27529 <libm-alias-ldouble.h>.
27530 (cosl): Define using libm_alias_ldouble.
27531 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
27532 <libm-alias-ldouble.h>.
27533 (erfl): Define using libm_alias_ldouble.
27534 (erfcl): Likewise.
27535 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
27536 <libm-alias-ldouble.h>.
27537 (expm1l): Define using libm_alias_ldouble.
27538 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
27539 <libm-alias-ldouble.h>.
27540 (fabsl): Define using libm_alias_ldouble.
27541 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
27542 <libm-alias-ldouble.h>.
27543 (floorl): Define using libm_alias_ldouble.
27544 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
27545 <libm-alias-ldouble.h>.
27546 (fmal): Define using libm_alias_ldouble.
27547 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
27548 <libm-alias-ldouble.h>.
27549 (frexpl): Define using libm_alias_ldouble.
27550 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
27551 libm_alias_ldouble.
27552 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
27553 <libm-alias-ldouble.h>.
27554 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
27555 libm_alias_ldouble.
27556 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
27557 <libm-alias-ldouble.h>.
27558 (getpayloadl): Define using libm_alias_ldouble.
27559 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
27560 <libm-alias-ldouble.h>.
27561 (llrintl): Define using libm_alias_ldouble.
27562 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
27563 <libm-alias-ldouble.h>.
27564 (llroundl): Define using libm_alias_ldouble.
27565 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
27566 <libm-alias-ldouble.h>.
27567 (logbl): Define using libm_alias_ldouble.
27568 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
27569 <libm-alias-ldouble.h>.
27570 (lrintl): Define using libm_alias_ldouble.
27571 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
27572 <libm-alias-ldouble.h>.
27573 (lroundl): Define using libm_alias_ldouble.
27574 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
27575 <libm-alias-ldouble.h>.
27576 (modfl): Define using libm_alias_ldouble.
27577 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
27578 <libm-alias-ldouble.h>.
27579 (nearbyintl): Define using libm_alias_ldouble.
27580 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
27581 <libm-alias-ldouble.h>.
27582 (nextafterl): Define using libm_alias_ldouble.
27583 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
27584 <libm-alias-ldouble.h>.
27585 (nextupl): Define using libm_alias_ldouble.
27586 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
27587 <libm-alias-ldouble.h>.
27588 (remquol): Define using libm_alias_ldouble.
27589 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
27590 <libm-alias-ldouble.h>.
27591 (rintl): Define using libm_alias_ldouble.
27592 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
27593 <libm-alias-ldouble.h>.
27594 (roundevenl): Define using libm_alias_ldouble.
27595 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
27596 <libm-alias-ldouble.h>.
27597 (roundl): Define using libm_alias_ldouble.
27598 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
27599 using libm_alias_ldouble.
27600 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
27601 <libm-alias-ldouble.h>.
27602 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
27603 Define using libm_alias_ldouble.
27604 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
27605 <libm-alias-ldouble.h>.
27606 (sincosl): Define using libm_alias_ldouble.
27607 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
27608 <libm-alias-ldouble.h>.
27609 (sinl): Define using libm_alias_ldouble.
27610 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
27611 <libm-alias-ldouble.h>.
27612 (tanhl): Define using libm_alias_ldouble.
27613 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
27614 <libm-alias-ldouble.h>.
27615 (tanl): Define using libm_alias_ldouble.
27616 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
27617 <libm-alias-ldouble.h>.
27618 (totalorderl): Define using libm_alias_ldouble.
27619 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
27620 <libm-alias-ldouble.h>.
27621 (totalordermagl): Define using libm_alias_ldouble.
27622 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
27623 <libm-alias-ldouble.h>.
27624 (truncl): Define using libm_alias_ldouble.
27625 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
27626 libm_alias_ldouble.
27627 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
27628 libm_alias_ldouble.
27629 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
27630 <libm-alias-ldouble.h>.
27631 (weak_alias): Do not undefine and redefine.
27632 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27633 (copysignl): Define with long_double_symbol only if [IS_IN
27634 (libc)].
27635 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
27636 <libm-alias-ldouble.h>.
27637 (weak_alias): Do not undefine and redefine.
27638 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27639 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
27640 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
27641 <libm-alias-ldouble.h>.
27642 (weak_alias): Do not undefine and redefine.
27643 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
27644 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
27645 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
27646 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
27647 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
27648 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
27649 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
27650 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
27651 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
27652 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
27653 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
27654 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
27655 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
27656 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
27657 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
27658 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
27659 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
27660 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
27661 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
27662 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
27663 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
27664 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
27665 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
27666 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
27667 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
27668 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
27669
27670 2017-10-06 Carlos O'Donell <carlos@redhat.com>
27671
27672 [BZ #22111]
27673 * malloc/malloc.c (tcache_shutting_down): Use bool type.
27674 (tcache_thread_freeres): Set tcache_shutting_down before
27675 freeing the tcache.
27676 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
27677 * malloc/tst-malloc-tcache-leak.c: New file.
27678
27679 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27680
27681 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
27682 back to powerpc32 file.
27683 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
27684 (memrchr): Add __memrchr_power8 to ifunc list.
27685 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
27686 extra bytes for unaligned inputs.
27687
27688 2017-10-06 Joseph Myers <joseph@codesourcery.com>
27689
27690 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
27691 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
27692 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
27693 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
27694 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
27695
27696 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27697
27698 * sysdeps/arm/libm-test-ulps: Update.
27699
27700 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
27701 <libm-alias-ldouble.h>.
27702 (asinhl): Define using libm_alias_ldouble.
27703 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
27704 <libm-alias-ldouble.h>.
27705 (cbrtl): Define using libm_alias_ldouble.
27706 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
27707 <libm-alias-ldouble.h>.
27708 (copysignl): Define using libm_alias_ldouble.
27709 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
27710 <libm-alias-ldouble.h>.
27711 (cosl): Define using libm_alias_ldouble.
27712 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
27713 <libm-alias-ldouble.h>.
27714 (erfl): Define using libm_alias_ldouble.
27715 (erfcl): Likewise.
27716 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
27717 <libm-alias-ldouble.h>.
27718 (fmal): Define using libm_alias_ldouble.
27719 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
27720 <libm-alias-ldouble.h>.
27721 (frexpl): Define using libm_alias_ldouble.
27722 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
27723 libm_alias_ldouble.
27724 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
27725 <libm-alias-ldouble.h>.
27726 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
27727 libm_alias_ldouble.
27728 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
27729 <libm-alias-ldouble.h>.
27730 (getpayloadl): Define using libm_alias_ldouble.
27731 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
27732 <libm-alias-ldouble.h>.
27733 (llrintl): Define using libm_alias_ldouble.
27734 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
27735 <libm-alias-ldouble.h>.
27736 (llroundl): Define using libm_alias_ldouble.
27737 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
27738 <libm-alias-ldouble.h>.
27739 (lrintl): Define using libm_alias_ldouble.
27740 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
27741 <libm-alias-ldouble.h>.
27742 (lroundl): Define using libm_alias_ldouble.
27743 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
27744 <libm-alias-ldouble.h>.
27745 (modfl): Define using libm_alias_ldouble.
27746 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
27747 <libm-alias-ldouble.h>.
27748 (nextupl): Define using libm_alias_ldouble.
27749 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
27750 <libm-alias-ldouble.h>.
27751 (remquol): Define using libm_alias_ldouble.
27752 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
27753 <libm-alias-ldouble.h>.
27754 (roundevenl): Define using libm_alias_ldouble.
27755 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
27756 <libm-alias-ldouble.h>.
27757 (roundl): Define using libm_alias_ldouble.
27758 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
27759 using libm_alias_ldouble.
27760 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
27761 <libm-alias-ldouble.h>.
27762 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
27763 <libm-alias-ldouble.h>.
27764 (setpayloadsigl): Define using libm_alias_ldouble.
27765 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
27766 <libm-alias-ldouble.h>.
27767 (sincosl): Define using libm_alias_ldouble.
27768 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
27769 <libm-alias-ldouble.h>.
27770 (sinl): Define using libm_alias_ldouble.
27771 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
27772 <libm-alias-ldouble.h>.
27773 (tanhl): Define using libm_alias_ldouble.
27774 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
27775 <libm-alias-ldouble.h>.
27776 (tanl): Define using libm_alias_ldouble.
27777 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
27778 <libm-alias-ldouble.h>.
27779 (totalorderl): Define using libm_alias_ldouble.
27780 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
27781 <libm-alias-ldouble.h>.
27782 (totalordermagl): Define using libm_alias_ldouble.
27783 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
27784 libm_alias_ldouble.
27785 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
27786 libm_alias_ldouble.
27787
27788 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
27789
27790 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
27791 memmove_falkor.
27792 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
27793 (__libc_ifunc_impl_list): Likewise.
27794 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
27795 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
27796
27797 * benchtests/bench-memmove-walk.c: New file.
27798 * benchtests/Makefile (string-benchset): Add it.
27799
27800 * benchtests/bench-memset-walk.c: New file.
27801 * benchtests/Makefile (string-benchset): Add it.
27802
27803 * benchtests/bench-memcpy-walk.c: New file.
27804 * benchtests/Makefile (string-benchset): Add it.
27805
27806 2017-10-05 Florian Weimer <fweimer@redhat.com>
27807
27808 nscd: Eliminate compilation time dependency in the build output.
27809 * nscd/nscd_stat.c (STATDATA_VERSION)
27810 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
27811 (STATDATA_VERSION_FULL): New macro definitions.
27812 (compilation): Remove.
27813 (struct statdata): Adjust version member.
27814 (send_stats): Set version from STATDATA_VERSION_FULL.
27815 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
27816
27817 2017-10-05 Joseph Myers <joseph@codesourcery.com>
27818
27819 * configure.ac (--enable-add-ons): Remove option.
27820 (machine): Do not mention add-ons in comment.
27821 (LIBC_PRECONFIGURE): Likewise.
27822 (add_ons): Remove variable and sanity checks and logic to locate
27823 add-ons.
27824 (add_ons_automatic): Remove variable.
27825 (configured_add_ons): Likewise.
27826 (add_ons_sfx): Likewise.
27827 (add_ons_pfx): Likewise.
27828 (add_on_subdirs): Likewise.
27829 (sysnames_add_ons): Likewise. Remove loop over add-ons and
27830 consideration of add-ons in Implies handling.
27831 (sysdeps_add_ons): Likewise.
27832 * configure: Regenerated.
27833 * libidn/configure.ac: Remove.
27834 * libidn/configure: Likewise.
27835 * sysdeps/unix/inet/configure.ac: New file.
27836 * sysdeps/unix/inet/configure: New generated file.
27837 * sysdeps/unix/inet/Subdirs: Add libidn.
27838 * Makeconfig (sysdeps-srcdirs): Remove variable.
27839 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
27840 ($(common-objpfx)config.status): Do not depend on add-on files.
27841 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
27842 comment.
27843 (all-subdirs): Do not include $(add-on-subdirs).
27844 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
27845 * config.make.in (add-ons): Remove variable.
27846 (add-on-subdirs): Likewise.
27847 (sysdeps-add-ons): Likewise.
27848 * manual/Makefile (add-chapters): Remove.
27849 ($(objpfx)texis): Do not depend on $(add-chapters).
27850 (nonexamples): Do not handle $(add-chapters).
27851 (examples): Do not handle $(add-ons).
27852 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
27853 libc-texinfo.sh.
27854 * manual/install.texi (Installation): Do not mention add-ons.
27855 (--enable-add-ons): Do not document configure option.
27856 * INSTALL: Regenerated.
27857 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
27858 * manual/maint.texi (Hierarchy Conventions): Do not mention
27859 add-ons.
27860 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
27861 --enable-add-ons.
27862 * scripts/gen-sorted.awk: Do not handle Subdirs files from
27863 add-ons.
27864 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
27865 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
27866
27867 2017-10-05 Andreas Schwab <schwab@suse.de>
27868
27869 [BZ #15142]
27870 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
27871 (_IO_flush_all_lockp): Always lock list_all_lock.
27872 (_IO_flush_all_linebuffered): Likewise.
27873 (_IO_unbuffer_all): Likewise.
27874
27875 2017-10-05 Florian Weimer <fweimer@redhat.com>
27876
27877 [BZ #15436]
27878 Do not flush stdio streams on abort.
27879 * stdlib/abort.c (fflush): Remove macro definition.
27880 (abort): Remove stages related to stdio flushing.
27881
27882 2017-10-05 Florian Weimer <fweimer@redhat.com>
27883
27884 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
27885
27886 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
27887
27888 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
27889
27890 2017-10-05 Florian Weimer <fweimer@redhat.com>
27891
27892 * support/support_format_hostent.c (support_format_hostent): Add
27893 more error information for NETDB_INTERNAL.
27894
27895 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27896
27897 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
27898 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
27899 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
27900 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
27901 AC_DEFINE if multi-arch is enabled.
27902 * sysdeps/i386/configure: Regenerated.
27903
27904 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27905
27906 * Makeconfig (+link-static-before-libc): Use
27907 $(DEFAULT-LDFLAGS-$(@F)).
27908 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
27909 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
27910 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
27911
27912 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27913
27914 * elf/Makefile (tests): Add tst-main1.
27915 (modules-names): Add tst-main1mod.
27916 ($(objpfx)tst-main1): New.
27917 (CRT-tst-main1): Likewise.
27918 (LDFLAGS-tst-main1): Likewise.
27919 (LDLIBS-tst-main1): Likewise.
27920 (tst-main1mod.so-no-z-defs): Likewise.
27921 * elf/tst-main1.c: New file.
27922 * elf/tst-main1mod.c: Likewise.
27923
27924 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
27925
27926 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
27927
27928 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27929
27930 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
27931 (fma): Define using libm_alias_double.
27932 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
27933 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
27934 <math_ldbl_opt.h>.
27935 (fmal): Do not define as compat symbol here.
27936 * sysdeps/alpha/fpu/s_fma.c: New file.
27937
27938 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
27939
27940 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
27941
27942 2017-10-04 Joseph Myers <joseph@codesourcery.com>
27943
27944 [BZ #22229]
27945 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
27946 <math_ldbl_opt.h>
27947 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27948 and libc.
27949 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
27950 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27951 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
27952 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
27953 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
27954 Include <math_ldbl_opt.h>
27955 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
27956 and libc.
27957 (compat_symbol): Undefine and redefine.
27958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
27959 <math_ldbl_opt.h>
27960 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
27961 (compat_symbol): Undefine and redefine.
27962 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
27963 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
27964 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
27965 GLIBC_2_1 for libm.
27966 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
27967 GLIBC_2.0 copysignl symbol.
27968 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
27969 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
27970
27971 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
27972
27973 2017-10-04 Florian Weimer <fweimer@redhat.com>
27974
27975 * scripts/check-local-headers.sh: Ignore nspr4 header file
27976 directory in addition to nspr.
27977
27978 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
27979
27980 [BZ #17956]
27981 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
27982 * configure: Regenerate.
27983 * crypt/Makefile (nss-cpp-flags): New variable.
27984 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
27985 (CPPFLAGS-md5-crypt.c): Use it.
27986 * scripts/check-local-headers.sh: Ignore nspr header file
27987 directory.
27988
27989 2017-10-04 Andreas Schwab <schwab@suse.de>
27990
27991 * nis/Makefile (services): Remove compat.
27992 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
27993 ($(objpfx)libnss_compat.so): Remove rule.
27994 * nis/Versions (libnss_compat): Remove.
27995 * nss/Makefile (services): Add compat.
27996 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
27997 * nss/Versions (libnss_compat): Define.
27998 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
27999 Don't include <rpc/types.h>. Replace bool_t by bool.
28000 * nss/nss_compat/compat-initgroups.c: Likewise.
28001 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
28002 instead of <rpcsrv/ypclnt.h>.
28003 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
28004 yp_get_default_domain.
28005 * nss/nss_compat/compat-pwd.c: Likewise.
28006 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
28007 yp_get_default_domain.
28008 * nss/nss_compat/nisdomain.c: New file.
28009 * nss/nss_compat/nisdomain.h: Likewise.
28010
28011 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28012
28013 [BZ #22244]
28014 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
28015 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
28016
28017 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
28018
28019 [BZ #22243]
28020 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
28021 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
28022
28023 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28024
28025 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
28026 "movl main@GOTOFF(%ebx), %eax".
28027
28028 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28029
28030 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
28031 allow undefined _DYNAMIC in PIE libc.a.
28032 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
28033 Likewse.
28034
28035 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28036
28037 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
28038 check _DYNAMIC.
28039
28040 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28041
28042 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
28043 check _DYNAMIC.
28044
28045 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28046
28047 * math/test-math-iscanonical.cc (error): Replace bool with int.
28048
28049 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28050
28051 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
28052 (modf): Define using libm_alias_double, only if [!__modf].
28053 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
28054 <libm-alias-double.h>.
28055 (modf): Define using libm_alias_double, only if [!__modf].
28056 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
28057 compat symbol here.
28058 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
28059 (weak_alias): Do not undefine and redefine.
28060 (strong_alias): Likewise.
28061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
28062 (weak_alias): Likewise.
28063 (strong_alias): Likewise.
28064
28065 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
28066 (logb): Define using libm_alias_double, only if [!__logb].
28067 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
28068 <libm-alias-double.h>.
28069 (logb): Define using libm_alias_double, only if [!__logb].
28070 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
28071 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
28072 (weak_alias): Do not undefine and redefine.
28073 (strong_alias): Likewise.
28074 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
28075 (weak_alias): Likewise.
28076 (strong_alias): Likewise.
28077
28078 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28079
28080 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
28081 Check SHARED instead PIC.
28082
28083 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28084
28085 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
28086 [!__fmaf] (fmaf): Define using libm_alias_float.
28087
28088 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
28089 (frexp): Define using libm_alias_double.
28090 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
28091 <libm-alias-double.h>.
28092 (frexp): Define using libm_alias_double.
28093 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
28094 compat symbol here.
28095
28096 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
28097
28098 [BZ #22235]
28099 * math/math.h: Trivial fix for unbalanced parentheses in comment.
28100 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
28101 (CFLAGS-test-math-iscanonical.cc): New variable.
28102 * math/test-math-iscanonical.cc: New file.
28103 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
28104 Provide a C++ implementation based on function overloading,
28105 rather than using __MATH_TG, which uses C-only builtins.
28106 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
28107 Likewise.
28108 * sysdeps/powerpc/powerpc64le/Makefile
28109 (CFLAGS-test-math-iscanonical.cc): New variable.
28110
28111 2017-10-03 Joseph Myers <joseph@codesourcery.com>
28112
28113 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
28114 (ceil): Define using libm_alias_double.
28115 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
28116 (floor): Define using libm_alias_double.
28117 * sysdeps/ieee754/dbl-64/s_llround.c: Include
28118 <libm-alias-double.h>.
28119 (llround): Define using libm_alias_double.
28120 * sysdeps/ieee754/dbl-64/s_lround.c: Include
28121 <libm-alias-double.h>.
28122 (lround): Define using libm_alias_double.
28123 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
28124 <libm-alias-double.h>.
28125 (nearbyint): Define using libm_alias_double.
28126 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
28127 <libm-alias-double.h>.
28128 (remquo): Define using libm_alias_double.
28129 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
28130 (rint): Define using libm_alias_double.
28131 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
28132 (round): Define using libm_alias_double.
28133 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
28134 (trunc): Define using libm_alias_double.
28135 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
28136 <libm-alias-double.h>.
28137 (ceil): Define using libm_alias_double.
28138 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
28139 <libm-alias-double.h>.
28140 (floor): Define using libm_alias_double.
28141 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
28142 <libm-alias-double.h>.
28143 (llround): Define using libm_alias_double.
28144 [_LP64] (lround): Likewise.
28145 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
28146 <libm-alias-double.h>.
28147 [!_LP64] (lround): Define using libm_alias_double.
28148 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
28149 <libm-alias-double.h>.
28150 (nearbyint): Define using libm_alias_double.
28151 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
28152 <libm-alias-double.h>.
28153 (remquo): Define using libm_alias_double.
28154 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
28155 <libm-alias-double.h>.
28156 (rint): Define using libm_alias_double.
28157 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
28158 <libm-alias-double.h>.
28159 (round): Define using libm_alias_double.
28160 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
28161 <libm-alias-double.h>.
28162 (trunc): Define using libm_alias_double.
28163 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
28164 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
28165 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
28166 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
28167 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
28168 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
28169 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
28170 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
28171 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
28172
28173 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
28174
28175 * math/w_remainder.c: New file.
28176 * math/w_remainderf.c: New file.
28177 * math/w_remainderl.c: New file.
28178
28179 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
28180
28181 * elf/rtld.c (BOOTSTRAP_MAP): New.
28182 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
28183 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28184 Likewise.
28185 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28186 Likewise.
28187 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
28188 Likewise.
28189
28190 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28191
28192 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
28193 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
28194 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
28195 rtld_hidden_data_ver): Define to empty.
28196 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
28197 __assert_perror_fail): Likewise.
28198 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28199 (__rewinddir): Likewise.
28200 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28201 (__profile_frequency): Likewise.
28202 * include/setjmp.h (__sigsetjmp): Likewise.
28203 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
28204 __libc_sigaction): Likewise.
28205 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
28206 not set hidden attribute.
28207 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
28208 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
28209 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
28210 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
28211 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
28212 __fxstatat64): Likewise.
28213 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28214 (__uname): Likewise.
28215 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
28216 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
28217 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
28218 (NO_RTLD_HIDDEN): Set.
28219 * sysdeps/mach/hurd/configure: Refresh.
28220 * config.h.in: Refresh.
28221
28222 2017-10-02 Joseph Myers <joseph@codesourcery.com>
28223
28224 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
28225 (atan): Define using libm_alias_double.
28226 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
28227 (tan): Define using libm_alias_double.
28228 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
28229 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
28230
28231 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
28232 define as weak alias of __atan. Do not define any aliases if
28233 [__atan].
28234 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
28235 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
28236 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
28237 as weak alias of __tan. Do not define any aliases if [__tan].
28238 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
28239 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
28240 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
28241 __atan.
28242 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
28243 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
28244 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
28245 and define as weak alias of __atan.
28246 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
28247 __atan.
28248 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
28249 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
28250 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
28251 define as weak alias of __tan.
28252
28253 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28254
28255 * math/w_lgamma.c: New file.
28256 * math/w_lgammaf.c: New file.
28257 * math/w_lgammal.c: New file.
28258
28259 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28260
28261 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
28262 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
28263 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
28264 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
28265 * sysdeps/ieee754/flt-32/w_logf.c: New file.
28266 * sysdeps/ieee754/flt-32/w_powf.c: New file.
28267 * sysdeps/i386/fpu/w_log2f.c: New file.
28268 * sysdeps/i386/fpu/w_logf.c: New file.
28269 * sysdeps/i386/fpu/w_powf.c: New file.
28270 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
28271 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
28272 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
28273
28274 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28275 H.J. Lu <hongjiu.lu@intel.com>
28276
28277 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
28278 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
28279 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
28280 * sysdeps/ieee754/flt-32/w_expf.c: New file.
28281 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
28282 the new expf code.
28283 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
28284 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
28285 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
28286 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
28287 * sysdeps/i386/fpu/w_exp2f.c: New file.
28288 * sysdeps/i386/fpu/w_expf.c: New file.
28289 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
28290 * sysdeps/x86_64/fpu/w_expf.c: New file.
28291
28292 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
28293
28294 * math/Versions (logf): New libm symbol at GLIBC_2.27.
28295 (log2f): Likewise.
28296 (powf): Likewise.
28297 * math/w_log2f.c: New file.
28298 * math/w_logf.c: New file.
28299 * math/w_powf.c: New file.
28300 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
28301 * math/w_logf_compat.c (__logf_compat): Likewise.
28302 * math/w_powf_compat.c (__powf_compat): Likewise.
28303 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
28304 * sysdeps/ia64/fpu/e_logf.S: Likewise.
28305 * sysdeps/ia64/fpu/e_powf.S: Likewise.
28306 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
28307 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
28308 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
28309 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
28310 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
28311 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
28312 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
28313 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
28314 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
28315 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
28316 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
28317 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
28318 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
28319 Likewise.
28320 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
28321 Likewise.
28322 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
28323 Likewise.
28324 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
28325 Likewise.
28326 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
28327 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
28328 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
28329 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
28330 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
28331 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
28332 Likewise.
28333 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
28334 Likewise.
28335 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
28336 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
28337 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
28338
28339 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
28340
28341 * sysdeps/powerpc/powerpc64/multiarch/Makefile
28342 (sysdep_routines): Add memrchr_power8.
28343 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
28344 (memrchr): Add __memrchr_power8 to list of memrchr functions.
28345 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
28346 New file.
28347 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
28348 (memrchr): Add __memrchr_power8 to ifunc list.
28349 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
28350
28351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28352
28353 [BZ #18822]
28354 * sysdeps/unix/sysv/linux/posix_fadvise64.c
28355 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
28356 libc_hidden_def.
28357 * sysdeps/unix/sysv/linux/posix_fallocate64.c
28358 (__posix_fallocate64_l64): Likewise.
28359
28360 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28361
28362 [BZ #18822]
28363 * sysdeps/unix/sysv/linux/sched_setaffinity.c
28364 (__sched_setaffinity_new): Add libc_hidden_proto and
28365 libc_hidden_def.
28366
28367 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28368
28369 [BZ #18822]
28370 * include/glob.h (__glob64): Add libc_hidden_proto.
28371 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
28372 libc_hidden_def.
28373
28374 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28375
28376 [BZ #18822]
28377 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
28378 attribute_hidden.
28379
28380 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28381
28382 [BZ #18822]
28383 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
28384
28385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28386
28387 [BZ #18822]
28388 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
28389 libc_hidden_def.
28390
28391 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28392
28393 [BZ #18822]
28394 * csu/version.c (__libc_print_version): Add attribute_hidden.
28395
28396 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28397
28398 [BZ #18822]
28399 * include/libc-internal.h (__init_misc): Add attribute_hidden.
28400
28401 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28402
28403 [BZ #18822]
28404 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
28405
28406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28407
28408 [BZ #18822]
28409 * nscd/nscd_helper.c (__nis_hash): New prototype.
28410
28411 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28412
28413 [BZ #18822]
28414 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
28415 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
28416 libc_hidden_def.
28417 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
28418 * termios/tcgetattr.c (__tcgetattr): Likewise.
28419
28420 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28421
28422 [BZ #18822]
28423 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
28424 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
28425 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
28426 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
28427 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
28428
28429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28430
28431 [BZ #18822]
28432 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
28433
28434 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28435
28436 [BZ #18822]
28437 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
28438 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
28439
28440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28441
28442 [BZ #18822]
28443 * intl/hash-string.h (__hash_string): Add attribute_hidden.
28444
28445 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28446
28447 [BZ #18822]
28448 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
28449 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
28450
28451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28452
28453 [BZ #18822]
28454 * include/ifreq.h: New file.
28455 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
28456 (__ifreq): Likewise.
28457 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
28458 (__ifreq): Likewise.
28459
28460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28461
28462 [BZ #18822]
28463 * include/idna.h: New file.
28464 * inet/getnameinfo.c: Include <idna.h> instead of
28465 <libidn/idna.h>.
28466 (__idna_to_unicode_lzlz): Removed.
28467 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
28468 <libidn/idna.h>.
28469 (__idna_to_ascii_lz): Removed.
28470 (__idna_to_unicode_lzlz): Likewise.
28471
28472 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28473
28474 [BZ #18822]
28475 * include/plural-exp.h: New file.
28476 * intl/plural-exp.c: Include <plural-exp.h> instead of
28477 "plural-exp.h".
28478
28479 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28480
28481 [BZ #18822]
28482 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
28483 "getsourcefilter.h".
28484 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
28485 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
28486 "getsourcefilter.h".
28487 (__get_sol): Removed.
28488
28489 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28490
28491 [BZ #18822]
28492 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
28493 to ...
28494 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
28495
28496 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28497
28498 [BZ #18822]
28499 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
28500 attribute_hidden.
28501
28502 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28503
28504 [BZ #18822]
28505 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
28506
28507 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28508
28509 [BZ #18822]
28510 * include/search.h (__tdestroy): Add libc_hidden_proto.
28511 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
28512
28513 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28514
28515 [BZ #18822]
28516 * include/assert.h (__assert_fail_base): Add attribute_hidden.
28517
28518 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28519
28520 [BZ #18822]
28521 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
28522 attribute_hidden.
28523
28524 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28525
28526 [BZ #18822]
28527 * include/signal.h (__kill): Add libc_hidden_proto.
28528 (__sigblock): Likewise.
28529 (__sigprocmask): Likewise.
28530 (__sigaltstack): Likewise.
28531 * signal/kill.c (__kill): Add libc_hidden_def.
28532 * signal/sigblock.c (__sigblock): Likewise.
28533 * signal/sigprocmask.c (__sigprocmask): Likewise.
28534 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
28535 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
28536 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
28537 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
28538 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
28539 Likewise.
28540 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
28541 Likewise.
28542 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
28543 (__sigprocmask): Likewise.
28544 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
28545 Likewise.
28546 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
28547 (__sigprocmask): Likewise.
28548 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
28549 Likewise.
28550
28551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28552
28553 [BZ #18822]
28554 * include/string.h (__strsep): Add libc_hidden_proto.
28555 * string/strsep.c (__strsep): Add libc_hidden_def.
28556
28557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28558
28559 [BZ #18822]
28560 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
28561 attribute_hidden.
28562 (__spawni): Likewise.
28563
28564 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28565
28566 [BZ #18822]
28567 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
28568 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
28569 libc_hidden_def.
28570
28571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28572
28573 [BZ #18822]
28574 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
28575
28576 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28577
28578 [BZ #18822]
28579 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
28580 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
28581 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
28582 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
28583 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
28584 Likewise.
28585 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
28586 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
28587
28588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28589
28590 [BZ #18822]
28591 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
28592 (__dcigettext): Likewise.
28593
28594 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28595
28596 [BZ #18822]
28597 * include/sys/sysinfo.h (__get_nprocs_conf): Add
28598 libc_hidden_proto.
28599 (__get_nprocs): Likewise.
28600 (__get_phys_pages): Likewise.
28601 (__get_avphys_pages): Likewise.
28602 (__get_child_max): Add attribute_hidden.
28603 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
28604 (__get_nprocs): Likewise.
28605 (__get_phys_pages): Likewise.
28606 (__get_avphys_pages): Likewise.
28607 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
28608 libc_hidden_def.
28609 (__get_nprocs): Likewise.
28610 (__get_phys_pages): Likewise.
28611 (__get_avphys_pages): Likewise.
28612 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
28613 libc_hidden_def.
28614 (__get_nprocs_conf): Likewise.
28615 (__get_phys_pages): Likewise.
28616 (__get_avphys_pages): Likewise.
28617
28618 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28619
28620 [BZ #18822]
28621 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
28622 attribute_hidden.
28623 (__netlink_close): Likewise.
28624 (__netlink_free_handle): Likewise.
28625 (__netlink_request): Likewise.
28626
28627 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28628
28629 [BZ #18822]
28630 * include/rpc/rpc.h (__rpc_thread_variables): Add
28631 attribute_hidden.
28632 (__rpc_thread_svc_cleanup): Likewise.
28633 (__rpc_thread_clnt_cleanup): Likewise.
28634 (__rpc_thread_key_cleanup): Likewise.
28635
28636 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28637
28638 [BZ #18822]
28639 * include/sys/uio.h (__readv): Add libc_hidden_proto.
28640 (__writev): Likewise.
28641 * misc/readv.c (__readv): Add libc_hidden_def.
28642 * misc/writev.c (__writev): Likewise.
28643 * sysdeps/posix/readv.c (__readv): Likewise.
28644 * sysdeps/posix/writev.c (__writev): Likewise.
28645 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
28646 (__readv): Likewise.
28647 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
28648 (__writev): Likewise.
28649
28650 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28651
28652 [BZ #18822]
28653 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
28654 (__regcomp): Add libc_hidden_proto.
28655 (__regexec): Likewise.
28656 (__regfree): Likewise.
28657 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
28658 (__regfree): Likewise.
28659 * posix/regexec.c (__regexec): Likewise.
28660
28661 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28662
28663 [BZ #18822]
28664 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
28665 (__getutent): Likewise.
28666 (__getutid): Likewise.
28667 (__getutline): Likewise.
28668 (__pututline): Likewise.
28669 (__getutent_r): Likewise.
28670 (__getutid_r): Likewise.
28671 (__getutline_r): Likewise.
28672 (__utmpname): Add attribute_hidden.
28673 (__setutent): Likewise.
28674 (__endutent): Likewise.
28675 * login/getutent.c (__getutent): Add libc_hidden_def.
28676 * login/getutent_r.c (__getutent_r): Likewise.
28677 (__pututline): Likewise.
28678 * login/getutid.c (__getutid): Likewise.
28679 * login/getutid_r.c (__getutid_r): Likewise.
28680 * login/getutline.c (__getutline): Likewise.
28681 * login/getutline_r.c (__getutline_r): Likewise.
28682 * login/updwtmp.c (__updwtmp): Likewise.
28683
28684 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28685
28686 [BZ #18822]
28687 * include/dirent.h (__opendir): Always add attribute_hidden.
28688 (__fdopendir): Likewise.
28689 (__closedir): Likewise.
28690 (__readdir): Likewise.
28691 (__readdir64): Add libc_hidden_proto.
28692 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
28693 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
28694 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
28695 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
28696 New alias.
28697
28698 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28699
28700 [BZ #18822]
28701 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
28702 * include/netdb.h (__gethostbyaddr_r): Likewise.
28703 (__gethostbyname_r): Likewise.
28704 (__gethostbyname2_r): Likewise.
28705 (__getnetbyaddr_r): Likewise.
28706 (__getnetbyname_r): Likewise.
28707 (__getservbyname_r): Likewise.
28708 (__getservbyport_r): Likewise.
28709 (__getprotobyname_r): Likewise.
28710 (__getprotobynumber_r): Likewise.
28711 (__getnetgrent_r): Likewise.
28712 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
28713 (__getrpcbynumber_r): Likewise.
28714 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
28715
28716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28717
28718 [BZ #18822]
28719 * include/stdio.h (__fcloseall): Add attribute_hidden.
28720 (__getline): Likewise.
28721 (__path_search): Likewise.
28722 (__gen_tempname): Likewise.
28723 (__libc_message): Likewise.
28724 (__flockfile): Likewise.
28725 (__funlockfile): Likewise.
28726 (__fxprintf): Likewise.
28727 (__fxprintf_nocancel): Likewise.
28728
28729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28730
28731 [BZ #18822]
28732 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
28733 (__sgetsgent_r): Likewise.
28734
28735 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28736
28737 [BZ #18822]
28738 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
28739 (__statfs64): Likewise.
28740 (__fstatfs64): Likewise.
28741 * include/sys/statvfs.h (__statvfs64): Likewise.
28742 (__fstatvfs64): Likewise.
28743 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
28744 (__statfs_filesize_max): Likewise.
28745 (__statfs_symlinks): Likewise.
28746 (__statfs_chown_restricted): Likewise.
28747
28748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28749
28750 [BZ #18822]
28751 * include/time.h (__tzstring): Add attribute_hidden.
28752 (__tzfile_read): Likewise.
28753 (__tzfile_compute): Likewise.
28754 (__tzfile_default): Likewise.
28755 (__tzset_parse_tz): Likewise.
28756 (__offtime): Likewise.
28757 (__asctime_r): Likewise.
28758 (__tzset): Likewise.
28759 (__tz_convert): Likewise.
28760 (__getdate_r): Likewise.
28761 (__getclktck): Likewise.
28762
28763 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28764
28765 [BZ #18822]
28766 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
28767 (__nscd_unmap): Likewise.
28768 (__nscd_cache_search): Likewise.
28769 (__nscd_get_nl_timestamp): Likewise.
28770 (__nscd_getpwnam_r): Likewise.
28771 (__nscd_getpwuid_r): Likewise.
28772 (__nscd_getgrnam_r): Likewise.
28773 (__nscd_getgrgid_r): Likewise.
28774 (__nscd_gethostbyname_r): Likewise.
28775 (__nscd_gethostbyname2_r): Likewise.
28776 (__nscd_gethostbyaddr_r): Likewise.
28777 (__nscd_getai): Likewise.
28778 (__nscd_getgrouplist): Likewise.
28779 (__nscd_getservbyname_r): Likewise.
28780 (__nscd_getservbyport_r): Likewise.
28781 (__nscd_innetgr): Likewise.
28782 (__nscd_setnetgrent): Likewise.
28783
28784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28785
28786 [BZ #18822]
28787 * include/gmp.h: Declare internal functions only if _ISOMAC is
28788 undefined.
28789 (__mpn_extract_double): Add attribute_hidden.
28790 (__mpn_extract_long_double): Likewise.
28791 (__mpn_extract_float128): Likewise.
28792 (__mpn_construct_float): Likewise.
28793 (__mpn_construct_double): Likewise.
28794 (__mpn_construct_long_double): Likewise.
28795 (__mpn_construct_float128): Likewise.
28796 (mpn_add_1): Likewise.
28797 (mpn_addmul_1): Likewise.
28798 (mpn_add_n): Likewise.
28799 (mpn_cmp): Likewise.
28800 (mpn_divrem): Likewise.
28801 (mpn_lshift): Likewise.
28802 (mpn_mul): Likewise.
28803 (mpn_mul_1): Likewise.
28804 (mpn_rshift): Likewise.
28805 (mpn_sub_1): Likewise.
28806 (mpn_submul_1): Likewise.
28807 (mpn_sub_n): Likewise.
28808
28809 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28810
28811 [BZ #18822]
28812 * include/wchar.h (__wcsnlen): Add attribute_hidden.
28813 (__wcscat): Likewise.
28814 (__btowc): Likewise.
28815 (__wcrtomb): Likewise.
28816 (__mbsrtowcs): Likewise.
28817 (__wcsrtombs): Likewise.
28818 (__mbsnrtowcs): Likewise.
28819 (__wcsnrtombs): Likewise.
28820 (__wcsncpy): Likewise.
28821 (__wcpncpy): Likewise.
28822 (__wmemcpy): Likewise.
28823 (__wmempcpy): Likewise.
28824 (__wmemmove): Likewise.
28825 (__wcschrnul): Likewise.
28826 (__vfwscanf): Likewise.
28827 (__vswprintf): Likewise.
28828 (__fwprintf): Likewise.
28829 (__vfwprintf): Likewise.
28830
28831 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28832
28833 [BZ #18822]
28834 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
28835 (__getgrgid_r): Likewise.
28836 (__getgrnam_r): Likewise.
28837 * include/pwd.h (__getpwuid_r): Likewise.
28838 (__getpwnam_r): Likewise.
28839 (__fgetpwent_r): Likewise.
28840 * include/shadow.h (__getspnam_r): Likewise.
28841 (__sgetspent_r): Likewise.
28842 (__fgetspent_r): Likewise.
28843
28844 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28845
28846 [BZ #18822]
28847 * include/unistd.h (__access): Add attribute_hidden.
28848 (__lseek64): Likewise.
28849 (__libc_pread64): Likewise.
28850 (__pipe2): Likewise.
28851 (__sleep): Likewise.
28852 (__chdir): Likewise.
28853 (__fchdir): Likewise.
28854 (__getcwd): Likewise.
28855 (__rmdir): Likewise.
28856 (__execvpe): Likewise.
28857 (__execve): Likewise.
28858 (__setsid): Likewise.
28859 (__getuid): Likewise.
28860 (__geteuid): Likewise.
28861 (__getgid): Likewise.
28862 (__getegid): Likewise.
28863 (__getgroups): Likewise.
28864 (__group_member): Likewise.
28865 (__ttyname_r): Likewise.
28866 (__isatty): Likewise.
28867 (__readlink): Likewise.
28868 (__unlink): Likewise.
28869 (__gethostname): Likewise.
28870 (__profil): Likewise.
28871 (__getdtablesize): Likewise.
28872 (__brk): Likewise.
28873 (__ftruncate): Likewise.
28874 (__ftruncate64): Likewise.
28875
28876 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28877
28878 [BZ #18822]
28879 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
28880 * argp/argp-fs-xinl.c: Likewise.
28881 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
28882 * argp/argp-parse.c: Include <argp.h>.
28883 * argp/argp-xinl.c: Likewise.
28884 * include/argp-fmtstream.h: New file.
28885 * include/argp.h (__argp_error): Add attribute_hidden.
28886 (__argp_failure): Likewise.
28887 (__argp_input): Likewise.
28888 (__argp_state_help): Likewise.
28889
28890 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28891
28892 [BZ #18822]
28893 * include/wchar.h (____wcstof_l_internal): New prototype.
28894 (____wcstod_l_internal): Likewise.
28895 (____wcstold_l_internal): Likewise.
28896 (____wcstol_l_internal): Likewise.
28897 (____wcstoul_l_internal): Likewise.
28898 (____wcstoll_l_internal): Likewise.
28899 (____wcstoull_l_internal): Likewise.
28900 (____wcstof128_l_internal): Likewise.
28901 * sysdeps/ieee754/float128/wcstof128.c
28902 (____wcstof128_l_internal): Removed.
28903 * sysdeps/ieee754/float128/wcstof128_l.c
28904 (____wcstof128_l_internal): Likewise.
28905 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
28906 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
28907 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
28908 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
28909 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
28910 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
28911 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
28912 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
28913 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
28914 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
28915
28916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28917
28918 [BZ #18822]
28919 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
28920 instead of <sys/statvfs.h>.
28921 (__internal_statvfs): Removed.
28922 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
28923 instead of <sys/statvfs.h>.
28924 (__internal_statvfs64): Removed.
28925 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
28926 "internal_statvfs.h" instead of <sys/statvfs.h>.
28927 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
28928 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
28929 instead of <sys/statvfs.h>.
28930 (__internal_statvfs): Removed.
28931 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
28932 instead of <sys/statvfs.h>.
28933 (__internal_statvfs64): Removed.
28934
28935 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28936
28937 [BZ #18822]
28938 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
28939 (__gconv_close): Likewise.
28940 (__gconv): Likewise.
28941 (__gconv_find_transform): Likewise.
28942 (__gconv_lookup_cache): Likewise.
28943 (__gconv_compare_alias_cache): Likewise.
28944 (__gconv_load_cache): Likewise.
28945 (__gconv_get_path): Likewise.
28946 (__gconv_close_transform): Likewise.
28947 (__gconv_release_cache): Likewise.
28948 (__gconv_find_shlib): Likewise.
28949 (__gconv_release_shlib): Likewise.
28950 (__gconv_get_builtin_trans): Likewise.
28951 (__gconv_compare_alias): Likewise.
28952 * include/dlfcn.h (_dlerror_run): Likewise.
28953 * include/stdio.h (__fortify_fail_abort): Likewise.
28954 * include/time.h (__tz_compute): Likewise.
28955 (__strptime_internal): Likewise.
28956 * intl/gettextP.h (_nl_find_domain): Likewise.
28957 (_nl_load_domain): Likewise.
28958 (_nl_find_msg): Likewise.
28959 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
28960 (EXTRACT_PLURAL_EXPRESSION): Likewise.
28961 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
28962 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
28963 (__gai_find_request): Likewise.
28964 (__gai_remove_request): Likewise.
28965 (__gai_notify): Likewise.
28966 (__gai_notify_only): Likewise.
28967 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
28968 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
28969 (_dl_non_dynamic_init): Likewise.
28970 (_dl_aux_init): Likewise.
28971 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
28972 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
28973 Likewise.
28974 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
28975 (__wcsmbs_clone_conv): Likewise.
28976 (__wcsmbs_named_conv): Likewise.
28977
28978 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
28979
28980 [BZ #18822]
28981 * include/stdlib.h (__random): Add attribute_hidden.
28982 (__random_r): Likewise.
28983 (__srandom_r): Likewise.
28984 (__initstate_r): Likewise.
28985 (__setstate_r): Likewise.
28986 (__erand48_r): Likewise.
28987 (__nrand48_r): Likewise.
28988 (__jrand48_r): Likewise.
28989 (__srand48_r): Likewise.
28990 (__seed48_r): Likewise.
28991 (__lcong48_r): Likewise.
28992 (__drand48_iterate): Likewise.
28993 (__setenv): Likewise.
28994 (__unsetenv): Likewise.
28995 (__clearenv): Likewise.
28996 (__ptsname_r): Likewise.
28997 (__posix_openpt): Likewise.
28998 (__add_to_environ): Likewise.
28999 (__realpath): Add libc_hidden_proto.
29000 (__ecvt_r): Likewise.
29001 (__fcvt_r): Likewise.
29002 (__qecvt_r): Likewise.
29003 (__qfcvt_r): Likewise.
29004 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
29005 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
29006
29007 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
29008
29009 [BZ #18822]
29010 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
29011 * include/time.h (__mktime_internal): Likewise.
29012 * libio/iolibio.h (__fopen_internal): Likewise.
29013
29014 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
29015
29016 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
29017 pointer in frame.
29018 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
29019 Correct offset used to restore PIC register.
29020
29021 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
29022
29023 [BZ libc/22165]
29024 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
29025 code to load address of __getcontext_ret when generating PIC code.
29026
29027 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
29028
29029 * elf/Makefile (tests-static-internal): Add
29030 tst-tls1-static-non-pie.
29031 (LDFLAGS-tst-tls1-static-non-pie): New.
29032 * elf/tst-tls1-static-non-pie.c: New file.
29033
29034 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29035
29036 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
29037 (asinh): Define using libm_alias_double.
29038 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
29039 (cbrt): Define using libm_alias_double.
29040 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
29041 <libm-alias-double.h>.
29042 (copysign): Define using libm_alias_double.
29043 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
29044 (erf): Define using libm_alias_double.
29045 (erfc): Likewise.
29046 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
29047 (expm1): Define using libm_alias_double.
29048 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
29049 (fabs): Define using libm_alias_double.
29050 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
29051 libm_alias_double.
29052 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
29053 <libm-alias-double.h>.
29054 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
29055 libm_alias_double.
29056 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
29057 <libm-alias-double.h>.
29058 (getpayload): Define using libm_alias_double.
29059 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
29060 <libm-alias-double.h>.
29061 (llrint): Define using libm_alias_double.
29062 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
29063 (lrint): Define using libm_alias_double.
29064 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
29065 <libm-alias-double.h>.
29066 (nextup): Define using libm_alias_double.
29067 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
29068 <libm-alias-double.h>.
29069 (roundeven): Define using libm_alias_double.
29070 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
29071 libm_alias_double.
29072 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
29073 <libm-alias-double.h>.
29074 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
29075 using libm_alias_double.
29076 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
29077 (cos): Define using libm_alias_double.
29078 (sin): Likewise.
29079 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
29080 <libm-alias-double.h>.
29081 (sincos): Define using libm_alias_double.
29082 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
29083 (tanh): Define using libm_alias_double.
29084 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
29085 <libm-alias-double.h>.
29086 (totalorder): Define using libm_alias_double.
29087 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
29088 <libm-alias-double.h>.
29089 (totalordermag): Define using libm_alias_double.
29090 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
29091 libm_alias_double.
29092 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
29093 libm_alias_double.
29094 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
29095 <libm-alias-double.h>.
29096 (getpayload): Define using libm_alias_double.
29097 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
29098 <libm-alias-double.h>.
29099 (roundeven): Define using libm_alias_double.
29100 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
29101 <libm-alias-double.h>.
29102 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
29103 <libm-alias-double.h>.
29104 (totalorder): Define using libm_alias_double.
29105 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
29106 <libm-alias-double.h>.
29107 (totalordermag): Define using libm_alias_double.
29108 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
29109 libc compat symbol here.
29110 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
29111 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
29112 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
29113 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
29114 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
29115 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
29116 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
29117 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
29118 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
29119 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
29120
29121 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29122
29123 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
29124 _dl_relocate_static_pie instead of _dl_start to compute load
29125 address in static PIE. Return 0 if _DYNAMIC is undefined for
29126 static executable.
29127
29128 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29129
29130 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
29131 _DYNAMIC is undefined for static executable.
29132
29133 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
29134
29135 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
29136
29137 2017-09-29 Joseph Myers <joseph@codesourcery.com>
29138
29139 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29140
29141 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29142
29143 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
29144 (__ieee754_lgamma_r): Use fabs rather than __fabs.
29145 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
29146 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
29147 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
29148 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
29149 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
29150 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
29151 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
29152 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29153 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
29154 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
29155 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29156 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
29157 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
29158 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
29159 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
29160
29161 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
29162
29163 * math/bits/cmathcalls.h (cimag): Remove inline.
29164 (creal): Remove inline.
29165 (conj): Remove inline.
29166
29167 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29168
29169 * math/Makefile (type-float-routines): Add e_powf_log2_data.
29170 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
29171 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
29172 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
29173 (issignalingf_inline): Likewise.
29174 (POWF_LOG2_TABLE_BITS): Likewise.
29175 (POWF_LOG2_POLY_ORDER): Likewise.
29176 (POWF_SCALE_BITS): Likewise.
29177 (POWF_SCALE): Likewise.
29178 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
29179 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
29180 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
29181
29182 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29183
29184 * math/Makefile (type-float-routines): Add e_log2f_data.
29185 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
29186 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
29187 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
29188 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
29189 * sysdeps/i386/fpu/e_log2f_data.c: New file.
29190 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
29191 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
29192
29193 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29194
29195 * math/Makefile (type-float-routines): Add e_logf_data.
29196 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
29197 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
29198 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
29199 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
29200 * sysdeps/i386/fpu/e_logf_data.c: New file.
29201 * sysdeps/ia64/fpu/e_logf_data.c: New file.
29202 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
29203
29204 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
29205
29206 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
29207 undefined _DYNAMIC in PIE libc.a.
29208 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
29209 Likewse.
29210
29211 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29212
29213 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
29214 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
29215 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
29216 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
29217 (__signbit): Remove.
29218 (__signbitl): Remove.
29219 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
29220 (__signbit): Remove.
29221 (__signbitl): Remove.
29222 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
29223 (__signbit): Remove.
29224 (__signbitl): Remove.
29225 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
29226 (__signbit): Remove.
29227 (__signbitl): Remove.
29228 * sysdeps/tile/bits/mathinline.h: Delete file.
29229 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
29230 (__signbit): Remove.
29231 (__signbitl): Remove.
29232
29233 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
29234
29235 * math/math.h: Improve handling of C99 isgreater macros.
29236 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
29237 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
29238 * sysdeps/powerpc/bits/mathinline.h: Likewise.
29239 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
29240 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
29241
29242 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
29243
29244 * sysdeps/aarch64/libm-test-ulps: Update.
29245
29246 2017-09-28 Joseph Myers <joseph@codesourcery.com>
29247
29248 [BZ #22225]
29249 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29250 math_opt_barrier on argument when doing arithmetic on it.
29251 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
29252 Likewise. Use math_force_eval not math_opt_barrier after
29253 arithmetic.
29254 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
29255 math_opt_barrier on argument when doing arithmetic on it.
29256 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
29257 Likewise.
29258
29259 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
29260
29261 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
29262 libc_hidden_def.
29263 (__freeifaddrs): Likewise.
29264
29265 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
29266
29267 * include/dirent.h (__dirfd): New declaration.
29268 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
29269 alias.
29270 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
29271 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
29272 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
29273 * include/unistd.h (__revoke): New declaration.
29274 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
29275 alias.
29276 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
29277 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
29278 revoke.
29279 * include/dirent.h (__seekdir): New declaration.
29280 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
29281 redefine as weak alias.
29282 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
29283 of seekdir.
29284 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
29285 and use libc_hidden_def on them.
29286 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
29287 them.
29288 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
29289 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
29290 instead of getifaddrs and freeifaddrs.
29291
29292 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29293
29294 [BZ #18822]
29295 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
29296 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
29297 (__dso_handle): Remove declaration.
29298 * dlfcn/tstatexit.c (__dso_handle): Removed.
29299 (main): Don't check __dso_handle.
29300 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
29301 (main): Don't check __dso_handle.
29302 * include/dso_handle.h: New file.
29303 * malloc/mtrace.c: Include <dso_handle.h>.
29304 (mtrace): Pass __dso_handle directly.
29305 * nptl/pthread_atfork.c: Include <dso_handle.h>.
29306 (__dso_handle): Remove declaration.
29307 (__pthread_atfork): Pass __dso_handle directly.
29308 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
29309 (__dso_handle): Removed.
29310 * posix/wordexp-test.c: Include <dso_handle.h>.
29311 (__dso_handle): Remove declaration.
29312 (__app_register_atfork): Pass __dso_handle directly.
29313 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
29314 (__dso_handle): Remove declaration.
29315 (at_quick_exit): Pass __dso_handle directly.
29316 * stdlib/atexit.c: Include <dso_handle.h>.
29317 (__dso_handle): Remove declaration.
29318 (atexit): Pass __dso_handle directly.
29319 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
29320 (__dso_handle): Removed.
29321
29322 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29323
29324 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
29325 using VDSO.
29326
29327 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
29328
29329 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
29330 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
29331 values to correct default value for given type.
29332
29333 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
29334
29335 [BZ #22101]
29336 * elf/Makefile (tests): Add tst-debug1.
29337 ($(objpfx)tst-debug1): New.
29338 ($(objpfx)tst-debug1.out): Likewise.
29339 ($(objpfx)tst-debug1mod1.so): Likewise.
29340 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
29341 with p_filesz == 0.
29342 * elf/tst-debug1.c: New file.
29343
29344 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29345
29346 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
29347 Define using __ifunc.
29348
29349 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
29350
29351 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
29352 exp2f() values.
29353
29354 2017-09-26 Joseph Myers <joseph@codesourcery.com>
29355
29356 [BZ #22156]
29357 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
29358
29359 2017-09-26 Florian Weimer <fweimer@redhat.com>
29360
29361 * resolv/Makefile (tests-internal): Fix typo in comment.
29362
29363 2017-09-26 Florian Weimer <fweimer@redhat.com>
29364
29365 * resolv/nss_dns/dns-host.c: Fix typo in comment.
29366
29367 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29368
29369 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
29370 Use an union instead of a max_align_t array for __space,
29371 so that __space is the same size on all platforms.
29372 * malloc/scratch_buffer_grow_preserve.c
29373 (__libc_scratch_buffer_grow_preserve): Likewise.
29374
29375 [BZ #22183]
29376 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
29377 version to 2.
29378 * posix/Makefile (routines): Add glob-lstat-compat and
29379 glob64-lstat-compat.
29380 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
29381 * posix/glob-lstat-compat.c: New file.
29382 * posix/glob64-lstat-compat.c: Likewise.
29383 * posix/tst-glob_lstat_compat.c: Likewise.
29384 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
29385 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
29386 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
29387 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
29388 Likewise.
29389 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
29390 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
29391 * posix/glob.c (glob_lstat): New function.
29392 (glob): Rename to __glob and add versioned symbol to 2.27.
29393 (glob_in_dir): Use glob_lstat.
29394 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
29395 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
29396 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
29397 2.27.
29398 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
29399 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
29400 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
29401 gl_lstat on glob call.
29402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
29403 and glob64 symbols.
29404 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
29405 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
29406 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
29407 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
29408 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
29409 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
29410 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
29411 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
29412 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
29413 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
29414 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
29415 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
29416 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
29417 Likewise.
29418 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
29419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
29420 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
29421 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
29422 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
29423 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
29424 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
29425 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
29426 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
29427 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
29428 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
29429 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
29430
29431 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
29432
29433 * configure.ac (AS): Require binutils 2.25 or later.
29434 * configure: Regenerated.
29435
29436 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
29437
29438 [BZ #22207]
29439 * stdlib/test-atexit-race-common.c (do_test): Minimize required
29440 VM size.
29441
29442 2017-09-25 DJ Delorie <dj@redhat.com>
29443
29444 [BZ #22161]
29445 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
29446 resetting timeout.
29447
29448 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
29449
29450 * sysdeps/ieee754/dbl-64/sincos32.h
29451 [SINCCOS32_H]: Remove define.
29452 [SINCOS32_H]: Define.
29453
29454 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29455
29456 * math/Versions (expf): New libm symbol at GLIBC_2.27.
29457 (exp2f): Likewise.
29458 * math/w_exp2f.c: New file.
29459 * math/w_expf.c: New file.
29460 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
29461 * math/w_expf_compat.c (__expf_compat): Likewise.
29462 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
29463 * sysdeps/ia64/fpu/e_expf.S: Likewise.
29464 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
29465 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
29466 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
29467 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
29468 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
29469 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
29470 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
29471 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
29472 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
29473 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
29474 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
29475 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
29476 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
29477 Likewise.
29478 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
29479 Likewise.
29480 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
29481 Likewise.
29482 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
29483 Likewise.
29484 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
29485 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
29486 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
29487 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
29488 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
29489 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
29490 Likewise.
29491 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
29492 Likewise.
29493 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
29494 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
29495 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
29496
29497 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
29498
29499 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
29500 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
29501 (roundtoint, converttoint): Likewise.
29502 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
29503 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
29504 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
29505 * sysdeps/ieee754/flt-32/math_config.h: New file.
29506 * sysdeps/ieee754/flt-32/math_errf.c: New file.
29507 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
29508 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
29509 * sysdeps/i386/fpu/math_errf.c: New file.
29510 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
29511 * sysdeps/ia64/fpu/math_errf.c: New file.
29512 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
29513 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
29514
29515 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
29516
29517 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
29518 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
29519 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
29520 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
29521 to make sure that these symbols are defined.
29522 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
29523 of <limits.h>
29524 (__need_NULL): Do not define.
29525 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
29526 alignment.
29527 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
29528 CMGROUP_MAX, cmsgcred): Do not define.
29529 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
29530 NULL.
29531 * bits/socket.h: Likewise.
29532 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
29533 __gettimeofday instead of gettimeofday.
29534 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
29535 instead of settimeofday.
29536
29537 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29538
29539 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
29540 (asinhf): Define using libm_alias_float.
29541 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
29542 (atanf): Define using libm_alias_float.
29543 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
29544 (cbrtf): Define using libm_alias_float.
29545 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
29546 (ceilf): Define using libm_alias_float.
29547 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
29548 <libm-alias-float.h>.
29549 (copysignf): Define using libm_alias_float.
29550 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
29551 (cosf): Define using libm_alias_float.
29552 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
29553 (erff): Define using libm_alias_float.
29554 (erfcf): Likewise.
29555 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
29556 (expm1f): Define using libm_alias_float.
29557 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
29558 (fabsf): Define using libm_alias_float.
29559 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
29560 (floorf): Define using libm_alias_float.
29561 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
29562 (frexpf): Define using libm_alias_float.
29563 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
29564 libm_alias_float.
29565 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
29566 <libm-alias-float.h>.
29567 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
29568 libm_alias_float.
29569 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
29570 <libm-alias-float.h>.
29571 (getpayloadf): Define using libm_alias_float.
29572 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
29573 <libm-alias-float.h>.
29574 (llrintf): Define using libm_alias_float.
29575 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
29576 <libm-alias-float.h>.
29577 (llroundf): Define using libm_alias_float.
29578 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
29579 (logbf): Define using libm_alias_float.
29580 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
29581 (lrintf): Define using libm_alias_float.
29582 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
29583 (lroundf): Define using libm_alias_float.
29584 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
29585 (modff): Define using libm_alias_float.
29586 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
29587 <libm-alias-float.h>.
29588 (nearbyintf): Define using libm_alias_float.
29589 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
29590 <libm-alias-float.h>.
29591 (nextafterf): Define using libm_alias_float.
29592 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
29593 <libm-alias-float.h>.
29594 (nextupf): Define using libm_alias_float.
29595 * sysdeps/ieee754/flt-32/s_remquof.c: Include
29596 <libm-alias-float.h>.
29597 (remquof): Define using libm_alias_float.
29598 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
29599 (rintf): Define using libm_alias_float.
29600 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
29601 <libm-alias-float.h>.
29602 (roundevenf): Define using libm_alias_float.
29603 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
29604 (roundf): Define using libm_alias_float.
29605 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
29606 using libm_alias_float.
29607 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
29608 <libm-alias-float.h>.
29609 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
29610 Define using libm_alias_float.
29611 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
29612 <libm-alias-float.h>.
29613 (sincosf): Define using libm_alias_float.
29614 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
29615 (sinf): Define using libm_alias_float.
29616 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
29617 (tanf): Define using libm_alias_float.
29618 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
29619 (tanhf): Define using libm_alias_float.
29620 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
29621 <libm-alias-float.h>.
29622 (totalorderf): Define using libm_alias_float.
29623 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
29624 <libm-alias-float.h>.
29625 (totalordermagf): Define using libm_alias_float.
29626 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
29627 (truncf): Define using libm_alias_float.
29628 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
29629 libm_alias_float.
29630 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
29631 libm_alias_float.
29632
29633 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29634
29635 [BZ #22146]
29636 math/math.h: Let fpclassify use the builtin in C++ mode, even
29637 when optimazing for size.
29638
29639 2017-09-22 Joseph Myers <joseph@codesourcery.com>
29640
29641 * csu/Makefile (generated): Do not add version-info.h.
29642 (before-compile): Likewise.
29643 (all-Banner-files): Remove variable.
29644 ($(objpfx)version-info.h): Remove rule.
29645 * csu/version.c (banner): Do not include "version-info.h".
29646 * libidn/Banner: Remove.
29647 * manual/contrib.texi (Simon Josefsson): New entry.
29648
29649 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29650
29651 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
29652 Remove conditionals on LDBL_MANT_DIG.
29653 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
29654 (__ieee754_lgammal_r): Likewise.
29655
29656 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29657
29658 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
29659 _Float128 and L().
29660 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
29661 _Float128 and L(). Replace _Float128 with long double and L(x)
29662 with xL, throughout the file.
29663 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29664 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29665 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29666 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29667
29668 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29669
29670 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
29671 sysdeps/ieee754/ldbl-128ibm.
29672 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
29673 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
29674 of including it. Keep _Float128 and L() intact. These will be
29675 reviewed by a separate patch.
29676 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
29677 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
29678 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
29679 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
29680
29681 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29682
29683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
29684 (__finitef128): Define to __redirect___finitef128.
29685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
29686 (__isinff128): Define to __redirect___isinff128.
29687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
29688 (__isnanf128): Define to __redirect___isnanf128.
29689
29690 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
29691
29692 * sysdeps/powerpc/powerpc64le/Makefile
29693 (CFLAGS-tst-strtod-nan-locale.c): New variable.
29694 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
29695
29696 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
29697 Carlos O'Donell <carlos@redhat.com>
29698
29699 [BZ #22180]
29700 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
29701 * stdlib/test-dlclose-exit-race.c: New file.
29702 * stdlib/test-dlclose-exit-race-helper.c: New file.
29703 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
29704
29705 2017-09-21 Joseph Myers <joseph@codesourcery.com>
29706
29707 * crypt/Banner: Remove file.
29708 * nptl/Banner: Likewise.
29709 * resolv/Banner: Likewise.
29710 * soft-fp/Banner: Likewise.
29711 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
29712 ($(objpfx)version.d): Remove dependency on banner.h.
29713 ($(objpfx)version.os): Likewise.
29714 * nptl/version.c (banner): Do not include banner.h.
29715 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
29716 Jelinek and BIND code.
29717
29718 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29719 Carlos O'Donell <carlos@redhat.com>
29720
29721 * support/xdlfcn.h: New file.
29722 * support/xdlfcn.c: New file.
29723 * support/Makefile (libsupport-routines): Add xdlfcn.
29724 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
29725
29726 2017-09-20 Joseph Myers <joseph@codesourcery.com>
29727
29728 [BZ #20142]
29729 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
29730 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
29731 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
29732 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
29733 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
29734 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
29735 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
29736 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
29737
29738 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
29739 Ricky Zhou <rickyz@google.com>
29740 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
29741
29742 [BZ #14333]
29743 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
29744 Remove atomics.
29745 (__new_exitfn): Fail registration when we finished at_exit processing.
29746 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
29747 * stdlib/on_exit.c (__on_exit): Likewise.
29748 * stdlib/exit.c (__exit_funcs_done): New variable.
29749 (__run_exit_handlers): Use __exit_funcs_lock.
29750 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
29751 declarations.
29752 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
29753 (test-cxa_atexit-race, test-on_exit-race): New tests.
29754 * stdlib/test-atexit-race-common.c: New file.
29755 * stdlib/test-atexit-race.c: New file.
29756 * stdlib/test-at_quick_exit-race.c: New file.
29757 * stdlib/test-cxa_atexit-race.c: New file.
29758 * stdlib/test-on_exit-race.c: New file.
29759
29760 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
29761
29762 * benchtests/Makefile: Add exp2f and log2f benchmarks.
29763 * benchtests/exp2f-inputs: Copy of expf-inputs.
29764 * benchtests/log2f-inputs: Copy of logf-inputs.
29765
29766 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29767
29768 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
29769 Explicitly take address of first element of array arguments in
29770 call to INLINE_SYSCALL.
29771
29772 2017-09-19 Andreas Schwab <schwab@suse.de>
29773
29774 [BZ #22134]
29775 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
29776 execveat first.
29777 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
29778 unimplemented.
29779 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
29780 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
29781 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
29782 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
29783 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
29784 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29785 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
29786 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
29787 * posix/Makefile (tests): Add tst-fexecve.
29788 * posix/tst-fexecve.c: New file.
29789
29790 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29791
29792 * benchtests/Makefile: Add logf benchmark.
29793 * benchtests/logf-inputs: Add reduced trace from wrf_r.
29794
29795 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29796
29797 * benchtests/Makefile: Add expf benchmark.
29798 * benchtests/expf-inputs: Add reduced trace from wrf_r.
29799
29800 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
29801
29802 * csu/Makefile: Add -funwind-tables to libc-start.c.
29803 * debug/Makefile: Add -funwind-tables to backtrace.c.
29804 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
29805 * sysdeps/arm/Makefile: Likewise.
29806 * sysdeps/i386/Makefile: Likewise.
29807 * sysdeps/m68k/Makefile: Likewise.
29808 * sysdeps/mips/Makefile: Likewise.
29809 * sysdeps/nios2/Makefile: Likewise.
29810 * sysdeps/sh/Makefile: Likewise.
29811 * sysdeps/sparc/Makefile: Likewise.
29812
29813 2017-09-19 Joseph Myers <joseph@codesourcery.com>
29814
29815 * benchtests/Makefile (bench-math): Add trunc and truncf.
29816 (CFLAGS-bench-trunc.c): New variable.
29817 (CFLAGS-bench-truncf.c): Likewise.
29818 * benchtests/trunc-inputs: New file.
29819 * benchtests/truncf-inputs: Likewise.
29820
29821 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
29822
29823 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
29824
29825 2017-09-18 Joseph Myers <joseph@codesourcery.com>
29826
29827 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
29828 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
29829 redefine.
29830 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
29831 (exp10l): Define as weak alias.
29832 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
29833 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
29834 and redefine.
29835 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
29836 (remainderl): Define as weak alias.
29837
29838 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
29839 (fmal): Define using libm_alias_ldouble.
29840 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
29841 (acoshl): Define using libm_alias_ldouble.
29842 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
29843 (acosl): Define using libm_alias_ldouble.
29844 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
29845 (asinl): Define using libm_alias_ldouble.
29846 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
29847 (atan2l): Define using libm_alias_ldouble.
29848 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
29849 (atanhl): Define using libm_alias_ldouble.
29850 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
29851 (coshl): Define using libm_alias_ldouble.
29852 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
29853 (exp10l): Define using libm_alias_ldouble.
29854 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
29855 (exp2l): Define using libm_alias_ldouble.
29856 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
29857 (expl): Define using libm_alias_ldouble.
29858 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
29859 (fmodl): Define using libm_alias_ldouble.
29860 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
29861 (hypotl): Define using libm_alias_ldouble.
29862 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
29863 (j0l): Define using libm_alias_ldouble.
29864 (y0l): Likewise.
29865 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
29866 (j1l): Define using libm_alias_ldouble.
29867 (y1l): Likewise.
29868 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
29869 (jnl): Define using libm_alias_ldouble.
29870 (ynl): Likewise.
29871 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
29872 (log10l): Define using libm_alias_ldouble.
29873 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
29874 (log2l): Define using libm_alias_ldouble.
29875 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
29876 (logl): Define using libm_alias_ldouble.
29877 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
29878 (powl): Define using libm_alias_ldouble.
29879 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
29880 (remainderl): Define using libm_alias_ldouble.
29881 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
29882 (sinhl): Define using libm_alias_ldouble.
29883 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
29884 (sqrtl): Define using libm_alias_ldouble.
29885 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
29886 (tgammal): Define using libm_alias_ldouble.
29887 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
29888 (exp10l): Do not use long_double_symbol here.
29889 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
29890 [LIBM_SVID_COMPAT] (remainderl): Likewise.
29891 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
29892 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29893 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29894 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29895 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29896 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29897 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29898 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
29899 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29900 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29901 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29902 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29903 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29904 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29905 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29906 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29907 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29908 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29909 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29910 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29911
29912 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
29913
29914 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
29915 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
29916
29917 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
29918
29919 * io/read.c (read): Add libc_hidden_weak.
29920 * sysdeps/mach/hurd/read.c (read): Likewise.
29921 * io/write.c (write): Likewise.
29922 * sysdeps/mach/hurd/write.c (write): Likewise.
29923 * io/pread64.c (__pread64): Likewise.
29924 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
29925 * posix/pread64.c (__pread64): Add libc_hidden_def.
29926
29927 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
29928
29929 * benchtests/scripts/compare_strings.py: New option -g.
29930 (draw_graph): Print a message that a graph is being generated.
29931 (process_results): Generate graph only if -g is passed.
29932 (main): Process option -g.
29933
29934 * benchtests/scripts/compare_strings.py (process_results):
29935 Better spacing for output.
29936
29937 * benchtests/scripts/compare_strings.py: Use argparse.
29938 * benchtests/README: Document existence of compare_strings.py.
29939
29940 2017-09-15 Joseph Myers <joseph@codesourcery.com>
29941
29942 * math/s_fma.c: Include <libm-alias-double.h>.
29943 (fma): Define using libm_alias_double.
29944 * math/s_nextafter.c: Include <libm-alias-double.h>.
29945 (nextafter): Define using libm_alias_double.
29946 * math/w_acos_compat.c: Include <libm-alias-double.h>.
29947 (acos): Define using libm_alias_double.
29948 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
29949 (aocsh): Define using libm_alias_double.
29950 * math/w_asin_compat.c: Include <libm-alias-double.h>.
29951 (asin): Define using libm_alias_double.
29952 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
29953 (atan2): Define using libm_alias_double.
29954 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
29955 (atanh): Define using libm_alias_double.
29956 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
29957 (cosh): Define using libm_alias_double.
29958 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
29959 (exp10): Define using libm_alias_double.
29960 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
29961 (exp2): Define using libm_alias_double.
29962 * math/w_exp_compat.c: Include <libm-alias-double.h>.
29963 (exp): Define using libm_alias_double.
29964 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
29965 (fmod): Define using libm_alias_double.
29966 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
29967 (hypot): Define using libm_alias_double.
29968 * math/w_j0_compat.c: Include <libm-alias-double.h>.
29969 (j0): Define using libm_alias_double.
29970 (y0): Likewise.
29971 * math/w_j1_compat.c: Include <libm-alias-double.h>.
29972 (j1): Define using libm_alias_double.
29973 (y1): Likewise.
29974 * math/w_jn_compat.c: Include <libm-alias-double.h>.
29975 (jn): Define using libm_alias_double.
29976 (yn): Likewise.
29977 * math/w_log10_compat.c: Include <libm-alias-double.h>.
29978 (log10): Define using libm_alias_double.
29979 * math/w_log2_compat.c: Include <libm-alias-double.h>.
29980 (log2): Define using libm_alias_double.
29981 * math/w_log_compat.c: Include <libm-alias-double.h>.
29982 (log): Define using libm_alias_double.
29983 * math/w_pow_compat.c: Include <libm-alias-double.h>.
29984 (pow): Define using libm_alias_double.
29985 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
29986 (remainder): Define using libm_alias_double.
29987 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
29988 (sinh): Define using libm_alias_double.
29989 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
29990 (sqrt): Define using libm_alias_double.
29991 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
29992 (tgamma): Define using libm_alias_double.
29993 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
29994 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
29995 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
29996 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
29997 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
29998 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
29999 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
30000 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
30001 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
30002 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
30003 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
30004 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
30005 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
30006 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
30007 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
30008 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
30009 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
30010 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
30011 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
30012 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
30013 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
30014 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
30015 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
30016 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
30017 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
30018
30019 * math/e_acoshl.c: Remove.
30020 * math/e_acosl.c: Likewise.
30021 * math/e_asinl.c: Likewise.
30022 * math/e_atan2l.c: Likewise.
30023 * math/e_atanhl.c: Likewise.
30024 * math/e_coshl.c: Likewise.
30025 * math/e_expl.c: Likewise.
30026 * math/e_fmodl.c: Likewise.
30027 * math/e_gammal_r.c: Likewise.
30028 * math/e_hypotl.c: Likewise.
30029 * math/e_j0l.c: Likewise.
30030 * math/e_j1l.c: Likewise.
30031 * math/e_jnl.c: Likewise.
30032 * math/e_lgammal_r.c: Likewise.
30033 * math/e_log10l.c: Likewise.
30034 * math/e_log2l.c: Likewise.
30035 * math/e_logl.c: Likewise.
30036 * math/e_powl.c: Likewise.
30037 * math/e_rem_pio2l.c: Likewise.
30038 * math/e_sinhl.c: Likewise.
30039 * math/e_sqrtf128.c: Likewise.
30040 * math/e_sqrtl.c: Likewise.
30041 * math/k_cosl.c: Likewise.
30042 * math/k_sinl.c: Likewise.
30043 * math/k_tanl.c: Likewise.
30044 * math/s_asinhl.c: Likewise.
30045 * math/s_atanl.c: Likewise.
30046 * math/s_cbrtl.c: Likewise.
30047 * math/s_erfl.c: Likewise.
30048 * math/s_expm1l.c: Likewise.
30049 * math/s_log1pl.c: Likewise.
30050 * math/s_tanhl.c: Likewise.
30051
30052 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
30053
30054 [BZ #21745]
30055 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
30056 [$(subdir) = math] (sysdep_calls): New variable. Has the
30057 previous contents of sysdep_routines, but re-sorted..
30058 [$(subdir) = math] (sysdep_routines): Re-use the contents from
30059 sysdep_calls.
30060 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
30061 defined in sysdep_calls and replace by the respective m_* names.
30062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
30063 (compat_symbol): Undefine to avoid duplicated compat symbols in
30064 libc.
30065
30066 2017-09-15 Joseph Myers <joseph@codesourcery.com>
30067
30068 * math/s_fmaf.c: Include <libm-alias-float.h>.
30069 (fmaf): Define using libm_alias_float.
30070 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
30071 (acosf): Define using libm_alias_float.
30072 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
30073 (acoshf): Define using libm_alias_float.
30074 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
30075 (asinf): Define using libm_alias_float.
30076 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
30077 (atan2f): Define using libm_alias_float.
30078 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
30079 (atanhf): Define using libm_alias_float.
30080 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
30081 (coshf): Define using libm_alias_float.
30082 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
30083 (exp10f): Define using libm_alias_float.
30084 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
30085 (fmodf): Define using libm_alias_float.
30086 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
30087 (hypotf): Define using libm_alias_float.
30088 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
30089 (j0f): Define using libm_alias_float.
30090 (y0f): Likewise.
30091 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
30092 (j1f): Define using libm_alias_float.
30093 (y1f): Likewise.
30094 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
30095 (jnf): Define using libm_alias_float.
30096 (ynf): Likewise.
30097 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
30098 (log10f): Define using libm_alias_float.
30099 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
30100 (log2f): Define using libm_alias_float.
30101 * math/w_logf_compat.c: Include <libm-alias-float.h>.
30102 (logf): Define using libm_alias_float.
30103 * math/w_powf_compat.c: Include <libm-alias-float.h>.
30104 (powf): Define using libm_alias_float.
30105 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
30106 (remainderf): Define using libm_alias_float.
30107 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
30108 (sinhf): Define using libm_alias_float.
30109 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
30110 (sqrtf): Define using libm_alias_float.
30111 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
30112 (tgammaf): Define using libm_alias_float.
30113
30114 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30115
30116 * include/math.h (roundeven): Change hidden_proto call to
30117 __roundeven.
30118 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
30119 alias.
30120 [NO_LONG_DOUBLE] (__j0l): New strong alias.
30121 (y0): Rename to __y0 and define as weak alias.
30122 [NO_LONG_DOUBLE] (__y0l): New strong alias.
30123 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
30124 alias.
30125 (y0f): Rename to __y0f and define as weak alias.
30126 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
30127 alias.
30128 [NO_LONG_DOUBLE] (__j1l): New strong alias.
30129 (y1): Rename to __y1 and define as weak alias.
30130 [NO_LONG_DOUBLE] (__y1l): New strong alias.
30131 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
30132 alias.
30133 (y1f): Rename to __y1f and define as weak alias.
30134 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
30135 alias.
30136 [NO_LONG_DOUBLE] (__jnl): New strong alias.
30137 (yn): Rename to __yn and define as weak alias.
30138 [NO_LONG_DOUBLE] (__ynl): New strong alias.
30139 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
30140 alias.
30141 (ynf): Rename to __ynf and define as weak alias.
30142 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
30143 (fromfp): Define as weak alias.
30144 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
30145 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
30146 (fromfpx): Define as weak alias.
30147 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
30148 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
30149 __getpayload and define as weak alias.
30150 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30151 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
30152 __roundeven and define as weak alias.
30153 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30154 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
30155 __setpayload.
30156 (setpayload): Define as weak alias.
30157 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
30158 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
30159 __setpayloadsig.
30160 (setpayloadsig): Define as weak alias.
30161 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
30162 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
30163 __totalorder and define as weak alias.
30164 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30165 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
30166 to __totalordermag and define as weak alias.
30167 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30168 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
30169 (ufromfp): Define as weak alias.
30170 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
30171 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
30172 __ufromfpx.
30173 (ufromfpx): Define as weak alias.
30174 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
30175 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
30176 Rename to __getpayload and define as weak alias.
30177 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
30178 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
30179 Rename to __roundeven and define as weak alias.
30180 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
30181 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
30182 Rename to __totalorder and define as weak alias.
30183 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
30184 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
30185 (totalordermag): Rename to __totalordermag and define as weak
30186 alias.
30187 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
30188 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
30189 macro.
30190 (__roundevenl): Likewise.
30191 (__totalorderl): Likewise.
30192 (__totalordermagl): Likewise
30193 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
30194 __fromfpf128.
30195 (fromfpf128): Define as weak alias.
30196 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
30197 __fromfpxf128.
30198 (fromfpxf128): Define as weak alias.
30199 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
30200 __setpayloadf128.
30201 (setpayloadf128): Define as weak alias.
30202 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
30203 __setpayloadsigf128.
30204 (setpayloadsigf128): Define as weak alias.
30205 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
30206 __ufromfpf128.
30207 (ufromfpf128): Define as weak alias.
30208 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
30209 __ufromfpxf128.
30210 (ufromfpxf128): Define as weak alias.
30211 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
30212 (fromfpf): Define as weak alias.
30213 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
30214 __fromfpxf.
30215 (fromfpxf): Define as weak alias.
30216 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
30217 __getpayloadf and define as weak alias.
30218 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
30219 __roundevenf and define as weak alias.
30220 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
30221 __setpayloadf.
30222 (setpayloadf): Define as weak alias.
30223 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
30224 __setpayloadsigf.
30225 (setpayloadsigf): Define as weak alias.
30226 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
30227 __totalorderf and define as weak alias.
30228 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
30229 Rename to __totalordermagf and define as weak alias.
30230 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
30231 __ufromfpf.
30232 (ufromfpf): Define as weak alias.
30233 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
30234 __ufromfpxf.
30235 (ufromfpxf): Define as weak alias.
30236 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
30237 __fromfpl.
30238 (fromfpl): Define as weak alias.
30239 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
30240 __fromfpxl.
30241 (fromfpxl): Define as weak alias.
30242 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
30243 to __getpayloadl and define as weak alias.
30244 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
30245 __roundevenl and define as weak alias.
30246 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
30247 __setpayloadl.
30248 (setpayloadl): Define as weak alias.
30249 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
30250 __setpayloadsigl.
30251 (setpayloadsigl): Define as weak alias.
30252 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
30253 to __totalorderl and define as weak alias.
30254 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
30255 Rename to __totalordermagl and define as weak alias.
30256 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
30257 __ufromfpl.
30258 (ufromfpl): Define as weak alias.
30259 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
30260 __ufromfpxl.
30261 (ufromfpxl): Define as weak alias.
30262 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
30263 __fromfpl.
30264 (fromfpl): Define as weak alias.
30265 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
30266 __fromfpxl.
30267 (fromfpxl): Define as weak alias.
30268 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
30269 Rename to __getpayloadl and define as weak alias.
30270 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
30271 to __roundevenl and define as weak alias. Call __roundeven
30272 instead of roundeven.
30273 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
30274 __setpayloadl.
30275 (setpayloadl): Define as weak alias.
30276 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
30277 __setpayloadsigl.
30278 (setpayloadsigl): Define as weak alias.
30279 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
30280 Rename to __totalorderl and define as weak alias.
30281 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
30282 Rename to __totalordermagl and define as weak alias.
30283 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
30284 __ufromfpl.
30285 (ufromfpl): Define as weak alias.
30286 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
30287 __ufromfpxl.
30288 (ufromfpxl): Define as weak alias.
30289 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
30290 __fromfpl.
30291 (fromfpl): Define as weak alias.
30292 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
30293 __fromfpxl.
30294 (fromfpxl): Define as weak alias.
30295 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
30296 __getpayloadl and define as weak alias.
30297 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
30298 __roundevenl and define as weak alias.
30299 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
30300 __setpayloadl.
30301 (setpayloadl): Define as weak alias.
30302 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
30303 __setpayloadsigl.
30304 (setpayloadsigl): Define as weak alias.
30305 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
30306 __totalorderl and define as weak alias.
30307 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
30308 Rename to __totalordermagl and define as weak alias.
30309 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
30310 __ufromfpl.
30311 (ufromfpl): Define as weak alias.
30312 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
30313 __ufromfpxl.
30314 (ufromfpxl): Define as weak alias.
30315
30316 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
30317
30318 * benchtests/bench-string.h (realloc_bufs): New function.
30319 (test_init): Call it.
30320 * benchtests/bench-memset-large.c (do_test): Likewise.
30321 * benchtests/bench-memset.c (do_test): Likewise.
30322
30323 * benchtests/bench-memset-large.c: Print output in JSON
30324 format.
30325 * benchtests/bench-memset.c: Likewise.
30326
30327 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30328
30329 [BZ #21084]
30330 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
30331 * iconvdata/Makefile: Add IBM858.
30332 * iconvdata/gconv-modules: Likewise.
30333 * iconvdata/tst-tables.sh: Likewise.
30334 * iconvdata/ibm858.c: New file.
30335 * localedata/charmaps/IBM858: Likewise.
30336
30337 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
30338
30339 [BZ #22023]
30340 * locales/niu_NZ (LC_TIME): copy "niu_NU".
30341 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
30342
30343 2017-09-14 Mike FABIAN <mfabian@redhat.com>
30344
30345 [BZ #22112]
30346 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
30347 and add tel_int_fmt.
30348
30349 2017-09-14 Joseph Myers <joseph@codesourcery.com>
30350
30351 * sysdeps/generic/libm-alias-float128.h: New file.
30352 * sysdeps/generic/math-type-macros-float128.h: Include
30353 <libm-alias-float128.h>.
30354 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30355
30356 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30357
30358 * sysdeps/generic/libm-alias-ldouble.h: New file.
30359 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
30360 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
30361 * sysdeps/generic/math-type-macros-ldouble.h: Include
30362 <libm-alias-ldouble.h>.
30363 [!declare_mgen_alias] (declare_mgen_alias): Define to use
30364 libm_alias_ldouble.
30365
30366 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
30367
30368 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
30369 * math/w_exp_compat.c: ... here.
30370 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
30371 * math/w_expf_compat.c: ... here.
30372 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
30373 * math/w_expl_compat.c: ... here.
30374 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
30375 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
30376 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
30377 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
30378
30379 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30380
30381 * math/w_scalbln_template.c (strong_alias): Do not undefine and
30382 redefine.
30383 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
30384 macro.
30385 (ldexpl): Only define as compat symbol for libc, not libm.
30386 (scalbnl): Define as compat symbol for libc here.
30387 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
30388 define for [IS_IN (libc)].
30389 (__ldexpl_2): Remove alias.
30390 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
30391 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
30392 name in long_double_symbol call.
30393 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
30394 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
30395 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
30396 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
30397 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
30398 Remove macro.
30399 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
30400 Define as compat symbol.
30401
30402 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30403
30404 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
30405 * sysdeps/unix/sysv/linux/alpha/Makefile
30406 [$(subdir) = csu] (sysdep_routines): Remove rule.
30407
30408 2017-09-13 Joseph Myers <joseph@codesourcery.com>
30409
30410 * sysdeps/generic/libm-alias-double.h: New file.
30411 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
30412 * sysdeps/generic/math-type-macros-double.h: Include
30413 <libm-alias-double.h>.
30414 [declare_mgen_alias] (declare_mgen_alias): Define to use
30415 libm_alias_double.
30416 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
30417 (M_LIBM_NEED_COMPAT): Remove macro.
30418 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
30419 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
30420 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
30421 code.
30422 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30423 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30424 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30425 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30426 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30427 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30428 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30429 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30430 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30431 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30432 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30433 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30434 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30435 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30436 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30437 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30438 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30439 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30440 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30441 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30442 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30443 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30444 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30445 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30446 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30447 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30448 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
30449 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
30450 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
30451 macro.
30452 (declare_mgen_alias): New macro.
30453 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
30454 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
30455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
30456 (M_LIBM_NEED_COMPAT): Remove macro.
30457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
30458 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
30459 <first-versions.h>.
30460 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
30461 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
30462
30463 2017-09-12 Joseph Myers <joseph@codesourcery.com>
30464
30465 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
30466 (declare_mgen_alias_2): Remove.
30467 * sysdeps/generic/math-type-macros-double.h
30468 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
30469 Likewise.
30470 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
30471 alias.
30472 (ldexp): Define with declare_mgen_alias.
30473 (scalbn): Likewise.
30474
30475 2017-09-12 Steve Ellcey <sellcey@cavium.com>
30476
30477 * grp/initgroups.c: Include config.h.
30478 (DEFAULT_CONFIG): New macro.
30479 (internal_getgrouplist): Use DEFAULT_CONFIG.
30480 * nscd/initgrcache.c (addinitgroupsX): Likewise.
30481 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
30482 (DEFAULT_DEFCONFIG): New macro.
30483 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
30484 * nss/grp-lookup.c: Include config.h
30485 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
30486 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
30487 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
30488 * manual/nss.texi: Update default values section.
30489
30490 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
30491
30492 [BZ #21967]
30493 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
30494 New.
30495 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
30496 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
30497 Handle MathVec_Prefer_No_AVX512.
30498 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
30499 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
30500 is set.
30501
30502 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
30503
30504 * posix/sched_primax.c (__sched_get_priority_max): Add
30505 libc_hidden_def.
30506 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
30507 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
30508 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
30509 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
30510 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
30511 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
30512 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
30513 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
30514 Add aliases.
30515
30516 2017-09-11 Joseph Myers <joseph@codesourcery.com>
30517
30518 * sysdeps/generic/libm-alias-float.h: New file.
30519 * sysdeps/generic/math-type-macros-float.h: Include
30520 <libm-alias-float.h>.
30521 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
30522
30523 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
30524
30525 [BZ #22093]
30526 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
30527 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
30528 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
30529 (HWCAP_IMPORTANT): Likewise.
30530 (HWCAP_X86_64): New enum.
30531 (HWCAP_X86_AVX512_1): Updated.
30532 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
30533 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
30534 (modules-names): Add x86_64/tst-x86_64mod-1.
30535 (LDFLAGS-tst-x86_64mod-1.so): New.
30536 ($(objpfx)tst-x86_64-1): Likewise.
30537 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
30538 (tst-x86_64-1-clean): Likewise.
30539 * sysdeps/x86_64/tst-x86_64-1.c: New file.
30540 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
30541
30542 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
30543
30544 * po/sv.po: Update translations.
30545 * po/fr.po: Likewise.
30546
30547 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
30548
30549 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
30550 seconds.
30551 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
30552 seconds.
30553 * elf/rtld-Rules: Fix $(error) use.
30554
30555 2017-09-09 Mike FABIAN <mfabian@redhat.com>
30556
30557 [BZ #14925]
30558 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
30559 * locale/iso-639.def: Change “Bengali” to “Bangla”.
30560 * localedata/locales/bn_BD: “Bengali” was still used in some
30561 comments. Change it to “Bangla”.
30562
30563 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
30564
30565 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
30566
30567 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30568
30569 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
30570 thunderx2t99p1 to list of cpu names.
30571 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
30572 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
30573
30574 2017-09-08 Steve Ellcey <sellcey@cavium.com>
30575
30576 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
30577 Use strcmp instead of tunable_is_name.
30578
30579 2017-09-08 Joseph Myers <joseph@codesourcery.com>
30580
30581 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30582 (F_GET_RW_HINT): New macro.
30583 [__USE_GNU] (F_SET_RW_HINT): Likewise.
30584 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
30585 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
30586 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
30587 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
30588 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
30589 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
30590 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
30591 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
30592
30593 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
30594 (F_ADD_SEALS): New macro.
30595 [__USE_GNU] (F_GET_SEALS): Likewise.
30596 [__USE_GNU] (F_SEAL_SEAL): Likewise.
30597 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
30598 [__USE_GNU] (F_SEAL_GROW): Likewise.
30599 [__USE_GNU] (F_SEAL_WRITE): Likewise.
30600
30601 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30602
30603 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
30604 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
30605 * posix/glob_internal.h (__glob_pattern_type):
30606 * posix/glob.c (glob):
30607 * posix/glob_pattern_p.c (__glob_pattern_p):
30608 Use them.
30609
30610 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
30611 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
30612 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
30613 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
30614 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30615 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
30616 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
30617 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
30618 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30619 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
30620 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30621 * sysdeps/wordsize-64/glob.c: Likewise.
30622 * sysdeps/wordsize-64/glob64.c: Likewise.
30623 * sysdeps/wordsize-64/globfree.c: Likewise.
30624 * sysdeps/wordsize-64/globfree64.c: Likewise.
30625 * sysdeps/unix/sysv/linux/glob.c: New file.
30626 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
30627 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
30628 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
30629 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
30630 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
30631 adds !GLOB_NO_OLD_VERSION as an extra condition.
30632 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
30633 using relative path instead of absolute one.
30634 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
30635 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30636 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30637 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
30638 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
30639 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
30640
30641 [BZ #1062]
30642 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
30643 (glob): Use the same scratch buffer for both getlogin_r and
30644 getpwnam_r. Don’t require preallocation of the login name. This
30645 simplifies storage allocation, and corrects the handling of
30646 long login names.
30647
30648 [BZ #1062]
30649 * posix/glob.c (glob): Port recent patches to platforms
30650 lacking getpwnam_r.
30651 (glob): Fix longstanding misuse of errno after getpwnam_r, which
30652 returns an error number rather than setting errno.
30653
30654 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
30655 instead of GCC extension.
30656 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
30657 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
30658 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
30659
30660 [BZ #866]
30661 [BZ #1062]
30662 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
30663 * posix/bug-glob1.c: Remove file.
30664 * posix/tst-glob_symlinks.c: New file.
30665 * posix/glob.c (__lstat64): New macro.
30666 (is_dir): New function.
30667 (glob, glob_in_dir): Match symlinks even if they are dangling.
30668 (link_stat, link_exists_p): Remove. All uses removed.
30669
30670 [BZ #1062]
30671 [BZ #19971]
30672 * posix/glob.c (struct readdir_result): Remove skip_entry member.
30673 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
30674 All uses removed.
30675
30676 [BZ #1062]
30677 CVE-2017-15671
30678 * posix/Makefile (routines): Add globfree, globfree64, and
30679 glob_pattern_p.
30680 * posix/flexmember.h: New file.
30681 * posix/glob_internal.h: Likewise.
30682 * posix/glob_pattern_p.c: Likewise.
30683 * posix/globfree.c: Likewise.
30684 * posix/globfree64.c: Likewise.
30685 * sysdeps/gnu/globfree64.c: Likewise.
30686 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
30687 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
30688 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
30689 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
30690 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
30691 * sysdeps/wordsize-64/globfree.c: Likewise.
30692 * sysdeps/wordsize-64/globfree64.c: Likewise.
30693 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
30694 [NDEBUG): Remove comments.
30695 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
30696 (dirent_type): New type. Use uint_fast8_t not
30697 uint8_t, as C99 does not require uint8_t.
30698 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
30699 (struct readdir_result): Use dirent_type. Do not define skip_entry
30700 unless it is needed; this saves a byte on platforms lacking d_ino.
30701 (readdir_result_type, readdir_result_skip_entry):
30702 New functions, replacing ...
30703 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
30704 these functions, which were removed. This makes the callers
30705 easier to read. All callers changed.
30706 (D_INO_TO_RESULT): Now empty if there is no d_ino.
30707 (size_add_wrapv, glob_use_alloca): New static functions.
30708 (glob, glob_in_dir): Check for size_t overflow in several places,
30709 and fix some size_t checks that were not quite right.
30710 Remove old code using SHELL since Bash no longer
30711 uses this.
30712 (glob, prefix_array): Separate MS code better.
30713 (glob_in_dir): Remove old Amiga and VMS code.
30714 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
30715 separate files.
30716 (glob_in_dir): Do not rely on undefined behavior in accessing
30717 struct members beyond their bounds. Use a flexible array member
30718 instead
30719 (link_stat): Rename from link_exists2_p and return -1/0 instead of
30720 0/1. Caller changed.
30721 (glob): Fix memory leaks.
30722 * posix/glob64 (globfree64): Move to separate file.
30723 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
30724 (globfree64): Remove hidden alias.
30725 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
30726 oldglob.
30727 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
30728 separate file.
30729 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
30730 define.
30731 Move compat code to separate file.
30732 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
30733 separate file.
30734
30735 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
30736
30737 * resolv/tst-resolv-qtypes.c (domain): Changed to
30738 "const char domain[] =".
30739
30740 2017-09-07 Joseph Myers <joseph@codesourcery.com>
30741
30742 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
30743 version to 3.1.6.
30744
30745 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
30746 (TCP_MD5SIG_EXT): Likewise.
30747 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
30748 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
30749 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
30750
30751 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
30752
30753 2017-09-07 Mike FABIAN <mfabian@redhat.com>
30754
30755 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
30756
30757 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
30758
30759 [BZ #22100]
30760 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
30761
30762 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30763
30764 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
30765 before assuming that the file is empty. Avoid testing buffer content
30766 when nread == 0.
30767
30768 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30769
30770 [BZ #18858]
30771 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30772 Remove define.
30773 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
30774 Likewise.
30775 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
30776 Likewise.
30777 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
30778 Likewise.
30779 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
30780 Likewise.
30781 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
30782 Likewise.
30783 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
30784 Likewise.
30785
30786 2017-09-06 Florian Weimer <fweimer@redhat.com>
30787
30788 * malloc/dynarray_emplace_enlarge.c
30789 (__libc_dynarray_emplace_enlarge): Add missing else.
30790
30791 2017-09-06 Florian Weimer <fweimer@redhat.com>
30792
30793 [BZ #22096]
30794 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
30795 case of failure to obtain the global conf object.
30796
30797 2017-09-06 Florian Weimer <fweimer@redhat.com>
30798
30799 [BZ #22095]
30800 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
30801 dynarray allocation failure.
30802
30803 2017-09-06 Florian Weimer <fweimer@redhat.com>
30804
30805 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
30806 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
30807 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
30808 New functions.
30809 (response): Call them. Add 'p', '6' flag processing.
30810 (test_reverse): New function.
30811 (test_get2_any): Call it.
30812 (test_no_inet6): Add 'p' test.
30813 (test_inet6): Likewise.
30814
30815 2017-09-06 Florian Weimer <fweimer@redhat.com>
30816
30817 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
30818 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
30819 the QNAME.
30820 (test_gai): Adjust query names. Add additional tests.
30821 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
30822 test_get2. Adjust query names. Add additional tests.
30823 (test_no_inet6): New function, extracted from threadfunc.
30824 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
30825 Add additional tests.
30826
30827 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30828
30829 [BZ #22070]
30830 * localedata/unicode-gen/utf8_gen.py: Set the width for
30831 characters with Prepended_Concatenation_Mark property to 1
30832 * localedata/charmaps/UTF-8: Updated using the improved script.
30833
30834 2017-09-06 Mike FABIAN <mfabian@redhat.com>
30835
30836 [BZ #21750]
30837 * localedata/unicode-gen/utf8_gen.py: Improve the script to
30838 use the range notation for all ranges of neighbouring characters
30839 with the same width.
30840
30841 2017-09-05 Joseph Myers <joseph@codesourcery.com>
30842
30843 * sysdeps/generic/math-type-macros-double.h: Include
30844 <math-svid-compat.h>.
30845 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30846 * sysdeps/generic/math-type-macros-float.h: Include
30847 <math-svid-compat.h>.
30848 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30849 * sysdeps/generic/math-type-macros-ldouble.h: Include
30850 <math-svid-compat.h>.
30851 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
30852 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
30853 condition.
30854 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
30855 * math/w_acosf_compat.c: Likewise.
30856 * math/w_acosh_compat.c: Likewise.
30857 * math/w_acoshf_compat.c: Likewise.
30858 * math/w_acoshl_compat.c: Likewise.
30859 * math/w_acosl_compat.c: Likewise.
30860 * math/w_asin_compat.c: Likewise.
30861 * math/w_asinf_compat.c: Likewise.
30862 * math/w_asinl_compat.c: Likewise.
30863 * math/w_atan2_compat.c: Likewise.
30864 * math/w_atan2f_compat.c: Likewise.
30865 * math/w_atan2l_compat.c: Likewise.
30866 * math/w_atanh_compat.c: Likewise.
30867 * math/w_atanhf_compat.c: Likewise.
30868 * math/w_atanhl_compat.c: Likewise.
30869 * math/w_cosh_compat.c: Likewise.
30870 * math/w_coshf_compat.c: Likewise.
30871 * math/w_coshl_compat.c: Likewise.
30872 * math/w_exp10_compat.c: Likewise.
30873 * math/w_exp10f_compat.c: Likewise.
30874 * math/w_exp10l_compat.c: Likewise.
30875 * math/w_exp2_compat.c: Likewise.
30876 * math/w_exp2f_compat.c: Likewise.
30877 * math/w_exp2l_compat.c: Likewise.
30878 * math/w_fmod_compat.c: Likewise.
30879 * math/w_fmodf_compat.c: Likewise.
30880 * math/w_fmodl_compat.c: Likewise.
30881 * math/w_hypot_compat.c: Likewise.
30882 * math/w_hypotf_compat.c: Likewise.
30883 * math/w_hypotl_compat.c: Likewise.
30884 * math/w_j0_compat.c: Likewise.
30885 * math/w_j0f_compat.c: Likewise.
30886 * math/w_j0l_compat.c: Likewise.
30887 * math/w_j1_compat.c: Likewise.
30888 * math/w_j1f_compat.c: Likewise.
30889 * math/w_j1l_compat.c: Likewise.
30890 * math/w_jn_compat.c: Likewise.
30891 * math/w_jnf_compat.c: Likewise.
30892 * math/w_jnl_compat.c: Likewise.
30893 * math/w_lgamma_r_compat.c: Likewise.
30894 * math/w_lgammaf_r_compat.c: Likewise.
30895 * math/w_lgammal_r_compat.c: Likewise.
30896 * math/w_log10_compat.c: Likewise.
30897 * math/w_log10f_compat.c: Likewise.
30898 * math/w_log10l_compat.c: Likewise.
30899 * math/w_log2_compat.c: Likewise.
30900 * math/w_log2f_compat.c: Likewise.
30901 * math/w_log2l_compat.c: Likewise.
30902 * math/w_log_compat.c: Likewise.
30903 * math/w_logf_compat.c: Likewise.
30904 * math/w_logl_compat.c: Likewise.
30905 * math/w_pow_compat.c: Likewise.
30906 * math/w_powf_compat.c: Likewise.
30907 * math/w_powl_compat.c: Likewise.
30908 * math/w_remainder_compat.c: Likewise.
30909 * math/w_remainderf_compat.c: Likewise.
30910 * math/w_remainderl_compat.c: Likewise.
30911 * math/w_sinh_compat.c: Likewise.
30912 * math/w_sinhf_compat.c: Likewise.
30913 * math/w_sinhl_compat.c: Likewise.
30914 * math/w_sqrt_compat.c: Likewise.
30915 * math/w_sqrtf_compat.c: Likewise.
30916 * math/w_sqrtl_compat.c: Likewise.
30917 * math/w_tgamma_compat.c: Likewise.
30918 * math/w_tgammaf_compat.c: Likewise.
30919 * math/w_tgammal_compat.c: Likewise.
30920 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
30921 [LIBM_SVID_COMPAT].
30922 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
30923 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
30924 [LIBM_SVID_COMPAT].
30925 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
30926 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
30927 [LIBM_SVID_COMPAT].
30928 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
30929 * sysdeps/i386/fpu/w_sqrt.c: New file.
30930 * sysdeps/ia64/fpu/w_acos.c: Likewise.
30931 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
30932 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
30933 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
30934 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
30935 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
30936 * sysdeps/ia64/fpu/w_asin.c: Likewise.
30937 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
30938 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
30939 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
30940 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
30941 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
30942 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
30943 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
30944 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
30945 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
30946 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
30947 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
30948 * sysdeps/ia64/fpu/w_exp.c: Likewise.
30949 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
30950 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
30951 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
30952 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
30953 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
30954 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
30955 * sysdeps/ia64/fpu/w_expf.c: Likewise.
30956 * sysdeps/ia64/fpu/w_expl.c: Likewise.
30957 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
30958 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
30959 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
30960 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
30961 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
30962 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
30963 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
30964 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
30965 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
30966 * sysdeps/ia64/fpu/w_log.c: Likewise.
30967 * sysdeps/ia64/fpu/w_log10.c: Likewise.
30968 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
30969 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
30970 * sysdeps/ia64/fpu/w_log2.c: Likewise.
30971 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
30972 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
30973 * sysdeps/ia64/fpu/w_logf.c: Likewise.
30974 * sysdeps/ia64/fpu/w_logl.c: Likewise.
30975 * sysdeps/ia64/fpu/w_pow.c: Likewise.
30976 * sysdeps/ia64/fpu/w_powf.c: Likewise.
30977 * sysdeps/ia64/fpu/w_powl.c: Likewise.
30978 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
30979 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
30980 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
30981 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
30982 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
30983 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
30984 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
30985 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
30986 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
30987 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
30988 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
30989 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
30990 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
30991 [LIBM_SVID_COMPAT].
30992 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30993 * sysdeps/ieee754/k_standard.c: Likewise.
30994 * sysdeps/ieee754/k_standardf.c: Likewise.
30995 * sysdeps/ieee754/k_standardl.c: Likewise.
30996 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30997 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30998 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30999 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
31000 long_double_symbol call on [LIBM_SVID_COMPAT].
31001 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
31002 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
31003 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
31004 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
31005 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
31006 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
31007 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
31008 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
31009 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
31010 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
31011 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
31012 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
31013 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
31014 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
31015 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
31016 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
31017 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
31018 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
31019 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
31020 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
31021 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
31022 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
31023
31024 2017-09-05 Steve Ellcey <sellcey@cavium.com>
31025
31026 * include/shlib-compat.h (TEST_COMPAT): New Macro.
31027 * malloc/tst-mallocstate.c: Convert from test-skeleton
31028 to test-driver. Ifdef code using TEST_COMPAT macro.
31029 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
31030 * math/test-matherr.c: Likewise.
31031
31032 2017-09-05 Joseph Myers <joseph@codesourcery.com>
31033
31034 [BZ #22086]
31035 * debug/pcprofiledump.c (main): Use byte-swapped mask when
31036 comparing word with byte-swapped constant.
31037
31038 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
31039
31040 [BZ #20498]
31041 * locale/iso-639.def: add Miskito.
31042 * localedata/SUPPORTED: Add miq_NI/UTF-8.
31043 * localedata/locales/miq_NI: New file.
31044
31045 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
31046
31047 [BZ #18822]
31048 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
31049 (__mkdir): Likewise.
31050 * io/chmod.c (__chmod): Add libc_hidden_def.
31051 * io/mkdir.c (__mkdir): Likewise.
31052 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
31053 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
31054 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
31055 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
31056
31057 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31058
31059 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
31060 version to 4.13.
31061
31062 [BZ #22082]
31063 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
31064 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
31065
31066 2017-09-04 Florian Weimer <fweimer@redhat.com>
31067
31068 * math/math.h: Issue warning if log is defined.
31069
31070 2017-09-04 Joseph Myers <joseph@codesourcery.com>
31071
31072 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
31073 kernel version to 4.13.
31074
31075 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31076
31077 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
31078 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
31079 parameter.
31080 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
31081 just <bits/types.h>.
31082 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
31083 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
31084 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
31085 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
31086 * misc/preadv2.c: Include <errno.h>.
31087 * misc/preadv64v2.c: Include <errno.h>.
31088 * misc/pwritev2.c: Include <errno.h>.
31089 * misc/pwritev64v2.c: Include <errno.h>.
31090 * sysdeps/posix/preadv2.c: Include <errno.h>.
31091 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
31092 Fix <unistd.h> inclusion.
31093 * sysdeps/posix/pwritev2.c: Include <errno.h>.
31094 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
31095 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
31096 __strtoul_internal): New functions.
31097 * sysdeps/posix/pause.c: Include <sigsetops.h>.
31098 * sysdeps/posix/system.c: Include <sigsetops.h>.
31099 * sysdeps/mach/hurd/i386/Makefile
31100 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
31101 [$(subdir) = csu] (sysdep-only-routines): Likewise.
31102 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
31103 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
31104 __feraiseexcept_renamed to feraiseexcept instead of
31105 __GI_feraiseexcept.
31106 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
31107 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
31108 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
31109 RWF_NOWAIT): Define to 0 if undefined already.
31110 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
31111 boils down to 0.
31112 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
31113 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
31114
31115 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31116
31117 * manual/math.texi (pow10): Do not document.
31118 (pow10f): Likewise.
31119 (pow10l): Likewise.
31120 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
31121 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
31122 * math/libm-test-exp10.inc (pow10_test): Remove.
31123 (do_test): Do not call pow10.
31124 * math/w_exp10_compat.c (pow10): Make into compat symbol.
31125 [NO_LONG_DOUBLE] (pow10l): Likewise.
31126 * math/w_exp10f_compat.c (pow10f): Likewise.
31127 * math/w_exp10l_compat.c (pow10l): Likewise.
31128 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
31129 (pow10): Make into compat symbol.
31130 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
31131 (pow10f): Make into compat symbol.
31132 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
31133 (pow10l): Make into compat symbol.
31134 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
31135 pow10.
31136 (CFLAGS-nldbl-pow10.c): Remove variable..
31137 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
31138 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
31139 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
31140 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
31141 Undefine and redefine.
31142 (pow10l): Make into compat symbol.
31143 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
31144 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
31145 * sysdeps/arm/libm-test-ulps: Likewise.
31146 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
31147 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
31148 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
31149 * sysdeps/microblaze/libm-test-ulps: Likewise.
31150 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
31151 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
31152 * sysdeps/nios2/libm-test-ulps: Likewise.
31153 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
31154 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
31155 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
31156 * sysdeps/sh/libm-test-ulps: Likewise.
31157 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
31158 * sysdeps/tile/libm-test-ulps: Likewise.
31159 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31160
31161 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31162
31163 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
31164
31165 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31166
31167 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
31168 "../ChangeLog.old/ChangeLog.8".
31169 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
31170 "../ChangeLog.old/ChangeLog.14".
31171
31172 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31173
31174 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
31175 Threads Library.
31176
31177 2017-09-01 Joseph Myers <joseph@codesourcery.com>
31178
31179 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
31180
31181 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
31182
31183 * csu/version.c (banner): Remove "by Roland McGrath et al.".
31184 * nptl/Banner: Remove "by Ulrich Drepper et al.".
31185
31186 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
31187
31188 * stdlib/tst-atexit-common.c (do_test): Test support for at least
31189 32 atexit handlers.
31190
31191 2017-09-01 Zack Weinberg <zackw@panix.com>
31192
31193 * math/math.h (HUGE_VAL): Improve commentary.
31194
31195 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31196 Andreas Schwab <schwab@suse.de>
31197
31198 [BZ #21530]
31199 * include/stdio.h (__gen_tempfd): New function.
31200 * stdio-common/Makefile (routines): Add gentempfd.
31201 * stdio-common/gentempfd.c: New file.
31202 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
31203 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
31204 unnamed file first.
31205
31206 2017-09-01 Florian Weimer <fweimer@redhat.com>
31207
31208 [BZ #21915]
31209 [BZ #21922]
31210 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
31211 result to determine success or failure, not the errno value.
31212 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
31213 (tst-nss-files-hosts-erange): Link with -ldl.
31214 * nss/tst-nss-files-hosts-erange.c: New file.
31215 * nss/tst-resolv-basic.c (response): Handle nodata.example.
31216 (do_test): Add NO_DATA tests.
31217 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
31218 (do_test): Call it.
31219
31220 2017-09-01 Florian Weimer <fweimer@redhat.com>
31221
31222 [BZ #21922]
31223 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
31224 coming from gethostbyname2_r.
31225
31226 2017-09-01 Florian Weimer <fweimer@redhat.com>
31227
31228 * support/namespace.h (struct support_chroot_configuration): Add
31229 hosts, host_conf.
31230 (struct support_chroot): Add path_hosts, path_host_conf.
31231 * support/support_chroot.c (write_file): New function.
31232 (support_chroot_create): Call it to process /etc/resolv.conf,
31233 /etc/hosts, /etc/host.conf.
31234 (support_chroot_free): Update.
31235
31236 2017-09-01 Florian Weimer <fweimer@redhat.com>
31237
31238 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
31239 status indicates it is set.
31240
31241 2017-09-01 Florian Weimer <fweimer@redhat.com>
31242
31243 [BZ #20532]
31244 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
31245 function lookup failures more reliable.
31246
31247 2017-09-01 Florian Weimer <fweimer@redhat.com>
31248
31249 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
31250 (getcanonname): Likewise.
31251 (gaih_inet): Likewise.
31252
31253 2017-09-01 Florian Weimer <fweimer@redhat.com>
31254
31255 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
31256 (getcanonname): Likewise.
31257 (gaih_inet): Likewise.
31258
31259 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31260 Richard Henderson <rth@twiddle.net>
31261
31262 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
31263 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
31264 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
31265 (IREG_SIZE, OREG_SIZE): New macros.
31266 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
31267 (IREG_SIZE, OREG_SIZE): New macros.
31268 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
31269 (IREG_SIZE): New macro.
31270 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
31271 (IREG_SIZE): New macro.
31272 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
31273 New includes.
31274 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
31275 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31276 (__CONCATX): Handle exceptions correctly on large values that may
31277 set FE_INVALID.
31278 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
31279 Initialize if not already set.
31280 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
31281
31282 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31283
31284 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
31285 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
31286 Likewise.
31287 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
31288 Likewise.
31289 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
31290 Likewise.
31291 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
31292 Likewise.
31293 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
31294 Likewise.
31295 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
31296 Likewise.
31297 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
31298 Likewise.
31299 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
31300 (NO_CANCELLATION): Likewise.
31301 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
31302 Likewise.
31303 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
31304 Likewise.
31305 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
31306 Likewise.
31307 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
31308 (NO_CANCELLATION): Likewise.
31309 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
31310 (NO_CANCELLATION): Likewise.
31311 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
31312 Likewise
31313 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
31314 Likewise.
31315 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
31316 Likewise.
31317 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
31318 Likewise.
31319 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
31320 hidden prototype.
31321 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
31322 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
31323
31324 2017-08-31 Steve Ellcey <sellcey@cavium.com>
31325
31326 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
31327 in resolver call.
31328
31329 2017-08-31 Florian Weimer <fweimer@redhat.com>
31330
31331 * include/libc-symbols.h (internal_function): Remove.
31332
31333 2017-08-31 Florian Weimer <fweimer@redhat.com>
31334
31335 * stdlib/fmtmsg.c (internal_addseverity): Remove
31336 internal_function.
31337
31338 2017-08-31 Florian Weimer <fweimer@redhat.com>
31339
31340 * stdio-common/printf_fp.c (group_number): Remove
31341 internal_function.
31342 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
31343
31344 2017-08-31 Florian Weimer <fweimer@redhat.com>
31345
31346 * posix/fnmatch.c (internal_function): Remove definition.
31347 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
31348 * posix/regcomp.c (peek_token, init_word_char)
31349 (duplicate_node_closure, fetch_token, peek_token)
31350 (peek_token_bracket, build_range_exp, build_collating_symbol):
31351 Likewise.
31352 * posix/regex_internal.c (re_string_construct_common)
31353 (create_ci_newstate, create_cd_newstate, re_string_allocate)
31354 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
31355 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
31356 (re_string_translate_buffer, re_string_reconstruct)
31357 (re_string_peek_byte_case, re_string_fetch_byte_case)
31358 (re_string_destruct, re_string_context_at, re_node_set_alloc)
31359 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
31360 (re_node_set_add_intersect, re_node_set_init_union)
31361 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
31362 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
31363 (re_dfa_add_node, calc_state_hash, re_acquire_state)
31364 (re_acquire_state_context): Likewise.
31365 * posix/regex_internal.h (internal_function): Remove definition.
31366 (re_string_realloc_buffers, build_wcs_buffer)
31367 (build_wcs_upper_buffer, build_upper_buffer)
31368 (re_string_translate_buffer, re_string_context_at)
31369 (re_string_char_size_at, re_string_wchar_at)
31370 (re_string_elem_size_at): Likewise.
31371 * posix/regexec.c (match_ctx_init, match_ctx_clean)
31372 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
31373 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
31374 (re_search_internal, re_search_2_stub, re_search_stub)
31375 (re_copy_regs, prune_impossible_nodes, check_matching)
31376 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
31377 (free_fail_stack_return, sift_states_iter_mb)
31378 (sift_states_backward, build_sifted_states)
31379 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
31380 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
31381 (check_subexp_limits, sift_states_bkref, merge_state_array)
31382 (find_recover_state, transit_state, merge_state_with_log)
31383 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
31384 (transit_state_mb, transit_state_bkref, get_subexp)
31385 (get_subexp_sub, find_subexp_node, check_arrival)
31386 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
31387 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
31388 (check_node_accept_bytes, find_collation_sequence_value)
31389 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
31390 (acquire_init_state_context, check_halt_node_context)
31391 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
31392 (sub_epsilon_src_nodes): Likewise.
31393 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
31394 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
31395 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
31396 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
31397 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
31398 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
31399 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
31400 * sysdeps/posix/ttyname.c (getttyname): Likewise.
31401 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
31402 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
31403 (PREADV): Likewise.
31404 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
31405 (PREADV): Likewise.
31406 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
31407 (PWRITEV): Likewise.
31408 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
31409 (PWRITEV): Likewise.
31410 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
31411 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
31412
31413 2017-08-31 Florian Weimer <fweimer@redhat.com>
31414
31415 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
31416 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
31417 Remove internal_function.
31418 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
31419 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
31420 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
31421 (__deallocate_stack, __libc_pthread_init)
31422 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
31423 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
31424 (__libc_disable_asynccancel, __librt_disable_asynccancel):
31425 Likewise.
31426 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
31427 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
31428 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
31429 Likewise.
31430 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
31431 (__pthread_mutex_unlock_usercnt): Likewise.
31432
31433 2017-08-31 Florian Weimer <fweimer@redhat.com>
31434
31435 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
31436 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
31437 (fts_safe_changedir): Remove internal_function.
31438 * io/ftw.c (internal_function): Remove definition.
31439 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
31440
31441 2017-08-31 Florian Weimer <fweimer@redhat.com>
31442
31443 * inet/deadline.c (__deadline_current_time)
31444 (__deadline_from_timeval, __deadline_to_ms): Remove
31445 internal_function.
31446 * inet/getnameinfo.c (nrl_domainname): Likewise.
31447 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
31448 * inet/inet6_option.c (add_pad): Likewise.
31449 * inet/net-internal.h (__deadline_current_time)
31450 (__deadline_from_timeval, __deadline_to_ms): Likewise.
31451 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
31452 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
31453 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
31454
31455 2017-08-31 Joseph Myers <joseph@codesourcery.com>
31456
31457 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
31458 include <bits/nan.h>.
31459 * math/Makefile (headers): Remove bits/nan.h.
31460 * bits/nan.h: Remove.
31461 * sysdeps/ieee754/bits/nan.h: Likewise.
31462 * sysdeps/mips/bits/nan.h: Likewise.
31463
31464 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
31465 not include <bits/inf.h>.
31466 * math/Makefile (headers): Remove bits/inf.h.
31467 * bits/inf.h: Remove.
31468 * sysdeps/ieee754/bits/inf.h: Likewise.
31469
31470 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
31471 bits/huge_vall.h or bits/huge_val_flt128.h.
31472 (HUGE_VAL): Define directly here.
31473 [__USE_ISOC99] (HUGE_VALF): Likewise.
31474 [__USE_ISOC99] (HUGE_VALL): Likewise.
31475 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
31476 (HUGE_VAL_F128): Likewise.
31477 * math/Makefile (headers): Remove bits/huge_val.h,
31478 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
31479 * bits/huge_val.h: Remove.
31480 * bits/huge_val_flt128.h: Likewise.
31481 * bits/huge_valf.h: Likewise.
31482 * bits/huge_vall.h: Likewise.
31483 * sysdeps/ia64/bits/huge_vall.h: Likewise.
31484 * sysdeps/ieee754/bits/huge_val.h: Likewise.
31485 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
31486 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
31487 * sysdeps/sh/bits/huge_val.h: Likewise.
31488 * sysdeps/sparc/bits/huge_vall.h: Likewise.
31489 * sysdeps/x86/bits/huge_vall.h: Likewise.
31490
31491 2017-08-31 Florian Weimer <fweimer@redhat.com>
31492
31493 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
31494 internal_function.
31495 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
31496 Likewise.
31497 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
31498 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
31499 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
31500 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
31501 * elf/dl-fini.c (_dl_sort_fini): Likewise.
31502 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
31503 * elf/dl-libc.c (dlerror_run): Likewise.
31504 * elf/dl-load.c (add_name_to_object, decompose_rpath)
31505 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
31506 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
31507 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
31508 Likewise.
31509 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
31510 (_dl_higher_prime_number, _dl_strtoul): Likewise.
31511 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
31512 * elf/dl-profile.c (_dl_start_profile): Likewise.
31513 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
31514 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
31515 Likewise.
31516 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
31517 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
31518 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
31519 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
31520 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
31521 (_dl_allocate_tls_storage): Likewise.
31522 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
31523 (_dl_check_all_versions): Likewise.
31524 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
31525 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
31526 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
31527 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31528 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
31529 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
31530 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
31531 internal_function from __dl_start.
31532 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
31533 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
31534 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
31535 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
31536 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
31537 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
31538 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
31539 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
31540 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
31541 (_dl_next_ld_env_entry, _dl_important_hwcaps)
31542 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
31543 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
31544 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
31545 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
31546 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
31547 Likewise.
31548 (struct rtld_global_ro): Remove internal_function from the
31549 _dl_lookup_symbol_x member.
31550 (_dl_symbol_value): Remove. No longer defined anywhere.
31551 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
31552 internal_function.
31553 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31554 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
31555 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
31556 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
31557 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
31558 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
31559 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
31560 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
31561 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
31562 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
31563 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
31564 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
31565
31566 2017-08-31 Florian Weimer <fweimer@redhat.com>
31567
31568 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
31569 Remove internal_function.
31570 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31571 Likewise.
31572 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
31573 Likewise.
31574
31575 2017-08-31 Florian Weimer <fweimer@redhat.com>
31576
31577 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
31578 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
31579 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
31580
31581 2017-08-31 Florian Weimer <fweimer@redhat.com>
31582
31583 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
31584 (__gai_enqueue_request): Remove internal_function.
31585 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
31586 (__gai_remove_request, __gai_notify, __gai_notify_only)
31587 (__gai_sigqueue): Likewise.
31588 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
31589 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
31590 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
31591 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
31592 Likewise.
31593
31594 2017-08-31 Florian Weimer <fweimer@redhat.com>
31595
31596 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
31597 * include/dirent.h (__opendirat, __getdents, __getdents64)
31598 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
31599 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
31600 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31601 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
31602 Likewise.
31603 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
31604
31605 2017-08-31 Florian Weimer <fweimer@redhat.com>
31606
31607 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
31608 internal_function.
31609 (GETCWD_RETURN_TYPE): Likewise.
31610
31611 2017-08-31 Florian Weimer <fweimer@redhat.com>
31612
31613 * include/time.h (__tz_compute, __strptime_internal): Remove
31614 internal_function.
31615 * time/strptime_l.c (__strptime_internal): Likewise.
31616 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
31617
31618 2017-08-31 Florian Weimer <fweimer@redhat.com>
31619
31620 * iconv/gconv.c (__gconv): Remove internal_function.
31621 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
31622 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
31623 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
31624 (__gconv_release_cache): Likewise.
31625 * iconv/gconv_close.c (__gconv_close): Likewise.
31626 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
31627 (read_conf_file, __gconv_get_path): Likewise.
31628 * iconv/gconv_db.c (derivation_lookup, add_derivation)
31629 (__gconv_release_step, gen_steps, increment_counter)
31630 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
31631 (__gconv_close_transform, free_modules_db): Likewise.
31632 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
31633 Likewise.
31634 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
31635 (__gconv_find_transform, __gconv_lookup_cache)
31636 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
31637 (__gconv_close_transform, __gconv_release_cache)
31638 (__gconv_loaded_object, __gconv_release_shlib)
31639 (__gconv_compare_alias): Likewise.
31640 * iconv/gconv_open.c (__gconv_open): Likewise.
31641 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
31642 * iconv/iconvconfig.c (add_module): Likewise.
31643 * intl/dcigettext.c (plural_lookup, guess_category_value)
31644 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
31645 * intl/eval-plural.h (plural_eval): Likewise.
31646 * intl/finddomain.c (_nl_find_domain): Likewise.
31647 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
31648 (_nl_load_domain, _nl_find_msg): Likewise.
31649 (internal_function): Remove definition.
31650 * intl/loadinfo.h (internal_function): Likewise.
31651 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
31652 internal_function.
31653 * intl/localealias.c (internal_function): Remove definition.
31654 (read_alias_file): Remove internal_function.
31655 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
31656 * intl/plural-exp.h (internal_function): Remove definition.
31657 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
31658 internal_function.
31659 * intl/plural.c: Regenerate.
31660 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
31661 * locale/coll-lookup.c (__collidx_table_lookup)
31662 (__collseq_table_lookup): Likewise.
31663 * locale/coll-lookup.h (__collidx_table_lookup)
31664 (__collseq_table_lookup): Likewise.
31665 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
31666 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31667 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
31668 (_nl_unload_locale): Likewise.
31669 * locale/localeinfo.h (struct __locale_data): Remove
31670 internal_function from cleanup member.
31671 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
31672 (_nl_remove_locale, _nl_load_locale_from_archive)
31673 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
31674 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
31675 (_nl_cleanup_time): Remove internal_function.
31676 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
31677 (_nl_parse_alt_digit): Likewise.
31678 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
31679 (_nl_select_era_entry): Likewise.
31680 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
31681 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31682 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31683 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
31684 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
31685
31686 2017-08-31 Florian Weimer <fweimer@redhat.com>
31687
31688 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
31689 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
31690 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
31691 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
31692 Likewise.
31693 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
31694 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
31695 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
31696 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31697 Likewise.
31698 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
31699
31700 2017-08-31 Florian Weimer <fweimer@redhat.com>
31701
31702 * misc/getttyent.c (skip, value): Remove internal_function.
31703 * misc/syslog.c (openlog_internal): Likewise.
31704 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
31705
31706 2017-08-31 Florian Weimer <fweimer@redhat.com>
31707
31708 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
31709 (__nss_rewrite_field): Remove internal_function.
31710 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31711 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31712 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31713 * nss/nsswitch.c (nss_parse_file, nss_getline)
31714 (nss_parse_service_list, nss_new_service): Likewise.
31715 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
31716 * nss/valid_field.c (__nss_valid_field): Likewise.
31717 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
31718
31719 2017-08-31 Florian Weimer <fweimer@redhat.com>
31720
31721 * malloc/arena.c (__malloc_fork_lock_parent)
31722 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
31723 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
31724 internal_function from defintions.
31725 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
31726 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
31727 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
31728 internal_function from declarations.
31729 * malloc/malloc.c (internal_function): Do not define.
31730 (mem2mem_check): Remove internal_function from declaration.
31731 (munmap_chunk, mremap_chunk): Remove internal_function.
31732 * malloc/mtrace.c (tr_where): Likewise.
31733
31734 2017-08-31 Florian Weimer <fweimer@redhat.com>
31735
31736 * include/rpc/pmap_clnt.h (__get_socket): Remove
31737 internal_function.
31738 * sunrpc/auth_des.c (synchronize): Likewise.
31739 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
31740 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
31741 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
31742 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
31743 (key_call): Likewise.
31744 * sunrpc/pm_getport.c (__get_socket): Likewise.
31745 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
31746 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
31747 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
31748 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
31749 (invalidate): Likewise.
31750 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
31751 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
31752 (set_input_fragment, get_input_bytes): Likewise.
31753
31754 2017-08-31 Florian Weimer <fweimer@redhat.com>
31755
31756 * malloc/malloc.c (_int_free): Remove locked variable and related
31757 asserts.
31758
31759 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
31760
31761 [BZ #22051]
31762 * Makerules (build-module-helper-objlist): Filter out
31763 $(elf-objpfx)sofini.os.
31764 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
31765 needed.
31766
31767 2017-08-31 Florian Weimer <fweimer@redhat.com>
31768
31769 * libio/fcloseall.c: Assume weak_alias is defined.
31770 * libio/feof.c: Likewise.
31771 * libio/fileno.c: Likewise.
31772 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
31773 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31774 definitions.
31775 (_IO_file_open): Call __open directly.
31776 (_IO_new_file_sync): Assume ESPIPE is defined.
31777 (_IO_file_seekoff_maybe_mmap): Call __read directly.
31778 (_IO_new_file_write): Call __write directly.
31779 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
31780 * libio/ftello64.c (__ftello64): Assume EIO is defined.
31781 * libio/genops.c: Assume _LIBC is defined.
31782 (save_for_backup): Remove internal_function.
31783 * libio/getc.c: Assume weak_alias is defined.
31784 * libio/getwc.c: Likewise.
31785 * libio/iofclose.c: Assume _LIBC is defined.
31786 * libio/iofdopen.c: Likewise.
31787 (_IO_fcntl): Remove macro definition.
31788 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
31789 Call __fcntl directly.
31790 * libio/iofflush.c: Assume weak_alias is defined.
31791 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
31792 defined.
31793 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
31794 * libio/iofgets.c: Likewise.
31795 * libio/iofopen.c: Assume _LIBC is defined.
31796 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
31797 * libio/iofputs.c: Assume weak_alias is defined.
31798 * libio/iofread.c: Likewise.
31799 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
31800 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
31801 * libio/ioftell.c: Assume weak_alias is defined.
31802 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
31803 * libio/iofwide.c: Assume _LIBC is defined.
31804 (_IO_fwide): Drop SHARED conditional because it is implied by
31805 SHLIB_COMPAT.
31806 * libio/iofwrite.c: Assume weak_alias is defined.
31807 * libio/iogetdelim.c: Likewise.
31808 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
31809 * libio/iogetwline.c (wmemcpy): Remove macro definition.
31810 (_IO_getwline): Call __wmemcpy directly.
31811 * libio/iopopen.c: Assume _LIBC is defined.
31812 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31813 (_IO_close): Remove macro definitions.
31814 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
31815 _exit directly.
31816 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
31817 directly.
31818 * libio/ioputs.c: Assume weak_alias is defined.
31819 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
31820 * libio/iosetbuffer.c: Assume weak_alias is defined.
31821 * libio/iosetvbuf.c: Likewise.
31822 * libio/ioungetc.c: Likewise.
31823 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
31824 libc_hidden_def, libc_hidden_weak, NULL are defined.
31825 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
31826 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
31827 defined.
31828 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
31829 definitions.
31830 (_IO_old_file_init_internal): Drop SHARED conditional because it
31831 is implied by SHLIB_COMPAT.
31832 (_IO_old_file_fopen): Call __open directly.
31833 (_IO_old_file_sync): Assume ESPIPE is defined.
31834 (_IO_old_file_write): Call __write directly.
31835 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
31836 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
31837 Call __fcntl directly.
31838 * libio/oldiofgetpos.c: Assume weak_alias is defined.
31839 (_IO_old_fgetpos): Assume EIO is defined.
31840 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
31841 (_IO_old_fgetpos64): Assume EIO is defined.
31842 * libio/oldiofsetpos.c: Assume weak_alias is defined.
31843 (_IO_old_fsetpos): Assume EIO is defined.
31844 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
31845 (_IO_old_fsetpos64): Assume EIO is defined.
31846 * libio/oldiopopen.c: Assume _LIBC is defined.
31847 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
31848 (_IO_close): Remove macro definitions.
31849 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
31850 directly.
31851 (_IO_old_proc_close): Call __close, __waitpid directly.
31852 * libio/put.c: Assume weak_alias is defined.
31853 * libio/stdfiles.c: Assume _LIBC is defined.
31854 * libio/stdio.c: Likewise.
31855 * libio/wfileops.c: Likewise.
31856 (_IO_wfile_sync): Assume ESPIPE is defined.
31857 * libio/wgenops.c: Assume _LIBC is defined.
31858 (save_for_wbackup): Remove internal_function.
31859
31860 2017-08-31 Florian Weimer <fweimer@redhat.com>
31861
31862 * malloc/malloc.c (top_check): Change return type to void. Remove
31863 internal_function.
31864 * malloc/hooks.c (top_check): Likewise.
31865 (malloc_check, realloc_check, memalign_check): Adjust.
31866
31867 2017-08-30 Joseph Myers <joseph@codesourcery.com>
31868
31869 [BZ #21457]
31870 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31871 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
31872 sigcontext and namespace requirements.
31873 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
31874 * sysdeps/m68k/sys/ucontext.h: Likewise.
31875 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
31876 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
31877 <bits/sigcontext.h>.
31878 (__ctx): Define earlier.
31879 (mcontext_t): Define structure contents rather than using struct
31880 sigcontext.
31881 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
31882 __glibc_reserved1 instead of __reserved.
31883 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
31884 <bits/sigcontext.h>.
31885 (__ctx): Define earlier.
31886 (mcontext_t): Define structure contents rather than using struct
31887 sigcontext.
31888 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
31889 mcontext_t instead of struct sigcontext.
31890 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
31891 <bits/sigcontext.h>.
31892 (__ctx): Define earlier.
31893 (mcontext_t): Define structure contents rather than using struct
31894 sigcontext.
31895 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
31896 <bits/sigcontext.h>.
31897 (__ctx): Define earlier.
31898 (mcontext_t): Define structure contents rather than using struct
31899 sigcontext.
31900 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
31901 mcontext_t instead of struct sigcontext.
31902 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
31903 mcontext_t instead of struct sigcontext.
31904 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
31905 <bits/sigcontext.h>.
31906 (__ctx): New macro.
31907 (struct __ia64_fpreg_mcontext): New type.
31908 (mcontext_t): Define structure contents rather than using struct
31909 sigcontext.
31910 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
31911 (uc_sigmask): Define using __ctx.
31912 (uc_stack): Likewise.
31913 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
31914 <bits/sigcontext.h>.
31915 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31916 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
31917 <bits/sigcontext.h>.
31918 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
31919 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
31920 <bits/sigcontext.h>.
31921 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
31922 <bits/sigcontext.h>.
31923 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
31924 <bits/sigcontext.h>.
31925 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
31926 <bits/sigcontext.h>.
31927 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
31928 <bits/sigcontext.h>.
31929 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
31930 <bits/sigcontext.h>.
31931 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
31932 <bits/sigcontext.h>.
31933 (__ctx): Define earlier.
31934 (mcontext_t): Define structure contents rather than using struct
31935 sigcontext.
31936 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
31937 <bits/sigcontext.h>. Include <bits/types.h>.
31938 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
31939 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
31940 (test-xfail-XPG42/ucontext.h/conform): Likewise.
31941 (test-xfail-UNIX98/signal.h/conform): Likewise.
31942 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
31943 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
31944 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
31945 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
31946 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
31947 (test-xfail-POSIX2008/signal.h/conform): Likewise.
31948 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
31949 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
31950 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
31951
31952 2017-08-30 Florian Weimer <fweimer@redhat.com>
31953
31954 * malloc/dynarray_emplace_enlarge.c
31955 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
31956 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
31957 * malloc/tst-dynarray.c (test_long_overflow): New function.
31958 (do_test): Call it.
31959
31960 2017-08-30 Florian Weimer <fweimer@redhat.com>
31961
31962 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
31963 (set_arena_corrupt): Remove definitions.
31964 (mtrim): Do not check for corrupt arena.
31965 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
31966 Likewise.
31967
31968 2017-08-30 Florian Weimer <fweimer@redhat.com>
31969
31970 [BZ #21754]
31971 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
31972 check_action.
31973 (ptmalloc_init): Do not set or use check_action.
31974 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
31975 call to malloc_printerr. Remove return statement.
31976 (free_check): Likewise. Remove arena unlock.
31977 (top_check): Update comment. Adjust call to malloc_printerr.
31978 Remove heap repair code.
31979 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
31980 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
31981 (sysmalloc): Adjust call to malloc_printerr.
31982 (munmap_chunk, __libc_realloc): Likewise. Remove return
31983 statement.
31984 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
31985 Remove errout label and corresponding gotos.
31986 (_int_free): Likewise. Remove arena unlock.
31987 (do_set_mallopt_check): Do not set check_action.
31988 (malloc_printerr): Adjust parameter list. Do not mark arena as
31989 corrupt.
31990 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
31991 comment.
31992 * manual/probes.texi (Memory Allocation Probes): Remove
31993 memory_mallopt_check_action.
31994
31995 2017-08-30 Steve Ellcey <sellcey@cavium.com>
31996
31997 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
31998 Use pointer to uint64_t instead of long int for sp.
31999
32000 2017-08-30 Florian Weimer <fweimer@redhat.com>
32001
32002 [BZ #21754]
32003 * malloc/malloc.c (malloc_printerr): Always terminate the process,
32004 without printing a backtrace. Do not leak any information in the
32005 error message.
32006 * manual/memory.texi (Heap Consistency Checking): Update.
32007 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
32008
32009 2017-08-30 Florian Weimer <fweimer@redhat.com>
32010
32011 Do not scale NPTL tests with available number of CPUs.
32012 * nptl/tst-cond16.c (count): Set to constant value of 8.
32013 * nptl/tst-cond18.c (count): Likewise.
32014
32015 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32016
32017 [BZ #22035]
32018 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
32019 Define to take a second argument that is a macro that
32020 concatentates a suffix, not the suffix itself.
32021 (__CONCAT_d): New macro.
32022 (__CONCAT_f): Likewise.
32023 (__CONCAT_l): Likewise.
32024
32025 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
32026
32027 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
32028 by child.
32029
32030 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32031 Aurelien Jarno <aurelien@aurel32.net>
32032 Maciej W. Rozycki <macro@imgtec.com>
32033
32034 [BZ #21956]
32035 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
32036 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
32037 `mips16-syscall6' and `mips16-syscall7'.
32038 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
32039 (CFLAGS-mips16-syscall7.c): Remove.
32040 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
32041 Remove `__mips16_syscall5', `__mips16_syscall6' and
32042 `__mips16_syscall7'.
32043 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
32044 (__mips16_syscall0): Rename `__mips16_syscall_return' to
32045 `__mips_syscall_return'.
32046 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
32047 (__mips16_syscall1): Likewise.
32048 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
32049 (__mips16_syscall2): Likewise.
32050 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
32051 (__mips16_syscall3): Likewise.
32052 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
32053 (__mips16_syscall4): Likewise.
32054 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
32055 Remove.
32056 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
32057 Remove.
32058 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
32059 Remove.
32060 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
32061 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
32062 `__mips16_syscall5'. Remove prototype.
32063 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
32064 `__mips16_syscall6'. Remove prototype.
32065 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
32066 `__mips16_syscall7'. Remove prototype.
32067 (__nomips16, __mips16_syscall_return): Move to...
32068 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
32069 (__nomips16, __mips_syscall_return): ... here.
32070 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
32071 `__mips16_syscall_return' to `__mips_syscall_return'.
32072 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
32073 `internal_syscall##nr'.
32074 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
32075 `internal_syscall##nr'.
32076 (FORCE_FRAME_POINTER): Remove.
32077 (__mips_syscall5): New prototype.
32078 (internal_syscall5): Rewrite to call `__mips_syscall5'.
32079 (__mips_syscall6): New prototype.
32080 (internal_syscall6): Rewrite to call `__mips_syscall6'.
32081 (__mips_syscall7): New prototype.
32082 (internal_syscall7): Rewrite to call `__mips_syscall7'.
32083 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
32084 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
32085 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
32086 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
32087 (sysdep_routines): Add libc-do-syscall.
32088 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
32089 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
32090
32091 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32092
32093 [BZ #21672]
32094 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
32095 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
32096 (advise_stack_range): New function.
32097 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
32098 stack non required to advise_stack_range at allocatestack.c
32099
32100 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
32101
32102 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
32103
32104 2017-08-29 Florian Weimer <fweimer@redhat.com>
32105
32106 [BZ #22026]
32107 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
32108 __end_fct. Mangle __end_fct after setting it to NULL.
32109 * iconv/Makefile (tests): Add tst-gconv-init-failure.
32110 (modules-names, modules-names-tests): Add
32111 tst-gconv-init-failure-mod.
32112 (gconv-modules): New target.
32113 (tst-gconv-init-failure-mod.so): Link against libsupport.
32114 (tst-gconv-init-failure): Depend on gconv-modules,
32115 tst-gconv-init-failure-mod.so.
32116 * iconv/tst-gconv-init-failure-mod.c: New file.
32117 * iconv/tst-gconv-init-failure.c: Likewise.
32118 * iconv/test-gconv-modules: Likewise.
32119
32120 2017-08-29 Florian Weimer <fweimer@redhat.com>
32121
32122 [BZ #22025]
32123 * iconv/gconv_db.c (free_derivation): Remove redundant
32124 parentheses.
32125 (gen_steps): Unconditionally mangle __btowc_fct after
32126 initialization.
32127 (increment_counter): Likewise. Do not call init_fct for internal
32128 modules.
32129
32130 2017-08-29 Joseph Myers <joseph@codesourcery.com>
32131
32132 [BZ #22028]
32133 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32134 (_MSUF_): Remove macro.
32135 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
32136 Likewise.
32137 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
32138 (__REDIRFROM_X): New macro.
32139 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
32140 Likewise.
32141 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
32142 (__REDIRTO_X): Likewise.
32143 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
32144 arguments.
32145 (__MATH_REDIRCALL_2): Likewise.
32146 (__MATH_REDIRCALL_INTERNAL): Likewise.
32147 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32148 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
32149 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
32150 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32151 * math/test-finite-macros.c: New file.
32152 * math/Makefile (tests): Add test-finite-macros.
32153 (CFLAGS-test-finite-macros.c): New variable.
32154
32155 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
32156 Jeff Law <law@redhat.com>
32157
32158 [BZ #22025]
32159 Mangle NULL pointers in iconv/gconv.
32160 * iconv/gconv_cache.c (find_module): Demangle init_fct before
32161 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
32162 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
32163 is non-NULL before demangling the end_fct. Check for NULL
32164 end_fct after demangling.
32165 (__gconv_release_step): Demangle the end_fct before checking
32166 it for NULL. Remove assert on __shlibc_handle != NULL.
32167 (gen_steps): Don't check btowc_fct for NULL before mangling.
32168 Demangle init_fct before checking for NULL.
32169 (increment_counter): Likewise.
32170 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
32171 end_fct for NULL before mangling.
32172 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
32173 for NULL.
32174
32175 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
32176
32177 [BZ #21971]
32178 * locale/iso-639.def: add Morisyen.
32179
32180 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32181
32182 [BZ #21930]
32183 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
32184 (iszero): New C++ implementation that does not use
32185 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
32186 signaling nans are enabled, since __builtin_types_compatible_p
32187 is a C-only feature.
32188 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
32189 defined, include ieee754_float128.h for access to the union and
32190 member ieee854_float128.ieee.
32191 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
32192 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
32193 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32194 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
32195 options of test-math-zero on powerpc64le.
32196
32197 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
32198
32199 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
32200 Change double to float.
32201
32202 2017-08-28 Joseph Myers <joseph@codesourcery.com>
32203
32204 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
32205 unconditional.
32206 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
32207 conditional code; define contents only for [LIBM_SVID_COMPAT].
32208
32209 2017-08-28 Florian Weimer <fweimer@redhat.com>
32210
32211 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
32212 (abi-lp64_be-options): Remove.
32213 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
32214 (abi-hard-options): Likewise.
32215 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
32216 (abi-o32_hard-options, abi-o32_soft_2008-options)
32217 (abi-o32_hard_2008-options, abi-n32_soft-options)
32218 (abi-n32_hard-options, abi-n32_soft_2008-options)
32219 (abi-n32_hard_2008-options, abi-n64_soft-options)
32220 (abi-n64_hard-options, abi-n64_soft_2008-options)
32221 (abi-n64_hard_2008-options): Likewise.
32222 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
32223 (abi-64-v1-options, abi-64-v2-options): Likewise.
32224 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
32225 (abi-64-options): Likewise.
32226 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
32227 (abi-64-options): Likewise.
32228 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
32229 (abi-64-options): Likewise.
32230 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
32231 (abi-64-options, abi-x32-options): Likewise.
32232
32233 2017-08-28 Florian Weimer <fweimer@redhat.com>
32234
32235 Store supported list of SYS_* system calls in the source tree.
32236 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
32237 (bits/syscall.h): Generate from list file.
32238 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
32239 [$(subdir) = misc] (tests): Add tst-syscall-list.
32240 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
32241 [$(subdir) = misc] (tst-syscall-list-macros.list)
32242 [$(subdir) = misc] (tst-syscall-list-nr.list)
32243 (tst-syscall-list-sys.list): Helper targets for new
32244 tst-syscall-list test.
32245 [$(subdir) = misc] (tst-syscall-list.out): Run test script
32246 tst-syscall-list.sh.
32247 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
32248 target. Do not include bits/syscall.d.
32249 [$(subdir) = misc] (generated): Do not update.
32250 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
32251 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
32252 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
32253 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
32254
32255 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
32256
32257 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
32258 (tst-cxa_atexit, tst-on_exit): Likewise.
32259 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
32260 tst-cxa_atexit, and tst-on_exit.
32261 * stdlib/tst-atexit-common.c: New file.
32262 * stdlib/tst-atexit.c: New file.
32263 * stdlib/tst-at_quick_exit.c: New file.
32264 * stdlib/tst-cxa_atexit.c: New file.
32265 * stdlib/tst-on_exit.c: New file.
32266
32267 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
32268
32269 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
32270 * mach/stack_chk_fail_local.c: New file.
32271 * hurd/stack_chk_fail_local.c: New file.
32272 * mach/Machrules ($(interface-library)-routines): Add
32273 stack_chk_fail_local.
32274 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
32275 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
32276 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
32277 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
32278 * hurd/Makefile (CFLAGS-hurdstartup.o,
32279 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
32280
32281 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
32282
32283 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32284 (index_cpu_*, index_arch_*): Removed.
32285
32286 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
32287
32288 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
32289 Use uint64_t instead of unsigned long.
32290
32291 2017-08-25 Joseph Myers <joseph@codesourcery.com>
32292
32293 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
32294 [__HAVE_DISTINCT_FLOAT128].
32295
32296 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
32297 of <bits/math-finite.h>.
32298 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
32299 inclusion of <bits/math-finite.h>.
32300 * math/bits/math-finite.h (__REDIRTO_X): Do not define
32301 conditionally on [__MATH_DECLARING_LDOUBLE && defined
32302 __NO_LONG_DOUBLE_MATH].
32303 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
32304 (__MATH_REDIRCALL_2): Likewise.
32305 (__MATH_REDIRCALL_INTERNAL): Likewise.
32306 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
32307 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
32308 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
32309
32310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
32311 Remove file.
32312 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
32313 Likewise.
32314 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
32315 Likewise.
32316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
32317 Likewise.
32318 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
32319 Likewise.
32320 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
32321 Likewise.
32322 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32323 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32324 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32325 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32326 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
32327 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
32328 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
32329 w_sqrtf_compat-ppc32.
32330
32331 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32332
32333 * math/math.h [defined __cplusplus] (issignaling): In the long
32334 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
32335 is not defined. Call __issignaling, otherwise.
32336
32337 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32338
32339 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
32340 syscall definitions and replace __builtin_expect with __glibc_likely.
32341 * sysdeps/unix/syscall-template.S: Update comment about cancellable
32342 syscall.
32343 (SYSCALL_CANCELLABLE): Removedefinition
32344 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
32345 definition.
32346 (PSEUDO_END): Likewise.
32347 [IS_IN (libpthread)] (CENABLE): Likewise.
32348 [IS_IN (libpthread)] (CDISABLE): Likewise.
32349 [IS_IN (libc)] (CENABLE): Likewise.
32350 [IS_IN (libc)] (CENABLE): Likewise.
32351 [IS_IN (librt)] (CDISABLE): Likewise.
32352 [IS_IN (librt)] (CDISABLE): Likewise.
32353 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32354 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
32355 definition.
32356 (PSEUDO_END): Likewise.
32357 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
32358 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
32359 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32360 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
32361 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32362 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
32363 (CENABLE): Likewise.
32364 (CDISABLE): Likewise.
32365 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32366 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
32367 defintion.
32368 (PSEUDO_END): Likewise.
32369 [IS_IN (libpthread)] (CENABLE): Likewise.
32370 [IS_IN (libpthread)] (CDISABLE): Likewise.
32371 [IS_IN (libc)] (CENABLE): Likewise.
32372 [IS_IN (libc)] (CENABLE): Likewise.
32373 [IS_IN (librt)] (CDISABLE): Likewise.
32374 [IS_IN (librt)] (CDISABLE): Likewise.
32375 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32376 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
32377 definition.
32378 (PSEUDO_END): Likewise.
32379 [IS_IN (libpthread)] (CENABLE): Likewise.
32380 [IS_IN (libpthread)] (CDISABLE): Likewise.
32381 [IS_IN (libc)] (CENABLE): Likewise.
32382 [IS_IN (libc)] (CENABLE): Likewise.
32383 [IS_IN (librt)] (CDISABLE): Likewise.
32384 [IS_IN (librt)] (CDISABLE): Likewise.
32385 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32386 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
32387 definition.
32388 (PSEUDO_END): Likewise.
32389 [IS_IN (libpthread)] (CENABLE): Likewise.
32390 [IS_IN (libpthread)] (CDISABLE): Likewise.
32391 [IS_IN (libc)] (CENABLE): Likewise.
32392 [IS_IN (libc)] (CENABLE): Likewise.
32393 [IS_IN (librt)] (CDISABLE): Likewise.
32394 [IS_IN (librt)] (CDISABLE): Likewise.
32395 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32396 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
32397 definition.
32398 (PSEUDO_END): Likewise.
32399 [IS_IN (libpthread)] (CENABLE): Likewise.
32400 [IS_IN (libpthread)] (CDISABLE): Likewise.
32401 [IS_IN (libc)] (CENABLE): Likewise.
32402 [IS_IN (libc)] (CENABLE): Likewise.
32403 [IS_IN (librt)] (CDISABLE): Likewise.
32404 [IS_IN (librt)] (CDISABLE): Likewise.
32405 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32406 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
32407 definition.
32408 (PSEUDO_END): Likewise.
32409 [IS_IN (libpthread)] (CENABLE): Likewise.
32410 [IS_IN (libpthread)] (CDISABLE): Likewise.
32411 [IS_IN (libc)] (CENABLE): Likewise.
32412 [IS_IN (libc)] (CENABLE): Likewise.
32413 [IS_IN (librt)] (CDISABLE): Likewise.
32414 [IS_IN (librt)] (CDISABLE): Likewise.
32415 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32416 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
32417 definition.
32418 (PSEUDO_END): Likewise.
32419 [IS_IN (libpthread)] (CENABLE): Likewise.
32420 [IS_IN (libpthread)] (CDISABLE): Likewise.
32421 [IS_IN (libc)] (CENABLE): Likewise.
32422 [IS_IN (libc)] (CENABLE): Likewise.
32423 [IS_IN (librt)] (CDISABLE): Likewise.
32424 [IS_IN (librt)] (CDISABLE): Likewise.
32425 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32426 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
32427 Remove definition.
32428 (PSEUDO_END): Likewise.
32429 [IS_IN (libpthread)] (CENABLE): Likewise.
32430 [IS_IN (libpthread)] (CDISABLE): Likewise.
32431 [IS_IN (libc)] (CENABLE): Likewise.
32432 [IS_IN (libc)] (CENABLE): Likewise.
32433 [IS_IN (librt)] (CDISABLE): Likewise.
32434 [IS_IN (librt)] (CDISABLE): Likewise.
32435 (SINGLE_THREAD_P): Likewise.
32436 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
32437 definition.
32438 (PSEUDO_END): Likewise.
32439 [IS_IN (libpthread)] (CENABLE): Likewise.
32440 [IS_IN (libpthread)] (CDISABLE): Likewise.
32441 [IS_IN (libc)] (CENABLE): Likewise.
32442 [IS_IN (libc)] (CENABLE): Likewise.
32443 [IS_IN (librt)] (CDISABLE): Likewise.
32444 [IS_IN (librt)] (CDISABLE): Likewise.
32445 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32446 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
32447 definition.
32448 (PSEUDO_END): Likewise.
32449 [IS_IN (libpthread)] (CENABLE): Likewise.
32450 [IS_IN (libpthread)] (CDISABLE): Likewise.
32451 [IS_IN (libc)] (CENABLE): Likewise.
32452 [IS_IN (libc)] (CENABLE): Likewise.
32453 [IS_IN (librt)] (CDISABLE): Likewise.
32454 [IS_IN (librt)] (CDISABLE): Likewise.
32455 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32456 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
32457 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
32458 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
32459 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
32460 definition.
32461 (PSEUDO_END): Likewise.
32462 [IS_IN (libpthread)] (CENABLE): Likewise.
32463 [IS_IN (libpthread)] (CDISABLE): Likewise.
32464 [IS_IN (libc)] (CENABLE): Likewise.
32465 [IS_IN (libc)] (CENABLE): Likewise.
32466 [IS_IN (librt)] (CDISABLE): Likewise.
32467 [IS_IN (librt)] (CDISABLE): Likewise.
32468 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32469 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
32470 definition.
32471 (PSEUDO_END): Likewise.
32472 [IS_IN (libpthread)] (CENABLE): Likewise.
32473 [IS_IN (libpthread)] (CDISABLE): Likewise.
32474 [IS_IN (libc)] (CENABLE): Likewise.
32475 [IS_IN (libc)] (CENABLE): Likewise.
32476 [IS_IN (librt)] (CDISABLE): Likewise.
32477 [IS_IN (librt)] (CDISABLE): Likewise.
32478 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32479 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
32480 definition.
32481 (PSEUDO_END): Likewise.
32482 [IS_IN (libpthread)] (CENABLE): Likewise.
32483 [IS_IN (libpthread)] (CDISABLE): Likewise.
32484 [IS_IN (libc)] (CENABLE): Likewise.
32485 [IS_IN (libc)] (CENABLE): Likewise.
32486 [IS_IN (librt)] (CDISABLE): Likewise.
32487 [IS_IN (librt)] (CDISABLE): Likewise.
32488 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32489 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
32490 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
32491 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
32492 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
32493 definition.
32494 (PSEUDO_END): Likewise.
32495 [IS_IN (libpthread)] (CENABLE): Likewise.
32496 [IS_IN (libpthread)] (CDISABLE): Likewise.
32497 [IS_IN (libc)] (CENABLE): Likewise.
32498 [IS_IN (libc)] (CENABLE): Likewise.
32499 [IS_IN (librt)] (CDISABLE): Likewise.
32500 [IS_IN (librt)] (CDISABLE): Likewise.
32501 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32502 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
32503 definition.
32504 (PSEUDO_END): Likewise.
32505 [IS_IN (libpthread)] (CENABLE): Likewise.
32506 [IS_IN (libpthread)] (CDISABLE): Likewise.
32507 [IS_IN (libc)] (CENABLE): Likewise.
32508 [IS_IN (libc)] (CENABLE): Likewise.
32509 [IS_IN (librt)] (CDISABLE): Likewise.
32510 [IS_IN (librt)] (CDISABLE): Likewise.
32511 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
32512
32513 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
32514
32515 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
32516
32517 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32518
32519 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
32520
32521 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32522
32523 [BZ #21982]
32524 * string/stratcliff.c (do_test): Declare size, nchars, inner,
32525 middle and outer with size_t instead of int. Repleace %d and
32526 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
32527 "MAX (outer, nchars - 64)" to support unsigned outer and
32528 nchars. Also exit loop when outer == 0.
32529
32530 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32531
32532 * include/fcntl.h (__fcntl_nocancel): Remove definition.
32533 * include/signal.h (__sigsuspend_nocancel): Likewise.
32534 * include/time.h (__nanosleep_nocancel): Likewise.
32535 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
32536 * login/utmp_file.c: Include non cancellable syscall header.
32537 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
32538 prototype.
32539
32540 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
32541
32542 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
32543 .byte sequences with AVX512F instructions.
32544 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
32545 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
32546 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
32547 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
32548 Likewise.
32549 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
32550 Likewise.
32551
32552 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
32553 Steve Ellcey <sellcey@cavium.com>
32554
32555 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
32556 Use PTR_REG macro in cmp instruction.
32557
32558 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32559
32560 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
32561 Change the return type of the ifunc resolver to match the return
32562 type of the target function.
32563
32564 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32565
32566 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
32567 (preadv64): Likewise.
32568 (pwrite64(: Likewise.
32569 (pwritev64): Likewise.
32570
32571 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
32572 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
32573 (LOAD_ARGS_0): Likewise.
32574 (LOAD_ARGS_1): Likewise.
32575 (LOAD_ARGS_2): Likewise.
32576 (LOAD_ARGS_3): Likewise.
32577 (LOAD_ARGS_4): Likewise.
32578 (LOAD_ARGS_5): Likewise.
32579 (LOAD_ARGS_6): Likewise.
32580 (LOAD_REGS_0): Likewise.
32581 (LOAD_REGS_1): Likewise.
32582 (LOAD_REGS_2): Likewise.
32583 (LOAD_REGS_3): Likewise.
32584 (LOAD_REGS_4): Likewise.
32585 (LOAD_REGS_5): Likewise.
32586 (LOAD_REGS_6): Likewise.
32587 (ASM_ARGS_0): Likewise.
32588 (ASM_ARGS_1): Likewise.
32589 (ASM_ARGS_2): Likewise.
32590 (ASM_ARGS_3): Likewise.
32591 (ASM_ARGS_4): Likewise.
32592 (ASM_ARGS_5): Likewise.
32593 (ASM_ARGS_6): Likewise.
32594 (LOAD_ARGS_TYPES_1): Likewise.
32595 (LOAD_ARGS_TYPES_2): Likewise.
32596 (LOAD_ARGS_TYPES_3): Likewise.
32597 (LOAD_ARGS_TYPES_4): Likewise.
32598 (LOAD_ARGS_TYPES_5): Likewise.
32599 (LOAD_ARGS_TYPES_6): Likewise.
32600 (LOAD_REGS_TYPES_1): Likewise.
32601 (LOAD_REGS_TYPES_2): Likewise.
32602 (LOAD_REGS_TYPES_3): Likewise.
32603 (LOAD_REGS_TYPES_4): Likewise.
32604 (LOAD_REGS_TYPES_5): Likewise.
32605 (LOAD_REGS_TYPES_6): Likewise.
32606 (TYPEFY): New define.
32607 (ARGIFY): Likewise.
32608 (internal_syscall0): Likewise.
32609 (internal_syscall1): Likewise.
32610 (internal_syscall2): Likewise.
32611 (internal_syscall3): Likewise.
32612 (internal_syscall4): Likewise.
32613 (internal_syscall5): Likewise.
32614 (internal_syscall6): Likewise.
32615 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
32616 (INTERNAL_SYSCALL_NCS): Remove define.
32617 (internal_syscall1): Add define.
32618
32619 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32620
32621 * math/w_remainder_compat.c: Remove duplicate inclusion of
32622 math-svid-compat.h.
32623 * math/w_remainderf_compat.c: Likewise.
32624 * math/w_remainderl_compat.c: Likewise.
32625
32626 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32627
32628 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
32629
32630 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32631
32632 [BZ #21684]
32633 * math/tgmath.h (__floating_type): Simplify definitions.
32634 (__real_integer_type): New macro.
32635 (__complex_integer_type): Likewise.
32636 (__expr_is_real): Likewise.
32637 (__tgmath_real_type_sub): Update comment to describe handling of
32638 complex types.
32639 (__tgmath_complex_type_sub): New macro.
32640 (__tgmath_complex_type): Likewise.
32641 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32642 (__TGMATH_CF128): Use __expr_is_real.
32643 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
32644 __expr_is_real.
32645 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32646 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
32647 * math/gen-tgmath-tests.py (Type.create_type): Create complex
32648 integer types.
32649
32650 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32651
32652 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
32653 macro.
32654 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
32655 alias.
32656 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
32657 Likewise.
32658
32659 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
32660 nanosleep_not_cancel with __nanosleep_nocancel.
32661 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
32662 (__nanosleep_nocancel): New macro.
32663 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
32664 function.
32665 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
32666 macro.
32667 (__nanosleep_nocancel): New prototype.
32668
32669 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
32670 pause_not_cancel with __pause_nocancel.
32671 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
32672 (__pause_nocancel): New macro.
32673 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
32674 macro.
32675 (__pause_nocancel): New prototype.
32676 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
32677
32678 2017-08-22 Martin Sebor <msebor@redhat.com>
32679
32680 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
32681 to return a pointer to the same type as the target function.
32682
32683 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32684
32685 [BZ #18822]
32686 [BZ #21986]
32687 * include/printf.h (__printf_fphex): Add attribute_hidden.
32688 (__guess_grouping): New prototype.
32689 * stdio-common/printf_fp.c (__guess_grouping): Removed.
32690 * stdio-common/reg-printf.c (__register_printf_specifier): Add
32691 libc_hidden_proto and libc_hidden_def.
32692 * stdlib/strfmon_l.c (__guess_grouping): Removed.
32693 (__vstrfmon_l): Remove the third argument passed to
32694 __guess_grouping.
32695
32696 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
32697
32698 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
32699 definition for issignaling that does not rely on __MATH_TG,
32700 since __MATH_TG uses __builtin_types_compatible_p, which is only
32701 available in C mode.
32702 (CFLAGS-test-math-issignaling.cc): New variable.
32703 * math/Makefile [CXX] (tests): Add test-math-issignaling.
32704 * math/test-math-issignaling.cc: New test for C++ implementation
32705 of type-generic issignaling.
32706 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
32707 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
32708 options of test-math-issignaling on powerpc64le.
32709
32710 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
32711
32712 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32713 building libc.a.
32714 (hidden_proto): Likewise.
32715 (hidden_tls_proto): Likewise.
32716 (__hidden_proto): Likewise.
32717
32718 2017-08-22 Florian Weimer <fweimer@redhat.com>
32719
32720 math: Statically link tests of internal functionality.
32721 * math/Makefile (tests): Remove atest-exp, atest-sincos,
32722 atest-exp2.
32723 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
32724 (gmp-objs): Remove assignment.
32725 (atest-exp, atest-sincos, atest-exp2): Remove targets.
32726
32727 2017-08-22 Joseph Myers <joseph@codesourcery.com>
32728
32729 [BZ #21987]
32730 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
32731 and copy to ...
32732 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
32733 ... here.
32734 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
32735 ... and here.
32736
32737 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
32738 variable definitions above inclusion of ../Rules.
32739
32740 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32741
32742 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
32743 case calling __builtin_unreachable.
32744
32745 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32746
32747 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
32748 __waitpid_nocancel.
32749 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
32750 (__waitpid_nocancel): New macro.
32751 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
32752 macro.
32753 (__waitpid_nocancel): Replace macro with a function.
32754 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
32755 function.
32756
32757 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
32758 __fcntl_nocancel.
32759 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
32760 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
32761
32762 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
32763 __writev_nocancel_nostatus.
32764 (write_call_graph): Likewise.
32765 (write_bb_counts): Likewise.
32766 * resolv/herror.c (herror): Likewise.
32767 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
32768 macro.
32769 (__writev_nocancel_nostatus): New macro.
32770 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
32771 Remove macro.
32772 (__writev_nocancel_nostatus): New function.
32773
32774 2017-08-21 Joseph Myers <joseph@codesourcery.com>
32775
32776 Revert:
32777 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32778
32779 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
32780 building libc.a.
32781 (hidden_proto): Likewise.
32782 (hidden_tls_proto): Likewise.
32783 (__hidden_proto): Likewise.
32784
32785 [BZ #21973]
32786 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
32787 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32788 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32789 Likewise.
32790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
32791 Likewise.
32792 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32793 Likewise.
32794 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
32795 Likewise.
32796 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
32797 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32798 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32799 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32800 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
32801 GLIBC_2.0 sqrtl symbol.
32802
32803 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
32804 [__USE_MISC] (_LIB_VERSION): Likewise.
32805 [__USE_MISC] (struct exception): Likewise.
32806 [__USE_MISC] (matherr): Likewise.
32807 [__USE_MISC] (DOMAIN): Likewise.
32808 [__USE_MISC] (SING): Likewise.
32809 [__USE_MISC] (OVERFLOW): Likewise.
32810 [__USE_MISC] (UNDERFLOW): Likewise.
32811 [__USE_MISC] (TLOSS): Likewise.
32812 [__USE_MISC] (PLOSS): Likewise.
32813 [__USE_MISC] (HUGE): Likewise.
32814 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
32815 * math/math-svid-compat.h: New file.
32816 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
32817 and matherrl.
32818 * include/math.h [!_ISOMAC] (__matherr): Remove.
32819 * manual/arith.texi (FP Exceptions): Do not document matherr.
32820 * math/Makefile (tests): Change test-matherr to test-matherr-3.
32821 (tests-internal): New variable.
32822 (install-lib): Do not add libieee.a.
32823 (non-lib.a): Likewise.
32824 (extra-objs): Do not add libieee.a and ieee-math.o.
32825 (CPPFLAGS-s_lib_version.c): Remove variable.
32826 ($(objpfx)libieee.a): Remove rule.
32827 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
32828 * math/ieee-math.c: Remove.
32829 * math/libm-test-support.c (matherr): Remove.
32830 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
32831 and license notices. Include <math-svid-compat.h> and
32832 <shlib-compat.h>.
32833 (matherr): Undefine as macro. Use compat_symbol_reference.
32834 (_LIB_VERSION): Likewise.
32835 * math/test-matherr-2.c: New file.
32836 * math/test-matherr-3.c: Likewise.
32837 * sysdeps/generic/math_private.h (__kernel_standard): Remove
32838 declaration.
32839 (__kernel_standard_f): Likewise.
32840 (__kernel_standard_l): Likewise.
32841 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
32842 <math_private.h>. Include <math-svid-compat.h>.
32843 (_LIB_VERSION): Undefine as macro.
32844 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
32845 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
32846 [LIBM_SVID_COMPAT], use compat_symbol.
32847 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
32848 <math_private.h>. Include <math-svid-compat.h>.
32849 (matherr): Undefine as macro.
32850 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
32851 compat_symbol.
32852 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
32853 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
32854 compat_symbol_reference.
32855 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
32856 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
32857 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
32858 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
32859 (MATHERR_D): Remove declaration.
32860 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
32861 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
32862 [LIBM_BUILD] (pmatherrf): Likewise.
32863 [LIBM_BUILD] (pmatherr): Likewise.
32864 [LIBM_BUILD] (pmatherrl): Likewise.
32865 (DOMAIN): Likewise.
32866 (SING): Likewise.
32867 (OVERFLOW): Likewise.
32868 (UNDERFLOW): Likewise.
32869 (TLOSS): Likewise.
32870 (PLOSS): Likewise.
32871 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
32872 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
32873 compat_symbol.
32874 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
32875 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
32876 compat_symbol.
32877 * math/lgamma-compat.h: Include <math-svid-compat.h>.
32878 * math/w_acos_compat.c: Likewise.
32879 * math/w_acosf_compat.c: Likewise.
32880 * math/w_acosh_compat.c: Likewise.
32881 * math/w_acoshf_compat.c: Likewise.
32882 * math/w_acoshl_compat.c: Likewise.
32883 * math/w_acosl_compat.c: Likewise.
32884 * math/w_asin_compat.c: Likewise.
32885 * math/w_asinf_compat.c: Likewise.
32886 * math/w_asinl_compat.c: Likewise.
32887 * math/w_atan2_compat.c: Likewise.
32888 * math/w_atan2f_compat.c: Likewise.
32889 * math/w_atan2l_compat.c: Likewise.
32890 * math/w_atanh_compat.c: Likewise.
32891 * math/w_atanhf_compat.c: Likewise.
32892 * math/w_atanhl_compat.c: Likewise.
32893 * math/w_cosh_compat.c: Likewise.
32894 * math/w_coshf_compat.c: Likewise.
32895 * math/w_coshl_compat.c: Likewise.
32896 * math/w_exp10_compat.c: Likewise.
32897 * math/w_exp10f_compat.c: Likewise.
32898 * math/w_exp10l_compat.c: Likewise.
32899 * math/w_exp2_compat.c: Likewise.
32900 * math/w_exp2f_compat.c: Likewise.
32901 * math/w_exp2l_compat.c: Likewise.
32902 * math/w_fmod_compat.c: Likewise.
32903 * math/w_fmodf_compat.c: Likewise.
32904 * math/w_fmodl_compat.c: Likewise.
32905 * math/w_hypot_compat.c: Likewise.
32906 * math/w_hypotf_compat.c: Likewise.
32907 * math/w_hypotl_compat.c: Likewise.
32908 * math/w_j0_compat.c: Likewise.
32909 * math/w_j0f_compat.c: Likewise.
32910 * math/w_j0l_compat.c: Likewise.
32911 * math/w_j1_compat.c: Likewise.
32912 * math/w_j1f_compat.c: Likewise.
32913 * math/w_j1l_compat.c: Likewise.
32914 * math/w_jn_compat.c: Likewise.
32915 * math/w_jnf_compat.c: Likewise.
32916 * math/w_jnl_compat.c: Likewise.
32917 * math/w_lgamma_main.c: Likewise.
32918 * math/w_lgamma_r_compat.c: Likewise.
32919 * math/w_lgammaf_main.c: Likewise.
32920 * math/w_lgammaf_r_compat.c: Likewise.
32921 * math/w_lgammal_main.c: Likewise.
32922 * math/w_lgammal_r_compat.c: Likewise.
32923 * math/w_log10_compat.c: Likewise.
32924 * math/w_log10f_compat.c: Likewise.
32925 * math/w_log10l_compat.c: Likewise.
32926 * math/w_log2_compat.c: Likewise.
32927 * math/w_log2f_compat.c: Likewise.
32928 * math/w_log2l_compat.c: Likewise.
32929 * math/w_log_compat.c: Likewise.
32930 * math/w_logf_compat.c: Likewise.
32931 * math/w_logl_compat.c: Likewise.
32932 * math/w_pow_compat.c: Likewise.
32933 * math/w_powf_compat.c: Likewise.
32934 * math/w_powl_compat.c: Likewise.
32935 * math/w_remainder_compat.c: Likewise.
32936 * math/w_remainderf_compat.c: Likewise.
32937 * math/w_remainderl_compat.c: Likewise.
32938 * math/w_scalb_compat.c: Likewise.
32939 * math/w_scalbf_compat.c: Likewise.
32940 * math/w_scalbl_compat.c: Likewise.
32941 * math/w_sinh_compat.c: Likewise.
32942 * math/w_sinhf_compat.c: Likewise.
32943 * math/w_sinhl_compat.c: Likewise.
32944 * math/w_sqrt_compat.c: Likewise.
32945 * math/w_sqrtf_compat.c: Likewise.
32946 * math/w_sqrtl_compat.c: Likewise.
32947 * math/w_tgamma_compat.c: Likewise.
32948 * math/w_tgammaf_compat.c: Likewise.
32949 * math/w_tgammal_compat.c: Likewise.
32950 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
32951 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
32952 * sysdeps/ieee754/k_standard.c: Likewise.
32953 * sysdeps/ieee754/k_standardf.c: Likewise.
32954 * sysdeps/ieee754/k_standardl.c: Likewise.
32955 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
32956 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
32957 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
32958 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
32959 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
32960 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
32961 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
32962 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
32963 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
32964 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
32965 Likewise.
32966 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
32967 Likewise.
32968 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
32969 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
32970 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
32971 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
32972
32973 2017-08-21 Florian Weimer <fweimer@redhat.com>
32974
32975 [BZ #21864]
32976 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
32977 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
32978 Move before inclusion of ../Rules.
32979
32980 2017-08-21 Florian Weimer <fweimer@redhat.com>
32981
32982 [BZ #21972]
32983 * assert/assert.h (assert): Use static_cast (bool) for C++.
32984 Use the ternary operator in the warning branch for GNU C.
32985 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
32986 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
32987 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
32988 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
32989 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
32990
32991 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
32992
32993 [BZ #18822]
32994 * sysdeps/unix/sysv/linux/x86_64/init-first.c
32995 (__syscall_clock_gettime): Add attribute_hidden.
32996 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
32997 (__start_context): Likewise.
32998
32999 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33000
33001 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
33002 building libc.a.
33003 (hidden_proto): Likewise.
33004 (hidden_tls_proto): Likewise.
33005 (__hidden_proto): Likewise.
33006
33007 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33008
33009 * include/libc-symbols.h (attribute_hidden): Enable hidden
33010 visibility in libc.a compiled with PIE.
33011
33012 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33013
33014 [BZ #18822]
33015 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
33016 Add attribute_hidden.
33017
33018 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33019
33020 [BZ #21864]
33021 * Makerules (all-nonlib): Add $(others-extras).
33022 * catgets/Makefile (others-extras): New.
33023 * elf/Makefile (others-extras): Likewise.
33024 * nss/Makefile (others-extras): Likewise.
33025
33026 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33027
33028 [BZ #18822]
33029 * csu/libc-start.c (__libc_multiple_libcs): Removed.
33030 * elf/dl-open.c: Include <libc-internal.h>.
33031 (__libc_multiple_libcs): Removed.
33032 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
33033 <hp-timing.h>.
33034 * include/libc-internal.h (__libc_multiple_libcs): New.
33035 * misc/sbrk.c: Include <libc-internal.h>.
33036 (__libc_multiple_libcs): Removed.
33037
33038 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
33039
33040 [BZ #18822]
33041 * grp/initgroups.c (__nss_group_database): Removed.
33042 (__nss_initgroups_database): Likewise.
33043 * nscd/gai.c (__nss_hosts_database): Likewise.
33044 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
33045 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
33046 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
33047 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
33048 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
33049 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
33050 attribute_hidden.
33051 * nss/nsswitch.c (__nss_database_custom): Define only if
33052 USE_NSCD is defined.
33053 (__nss_configure_lookup): Use __nss_database_custom only if
33054 USE_NSCD is defined.
33055 * nss/nsswitch.h (__nss_database_custom): Declare only if
33056 USE_NSCD is defined. Add attribute_hidden.
33057 (__nss_setent): Add attribute_hidden.
33058 (__nss_endent): Likewise.
33059 (__nss_getent_r): Likewise.
33060 (__nss_getent): Likewise.
33061 (DEFINE_DATABASE): Declare __nss_##arg##_database.
33062
33063 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33064
33065 [BZ #18822]
33066 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
33067 libc_hidden_proto and libc_hidden_def.
33068
33069 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33070
33071 [BZ #18822]
33072 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
33073 Add libc_hidden_proto.
33074 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
33075 Add libc_hidden_def.
33076
33077 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33078
33079 [BZ #21974]
33080 * gmon/Makefile (routines): Remove bb_init_func and
33081 bb_exit_func.
33082 (elide-routines.os): Removed.
33083 * gmon/bb_exit_func.c: Likewise.
33084 * gmon/bb_init_func.c: Likewise.
33085 * include/sys/gmon.h (__bb): Likewise.
33086 (__bb_init_func): Likewise.
33087 (__bb_exit_func): Likewise.
33088 * sysdeps/alpha/bb_init_func.S: Likewise.
33089
33090 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
33091
33092 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
33093 * include/setjmp.h (____longjmp_chk): Here. Add
33094 attribute_hidden.
33095
33096 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
33097
33098 [BZ #18822]
33099 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
33100 attribute_hidden.
33101 (__strspn_sse2): Likewise.
33102
33103 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33104
33105 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
33106 (close_not_cancel_no_status): Likewise.
33107 (__close_nocancel): New macro.
33108 (__close_nocancel_nostatus): Likewise.
33109 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
33110 macro.
33111 (close_not_cancel): Likewise.
33112 (close_not_cancel_no_status): Likewise.
33113 (__close_nocancel): New prototype.
33114 (__close_nocancel_nostatus): New function.
33115 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
33116 * catgets/open_catalog.c (__open_catalog): Replace
33117 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
33118 * gmon/gmon.c (write_gmon): Likewise.
33119 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
33120 * intl/loadmsgcat.c (close): Likewise.
33121 * io/ftw.c (open_dir_stream): Likewise.
33122 (ftw_startup): Likewise.
33123 * libio/fileops.c (_IO_file_open): Likewise.
33124 (_IO_file_close_mmap): Likewise.
33125 (_IO_file_close): Likewise.
33126 * libio/iopopen.c (_IO_dup2): Likewise.
33127 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33128 * locale/loadlocale.c (_nl_load_locale): Likewise.
33129 * login/utmp_file.c (pututline_file): Likewise.
33130 (endutent_file): Likewise.
33131 * misc/daemon.c (daemon): Likewise.
33132 * nscd/nscd_getai.c (__nscd_getai): Likewise.
33133 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
33134 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
33135 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
33136 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
33137 * nscd/nscd_helper.c (open_socket): Likewise.
33138 (__nscd_open_socket): Likewise.
33139 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
33140 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
33141 (__nscd_innetgr): Likewise.
33142 * nss/nss_db/db-open.c (internal_setent): Likewise.
33143 * resolv/res-close.c (__res_iclose): Likewise.
33144 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
33145 * sysdeps/posix/closedir.c (__closedir): Likewise.
33146 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
33147 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33148 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33149 (opendir_tail): Likewise.
33150 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33151 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
33152 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
33153 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
33154 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33155 (gethostid): Likewise.
33156 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33157 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33158 Likewise.
33159 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33160 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
33161 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33162 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33163 Likewise.
33164 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
33165 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
33166 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33167 Likewise.
33168 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
33169 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33170 Likewise.
33171 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33172 Likewise.
33173 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33174 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33175 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33176 __close_nocancel.
33177
33178 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
33179 (openat_not_cancel_3): Likewise.
33180 (openat64_not_cancel_3): Likewise).
33181 (openat_not_cancel_3): Likewise).
33182 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
33183 macro.
33184 (openat_not_cancel_3): Likewise.
33185 (openat64_not_cancel): Likewise.
33186 (openat64_not_cancel_3): Likewise.
33187 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
33188 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
33189 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
33190 __open{64}_nocancel.
33191 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33192 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33193 * sysdeps/posix/opendir.c (__opendirat): Likewise.
33194
33195 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33196
33197 [BZ #18822]
33198 * include/argz.h (__argz_create_sep): New function prototype.
33199 (__argz_append): Likewise.
33200 (__argz_add): Likewise.
33201 (__argz_add_sep): Likewise.
33202 (__argz_delete): Likewise.
33203 (__argz_insert): Likewise.
33204 (__argz_replace): Likewise.
33205 * string/argz.h (__argz_create_sep): Removed.
33206 (__argz_append): Likewise.
33207 (__argz_add): Likewise.
33208 (__argz_add_sep): Likewise.
33209 (__argz_delete): Likewise.
33210 (__argz_insert): Likewise.
33211 (__argz_replace): Likewise.
33212
33213 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33214
33215 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
33216 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
33217 (GNU_PROPERTY_STACK_SIZE): Likewie.
33218 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
33219 (GNU_PROPERTY_LOPROC): Likewise.
33220 (GNU_PROPERTY_HIPROC): Likewise.
33221 (GNU_PROPERTY_LOUSER): Likewise.
33222 (GNU_PROPERTY_HIUSER): Likewise.
33223 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
33224 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
33225 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
33226 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
33227 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
33228 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
33229 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
33230 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
33231 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
33232 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
33233 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
33234 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
33235 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
33236 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
33237 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
33238 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
33239 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
33240 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
33241 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
33242 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
33243 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
33244 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
33245 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
33246
33247 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33248
33249 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
33250 in C++ mode.
33251
33252 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33253
33254 [BZ #21930]
33255 * math/math.h (isinf): Check if in C or C++ mode before using
33256 __builtin_types_compatible_p, since this is a C mode feature.
33257
33258 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33259
33260 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
33261 (__write_nocancel): New macro.
33262 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
33263 Rewrite as a function prototype.
33264 (write_not_cancel): Remove macro.
33265 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
33266 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
33267 (write_gmon): Likewise.
33268 * libio/fileops.c (_IO_new_file_write): Likewise.
33269 * login/utmp_file.c (pututline_file): Likewise.
33270 (updwtmp_file): Likewise.
33271 * stdio-common/psiginfo.c (psiginfo): Likewise.
33272 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33273 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33274 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33275 Likewise.
33276 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33277 Likewise.
33278
33279 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
33280 (__read_nocancel): New macro.
33281 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33282 __read_nocancel.
33283 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
33284 macro.
33285 (__read_nocancel): New prototype.
33286 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
33287 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
33288 with __read_nocancel.
33289 * intl/loadmsgcat.c (read): Likewise.
33290 * libio/fileops.c (_IO_file_read): Likewise.
33291 * locale/loadlocale.c (_nl_load_locale): Likewise.
33292 * login/utmp_file.c (getutent_r_file): Likewise.
33293 (internal_getut_r): Likewise.
33294 (getutline_r_file): Likewise.
33295 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33296 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
33297 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33298 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33299 Likewise.
33300 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
33301 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33302 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33303 Likewise.
33304 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33305 Likewise.
33306 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33307 Likewise.
33308 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33309 Likewise.
33310 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33311
33312 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
33313
33314 [BZ #21966]
33315 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
33316 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
33317 usable.
33318
33319 2017-08-17 DJ Delorie <dj@redhat.com>
33320
33321 * bug17079.c: Update to new test harness.
33322 * test-digits-dots.c: Likewise.
33323 * test-netdb.c: Likewise.
33324 * tst-field.c: Likewise.
33325 * tst-nss-getpwent.c: Likewise.
33326 * tst-nss-static.c: Likewise.
33327 * tst-nss-test1.c: Likewise.
33328 * tst-nss-test2.c: Likewise.
33329 * tst-nss-test3.c: Likewise.
33330 * tst-nss-test4.c: Likewise.
33331 * tst-nss-test5.c: Likewise.
33332
33333 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33334
33335 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
33336 (open_not_cancel_2): Likewise.
33337 (open_nocancel): New macro.
33338 (open64_nocancel): Likewise.
33339 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
33340 (open_not_cancel_2): Likewise.
33341 (__open_nocancel): New prototype.
33342 (__open64_nocancel): Likewise.
33343 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
33344 __open_nocancel.
33345 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
33346 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
33347 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
33348 with __open_nocancel.
33349 * csu/check_fds.c (check_one_fd): Likewise.
33350 * gmon/gmon.c (write_gmon): Likewise.
33351 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
33352 * intl/loadmsgcat.c (open): Likewise.
33353 * libio/fileops.c (_IO_file_open): Likewise.
33354 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
33355 * locale/loadlocale.c (_nl_load_locale): Likewise.
33356 * login/utmp_file.c (setutent_file): Likewise.
33357 * misc/daemon.c (daemon): Likewise.
33358 * nss/nss_db/db-open.c (internal_setent): Likewise.
33359 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
33360 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
33361 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
33362 (__opendir): Likewise.
33363 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
33364 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
33365 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
33366 (gethostid): Likewise.
33367 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
33368 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33369 Likewise.
33370 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
33371 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
33372 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
33373 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
33374 Likewise.
33375 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
33376 Likewise.
33377 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
33378 Likewise.
33379 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
33380 Likewise.
33381 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
33382 Likewise.
33383 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
33384 Likewise.
33385 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
33386 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
33387
33388 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
33389
33390 * benchtests/bench-skeleton.c (main): Add support for
33391 latency benchmarking.
33392 * benchtests/scripts/bench.py: Add support for latency benchmarking.
33393
33394 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
33395
33396 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
33397 the startup object.
33398
33399 2017-08-17 Florian Weimer <fweimer@redhat.com>
33400
33401 * include/sys/socket.h (__opensock): Remove internal_function.
33402 * socket/opensock.c (__opensock): Likewise.
33403 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
33404
33405 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33406
33407 [BZ #21944]
33408 * signal/bits/types/__sigval_t.h: New file.
33409 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
33410 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
33411 and define sigval_t using __sigval_t.
33412 * include/bits/types/__sigval_t.h: New file.
33413 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
33414 instead of <bits/types/__sigval_t.h>.
33415 (struct sigevent): Use __sigval_t instead of sigval_t.
33416 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
33417 instead of <bits/types/__sigval_t.h>.
33418 (siginfo_t): Use __sigval_t instead of sigval_t.
33419 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
33420 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33421 (struct sigevent): Use __sigval_t instead of sigval_t.
33422 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
33423 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
33424 (siginfo_t): Use __sigval_t instead of sigval_t.
33425 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
33426
33427 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33428
33429 * NEWS: Remove "[Add new features here]" for 2.27.
33430
33431 2017-08-16 Joseph Myers <joseph@codesourcery.com>
33432
33433 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
33434 libc.so.
33435
33436 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33437
33438 * NEWS: Mention x86-64 FMA optimization.
33439
33440 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
33441
33442 [BZ #21912]
33443 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
33444 Add e_expf-fma.
33445 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
33446 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
33447 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
33448
33449 2017-08-16 Andreas Schwab <schwab@suse.de>
33450
33451 [BZ #16750]
33452 CVE-2009-5064
33453 * elf/ldd.bash.in: Never run file directly.
33454
33455 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
33456
33457 [BZ #21955]
33458 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
33459 (L(SP_INF_0)): Likewise.
33460
33461 2017-08-15 Florian Weimer <fweimer@redhat.com>
33462
33463 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
33464 run-built-tests.
33465
33466 2017-08-15 Florian Weimer <fweimer@redhat.com>
33467
33468 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
33469 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
33470 BROKEN_THREAD_SIGNALS code.
33471 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
33472 request_list): Remove caller_pid member used for
33473 BROKEN_THREAD_SIGNALS.
33474 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
33475 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
33476 Remove BROKEN_THREAD_SIGNALS support.
33477 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
33478 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
33479
33480 2017-08-15 Florian Weimer <fweimer@redhat.com>
33481
33482 * gmon/Makefile (tests): Add tst-gmon.
33483 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
33484 Set.
33485 (tests-special): Add tst-gmon-prof.out.
33486 (tst-gmon.out): Depend on clean-tst-gmon-data.
33487 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
33488 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
33489 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
33490 startup object.
33491 * aclocal.m4 (GPROF): Set and substitute.
33492 * config.amke.in (GPROF): Set.
33493 * configure: Regenerate.
33494
33495 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
33496
33497 * elf/elf.h A (NT_PPC_TAR): New macro.
33498 (NT_PPC_PPR): Likewise.
33499 (NT_PPC_DSCR): Likewise.
33500 (NT_PPC_EBB): Likewise.
33501 (NT_PPC_PMU): Likewise.
33502 (NT_PPC_TM_CGPR): Likewise.
33503 (NT_PPC_TM_CFPR): Likewise.
33504 (NT_PPC_TM_CVMX): Likewise.
33505 (NT_PPC_TM_CVSX): Likewise.
33506 (NT_PPC_TM_SPR): Likewise.
33507 (NT_PPC_TM_CTAR): Likewise.
33508 (NT_PPC_TM_CPPR): Likewise.
33509 (NT_PPC_TM_CDSCR): Likewise.
33510
33511 2017-08-15 Florian Weimer <fweimer@redhat.com>
33512
33513 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
33514 regparm (2) instead of internal_function.
33515 (_MCOUNT_DECL): Adjust.
33516
33517 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
33518
33519 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
33520 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
33521
33522 2017-08-14 Joseph Myers <joseph@codesourcery.com>
33523
33524 * conform/data/sys/wait.h-data (si_value): Do not expect for
33525 XPG42.
33526
33527 2017-08-14 Florian Weimer <fweimer@redhat.com>
33528
33529 [BZ #21962]
33530 NSS: Create stubs for accidentally exported lookup functions.
33531 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
33532 Remove declaration.
33533 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
33534 (ether_hostton): Call __nss_ethers_lookup2 instead.
33535 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
33536 (ether_ntohost): Call __nss_ethers_lookup2 instead.
33537 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
33538 (setup): Call __nss_netgroup_lookup2 instead.
33539 * nss/Makefile (routines): Add compat-lookup.
33540 * nss/Versions (GLIBC_2.27): Add symbol version.
33541 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
33542 (DB_COMPAT_FCT): Remove.
33543 * nss/compat-lookup.c: New file.
33544 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
33545 from databases.def.
33546 * nss/service-lookup.c (NO_COMPAT): Remove definition.
33547 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
33548 (netname2user): Call __nss_publickey_lookup2 instead.
33549 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
33550 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
33551 instead.
33552
33553 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33554 Sergei Trofimovich <slyfox@inbox.ru>
33555
33556 [BZ #21908]
33557 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
33558 Rename to MMAP2_PAGE_UNIT.
33559 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
33560 __OFF_T_MATCHES_OFF64_T is not defined.
33561 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
33562 uint64_t.
33563 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
33564 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
33565
33566 2017-08-14 Florian Weimer <fweimer@redhat.com>
33567
33568 i386: Do not set internal_function.
33569 * config.h.in (USE_REGPARMS, internal_function): Remove.
33570 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
33571 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
33572
33573 2017-08-14 Florian Weimer <fweimer@redhat.com>
33574
33575 * elf/dl-init.c (_dl_init): Remove internal_function.
33576 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
33577 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
33578
33579 2017-08-14 Florian Weimer <fweimer@redhat.com>
33580
33581 * elf/rtld.c (_dl_start): Remove internal_function.
33582 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
33583 _dl_start.
33584
33585 2017-08-14 Florian Weimer <fweimer@redhat.com>
33586
33587 * elf/dl-fini.c (_dl_fini): Remove internal_function
33588 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
33589
33590 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
33591
33592 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
33593 (bit_cpu_SHSTK): Likewise.
33594 (index_cpu_IBT): Likewise.
33595 (index_cpu_SHSTK): Likewise.
33596 (reg_IBT): Likewise.
33597 (reg_SHSTK): Likewise.
33598 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
33599 Handle index_cpu_IBT and index_cpu_SHSTK.
33600
33601 2017-08-14 Mike FABIAN <mfabian@redhat.com>
33602
33603 [BZ #19982]
33604 * po/fr.po: Fix spelling mistake.
33605
33606 2017-08-13 Florian Weimer <fweimer@redhat.com>
33607
33608 * elf/dl-addr.c (_dl_addr): Remove internal_function.
33609 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
33610 (_dl_catch_error, _dl_receive_error): Likewise.
33611 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
33612 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
33613 (_dl_deallocate_tls): Likewise.
33614 * include/dlfcn.h (_dl_addr): Likewise.
33615 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
33616 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
33617 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
33618 Likewise.
33619
33620 2017-08-13 Florian Weimer <fweimer@redhat.com>
33621
33622 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
33623 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
33624 internal_function.
33625 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
33626
33627 2017-08-13 Florian Weimer <fweimer@redhat.com>
33628
33629 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
33630 internal_function.
33631 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
33632 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
33633 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
33634 internal_function from _dl_make_stack_executable_hook member.
33635 (_dl_make_stack_executable): Remove internal_function.
33636 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
33637 Likewise.
33638 * sysdeps/unix/sysv/linux/dl-execstack.c
33639 (_dl_make_stack_executable): Likewise.
33640
33641 2017-08-13 Florian Weimer <fweimer@redhat.com>
33642
33643 * sysdeps/unix/sysv/linux/netlinkaccess.h
33644 (__netlink_assert_response): Remove internal_function.
33645 * sysdeps/unix/sysv/linux/netlink_assert_response.c
33646 (__netlink_assert_response): Likewise.
33647
33648 2017-08-13 Florian Weimer <fweimer@redhat.com>
33649
33650 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
33651 internal_function.
33652 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
33653
33654 2017-08-13 Florian Weimer <fweimer@redhat.com>
33655
33656 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
33657 internal_function.
33658 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
33659 * inet/netgroup.h (__internal_setnetgrent)
33660 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33661 * inet/getnetgrent_r.c (__internal_setnetgrent)
33662 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
33663 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
33664 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
33665 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
33666 * nss/nsswitch.h (db_lookup_function): Likewise.
33667
33668 2017-08-13 Florian Weimer <fweimer@redhat.com>
33669
33670 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
33671 Remove internal_function.
33672 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
33673 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
33674 message argument on the stack.
33675 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
33676 Likeweise.
33677
33678 2017-08-12 Mike FABIAN <mfabian@redhat.com>
33679
33680 Adapt test case data to the changes in the thousands
33681 separators.
33682
33683 [BZ #20756]
33684 * localedata/tst-langinfo.sh: Adapt test case data.
33685 * stdlib/tst-strfmon_l.c: Likewise.
33686 * stdlib/tst-strtod4.c: Likewise.
33687 * stdlib/tst-strtod5i.c: Likewise.
33688
33689 2017-08-11 Florian Weimer <fweimer@redhat.com>
33690
33691 [BZ #21242]
33692 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
33693 Suppress pedantic warning resulting from statement expression.
33694 (__ASSERT_FUNCTION): Add missing __extension__.
33695
33696 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
33697
33698 * benchtests/bench-memmove-large.c: Print output in JSON
33699 format.
33700 * benchtests/bench-memmove.c: Likewise.
33701
33702 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
33703 * benchtests/bench-memchr.c (do_one_test): Likewise.
33704 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
33705 * benchtests/bench-memcpy.c (do_one_test): Likewise.
33706 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
33707 * benchtests/bench-memmove.c (do_one_test): Likewise.
33708 * benchtests/bench-memset-large.c (do_one_test): Likewise.
33709 * benchtests/bench-memset.c (do_one_test): Likewise.
33710 * benchtests/bench-string.h (test_init): Remove memsets.
33711
33712 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33713
33714 * manual/lang.texi
33715 (Computing the Width of an Integer Data Type): Rename section to
33716 "Width of an Integer Type". Remove inaccurate statement regarding
33717 lack of C language facilities for determining width of integer
33718 types, and reorder content to improve flow and context of
33719 discussion.
33720
33721 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
33722
33723 * lang.texi (va_copy): Change standard from ISO to C99.
33724 (__va_copy): Add standard and header annotation.
33725 Update description for clarity of origins and current use.
33726
33727 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
33728
33729 [BZ #21941]
33730 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
33731 xssqrtqp requires operands to be in Vector Registers
33732 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
33733 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
33734 (__ieee754_sqrtf128): Likewise.
33735
33736 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
33737
33738 * sysdeps/aarch64/memcmp.S (memcmp):
33739 Rewrite of optimized memcmp.
33740
33741 2017-08-10 Florian Weimer <fweimer@redhat.com>
33742
33743 Introduce ld.so exceptions.
33744 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
33745 (_dl_exception_create, _dl_exception_create_format)
33746 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
33747 (_dl_catch_exception): Declare.
33748 (_dl_catch_error): Update comment.
33749 * elf/dl-error-skeleton.c (struct catch): Replace objname,
33750 errstring, malloced members with exception member.
33751 (_dl_out_of_memory): Remove.
33752 (fatal_error): New function, extracted from _dl_signal_error.
33753 (_dl_signal_exception, _dl_signal_cexception): New functions.
33754 (_dl_signal_error): Call _dl_exception_create to allocate an
33755 exception object.
33756 (_dl_catch_exception): New function, based on _dl_catch_error.
33757 (_dl_catch_error): Implement using _dl_catch_exception.
33758 * elf/dl-exception.c: New file.
33759 * elf/Makefile (dl-routines): Add dl-exception.
33760 (elide-routines.os): Likewise.
33761 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
33762 _dl_exception_create_format, _dl_exception_free.
33763 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
33764 _dl_signal_exception.
33765 * elf/dl-lookup.c (make_string): Remove.
33766 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
33767 _dl_signal_cexception, _dl_exception_free.
33768 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
33769 _dl_signal_exception.
33770 * elf/dl-sym.c (do_sym): Likewise.
33771 * elf/dl-version.c (make_string): Remove.
33772 (match_symbol): Use _dl_exception_create_format,
33773 _dl_signal_cexception, _dl_exception_free.
33774 (_dl_check_map_versions): Likewise.
33775 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
33776 _dl_catch_exception.
33777 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
33778 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
33779 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
33780 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
33781 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
33782 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
33783 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
33784 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
33785 Likewise.
33786 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
33787 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
33788 (ld.so): Likewise.
33789 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
33790 (ld.so): Likewise.
33791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
33792 Likewise.
33793 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
33794 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
33795 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
33796 Likewise.
33797 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
33798 Likewise.
33799 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
33800
33801 2017-08-10 Florian Weimer <fweimer@redhat.com>
33802
33803 * inet/net-internal.h (__inet6_scopeid_pton): Remove
33804 attribute_hidden, internal_function.
33805 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
33806 internal_function.
33807
33808 2017-08-10 Florian Weimer <fweimer@redhat.com>
33809
33810 * malloc/malloc.c (get_max_fast): Reimplement as an inline
33811 function which calls __builtin_unreachable.
33812
33813 2017-08-10 Mike FABIAN <mfabian@redhat.com>
33814
33815 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
33816 Indian monetary formatting
33817 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
33818 test cases.
33819
33820 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
33821
33822 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
33823 Fix typo in comment.
33824
33825 [BZ #21928]
33826 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
33827 PTRACE_SEIZE_DEVEL): Remove.
33828 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
33829 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
33830 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
33831 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
33832 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
33833
33834 2017-08-09 Joseph Myers <joseph@codesourcery.com>
33835
33836 * posix/bits/types.h (__qaddr_t): Remove.
33837
33838 [BZ #21457]
33839 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
33840 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33841 __glibc_reserved1.
33842 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
33843 (ucontext_t): Use __ctx with uc_flags.
33844 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
33845 (__ctxt): Likewise.
33846 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33847 __glibc_reserved1.
33848 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
33849 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33850 __glibc_reserved1.
33851 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
33852 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33853 __glibc_reserved1.
33854 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
33855 macro.
33856 (ucontext_t): Use __ctx with uc_flags.
33857 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
33858 (ucontext_t): Use __ctx with uc_flags.
33859 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
33860 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
33861 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
33862 (ucontext_t): Use __ctx with uc_flags.
33863 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
33864 undefine further down.
33865 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
33866 __glibc_reserved1.
33867 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
33868 undefine further down.
33869 (ucontext_t): Use __ctx with uc_flags.
33870 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
33871 undefine further down.
33872 (ucontext_t): Use __ctx with uc_flags.
33873 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
33874 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
33875 Rename uc_pad to __glibc_reserved1.
33876 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
33877 undefine further down.
33878 (ucontext_t): Use __ctx with uc_flags.
33879 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
33880 further down.
33881 (ucontext_t): Use __ctx with uc_flags.
33882 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
33883 __ctx with uc_flags.
33884 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
33885 (ucontext_t): Use __ctx with uc_flags.
33886 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
33887 __ctx with uc_flags.
33888
33889 2017-08-09 Florian Weimer <fweimer@redhat.com>
33890
33891 [BZ #21932]
33892 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
33893 before early return.
33894
33895 2017-08-09 Andreas Schwab <schwab@suse.de>
33896
33897 [BZ #21041]
33898 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
33899 renamed alias.
33900
33901 [BZ #21041]
33902 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
33903 tst-compat-forwarder.
33904 (modules-names): Add tst-compat-forwarder-mod.
33905 ($(objpfx)tst-compat-forwarder): Depend on
33906 $(objpfx)tst-compat-forwarder-mod.so.
33907 * nptl/tst-compat-forwarder.c: New file.
33908 * nptl/tst-compat-forwarder-mod.c: New file.
33909
33910 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
33911
33912 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
33913 comments.
33914
33915 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
33916 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
33917 memcpy_falkor.
33918 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
33919 Bump.
33920 (__libc_ifunc_impl_list): Add __memcpy_falkor.
33921 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
33922 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
33923 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
33924 Add falkor.
33925 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
33926 New macro.
33927
33928 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
33929
33930 [BZ #759]
33931 * manual/setjmp.texi (getcontex): Document uc_stack value
33932 compatibility differences.
33933
33934 2017-08-08 Joseph Myers <joseph@codesourcery.com>
33935
33936 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
33937 (old_malloc_hook): Likewise.
33938 (old_memalign_hook): Likewise.
33939 (old_realloc_hook): Likewise.
33940 (struct hdr): Likewise.
33941 (flood): Likewise.
33942 (freehook): Likewise.
33943 (mallochook): Likewise.
33944 (memalignhook): Likewise.
33945 (reallochook): Likewise.
33946 (mprobe): Likewise.
33947 * malloc/mtrace.c (mallwatch): Likewise.
33948 (tr_old_free_hook): Likewise.
33949 (tr_old_malloc_hook): Likewise.
33950 (tr_old_realloc_hook): Likewise.
33951 (tr_old_memalign_hook): Likewise.
33952 (tr_where): Likewise.
33953 (lock_and_info): Likewise.
33954 (tr_freehook): Likewise.
33955 (tr_mallochook): Likewise.
33956 (tr_reallochook): Likewise.
33957 (tr_memalignhook): Likewise.
33958 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
33959 * misc/mmap.c (__mmap): Likewise.
33960 * misc/mmap64.c (__mmap64): Likewise.
33961 * misc/mprotect.c (__mprotect): Likewise.
33962 * misc/msync.c (msync): Likewise.
33963 * misc/munmap.c (__munmap): Likewise.
33964 * posix/posix_madvise.c (posix_madvise): Likewise.
33965 * socket/send.c (__send): Likewise.
33966 * socket/sendto.c (__sendto): Likewise.
33967 * socket/setsockopt.c (__setsockopt): Likewise.
33968 * string/memcmp.c (__ptr_t): Remove macro.
33969 (MEMCMP): Use void * instead of ptr_t.
33970 * string/memrchr.c (__ptr_t): Remove macro.
33971 (__memrchr): Use void * instead of ptr_t.
33972 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
33973 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
33974 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
33975 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
33976 * sysdeps/mach/msync.c (msync): Likewise.
33977 * sysdeps/mach/munmap.c (__munmap): Likewise.
33978 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
33979 Likewise.
33980 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
33981 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
33982 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
33983 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
33984 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
33985 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
33986 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
33987 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
33988 Likewise.
33989 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
33990 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
33991 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
33992 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
33993 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
33994 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
33995 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
33996 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
33997 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
33998 Likewise.
33999 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
34000 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
34001 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
34002 (MEMCMP): Use void * instead of ptr_t.
34003 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
34004 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
34005
34006 2017-08-08 Florian Weimer <fweimer@redhat.com>
34007
34008 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
34009 return statement.
34010
34011 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
34012
34013 [BZ #21913]
34014 * csu/libc-tls.c: Include <startup.h> first.
34015 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
34016 * elf/dl-tunables.c: Include <startup.h> first.
34017 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
34018 * sysdeps/generic/startup.h: New file.
34019 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
34020 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
34021 (I386_USE_SYSENTER): New. Defined to 0.
34022
34023 2017-08-08 Andreas Schwab <schwab@suse.de>
34024
34025 [BZ #21041]
34026 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
34027 * nptl/pt-system.c (system): Likewise.
34028
34029 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
34030
34031 [BZ #21780]
34032 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
34033 EOPNOTSUPP.
34034 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
34035 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
34036 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
34037 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
34038 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
34039 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
34040 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
34041
34042 2017-08-07 Joseph Myers <joseph@codesourcery.com>
34043
34044 [BZ #21899]
34045 * bits/sigaction.h (struct sigaction): Define sa_handler and
34046 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
34047 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34048 [__USE_XOPEN_EXTENDED].
34049 (SA_RESTART): Likewise.
34050 (SA_NODEFER): Likewise.
34051 (SA_RESETHAND): Likewise.
34052 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
34053 (struct sigaction): Define sa_handler and sa_sigaction using union
34054 also for [__USE_XOPEN_EXTENDED].
34055 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34056 [__USE_XOPEN_EXTENDED].
34057 (SA_RESTART): Likewise.
34058 (SA_NODEFER): Likewise.
34059 (SA_RESETHAND): Likewise.
34060 * sysdeps/unix/sysv/linux/bits/sigaction.h
34061 (struct sigaction): Define sa_handler and sa_sigaction using union
34062 also for [__USE_XOPEN_EXTENDED].
34063 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34064 [__USE_XOPEN_EXTENDED].
34065 (SA_RESTART): Likewise.
34066 (SA_NODEFER): Likewise.
34067 (SA_RESETHAND): Likewise.
34068 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
34069 (struct sigaction): Define sa_handler and sa_sigaction using union
34070 also for [__USE_XOPEN_EXTENDED].
34071 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34072 [__USE_XOPEN_EXTENDED].
34073 (SA_RESTART): Likewise.
34074 (SA_NODEFER): Likewise.
34075 (SA_RESETHAND): Likewise.
34076 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
34077 (struct sigaction): Define sa_handler and sa_sigaction using union
34078 also for [__USE_XOPEN_EXTENDED].
34079 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34080 [__USE_XOPEN_EXTENDED].
34081 (SA_RESTART): Likewise.
34082 (SA_NODEFER): Likewise.
34083 (SA_RESETHAND): Likewise.
34084 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
34085 (struct sigaction): Define sa_handler and sa_sigaction using union
34086 also for [__USE_XOPEN_EXTENDED].
34087 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34088 [__USE_XOPEN_EXTENDED].
34089 (SA_RESTART): Likewise.
34090 (SA_NODEFER): Likewise.
34091 (SA_RESETHAND): Likewise.
34092 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
34093 (struct sigaction): Define sa_handler and sa_sigaction using union
34094 also for [__USE_XOPEN_EXTENDED].
34095 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34096 [__USE_XOPEN_EXTENDED].
34097 (SA_RESTART): Likewise.
34098 (SA_NODEFER): Likewise.
34099 (SA_RESETHAND): Likewise.
34100 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
34101 (struct sigaction): Define sa_handler and sa_sigaction using union
34102 also for [__USE_XOPEN_EXTENDED].
34103 (SA_ONSTACK): Change [__USE_UNIX98] condition to
34104 [__USE_XOPEN_EXTENDED].
34105 (SA_RESTART): Likewise.
34106 (SA_NODEFER): Likewise. Define directly rather than as alias.
34107 (SA_RESETHAND): Likewise.
34108 (SA_INTERRUPT): Define only for [__USE_MISC].
34109 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
34110 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
34111 [__USE_MISC].
34112 (SA_STACK): Define only for [__USE_MISC].
34113 * sysdeps/unix/sysv/linux/tile/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 (SA_NOPTRACE): Define only for [__USE_MISC].
34122
34123 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
34124 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
34125 (struct catalog_info): Likewise.
34126 * inet/htontest.c (lo): Likewise.
34127 (foo): Likewise.
34128 * inet/inet_lnaof.c (inet_lnaof): Likewise.
34129 * inet/inet_net.c (inet_network): Likewise.
34130 * inet/inet_netof.c (inet_netof): Likewise.
34131 * inet/rcmd.c (__ivaliduser): Likewise.
34132 (iruserok): Likewise.
34133 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
34134 * locale/programs/locale-spec.c (locale_special): Likewise.
34135 * nis/nis_findserv.c (struct findserv_req): Likewise.
34136 (__nis_findfastest_with_timeout): Likewise.
34137 * nss/test-netdb.c (test_network): Likewise.
34138 * resolv/inet_neta.c (inet_neta): Likewise.
34139 * resolv/ns_date.c (ns_datetosecs): Likewise.
34140 (SECS_PER_DAY): Likewise.
34141 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
34142 Likewise.
34143 * resolv/res_comp.c (__putlong): Likewise.
34144 (__putshort): Likewise.
34145 (_getlong): Likewise.
34146 (_getshort): Likewise.
34147 * resolv/res_debug.c (p_time): Likewise.
34148 (precsize_ntoa): Likewise.
34149 (precsize_aton): Likewise.
34150 (latlon2ul): Likewise.
34151 (loc_aton): Likewise.
34152 (loc_ntoa): Likewise.
34153 * resolv/res_hconf.c (struct netaddr): Likewise.
34154 (_res_hconf_reorder_addrs): Likewise.
34155 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
34156 (clnttcp_control): Likewise.
34157 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
34158 (clntudp_control): Likewise.
34159 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
34160 (clntunix_control): Likewise.
34161 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
34162 * sunrpc/rpc/auth.h (union des_block): Likewise.
34163 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
34164 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
34165 (xdrrec_create): Likewise.
34166 (xdrrec_endofrecord): Likewise.
34167 (flush_out): Likewise.
34168 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
34169 (xdrstdio_putlong): Likewise.
34170 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
34171 Likewise.
34172
34173 * misc/sys/cdefs.h (__long_double_t): Remove.
34174 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
34175 instead of __long_double_t,
34176 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
34177
34178 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
34179
34180 * benchtests/scripts/compare_strings.py: Avoid display error when
34181 running on a text terminal.
34182
34183 * benchtests/scripts/compare_strings.py (main): Add an
34184 optional -base option.
34185 (process_results): New argument base_func.
34186
34187 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
34188 hardcoding memcpy.
34189 * benchtests/bench-memcpy-large.c (test_name): Likewise.
34190 * benchtests/bench-memcpy-random.c (test_name): Likewise.
34191
34192 2017-08-07 Andreas Schwab <schwab@suse.de>
34193
34194 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
34195 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
34196 * intl/Makefile ($(objpfx)tst-gettext.out)
34197 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
34198 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
34199 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
34200 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
34201 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
34202 * posix/Makefile ($(objpfx)globtest.out)
34203 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
34204 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
34205 ($(objpfx)tst-printf.out): Likewise.
34206 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
34207 ($(objpfx)tst-setcontext3.out): Likewise.
34208
34209 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
34210
34211 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34212 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
34213 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
34214 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
34215 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
34216 and mptan-fma.
34217 (CFLAGS-doasin-fma.c): New.
34218 (CFLAGS-dosincos-fma.c): Likewise.
34219 (CFLAGS-e_asin-fma.c): Likewise.
34220 (CFLAGS-e_atan2-fma.c): Likewise.
34221 (CFLAGS-e_exp-fma.c): Likewise.
34222 (CFLAGS-e_log-fma.c): Likewise.
34223 (CFLAGS-e_pow-fma.c): Likewise.
34224 (CFLAGS-halfulp-fma.c): Likewise.
34225 (CFLAGS-mpa-fma.c): Likewise.
34226 (CFLAGS-mpatan-fma.c): Likewise.
34227 (CFLAGS-mpatan2-fma.c): Likewise.
34228 (CFLAGS-mpexp-fma.c): Likewise.
34229 (CFLAGS-mplog-fma.c): Likewise.
34230 (CFLAGS-mpsqrt-fma.c): Likewise.
34231 (CFLAGS-mptan-fma.c): Likewise.
34232 (CFLAGS-s_atan-fma.c): Likewise.
34233 (CFLAGS-sincos32-fma.c): Likewise.
34234 (CFLAGS-slowexp-fma.c): Likewise.
34235 (CFLAGS-slowpow-fma.c): Likewise.
34236 (CFLAGS-s_sin-fma.c): Likewise.
34237 (CFLAGS-s_tan-fma.c): Likewise.
34238 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
34239 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
34240 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
34241 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
34242 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
34243 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
34244 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
34245 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
34246 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
34247 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
34248 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
34249 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
34250 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
34251 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
34252 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
34253 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
34254 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
34255 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
34256 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
34257 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
34258 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
34259 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
34260 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
34261 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
34262 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
34263 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
34264 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
34265 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
34266 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
34267 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
34268 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
34269
34270 2017-08-04 Joseph Myers <joseph@codesourcery.com>
34271
34272 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
34273 (min_of_type_f): New macro.
34274 (min_of_type_): Likewise.
34275 (min_of_type_l): Likewise.
34276 (min_of_type_f128): Likewise.
34277 (min_of_type): Define using __MATH_TG and taking an expression
34278 argument.
34279 (math_check_force_underflow): Pass expression instead of type to
34280 min_of_type.
34281 (math_check_force_underflow_nonneg): Likewise.
34282
34283 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34284
34285 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
34286 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
34287 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
34288
34289 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34290
34291 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34292 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
34293 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
34294 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
34295 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
34296 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
34297 memcpy_chk-nonshared, mempcpy_chk-nonshared,
34298 memmove_chk-nonshared and memset_chk-nonshared
34299 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
34300 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
34301 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
34302 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
34303 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
34304 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
34305 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
34306 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
34307 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
34308 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
34309 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
34310 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
34311 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
34312 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
34313 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
34314 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
34315 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
34316 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
34317 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
34318 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
34319 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
34320 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
34321 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
34322 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
34323 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
34324 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
34325 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
34326 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
34327 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
34328 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
34329 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
34330 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
34331 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
34332 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34333 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
34334 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
34335 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
34336 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
34337 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
34338 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
34339 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
34340 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
34341 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
34342 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
34343 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
34344 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
34345 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
34346 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
34347 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
34348 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
34349 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
34350 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
34351 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
34352 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
34353 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
34354 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
34355 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
34356 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
34357 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
34358 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
34359 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
34360 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
34361 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
34362 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
34363 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
34364 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
34365 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
34366 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
34367 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
34368 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
34369 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
34370 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
34371 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
34372 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
34373 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
34374 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
34375 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
34376 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
34377 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
34378 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
34379 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
34380 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
34381 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
34382 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
34383 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
34384 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
34385 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
34386 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
34387 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
34388 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
34389 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
34390 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
34391 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
34392 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
34393 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
34394 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
34395 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
34396 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
34397 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
34398 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
34399 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
34400 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
34401 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
34402 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
34403 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
34404 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
34405 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
34406 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
34407
34408 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34409
34410 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
34411 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
34412 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
34413 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
34414 svml_d_log2_core-sse2, svml_d_log4_core-sse,
34415 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
34416 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
34417 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
34418 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
34419 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
34420 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
34421 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
34422 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
34423 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
34424 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
34425 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
34426 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
34427 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
34428 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
34429 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
34430 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
34431 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
34432 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
34433 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
34434 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
34435 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
34436 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
34437 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
34438 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
34439 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
34440 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
34441 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
34442 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
34443 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
34444 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
34445 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
34446 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
34447 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
34448 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
34449 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
34450 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
34451 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
34452 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
34453 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
34454 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
34455 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
34456 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
34457 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
34458 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
34459 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
34460 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
34461 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
34462 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
34463 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
34464 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
34465 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
34466 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
34467 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
34468 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
34469 ...
34470 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
34471 Don't include <sysdep.h> nor <init-arch.h>.
34472 (_ZGVbN2v_cos): Removed.
34473 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
34474 ...
34475 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
34476 Don't include <sysdep.h> nor <init-arch.h>.
34477 (_ZGVdN4v_cos): Removed.
34478 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
34479 ...
34480 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
34481 Don't include <sysdep.h> nor <init-arch.h>.
34482 (_ZGVeN8v_cos): Removed.
34483 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
34484 ...
34485 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
34486 Don't include <sysdep.h> nor <init-arch.h>.
34487 (_ZGVbN2v_exp): Removed.
34488 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
34489 ...
34490 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
34491 Don't include <sysdep.h> nor <init-arch.h>.
34492 (_ZGVdN4v_exp): Removed.
34493 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
34494 ...
34495 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
34496 Don't include <sysdep.h> nor <init-arch.h>.
34497 (_ZGVeN8v_exp): Removed.
34498 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
34499 ...
34500 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
34501 Don't include <sysdep.h> nor <init-arch.h>.
34502 (_ZGVbN2v_log): Removed.
34503 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
34504 ...
34505 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
34506 Don't include <sysdep.h> nor <init-arch.h>.
34507 (_ZGVdN4v_log): Removed.
34508 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
34509 ...
34510 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
34511 Don't include <sysdep.h> nor <init-arch.h>.
34512 (_ZGVeN8v_log): Removed.
34513 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
34514 ...
34515 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
34516 Don't include <sysdep.h> nor <init-arch.h>.
34517 (_ZGVbN2vv_pow): Removed.
34518 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
34519 ...
34520 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
34521 Don't include <sysdep.h> nor <init-arch.h>.
34522 (_ZGVdN4vv_pow): Removed.
34523 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
34524 ...
34525 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
34526 Don't include <sysdep.h> nor <init-arch.h>.
34527 (_ZGVeN8vv_pow): Removed.
34528 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
34529 ...
34530 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
34531 Don't include <sysdep.h> nor <init-arch.h>.
34532 (_ZGVbN2v_sin): Removed.
34533 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
34534 ...
34535 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
34536 Don't include <sysdep.h> nor <init-arch.h>.
34537 (_ZGVbN4v_sin): Removed.
34538 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
34539 ...
34540 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
34541 Don't include <sysdep.h> nor <init-arch.h>.
34542 (_ZGVbN8v_sin): Removed.
34543 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
34544 ...
34545 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
34546 Don't include <sysdep.h> nor <init-arch.h>.
34547 (_ZGVbN2vvv_sincos): Removed.
34548 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
34549 ...
34550 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
34551 Don't include <sysdep.h> nor <init-arch.h>.
34552 (_ZGVdN4vvv_sincos): Removed.
34553 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
34554 ...
34555 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
34556 Don't include <sysdep.h> nor <init-arch.h>.
34557 (_ZGVeN8vvv_sincos): Removed.
34558 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
34559 ...
34560 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
34561 Don't include <sysdep.h> nor <init-arch.h>.
34562 (_ZGVeN16v_cosf): Removed.
34563 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
34564 ...
34565 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
34566 Don't include <sysdep.h> nor <init-arch.h>.
34567 (_ZGVbN4v_cosf): Removed.
34568 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
34569 ...
34570 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
34571 Don't include <sysdep.h> nor <init-arch.h>.
34572 (_ZGVdN8v_cosf): Removed.
34573 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
34574 ...
34575 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
34576 Don't include <sysdep.h> nor <init-arch.h>.
34577 (_ZGVeN16v_expf): Removed.
34578 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
34579 ...
34580 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
34581 Don't include <sysdep.h> nor <init-arch.h>.
34582 (_ZGVbN4v_expf): Removed.
34583 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
34584 ...
34585 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
34586 Don't include <sysdep.h> nor <init-arch.h>.
34587 (_ZGVdN8v_expf): Removed.
34588 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
34589 ...
34590 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
34591 Don't include <sysdep.h> nor <init-arch.h>.
34592 (_ZGVeN16v_logf): Removed.
34593 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
34594 ...
34595 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
34596 Don't include <sysdep.h> nor <init-arch.h>.
34597 (_ZGVbN4v_logf): Removed.
34598 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
34599 ...
34600 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
34601 Don't include <sysdep.h> nor <init-arch.h>.
34602 (_ZGVdN8v_logf): Removed.
34603 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
34604 ...
34605 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
34606 Don't include <sysdep.h> nor <init-arch.h>.
34607 (_ZGVeN16vv_powf): Removed.
34608 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
34609 ...
34610 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
34611 Don't include <sysdep.h> nor <init-arch.h>.
34612 (_ZGVbN4vv_powf): Removed.
34613 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
34614 ...
34615 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
34616 Don't include <sysdep.h> nor <init-arch.h>.
34617 (_ZGVdN8vv_powf): Removed.
34618 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
34619 ...
34620 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
34621 Don't include <sysdep.h> nor <init-arch.h>.
34622 (_ZGVeN16vvv_sincosf): Removed.
34623 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
34624 ...
34625 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
34626 Don't include <sysdep.h> nor <init-arch.h>.
34627 (_ZGVbN4vvv_sincosf): Removed.
34628 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
34629 ...
34630 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
34631 Don't include <sysdep.h> nor <init-arch.h>.
34632 (_ZGVdN8vvv_sincosf): Removed.
34633 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
34634 ...
34635 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
34636 Don't include <sysdep.h> nor <init-arch.h>.
34637 (_ZGVeN16v_sinf): Removed.
34638 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
34639 ...
34640 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
34641 Don't include <sysdep.h> nor <init-arch.h>.
34642 (_ZGVbN4v_sinf): Removed.
34643 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
34644 ...
34645 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
34646 Don't include <sysdep.h> nor <init-arch.h>.
34647 (_ZGVdN8v_sinf): Removed.
34648
34649 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34650
34651 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
34652 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
34653 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
34654 s_rint-sse4_1 and s_rintf-sse4_1.
34655 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
34656 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
34657 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
34658 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
34659 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
34660 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
34661 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
34662 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
34663 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
34664 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
34665 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
34666 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34667 (__ceil): Removed.
34668 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
34669 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
34670 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34671 (__ceilf): Removed.
34672 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
34673 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
34674 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34675 (__floor): Removed.
34676 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
34677 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
34678 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34679 (__floorf): Removed.
34680 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
34681 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
34682 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34683 (__nearbyint): Removed.
34684 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
34685 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
34686 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34687 (__nearbyintf): Removed.
34688 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
34689 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
34690 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34691 (__rint): Removed.
34692 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
34693 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
34694 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
34695 (__rintf): Removed.
34696
34697 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34698
34699 * sysdeps/i386/start.S (_start): Check Check PIC instead of
34700 SHARED. Avoid dynamic relocation against main in static PIE.
34701
34702 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34703
34704 [BZ #21815]
34705 * elf/Makefile (CFLAGS-tst-prelink.c): New.
34706 (LDFLAGS-tst-prelink): Likewise.
34707
34708 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34709
34710 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
34711 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
34712 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
34713 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
34714 (INTERNAL_SYSCALL_NCS): Likewise.
34715 (LOADARGS_1): Likewise.
34716 (LOADARGS_5): Likewise.
34717 (RESTOREARGS_1): Likewise.
34718 (RESTOREARGS_5): Likewise.
34719
34720 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34721
34722 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
34723 (MEMPCPY_SYMBOL): Likewise.
34724 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
34725 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
34726 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
34727 in libc.a.
34728 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
34729 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
34730 Likewise.
34731 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
34732 (__hidden_ver1): Don't use in libc.a.
34733 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
34734 (__mempcpy): Don't create a weak alias in libc.a.
34735 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
34736 libc.a.
34737 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
34738 (__hidden_ver1): Don't use in libc.a.
34739
34740 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34741
34742 * config.make.in (have-insert): New.
34743 * configure.ac (libc_cv_insert): New. Set to yes if linker
34744 supports INSERT in linker script.
34745 (AC_SUBST(libc_cv_insert): New.
34746 * configure: Regenerated.
34747 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
34748 if $(have-insert) == yes.
34749
34750 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34751
34752 * elf/Makefile (tests): Add vismain only if
34753 $(have-protected-data) == yes.
34754 (tests-pie): Likewise.
34755
34756 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34757
34758 [BZ #21871]
34759 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
34760 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
34761
34762 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
34763
34764 [BZ #21790]
34765 * sysdeps/i386/i586/memset.S
34766 (__memset_zero_constant_len_parameter): Removed.
34767 * sysdeps/i386/i686/memset.S
34768 (__memset_zero_constant_len_parameter): Likewise.
34769 * sysdeps/i386/i686/multiarch/memset_chk.S
34770 (__memset_zero_constant_len_parameter): Likewise.
34771 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
34772 Likewise.
34773
34774 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34775
34776 * stdlib/getentropy.c (getentropy): Change return type to int.
34777
34778 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
34779
34780 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
34781
34782 2017-08-03 Joseph Myers <joseph@codesourcery.com>
34783
34784 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
34785 u_intN_t.
34786 * math/s_nexttowardf.c (__nexttowardf): Likewise.
34787 * sysdeps/generic/math_private.h (ieee_double_shape_type):
34788 Likewise.
34789 (ieee_float_shape_type): Likewise.
34790 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
34791 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
34792 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
34793 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
34794 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
34795 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
34796 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
34797 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
34798 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
34799 Likewise.
34800 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
34801 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
34802 (__ieee754_yn): Likewise.
34803 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
34804 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
34805 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
34806 Likewise.
34807 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
34808 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
34809 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
34810 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
34811 (__erfc): Likewise.
34812 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
34813 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
34814 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
34815 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
34816 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
34817 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
34818 Likewise.
34819 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
34820 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
34821 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
34822 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
34823 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
34824 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
34825 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
34826 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
34827 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
34828 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
34829 (__issignaling): Likewise.
34830 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
34831 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
34832 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
34833 Likewise.
34834 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
34835 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
34836 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
34837 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
34838 Likewise.
34839 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
34840 Likewise.
34841 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
34842 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
34843 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
34844 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
34845 (__erfcf): Likewise.
34846 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
34847 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
34848 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
34849 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
34850 Likewise.
34851 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
34852 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
34853 Likewise.
34854 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
34855 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
34856 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
34857 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
34858 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
34859 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
34860 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
34861 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
34862 Likewise.
34863 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
34864 Likewise.
34865 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
34866 Likewise.
34867 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
34868 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
34869 Likewise.
34870 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
34871 Likewise.
34872 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
34873 (__ieee754_ynl): Likewise.
34874 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
34875 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
34876 Likewise.
34877 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
34878 Likewise.
34879 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
34880 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
34881 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
34882 Likewise.
34883 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
34884 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
34885 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
34886 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
34887 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
34888 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
34889 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
34890 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
34891 Likewise.
34892 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
34893 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
34894 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
34895 Likewise.
34896 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
34897 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
34898 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
34899 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
34900 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
34901 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
34902 Likewise.
34903 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
34904 Likewise.
34905 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
34906 Likewise.
34907 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
34908 Likewise.
34909 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
34910 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
34911 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
34912 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
34913 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
34914 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
34915 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
34916 Likewise.
34917 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
34918 Likewise.
34919 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
34920 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
34921 Likewise.
34922 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
34923 (__ieee754_remainderl): Likewise.
34924 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
34925 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
34926 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
34927 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
34928 Likewise.
34929 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
34930 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
34931 Likewise.
34932 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
34933 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
34934 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
34935 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
34936 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
34937 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
34938 Likewise.
34939 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
34940 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
34941 (__ieee754_y0l): Likewise.
34942 (pzero): Likewise.
34943 (qzero): Likewise.
34944 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
34945 (__ieee754_y1l): Likewise.
34946 (pone): Likewise.
34947 (qone): Likewise.
34948 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
34949 (__ieee754_ynl): Likewise.
34950 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
34951 (__ieee754_lgammal_r): Likewise.
34952 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
34953 Likewise.
34954 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
34955 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
34956 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
34957 (__erfcl): Likewise.
34958 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
34959 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
34960 Likewise.
34961 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
34962 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
34963 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
34964 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
34965 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
34966 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
34967 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
34968 Likewise.
34969 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
34970 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
34971 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
34972 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
34973 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
34974 Likewise.
34975 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
34976 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
34977 Likewise.
34978 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
34979 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
34980 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
34981 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
34982 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
34983
34984 2017-08-03 Florian Weimer <fweimer@redhat.com>
34985
34986 [BZ #21885]
34987 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
34988 on memory allocation failure.
34989
34990 2017-08-03 Alan Modra <amodra@gmail.com>
34991
34992 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
34993 tst-tlsopt-powerpc.c with function name change and no test harness.
34994 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
34995 Call tls_get_addr_opt_test.
34996 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
34997 (modules-names): Add mod-tlsopt-powerpc.
34998 (mod-tlsopt-powerpc.so-no-z-defs): Define.
34999 (tst-tlsopt-powerpc): Depend on .so.
35000 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
35001 define. Expand use in TLS_GD and TLS_LD.
35002
35003 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35004
35005 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
35006 function.
35007 * sysdeps/posix/shm_open.c: Include <pthread.h>.
35008
35009 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35010
35011 [BZ #21686]
35012 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
35013 comparing size with that of double.
35014 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35015 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35016 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35017 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35018 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35019 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
35020 unsigned __int128 types.
35021
35022 2017-08-02 Steve Ellcey <sellcey@cavium.com>
35023
35024 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
35025 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
35026 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
35027 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
35028 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
35029
35030 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35031
35032 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
35033
35034 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35035
35036 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
35037 of SHARED.
35038 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
35039 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
35040 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
35041 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
35042 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
35043 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
35044 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
35045
35046 2017-08-02 Joseph Myers <joseph@codesourcery.com>
35047
35048 [BZ #21685]
35049 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
35050 bit-field expressions passed to sizeof or typeof.
35051 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35052 (__TGMATH_F128): Likewise.
35053 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
35054 (__TGMATH_CF128): Likewise.
35055 (__TGMATH_UNARY_REAL_ONLY): Likewise.
35056 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
35057 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
35058 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
35059 (__TGMATH_BINARY_REAL_ONLY): Likewise.
35060 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
35061 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
35062 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
35063 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
35064 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
35065 (__TGMATH_UNARY_REAL_IMAG): Likewise.
35066 (__TGMATH_UNARY_IMAG): Likewise.
35067 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
35068 (__TGMATH_BINARY_REAL_IMAG): Likewise.
35069 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
35070 type.
35071 (define_vars_for_type): Handle bit_field type specially.
35072 (Tests.__init__): Declare structure with bit-field element.
35073
35074 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
35075
35076 [BZ #21791]
35077 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
35078 (MEMCPY_CHK): Define only if SHARED is defined.
35079 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
35080 Likewise.
35081 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
35082 Likewise.
35083
35084 See ChangeLog.18 for earlier changes.